public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/34900]  New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
@ 2008-01-21  9:35 marco at sitek dot it
  2008-01-25  0:34 ` [Bug target/34900] " rsandifo at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marco at sitek dot it @ 2008-01-21  9:35 UTC (permalink / raw)
  To: gcc-bugs

Hello, 
I am experiencing the error below while building gcc 4.2.2 for the mips64vr-elf
target. I have confirmed the same happens with gcc-4.2-20080116. 

Versioning:
binutils 2.18
newlib-1.16.0
GCC configured this way:

$ CFLAGS=-O2 $DEPACK_DIR/gcc-4.2.2/configure --target=mips64vrel-elf \
  --prefix=$PREFIX_DIR --enable-languages=c,c++ --disable-__cxa_atexit \
  --with-gnu-as --with-gnu-ld --with-newlib \
  --with-gxx-include-dir=$PREFIX_DIR/mips64vrel-elf/include -v \
  2>&1 | tee configure.log

With the same configuration and binutils/newlib, I succeeded building GCC
4.1.2.

I saved all log for configure and make. Please let me know if they may help.
Thanks in advance.

//--------------------------------------------------------------------------

make[4]: Entering directory
`/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/mips16/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
          mkdir pic; \
        else true; fi
touch stamp-picdir
CONFIG_FILES=
CONFIG_HEADERS=config.h:/ecostools/src/gcc-4.2.2/libiberty/config.in /bin/sh
./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
if [ x"" != x ]; then \
          /tmp/build-mips64vrel-elf-20080115/gcc/./gcc/xgcc
-B/tmp/build-mips64vrel-elf-20080115/gcc/./gcc/ -nostdinc
-B/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/ -isystem
/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/targ-include
-isystem /ecostools/src/gcc-4.2.2/newlib/libc/include
-B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/bin/
-B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/lib/ -isystem
/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/include -isystem
/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/sys-include -c
-DHAVE_CONFIG_H -O2 -O2   -mips16 -I.
-I/ecostools/src/gcc-4.2.2/libiberty/../include  -W -Wall -pedantic
-Wwrite-strings -Wstrict-prototypes -Wc++-compat 
/ecostools/src/gcc-4.2.2/libiberty/regex.c -o pic/regex.o; \
        else true; fi
/tmp/build-mips64vrel-elf-20080115/gcc/./gcc/xgcc
-B/tmp/build-mips64vrel-elf-20080115/gcc/./gcc/ -nostdinc
-B/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/ -isystem
/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/targ-include
-isystem /ecostools/src/gcc-4.2.2/newlib/libc/include
-B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/bin/
-B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/lib/ -isystem
/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/include -isystem
/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/sys-include -c
-DHAVE_CONFIG_H -O2 -O2   -mips16 -I.
-I/ecostools/src/gcc-4.2.2/libiberty/../include  -W -Wall -pedantic
-Wwrite-strings -Wstrict-prototypes -Wc++-compat
/ecostools/src/gcc-4.2.2/libiberty/regex.c -o regex.o
/ecostools/src/gcc-4.2.2/libiberty/regex.c: In function
'byte_re_match_2_internal':
/ecostools/src/gcc-4.2.2/libiberty/regex.c:7481: error: insn does not satisfy
its constraints:
(insn 5298 1670 1672 171 (set (reg:SI 4 $4)
        (lo_sum:SI (reg/f:SI 1080)
            (symbol_ref:SI ("byte_reg_unset_dummy") [flags 0x6] <var_decl
0x7fe24fa0 byte_reg_unset_dummy>))) 205 {*lowsi_mips16} (nil)
    (expr_list:REG_EQUAL (symbol_ref:SI ("byte_reg_unset_dummy") [flags 0x6]
<var_decl 0x7fe24fa0 byte_reg_unset_dummy>)
        (nil)))
/ecostools/src/gcc-4.2.2/libiberty/regex.c:7481: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [regex.o] Error 1
make[4]: Leaving directory
`/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/mips16/libiberty'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory
`/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/libiberty'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/tmp/build-mips64vrel-elf-20080115/gcc'
make: *** [all] Error 2


-- 
           Summary: target mips64vrel-elf. Internal compiler error (in
                    reload_cse_simplify_operands, at postreload.c:392) while
                    building libiberty
           Product: gcc
           Version: 4.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marco at sitek dot it


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


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

* [Bug target/34900] target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
  2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
@ 2008-01-25  0:34 ` rsandifo at gcc dot gnu dot org
  2008-01-30 10:04 ` marco at sitek dot it
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2008-01-25  0:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rsandifo at gcc dot gnu dot org  2008-01-24 23:21 -------
Created an attachment (id=15019)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15019&action=view)
Patch for PR31388

I suspect this is the same as PR31388, which was fixed on mainline by:

    http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00010.html

I've attached the patch here.  I'll test it once I've got some 4.3
stuff out of the way.

The patch is really not good.  There should be a mode on
that CONST, and there should be no constraints on operand 0.
I'll fix it before testing, but in the meantime, the patch
should work OK as it is.


-- 

rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED


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


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

* [Bug target/34900] target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
  2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
  2008-01-25  0:34 ` [Bug target/34900] " rsandifo at gcc dot gnu dot org
@ 2008-01-30 10:04 ` marco at sitek dot it
  2008-01-31 20:08 ` rsandifo at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marco at sitek dot it @ 2008-01-30 10:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from marco at sitek dot it  2008-01-30 08:43 -------
I do confirm that applying pr31388, gcc 4.2.2 build passes the mentioned bug.
thanks.


-- 


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


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

* [Bug target/34900] target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
  2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
  2008-01-25  0:34 ` [Bug target/34900] " rsandifo at gcc dot gnu dot org
  2008-01-30 10:04 ` marco at sitek dot it
@ 2008-01-31 20:08 ` rsandifo at gcc dot gnu dot org
  2008-01-31 20:08 ` [Bug target/34900] [4.2 Regression] " rsandifo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2008-01-31 20:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rsandifo at gcc dot gnu dot org  2008-01-31 19:28 -------
Subject: Bug 34900

Author: rsandifo
Date: Thu Jan 31 19:28:03 2008
New Revision: 131983

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131983
Log:
gcc/
        PR target/34900
        * config/mips/mips.c (gen_load_const_gp): New function, taking a
        comment from...
        (mips16_gp_pseudo_reg): ...here.
        * config/mips/mips.md (load_const_gp): Replace with...
        (load_const_gp_<mode>): ...this :P-based insn.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/mips/mips.c
    trunk/gcc/config/mips/mips.md


-- 


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


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

* [Bug target/34900] [4.2 Regression] target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
  2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
                   ` (2 preceding siblings ...)
  2008-01-31 20:08 ` rsandifo at gcc dot gnu dot org
@ 2008-01-31 20:08 ` rsandifo at gcc dot gnu dot org
  2008-01-31 20:08 ` [Bug target/34900] " rsandifo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2008-01-31 20:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rsandifo at gcc dot gnu dot org  2008-01-31 19:36 -------
For the record, the patch logged by the previous comment
was to 4.3.0.  It adds the missing mode I mentioned in
comment #2.


-- 

rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.2.2
      Known to work|                            |4.3.0
            Summary|target mips64vrel-elf.      |[4.2 Regression] target
                   |Internal compiler error (in |mips64vrel-elf. Internal
                   |reload_cse_simplify_operands|compiler error (in
                   |, at postreload.c:392) while|reload_cse_simplify_operands
                   |building libiberty          |, at postreload.c:392) while
                   |                            |building libiberty


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


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

* [Bug target/34900] target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
  2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
                   ` (3 preceding siblings ...)
  2008-01-31 20:08 ` [Bug target/34900] [4.2 Regression] " rsandifo at gcc dot gnu dot org
@ 2008-01-31 20:08 ` rsandifo at gcc dot gnu dot org
  2008-02-02 10:03 ` [Bug target/34900] [4.2 Regression] " rsandifo at gcc dot gnu dot org
  2008-02-02 10:07 ` rsandifo at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2008-01-31 20:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rsandifo at gcc dot gnu dot org  2008-01-31 19:27 -------
Created an attachment (id=15068)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15068&action=view)
Patch that I intend to commit

Thanks for the testing.  I went ahead and made the changes
I mentioned in comment #2, and the new version seems to work too.

Unfortunately, I've missed the boat for 4.2.3, but here's the
patch I intend to commit for 4.2.4.


-- 

rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15019|0                           |1
        is obsolete|                            |


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


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

* [Bug target/34900] [4.2 Regression] target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
  2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
                   ` (4 preceding siblings ...)
  2008-01-31 20:08 ` [Bug target/34900] " rsandifo at gcc dot gnu dot org
@ 2008-02-02 10:03 ` rsandifo at gcc dot gnu dot org
  2008-02-02 10:07 ` rsandifo at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2008-02-02 10:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rsandifo at gcc dot gnu dot org  2008-02-02 10:02 -------
Subject: Bug 34900

Author: rsandifo
Date: Sat Feb  2 10:01:38 2008
New Revision: 132068

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132068
Log:
Add PR 34900 to CL for PR 31388

Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog


-- 


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


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

* [Bug target/34900] [4.2 Regression] target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty
  2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
                   ` (5 preceding siblings ...)
  2008-02-02 10:03 ` [Bug target/34900] [4.2 Regression] " rsandifo at gcc dot gnu dot org
@ 2008-02-02 10:07 ` rsandifo at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2008-02-02 10:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rsandifo at gcc dot gnu dot org  2008-02-02 10:06 -------
Patch applied to 4.2 (labelled as PR31388


-- 

rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.4


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


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

end of thread, other threads:[~2008-02-02 10:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-21  9:35 [Bug other/34900] New: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty marco at sitek dot it
2008-01-25  0:34 ` [Bug target/34900] " rsandifo at gcc dot gnu dot org
2008-01-30 10:04 ` marco at sitek dot it
2008-01-31 20:08 ` rsandifo at gcc dot gnu dot org
2008-01-31 20:08 ` [Bug target/34900] [4.2 Regression] " rsandifo at gcc dot gnu dot org
2008-01-31 20:08 ` [Bug target/34900] " rsandifo at gcc dot gnu dot org
2008-02-02 10:03 ` [Bug target/34900] [4.2 Regression] " rsandifo at gcc dot gnu dot org
2008-02-02 10:07 ` rsandifo 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).