This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked
- From: "wilson at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Apr 2005 20:49:06 -0000
- Subject: [Bug driver/21112] New: Xassebler and Xpreprocessor have never (?) worked
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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