public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-6219] Modula-2: Support '-isysroot [...]' Date: Wed, 6 Dec 2023 11:36:56 +0000 (GMT) [thread overview] Message-ID: <20231206113656.66D473857350@sourceware.org> (raw) https://gcc.gnu.org/g:fbacdeff9799f2915e3529d0266006f251ea8344 commit r14-6219-gfbacdeff9799f2915e3529d0266006f251ea8344 Author: Thomas Schwinge <thomas@codesourcery.com> Date: Tue Dec 5 09:54:54 2023 +0100 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. Diff: --- gcc/m2/lang.opt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/m2/lang.opt b/gcc/m2/lang.opt index 24f3c6594b9..a60c03e69d4 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
reply other threads:[~2023-12-06 11:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231206113656.66D473857350@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).