public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "Denis.Excoffier at airbus dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/48439] New: gcc fails to resume the normal treatment when -isystem has finished Date: Mon, 04 Apr 2011 20:28:00 -0000 [thread overview] Message-ID: <bug-48439-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48439 Summary: gcc fails to resume the normal treatment when -isystem has finished Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: driver AssignedTo: unassigned@gcc.gnu.org ReportedBy: Denis.Excoffier@airbus.com A command line with both `-fbranch-target-load-optimize' and `-fbranch-target-load-optimize2' is typically a mistake. This mistake should not be reported when found from within a directory included using -isystem (it is not). However, it should be reported when found from within the main file. See below: the fourth (and last) command line should produce the same message as for the second one. % % cat a.cc #if defined(INCLUDED) #include <c1.h> #endif void a() {} % % cat c1.h class c1 { ~c1(void); }; c1::~c1(void) {} % % gcc --version | head -1 gcc (GCC) 4.6.0 % % set o = "-O -Werror -fbranch-target-load-optimize -fbranch-target-load-optimize2" % % gcc -o a.o -UINCLUDED -I . $o -c a.cc a.cc: In function 'void a()': a.cc:4:11: error: branch target register load optimization is not intended to be run twice [-Werror] cc1plus: all warnings being treated as errors % gcc -o a.o -UINCLUDED -isystem . $o -c a.cc a.cc: In function 'void a()': a.cc:4:11: error: branch target register load optimization is not intended to be run twice [-Werror] cc1plus: all warnings being treated as errors % gcc -o a.o -DINCLUDED -I . $o -c a.cc In file included from a.cc:2:0: ./c1.h: In destructor 'c1::~c1()': ./c1.h:4:16: error: branch target register load optimization is not intended to be run twice [-Werror] cc1plus: all warnings being treated as errors % gcc -o a.o -DINCLUDED -isystem . $o -c a.cc % ls a.o a.o % I'm not so proud of this bug, sorry for it.
next reply other threads:[~2011-04-04 20:28 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-04-04 20:28 Denis.Excoffier at airbus dot com [this message] 2011-04-05 5:16 ` [Bug driver/48439] " Denis.Excoffier at airbus dot com 2021-08-28 4:37 ` [Bug middle-end/48439] " pinskia at gcc dot gnu.org
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=bug-48439-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).