public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/30987]  New: Problem while compiling gcc for score
@ 2007-02-27 22:11 mstein at phenix dot rootshell dot be
  2007-02-27 22:25 ` [Bug rtl-optimization/30987] [4.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: mstein at phenix dot rootshell dot be @ 2007-02-27 22:11 UTC (permalink / raw)
  To: gcc-bugs

Hello,
there seems to be a gcc problem with the target 'score':


/home/mstein/sim/score-elf/build/./gcc/xgcc
-B/home/mstein/sim/score-elf/build/./gcc/ -nostdinc
-B/home/mstein/sim/score-elf/build/score-elf/newlib/ -isystem
/home/mstein/sim/score-elf/build/score-elf/newlib/targ-include -isystem
/n/07/mstein/combined-trunk/newlib/libc/include
-B/n/07/mstein/cross-local/score-elf-new/score-elf/bin/
-B/n/07/mstein/cross-local/score-elf-new/score-elf/lib/ -isystem
/n/07/mstein/cross-local/score-elf-new/score-elf/include -isystem
/n/07/mstein/cross-local/score-elf-new/score-elf/sys-include
-L/home/mstein/sim/score-elf/build/./ld -O2 -g -O2 -mmac -O2  -O2 -g -O2 
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -G 0 -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I.
-I. -I../../.././gcc -I/n/07/mstein/combined-trunk/libgcc
-I/n/07/mstein/combined-trunk/libgcc/.
-I/n/07/mstein/combined-trunk/libgcc/../gcc
-I/n/07/mstein/combined-trunk/libgcc/../include
-I/n/07/mstein/combined-trunk/libgcc/../libdecnumber -I../../../libdecnumber -o
_floatdisf.o -MT _floatdisf.o -MD -MP -MF _floatdisf.dep -DL_floatdisf -c
/n/07/mstein/combined-trunk/libgcc/../gcc/libgcc2.c \

In file included from ../../.././gcc/tm.h:8,
                 from /n/07/mstein/combined-trunk/libgcc/../gcc/libgcc2.c:35:
/n/07/mstein/combined-trunk/libgcc/../gcc/config/score/score.h:776:1: warning:
"ASM_OUTPUT_EXTERNAL" redefined
In file included from ../../.././gcc/tm.h:6,
                 from /n/07/mstein/combined-trunk/libgcc/../gcc/libgcc2.c:35:
/n/07/mstein/combined-trunk/libgcc/../gcc/config/elfos.h:514:1: warning: this
is the location of the previous definition
/n/07/mstein/combined-trunk/libgcc/../gcc/libgcc2.c: In function '__floatdisf':
/n/07/mstein/combined-trunk/libgcc/../gcc/libgcc2.c:1526: internal compiler
error: in decompose_multiword_subregs, at lower-subreg.c:1140
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [_floatdisf.o] Error 1


-- 
           Summary: Problem while compiling gcc for score
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mstein at phenix dot rootshell dot be
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: score-unknown-elf


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


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

* [Bug rtl-optimization/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
@ 2007-02-27 22:25 ` pinskia at gcc dot gnu dot org
  2007-02-28  2:25 ` ian at airs dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-27 22:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-02-27 22:24 -------
Can you do two things for me, first supply what is the date on 4.3.0 you are
trying to compile?  Second, can you attach the preprocessed source found by
recompiling the source which is failing with -save-temps?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org, ian at gcc dot gnu dot
                   |                            |org
          Component|target                      |rtl-optimization
            Summary|Problem while compiling gcc |[4.3 Regression] Problem
                   |for score                   |while compiling gcc for
                   |                            |score
   Target Milestone|---                         |4.3.0


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


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

* [Bug rtl-optimization/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
  2007-02-27 22:25 ` [Bug rtl-optimization/30987] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-02-28  2:25 ` ian at airs dot com
  2007-02-28  4:42 ` [Bug target/30987] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2007-02-28  2:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ian at airs dot com  2007-02-28 02:24 -------
The problem is that the bitset_c insn comes before the iorsi3 insn in the MD
files.  It matches the ior:SI insn with one added clobber.  Unfortunately, the
added clobber is of a hard reg, and so this is rejected by insn_invalid_p in
recog.c.

I don't understand how bitset_c will ever be used in practice.  Nothing
generates it explicitly.  Typical ior:SI insns get passed to recog_memoized
which does not add clobbers.

I can fix the problem easily enough by moving (include "misc.md") and (include
"mac.md") to the end of score.md.  I'm not sure how to really test that fix.


-- 


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


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

* [Bug target/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
  2007-02-27 22:25 ` [Bug rtl-optimization/30987] [4.3 Regression] " pinskia at gcc dot gnu dot org
  2007-02-28  2:25 ` ian at airs dot com
@ 2007-02-28  4:42 ` pinskia at gcc dot gnu dot org
  2007-03-09 17:07 ` mstein at phenix dot rootshell dot be
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-28  4:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-02-28 04:42 -------
And I think the pattern is incorrect anyways, lets look at it:
(define_insn "bitset_c"
  [(set (match_operand:SI 0 "register_operand" "=e,d")
        (ior:SI (match_operand:SI 1 "register_operand" "0,d")
                (match_operand:SI 2 "const_pow2")))
   (clobber (reg:CC CC_REGNUM))]


No constraints on the operand 2, that is bad news for after reload.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |target


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


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

* [Bug target/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
                   ` (2 preceding siblings ...)
  2007-02-28  4:42 ` [Bug target/30987] " pinskia at gcc dot gnu dot org
@ 2007-03-09 17:07 ` mstein at phenix dot rootshell dot be
  2007-05-09  9:55 ` liqin at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mstein at phenix dot rootshell dot be @ 2007-03-09 17:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mstein at phenix dot rootshell dot be  2007-03-09 17:05 -------
Created an attachment (id=13179)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13179&action=view)
from SVN revision: 122728

Commandline used to create libgcc2.i:


/home/mstein/sim/score-elf/build/./gcc/xgcc
-B/home/mstein/sim/score-elf/build/./gcc/ -nostdinc
-B/home/mstein/sim/score-elf/build/score-elf/newlib/ -isystem
/home/mstein/sim/score-elf/build/score-elf/newlib/targ-include -isystem
/n/07/mstein/combined-trunk/newlib/libc/include
-B/n/07/mstein/cross-local/score-elf-new/score-elf/bin/
-B/n/07/mstein/cross-local/score-elf-new/score-elf/lib/ -isystem
/n/07/mstein/cross-local/score-elf-new/score-elf/include -isystem
/n/07/mstein/cross-local/score-elf-new/score-elf/sys-include
-L/home/mstein/sim/score-elf/build/./ld -O2 -g -O2 -mmac -O2  -O2 -g -O2 
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -G 0 -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I.
-I. -I../../.././gcc -I/n/07/mstein/combined-trunk/libgcc
-I/n/07/mstein/combined-trunk/libgcc/.
-I/n/07/mstein/combined-trunk/libgcc/../gcc
-I/n/07/mstein/combined-trunk/libgcc/../include
-I/n/07/mstein/combined-trunk/libgcc/../libdecnumber -I../../../libdecnumber -o
_floatdisf.o -MT _floatdisf.o -MD -MP -MF _floatdisf.dep -DL_floatdisf -c
/n/07/mstein/combined-trunk/libgcc/../gcc/libgcc2.c \
   -save-temps


-- 


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


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

* [Bug target/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
                   ` (3 preceding siblings ...)
  2007-03-09 17:07 ` mstein at phenix dot rootshell dot be
@ 2007-05-09  9:55 ` liqin at gcc dot gnu dot org
  2007-05-10  7:19 ` liqin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: liqin at gcc dot gnu dot org @ 2007-05-09  9:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from liqin at gcc dot gnu dot org  2007-05-09 10:55 -------
I will remove the bitclr_c,bitset_c and bittgl_c pattern
from misc.md, they have not to many use.


-- 


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


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

* [Bug target/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
                   ` (4 preceding siblings ...)
  2007-05-09  9:55 ` liqin at gcc dot gnu dot org
@ 2007-05-10  7:19 ` liqin at gcc dot gnu dot org
  2007-05-23  5:50 ` liqin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: liqin at gcc dot gnu dot org @ 2007-05-10  7:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from liqin at gcc dot gnu dot org  2007-05-10 08:18 -------
Index: gcc/config/score/predicates.md
===================================================================
--- gcc/config/score/predicates.md      (revision 124567)
+++ gcc/config/score/predicates.md      (working copy)
@@ -75,14 +75,3 @@
   return IMM_IN_RANGE (INTVAL (op), 15, 1);
 })

-(define_predicate "const_pow2"
-  (match_code "const_int")
-{
-  return IMM_IS_POW_OF_2 ((unsigned HOST_WIDE_INT) INTVAL (op), 0, 31);
-})
-
-(define_predicate "const_npow2"
-  (match_code "const_int")
-{
-  return IMM_IS_POW_OF_2 (~(unsigned HOST_WIDE_INT) INTVAL (op), 0, 31);
-})
Index: gcc/config/score/misc.md
===================================================================
--- gcc/config/score/misc.md    (revision 124567)
+++ gcc/config/score/misc.md    (working copy)
@@ -380,38 +380,3 @@
   [(set_attr "type" "arith")
    (set_attr "mode" "SI")])

-(define_insn "bitclr_c"
-  [(set (match_operand:SI 0 "register_operand" "=e,d")
-        (and:SI (match_operand:SI 1 "register_operand" "0,d")
-                (match_operand:SI 2 "const_npow2")))
-   (clobber (reg:CC CC_REGNUM))]
-  ""
-  "@
-   bitclr!    %0, %F2
-   bitclr.c   %0, %1, %F2"
-  [(set_attr "type" "arith")
-   (set_attr "mode" "SI")])
-
-(define_insn "bitset_c"
-  [(set (match_operand:SI 0 "register_operand" "=e,d")
-        (ior:SI (match_operand:SI 1 "register_operand" "0,d")
-                (match_operand:SI 2 "const_pow2")))
-   (clobber (reg:CC CC_REGNUM))]
-  ""
-  "@
-   bitset!    %0, %E2
-   bitset.c   %0, %1, %E2"
-  [(set_attr "type" "arith")
-   (set_attr "mode" "SI")])
-
-(define_insn "bittgl_c"
-  [(set (match_operand:SI 0 "register_operand" "=e,d")
-        (xor:SI (match_operand:SI 1 "register_operand" "0,d")
-                (match_operand:SI 2 "const_pow2")))
-   (clobber (reg:CC CC_REGNUM))]
-  ""
-  "@
-   bittgl!    %0, %E2
-   bittgl.c   %0, %1, %E2"
-  [(set_attr "type" "arith")
-   (set_attr "mode" "SI")])


-- 

liqin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-05-10 08:18:55
               date|                            |


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


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

* [Bug target/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
                   ` (5 preceding siblings ...)
  2007-05-10  7:19 ` liqin at gcc dot gnu dot org
@ 2007-05-23  5:50 ` liqin at gcc dot gnu dot org
  2007-05-23  6:10 ` liqin at gcc dot gnu dot org
  2007-05-23  6:31 ` liqin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: liqin at gcc dot gnu dot org @ 2007-05-23  5:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from liqin at gcc dot gnu dot org  2007-05-23 06:50 -------
Subject: Bug 30987

Author: liqin
Date: Wed May 23 05:49:50 2007
New Revision: 124980

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124980
Log:
2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>

        PR target/30987
        * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): remove.
        * config/score/predicate.md (const_pow2, const_npow2): remove.
        * config/score/score.h (ASM_OUTPUT_EXTERNAL): add ASM_OUTPUT_EXTERNAL
undef.
        PR target/30474
        * config/score/score.c (score_print_operand): makes sure that only
lower 
        bits are used.


Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/config/score/misc.md
    branches/gcc-4_2-branch/gcc/config/score/predicates.md
    branches/gcc-4_2-branch/gcc/config/score/score.c
    branches/gcc-4_2-branch/gcc/config/score/score.h


-- 


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


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

* [Bug target/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
                   ` (6 preceding siblings ...)
  2007-05-23  5:50 ` liqin at gcc dot gnu dot org
@ 2007-05-23  6:10 ` liqin at gcc dot gnu dot org
  2007-05-23  6:31 ` liqin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: liqin at gcc dot gnu dot org @ 2007-05-23  6:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from liqin at gcc dot gnu dot org  2007-05-23 07:09 -------
Subject: Bug 30987

Author: liqin
Date: Wed May 23 06:09:20 2007
New Revision: 124983

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124983
Log:
2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>

        PR target/30987
        * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): remove.
        * config/score/predicate.md (const_pow2, const_npow2): remove.
        * config/score/score.h (ASM_OUTPUT_EXTERNAL): add ASM_OUTPUT_EXTERNAL
undef.
        PR target/30474
        * config/score/score.c (score_print_operand): makes sure that only
lower 
        bits are used.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/score/misc.md
    trunk/gcc/config/score/predicates.md
    trunk/gcc/config/score/score.c
    trunk/gcc/config/score/score.h


-- 


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


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

* [Bug target/30987] [4.3 Regression] Problem while compiling gcc for score
  2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
                   ` (7 preceding siblings ...)
  2007-05-23  6:10 ` liqin at gcc dot gnu dot org
@ 2007-05-23  6:31 ` liqin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: liqin at gcc dot gnu dot org @ 2007-05-23  6:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from liqin at gcc dot gnu dot org  2007-05-23 07:31 -------
        * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): remove.
        * config/score/predicate.md (const_pow2, const_npow2): remove.


-- 

liqin at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-05-23  6:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 22:11 [Bug target/30987] New: Problem while compiling gcc for score mstein at phenix dot rootshell dot be
2007-02-27 22:25 ` [Bug rtl-optimization/30987] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-02-28  2:25 ` ian at airs dot com
2007-02-28  4:42 ` [Bug target/30987] " pinskia at gcc dot gnu dot org
2007-03-09 17:07 ` mstein at phenix dot rootshell dot be
2007-05-09  9:55 ` liqin at gcc dot gnu dot org
2007-05-10  7:19 ` liqin at gcc dot gnu dot org
2007-05-23  5:50 ` liqin at gcc dot gnu dot org
2007-05-23  6:10 ` liqin at gcc dot gnu dot org
2007-05-23  6:31 ` liqin 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).