aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2010-05-27 16:02:50 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2010-05-27 16:02:50 +0000
commit7a3b4887987aa35fae3321ee76af17af1e79c215 (patch)
treedcbeeba8fae9dc7970adedeece8672f0c973b716 /gcc/c-common.c
parent753d358dbcf3dd3fe68e9fe1e0a5eea8188c5d9a (diff)
downloadgcc-7a3b4887987aa35fae3321ee76af17af1e79c215.zip
gcc-7a3b4887987aa35fae3321ee76af17af1e79c215.tar.gz
gcc-7a3b4887987aa35fae3321ee76af17af1e79c215.tar.bz2
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. <section "Language makefile fragments">: 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
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c7
1 files changed, 4 insertions, 3 deletions
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
<http://www.gnu.org/licenses/>. */
+/* 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. */