public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37909]  New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756
@ 2008-10-24 14:04 masaki dot chikama at gmail dot com
  2008-10-24 14:05 ` [Bug c++/37909] " masaki dot chikama at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: masaki dot chikama at gmail dot com @ 2008-10-24 14:04 UTC (permalink / raw)
  To: gcc-bugs

I got internal compile error when compiling vtk.
The flowing ccPOF0j6.cxx is preprocessed file while compiling with sh4 native
gcc.
Then I confirm it using gcc-4_3_branch cross compiler.

$ ~/x-tools/sh4-unknown-linux-gnu/bin/sh4-unknown-linux-gnu-gcc -g -O2 -fPIC
ccPOF0j6.cxx 
/builddir/build/BUILD/VTK/Rendering/vtkFreeTypeUtilities.cxx: In function 'int
vtkFreeTypeUtilitiesRenderString(vtkFreeTypeUtilities*, vtkTextProperty*, const
char*, int, int, vtkImageData*, T*, int) [with T =
vtkFreeTypeUtilities::RenderString::VTK_TT]':
/builddir/build/BUILD/VTK/Rendering/vtkFreeTypeUtilities.cxx:1190: internal
compiler error: in fixup_mova, at config/sh/sh.c:3756
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ ~/x-tools/sh4-unknown-linux-gnu/bin/sh4-unknown-linux-gnu-gcc --version
sh4-unknown-linux-gnu-gcc (crosstool-NG-1.2.0+svn_trunk@1080) 4.3.3 20081022
(prerelease)


-- 
           Summary: internal compiler error: in fixup_mova, at
                    config/sh/sh.c:3756
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: masaki dot chikama at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh4-unknown-linux-gnu


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


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

* [Bug c++/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
@ 2008-10-24 14:05 ` masaki dot chikama at gmail dot com
  2008-10-25 14:49 ` [Bug target/37909] " kkojima at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: masaki dot chikama at gmail dot com @ 2008-10-24 14:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from masaki dot chikama at gmail dot com  2008-10-24 14:04 -------
Created an attachment (id=16537)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16537&action=view)
ccPOF0j6.out


-- 


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


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

* [Bug target/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
  2008-10-24 14:05 ` [Bug c++/37909] " masaki dot chikama at gmail dot com
@ 2008-10-25 14:49 ` kkojima at gcc dot gnu dot org
  2008-10-25 14:54 ` kkojima at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2008-10-25 14:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kkojima at gcc dot gnu dot org  2008-10-25 14:48 -------
I've confirmed that it fails on the trunk and the reduced test
case fails on 4.2.4.


-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kkojima at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |target
     Ever Confirmed|0                           |1
   GCC host triplet|i686-pc-linux-gnu           |
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.2.4 4.3.3 4.4.0
           Priority|P3                          |P4
   Last reconfirmed|0000-00-00 00:00:00         |2008-10-25 14:48:19
               date|                            |


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


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

* [Bug target/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
  2008-10-24 14:05 ` [Bug c++/37909] " masaki dot chikama at gmail dot com
  2008-10-25 14:49 ` [Bug target/37909] " kkojima at gcc dot gnu dot org
@ 2008-10-25 14:54 ` kkojima at gcc dot gnu dot org
  2008-10-26  8:27 ` kkojima at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2008-10-25 14:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kkojima at gcc dot gnu dot org  2008-10-25 14:53 -------
Created an attachment (id=16540)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16540&action=view)
a reduced test case

The reduced test case fails on 4.2/4.3.


-- 


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


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

* [Bug target/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
                   ` (2 preceding siblings ...)
  2008-10-25 14:54 ` kkojima at gcc dot gnu dot org
@ 2008-10-26  8:27 ` kkojima at gcc dot gnu dot org
  2008-10-29 23:54 ` kkojima at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2008-10-26  8:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from kkojima at gcc dot gnu dot org  2008-10-26 08:26 -------
sh_reorg might insert a new mova in SH_FIXUP_PCLOAD phase.
When untangle_mova looks this mova insn, it may not be associated
with the insn address yet but the current code takes its undefined
address.  It seems that this mova should be skipped there because
it will be handled later.  I'm testing the attached patch.

--
        * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
        no address.

--- ORIG/trunk/gcc/config/sh/sh.c       2008-10-22 09:11:15.000000000 +0900
+++ LOCAL/trunk/gcc/config/sh/sh.c      2008-10-26 10:36:59.000000000 +0900
@@ -3826,6 +3826,10 @@ untangle_mova (int *num_mova, rtx *first

   if (optimize)
     {
+      /* If NEW_MOVA has no address yet, it will be handled later.  */
+      if (INSN_ADDRESSES_SIZE() <= (unsigned) INSN_UID (new_mova))
+       return -1;
+
       n_addr = INSN_ADDRESSES (INSN_UID (new_mova));
       n_target = INSN_ADDRESSES (INSN_UID (XEXP (MOVA_LABELREF (new_mova),
0)));
       if (n_addr > n_target || n_addr + 1022 < n_target)


-- 


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


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

* [Bug target/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
                   ` (3 preceding siblings ...)
  2008-10-26  8:27 ` kkojima at gcc dot gnu dot org
@ 2008-10-29 23:54 ` kkojima at gcc dot gnu dot org
  2008-10-31  3:47 ` kkojima at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2008-10-29 23:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kkojima at gcc dot gnu dot org  2008-10-29 23:54 -------
Subject: Bug 37909

Author: kkojima
Date: Wed Oct 29 23:54:35 2008
New Revision: 141452

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141452
Log:
        PR target/37909
        * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
        no address.


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


-- 


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


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

* [Bug target/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
                   ` (4 preceding siblings ...)
  2008-10-29 23:54 ` kkojima at gcc dot gnu dot org
@ 2008-10-31  3:47 ` kkojima at gcc dot gnu dot org
  2008-10-31  3:54 ` kkojima at gcc dot gnu dot org
  2008-10-31 13:25 ` kkojima at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2008-10-31  3:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kkojima at gcc dot gnu dot org  2008-10-31 03:45 -------
Subject: Bug 37909

Author: kkojima
Date: Fri Oct 31 03:43:20 2008
New Revision: 141486

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141486
Log:
        PR target/37909
        Backport from mainline:
        * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
        no address.


Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/config/sh/sh.c


-- 


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


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

* [Bug target/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
                   ` (5 preceding siblings ...)
  2008-10-31  3:47 ` kkojima at gcc dot gnu dot org
@ 2008-10-31  3:54 ` kkojima at gcc dot gnu dot org
  2008-10-31 13:25 ` kkojima at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2008-10-31  3:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from kkojima at gcc dot gnu dot org  2008-10-31 03:52 -------
Subject: Bug 37909

Author: kkojima
Date: Fri Oct 31 03:50:02 2008
New Revision: 141487

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141487
Log:
        PR target/37909
        Backport from mainline:
        * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
        no address.


Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/config/sh/sh.c


-- 


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


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

* [Bug target/37909] internal compiler error: in fixup_mova, at config/sh/sh.c:3756
  2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
                   ` (6 preceding siblings ...)
  2008-10-31  3:54 ` kkojima at gcc dot gnu dot org
@ 2008-10-31 13:25 ` kkojima at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2008-10-31 13:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from kkojima at gcc dot gnu dot org  2008-10-31 13:24 -------
Fixed.


-- 

kkojima at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-10-31 13:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-24 14:04 [Bug c++/37909] New: internal compiler error: in fixup_mova, at config/sh/sh.c:3756 masaki dot chikama at gmail dot com
2008-10-24 14:05 ` [Bug c++/37909] " masaki dot chikama at gmail dot com
2008-10-25 14:49 ` [Bug target/37909] " kkojima at gcc dot gnu dot org
2008-10-25 14:54 ` kkojima at gcc dot gnu dot org
2008-10-26  8:27 ` kkojima at gcc dot gnu dot org
2008-10-29 23:54 ` kkojima at gcc dot gnu dot org
2008-10-31  3:47 ` kkojima at gcc dot gnu dot org
2008-10-31  3:54 ` kkojima at gcc dot gnu dot org
2008-10-31 13:25 ` kkojima 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).