This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47324] g++.dg/torture/stackalign failures with -O3 -g at -m32 on darwin
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jan 2011 00:05:01 +0000
- Subject: [Bug target/47324] g++.dg/torture/stackalign failures with -O3 -g at -m32 on darwin
- Auto-submitted: auto-generated
- References: <bug-47324-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47324
--- Comment #7 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-01-17 00:04:47 UTC ---
These failures appear to be unrelated to stack realignment. I find that...
[MacPro:~/eh_bug] howarth% g++-fsf-4.6
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110116/gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C
-nostdinc++ -O3 -multiply_defined suppressed -g -lm -m32 -o ./eh-alloca-1.exe
[MacPro:~/eh_bug] howarth% ./eh-alloca-1.exe
terminate called after throwing an instance of 'A'
Abort
[MacPro:~/eh_bug] howarth% g++-fsf-4.6
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110116/gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C
-nostdinc++ -O3 -multiply_defined suppressed -g0 -lm -m32 -o ./eh-alloca-1.exe
[MacPro:~/eh_bug] howarth% ./eh-alloca-1.exe
[MacPro:~/eh_bug] howarth%
This behavior is seen for all optimization levels (-O0,-O1, -O2,-O3,-Os).
Without -g, the resulting testcase runs fine and with -g it aborts.