From 7a3b4887987aa35fae3321ee76af17af1e79c215 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Thu, 27 May 2010 16:02:50 +0000 Subject: Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS. gcc/ChangeLog: * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS. (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects. (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects. (ALL_HOST_OBJS): Now a union of the above two.
: Add -DIN_GCC_FRONTEND for all files in ALL_HOST_FRONTEND_OBJS. * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined. * c-common.c: Pretend to be a backend file by undefining IN_GCC_FRONTEND (still need rtl.h here). ada/ChangeLog: * gcc-interface/decl.c: Pretend to be a backend file by undefining IN_GCC_FRONTEND (still need rtl.h here). java/ChangeLog: * buildings.c: Pretend to be a backend file by undefining IN_GCC_FRONTEND (still need rtl.h here). From-SVN: r159927 --- gcc/c-common.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/c-common.c') diff --git a/gcc/c-common.c b/gcc/c-common.c index b839030..1fd11c5 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -19,6 +19,10 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +/* FIXME: Still need to include rtl.h here (via expr.h) in a front-end file. + Pretend this is a back-end file. */ +#undef IN_GCC_FRONTEND + #include "config.h" #include "system.h" #include "coretypes.h" @@ -47,9 +51,6 @@ along with GCC; see the file COPYING3. If not see #include "target-def.h" #include "libfuncs.h" -/* FIXME: Still need to include rtl.h here (via expr.h) in a front-end file. - Pretend this is a back-end file. */ -#define IN_GCC_BACKEND #include "expr.h" /* For vector_mode_valid_p */ /* FIXME: Needed for TARGET_ENUM_VA_LIST, which should be a target hook. */ -- cgit v1.1