From: Eric Botcazou <ebotcazou@adacore.com>
To: Richard Biener <rguenther@suse.de>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH][20/n] Remove GENERIC stmt combining from SCCVN
Date: Sat, 12 Sep 2015 16:35:00 -0000 [thread overview]
Message-ID: <8641521.JK1D07Utdj@polaris> (raw)
In-Reply-To: <alpine.LSU.2.11.1507241400450.19642@zhemvz.fhfr.qr>
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
> * fold-const.c (fold_binary_loc): Move simplifying of comparisons
> against the highest or lowest possible integer ...
> * match.pd: ... as patterns here.
This incorrectly dropped the calls to omit_one_operand_loc, resulting in the
failure of the attached Ada test: if the operand has side effects, you cannot
replace the entire comparison with just 'true' or 'false'.
* gnat.dg/overflow_sum3.adb: New test.
--
Eric Botcazou
[-- Attachment #2: overflow_sum3.adb --]
[-- Type: text/x-adasrc, Size: 340 bytes --]
-- { dg-do run }
-- { dg-options "-gnato" }
procedure Overflow_Sum3 is
function Ident (I : Integer) return Integer is
begin
return I;
end;
X : Short_Short_Integer := Short_Short_Integer (Ident (127));
begin
if X+1 <= 127 then
raise Program_Error;
end if;
exception
when Constraint_Error => null;
end;
next prev parent reply other threads:[~2015-09-12 16:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 12:45 Richard Biener
2015-09-12 16:35 ` Eric Botcazou [this message]
2015-09-14 8:52 ` Richard Biener
2015-09-14 9:00 ` Richard Biener
2015-09-14 9:47 ` Eric Botcazou
2015-09-14 9:57 ` Richard Biener
2015-09-15 7:43 ` Eric Botcazou
2015-09-14 9:05 ` Eric Botcazou
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=8641521.JK1D07Utdj@polaris \
--to=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rguenther@suse.de \
/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: link
Be 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).