public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1
@ 2004-04-16 22:33 laurent at guerby dot net
2004-04-17 0:16 ` [Bug ada/14988] " laurent at guerby dot net
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: laurent at guerby dot net @ 2004-04-16 22:33 UTC (permalink / raw)
To: gcc-bugs
Various ACATS tests fail when compiled with optimizations, including cxg2006.
It looks like the problem comes from Long_Long_Float handling,
First LLF comes into play because System.Max_Digits is 18 on x86.
A reduced test case follows, it looks like a simple
aggregate used to represent long long complex
numbers fails to be initialized properly at -O1.
Interestingly the failure occurs only when using the
standard package, and not when trying to do things
by hand (you can try to uncomment GP+CP
or the direct Complex type declation and both works fine).
I also find the warning about "internal GNAT unit" suspicious,
so may be something is simply wrong with some generic handling
in the front-end.
$ gnatmake -O1 p.adb
gcc -c -O1 p.adb
p.adb:1:18: warning: "Ada.Numerics.Long_Long_Complex_Types" is an internal GNAT unit
p.adb:1:18: warning: use of this unit is non-portable and version-dependent
gnatbind -x p.ali
gnatlink p.ali
[guerby@pc gcc]$ ./p
raised PROGRAM_ERROR : p.adb:33 explicit raise
[guerby@pc gcc]$ cat p.adb
with Ada.Numerics.Long_Long_Complex_Types;
use Ada.Numerics.Long_Long_Complex_Types;
procedure P is
-- generic
-- type Real is digits <>;
-- package GP is
-- type Complex is record
-- Re, Im : Real'Base;
-- end record;
-- end GP;
-- package CP is new GP (Long_Long_Float);
-- use CP;
-- type Complex is record
-- Re, Im : Long_Long_Float;
-- end record;
function My_Argument (X : Complex) return Long_Long_Float is
begin
if X.Im = 0.0 then
return 0.0;
else
return 1.0;
end if;
end My_Argument;
Z : Complex := (0.0, 0.0);
X : Long_Long_Float;
procedure Oops is
begin
raise Program_Error;
end Oops;
begin
X := My_Argument (Z);
if X /= 0.0 then
Oops;
end if;
end P;
--
Summary: Analysis of ACATS cxg2006 failures at -O1
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
CC: gcc-bugs at gcc dot gnu dot org,laurent at guerby dot
net
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug ada/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
@ 2004-04-17 0:16 ` laurent at guerby dot net
2004-04-17 14:46 ` cvs-commit at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: laurent at guerby dot net @ 2004-04-17 0:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From laurent at guerby dot net 2004-04-16 21:46 -------
cxg2007 cxg2008 cxg2018 cxg2019 cxg2020 cxg2021 seems
to be related to long_long_float complex types (mis)handling at -O1 too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug ada/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
2004-04-17 0:16 ` [Bug ada/14988] " laurent at guerby dot net
@ 2004-04-17 14:46 ` cvs-commit at gcc dot gnu dot org
2004-04-17 15:18 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-17 14:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-17 12:14 -------
Subject: Bug 14988
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: guerby@gcc.gnu.org 2004-04-17 12:13:54
Modified files:
gcc/ada : ChangeLog impunit.adb
Log message:
2004-04-17 Laurent GUERBY <laurent@guerby.net>
PR ada/14988 (partial)
* impunit.adb: Fix typo.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&r1=1.481&r2=1.482
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/impunit.adb.diff?cvsroot=gcc&r1=1.12&r2=1.13
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug ada/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
2004-04-17 0:16 ` [Bug ada/14988] " laurent at guerby dot net
2004-04-17 14:46 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-17 15:18 ` pinskia at gcc dot gnu dot org
2004-04-17 16:05 ` laurent at guerby dot net
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-17 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-17 15:10 -------
So did the patch fix the bug or not, or did it just fix the warning?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug ada/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
` (2 preceding siblings ...)
2004-04-17 15:18 ` pinskia at gcc dot gnu dot org
@ 2004-04-17 16:05 ` laurent at guerby dot net
2004-04-17 16:08 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: laurent at guerby dot net @ 2004-04-17 16:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From laurent at guerby dot net 2004-04-17 15:43 -------
Just the warning unfortunately. This report should stay open
and be keyworded "wrong-code" once confirmed. Priority could be low
since the unoticed up to now warning shows that the number of users of this is
near zero :).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug ada/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
` (3 preceding siblings ...)
2004-04-17 16:05 ` laurent at guerby dot net
@ 2004-04-17 16:08 ` pinskia at gcc dot gnu dot org
2004-04-19 15:20 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-17 16:08 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug ada/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
` (4 preceding siblings ...)
2004-04-17 16:08 ` pinskia at gcc dot gnu dot org
@ 2004-04-19 15:20 ` pinskia at gcc dot gnu dot org
2004-04-21 17:38 ` ebotcazou at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-19 15:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-19 14:58 -------
Trusting Laurent on this one.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-04-19 14:58:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug ada/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
` (5 preceding siblings ...)
2004-04-19 15:20 ` pinskia at gcc dot gnu dot org
@ 2004-04-21 17:38 ` ebotcazou at gcc dot gnu dot org
2004-04-22 9:19 ` [Bug middle-end/14988] " ebotcazou at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-04-21 17:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-04-21 17:02 -------
The failure is also present at -O1 on the 3.4 branch. For the sake of
completeness, the failures on that branch at -O2 with --enable-checking are:
FAIL: c34005o
FAIL: c34007g
FAIL: c41325a
FAIL: c43205i
FAIL: c43214d
FAIL: c87b32a
FAIL: cxg2006
FAIL: cxg2007
FAIL: cxg2008
FAIL: cxg2018
FAIL: cxg2019
FAIL: cxg2020
FAIL: cxg2021
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
` (6 preceding siblings ...)
2004-04-21 17:38 ` ebotcazou at gcc dot gnu dot org
@ 2004-04-22 9:19 ` ebotcazou at gcc dot gnu dot org
2004-05-02 13:46 ` cvs-commit at gcc dot gnu dot org
2004-05-02 13:48 ` ebotcazou at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-04-22 9:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-04-22 08:10 -------
This is a middle-end problem and it is responsible for all the cxg20?? failures.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |normal
Component|ada |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
` (7 preceding siblings ...)
2004-04-22 9:19 ` [Bug middle-end/14988] " ebotcazou at gcc dot gnu dot org
@ 2004-05-02 13:46 ` cvs-commit at gcc dot gnu dot org
2004-05-02 13:48 ` ebotcazou at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-02 13:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-02 13:46 -------
Subject: Bug 14988
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: ebotcazou@gcc.gnu.org 2004-05-02 13:46:24
Modified files:
gcc : ChangeLog function.c
Log message:
PR middle-end/14988
* function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
when passed -2 as 'align'.
(put_var_into_stack): Use 'bool' as the type for the three local
predicates. Adjust calls to put_reg_into_stack.
When passed a CONCAT, instruct put_reg_into_stack to use
a consecutive stack slot for the second part.
(put_reg_into_stack): Remove 'promoted_mode' parameter, add
'consecutive_p' parameter. Turn the three predicates into 'bool'
parameters. Retrieve the register mode from 'reg'.
When consecutive_p is true, instruct assign_stack_local_1 to use
BITS_PER_UNIT alignment.
(put_addressof_into_stack): Use 'bool' as the type for the two
local predicates. Adjust call to put_reg_into_stack.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3551&r2=2.3552
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&r1=1.514&r2=1.515
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/14988] Analysis of ACATS cxg2006 failures at -O1
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
` (8 preceding siblings ...)
2004-05-02 13:46 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-02 13:48 ` ebotcazou at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-05-02 13:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-05-02 13:48 -------
See http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01601.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14988
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-05-02 13:48 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-16 22:33 [Bug ada/14988] New: Analysis of ACATS cxg2006 failures at -O1 laurent at guerby dot net
2004-04-17 0:16 ` [Bug ada/14988] " laurent at guerby dot net
2004-04-17 14:46 ` cvs-commit at gcc dot gnu dot org
2004-04-17 15:18 ` pinskia at gcc dot gnu dot org
2004-04-17 16:05 ` laurent at guerby dot net
2004-04-17 16:08 ` pinskia at gcc dot gnu dot org
2004-04-19 15:20 ` pinskia at gcc dot gnu dot org
2004-04-21 17:38 ` ebotcazou at gcc dot gnu dot org
2004-04-22 9:19 ` [Bug middle-end/14988] " ebotcazou at gcc dot gnu dot org
2004-05-02 13:46 ` cvs-commit at gcc dot gnu dot org
2004-05-02 13:48 ` 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).