[Bug tree-optimization/45144] SRA optimization issue of bit-field

2010-08-04 Thread jiez at gcc dot gnu dot org


--- Comment #4 from jiez at gcc dot gnu dot org  2010-08-05 03:06 ---
Subject: Bug 45144

Author: jiez
Date: Thu Aug  5 03:05:35 2010
New Revision: 162897

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162897
Log:
PR tree-optimization/45144
* tree-sra.c (type_consists_of_records_p): Return false
if the record contains bit-field.

testsuite/
PR tree-optimization/45144
* gcc.dg/tree-ssa/pr45144.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr45144.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-sra.c


-- 


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



[Bug driver/45163] New: -save-temps=obj does not work correctly

2010-08-02 Thread jiez at gcc dot gnu dot org
Assume there is a directory foo in the current directory and there is a foo.c
in ./foo , I saw this on 4.5.1

$ gcc-4.5 -fdump-tree-optimized -save-temps=obj foo/foo.c -S -o foo/foo.s
foo/foo.c: In function ‘foo’:
foo/foo.c:1:6: error: could not open dump file ‘foo/foo/foo.140t.optimized’: No
such file or directory


-- 
   Summary: -save-temps=obj does not work correctly
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jiez at gcc dot gnu dot org


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



[Bug driver/45163] -save-temps=obj does not work correctly with -fdum-tree- options

2010-08-02 Thread jiez at gcc dot gnu dot org


--- Comment #1 from jiez at gcc dot gnu dot org  2010-08-02 08:43 ---
Make the summary more specific.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|-save-temps=obj does not|-save-temps=obj does not
   |work correctly  |work correctly with -fdum-
   ||tree- options


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



[Bug tree-optimization/45144] SRA optimization issue of bit-field

2010-08-01 Thread jiez at gcc dot gnu dot org


--- Comment #3 from jiez at gcc dot gnu dot org  2010-08-02 04:34 ---
Aggregates Copy Propagation should be able to fix this, too.


-- 


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



[Bug tree-optimization/45144] New: SRA optimization issue of bit-field

2010-07-30 Thread jiez at gcc dot gnu dot org
For the following code:

void baz (unsigned);

extern unsigned buf[];

struct A
{
  unsigned a1:10;
  unsigned a2:3;
  unsigned:19;
};

union TMP
{
  struct A a;
  unsigned int b;
};

static unsigned
foo (struct A *p)
{
  union TMP t;
  struct A x;

  x = *p;
  t.a = x;
  return t.b;
}

void
bar (unsigned orig, unsigned *new)
{
  struct A a;
  union TMP s;

  s.b = orig;
  a = s.a;
  if (a.a1)
baz (a.a2);
  *new = foo (a);
}

arm-none-eabi-gcc -O2 generates:

bar:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd   sp!, {r3, r4, r5, r6, r7, lr}
mov r4, r0, asl #22
mov r5, r0, lsr #10
movsr4, r4, lsr #22
mov r6, r1
and r5, r5, #7
mov r7, r0, lsr #13
movne   r0, r5
blnebaz
.L2:
orr r4, r4, r5, asl #10
orr r7, r4, r7, asl #13
str r7, [r6, #0]
ldmfd   sp!, {r3, r4, r5, r6, r7, lr}
bx  lr

while arm-none-eabi-gcc -O2 -fno-tree-sra generates:

bar:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd   sp!, {r3, r4, r5, lr}
movsr3, r0, asl #22
mov r4, r0
mov r5, r1
movne   r0, r0, lsr #10
andne   r0, r0, #7
blnebaz
.L2:
str r4, [r5, #0]
ldmfd   sp!, {r3, r4, r5, lr}
bx  lr


-- 
   Summary: SRA optimization issue of bit-field
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jiez at gcc dot gnu dot org
GCC target triplet: arm-none-eabi


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



[Bug target/44290] [4.5 only] __naked attribute is broken

2010-07-27 Thread jiez at gcc dot gnu dot org


--- Comment #26 from jiez at gcc dot gnu dot org  2010-07-27 17:34 ---
Subject: Bug 44290

Author: jiez
Date: Tue Jul 27 17:33:30 2010
New Revision: 162579

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162579
Log:
PR target/44290
Revert
2010-07-23  Jie Zhang  j...@codesourcery.com
* tree-sra.c (ipa_sra_preliminary_function_checks): Return
false if ! tree_versionable_function_p.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-sra.c


-- 


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



[Bug target/44290] [4.5 only] __naked attribute is broken

2010-07-26 Thread jiez at gcc dot gnu dot org


--- Comment #25 from jiez at gcc dot gnu dot org  2010-07-26 14:37 ---
Ramana, I will ask for permission to commit it on 4.5 branch when it's
unfrozen.


-- 


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



[Bug target/44290] [4.5 Regression] __naked attribute is broken

2010-07-23 Thread jiez at gcc dot gnu dot org


--- Comment #21 from jiez at gcc dot gnu dot org  2010-07-23 14:48 ---
Subject: Bug 44290

Author: jiez
Date: Fri Jul 23 14:47:46 2010
New Revision: 162466

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162466
Log:
PR target/44290
* attribs.c (decl_attributes): Insert noinline and noclone
if naked.
* tree-sra.c (ipa_sra_preliminary_function_checks): Return
false if ! tree_versionable_function_p.

testsuite/
PR target/44290
* gcc.dg/pr44290-1.c: New test.
* gcc.dg/pr44290-2.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/pr44290-1.c
trunk/gcc/testsuite/gcc.dg/pr44290-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/attribs.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-sra.c


-- 


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



[Bug target/44290] [4.5 Regression] __naked attribute is broken

2010-07-23 Thread jiez at gcc dot gnu dot org


--- Comment #22 from jiez at gcc dot gnu dot org  2010-07-23 14:51 ---
Should be fixed on trunk now.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jiez at gcc dot gnu dot org
   |dot org |
 Status|REOPENED|ASSIGNED


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



[Bug target/44290] [4.5 Regression] __naked attribute is broken

2010-07-23 Thread jiez at gcc dot gnu dot org


--- Comment #23 from jiez at gcc dot gnu dot org  2010-07-23 14:52 ---
Set the status to FIXED.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug bootstrap/44921] [4.6 Regression] Failed to bootstrap

2010-07-13 Thread jiez at gcc dot gnu dot org


--- Comment #7 from amylaar at spamcop dot net  2010-07-13 01:55 ---
Subject: Re:  [4.6 Regression] Failed to bootstrap

Quoting hjl dot tools at gmail dot com gcc-bugzi...@gcc.gnu.org:
 Maybe

 int min_regno = 0;

 is faster.

Considering performance, your first patch was better - it avoids a call to
rtx_cost when no optimization can be performed.  OTOH with the expensive
loop through all hard registers that's in the noise.
Or compared to the cycles wasted on failed bootstraps or this discussion ;-)


--- Comment #8 from jiez at gcc dot gnu dot org  2010-07-13 09:51 ---
Created an attachment (id=21189)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21189action=view)
The test case

The test case


-- 


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



[Bug bootstrap/44921] [4.6 Regression] Failed to bootstrap

2010-07-13 Thread jiez at gcc dot gnu dot org


--- Comment #9 from jiez at gcc dot gnu dot org  2010-07-13 09:52 ---
I think this one caused it:

http://gcc.gnu.org/ml/gcc-patches/2010-06/msg03103.html

The test case is attached.

$ ./cc1 -O2 -Wall testcase.i -quiet
testcase.i: In function 'reload_cse_regs':
testcase.i:18129:64: warning: 'min_regno' may be used uninitialized in this
function [-Wuninitialized]
testcase.i:18095:7: note: 'min_regno' was declared here


-- 


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



[Bug bootstrap/44921] [4.6 Regression] Failed to bootstrap

2010-07-13 Thread jiez at gcc dot gnu dot org


--- Comment #10 from jiez at gcc dot gnu dot org  2010-07-13 16:20 ---
Created an attachment (id=21191)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21191action=view)
The reduced test case


-- 


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



[Bug bootstrap/44921] [4.6 Regression] Failed to bootstrap

2010-07-13 Thread jiez at gcc dot gnu dot org


--- Comment #11 from jiez at gcc dot gnu dot org  2010-07-13 16:40 ---
Created an attachment (id=21192)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21192action=view)
The reduced test case


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

  Attachment #21191|0   |1
is obsolete||


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



[Bug target/44888] Stack pointer corruption within interrupt routine when compiled with -Os

2010-07-12 Thread jiez at gcc dot gnu dot org


--- Comment #2 from jiez at gcc dot gnu dot org  2010-07-12 09:57 ---
Ramana, I will do it.


-- 


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



[Bug target/44888] Stack pointer corruption within interrupt routine when compiled with -Os

2010-07-12 Thread jiez at gcc dot gnu dot org


--- Comment #3 from jiez at gcc dot gnu dot org  2010-07-12 14:06 ---
My patch has been committed on trunk and 4.5 branch. This bug should be fixed
now. Please verify.


-- 


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



[Bug target/44888] Stack pointer corruption within interrupt routine when compiled with -Os

2010-07-12 Thread jiez at gcc dot gnu dot org


--- Comment #4 from jiez at gcc dot gnu dot org  2010-07-12 14:07 ---
The updated patch:

http://gcc.gnu.org/ml/gcc-patches/2010-07/msg00968.html


-- 


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



[Bug bootstrap/44820] [4.6 regression] ARM bootstrap failure: regno set but unused in arm_attr_length_move_neon

2010-07-05 Thread jiez at gcc dot gnu dot org


--- Comment #2 from jiez at gcc dot gnu dot org  2010-07-05 09:11 ---
Subject: Bug 44820

Author: jiez
Date: Mon Jul  5 09:11:39 2010
New Revision: 161822

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161822
Log:
2010-07-05  Mikael Pettersson  mi...@it.uu.se

PR bootstrap/44820
* config/arm/arm.c (arm_attr_length_move_neon): Delete regno.

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


-- 


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



[Bug bootstrap/44820] [4.6 regression] ARM bootstrap failure: regno set but unused in arm_attr_length_move_neon

2010-07-05 Thread jiez at gcc dot gnu dot org


--- Comment #3 from jiez at gcc dot gnu dot org  2010-07-05 09:15 ---
Sorry for causing this. Thanks for your fix. I have committed it for you.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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



[Bug bootstrap/44820] [4.6 regression] ARM bootstrap failure: regno set but unused in arm_attr_length_move_neon

2010-07-05 Thread jiez at gcc dot gnu dot org


--- Comment #5 from jiez at gcc dot gnu dot org  2010-07-05 12:45 ---
Subject: Bug 44820

Author: jiez
Date: Mon Jul  5 12:45:19 2010
New Revision: 161833

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161833
Log:
2010-07-05  Mikael Pettersson  mi...@it.uu.se

PR bootstrap/44820
* config/arm/arm.c (arm_attr_length_move_neon): Delete regno.

2010-07-05  Jie Zhang  j...@codesourcery.com

* config/arm/arm.c (arm_attr_length_move_neon): New.
* config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
* config/arm/neon.md (define_mode_attr V_slen): Remove.
(neon_movmode for VSTRUCT): Use arm_attr_length_move_neon
to compute length attribute.

Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config/arm/arm-protos.h
branches/gcc-4_5-branch/gcc/config/arm/arm.c
branches/gcc-4_5-branch/gcc/config/arm/neon.md


-- 


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



[Bug bootstrap/43994] [4.6 Regression] Revision 159063 failed to bootstrap on Linux/ia64

2010-05-06 Thread jiez at gcc dot gnu dot org


--- Comment #8 from jiez at gcc dot gnu dot org  2010-05-06 16:35 ---
I see similar issue on ARM target. It seems to be fixed by the
patch in comment #6 .


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||jiez at gcc dot gnu dot org


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



[Bug tree-optimization/43833] false warning: array subscript is above array bounds with -O3

2010-04-26 Thread jiez at gcc dot gnu dot org


--- Comment #3 from jiez at gcc dot gnu dot org  2010-04-26 10:59 ---
Subject: Bug 43833

Author: jiez
Date: Mon Apr 26 10:59:34 2010
New Revision: 158727

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158727
Log:
PR tree-optimization/43833
* tree-vrp.c (range_int_cst_p): New.
(range_int_cst_singleton_p): New.
(extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
when both operands are constants.  Use range_int_cst_p in
BIT_IOR_EXPR case.

testsuite/
PR tree-optimization/43833
gcc.dg/Warray-bounds-8.c: New test case.

Added:
trunk/gcc/testsuite/gcc.dg/Warray-bounds-8.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c


-- 


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



[Bug tree-optimization/43833] false warning: array subscript is above array bounds with -O3

2010-04-26 Thread jiez at gcc dot gnu dot org


--- Comment #4 from jiez at gcc dot gnu dot org  2010-04-26 11:00 ---
Subject: Bug 43833

Author: jiez
Date: Mon Apr 26 10:59:48 2010
New Revision: 158728

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158728
Log:
PR tree-optimization/43833
* tree-vrp.c (range_int_cst_p): New.
(range_int_cst_singleton_p): New.
(extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
when both operands are constants.  Use range_int_cst_p in
BIT_IOR_EXPR case.

testsuite/
PR tree-optimization/43833
gcc.dg/Warray-bounds-8.c: New test case.

Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/Warray-bounds-8.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-vrp.c


-- 


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



[Bug tree-optimization/43833] false warning: array subscript is above array bounds with -O3

2010-04-23 Thread jiez at gcc dot gnu dot org


--- Comment #2 from jiez at gcc dot gnu dot org  2010-04-23 07:23 ---
Updated patch

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01386.html


-- 


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



[Bug middle-end/43833] New: false warning: array subscript is above array bounds with -O3

2010-04-21 Thread jiez at gcc dot gnu dot org
$ cat t.c
extern unsigned char data[5];

unsigned char
foo (char *str)
{
  int i, j;
  unsigned char c = 0;

  for (i = 0; i  8; i++)
{
  j = i * 5;
  if ((j % 8)  3)
c |= data[(j / 8) + 1];
}
  return c;
}

$ gcc t.c -O3 -Wall -c
t.c: In function ‘foo’:
t.c:13:11: warning: array subscript is above array bounds


-- 
   Summary: false warning: array subscript is above array bounds
with -O3
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: jiez at gcc dot gnu dot org
ReportedBy: jiez at gcc dot gnu dot org


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



[Bug tree-optimization/43833] false warning: array subscript is above array bounds with -O3

2010-04-21 Thread jiez at gcc dot gnu dot org


--- Comment #1 from jiez at gcc dot gnu dot org  2010-04-21 14:48 ---
The patch:

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01304.html


-- 


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



[Bug other/43791] kernel/rtmutex.c:1138:1: internal compiler error: in cgraph_decide_inlining_of_small_functions, at ipa-inline.c:1009

2010-04-19 Thread jiez at gcc dot gnu dot org


--- Comment #2 from jiez at gcc dot gnu dot org  2010-04-19 07:24 ---
Justin,

You can add V=1 when make linux kernel. Then you can find the command line used
to compile rtmutex.c. Change -c in the command line to -E and return the
command line. Rename the resulted rtmutex.o to rtmutex.i and attach that file
here.


-- 


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



[Bug target/43662] [4.4/4.5/4.6 Regression] ICE in insert_save with ms_abi attribute

2010-04-19 Thread jiez at gcc dot gnu dot org


--- Comment #11 from jiez at gcc dot gnu dot org  2010-04-19 07:24 ---
Thanks all. This is the updated patch:

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01157.html


-- 


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



[Bug target/43662] [4.4/4.5/4.6 Regression] ICE in insert_save with ms_abi attribute

2010-04-19 Thread jiez at gcc dot gnu dot org


--- Comment #12 from jiez at gcc dot gnu dot org  2010-04-19 10:03 ---
Subject: Bug 43662

Author: jiez
Date: Mon Apr 19 10:02:52 2010
New Revision: 158509

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158509
Log:
PR target/43662
* reginfo.c (reinit_regs): Set caller_save_initialized_p
to false.

testsuite/
PR target/43662
* gcc.target/i386/pr43662.c: New test.

Added:
trunk/gcc/testsuite/gcc.target/i386/pr43662.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/reginfo.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug target/43662] [4.4/4.5/4.6 Regression] ICE in insert_save with ms_abi attribute

2010-04-19 Thread jiez at gcc dot gnu dot org


--- Comment #13 from jiez at gcc dot gnu dot org  2010-04-19 10:05 ---
Subject: Bug 43662

Author: jiez
Date: Mon Apr 19 10:04:43 2010
New Revision: 158510

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158510
Log:
PR target/43662
* reginfo.c (reinit_regs): Set caller_save_initialized_p
to false.

testsuite/
PR target/43662
* gcc.target/i386/pr43662.c: New test.

Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr43662.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/reginfo.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug target/43662] [4.4/4.5/4.6 Regression] ICE in insert_save with ms_abi attribute

2010-04-19 Thread jiez at gcc dot gnu dot org


--- Comment #14 from jiez at gcc dot gnu dot org  2010-04-19 10:06 ---
Subject: Bug 43662

Author: jiez
Date: Mon Apr 19 10:06:13 2010
New Revision: 158511

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158511
Log:
PR target/43662
* reginfo.c (reinit_regs): Set caller_save_initialized_p
to false.

testsuite/
PR target/43662
* gcc.target/i386/pr43662.c: New test.

Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr43662.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/reginfo.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug target/43662] [4.4/4.5/4.6 Regression] ICE in insert_save with ms_abi attribute

2010-04-19 Thread jiez at gcc dot gnu dot org


--- Comment #15 from jiez at gcc dot gnu dot org  2010-04-19 10:10 ---
Should be fixed now on trunk, 4.5 and 4.4 branches.


-- 


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



[Bug regression/43713] New: False set but not used warning

2010-04-10 Thread jiez at gcc dot gnu dot org
Latest trunk gives a set but not used warning for the following code:

int
foo (int status)
{
  if signed char) __extension__ ({ union { __typeof(status) __in; int
__i; } __u; __u.__in = (status); __u.__i; })))  0x7f) + 1)  1)  0))
return 0;
  else
return 1;
}

It's a reduced test case from bootstraping gcc failure on Ubuntu 9.04.


-- 
   Summary: False set  but not used warning
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: regression
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jiez at gcc dot gnu dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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



[Bug regression/43713] False set but not used warning

2010-04-10 Thread jiez at gcc dot gnu dot org


--- Comment #1 from jiez at gcc dot gnu dot org  2010-04-10 08:54 ---
Caused by

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00317.html


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||jakub at redhat dot com


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



[Bug regression/43713] False set but not used warning

2010-04-10 Thread jiez at gcc dot gnu dot org


--- Comment #2 from jiez at gcc dot gnu dot org  2010-04-10 08:56 ---
The patch:

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00347.html


-- 


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



[Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604

2010-04-10 Thread jiez at gcc dot gnu dot org


--- Comment #7 from jiez at gcc dot gnu dot org  2010-04-10 11:43 ---
For the record, -m4 is needed to reproduce this issue.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||jiez at gcc dot gnu dot org


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



[Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604

2010-04-10 Thread jiez at gcc dot gnu dot org


--- Comment #8 from jiez at gcc dot gnu dot org  2010-04-10 15:12 ---
Subject: Bug 43417

Author: jiez
Date: Sat Apr 10 15:12:14 2010
New Revision: 158192

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158192
Log:
PR target/43417
* gcc.target/sh/pr43417.c: New test.

Added:
trunk/gcc/testsuite/gcc.target/sh/pr43417.c
Modified:
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604

2010-04-10 Thread jiez at gcc dot gnu dot org


--- Comment #9 from jiez at gcc dot gnu dot org  2010-04-10 15:14 ---
Subject: Bug 43417

Author: jiez
Date: Sat Apr 10 15:14:13 2010
New Revision: 158193

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158193
Log:
PR target/43417
* gcc.target/sh/pr43417.c: New test.

Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.target/sh/pr43417.c
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604

2010-04-10 Thread jiez at gcc dot gnu dot org


--- Comment #10 from jiez at gcc dot gnu dot org  2010-04-10 15:17 ---
Subject: Bug 43417

Author: jiez
Date: Sat Apr 10 15:17:15 2010
New Revision: 158194

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158194
Log:
PR target/43417
* gcc.target/sh/pr43417.c: New test.

Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/sh/pr43417.c
Modified:
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug target/43662] [4.5/4.6 Regression] ICE in insert_save with ms_abi attribute

2010-04-10 Thread jiez at gcc dot gnu dot org


--- Comment #5 from jiez at gcc dot gnu dot org  2010-04-10 15:29 ---
The patch:

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00466.html


-- 


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



[Bug tree-optimization/30913] SRA bugs with anon bitfields

2010-04-09 Thread jiez at gcc dot gnu dot org


--- Comment #3 from jiez at gcc dot gnu dot org  2010-04-09 10:58 ---
It's not reproducible on svn trunk now.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||jiez at gcc dot gnu dot org


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



[Bug c++/42556] Unnecessary generation of a zero initializer for array with C++

2010-04-07 Thread jiez at gcc dot gnu dot org


--- Comment #4 from jiez at gcc dot gnu dot org  2010-04-07 10:14 ---
Subject: Bug 42556

Author: jiez
Date: Wed Apr  7 10:14:45 2010
New Revision: 158047

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158047
Log:
cp/
PR c++/42556
* typeck2.c (split_nonconstant_init_1): Drop empty CONSTRUCTOR
when all of its elements are non-constant and have been split out.

testsuite/
PR c++/42556
* g++.dg/init/pr42556.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/init/pr42556.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/42556] Unnecessary generation of a zero initializer for array with C++

2010-04-07 Thread jiez at gcc dot gnu dot org


--- Comment #5 from jiez at gcc dot gnu dot org  2010-04-07 10:19 ---
The patch I committed for this PR:

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00174.html


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug debug/42767] ICE in mem_loc_descriptor

2010-04-06 Thread jiez at gcc dot gnu dot org


--- Comment #7 from jiez at gcc dot gnu dot org  2010-04-06 12:01 ---
This bug should have been fixed. Close.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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



[Bug middle-end/43574] [4.5 Regression] Revision 157795 failed gcc.dg/lto/20090914-1 c_lto_20090914-1_0.o

2010-03-31 Thread jiez at gcc dot gnu dot org


--- Comment #5 from jiez at gcc dot gnu dot org  2010-03-31 09:57 ---
Subject: Bug 43574

Author: jiez
Date: Wed Mar 31 09:57:03 2010
New Revision: 157859

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157859
Log:
PR 43574
* opt-functions.awk (var_type_struct): Use signed char type
for simple variables.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/opt-functions.awk


-- 


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



[Bug middle-end/43574] [4.5 Regression] Revision 157795 failed gcc.dg/lto/20090914-1 c_lto_20090914-1_0.o

2010-03-31 Thread jiez at gcc dot gnu dot org


--- Comment #6 from jiez at gcc dot gnu dot org  2010-03-31 09:58 ---
Should be fixed now.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug middle-end/43574] [4.5 Regression] Revision 157795 failed gcc.dg/lto/20090914-1 c_lto_20090914-1_0.o

2010-03-30 Thread jiez at gcc dot gnu dot org


--- Comment #3 from jiez at gcc dot gnu dot org  2010-03-30 09:20 ---
The patch:

http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01395.html


-- 


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



[Bug middle-end/43574] [4.5 Regression] Revision 157795 failed gcc.dg/lto/20090914-1 c_lto_20090914-1_0.o

2010-03-30 Thread jiez at gcc dot gnu dot org


--- Comment #4 from jiez at gcc dot gnu dot org  2010-03-31 01:46 ---
A new patch:

http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01440.html


-- 


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



[Bug other/43562] GCC ICE on optimize attribute

2010-03-30 Thread jiez at gcc dot gnu dot org


--- Comment #8 from jiez at gcc dot gnu dot org  2010-03-31 02:44 ---
Subject: Bug 43562

Author: jiez
Date: Wed Mar 31 02:44:10 2010
New Revision: 157849

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157849
Log:
PR 43562
* reload.h (caller_save_initialized_p): Declare.
* toplev.c (backend_init_target): Don't call
init_caller_save but set caller_save_initialized_p
to false.
* caller-save.c (caller_save_initialized_p): Define.
(init_caller_save): Check caller_save_initialized_p.
* ira.c (ira): Call init_caller_save if flag_caller_saves.

testsuite/
PR 43562
* gcc.dg/pr43562.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/pr43562.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/caller-save.c
trunk/gcc/ira.c
trunk/gcc/reload.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/toplev.c


-- 


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



[Bug other/43562] GCC ICE on optimize attribute

2010-03-30 Thread jiez at gcc dot gnu dot org


--- Comment #9 from jiez at gcc dot gnu dot org  2010-03-31 02:51 ---
Subject: Bug 43562

Author: jiez
Date: Wed Mar 31 02:51:31 2010
New Revision: 157850

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157850
Log:
PR 43562
* reload.h (caller_save_initialized_p): Declare.
* toplev.c (backend_init_target): Don't call
init_caller_save but set caller_save_initialized_p
to false.
* caller-save.c (caller_save_initialized_p): Define.
(init_caller_save): Check caller_save_initialized_p.
* ira.c (ira): Call init_caller_save if flag_caller_saves.

testsuite/
PR 43562
* gcc.dg/pr43562.c: New test.

Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr43562.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/caller-save.c
branches/gcc-4_4-branch/gcc/ira.c
branches/gcc-4_4-branch/gcc/reload.h
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/toplev.c


-- 


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



[Bug other/43562] GCC ICE on optimize attribute

2010-03-30 Thread jiez at gcc dot gnu dot org


--- Comment #10 from jiez at gcc dot gnu dot org  2010-03-31 02:54 ---
Should be fixed now on trunk and 4.4 branch.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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



[Bug middle-end/41150] segmentation fault after using __attribute__((optimize()))

2010-03-29 Thread jiez at gcc dot gnu dot org


--- Comment #10 from jiez at gcc dot gnu dot org  2010-03-30 02:41 ---
(In reply to comment #9)
 (In reply to comment #4)
  bug2-susan.i does not crash ICE on GCC SVN trunk now.
  
 
 Do you mean bug2-susan.i does not exist on GCC 4.5?
 
I don't see it on latest GCC 4.5.


-- 


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



[Bug middle-end/43574] [4.5 Regression] Revision 157795 failed gcc.dg/lto/20090914-1 c_lto_20090914-1_0.o

2010-03-29 Thread jiez at gcc dot gnu dot org


--- Comment #2 from jiez at gcc dot gnu dot org  2010-03-30 03:56 ---
I'm testing a patch.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jiez at gcc dot gnu dot org
   |dot org |


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



[Bug other/43562] GCC ICE on optimize attribute

2010-03-29 Thread jiez at gcc dot gnu dot org


--- Comment #7 from jiez at gcc dot gnu dot org  2010-03-30 04:06 ---
A new patch is here:

http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01375.html


-- 


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



[Bug middle-end/43562] New: GCC ICE on optimize attribute

2010-03-28 Thread jiez at gcc dot gnu dot org
GCC ICE on the attached test case.

$ ./cc1 /tmp/t.c
 bak
Analyzing compilation unit
Performing interprocedural optimizations
 visibility *free_lang_data early_local_cleanups whole-program
inlineAssembling functions:
 bak
/tmp/t.c: In function ‘bak’:
/tmp/t.c:17:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.


-- 
   Summary: GCC ICE on optimize attribute
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jiez at gcc dot gnu dot org


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



[Bug middle-end/43562] GCC ICE on optimize attribute

2010-03-28 Thread jiez at gcc dot gnu dot org


--- Comment #1 from jiez at gcc dot gnu dot org  2010-03-29 03:39 ---
Created an attachment (id=20243)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20243action=view)
The test case


-- 


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



[Bug c++/43024] [4.4 Regression] ICE on template code with -O2 or -O3, regression from 4.4.2

2010-03-26 Thread jiez at gcc dot gnu dot org


--- Comment #13 from jiez at gcc dot gnu dot org  2010-03-26 14:31 ---
Subject: Bug 43024

Author: jiez
Date: Fri Mar 26 14:30:49 2010
New Revision: 157750

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157750
Log:
2010-03-26  Volker Reichelt  reich...@gcc.gnu.org

PR c++/43024
* g++.dg/opt/ice1.C: New.

Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/opt/ice1.C
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/41183] [4.4 Regression] ICE compiling chromium

2010-03-25 Thread jiez at gcc dot gnu dot org


--- Comment #11 from jiez at gcc dot gnu dot org  2010-03-25 16:35 ---
Created an attachment (id=20198)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20198action=view)
Another patch

This is another patch by copying cfun-language to clone.


-- 


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



[Bug c++/42556] Unnecessary generation of a zero initializer for array with C++

2010-03-23 Thread jiez at gcc dot gnu dot org


--- Comment #3 from jiez at gcc dot gnu dot org  2010-03-23 08:55 ---
My patch for this bug:

http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01039.html


-- 


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



[Bug target/40457] use stm and ldm to access consecutive memory words

2010-03-16 Thread jiez at gcc dot gnu dot org


--- Comment #10 from jiez at gcc dot gnu dot org  2010-03-16 09:08 ---
Not working on this.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|jiez at gcc dot gnu dot org |unassigned at gcc dot gnu
   ||dot org
 Status|ASSIGNED|NEW


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



[Bug c++/42556] Unnecessary generation of a zero initializer for array with C++

2010-03-14 Thread jiez at gcc dot gnu dot org


--- Comment #2 from jiez at gcc dot gnu dot org  2010-03-15 05:34 ---
I'm looking at this bug.


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jiez at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED


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



[Bug target/40457] use stm and ldm to access consecutive memory words

2010-03-02 Thread jiez at gcc dot gnu dot org


-- 

jiez at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jiez at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED


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



[Bug debug/42767] ICE in mem_loc_descriptor

2010-01-17 Thread jiez at gcc dot gnu dot org


--- Comment #4 from jiez at gcc dot gnu dot org  2010-01-17 10:19 ---
Subject: Bug 42767

Author: jiez
Date: Sun Jan 17 10:19:22 2010
New Revision: 155974

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=155974
Log:
PR debug/42767
* dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
and US_TRUNCATE.

testsuite/
PR debug/42767
* gcc.dg/debug/pr42767.c: New.

Added:
trunk/gcc/testsuite/gcc.dg/debug/pr42767.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog


-- 


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