This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/47324] g++.dg/torture/stackalign failures with -O3 -g at -m32 on darwin


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]