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] fix -Xassembler and -Xpreprocessor


These options were added 2002-11-12.  Unfortunately, the original
implementation has a flaw, and they have never worked correctly.  The
flaw is that the options are always passed to the linker, in addition to
being passed to the assembler and preprocessor.

This is easy enough to fix.  We just need to ignore them in the second
argv scan loop in process_command, instead of adding them to the linker
command list.

I tested this by hand, using -v, to verify that the options now work as
expected.

I also tested this with a C and C++ x86-64 linux bootstrap and make
check regression test.  There were no regressions.

I have added the patch to mainline.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

Attachment: patch.Xassembler
Description: Text document


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