gas-preprocessor icon indicating copy to clipboard operation
gas-preprocessor copied to clipboard

gcc option -fastf is not compatible with -E

Open make4ppc opened this issue 15 years ago • 1 comments

If gas-preprocessor.pl is invoked with a gcc command line that includes the -fastf option the assembled object file will have a mach-o header but no code, and there will be no error message.

It is possible other gcc options will be discovered to be incompatible with the -E option.

A possible fix may look like this:

@preprocess_c_cmd = grep(!/-fastf/, @preprocess_c_cmd);

make4ppc avatar Jul 14 '10 01:07 make4ppc

Simply removing all -f options should do the trick. None of them have any effect on the preprocessor or assembler anyway.

mansr avatar Jul 27 '10 17:07 mansr