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