From a765d68e7584986e90b901e453e18c3aa34f9560 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 17 Sep 2007 23:11:25 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c574791cc8..6e8285f837f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-09-18 Richard Sandiford + + * config/mips/mips.c (mips_file_start): Add ".previous" directives + to both ".section"s. + 2007-09-17 Richard Sandiford * config/mips/mips.c (mips_output_mi_thunk): Use diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index b2855721a6f..6a4a1d90ff3 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", -- 2.30.2