public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43142]  New: ICE in output_505, at config/rs6000/rs6000.md:12485
@ 2010-02-22 16:55 marcus at jet dot franken dot de
  2010-02-22 16:56 ` [Bug c++/43142] " marcus at jet dot franken dot de
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: marcus at jet dot franken dot de @ 2010-02-22 16:55 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

g++  -O2  -c agg_bezier_ctrl.ii  -fPIC -o xx.o                               
In file included from ../../include/agg_conv_curve.h:29:0,
                 from ../../include/ctrl/agg_bezier_ctrl.h:33,
                 from agg_bezier_ctrl.cpp:27:
../../include/agg_curves.h: In destructor ‘agg::curve3_div::~curve3_div()’:
../../include/agg_curves.h:103:5: internal compiler error: in output_505, at
config/rs6000/rs6000.md:12485
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.


-- 
           Summary: ICE in output_505, at config/rs6000/rs6000.md:12485
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marcus at jet dot franken dot de
 GCC build triplet: ppc-suse-linux
  GCC host triplet: ppc-suse-linux
GCC target triplet: ppc-suse-linux


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


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

* [Bug c++/43142] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
@ 2010-02-22 16:56 ` marcus at jet dot franken dot de
  2010-02-22 17:00 ` [Bug target/43142] [4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marcus at jet dot franken dot de @ 2010-02-22 16:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from marcus at jet dot franken dot de  2010-02-22 16:56 -------
Created an attachment (id=19934)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19934&action=view)
agg_bezier_ctrl.ii

testcase, unreduced.


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
  2010-02-22 16:56 ` [Bug c++/43142] " marcus at jet dot franken dot de
@ 2010-02-22 17:00 ` rguenth at gcc dot gnu dot org
  2010-02-22 17:02 ` marcus at jet dot franken dot de
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-22 17:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |target
            Summary|ICE in output_505, at       |[4.5 Regression] ICE in
                   |config/rs6000/rs6000.md:1248|output_505, at
                   |5                           |config/rs6000/rs6000.md:1248
                   |                            |5
   Target Milestone|---                         |4.5.0
            Version|unknown                     |4.5.0


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
  2010-02-22 16:56 ` [Bug c++/43142] " marcus at jet dot franken dot de
  2010-02-22 17:00 ` [Bug target/43142] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-02-22 17:02 ` marcus at jet dot franken dot de
  2010-02-23 10:20 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marcus at jet dot franken dot de @ 2010-02-22 17:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from marcus at jet dot franken dot de  2010-02-22 17:02 -------
chroot /abuild/meissner/root.2/
grape:/usr/src/packages/BUILD/agg-2.5/src/ctrl> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc64-suse-linux/4.5/lto-wrapper
Target: powerpc64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.5
--enable-ssp --disable-libssp --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib
--enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.5
--enable-linux-futex --without-system-libunwind --enable-gold
--with-plugin-ld=/usr/bin/gold --with-cpu=default32 --enable-secureplt
--with-long-double-128 --build=powerpc64-suse-linux
Thread model: posix
gcc version 4.5.0 20100218 (experimental) [trunk revision 156860] (SUSE Linux) 


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
                   ` (2 preceding siblings ...)
  2010-02-22 17:02 ` marcus at jet dot franken dot de
@ 2010-02-23 10:20 ` rguenth at gcc dot gnu dot org
  2010-02-23 11:38 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-23 10:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-02-23 10:20 -------
Created an attachment (id=19939)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19939&action=view)
reduced testcase


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
                   ` (3 preceding siblings ...)
  2010-02-23 10:20 ` rguenth at gcc dot gnu dot org
@ 2010-02-23 11:38 ` jakub at gcc dot gnu dot org
  2010-02-23 11:51 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-02-23 11:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2010-02-23 11:38 -------
Can't reproduce this, at least not with a cross gcc (and -m32 -msecure-plt -O2
-fPIC), on neither the original nor the reduced testcase.


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
                   ` (4 preceding siblings ...)
  2010-02-23 11:38 ` jakub at gcc dot gnu dot org
@ 2010-02-23 11:51 ` rguenth at gcc dot gnu dot org
  2010-02-23 12:10 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-23 11:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-02-23 11:51 -------
(In reply to comment #4)
> Can't reproduce this, at least not with a cross gcc (and -m32 -msecure-plt -O2
> -fPIC), on neither the original nor the reduced testcase.

Ok, there's a single ppc specific patch in our tree carried over from 4.1.
Maybe it's finally time to investigate why it's still there and if that is
the cause for this problem:

2005-11-28  Jakub Jelinek  <jakub@redhat.com>

        * config/rs6000/rs6000.c (rs6000_return_addr): If COUNT == 0,
        read word RETURN_ADDRESS_OFFSET bytes above arg_pointer_rtx
        instead of doing an extran indirection from frame_pointer_rtx.

        * gcc.dg/20051128-1.c: New test.

Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c.orig     2009-10-26 11:13:21.000000000 +0100
+++ gcc/config/rs6000/rs6000.c  2009-11-18 14:59:12.000000000 +0100
@@ -17526,17 +17526,22 @@ rs6000_return_addr (int count, rtx frame
      don't try to be too clever here.  */
   if (count != 0 || (DEFAULT_ABI != ABI_AIX && flag_pic))
     {
+      rtx x;
       cfun->machine->ra_needs_full_frame = 1;

-      return
-       gen_rtx_MEM
-         (Pmode,
-          memory_address
-          (Pmode,
-           plus_constant (copy_to_reg
-                          (gen_rtx_MEM (Pmode,
-                                        memory_address (Pmode, frame))),
-                          RETURN_ADDRESS_OFFSET)));
+      if (count == 0)
+       {
+         gcc_assert (frame == frame_pointer_rtx);
+         x = arg_pointer_rtx;
+       }
+      else
+       {
+         x = memory_address (Pmode, frame);
+         x = copy_to_reg (gen_rtx_MEM (Pmode, x));
+       }
+
+      x = plus_constant (x, RETURN_ADDRESS_OFFSET);
+      return gen_rtx_MEM (Pmode, memory_address (Pmode, x));
     }

   cfun->machine->ra_need_lr = 1;


I'm also trying to reproduce it with a plain trunk cross-compiler.


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
                   ` (5 preceding siblings ...)
  2010-02-23 11:51 ` rguenth at gcc dot gnu dot org
@ 2010-02-23 12:10 ` jakub at gcc dot gnu dot org
  2010-02-23 12:47 ` marcus at jet dot franken dot de
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-02-23 12:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2010-02-23 12:10 -------
I doubt that could be related.  My memory is weak about this stuff and why it
hasn't made it into trunk, search reveals
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg01951.html
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg02015.html


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
                   ` (6 preceding siblings ...)
  2010-02-23 12:10 ` jakub at gcc dot gnu dot org
@ 2010-02-23 12:47 ` marcus at jet dot franken dot de
  2010-02-24 10:00 ` rguenth at gcc dot gnu dot org
  2010-02-24 16:06 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: marcus at jet dot franken dot de @ 2010-02-23 12:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from marcus at jet dot franken dot de  2010-02-23 12:46 -------
the issue is btw new with 4.5, it was not there with 4.4

it affects

agg
cairomm
gnash
google-perftools
hugin
libofa
libqt4
libstlport_gcc4
openjade
pcp
pwlib
python-cryptopp
unrar
yast2-squid


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
                   ` (7 preceding siblings ...)
  2010-02-23 12:47 ` marcus at jet dot franken dot de
@ 2010-02-24 10:00 ` rguenth at gcc dot gnu dot org
  2010-02-24 16:06 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-24 10:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2010-02-24 10:00 -------
I can reproduce it on a powerpc machine with

../trunk/configure --target=powerpc64-suse-linux --with-cpu=default32
--enable-languages=c++ --with-long-double-128 --enable-secureplt
--host=powerpc64-suse-linux --build=powerpc64-suse-linux

on rev. 156860. re-trying with current trunk.


-- 


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


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

* [Bug target/43142] [4.5 Regression] ICE in output_505, at config/rs6000/rs6000.md:12485
  2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
                   ` (8 preceding siblings ...)
  2010-02-24 10:00 ` rguenth at gcc dot gnu dot org
@ 2010-02-24 16:06 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-24 16:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2010-02-24 16:06 -------
It works with rev. 157027.  Either it's gone latent or it's fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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


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

end of thread, other threads:[~2010-02-24 16:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-22 16:55 [Bug c++/43142] New: ICE in output_505, at config/rs6000/rs6000.md:12485 marcus at jet dot franken dot de
2010-02-22 16:56 ` [Bug c++/43142] " marcus at jet dot franken dot de
2010-02-22 17:00 ` [Bug target/43142] [4.5 Regression] " rguenth at gcc dot gnu dot org
2010-02-22 17:02 ` marcus at jet dot franken dot de
2010-02-23 10:20 ` rguenth at gcc dot gnu dot org
2010-02-23 11:38 ` jakub at gcc dot gnu dot org
2010-02-23 11:51 ` rguenth at gcc dot gnu dot org
2010-02-23 12:10 ` jakub at gcc dot gnu dot org
2010-02-23 12:47 ` marcus at jet dot franken dot de
2010-02-24 10:00 ` rguenth at gcc dot gnu dot org
2010-02-24 16:06 ` rguenth 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).