aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2007-09-17 23:11:25 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-09-17 23:11:25 +0000
commita765d68e7584986e90b901e453e18c3aa34f9560 (patch)
treefccadee24eed6a896b7cbcd207937d289b92913b /gcc
parent4fe7e75560bf9c04b27130f1fa2a737323cf9590 (diff)
downloadgcc-a765d68e7584986e90b901e453e18c3aa34f9560.zip
gcc-a765d68e7584986e90b901e453e18c3aa34f9560.tar.gz
gcc-a765d68e7584986e90b901e453e18c3aa34f9560.tar.bz2
mips.c (mips_file_start): Add ".previous" directives to both ".section"s.
gcc/ * config/mips/mips.c (mips_file_start): Add ".previous" directives to both ".section"s. From-SVN: r128562
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c10
2 files changed, 9 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3c57479..6e8285f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
+
+ * config/mips/mips.c (mips_file_start): Add ".previous" directives
+ to both ".section"s.
+
2007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
* config/mips/mips.c (mips_output_mi_thunk): Use
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index b285572..6a4a1d9 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -7055,18 +7055,16 @@ mips_file_start (void)
because in this way we can avoid creating an allocated section. We
do not want this section to take up any space in the running
executable. */
- fprintf (asm_out_file, "\t.section .mdebug.%s\n", abi_string);
+ fprintf (asm_out_file, "\t.section .mdebug.%s\n\t.previous\n",
+ abi_string);
/* There is no ELF header flag to distinguish long32 forms of the
EABI from long64 forms. Emit a special section to help tools
such as GDB. Do the same for o64, which is sometimes used with
-mlong64. */
if (mips_abi == ABI_EABI || mips_abi == ABI_O64)
- fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n",
- TARGET_LONG64 ? 64 : 32);
-
- /* Restore the default section. */
- fprintf (asm_out_file, "\t.previous\n");
+ fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n"
+ "\t.previous\n", TARGET_LONG64 ? 64 : 32);
#ifdef HAVE_AS_GNU_ATTRIBUTE
fprintf (asm_out_file, "\t.gnu_attribute 4, %d\n",