[Bug driver/83016] New: gnat1: warning: command line option ‘-nostdinc++’ is valid for C++/ObjC++ but not for Ada
aldot at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 16 09:06:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83016
Bug ID: 83016
Summary: gnat1: warning: command line option ‘-nostdinc++’ is
valid for C++/ObjC++ but not for Ada
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: aldot at gcc dot gnu.org
CC: charlet at adacore dot com, derodat at adacore dot com,
ebotcazou at libertysurf dot fr
Target Milestone: ---
When bootstrapping trunk @253865 (for example, IIRC occurs since quite some
time now):
xg++ -c -gnatA -gnatWb -gnatiw -B/scratch/obj.x86_64/gcc-8.0.mine/./gcc/
-nostdinc++ -nostdinc++
-I/scratch/obj.x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/scratch/obj.x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/scratch/src/gcc-8.0.mine/libstdc++-v3/libsupc++
-I/scratch/src/gcc-8.0.mine/libstdc++-v3/include/backward
-I/scratch/src/gcc-8.0.mine/libstdc++-v3/testsuite/util
-B/scratch/obj.x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/scratch/obj.x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/opt/x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/bin/
-B/opt/x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/lib/ -isystem
/opt/x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/include -isystem
/opt/x86_64/gcc-8.0.mine/x86_64-pc-linux-gnu/sys-include -static-libstdc++
-static-libgcc -I- -I../rts -I. -I/scratch/src/gcc-8.0.mine/gcc/ada
-static-libstdc++ -static-libgcc -gnatws
/scratch/obj.x86_64/gcc-8.0.mine/gcc/ada/tools/b~gnatcmd.adb
gnat1: warning: command line option ‘-nostdinc++’ is valid for C++/ObjC++ but
not for Ada
ISTM the driver should filter out -nostdinc++ for ADA (or gnat1 should silently
ignore it)
More information about the Gcc-bugs
mailing list