From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21888 invoked by alias); 24 Oct 2013 15:42:55 -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 21831 invoked by uid 48); 24 Oct 2013 15:42:52 -0000 From: "vincent-gcc at vinc17 dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57994] Constant folding of infinity Date: Thu, 24 Oct 2013 15:42: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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-gcc at vinc17 dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: 4.9.0 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: 2013-10/txt/msg01770.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57994 --- Comment #22 from Vincent Lef=C3=A8vre -= -- (In reply to Paolo Carlini from comment #20) > Thus I clearly realize something: if we do better for mpfr, the issue > remains that if we do *not* optimize and constants are not propagated, we > issue library calls, which, for command line switches like -fno-math-errno > -funsafe-math-optimizations give incorrect nan result. Where does this nan come from? Do you mean that log(0) from the library giv= es nan on your machine instead of the correct -inf? For any 0 (as 0 is signed)? Are you sure that there is really a library call? >>From gcc-bugs-return-432627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 24 15:50:01 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30760 invoked by alias); 24 Oct 2013 15:50:01 -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 30720 invoked by uid 48); 24 Oct 2013 15:49:57 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58861] Realloc on assignment: Bogus "Array bound mismatch" error with -fcheck=bounds Date: Thu, 24 Oct 2013 15:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus 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: keywords cc short_desc Message-ID: In-Reply-To: References: 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: 2013-10/txt/msg01771.txt.bz2 Content-length: 959 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58861 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |burnus at gcc dot gnu.org Summary|No reallocation assignment |Realloc on assignment: |performed (due to different |Bogus "Array bound |kinds?) |mismatch" error with | |-fcheck=bounds --- Comment #1 from Tobias Burnus --- I can confirm the error message. However, the array seems to be properly allocated. Only -fcheck=bounds seems to mishandle this case. (There might be other PRs about this issue.) Thus, as work around: Don't compile that file with -fcheck=bounds.