public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3
@ 2008-06-19 6:54 laurent at guerby dot net
2008-06-19 6:55 ` [Bug ada/36575] " laurent at guerby dot net
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: laurent at guerby dot net @ 2008-06-19 6:54 UTC (permalink / raw)
To: gcc-bugs
When compiled with 4.2.4 at -O3 -gnato cg460011 passes:
,.,. C460011 ACATS 2.5 08-06-19 08:49:17
---- C460011 Check that conversion to a modular type raises
Constraint_Error when the operand value is outside the
base range of the modular type.
==== C460011 PASSED ============================.
Whereas when compiled at -O3 -gnato on 4.3.1 and 4.4 20080618 it fails:
,.,. C460011 ACATS 2.5 08-06-19 08:49:17
---- C460011 Check that conversion to a modular type raises
Constraint_Error when the operand value is outside the
base range of the modular type.
==== C460011 PASSED ============================.
To reproduce:
$ gnatchop ../../trunk/gcc/testsuite/ada/acats/support/rep*
../../trunk/gcc/testsuite/ada/acats/tests/c4/c460011.a
$ gnatmake -O3 -gnato c460011.adb
$ ./c460011
--
Summary: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at
-O3
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
GCC host triplet: x86_64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/36575] [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
@ 2008-06-19 6:55 ` laurent at guerby dot net
2008-06-21 16:33 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: laurent at guerby dot net @ 2008-06-19 6:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from laurent at guerby dot net 2008-06-19 06:54 -------
Ooops paster the wrong output, the FAILED message with 4.3.1/4.4 is:
,.,. C460011 ACATS 2.5 08-06-19 08:51:01
---- C460011 Check that conversion to a modular type raises
Constraint_Error when the operand value is outside the
base range of the modular type.
* C460011 Halfway => Big, 3.
* C460011 Halfway => Also_Big, 3.
* C460011 Halfway => Also_Big, -3.
**** C460011 FAILED ****************************.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/36575] [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
2008-06-19 6:55 ` [Bug ada/36575] " laurent at guerby dot net
@ 2008-06-21 16:33 ` rguenth at gcc dot gnu dot org
2008-06-22 11:04 ` jsm28 at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-21 16:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-06-21 16:33 -------
I would bet this is VRP triggered by more inlining.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/36575] [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
2008-06-19 6:55 ` [Bug ada/36575] " laurent at guerby dot net
2008-06-21 16:33 ` rguenth at gcc dot gnu dot org
@ 2008-06-22 11:04 ` jsm28 at gcc dot gnu dot org
2008-08-27 22:10 ` jsm28 at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-06-22 11:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jsm28 at gcc dot gnu dot org 2008-06-22 11:03 -------
Setting to P4 as an Ada bug, please restore to P3 if a C or C++ testcase is
found.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/36575] [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (2 preceding siblings ...)
2008-06-22 11:04 ` jsm28 at gcc dot gnu dot org
@ 2008-08-27 22:10 ` jsm28 at gcc dot gnu dot org
2008-09-26 8:44 ` [Bug ada/36575] [4.3/4.4 Regression] ACATS c460011 " ebotcazou at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-08-27 22:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2008-08-27 22:04 -------
4.3.2 is released, changing milestones to 4.3.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.3.2 |4.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/36575] [4.3/4.4 Regression] ACATS c460011 fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (3 preceding siblings ...)
2008-08-27 22:10 ` jsm28 at gcc dot gnu dot org
@ 2008-09-26 8:44 ` ebotcazou at gcc dot gnu dot org
2008-09-26 8:45 ` ebotcazou at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-09-26 8:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ebotcazou at gcc dot gnu dot org 2008-09-26 08:43 -------
Reproducible on x86.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC host triplet|x86_64-linux |
Last reconfirmed|0000-00-00 00:00:00 |2008-09-26 08:43:19
date| |
Summary|[4.3/4.4 Regression][Ada] |[4.3/4.4 Regression] ACATS
|ACATS c460011 runtime fails |c460011 fails at -O3
|at -O3 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/36575] [4.3/4.4 Regression] ACATS c460011 fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (4 preceding siblings ...)
2008-09-26 8:44 ` [Bug ada/36575] [4.3/4.4 Regression] ACATS c460011 " ebotcazou at gcc dot gnu dot org
@ 2008-09-26 8:45 ` ebotcazou at gcc dot gnu dot org
2008-09-26 9:26 ` ebotcazou at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-09-26 8:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ebotcazou at gcc dot gnu dot org 2008-09-26 08:43 -------
Investigating.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2008-09-26 08:43:19 |2008-09-26 08:43:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/36575] [4.3/4.4 Regression] ACATS c460011 fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (5 preceding siblings ...)
2008-09-26 8:45 ` ebotcazou at gcc dot gnu dot org
@ 2008-09-26 9:26 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:15 ` [Bug middle-end/36575] " ebotcazou at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-09-26 9:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2008-09-26 09:24 -------
> I would bet this is VRP triggered by more inlining.
It's constant-folding triggered by more inlining, this already fails at -O0:
procedure P is
type Unsigned_Over_8 is mod 2**8+2;
type Signed_Over_8 is range -200 .. 200;
procedure Assert(Truth: Boolean) is
begin
if not Truth then
raise Program_Error;
end if;
end;
type Decim is delta 0.1 digits 5;
Halfway : Decim := 2.5;
Neg_Half : Decim := -2.5;
Big : Unsigned_Over_8;
Also_Big : Signed_Over_8;
begin
Big := Unsigned_Over_8 (Halfway); -- Rounds up by 4.6(33).
Assert(Big = 3);
Also_Big := Signed_Over_8 (Halfway); -- Rounds up by 4.6(33).
Assert(Also_Big = 3);
Also_Big := Signed_Over_8 (Neg_Half); -- Rounds down by 4.6(33).
Assert(Also_Big = -3);
end;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/36575] [4.3/4.4 Regression] ACATS c460011 fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (6 preceding siblings ...)
2008-09-26 9:26 ` ebotcazou at gcc dot gnu dot org
@ 2008-09-28 15:15 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:16 ` ebotcazou at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-09-28 15:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from ebotcazou at gcc dot gnu dot org 2008-09-28 15:13 -------
Subject: Bug 36575
Author: ebotcazou
Date: Sun Sep 28 15:12:07 2008
New Revision: 140734
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140734
Log:
PR middle-end/36575
* fold-const (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
Added:
trunk/gcc/testsuite/gnat.dg/conv_decimal.adb
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/36575] [4.3/4.4 Regression] ACATS c460011 fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (7 preceding siblings ...)
2008-09-28 15:15 ` [Bug middle-end/36575] " ebotcazou at gcc dot gnu dot org
@ 2008-09-28 15:16 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:18 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:22 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-09-28 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from ebotcazou at gcc dot gnu dot org 2008-09-28 15:15 -------
Subject: Bug 36575
Author: ebotcazou
Date: Sun Sep 28 15:13:52 2008
New Revision: 140735
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140735
Log:
PR middle-end/36575
* fold-const (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gnat.dg/conv_decimal.adb
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/36575] [4.3/4.4 Regression] ACATS c460011 fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (8 preceding siblings ...)
2008-09-28 15:16 ` ebotcazou at gcc dot gnu dot org
@ 2008-09-28 15:18 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:22 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-09-28 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from ebotcazou at gcc dot gnu dot org 2008-09-28 15:16 -------
Subject: Bug 36575
Author: ebotcazou
Date: Sun Sep 28 15:15:16 2008
New Revision: 140736
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140736
Log:
PR middle-end/36575
* fold-const (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gnat.dg/conv_decimal.adb
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/fold-const.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/36575] [4.3/4.4 Regression] ACATS c460011 fails at -O3
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
` (9 preceding siblings ...)
2008-09-28 15:18 ` ebotcazou at gcc dot gnu dot org
@ 2008-09-28 15:22 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-09-28 15:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from ebotcazou at gcc dot gnu dot org 2008-09-28 15:20 -------
Thanks for reporting the problem.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36575
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-09-28 15:22 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-19 6:54 [Bug ada/36575] New: [4.3/4.4 Regression][Ada] ACATS c460011 runtime fails at -O3 laurent at guerby dot net
2008-06-19 6:55 ` [Bug ada/36575] " laurent at guerby dot net
2008-06-21 16:33 ` rguenth at gcc dot gnu dot org
2008-06-22 11:04 ` jsm28 at gcc dot gnu dot org
2008-08-27 22:10 ` jsm28 at gcc dot gnu dot org
2008-09-26 8:44 ` [Bug ada/36575] [4.3/4.4 Regression] ACATS c460011 " ebotcazou at gcc dot gnu dot org
2008-09-26 8:45 ` ebotcazou at gcc dot gnu dot org
2008-09-26 9:26 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:15 ` [Bug middle-end/36575] " ebotcazou at gcc dot gnu dot org
2008-09-28 15:16 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:18 ` ebotcazou at gcc dot gnu dot org
2008-09-28 15:22 ` ebotcazou at gcc dot gnu dot 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).