This is the mail archive of the gcc@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]

Re: [tree-ssa] bootstrap failure on ppc-apple-darwin6.6


Looks like this is from a mis compiling of cppexp.c.

On Tuesday, May 20, 2003, at 11:17 US/Eastern, Andrew Pinski wrote:

Fails on stage3 compiling libgcc

testcase:

#define TEMP (!0?4:8)
#if TEMP > 4
int temp1 = TEMP;
#else
int temp2 = TEMP;
#endif


Should output temp2, not temp1.


stage1/2 and mainline of gcc:
[zhivago2:objdir/gcc/stage1] pinskia% !./
./cc1 test1.c -E -o -
# 1 "test1.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test1.c"
# 10 "test1.c"
int temp2 = (!0?4:8);

Execution times (seconds)
 TOTAL                 :   0.05             0.00             0.28



stage3:
./cc1 test1.c -E -o -
# 1 "test1.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test1.c"





int temp1 = (!0?4:8);

Execution times (seconds)
 TOTAL                 :   0.02             0.00             0.03

Thanks,
Andrew Pinski





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