This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Don't write ASM_APP_OFF with -dA and -dP
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 22 Nov 2008 23:19:46 +0100
- Subject: Don't write ASM_APP_OFF with -dA and -dP
-dA and -dP are like -fverbose-asm in that they cause comments to be
written to the assembler file, so they should inhibit writing
ASM_APP_OFF as well. Tested on m68k-linux and checked in as obvious.
Andreas.
2008-11-22 Andreas Schwab <schwab@suse.de>
* varasm.c (default_file_start): Suppress ASM_APP_OFF also with
-dA and -dP.
Index: gcc/varasm.c
===================================================================
--- gcc/varasm.c (revision 142124)
+++ gcc/varasm.c (working copy)
@@ -6394,7 +6394,8 @@ default_internal_label (FILE *stream, co
void
default_file_start (void)
{
- if (targetm.file_start_app_off && !flag_verbose_asm)
+ if (targetm.file_start_app_off
+ && !(flag_verbose_asm || flag_debug_asm || flag_dump_rtl_in_asm))
fputs (ASM_APP_OFF, asm_out_file);
if (targetm.file_start_file_directive)
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."