public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/53271] New: powerpc-eabispe build fails with ice on unwind-dw2.c
@ 2012-05-07 21:10 hainque at gcc dot gnu.org
  2012-05-08  6:38 ` [Bug target/53271] " amodra at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hainque at gcc dot gnu.org @ 2012-05-07 21:10 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53271
           Summary: powerpc-eabispe build fails with ice on unwind-dw2.c
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hainque@gcc.gnu.org


Using an up to date trunk on a x86-linux host or alike,
assuming cross binutils for powerpc-eabispe available in
$prefix.

 $gccsrcdir/configure --target=powerpc-eabispe --enable-languages=c
--disable-libada --prefix=$prefix
 make CFLAGS="-O0 -g"

fails with

<< In file included from .../libgcc/unwind-dw2.c:1633:0:
.../libgcc/unwind.inc: In function ‘_Unwind_RaiseException’:
.../libgcc/unwind.inc:136:1: internal compiler error: in emit_frame_save, at
config/rs6000/rs6000.c:18979
>>

Visible using the reproducer below:

  void install (long offset, void * handler)
  {
    volatile int x [4096];
    __builtin_eh_return (offset, handler);
  }

./cc1 ice.c       
...
ice.c: In function "install":
ice.c:6:1: internal compiler error: in emit_frame_save, at
config/rs6000/rs6000.c:18979

Presumably a fallout of rev 186797 (from
http://gcc.gnu.org/ml/gcc-patches/2012-04/msg01014.html),
in particular:

    (emit_frame_save): Don't handle reg+reg addressing.

Olivier


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

* [Bug target/53271] powerpc-eabispe build fails with ice on unwind-dw2.c
  2012-05-07 21:10 [Bug target/53271] New: powerpc-eabispe build fails with ice on unwind-dw2.c hainque at gcc dot gnu.org
@ 2012-05-08  6:38 ` amodra at gmail dot com
  2012-05-08  6:48 ` amodra at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2012-05-08  6:38 UTC (permalink / raw)
  To: gcc-bugs

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-05-08
         AssignedTo|unassigned at gcc dot       |amodra at gmail dot com
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug target/53271] powerpc-eabispe build fails with ice on unwind-dw2.c
  2012-05-07 21:10 [Bug target/53271] New: powerpc-eabispe build fails with ice on unwind-dw2.c hainque at gcc dot gnu.org
  2012-05-08  6:38 ` [Bug target/53271] " amodra at gmail dot com
@ 2012-05-08  6:48 ` amodra at gmail dot com
  2012-05-09  8:19 ` amodra at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2012-05-08  6:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Alan Modra <amodra at gmail dot com> 2012-05-08 06:43:15 UTC ---
Created attachment 27340
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27340
proposed patch


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

* [Bug target/53271] powerpc-eabispe build fails with ice on unwind-dw2.c
  2012-05-07 21:10 [Bug target/53271] New: powerpc-eabispe build fails with ice on unwind-dw2.c hainque at gcc dot gnu.org
  2012-05-08  6:38 ` [Bug target/53271] " amodra at gmail dot com
  2012-05-08  6:48 ` amodra at gmail dot com
@ 2012-05-09  8:19 ` amodra at gcc dot gnu.org
  2012-05-09  8:52 ` amodra at gmail dot com
  2012-05-09  9:11 ` hainque at adacore dot com
  4 siblings, 0 replies; 6+ messages in thread
From: amodra at gcc dot gnu.org @ 2012-05-09  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Alan Modra <amodra at gcc dot gnu.org> 2012-05-09 08:17:24 UTC ---
Author: amodra
Date: Wed May  9 08:17:09 2012
New Revision: 187316

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187316
Log:
    PR target/53271
    * config/rs6000/rs6000.c (gen_frame_set): New function.
    (gen_frame_load, gen_frame_store): New functions.
    (rs6000_savres_rtx): Use the above.
    (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
    Correct mode used for CR2 in save/restore_world patterns.
    Don't emit instructions for eh_return frame unwind reg info.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c


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

* [Bug target/53271] powerpc-eabispe build fails with ice on unwind-dw2.c
  2012-05-07 21:10 [Bug target/53271] New: powerpc-eabispe build fails with ice on unwind-dw2.c hainque at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-05-09  8:19 ` amodra at gcc dot gnu.org
@ 2012-05-09  8:52 ` amodra at gmail dot com
  2012-05-09  9:11 ` hainque at adacore dot com
  4 siblings, 0 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2012-05-09  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

Alan Modra <amodra at gmail dot com> changed:

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

--- Comment #3 from Alan Modra <amodra at gmail dot com> 2012-05-09 08:18:09 UTC ---
fixed


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

* [Bug target/53271] powerpc-eabispe build fails with ice on unwind-dw2.c
  2012-05-07 21:10 [Bug target/53271] New: powerpc-eabispe build fails with ice on unwind-dw2.c hainque at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-05-09  8:52 ` amodra at gmail dot com
@ 2012-05-09  9:11 ` hainque at adacore dot com
  4 siblings, 0 replies; 6+ messages in thread
From: hainque at adacore dot com @ 2012-05-09  9:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from hainque at adacore dot com <hainque at adacore dot com> 2012-05-09 08:52:01 UTC ---
On May 9, 2012, at 10:18 , amodra at gmail dot com wrote:
> --- Comment #3 from Alan Modra <amodra at gmail dot com> 2012-05-09 08:18:09 UTC ---
> fixed

 Indeed ! Thanks a lot Alan :-)


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

end of thread, other threads:[~2012-05-09  8:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-07 21:10 [Bug target/53271] New: powerpc-eabispe build fails with ice on unwind-dw2.c hainque at gcc dot gnu.org
2012-05-08  6:38 ` [Bug target/53271] " amodra at gmail dot com
2012-05-08  6:48 ` amodra at gmail dot com
2012-05-09  8:19 ` amodra at gcc dot gnu.org
2012-05-09  8:52 ` amodra at gmail dot com
2012-05-09  9:11 ` hainque at adacore 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).