[Bug target/35847] unrecognized option `-march=score7'

2008-12-24 Thread liqin at gcc dot gnu dot org


--- Comment #1 from liqin at gcc dot gnu dot org  2008-12-25 01:20 ---
score binutils will checkin this option soon.


-- 

liqin at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-12-25 01:20:53
   date||


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



[Bug target/35847] unrecognized option `-march=score7'

2009-08-27 Thread liqin at gcc dot gnu dot org


--- Comment #3 from liqin at gcc dot gnu dot org  2009-08-27 09:17 ---
please download new binutils-2.19.51, it already support score7 option.


-- 

liqin at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED


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



[Bug target/30987] [4.3 Regression] Problem while compiling gcc for score

2007-05-09 Thread liqin at gcc dot gnu dot org


--- 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



[Bug target/30987] [4.3 Regression] Problem while compiling gcc for score

2007-05-10 Thread liqin at gcc dot gnu dot org


--- 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|-00-00 00:00:00 |2007-05-10 08:18:55
   date||


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



[Bug target/30474] Bad 16bit constant code generation on 64bit host

2007-05-10 Thread liqin at gcc dot gnu dot org


--- Comment #1 from liqin at gcc dot gnu dot org  2007-05-10 08:21 ---
Index: gcc/config/score/score.c
===
--- gcc/config/score/score.c(revision 124567)
+++ gcc/config/score/score.c(working copy)
@@ -1167,7 +1167,7 @@ score_print_operand (FILE *file, rtx op,
 {
   gcc_assert (code == CONST_INT);
   fprintf (file, HOST_WIDE_INT_PRINT_HEX,
-   (unsigned HOST_WIDE_INT) INTVAL (op) >> 16);
+   (INTVAL (op) >> 16) & 0x);
 }
   else if (c == 'D')
 {
@@ -1175,7 +1175,7 @@ score_print_operand (FILE *file, rtx op,
 {
   rtx temp = gen_lowpart (SImode, op);
   gcc_assert (GET_MODE (op) == SFmode);
-  fprintf (file, HOST_WIDE_INT_PRINT_HEX, INTVAL (temp));
+  fprintf (file, HOST_WIDE_INT_PRINT_HEX, INTVAL (temp) & 0x);
 }
   else
 output_addr_const (file, op);


-- 

liqin at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2007-05-10 08:21:37
   date||


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



[Bug target/30474] Bad 16bit constant code generation on 64bit host

2007-05-22 Thread liqin at gcc dot gnu dot org


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

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  <[EMAIL PROTECTED]>

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=30474



[Bug target/30987] [4.3 Regression] Problem while compiling gcc for score

2007-05-22 Thread liqin at gcc dot gnu dot org


--- 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  <[EMAIL PROTECTED]>

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



[Bug target/30474] Bad 16bit constant code generation on 64bit host

2007-05-22 Thread liqin at gcc dot gnu dot org


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

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  <[EMAIL PROTECTED]>

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=30474



[Bug target/30987] [4.3 Regression] Problem while compiling gcc for score

2007-05-22 Thread liqin at gcc dot gnu dot org


--- 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  <[EMAIL PROTECTED]>

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



[Bug target/30987] [4.3 Regression] Problem while compiling gcc for score

2007-05-22 Thread liqin at gcc dot gnu dot org


--- 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



[Bug target/30474] Bad 16bit constant code generation on 64bit host

2007-05-22 Thread liqin at gcc dot gnu dot org


--- Comment #4 from liqin at gcc dot gnu dot org  2007-05-23 07:35 ---
* config/score/score.c (score_print_operand): makes sure that only
lower bits are used.


-- 

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=30474



[Bug c/32079] New: [4.2 Regression] there seems to be a gcc optimization problem.

2007-05-25 Thread liqin at gcc dot gnu dot org
below c code will get "false" at -O0, -O1, -O3,
and get "true" at -O2, -Os.

#include 

typedef struct {
int aa;
int bb;
} test;

//test t1;

void foo (test **pp) 
{ 
if (((*pp)->bb != 0) && (*pp)) 
printf ("true\n");
else 
printf ("false\n");

printf ("finished.\n");
}

int main (void)
{
test *p;
p = NULL;
foo (&p);
return 0; 
}


-- 
   Summary: [4.2 Regression] there seems to be a gcc optimization
problem.
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: liqin at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-elf


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