This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/88131] New: `gcc -S pp_assembly.S - o OutputFile.s` writes to STDOUT instead of `OutputFile.s`
- From: "pskocik at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Nov 2018 10:34:07 +0000
- Subject: [Bug c/88131] New: `gcc -S pp_assembly.S - o OutputFile.s` writes to STDOUT instead of `OutputFile.s`
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88131
Bug ID: 88131
Summary: `gcc -S pp_assembly.S - o OutputFile.s` writes to
STDOUT instead of `OutputFile.s`
Product: gcc
Version: 7.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pskocik at gmail dot com
Target Milestone: ---
`gcc -S pp_assembly.S -o OutFile.s` or
`gcc -S pp_assembly.sx -o OutFile.s` or should behave the same as
`gcc -E pp_assembly.S -o OutFile.s` or `gcc -E pp_assembly.sx -o OutFile.s`
respectively but in the `-S` case, the `-o` option is ignored. (Clang does it
correctly.)