]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
coretypes.h (section): Provide dummy definition for target files.
authorRichard Sandiford <richard@codesourcery.com>
Wed, 7 Dec 2005 11:52:28 +0000 (11:52 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 7 Dec 2005 11:52:28 +0000 (11:52 +0000)
* coretypes.h (section): Provide dummy definition for target files.
* config/darwin.h: Revert previous change.

From-SVN: r108159

gcc/ChangeLog
gcc/config/darwin.h
gcc/coretypes.h

index 11eee7194056c0be585066f5412ac79ab6367ce5..8e8d31049beb445b9a5e05a77edd4b082a030acc 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-07  Richard Sandiford  <richard@codesourcery.com>
+
+       * coretypes.h (section): Provide dummy definition for target files.
+       * config/darwin.h: Revert previous change.
+
 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * doc/sourcebuild.texi (all.build, install-normal): Remove.
index ff220a2c517f9b350d07a593f49e607da9c9486b..8afae4518e6187c7a8e46a86ba9f1b58bceedee8 100644 (file)
@@ -610,11 +610,9 @@ Boston, MA 02110-1301, USA.  */
 #define MAX_OFILE_ALIGNMENT 0x8000
 
 /* Declare the section variables.  */
-#ifndef IN_LIBGCC2
 #define DEF_SECTION(NAME, FLAGS, DIRECTIVE, OBJC) extern section *NAME;
 #include "darwin-sections.def"
 #undef DEF_SECTION
-#endif
 
 #undef TARGET_ASM_SELECT_SECTION
 #define TARGET_ASM_SELECT_SECTION machopic_select_section
index 7942459c9b5d978a8b6dda3e56a087312c6c2364..f0607332e10c01a91311ee301a2e7acff9fbd9e6 100644 (file)
@@ -68,9 +68,11 @@ enum tls_model {
 struct _dont_use_rtx_here_;
 struct _dont_use_rtvec_here_;
 union _dont_use_tree_here_;
+union _dont_use_section_here_;
 #define rtx struct _dont_use_rtx_here_ *
 #define rtvec struct _dont_use_rtvec_here *
 #define tree union _dont_use_tree_here_ *
+#define section union _dont_use_section_here_
 
 #endif