public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61562] New: Compiler crash when combining -Wstrict-overflow=4 -O2
@ 2014-06-19 14:13 zweije at xs4all dot nl
2014-06-19 17:11 ` [Bug middle-end/61562] " manu at gcc dot gnu.org
2021-12-24 21:08 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: zweije at xs4all dot nl @ 2014-06-19 14:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61562
Bug ID: 61562
Summary: Compiler crash when combining -Wstrict-overflow=4 -O2
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zweije at xs4all dot nl
Created attachment 32974
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32974&action=edit
Test output
gcc-4.9 crashes when combining -Wstrict-overflow=4 and -O2 on the following
code snippet:
void f() {
unsigned char x = 0;
(x * 185) % 256;
}
Also crashes when compiled as .cpp.
Test output attached.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/61562] Compiler crash when combining -Wstrict-overflow=4 -O2
2014-06-19 14:13 [Bug c++/61562] New: Compiler crash when combining -Wstrict-overflow=4 -O2 zweije at xs4all dot nl
@ 2014-06-19 17:11 ` manu at gcc dot gnu.org
2021-12-24 21:08 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: manu at gcc dot gnu.org @ 2014-06-19 17:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61562
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-06-19
CC| |iant at google dot com,
| |manu at gcc dot gnu.org
Component|c |middle-end
Ever confirmed|0 |1
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Also in trunk.
if (strict_overflow_p)
fold_overflow_warning (("assuming signed overflow does not "
"occur when simplifying "
"X % (power of two)"),
WARN_STRICT_OVERFLOW_MISC);
The % should probably be %%.
Everybody (even people that do not need approval) should add testcases when
adding new warnings and errors.
>From gcc-bugs-return-454562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 19 18:18:55 2014
Return-Path: <gcc-bugs-return-454562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20099 invoked by alias); 19 Jun 2014 18:18:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20043 invoked by uid 48); 19 Jun 2014 18:18:48 -0000
From: "rth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/61565] New: ICE building libjava/interpret.cc
Date: Thu, 19 Jun 2014 18:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created
Message-ID: <bug-61565-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-06/txt/msg01644.txt.bz2
Content-length: 1225
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61565
Bug ID: 61565
Summary: ICE building libjava/interpret.cc
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: rth at gcc dot gnu.org
Created attachment 32976
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32976&action=edit
preprocessed file
$ cc1plus -quiet -O2 -fPIC -fnon-call-exceptions interpret.ii
../../../git-rh/libjava/interpret.cc: In static member function ‘static void
_Jv_InterpMethod::run(void*, ffi_java_raw*, _Jv_InterpMethod*)’:
../../../git-rh/libjava/interpret.cc:991:1: error: missing REG_EH_REGION note
at the end of bb 961
}
^
../../../git-rh/libjava/interpret.cc:991:1: error: missing REG_EH_REGION note
at the end of bb 944
../../../git-rh/libjava/interpret.cc:991:1: internal compiler error:
verify_flow_info failed
0x8282f3 verify_flow_info()
../../git-rh/gcc/cfghooks.c:260
0xac52bb execute_function_todo
../../git-rh/gcc/passes.c:1789
0xac5bcb execute_todo
../../git-rh/gcc/passes.c:1834
>From gcc-bugs-return-454563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 19 18:28:18 2014
Return-Path: <gcc-bugs-return-454563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26294 invoked by alias); 19 Jun 2014 18:28:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 26249 invoked by uid 48); 19 Jun 2014 18:28:14 -0000
From: "kumba at gentoo dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61538] g++ compiled binary, linked to glibc libpthread, hangs on SGI MIPS R1x000 systems on Linux
Date: Thu, 19 Jun 2014 18:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: kumba at gentoo dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61538-4-NrJysPMnsp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61538-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61538-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-06/txt/msg01645.txt.bz2
Content-length: 212
https://gcc.gnu.org/bugzilla/show_bug.cgi?ida538
--- Comment #9 from Joshua Kinard <kumba at gentoo dot org> ---
Rebuilt/upgraded to gcc-4.8.3 against the patched glibc-2.19, and I am still
getting the hang.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/61562] Compiler crash when combining -Wstrict-overflow=4 -O2
2014-06-19 14:13 [Bug c++/61562] New: Compiler crash when combining -Wstrict-overflow=4 -O2 zweije at xs4all dot nl
2014-06-19 17:11 ` [Bug middle-end/61562] " manu at gcc dot gnu.org
@ 2021-12-24 21:08 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-24 21:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61562
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |6.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 6 by removal of the warning via r6-1114.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-24 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-19 14:13 [Bug c++/61562] New: Compiler crash when combining -Wstrict-overflow=4 -O2 zweije at xs4all dot nl
2014-06-19 17:11 ` [Bug middle-end/61562] " manu at gcc dot gnu.org
2021-12-24 21:08 ` pinskia at gcc dot gnu.org
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).