aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2005-07-08 20:59:49 +0000
committerKazu Hirata <kazu@codesourcery.com>2005-07-08 20:59:49 +0000
commit51e9f741695f1c4ded61dfda1d8d5018fe7c1eb8 (patch)
treef1b96e862791aeb641d77b37722bf16145827f9a /gcc
parent1e2de054a84813c25b0a43965f2a763743ebb7ac (diff)
* cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
* system.h: Poison FINALIZE_PIC. * doc/tm.texi (FINALIZE_PIC): Remove. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@101794 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cfgexpand.c5
-rw-r--r--gcc/doc/tm.texi16
-rw-r--r--gcc/system.h2
4 files changed, 7 insertions, 22 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2c169d2cc93..bb0df11dcfc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-08 Kazu Hirata <kazu@codesourcery.com>
+
+ * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
+ * system.h: Poison FINALIZE_PIC.
+ * doc/tm.texi (FINALIZE_PIC): Remove.
+
2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22329
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index a3bd41c4797..87b82459c27 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1575,11 +1575,6 @@ tree_expand_cfg (void)
(*debug_hooks->outlining_inline_function) (current_function_decl);
TREE_ASM_WRITTEN (current_function_decl) = 1;
-
-#ifdef FINALIZE_PIC
- if (flag_pic)
- FINALIZE_PIC;
-#endif
}
struct tree_opt_pass pass_expand =
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 8768b74c102..4eeb1566984 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -6121,22 +6121,6 @@ Define this macro if the register defined by
this macro if @code{PIC_OFFSET_TABLE_REGNUM} is not defined.
@end defmac
-@defmac FINALIZE_PIC
-By generating position-independent code, when two different programs (A
-and B) share a common library (libC.a), the text of the library can be
-shared whether or not the library is linked at the same address for both
-programs. In some of these environments, position-independent code
-requires not only the use of different addressing modes, but also
-special code to enable the use of these addressing modes.
-
-The @code{FINALIZE_PIC} macro serves as a hook to emit these special
-codes once the function is being compiled into assembly code, but not
-before. (It is not done before, because in the case of compiling an
-inline function, it would lead to multiple PIC prologues being
-included in functions which used inline functions and were compiled to
-assembly language.)
-@end defmac
-
@defmac LEGITIMATE_PIC_OPERAND_P (@var{x})
A C expression that is nonzero if @var{x} is a legitimate immediate
operand on the target machine when generating position independent code.
diff --git a/gcc/system.h b/gcc/system.h
index 3b33db102be..b620a4fd26e 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -740,7 +740,7 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
CASE_DROPS_THROUGH TARGET_BELL TARGET_BS TARGET_CR TARGET_DIGIT0 \
TARGET_ESC TARGET_FF TARGET_NEWLINE TARGET_TAB TARGET_VT \
LINK_LIBGCC_SPECIAL DONT_ACCESS_GBLS_AFTER_EPILOGUE \
- TARGET_OPTIONS TARGET_SWITCHES EXTRA_CC_MODES
+ TARGET_OPTIONS TARGET_SWITCHES EXTRA_CC_MODES FINALIZE_PIC
/* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \