[llvm-bugs] [Bug 46759] New: frame_layout in test-suite fails if compiled with -fstack-clash-protection on powerpc64le machine

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 17 00:29:39 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46759

            Bug ID: 46759
           Summary: frame_layout in test-suite fails if compiled with
                    -fstack-clash-protection on powerpc64le machine
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lkail at cn.ibm.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

llvm-test-suite compiled with CFLAGS="-fstack-clash-protection"
CXX="-fstack-clash-protection" on a powerpc64le machine, test
```
MultiSource/UnitTests/C++11/frame_layout/frame_layout.test
```
fails.

Reduced IR
```
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename =
"../../MultiSource/UnitTests/C++11/frame_layout/frame_layout.cpp"
target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"

$_Z10test_frameILj4096ELb1ELj2048ELb0ELb0EJEEvDpT4_jPKcP13trace_elementd =
comdat any

define dso_local void
@_Z10test_frameILj4096ELb1ELj2048ELb0ELb0EJEEvDpT4_jPKcP13trace_elementd(i32
%vla_size) local_unnamed_addr #0 comdat {
entry:
  %0 = zext i32 %vla_size to i64
  %vla = alloca i8, i64 %0, align 2048
  %1 = load volatile i8, i8* %vla, align 2048
  ret void
}

attributes #0 = { "probe-stack"="inline-asm" }
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200717/63a4365b/attachment.html>


More information about the llvm-bugs mailing list