diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2023-12-05 09:54:54 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2023-12-06 12:36:15 +0100 |
commit | fbacdeff9799f2915e3529d0266006f251ea8344 (patch) | |
tree | ac71bc5c5a7647b22a1f9f63a8e1c0f03ef9c5a8 /gcc | |
parent | d7ceffab96ecd021d3e869dff33d0ad4b8577c4f (diff) | |
download | gcc-fbacdeff9799f2915e3529d0266006f251ea8344.zip gcc-fbacdeff9799f2915e3529d0266006f251ea8344.tar.gz gcc-fbacdeff9799f2915e3529d0266006f251ea8344.tar.bz2 |
Modula-2: Support '-isysroot [...]'
In GCC cross configurations (tested '--target=amdgcn-amdhsa' and
'--target=nvptx-none') with a sysroot configured, the 'gm2' driver invocations
are passed '--sysroot=[...]', which is translated into '-isysroot [...]' for
the 'cc1gm2' compiler invocation. The latter, however gets complained about:
cc1gm2: warning: command-line option ‘-isysroot [...]’ is valid for C/C++/D/Fortran/ObjC/ObjC++ but not for Modula-2
..., and therefore a ton of FAILs.
Reproducer (also for non-cross, native configurations):
$ build-gcc/gcc/gm2 -Bbuild-gcc/gcc -v --sysroot=/tmp -x modula-2 /dev/null
[...]
build-gcc/gcc/cc1gm2 [...] -isysroot [...]/tmp [...]
cc1gm2: warning: command-line option ‘-isysroot /tmp’ is valid for C/C++/D/Fortran/ObjC/ObjC++ but not for Modula-2
[...]
gcc/m2/
* lang.opt (-isysroot): New.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/m2/lang.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/m2/lang.opt b/gcc/m2/lang.opt index 24f3c65..a60c03e 100644 --- a/gcc/m2/lang.opt +++ b/gcc/m2/lang.opt @@ -405,6 +405,10 @@ iquote Modula-2 ; Documented in c.opt +isysroot +Modula-2 +; Documented in c.opt + isystem Modula-2 ; Documented in c.opt |