[Bug other/96287] Empty string argument to gcc should be ignored

2020-07-22 Thread andreas.urban at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96287 Andreas Urban changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug other/96287] Empty string argument to gcc should be ignored

2020-07-22 Thread andreas.urban at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96287 --- Comment #4 from Andreas Urban --- Looking closer at how Perl exec works, along with join on empty strings and variable, there would seem to be no problem: exec 'gcc', join(' ', @cppflags, @cflags, '-o', '$@', '$<') There may be one or two t

[Bug other/96287] Empty string argument to gcc should be ignored

2020-07-22 Thread andreas.urban at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96287 --- Comment #3 from Andreas Urban --- (In reply to Jonathan Wakely from comment #1) > Ignoring it could lead to equally undesirable behaviour though. > > for file in *.cc ; do gcc "$fil" ; done > > Don't those languages support something like t

[Bug other/96287] Empty string argument to gcc should be ignored

2020-07-22 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96287 --- Comment #2 from Andreas Schwab --- If you pass a non-file-name where a file name is expected you are doing something wrong, and you need to fix *that*. Hiding errors is doing a disservice.

[Bug other/96287] Empty string argument to gcc should be ignored

2020-07-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96287 --- Comment #1 from Jonathan Wakely --- Ignoring it could lead to equally undesirable behaviour though. for file in *.cc ; do gcc "$fil" ; done Don't those languages support something like the Bourne shell's "$@" which does the right thing?