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 c/88131] New: `gcc -S pp_assembly.S - o OutputFile.s` writes to STDOUT instead of `OutputFile.s`


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.)

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