This is the mail archive of the gcc-bugs@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]

[Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked


The Xassembler and Xpreprocessor options don't work.  They accidentally pass
options to the linker in addition to the assembler and preprocessor.

For example, on linux, the assembler ignores the -D option, but the linker does
not.  If I try using -Xassembler to pass the -D option to the assembler, I get a
linker error.
aretha$ ./xgcc -B./ -Xassembler -D tmp.c
/usr/bin/ld: unrecognized option '-D'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

Adding the -v option confirms that -D got passed to both the assembler and the
linker, which is wrong.

The -Xpreprocessor option has the same implementation as -Xassembler, and hence
the same problem.

-- 
           Summary: Xassebler and Xpreprocessor have never (?) worked
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wilson at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21112


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