public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time
@ 2003-09-14 16:43 schwab at suse dot de
  2003-09-14 17:22 ` [Bug optimization/12275] " schwab at suse dot de
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: schwab at suse dot de @ 2003-09-14 16:43 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=12275

           Summary: [3.4 regression] ICE in htab_clear_slot with -funit-at-
                    a-time
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schwab at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: m68k-linux

This can be reproduced on m68k-linux and ia64-linux, happens only with -funit-
at-a-time. 
 
$ cat alias.c 
extern __inline int __finite (double __value) { return 0; } 
extern __typeof (__finite) __finite __asm__ ("" "__GI___finite"); 
$ /cvs/test/gcc/gcc/cc1 -fpreprocessed -funit-at-a-time alias.c 
 __finite 
 
Analyzing compilation unit 
 
alias.c:3: internal compiler error: Aborted 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
@ 2003-09-14 17:22 ` schwab at suse dot de
  2003-09-14 18:53 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: schwab at suse dot de @ 2003-09-14 17:22 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=12275


schwab at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
  2003-09-14 17:22 ` [Bug optimization/12275] " schwab at suse dot de
@ 2003-09-14 18:53 ` pinskia at gcc dot gnu dot org
  2003-09-27  4:23 ` [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot bernie at develer dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-14 18:53 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=12275


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
 GCC target triplet|m68k-linux                  |
   Last reconfirmed|0000-00-00 00:00:00         |2003-09-14 18:27:05
               date|                            |
   Target Milestone|---                         |3.4


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-14 18:27 -------
I can reproduce it also on powerpc-apple-darwin6.6, there has been some talk about 
getting this to work or having this be an error but I do not know what the final outcome 
was.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
  2003-09-14 17:22 ` [Bug optimization/12275] " schwab at suse dot de
  2003-09-14 18:53 ` pinskia at gcc dot gnu dot org
@ 2003-09-27  4:23 ` bernie at develer dot com
  2003-09-30 17:15 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bernie at develer dot com @ 2003-09-27  4: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=12275



------- Additional Comments From bernie at develer dot com  2003-09-27 03:52 -------
Also happens on mainline (20030927).

Backtracing with GDB, it seems that htab_clear_slot()
from libiberty fails its consinstency checks and
abort()s:

  if (slot < htab->entries || slot >= htab->entries + htab->size
      || *slot == EMPTY_ENTRY || *slot == DELETED_ENTRY)
    abort ();

It's invoked by other functions called by cgraph_remove_node().


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (2 preceding siblings ...)
  2003-09-27  4:23 ` [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot bernie at develer dot com
@ 2003-09-30 17:15 ` pinskia at gcc dot gnu dot org
  2003-10-01 16:19 ` zlomek at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-30 17: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=12275


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yoktocode at yahoo dot com


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-30 16:51 -------
*** Bug 12437 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (3 preceding siblings ...)
  2003-09-30 17:15 ` pinskia at gcc dot gnu dot org
@ 2003-10-01 16:19 ` zlomek at gcc dot gnu dot org
  2003-10-15 23:15 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: zlomek at gcc dot gnu dot org @ 2003-10-01 16: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=12275


zlomek at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-09-14 18:27:05         |2003-10-01 16:19:40
               date|                            |


------- Additional Comments From zlomek at gcc dot gnu dot org  2003-10-01 16:19 -------
This happens on x86-64 too.

The problem is that
when adding to hashtable in cgraph_node () DECL_ASSEMBLER_NAME is "__finite"
and when removing node in cgraph_remove_node () DECL_ASSEMBLER_NAME is
"__GI___finite".
Thus the hash key is different so it finds different slot in cgraph_remove_node ()
which is in this testcase EMPTY_SLOT.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (4 preceding siblings ...)
  2003-10-01 16:19 ` zlomek at gcc dot gnu dot org
@ 2003-10-15 23:15 ` pinskia at gcc dot gnu dot org
  2003-11-06 22:32 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-15 23: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=12275


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |hubicka at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (5 preceding siblings ...)
  2003-10-15 23:15 ` pinskia at gcc dot gnu dot org
@ 2003-11-06 22:32 ` pinskia at gcc dot gnu dot org
  2003-11-12 16:00 ` oleg_orel at yahoo dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-06 22:32 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=12275


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bbooth at redhat dot com


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-06 22:32 -------
*** Bug 12930 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (6 preceding siblings ...)
  2003-11-06 22:32 ` pinskia at gcc dot gnu dot org
@ 2003-11-12 16:00 ` oleg_orel at yahoo dot com
  2003-11-12 20:53 ` nemet at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: oleg_orel at yahoo dot com @ 2003-11-12 16:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From oleg_orel at yahoo dot com  2003-11-12 16:00 -------
I just got gcc from CVS (sources.redhat.com) and during compilation of glibc, 
I getting error on line 30 of drand48_r.c, any workarounds? Any gcc build 
options? Please advice.........


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12275


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (7 preceding siblings ...)
  2003-11-12 16:00 ` oleg_orel at yahoo dot com
@ 2003-11-12 20:53 ` nemet at gcc dot gnu dot org
  2003-11-12 21:50 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: nemet at gcc dot gnu dot org @ 2003-11-12 20:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nemet at gcc dot gnu dot org  2003-11-12 20:52 -------
(In reply to comment #6)
> I just got gcc from CVS (sources.redhat.com) and during compilation of glibc, 
> I getting error on line 30 of drand48_r.c, any workarounds? Any gcc build 
> options? Please advice.........

One work-around is to use -fno-unit-a-time with -O2 when compiling drand48_r.c.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12275


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (8 preceding siblings ...)
  2003-11-12 20:53 ` nemet at gcc dot gnu dot org
@ 2003-11-12 21:50 ` pinskia at gcc dot gnu dot org
  2003-11-13  2:08 ` cvs-commit at gcc dot gnu dot org
  2003-11-13  5:00 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-12 21:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-12 21:50 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-11/msg00854.html>

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12275


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (9 preceding siblings ...)
  2003-11-12 21:50 ` pinskia at gcc dot gnu dot org
@ 2003-11-13  2:08 ` cvs-commit at gcc dot gnu dot org
  2003-11-13  5:00 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-11-13  2:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-13 02:08 -------
Subject: Bug 12275

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hubicka@gcc.gnu.org	2003-11-13 02:07:57

Modified files:
	gcc            : ChangeLog c-decl.c c-pragma.c cgraph.c tree.h 
	                 varasm.c 
	gcc/cp         : decl.c decl2.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.c-torture/compile: 20031112-1.c 

Log message:
	PR opt/12275
	* c-decl.c (finish_decl): Use change_decl_assembler_name.
	* c-pragma.c (handle_pragma_redefine_extname): Likewise.
	* varasm.c (make_decl_rtl): Likewise.
	* cgraph.c (change_decl_assembler_name): New function.
	* tree.h (set_decl_assembler_name): Kill dead declaration.
	(change_decl_assembler_name): Declare.
	
	* decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
	* decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1730&r2=2.1731
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.456&r2=1.457
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pragma.c.diff?cvsroot=gcc&r1=1.64&r2=1.65
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraph.c.diff?cvsroot=gcc&r1=1.35&r2=1.36
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.451&r2=1.452
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&r1=1.397&r2=1.398
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1154&r2=1.1155
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.685&r2=1.686
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3187&r2=1.3188
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/20031112-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12275


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot
  2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
                   ` (10 preceding siblings ...)
  2003-11-13  2:08 ` cvs-commit at gcc dot gnu dot org
@ 2003-11-13  5:00 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-13  5:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-13 05:00 -------
Fixed for 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12275


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-11-13  5:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-14 16:43 [Bug optimization/12275] New: [3.4 regression] ICE in htab_clear_slot with -funit-at-a-time schwab at suse dot de
2003-09-14 17:22 ` [Bug optimization/12275] " schwab at suse dot de
2003-09-14 18:53 ` pinskia at gcc dot gnu dot org
2003-09-27  4:23 ` [Bug optimization/12275] [3.4 regression] [unit-at-a-time] ICE in htab_clear_slot bernie at develer dot com
2003-09-30 17:15 ` pinskia at gcc dot gnu dot org
2003-10-01 16:19 ` zlomek at gcc dot gnu dot org
2003-10-15 23:15 ` pinskia at gcc dot gnu dot org
2003-11-06 22:32 ` pinskia at gcc dot gnu dot org
2003-11-12 16:00 ` oleg_orel at yahoo dot com
2003-11-12 20:53 ` nemet at gcc dot gnu dot org
2003-11-12 21:50 ` pinskia at gcc dot gnu dot org
2003-11-13  2:08 ` cvs-commit at gcc dot gnu dot org
2003-11-13  5:00 ` 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).