OSDN Git Service

* common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2011 13:22:44 +0000 (13:22 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2011 13:22:44 +0000 (13:22 +0000)
default based on TARGET_ASM_NAMED_SECTION.
* common/common-target.def (have_named_sections): Default to true.
* common/config/default-common.c: Don't include tm.h.
* common/config/picochip/picochip-common.c
(TARGET_HAVE_NAMED_SECTIONS): Don't define.
* common/config/m32c/m32c-common.c: Remove.
* config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
* config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
false.
* config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
false.
* config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
false.
* config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
* config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
false.
* config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
false.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175969 138bc75d-0d04-0410-961f-82ee72b054a4

13 files changed:
gcc/ChangeLog
gcc/common/common-target-def.h
gcc/common/common-target.def
gcc/common/config/default-common.c
gcc/common/config/m32c/m32c-common.c [deleted file]
gcc/common/config/picochip/picochip-common.c
gcc/config.gcc
gcc/config/alpha/osf5.h
gcc/config/i386/openbsd.h
gcc/config/m68k/openbsd.h
gcc/config/pa/som.h
gcc/config/pdp11/pdp11.h
gcc/config/vax/openbsd.h

index a203616..c2929e5 100644 (file)
@@ -1,3 +1,25 @@
+2011-07-07  Joseph Myers  <joseph@codesourcery.com>
+
+       * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
+       default based on TARGET_ASM_NAMED_SECTION.
+       * common/common-target.def (have_named_sections): Default to true.
+       * common/config/default-common.c: Don't include tm.h.
+       * common/config/picochip/picochip-common.c
+       (TARGET_HAVE_NAMED_SECTIONS): Don't define.
+       * common/config/m32c/m32c-common.c: Remove.
+       * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
+       * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
+       false.
+       * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
+       false.
+       * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
+       false.
+       * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
+       * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
+       false.
+       * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
+       false.
+
 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/49640
index ea16bee..d2e304a 100644 (file)
    along with this program; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */
 
-#ifdef TARGET_ASM_NAMED_SECTION
-#define TARGET_HAVE_NAMED_SECTIONS true
-#endif
-
 #include "common/common-target-hooks-def.h"
 #include "hooks.h"
 #include "common/common-targhooks.h"
index d8ede82..85edff1 100644 (file)
@@ -93,7 +93,7 @@ DEFHOOKPOD
 DEFHOOKPOD
 (have_named_sections,
  "",
- bool, false)
+ bool, true)
 
 DEFHOOKPOD
 (always_strip_dotdot,
index 0f6251e..8ea2354 100644 (file)
@@ -21,12 +21,10 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h" /* For TARGET_ASM_NAMED_SECTION used in default for
-                  TARGET_HAVE_NAMED_SECTIONS.  */
 #include "common/common-target.h"
 #include "common/common-target-def.h"
 
-/* FIXME: Do not include tm.h or tm_p.h here; if it is useful for a target to
+/* Do not include tm.h or tm_p.h here; if it is useful for a target to
    define some macros for the initializer in a header without defining
    targetm_common itself (for example, because of interactions with
    some hooks depending on the target OS and others on the target
diff --git a/gcc/common/config/m32c/m32c-common.c b/gcc/common/config/m32c/m32c-common.c
deleted file mode 100644 (file)
index 8bda8cd..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Common hooks for R8C/M16C/M32C.
-   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
-   Free Software Foundation, Inc.
-
-   This file is part of GCC.
-
-   GCC is free software; you can redistribute it and/or modify it
-   under the terms of the GNU General Public License as published
-   by the Free Software Foundation; either version 3, or (at your
-   option) any later version.
-
-   GCC is distributed in the hope that it will be useful, but WITHOUT
-   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
-   License for more details.
-
-   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/>.  */
-
-#include "config.h"
-#include "system.h"
-#include "coretypes.h"
-#include "tm.h"
-#include "common/common-target.h"
-#include "common/common-target-def.h"
-
-#undef TARGET_HAVE_NAMED_SECTIONS
-#define TARGET_HAVE_NAMED_SECTIONS true
-
-struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
index 286ee45..25c844f 100644 (file)
@@ -31,9 +31,6 @@ static const struct default_options picochip_option_optimization_table[] =
     { OPT_LEVELS_NONE, 0, NULL, 0 }
   };
 
-#undef TARGET_HAVE_NAMED_SECTIONS
-#define TARGET_HAVE_NAMED_SECTIONS 1
-
 #undef TARGET_OPTION_OPTIMIZATION_TABLE
 #define TARGET_OPTION_OPTIMIZATION_TABLE picochip_option_optimization_table
 
index d73cb45..c590577 100644 (file)
@@ -300,6 +300,7 @@ case ${target} in
 m32c*-*-*)
         cpu_type=m32c
        tmake_file=m32c/t-m32c
+       target_has_targetm_common=no
         ;;
 alpha*-*-*)
        cpu_type=alpha
index 28aff06..2c649e2 100644 (file)
@@ -259,3 +259,5 @@ along with GCC; see the file COPYING3.  If not see
 
 /* Handle #pragma extern_prefix.  */
 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 1
+
+#define TARGET_HAVE_NAMED_SECTIONS false
index d7bf95a..b52e049 100644 (file)
@@ -98,3 +98,5 @@ along with GCC; see the file COPYING3.  If not see
 
 /* OpenBSD gas currently does not support quad, so do not use it.  */
 #undef ASM_QUAD
+
+#define TARGET_HAVE_NAMED_SECTIONS false
index 8478855..570742c 100644 (file)
@@ -1,5 +1,5 @@
 /* Configuration file for an m68k OpenBSD target.
-   Copyright (C) 1999, 2002, 2003, 2007, 2009, 2010
+   Copyright (C) 1999, 2002, 2003, 2007, 2009, 2010, 2011
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -87,3 +87,5 @@ along with GCC; see the file COPYING3.  If not see
 /* All configurations that don't use elf must be explicit about not using
    dwarf unwind information.  */
 #define DWARF2_UNWIND_INFO 0
+
+#define TARGET_HAVE_NAMED_SECTIONS false
index e8a47cc..f9f5648 100644 (file)
@@ -340,3 +340,5 @@ do {                                                \
 /* Shared library suffix.  Collect2 strips the version string after
    this suffix when generating constructor/destructor names.  */ 
 #define SHLIB_SUFFIX ".sl"
+
+#define TARGET_HAVE_NAMED_SECTIONS false
index 85941be..6efbf49 100644 (file)
@@ -664,3 +664,5 @@ extern rtx cc0_reg_rtx;
 
 
 #define COMPARE_FLAG_MODE HImode
+
+#define TARGET_HAVE_NAMED_SECTIONS false
index cdff4ca..410d6a6 100644 (file)
@@ -1,5 +1,5 @@
 /* Configuration fragment for a VAX OpenBSD target.
-   Copyright (C) 2000, 2002, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002, 2007, 2009, 2011 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -46,3 +46,5 @@ along with GCC; see the file COPYING3.  If not see
 
 #undef WINT_TYPE
 #define WINT_TYPE "int"
+
+#define TARGET_HAVE_NAMED_SECTIONS false