> gcc --y gcc: no input files > gcc -y gcc: unrecognized option `-y' gcc: no input files
"--foo" is equivalent to "-ffoo". The meaning of -f options depends on the language to compile, which depends on the name of the input file.
Invalid as Andreas said already.
(In reply to comment #1) > "--foo" is equivalent to "-ffoo". The meaning of -f options depends on the > language to compile, which depends on the name of the input file. gcc -c test.c -o test.o gcc --y --blahhh -fuhhhh test.o -o test [test.c is some valid c-code] So, I'd say gcc ignores illegal double-dash(or -f..) command line options *if* the input file is named test.o!
the -f* flags (aka --*) get only passed to the real compiles, when the input file *.o that file gets passed to linker so the -f* flags do not get passed on.
So, this bug is impossible to fix, right?