public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
@ 2003-08-19 17:54 dhazeghi at yahoo dot com
  2003-08-20  2:13 ` [Bug optimization/11980] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-19 17:54 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=11980

           Summary: [3.4 regression] ICE building cplus-dem.c for x86_64-
                    freebsd5.1: in emit_move_insn, at expr.c:3206
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dhazeghi at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: x86_64-freebsd5.1

Building a cross compiler to freebsd 5.1/x86_64 with mainline (20030819) gives:

/tmp/mainline/objdir/gcc/xgcc -B/tmp/mainline/objdir/gcc/ -B/tmp/dara/x86_64-freebsd5.1//
x86_64-freebsd5.1/bin/ -B/tmp/dara/x86_64-freebsd5.1//x86_64-freebsd5.1/lib/ -isystem /
tmp/dara/x86_64-freebsd5.1//x86_64-freebsd5.1/include -isystem /tmp/dara/x86_64-
freebsd5.1//x86_64-freebsd5.1/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../gcc/
libiberty/../include  -W -Wall -Wtraditional -pedantic ../../../gcc/libiberty/cplus-dem.c -o cplus-
dem.o
../../../gcc/libiberty/cplus-dem.c: In function `cplus_demangle_opname':

../../../gcc/libiberty/cplus-dem.c:710: internal compiler error: in emit_move_insn, at expr.c:3206


Lowering optimization level to -O0, the code does not ICE, but at -O1 or higher it does. Here's a 
reduced snippet:

char *strcat(char * , const char * );


void foo(char *result)
{
    strcat (result, "operator");
}

Note that while the error is the same as in PR11974, the testcase for that bug doesn't ICE on this 
target, nor does the one for this bug ICE on that target.

This is a regression from the 3.3 branch (20030819) where the code compiles fine.


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
@ 2003-08-20  2:13 ` pinskia at gcc dot gnu dot org
  2003-08-20  4:58 ` dhazeghi at yahoo dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-20  2:13 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=11980



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-20 02:13 -------
Note the small example does not ICE on the mainline (20030819) on a cross to x86_64-
suse-linux, so it must be very target spefic.
Any way I think this is exposed or caused by
2003-08-10  Kaveh R. Ghazi

        * builtins.c (expand_builtin_strcat): Optimize constant strings.
But I do not know for sure as I did not do a regression hunt on it but I just have a hunch.


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
  2003-08-20  2:13 ` [Bug optimization/11980] " pinskia at gcc dot gnu dot org
@ 2003-08-20  4:58 ` dhazeghi at yahoo dot com
  2003-08-20  5:00 ` dhazeghi at yahoo dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-20  4:58 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=11980


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|                            |ghazi@gcc.gnu.org


------- Additional Comments From dhazeghi at yahoo dot com  2003-08-20 04:58 -------
Andrew is right. I reverted the changes to builtins.c at http://gcc.gnu.org/ml/gcc-cvs/2003-08/
msg00370.html and the testcase compiles fine. Kaveh, can you have a look at this? The problem is 
readily reproducible with a cross cc1 to x86_64-freebsd. Thanks.

Dara


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
  2003-08-20  2:13 ` [Bug optimization/11980] " pinskia at gcc dot gnu dot org
  2003-08-20  4:58 ` dhazeghi at yahoo dot com
@ 2003-08-20  5:00 ` dhazeghi at yahoo dot com
  2003-08-23  2:58 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-20  5: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=11980


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ghazi at gcc dot gnu dot org
  GCC build triplet|ghazi@gcc.gnu.org           |


------- Additional Comments From dhazeghi at yahoo dot com  2003-08-20 05:00 -------
Kaveh, it looks like your patch at http://gcc.gnu.org/ml/gcc-cvs/2003-08/msg00370.html is 
behind this. Would you mind taking a look at this? Thanks,

Dara


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (2 preceding siblings ...)
  2003-08-20  5:00 ` dhazeghi at yahoo dot com
@ 2003-08-23  2:58 ` pinskia at gcc dot gnu dot org
  2003-08-23 12:43 ` ghazi at caip dot rutgers dot edu
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23  2:58 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=11980


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Priority|P2                          |P1


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (3 preceding siblings ...)
  2003-08-23  2:58 ` pinskia at gcc dot gnu dot org
@ 2003-08-23 12:43 ` ghazi at caip dot rutgers dot edu
  2003-08-23 12:44 ` ghazi at caip dot rutgers dot edu
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ghazi at caip dot rutgers dot edu @ 2003-08-23 12: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=11980


ghazi at caip dot rutgers dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ghazi at caip dot rutgers
                   |                            |dot edu


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (4 preceding siblings ...)
  2003-08-23 12:43 ` ghazi at caip dot rutgers dot edu
@ 2003-08-23 12:44 ` ghazi at caip dot rutgers dot edu
  2003-08-26  3:34 ` ghazi at caip dot rutgers dot edu
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ghazi at caip dot rutgers dot edu @ 2003-08-23 12:44 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=11980


ghazi at caip dot rutgers dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|ghazi at gcc dot gnu dot org|


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (5 preceding siblings ...)
  2003-08-23 12:44 ` ghazi at caip dot rutgers dot edu
@ 2003-08-26  3:34 ` ghazi at caip dot rutgers dot edu
  2003-08-26  8:06 ` dhazeghi at yahoo dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ghazi at caip dot rutgers dot edu @ 2003-08-26  3:34 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=11980



------- Additional Comments From ghazi at caip dot rutgers dot edu  2003-08-26 03:34 -------
Subject: Re:  [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206

I've been able to reproduce it, however I haven't been able to come up
with a fix yet, sorry.  I'll have more time in a week or two.  If it's
a real problem for someone, we can disable the troublesome code with
#if 0 as a stopgap.  Otherwise I'll take another look early Sept.

		--Kaveh


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (6 preceding siblings ...)
  2003-08-26  3:34 ` ghazi at caip dot rutgers dot edu
@ 2003-08-26  8:06 ` dhazeghi at yahoo dot com
  2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-26  8:06 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=11980


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-26 08:06:35
               date|                            |


------- Additional Comments From dhazeghi at yahoo dot com  2003-08-26 08:06 -------
Since I'm the only one who's seen it, and can work around it, fixing it later is fine by me. So long as 
it isn't broken in 3.4, I'm happy...


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (8 preceding siblings ...)
  2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
@ 2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
  2003-12-18 20:40 ` ghazi at caip dot rutgers dot edu
  2003-12-18 21:31 ` dhazeghi at yahoo dot com
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-12-16 17:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-12-16 17:17 -------
Kaveh said he would fix this bug back in August.

-- 


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


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (7 preceding siblings ...)
  2003-08-26  8:06 ` dhazeghi at yahoo dot com
@ 2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
  2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-12-16 17:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-12-16 17:16 -------
Kaveh said he would fix this bug back in August.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ghazi at caip dot rutgers
                   |dot org                     |dot edu
             Status|NEW                         |ASSIGNED


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


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (9 preceding siblings ...)
  2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
@ 2003-12-18 20:40 ` ghazi at caip dot rutgers dot edu
  2003-12-18 21:31 ` dhazeghi at yahoo dot com
  11 siblings, 0 replies; 13+ messages in thread
From: ghazi at caip dot rutgers dot edu @ 2003-12-18 20:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ghazi at caip dot rutgers dot edu  2003-12-18 20:12 -------
Subject: Re:  [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206


 > Kaveh said he would fix this bug back in August.

Wasn't this fixed on Sept 3rd?
http://gcc.gnu.org/ml/gcc-patches/2003-09/msg00185.html




-- 


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


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

* [Bug optimization/11980] [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206
  2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
                   ` (10 preceding siblings ...)
  2003-12-18 20:40 ` ghazi at caip dot rutgers dot edu
@ 2003-12-18 21:31 ` dhazeghi at yahoo dot com
  11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-18 21:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2003-12-18 21:04 -------
Fixed on current mainline, thanks Kaveh!

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


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


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

end of thread, other threads:[~2003-12-18 21:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-19 17:54 [Bug optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206 dhazeghi at yahoo dot com
2003-08-20  2:13 ` [Bug optimization/11980] " pinskia at gcc dot gnu dot org
2003-08-20  4:58 ` dhazeghi at yahoo dot com
2003-08-20  5:00 ` dhazeghi at yahoo dot com
2003-08-23  2:58 ` pinskia at gcc dot gnu dot org
2003-08-23 12:43 ` ghazi at caip dot rutgers dot edu
2003-08-23 12:44 ` ghazi at caip dot rutgers dot edu
2003-08-26  3:34 ` ghazi at caip dot rutgers dot edu
2003-08-26  8:06 ` dhazeghi at yahoo dot com
2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
2003-12-16 17:18 ` mmitchel at gcc dot gnu dot org
2003-12-18 20:40 ` ghazi at caip dot rutgers dot edu
2003-12-18 21:31 ` dhazeghi at yahoo dot com

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).