public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
@ 2004-07-19 8:42 loki at inf dot u-szeged dot hu
2004-07-19 18:50 ` [Bug target/16624] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: loki at inf dot u-szeged dot hu @ 2004-07-19 8:42 UTC (permalink / raw)
To: gcc-bugs
There is something wrong with the float access when the ?: operators are
used on arm. If the body of the ?: operators contain float variables the
compiler'll drop some errors.
I made several crosscompiler, and I only found that arm-*-linux
doesn't handle the following c code:
float a;
void foo(float b) {
a = (b > 0 ? 1 : (b < 0 ? -1 : 0));
}
Command line (arm-linux-gcc (GCC) 3.5.0 20040718):
arm-linux-gcc -c -O1 foo.i
Output:
foo.i: In function `foo':
foo.i:6: internal compiler error: in elim_reg_cond, at flow.c:3244
--
Summary: [3.5.0 regression] [arm] segmentation fault on float
accesses in the ?: operators' body
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: loki at inf dot u-szeged dot hu
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: arm-unknown-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16624
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16624] [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
2004-07-19 8:42 [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body loki at inf dot u-szeged dot hu
@ 2004-07-19 18:50 ` pinskia at gcc dot gnu dot org
2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-19 18:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-19 18:50 -------
Actually it looks like more optimization before getting to RTL causes this to changed into what the ICE
is for PR 15068.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |15068
Keywords| |ice-on-valid-code
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16624
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16624] [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
2004-07-19 8:42 [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body loki at inf dot u-szeged dot hu
2004-07-19 18:50 ` [Bug target/16624] " pinskia at gcc dot gnu dot org
@ 2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
2004-08-02 16:54 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-02 16:52 UTC (permalink / raw)
To: gcc-bugs
--
Bug 16624 depends on bug 15068, which changed state.
Bug 15068 Summary: ICE in elim_reg_cond
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15068
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16624
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16624] [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
2004-07-19 8:42 [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body loki at inf dot u-szeged dot hu
2004-07-19 18:50 ` [Bug target/16624] " pinskia at gcc dot gnu dot org
2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
@ 2004-08-02 16:54 ` pinskia at gcc dot gnu dot org
2004-08-03 13:35 ` loki at inf dot u-szeged dot hu
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-02 16:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-02 16:54 -------
Can you try this again as PR 15068 is fixed?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16624
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16624] [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
2004-07-19 8:42 [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body loki at inf dot u-szeged dot hu
` (2 preceding siblings ...)
2004-08-02 16:54 ` pinskia at gcc dot gnu dot org
@ 2004-08-03 13:35 ` loki at inf dot u-szeged dot hu
2004-08-18 15:59 ` pinskia at gcc dot gnu dot org
2004-09-01 10:49 ` rearnsha at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: loki at inf dot u-szeged dot hu @ 2004-08-03 13:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From loki at inf dot u-szeged dot hu 2004-08-03 13:35 -------
(In reply to comment #2)
> Can you try this again as PR 15068 is fixed?
Yep. The test case which I sent is fixed, BUT there is another regression. See
the following:
Second test case:
double
foo(double x, double y)
{
return (x >= 1 ? 0 : 1 - x)/y;
}
Cmd line (2004-08-03 08:00:00 UTC):
arm-linux-gcc -c -O1 -o foo2.o foo2.i
Output:
foo2.i: In function `foo':
foo2.i:5: internal compiler error: in elim_reg_cond, at flow.c:3247
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16624
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16624] [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
2004-07-19 8:42 [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body loki at inf dot u-szeged dot hu
` (3 preceding siblings ...)
2004-08-03 13:35 ` loki at inf dot u-szeged dot hu
@ 2004-08-18 15:59 ` pinskia at gcc dot gnu dot org
2004-09-01 10:49 ` rearnsha at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-18 15:59 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-18 15:59:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16624
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16624] [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
2004-07-19 8:42 [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body loki at inf dot u-szeged dot hu
` (4 preceding siblings ...)
2004-08-18 15:59 ` pinskia at gcc dot gnu dot org
@ 2004-09-01 10:49 ` rearnsha at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-09-01 10:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-09-01 10:49 -------
I think I've now fixed all the remaining cases. Please re-open or refile if you
find any further problems.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16624
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-01 10:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-19 8:42 [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body loki at inf dot u-szeged dot hu
2004-07-19 18:50 ` [Bug target/16624] " pinskia at gcc dot gnu dot org
2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
2004-08-02 16:54 ` pinskia at gcc dot gnu dot org
2004-08-03 13:35 ` loki at inf dot u-szeged dot hu
2004-08-18 15:59 ` pinskia at gcc dot gnu dot org
2004-09-01 10:49 ` rearnsha 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).