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

2020-07-22 Thread andreas.urban at hotmail dot com
: other Assignee: unassigned at gcc dot gnu.org Reporter: andreas.urban at hotmail dot com Target Milestone: --- Passing an empty string to GCC makes it look for a file named as such: $ gcc --version gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 $ gcc gcc: fatal error: no input

[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 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 Andreas Urban changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED