Commit f2991b48 by Eric Botcazou Committed by Eric Botcazou

raise-gcc.c: Do not include coretypes.h and tm.h.

	* raise-gcc.c: Do not include coretypes.h and tm.h.
	(setup_to_install): Remove test for compiler macro.
	* targext.c: Document use for the library.
	* gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.

From-SVN: r178333
parent 10a22f43
2011-08-30 Eric Botcazou <ebotcazou@adacore.com> 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
* raise-gcc.c: Do not include coretypes.h and tm.h.
(setup_to_install): Remove test for compiler macro.
* targext.c: Document use for the library.
* gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
the expression to the nominal type if the latter is a record type with the expression to the nominal type if the latter is a record type with
a variant part and the type of the former is a record type without one. a variant part and the type of the former is a record type without one.
......
...@@ -223,8 +223,9 @@ endif ...@@ -223,8 +223,9 @@ endif
all.indirect: Makefile ../gnat1$(exeext) all.indirect: Makefile ../gnat1$(exeext)
# IN_GCC distinguishes between code compiled into GCC itself and other # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
# programs built during a bootstrap. # for the host, and the rest. But we also use it for the tools (link.c) and
# even break the host/target wall by using it for the library (targext.c).
# autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
# compiler which does not use the native libraries and headers. # compiler which does not use the native libraries and headers.
INTERNAL_CFLAGS = @CROSS@ -DIN_GCC INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
......
...@@ -35,14 +35,6 @@ ...@@ -35,14 +35,6 @@
#ifdef IN_RTS #ifdef IN_RTS
#include "tconfig.h" #include "tconfig.h"
#include "tsystem.h" #include "tsystem.h"
/* In the top-of-tree GCC, tconfig does not include tm.h, but in GCC 3.2
it does. To avoid branching raise.c just for that purpose, we kludge by
looking for a symbol always defined by tm.h and if it's not defined,
we include it. */
#ifndef FIRST_PSEUDO_REGISTER
#include "coretypes.h"
#include "tm.h"
#endif
#include <sys/stat.h> #include <sys/stat.h>
#include <stdarg.h> #include <stdarg.h>
typedef char bool; typedef char bool;
...@@ -1007,11 +999,6 @@ setup_to_install (_Unwind_Context *uw_context, ...@@ -1007,11 +999,6 @@ setup_to_install (_Unwind_Context *uw_context,
_Unwind_Ptr uw_landing_pad, _Unwind_Ptr uw_landing_pad,
int uw_filter) int uw_filter)
{ {
#ifndef EH_RETURN_DATA_REGNO
/* We should not be called if the appropriate underlying support is not
there. */
abort ();
#else
/* 1/ exception object pointer, which might be provided back to /* 1/ exception object pointer, which might be provided back to
_Unwind_Resume (and thus to this personality routine) if we are jumping _Unwind_Resume (and thus to this personality routine) if we are jumping
to a cleanup. */ to a cleanup. */
...@@ -1026,7 +1013,6 @@ setup_to_install (_Unwind_Context *uw_context, ...@@ -1026,7 +1013,6 @@ setup_to_install (_Unwind_Context *uw_context,
/* Setup the address we should jump at to reach the code where there is the /* Setup the address we should jump at to reach the code where there is the
"something" we found. */ "something" we found. */
_Unwind_SetIP (uw_context, uw_landing_pad); _Unwind_SetIP (uw_context, uw_landing_pad);
#endif
} }
/* The following is defined from a-except.adb. Its purpose is to enable /* The following is defined from a-except.adb. Its purpose is to enable
......
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
/* This file contains target-specific parameters describing the file /* This file contains target-specific parameters describing the file
extension for object and executable files. It is used by the compiler, extension for object and executable files. It is used by the compiler,
binder and tools. */ binder, library and tools.
Note that, in order to have access to the TARGET_* macros used below,
the file must be compiled with IN_GCC defined, even for the library. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment