This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
- From: "loki at inf dot u-szeged dot hu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2004 08:42:37 -0000
- Subject: [Bug target/16624] New: [3.5.0 regression] [arm] segmentation fault on float accesses in the ?: operators' body
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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