summaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-01 11:36:25 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-01 11:36:25 +0000
commit72dfc8a5eb647f579ffbd5ce8808602fb92b839e (patch)
treeea3a6cd55f7407435f8c369786ee4df14d72b200 /gcc/config/mips
parentc4693b2ff38d0da641e53d65ccd93c4138540c42 (diff)
downloadgcc-72dfc8a5eb647f579ffbd5ce8808602fb92b839e.tar.gz
* doc/invoke.texi: In the MIPS options section, remove the passage
saying that -mexplicit-relocs is usually disabled for -mabicalls -fno-unit-at-a-time. * config/mips/mips.c (override_options): Remove the code that enforced this rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85406 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 825172b0058..b77fcbd88e2 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -4476,28 +4476,6 @@ override_options (void)
&& (target_flags_explicit & MASK_EXPLICIT_RELOCS) == 0)
target_flags &= ~MASK_EXPLICIT_RELOCS;
- /* Make -mabicalls -fno-unit-at-a-time imply -mno-explicit-relocs
- unless the user says otherwise.
-
- There are two problems here:
-
- (1) The value of an R_MIPS_GOT16 relocation depends on whether
- the symbol is local or global. We therefore need to know
- a symbol's binding before referring to it using %got().
-
- (2) R_MIPS_CALL16 can only be applied to global symbols.
-
- When not using -funit-at-a-time, a symbol's binding may change
- after it has been used. For example, the C++ front-end will
- initially assume that the typeinfo for an incomplete type will be
- comdat, on the basis that the type could be completed later in the
- file. But if the type never is completed, the typeinfo will become
- local instead. */
- if (!flag_unit_at_a_time
- && TARGET_ABICALLS
- && (target_flags_explicit & MASK_EXPLICIT_RELOCS) == 0)
- target_flags &= ~MASK_EXPLICIT_RELOCS;
-
/* -mvr4130-align is a "speed over size" optimization: it usually produces
faster code, but at the expense of more nops. Enable it at -O3 and
above. */