Bug 31089 - gccspec.c doesn't handle -x options
Summary: gccspec.c doesn't handle -x options
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: driver (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 19:36 UTC by Geoff Keating
Modified: 2023-03-20 22:50 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2023-03-20 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Keating 2007-03-08 19:36:21 UTC
gccspec.c assumes that it can detect Objective-C files because they have a .m extension, but a user can pass '-ObjC' or '-x objective-c' or '-x c' to override the extension.
Comment 1 Andrew Pinski 2007-03-19 09:14:50 UTC
Confirmed, via a dicussion that is going on the gnustep mailing list.  The reason why most people don't see an issue with this anymore is because Linux uses --as-needed option to the linker.
Comment 2 Andrew Pinski 2023-03-20 22:50:11 UTC
The file is now c/gccspec.cc but the check there is still the same for .m/.mi and does not check for -x or -ObjC