[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
Thu Jan 9 12:07:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196
--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to xiehongbiao from comment #10)
> (In reply to Andrew Pinski from comment #8)
> > Can you also add -Wl,-v ; this will cause collect2 to print it runs?
>
> It reports error :"gcc: error: unrecognized command line option ‘-Wl’".
> Please let me know if I misunderstood. Thanks. Paste the details:
>
>
> jiaojiancheng@jiaojiancheng:~/test_compile$ gcc -O1 -pedantic
> -fomit-frame-pointer -m64 -Wl -v conftest.c
It must be '-Wl,-v' not '-Wl -v'.
More information about the Gcc-bugs
mailing list