From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22678 invoked by alias); 13 Feb 2014 12:57:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22632 invoked by uid 48); 13 Feb 2014 12:57:27 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/60165] "may be used uninitialized" warning with -O3 but not with -O2 Date: Thu, 13 Feb 2014 12:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse 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: Message-ID: In-Reply-To: References: 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-02/txt/msg01217.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60165 --- Comment #13 from Marc Glisse --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #10) > Now, I agree that ideally, GCC should warn for your last testcase. But I > guess in that case inlining either doesn't happen or it happens too late,= so > GCC only sees the first case. Actually it is the reverse, inlining happens earlier in this new testcase (= the first example was recursive, which makes the inliner more conservative). > The analysis that GCC performs are predicated > on the transformations leading to better code, otherwise they are not > performed. A tool for static analysis will surely inline as much as it > could, not matter if the code is slower or larger, but this is not how GCC > works because GCC is not a tool for static analysis. Maybe we could have a wiki page explaining what options to tweak (inlining parameters, etc) for a compilation where you are only interested in warning= s? (I had vaguely mentioned creating -Ow at some point, but that didn't seem s= uch a good idea) >>From gcc-bugs-return-443461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 13 13:00:03 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24808 invoked by alias); 13 Feb 2014 13:00:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24744 invoked by uid 48); 13 Feb 2014 12:59:54 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/60174] New: ICE on ACATS cc3305a Date: Thu, 13 Feb 2014 13:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de 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 Message-ID: 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-02/txt/msg01218.txt.bz2 Content-length: 3158 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60174 Bug ID: 60174 Summary: ICE on ACATS cc3305a Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: bernd.edlinger at hotmail dot de BUILD cc3305a.adb gnatmake --GCC="/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/xgcc -B/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/" -gnatws -O2 -gnat95 -I/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/testsuite/ada/acats/support cc3305a.adb -largs --GCC="/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/xgcc -B/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/" /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/xgcc -c -B/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ -gnatws -O2 -gnat95 -I/home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/testsuite/ada/acats/support cc3305a.adb Unable to coalesce ssa_names 34 and 399 which are marked as MUST COALESCE. i_34(ab) and i_399(ab) +===========================GNAT BUG DETECTED==============================+ | 4.9.0 20140209 (experimental) (armv7l-unknown-linux-gnueabihf) GCC error:| | SSA corruption | | Error detected around cc3305a.adb:35:1 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact gcc or gnatmake command that you entered. | | Also include sources listed below in gnatchop format | | (concatenated together with no headers between files). | +==========================================================================+ Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. Consider also -gnatd.n switch (see debug.adb). /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/system.ads cc3305a.adb /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/testsuite/ada/acats/support/report.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/s-soflin.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/ada.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/a-except.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/s-parame.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/s-stalib.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/a-unccon.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/s-traent.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/s-stache.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/s-stoele.ads /home/ed/gnu/gcc-build-arm-linux-gnueabihf/gcc/ada/rts/s-stoele.adb raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:432 gnatmake: "cc3305a.adb" compilation error FAIL: cc3305a cat LAST_UPDATED Obtained from SVN: trunk revision 207646