https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123558
Bug ID: 123558
Summary: -Fdir option should be darwin only
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
Under Darwin Options, the manual lists:
-Fdir
Add the framework directory dir to the head of the list of directories to
be
searched for header files. These directories are interleaved with those
specified
by -I options and are scanned in a left-to-right order.
The -Fdir option is silently ignored on non-darwin targets, and even on darwin
if you happen to use it by mistake, e.g. using -FPIC instead of -fPIC, it's
silently ignored.
Although ignoring non-existent dirs is the default, there's no
-Wmissing-include-dirs for the -F option, and the fact that it's easy to typo
-fPIC or -fopenmp with -F suggests that maybe we want to handle this a bit
differently.
Maybe it should warn with -Wmissing-include-dirs ?
Maybe it should be rejected on non-darwin targets?