* [Bug middle-end/12085] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
@ 2003-08-28 1:21 ` pinskia at gcc dot gnu dot org
2003-08-28 4:20 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-28 1:21 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/12085] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
2003-08-28 1:21 ` [Bug middle-end/12085] " pinskia at gcc dot gnu dot org
@ 2003-08-28 4:20 ` pinskia at gcc dot gnu dot org
2003-08-28 15:23 ` dhollen at mosis dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-28 4:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-28 04:20 -------
Can you read http://gcc.gnu.org/bugs.html and provide the preprocessed source file?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/12085] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
2003-08-28 1:21 ` [Bug middle-end/12085] " pinskia at gcc dot gnu dot org
2003-08-28 4:20 ` pinskia at gcc dot gnu dot org
@ 2003-08-28 15:23 ` dhollen at mosis dot org
2003-08-28 15:36 ` [Bug c/12085] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: dhollen at mosis dot org @ 2003-08-28 15:23 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
------- Additional Comments From dhollen at mosis dot org 2003-08-28 15:23 -------
Here is the preprocessed source code to reproduce the bug
(could not create a new attachement - it always told me that I
did not specify a file to attach).
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
extern void testme(char *);
extern int value(int);
void testme(char * s) {
double d;
d = ((double (*) (double)) value)(d);
}
int value(int arg) {
return arg;
}
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (2 preceding siblings ...)
2003-08-28 15:23 ` dhollen at mosis dot org
@ 2003-08-28 15:36 ` pinskia at gcc dot gnu dot org
2003-08-29 16:35 ` [Bug optimization/12085] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-28 15:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Component|middle-end |c
Ever Confirmed| |1
GCC build triplet|sparc-sun-solaris2.8 |
GCC host triplet|sparc-sun-solaris2.8 |
GCC target triplet|sparc-sun-solaris2.8 |
Last reconfirmed|0000-00-00 00:00:00 |2003-08-28 15:36:40
date| |
Summary|Internal compiler error in |[3.3/3.4 Regression]
|convert_move, at expr.c:504 |Internal compiler error in
|with -O3 flag |convert_move, at expr.c:504
| |with -O3 flag
Target Milestone|--- |3.3.2
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-28 15:36 -------
I do not know if it is a middle-end problem or a c front-end problem
I can confirm this on the mainline (20030828).
>From Phil's regression hunter: Search converges between 2001-11-11-trunk (#45) and 2001-11-
18-trunk (#46).
I also want to say this is valid code as you almost can do any casting in C.
This is a regression from 2.95.3 where it worked.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug optimization/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (3 preceding siblings ...)
2003-08-28 15:36 ` [Bug c/12085] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-08-29 16:35 ` pinskia at gcc dot gnu dot org
2003-09-07 16:26 ` ebotcazou at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-29 16:35 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Component|c |optimization
Keywords| |ice-on-valid-code
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-29 16:35 -------
It is most likely a fold-cost problem because it also causes the c++ front-end to ICE and it
only happens with optimization, guess what it is also fixed on the tree-ssa branch.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug optimization/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (4 preceding siblings ...)
2003-08-29 16:35 ` [Bug optimization/12085] " pinskia at gcc dot gnu dot org
@ 2003-09-07 16:26 ` ebotcazou at gcc dot gnu dot org
2003-10-16 9:29 ` mmitchel 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 @ 2003-09-07 16:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-09-07 16:26 -------
Confirmed on i586-redhat-linux-gnu as of gcc version 3.3.2 20030904 (prerelease).
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug optimization/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (5 preceding siblings ...)
2003-09-07 16:26 ` ebotcazou at gcc dot gnu dot org
@ 2003-10-16 9:29 ` mmitchel at gcc dot gnu dot org
2003-12-05 20:33 ` ebotcazou at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-10-16 9:29 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.2 |3.3.3
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-10-16 09:29 -------
Postponed until GCC 3.3.3.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug optimization/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (6 preceding siblings ...)
2003-10-16 9:29 ` mmitchel at gcc dot gnu dot org
@ 2003-12-05 20:33 ` ebotcazou at gcc dot gnu dot org
2003-12-20 7:40 ` [Bug c/12085] " cvs-commit 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 @ 2003-12-05 20:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-12-05 20:33 -------
It's the tree-inliner. I'll investigate.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Target Milestone|3.3.3 |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (7 preceding siblings ...)
2003-12-05 20:33 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-20 7:40 ` cvs-commit at gcc dot gnu dot org
2003-12-20 7:41 ` ebotcazou at gcc dot gnu dot org
2004-10-15 12:51 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-20 7:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-20 07:12 -------
Subject: Bug 12085
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: ebotcazou@gcc.gnu.org 2003-12-20 07:12:40
Modified files:
gcc : ChangeLog c-typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: cast-function-1.c
Log message:
PR c/12085
* c-typeck.c (build_function_call): Issue a warning if a
function is called through an incompatible prototype and
replace the call by a trap in this case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2058&r2=2.2059
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.265&r2=1.266
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3290&r2=1.3291
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cast-function-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (8 preceding siblings ...)
2003-12-20 7:40 ` [Bug c/12085] " cvs-commit at gcc dot gnu dot org
@ 2003-12-20 7:41 ` ebotcazou at gcc dot gnu dot org
2004-10-15 12:51 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-20 7:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-12-20 07:17 -------
The function call in the testcase leads to undefined run-time behavior. The C
compiler will (as of GCC 3.4.0) therefore issue a warning and replace the call
by a run-time trap.
See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg00683.html for the (long)
discussion.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c/12085] [3.3/3.4 Regression] Internal compiler error in convert_move, at expr.c:504 with -O3 flag
2003-08-28 1:17 [Bug c/12085] New: Internal compiler error in convert_move, at expr.c:504 with -O3 flag dhollen at mosis dot org
` (9 preceding siblings ...)
2003-12-20 7:41 ` ebotcazou at gcc dot gnu dot org
@ 2004-10-15 12:51 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15 12:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-15 12:51 -------
*** Bug 18011 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |laurent dot deniau at cern
| |dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12085
^ permalink raw reply [flat|nested] 12+ messages in thread