This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] config/i386/gas.h patch for -fverbose-asm


This fixes PR 17171.  -fverbose-asm fails with assembler errors for
i386-aout and i386-coff targets.  This is because ASM_COMMENT_START is
set to a line comment character '/'.  However, as of gcc-3.1,
-fverbose-asm emits comments after each line of assembly, and a line
comment character won't work there.  Line comment characters work only
when they are the first character of a line.  For gas, '#' is always a
regular comment character that works anywhere in the line, so changing
the i386/gas.h file to use '#' instead of '/' is safe, and solves the
bug.

I have checked in the attached patch.  This was tested with an i386-coff
cross compiler build from a combined tree.  It was hacked to use stabs
instead of sdb as the sdb support is currently broken.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

Attachment: patch.i386.gas
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]