diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-07 13:22:44 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-07 13:22:44 +0000 |
commit | 393a753d72d3dd6453443c6f799db519624802a9 (patch) | |
tree | 41c74e09d99a789488beb943066632783fd96420 /gcc/common | |
parent | 85b059d7350caad2aa6dcf72b553e90f9296db6f (diff) | |
download | gcc-393a753d72d3dd6453443c6f799db519624802a9.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175969 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/common-target-def.h | 4 | ||||
-rw-r--r-- | gcc/common/common-target.def | 2 | ||||
-rw-r--r-- | gcc/common/config/default-common.c | 4 | ||||
-rw-r--r-- | gcc/common/config/m32c/m32c-common.c | 31 | ||||
-rw-r--r-- | gcc/common/config/picochip/picochip-common.c | 3 |
5 files changed, 2 insertions, 42 deletions
diff --git a/gcc/common/common-target-def.h b/gcc/common/common-target-def.h index ea16beef5ea..d2e304a9b0a 100644 --- a/gcc/common/common-target-def.h +++ b/gcc/common/common-target-def.h @@ -16,10 +16,6 @@ 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" diff --git a/gcc/common/common-target.def b/gcc/common/common-target.def index d8ede82e5b6..85edff10a45 100644 --- a/gcc/common/common-target.def +++ b/gcc/common/common-target.def @@ -93,7 +93,7 @@ DEFHOOKPOD DEFHOOKPOD (have_named_sections, "", - bool, false) + bool, true) DEFHOOKPOD (always_strip_dotdot, diff --git a/gcc/common/config/default-common.c b/gcc/common/config/default-common.c index 0f6251e3dc7..8ea235495cb 100644 --- a/gcc/common/config/default-common.c +++ b/gcc/common/config/default-common.c @@ -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 index 8bda8cd5dfb..00000000000 --- a/gcc/common/config/m32c/m32c-common.c +++ /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; diff --git a/gcc/common/config/picochip/picochip-common.c b/gcc/common/config/picochip/picochip-common.c index 286ee452076..25c844fc908 100644 --- a/gcc/common/config/picochip/picochip-common.c +++ b/gcc/common/config/picochip/picochip-common.c @@ -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 |