<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [powerpc] powerpc-linux-gnu accesses memory below the stack"
href="http://llvm.org/bugs/show_bug.cgi?id=22819">22819</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[powerpc] powerpc-linux-gnu accesses memory below the stack
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>markus@oberhumer.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>powerpc-linux-gnu accesses memory below the stack - please see "-4(1)" below.
This is a nasty one as it only shows up under rare conditions - it was
quite hard to find the real cause of the problem.
$ cat test.c
int foo(int *);
int test(int *a) {
return foo(a) + 1;
}
// EOF
$ clang-3.6.0 -target powerpc-linux-gnu -O2 -Wall -save-temps -c test.c
$ cat test.s
.text
.file "test.bc"
.globl test
.align 2
.type test,@function
test: # @test
# BB#0: # %entry
mflr 0
stw 31, -4(1)
stw 0, 4(1)
stwu 1, -16(1)
mr 31, 1
bl foo
addi 3, 3, 1
addi 1, 1, 16
lwz 0, 4(1)
lwz 31, -4(1)
mtlr 0
blr
.Ltmp0:
.size test, .Ltmp0-test
.ident "clang version 3.6.0 (tags/RELEASE_360/final)"
.section ".note.GNU-stack","",@progbits</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>