This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32163] Compiling with stack protector causes reigster spill failure
- From: "kkojima at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2007 13:30:13 -0000
- Subject: [Bug target/32163] Compiling with stack protector causes reigster spill failure
- References: <bug-32163-6755@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from kkojima at gcc dot gnu dot org 2007-05-31 13:30 -------
I've confirmed that this fails with 4.1.2, 4.2.0 and 4.3.0
on sh4-unknown-linux-gnu. A reduced testcase is:
--
int foo ()
{
char *p;
char fext[128];
p = fext;
bar (&p, (void *)0);
if (p)
free (p);
return 0;
}
--
which fails with -O -fpic -fstack-protector. Curiously the error
went away with -O2 -fpic -fstack-protector.
--
kkojima at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kkojima at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|other |target
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Known to fail| |4.1.2 4.2.0 4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-05-31 13:30:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32163