public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails
@ 2005-04-13 21:27 jsm28 at gcc dot gnu dot org
2005-04-13 21:42 ` [Bug tree-optimization/21004] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-04-13 21:27 UTC (permalink / raw)
To: gcc-bugs
The new test gcc.dg/builtins-53.c fails on hppa{2.0w,64}-hp-hpux11.{11,23}:
builtins-53.c: In function 'test1f':
builtins-53.c:46: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This is a regression from 4.0.
gcc-testresults also shows it failing on mips-sgi-irix6.5,
powerpc-unknown-eabispe and i686-pc-cygwin. I don't know whether this is the
same failure.
--
Summary: [4.1 Regression] gcc.dg/builtins-53.c fails
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,uros at kss-loka dot si
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
@ 2005-04-13 21:42 ` pinskia at gcc dot gnu dot org
2005-04-13 21:47 ` jsm28 at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 21:42 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |ice-on-valid-code
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
2005-04-13 21:42 ` [Bug tree-optimization/21004] " pinskia at gcc dot gnu dot org
@ 2005-04-13 21:47 ` jsm28 at gcc dot gnu dot org
2005-04-14 1:28 ` hp at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-04-13 21:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-04-13 21:47 -------
Suspect patch:
2005-04-09 Uros Bizjak <uros@kss-loka.si>
* builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
(BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
* optabs.h (enum optab_index): Add new OTI_lfloor.
(lfloor_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize lfloor_optab.
* genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
and lfloordi2 patterns.
* builtins.c (expand_builtin_int_roundingfn): New prototype.
(expand_builtin_int_roundingfn): New function.
(fold_builtin_int_roundingfn): New prototype.
(fold_builtin_int_roundingfn): New function, renamed from
fold_builtin_lround.
Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
(fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
(mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
(expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
* convert.c (convert_to_integer): Convert (long int)floor{,f,l},
into lfloor built-in function and (long long int)floor{,f,l} into
llfloor built-in function.
* fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
BUILT_IN_LLFLOOR.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
2005-04-13 21:42 ` [Bug tree-optimization/21004] " pinskia at gcc dot gnu dot org
2005-04-13 21:47 ` jsm28 at gcc dot gnu dot org
@ 2005-04-14 1:28 ` hp at gcc dot gnu dot org
2005-04-14 5:52 ` uros at kss-loka dot si
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-04-14 1:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hp at gcc dot gnu dot org 2005-04-14 01:27 -------
Also fails on cris-elf and mmix-knuth-mmixware with the same message in the log.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-14 01:27:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-04-14 1:28 ` hp at gcc dot gnu dot org
@ 2005-04-14 5:52 ` uros at kss-loka dot si
2005-04-14 5:55 ` uros at kss-loka dot si
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: uros at kss-loka dot si @ 2005-04-14 5:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From uros at kss-loka dot si 2005-04-14 05:52 -------
*** Bug 21009 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-04-14 5:52 ` uros at kss-loka dot si
@ 2005-04-14 5:55 ` uros at kss-loka dot si
2005-04-14 12:37 ` uros at kss-loka dot si
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: uros at kss-loka dot si @ 2005-04-14 5:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From uros at kss-loka dot si 2005-04-14 05:55 -------
I susupect the bug to be in expand_builtin_int_roundingfn(). It looks that
tmp = gen_reg_rtx(floatmode);
is needed before
tmp = expand_builtin_mathfn (exp, NULL_RTX, NULL_RTX);
It is somehow annoying fact that everything works OK on i686-pc-linux-gnu.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |uros at kss-loka dot si
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-04-14 01:27:58 |2005-04-14 05:55:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-04-14 5:55 ` uros at kss-loka dot si
@ 2005-04-14 12:37 ` uros at kss-loka dot si
2005-04-15 5:44 ` cvs-commit at gcc dot gnu dot org
2005-04-15 7:42 ` uros at kss-loka dot si
7 siblings, 0 replies; 9+ messages in thread
From: uros at kss-loka dot si @ 2005-04-14 12:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From uros at kss-loka dot si 2005-04-14 12:37 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01568.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-04-14 12:37 ` uros at kss-loka dot si
@ 2005-04-15 5:44 ` cvs-commit at gcc dot gnu dot org
2005-04-15 7:42 ` uros at kss-loka dot si
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-15 5:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-15 05:44 -------
Subject: Bug 21004
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: uros@gcc.gnu.org 2005-04-15 05:43:57
Modified files:
gcc : ChangeLog convert.c builtins.c
gcc/testsuite : ChangeLog
gcc/testsuite/gcc.dg: builtins-53.c
Log message:
PR tree-optimization/21004
* convert.c (convert_to_integer): Convert ceilf, ceill, floorf
and floorl in c99 mode only.
* builtins.c (expand_builtin_int_roundingfn): Assert that
fallback_fndecl is not NULL_TREE.
testsuite:
PR tree-optimization/21004
* gcc.dg/builtins-53.c: Include builtins-config.h.
Check floorf, ceilf, floorl and ceill transformations
only when HAVE_C99_RUNTIME is defined.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8301&r2=2.8302
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/convert.c.diff?cvsroot=gcc&r1=1.60&r2=1.61
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&r1=1.453&r2=1.454
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5353&r2=1.5354
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/builtins-53.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/21004] [4.1 Regression] gcc.dg/builtins-53.c fails
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-04-15 5:44 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-15 7:42 ` uros at kss-loka dot si
7 siblings, 0 replies; 9+ messages in thread
From: uros at kss-loka dot si @ 2005-04-15 7:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From uros at kss-loka dot si 2005-04-15 07:42 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21004
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-04-15 7:42 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 21:27 [Bug tree-optimization/21004] New: [4.1 Regression] gcc.dg/builtins-53.c fails jsm28 at gcc dot gnu dot org
2005-04-13 21:42 ` [Bug tree-optimization/21004] " pinskia at gcc dot gnu dot org
2005-04-13 21:47 ` jsm28 at gcc dot gnu dot org
2005-04-14 1:28 ` hp at gcc dot gnu dot org
2005-04-14 5:52 ` uros at kss-loka dot si
2005-04-14 5:55 ` uros at kss-loka dot si
2005-04-14 12:37 ` uros at kss-loka dot si
2005-04-15 5:44 ` cvs-commit at gcc dot gnu dot org
2005-04-15 7:42 ` uros at kss-loka dot si
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).