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]

MIPS64 GCC not building at r165246


Hi Richard,

I was just trying to build the trunk GCC at r165246

Configured thusly:

$ ../trunk/configure --target=mips64-linux --with-sysroot=/home/daney/mips64-linux --prefix=/home/daney/mips64-linux --with-arch=mips64r2 --enable-languages=c --disable-libmudflap

Back on:
r162086 | rsandifo | 2010-07-12 11:53:01 -0700 (Mon, 12 Jul 2010) | 36 lines

gcc/
* doc/tm.texi.in (SWITCHABLE_TARGET): Document.
[...]

You added SWITCHABLE_TARGET, but it seems to break building now in expr.c

gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include -I../../trunk/gcc/../libcpp/include -I../../trunk/gcc/../libdecnumber -I../../trunk/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/include/libelf ../../trunk/gcc/expr.c -o expr.o
In file included from ../../trunk/gcc/expr.c:57:
../../trunk/gcc/target-globals.h:24: error: expected identifier or ‘(’ before ‘&’ token
../../trunk/gcc/target-globals.h: In function ‘restore_target_globals’:
../../trunk/gcc/target-globals.h:63: error: lvalue required as left operand of assignment



This seems to be caused by:


flags.h:243 #define this_target_flag_state (&default_target_flag_state)

target-globals.h:24 extern struct target_flag_state *this_target_flag_state;

Which when preprocessed we get:

expr.i:??? extern struct target_flag_state *(&default_target_flag_state);

Which evidently is not valid C.

I am not sure how to go about fixing this.

Do you have any ideas?

David Daney


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