[RFC] Passing MIPS debug hints between gcc and gdb

Richard Sandiford richard@codesourcery.com
Mon Jun 12 11:07:00 GMT 2006


Fred Fish <fnf@specifix.com> writes:
> 2006-06-12  Fred Fish  <fnf@specifix.com>
>
> 	* config/mips/mips.c (mips_file_start): Create special section
> 	".gcc_compiled_longXX" for o64 ABI as well as EABI.

Applied.  I tweaked the comment to mention o64 as well, so for the
record, here's what went in.

Richard

Index: config/mips/mips.c
===================================================================
--- config/mips/mips.c	(revision 114565)
+++ config/mips/mips.c	(working copy)
@@ -5830,8 +5830,9 @@ mips_file_start (void)
 
       /* 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.  */
-      if (mips_abi == ABI_EABI)
+	 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);
 



More information about the Gcc-patches mailing list