diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-02-21 08:51:26 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2006-02-21 08:51:26 +0000 |
commit | f5e605e540df272484a4b36779fc4d942a2e9455 (patch) | |
tree | 72f15bf4c4b3b9550ccca2ac603f6591b2422f25 /gcc | |
parent | 880b9e7bce21a96a717f80c71bd51f452be6a7fe (diff) | |
download | gcc-f5e605e540df272484a4b36779fc4d942a2e9455.zip gcc-f5e605e540df272484a4b36779fc4d942a2e9455.tar.gz gcc-f5e605e540df272484a4b36779fc4d942a2e9455.tar.bz2 |
* doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
(ASM_OUTPUT_SHARED_LOCAL): Delete.
* doc/invoke.texi (-fshared-data): Delete.
* common.opt (fshared-data): Delete.
* varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
(assemble_static_space): Remove #if 0 code.
* system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
(ASM_OUTPUT_SHARED_LOCAL): Poison.
* config/cris/cris.h: Remove FIXME.
From-SVN: r111330
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/common.opt | 4 | ||||
-rw-r--r-- | gcc/config/cris/cris.h | 3 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 10 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 18 | ||||
-rw-r--r-- | gcc/system.h | 3 | ||||
-rw-r--r-- | gcc/varasm.c | 29 |
7 files changed, 15 insertions, 64 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 955e41a..68a0996 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2006-02-21 Richard Sandiford <richard@codesourcery.com> + + * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS) + (ASM_OUTPUT_SHARED_LOCAL): Delete. + * doc/invoke.texi (-fshared-data): Delete. + * common.opt (fshared-data): Delete. + * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling. + (assemble_static_space): Remove #if 0 code. + * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS) + (ASM_OUTPUT_SHARED_LOCAL): Poison. + * config/cris/cris.h: Remove FIXME. + 2006-02-21 Paolo Bonzini <bonzini@gnu.org> * doc/sourcebuild.texi (Front End Directory): No more double-colon diff --git a/gcc/common.opt b/gcc/common.opt index 448c6bc..36e52fc 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -799,10 +799,6 @@ frtl-abstract-sequences Common Report Var(flag_rtl_seqabstr) Perform sequence abstraction optimization on RTL -fshared-data -Common Report Var(flag_shared_data) -Mark data as shared rather than private - fshow-column Common C ObjC C++ ObjC++ Report Var(flag_show_column) Init(1) Show column numbers in diagnostics, when available. Default on diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index 0d1d8af..10a17dc 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -1243,9 +1243,6 @@ enum cris_pic_symbol_type #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \ CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON(FILE, DECL, NAME, SIZE, ALIGN, 1) -/* FIXME: define ASM_OUTPUT_SHARED_COMMON and emit an error when it is - used with -melinux and a.out. */ - /* Node: Label Output */ /* Globalizing directive for a label. */ diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 740ac9b..029b43c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -761,7 +761,7 @@ See S/390 and zSeries Options. -fno-common -fno-ident @gol -fpcc-struct-return -fpic -fPIC -fpie -fPIE @gol -fno-jump-tables @gol --freg-struct-return -fshared-data -fshort-enums @gol +-freg-struct-return -fshort-enums @gol -fshort-double -fshort-wchar @gol -fverbose-asm -fpack-struct[=@var{n}] -fstack-check @gol -fstack-limit-register=@var{reg} -fstack-limit-symbol=@var{sym} @gol @@ -13001,14 +13001,6 @@ useful for building programs to run under WINE@. code that is not binary compatible with code generated without that switch. Use it to conform to a non-default application binary interface. -@item -fshared-data -@opindex fshared-data -Requests that the data and non-@code{const} variables of this -compilation be shared data rather than private data. The distinction -makes sense only on certain operating systems, where shared data is -shared between processes running the same program, while private data -exists in one copy per process. - @item -fno-common @opindex fno-common In C, allocate even uninitialized global variables in the data section of the diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 4c32cf6..604ccd6 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -6671,12 +6671,6 @@ in place of both @code{ASM_OUTPUT_COMMON} and the variable's decl in order to chose what to output. @end defmac -@defmac ASM_OUTPUT_SHARED_COMMON (@var{stream}, @var{name}, @var{size}, @var{rounded}) -If defined, it is similar to @code{ASM_OUTPUT_COMMON}, except that it -is used when @var{name} is shared. If not defined, @code{ASM_OUTPUT_COMMON} -will be used. -@end defmac - @defmac ASM_OUTPUT_BSS (@var{stream}, @var{decl}, @var{name}, @var{size}, @var{rounded}) A C statement (sans semicolon) to output to the stdio stream @var{stream} the assembler definition of uninitialized global @var{decl} named @@ -6709,12 +6703,6 @@ Try to use function @code{asm_output_aligned_bss} defined in file @file{varasm.c} when defining this macro. @end defmac -@defmac ASM_OUTPUT_SHARED_BSS (@var{stream}, @var{decl}, @var{name}, @var{size}, @var{rounded}) -If defined, it is similar to @code{ASM_OUTPUT_BSS}, except that it -is used when @var{name} is shared. If not defined, @code{ASM_OUTPUT_BSS} -will be used. -@end defmac - @defmac ASM_OUTPUT_LOCAL (@var{stream}, @var{name}, @var{size}, @var{rounded}) A C statement (sans semicolon) to output to the stdio stream @var{stream} the assembler definition of a local-common-label named @@ -6746,12 +6734,6 @@ in place of both @code{ASM_OUTPUT_DECL} and the variable's decl in order to chose what to output. @end defmac -@defmac ASM_OUTPUT_SHARED_LOCAL (@var{stream}, @var{name}, @var{size}, @var{rounded}) -If defined, it is similar to @code{ASM_OUTPUT_LOCAL}, except that it -is used when @var{name} is shared. If not defined, @code{ASM_OUTPUT_LOCAL} -will be used. -@end defmac - @node Label Output @subsection Output and Generation of Labels diff --git a/gcc/system.h b/gcc/system.h index ca9c8b4..0769cde 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -731,7 +731,8 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; PREDICATE_CODES SPECIAL_MODE_PREDICATES HOST_PTR_PRINTF \ EXTRA_SECTIONS EXTRA_SECTION_FUNCTIONS READONLY_DATA_SECTION \ TARGET_ASM_EXCEPTION_SECTION TARGET_ASM_EH_FRAME_SECTION \ - SMALL_ARG_MAX + SMALL_ARG_MAX ASM_OUTPUT_SHARED_BSS ASM_OUTPUT_SHARED_COMMON \ + ASM_OUTPUT_SHARED_LOCAL /* Hooks that are no longer used. */ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \ diff --git a/gcc/varasm.c b/gcc/varasm.c index ed7bbb6..4c957ba 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1547,30 +1547,6 @@ asm_emit_uninitialised (tree decl, const char *name, if (destination == asm_dest_bss) globalize_decl (decl); - if (flag_shared_data) - { - switch (destination) - { -#ifdef ASM_OUTPUT_SHARED_BSS - case asm_dest_bss: - ASM_OUTPUT_SHARED_BSS (asm_out_file, decl, name, size, rounded); - return; -#endif -#ifdef ASM_OUTPUT_SHARED_COMMON - case asm_dest_common: - ASM_OUTPUT_SHARED_COMMON (asm_out_file, name, size, rounded); - return; -#endif -#ifdef ASM_OUTPUT_SHARED_LOCAL - case asm_dest_local: - ASM_OUTPUT_SHARED_LOCAL (asm_out_file, name, size, rounded); - return; -#endif - default: - break; - } - } - switch (destination) { #ifdef ASM_EMIT_BSS @@ -2104,11 +2080,6 @@ assemble_static_space (unsigned HOST_WIDE_INT size) const char *namestring; rtx x; -#if 0 - if (flag_shared_data) - switch_to_section (data_section); -#endif - ASM_GENERATE_INTERNAL_LABEL (name, "LF", const_labelno); ++const_labelno; namestring = ggc_strdup (name); |