public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/11121] New: function prototypes, function pointers and -O3
@ 2003-06-07 8:15 gwaidzai@yahoo.com.hk
2003-06-07 8:19 ` [Bug optimization/11121] " gwaidzai@yahoo.com.hk
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gwaidzai@yahoo.com.hk @ 2003-06-07 8:15 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=11121
Summary: function prototypes, function pointers and -O3
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gwaidzai@yahoo.com.hk
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
The program below will cause an internal compiler error when compiled with gcc
3.4:
Reading specs from /home/root/tools/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: ../gcc-work/configure --prefix=/home/root/tools/usr
--with-sysroot=/home/root/tools
--with-ld=/home/root/tools/usr/i686-pc-linux-gnu/bin/ld
--with-as=/home/root/tools/usr/i686-pc-linux-gnu-as --disable-nls
--enable-shared --with-clocale=gnu --enable-languages=c,c++
--enable-threads=posix --enable-__thread --enable-__cxa_atexit
Thread model: posix
gcc version 3.4 20030531 (experimental)
with the -O3 flag.
(this gcc is compiled against glibc cvs as of 20030531)
This is the program:
---------------
int fn2 (void);
int fn1 (int (* const fn) (void)) {return fn ();}
int main (void) {return fn1 (fn2);}
int fn2 (void) {return 0;}
---------------
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug optimization/11121] function prototypes, function pointers and -O3
2003-06-07 8:15 [Bug optimization/11121] New: function prototypes, function pointers and -O3 gwaidzai@yahoo.com.hk
@ 2003-06-07 8:19 ` gwaidzai@yahoo.com.hk
2003-06-07 14:00 ` [Bug optimization/11121] [3.4 regression] [unit-at-a-time] " pinskia@physics.uc.edu
2003-07-05 4:08 ` pinskia at physics dot uc dot edu
2 siblings, 0 replies; 4+ messages in thread
From: gwaidzai@yahoo.com.hk @ 2003-06-07 8:19 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=11121
------- Additional Comments From gwaidzai@yahoo.com.hk 2003-06-07 08:19 -------
The error message returned by the compiler is:
test.c:4: internal compiler error: in cgraph_remove_edge, at cgraph.c:157
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug optimization/11121] [3.4 regression] [unit-at-a-time] function prototypes, function pointers and -O3
2003-06-07 8:15 [Bug optimization/11121] New: function prototypes, function pointers and -O3 gwaidzai@yahoo.com.hk
2003-06-07 8:19 ` [Bug optimization/11121] " gwaidzai@yahoo.com.hk
@ 2003-06-07 14:00 ` pinskia@physics.uc.edu
2003-07-05 4:08 ` pinskia at physics dot uc dot edu
2 siblings, 0 replies; 4+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-07 14:00 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=11121
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-06-07 14:00:37
date| |
Summary|function prototypes, |[3.4 regression] [unit-at-a-
|function pointers and -O3 |time] function prototypes,
| |function pointers and -O3
------- Additional Comments From pinskia@physics.uc.edu 2003-06-07 14:00 -------
Confirmed on the mainline (20030606), it does not ICE when I turn off unit-at-a-time.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug optimization/11121] [3.4 regression] [unit-at-a-time] function prototypes, function pointers and -O3
2003-06-07 8:15 [Bug optimization/11121] New: function prototypes, function pointers and -O3 gwaidzai@yahoo.com.hk
2003-06-07 8:19 ` [Bug optimization/11121] " gwaidzai@yahoo.com.hk
2003-06-07 14:00 ` [Bug optimization/11121] [3.4 regression] [unit-at-a-time] " pinskia@physics.uc.edu
@ 2003-07-05 4:08 ` pinskia at physics dot uc dot edu
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-05 4:08 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=11121
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-05 04:08 -------
Fixed on the mainline already, 20030701.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-07-05 4:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-07 8:15 [Bug optimization/11121] New: function prototypes, function pointers and -O3 gwaidzai@yahoo.com.hk
2003-06-07 8:19 ` [Bug optimization/11121] " gwaidzai@yahoo.com.hk
2003-06-07 14:00 ` [Bug optimization/11121] [3.4 regression] [unit-at-a-time] " pinskia@physics.uc.edu
2003-07-05 4:08 ` pinskia at physics dot uc dot edu
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).