public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18753] New: GCC internal error with -O3 and -finstrument-functions with gcc-3.4
@ 2004-12-01 11:36 vdanjean at free dot fr
2004-12-01 11:58 ` [Bug c/18753] [3.4 Regression] " belyshev at lubercy dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: vdanjean at free dot fr @ 2004-12-01 11:36 UTC (permalink / raw)
To: gcc-bugs
The internal error can be triggered with the following code :
static inline void foo(void) { }
void bar(void) { foo(); }
with the command line :
gcc -O3 -finstrument-functions -c test.c
I obtain :
test.c: In function `foo':
test.c:2: internal compiler error: in cgraph_expand_function, at cgraphunit.c:540
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-3.4/README.Bugs>.
I do not have the bug with -O2 instead -O3, nor without -finstrument-functions,
nor with gcc 3.3
I tried the following compilers :
* plain gcc-3.4.0 on ia64 :
danjeanv@ns0:~$ ~perachem/bin/gcc -v
Reading specs from /home_nfs/perache/bin/lib/gcc/ia64-unknown-linux-gnu/3.4.0/specs
Configured with: ./configure --enable-languages=c,c++ --enable-threads=posix
--prefix=/home_nfs/perache/bin --bindir=/home_nfs/perache/bin
Thread model: posix
gcc version 3.4.0
* gcc-3.4.2 + current debian patches on ia64 :
danjeanv@ns0:~$ gcc -v
Reading specs from
/home_nfs/danjean/stow/gcc-3.4.2/bin/../lib/gcc/ia64-unknown-linux-gnu/3.4.2/specs
Configured with: ../src/configure --prefix=/home_nfs/danjean/
Thread model: posix
gcc version 3.4.2 (Debian)
* gcc-3.4.3 + debian patch on x86 (current gcc-3.4 version in sid debian
distribution)
Reading specs from /usr/lib/gcc/i486-linux/3.4.4/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4
--enable-shared --with-system-zlib --enable-nls --without-included-gettext
--program-suffix=-3.4 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --disable-werror i486-linux
Thread model: posix
gcc version 3.4.4 20041128 (prerelease) (Debian 3.4.3-2)
--
Summary: GCC internal error with -O3 and -finstrument-functions
with gcc-3.4
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vdanjean at free dot fr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18753
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/18753] [3.4 Regression] GCC internal error with -O3 and -finstrument-functions with gcc-3.4
2004-12-01 11:36 [Bug c/18753] New: GCC internal error with -O3 and -finstrument-functions with gcc-3.4 vdanjean at free dot fr
@ 2004-12-01 11:58 ` belyshev at lubercy dot com
2004-12-01 12:04 ` [Bug middle-end/18753] [3.4 Regression] ICE with " reichelt at gcc dot gnu dot org
2004-12-01 12:36 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: belyshev at lubercy dot com @ 2004-12-01 11:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-12-01 11:58 -------
Confirmed, "-O1 -funit-at-a-time -finline-functions -finstrument-function" is
enough to reproduce.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.4.4
Known to work| |3.3.5 4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2004-12-01 11:58:05
date| |
Summary|GCC internal error with -O3 |[3.4 Regression] GCC
|and -finstrument-functions |internal error with -O3 and
|with gcc-3.4 |-finstrument-functions with
| |gcc-3.4
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18753
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/18753] [3.4 Regression] ICE with -finstrument-functions with gcc-3.4
2004-12-01 11:36 [Bug c/18753] New: GCC internal error with -O3 and -finstrument-functions with gcc-3.4 vdanjean at free dot fr
2004-12-01 11:58 ` [Bug c/18753] [3.4 Regression] " belyshev at lubercy dot com
@ 2004-12-01 12:04 ` reichelt at gcc dot gnu dot org
2004-12-01 12:36 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-01 12:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-12-01 12:04 -------
The bug appeared here:
: Search converges between 2004-01-28-trunk (#443) and 2004-01-29-trunk (#444).
and was fixed on mainline with the tree-ssa merge.
Jan, I think this is caused by your patches for PR12850.
Could you please have a look?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org, reichelt at gcc dot gnu
| |dot org
Component|c |middle-end
Keywords| |monitored
Known to fail|3.4.4 |3.4.0 3.4.4
Summary|[3.4 Regression] GCC |[3.4 Regression] ICE with -
|internal error with -O3 and |finstrument-functions with
|-finstrument-functions with |gcc-3.4
|gcc-3.4 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18753
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/18753] [3.4 Regression] ICE with -finstrument-functions with gcc-3.4
2004-12-01 11:36 [Bug c/18753] New: GCC internal error with -O3 and -finstrument-functions with gcc-3.4 vdanjean at free dot fr
2004-12-01 11:58 ` [Bug c/18753] [3.4 Regression] " belyshev at lubercy dot com
2004-12-01 12:04 ` [Bug middle-end/18753] [3.4 Regression] ICE with " reichelt at gcc dot gnu dot org
@ 2004-12-01 12:36 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-01 12:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-01 12:36 -------
*** This bug has been marked as a duplicate of 16780 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18753
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-01 12:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-01 11:36 [Bug c/18753] New: GCC internal error with -O3 and -finstrument-functions with gcc-3.4 vdanjean at free dot fr
2004-12-01 11:58 ` [Bug c/18753] [3.4 Regression] " belyshev at lubercy dot com
2004-12-01 12:04 ` [Bug middle-end/18753] [3.4 Regression] ICE with " reichelt at gcc dot gnu dot org
2004-12-01 12:36 ` pinskia 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).