[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 8 09:59:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to xiehongbiao from comment #2)
> (In reply to Andrew Pinski from comment #1)
> > Double check that your -O2 is a capitalized O.  My bet it is not and really
> > you are producing a file called 2 instead.
> 
> Thanks for the reply Andrew. I'm sure that the test command is using -O2
> instead of "-o2".

It's really strange. Please append '-v' to command line and you should see
execution of 'as' and collect2. Do the intermediate files exist?


More information about the Gcc-bugs mailing list