Commit a765d68e by Richard Sandiford Committed by Richard Sandiford

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
parent 4fe7e755
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> 2007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
* config/mips/mips.c (mips_output_mi_thunk): Use * config/mips/mips.c (mips_output_mi_thunk): Use
...@@ -7055,18 +7055,16 @@ mips_file_start (void) ...@@ -7055,18 +7055,16 @@ mips_file_start (void)
because in this way we can avoid creating an allocated section. We 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 do not want this section to take up any space in the running
executable. */ 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 /* There is no ELF header flag to distinguish long32 forms of the
EABI from long64 forms. Emit a special section to help tools EABI from long64 forms. Emit a special section to help tools
such as GDB. Do the same for o64, which is sometimes used with such as GDB. Do the same for o64, which is sometimes used with
-mlong64. */ -mlong64. */
if (mips_abi == ABI_EABI || mips_abi == ABI_O64) if (mips_abi == ABI_EABI || mips_abi == ABI_O64)
fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n", fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n"
TARGET_LONG64 ? 64 : 32); "\t.previous\n", TARGET_LONG64 ? 64 : 32);
/* Restore the default section. */
fprintf (asm_out_file, "\t.previous\n");
#ifdef HAVE_AS_GNU_ATTRIBUTE #ifdef HAVE_AS_GNU_ATTRIBUTE
fprintf (asm_out_file, "\t.gnu_attribute 4, %d\n", fprintf (asm_out_file, "\t.gnu_attribute 4, %d\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment