http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50801
Pat Haugen <pthaugen at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pthaugen at gcc dot gnu.org --- Comment #2 from Pat Haugen <pthaugen at gcc dot gnu.org> 2011-10-19 21:35:30 UTC --- I hit the same thing for powerpc in cpu2000 benchmark 177.mesa when compiled with -mcpu=power7. Following is reduced testcase. run/00000001> cat junk.c static void flat_color_z_triangle() { #define SETUP_CODE int pixel = 2; int ltor; #ifdef SETUP_CODE SETUP_CODE #endif ltor = 1; } run/00000001> /home/pthaugen/install/gcc/trunk/bin/gcc -c -m64 -mcpu=power7 junk.c junk.c: In function 'flat_color_z_triangle': junk.c:11:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ltor' The proposed patch fixes the problem.