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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
No idea why the documentation suggests the -c there, without it it works just
fine.
With -S too, it actually calls cc1 with -o help-dummy.s but doesn't actually
emit there anything into that file (nor, if it exists previously, removes it or
modifies it).
With -E it actually fails:
./xgcc -B ./ -E -Q -O --help=optimizers
cc1: fatal error: help-dummy: No such file or directory
compilation terminated.
I wonder if we shouldn't treat -E as -S and -c as no -E/-S/-c with these help
options, which is IMHO the best thing.  Without -E/-S/-c, cc1 is executed with
say -o /tmp/cc7Z9tXX.s but doesn't write that file, and as is executed with
-o /tmp/cc4DJDCT.o /tmp/cc7Z9tXX.s and all the temporary files are removed
afterwards.

Reply via email to