aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-03-23 14:28:28 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-03-23 14:28:28 -0800
commitd7a58f30d1ba7672aeee5a6c68c8dd56690601e7 (patch)
tree86bf0d1360b1ce2056e51665f2c850e7f5fafc67 /gcc
parent4635f7488070db8d8262cec5f962bbef3bf06575 (diff)
downloadgcc-d7a58f30d1ba7672aeee5a6c68c8dd56690601e7.zip
gcc-d7a58f30d1ba7672aeee5a6c68c8dd56690601e7.tar.gz
gcc-d7a58f30d1ba7672aeee5a6c68c8dd56690601e7.tar.bz2
(mips_asm_file_start): Add comment on TARGET_GP_OPT code.
From-SVN: r6858
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/mips/mips.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 72cd0cf..3d34ddf 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -4064,6 +4064,13 @@ mips_asm_file_start (stream)
/* ??? but do not want this (or want pic0) if -non-shared? */
fprintf (stream, "\t%s\n", ABICALLS_ASM_OP);
+ /* This code exists so that we can put all externs before all symbol
+ references. This is necessary for the assembler's global pointer
+ optimizations to work. */
+ /* ??? Current versions of gas do not require that externs occur before
+ symbol references. This means that this code is unnecessary when
+ gas is being used. This gas feature hasn't been well tested as yet
+ though. */
if (TARGET_GP_OPT)
{
asm_out_data_file = stream;