[Bug target/43358] New: internal compiler error: in pool_free, at alloc-pool.c:335

2010-03-13 Thread segher at gcc dot gnu dot org
The attached testcase (derived from the Linux kernel) fails with:

itimer.i:38:1: internal compiler error: in pool_free, at alloc-pool.c:335

The original fails like this as well, of course.

-O1 or higher is required.


-- 
   Summary: internal compiler error: in pool_free, at alloc-
pool.c:335
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: segher at gcc dot gnu dot org
  GCC host triplet: x86_64-linux
GCC target triplet: mips-linux


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



[Bug target/43358] internal compiler error: in pool_free, at alloc-pool.c:335

2010-03-13 Thread segher at gcc dot gnu dot org


--- Comment #1 from segher at gcc dot gnu dot org  2010-03-13 23:17 ---
Created an attachment (id=20101)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20101&action=view)
testcase


-- 


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



[Bug target/43358] [4.5 Regression] IRA: internal compiler error: in pool_free, at alloc-pool.c:335

2010-03-15 Thread segher at gcc dot gnu dot org


--- Comment #4 from segher at gcc dot gnu dot org  2010-03-15 22:23 ---
> Works on x86_64-linux.

Works on *-linux except mips.

> mips-linux is neither primary nor secondary, thus a
> candidate for downgrading to P4.  Still looks serious so leaving at P3 for 
> now.

I tested it on mipsisa64-elf (which is primary); works there (with default
options, anyway).


-- 


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



[Bug target/43437] New: build error

2010-03-18 Thread segher at gcc dot gnu dot org
Building a cross compiler to score-elf fails with:

/n/17/segher/src/gcc/libgcc/../gcc/libgcc2.c: In function '__mulsc3':
/n/17/segher/src/gcc/libgcc/../gcc/libgcc2.c:1889:1: internal compiler error:
in
 cselib_record_set, at cselib.c:1864


-- 
   Summary: build error
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: segher at gcc dot gnu dot org
  GCC host triplet: x86_64-linux
GCC target triplet: score-elf


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



[Bug target/43437] ICE in CSE, during libgcc build

2010-03-18 Thread segher at gcc dot gnu dot org


--- Comment #1 from segher at gcc dot gnu dot org  2010-03-19 02:25 ---
Caused by / exposed by SVN r157476

Author: jakub 
Date:   Tue Mar 16 10:50:42 2010 +

PR debug/43051
PR debug/43092
...


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|build error |ICE in CSE, during libgcc
   ||build


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



[Bug target/43669] New: libgcc build fails with Error: cannot represent subtraction with an offset

2010-04-06 Thread segher at gcc dot gnu dot org
libgcc build fails with:

/home/segher/buildall-RC/xtensa/gcc/./gcc/xgcc
-B/home/segher/buildall-RC/xtensa/gcc/./gcc/
-B/n/17/segher/cross-RC/xtensa-linux/bin/
-B/n/17/segher/cross-RC/xtensa-linux/lib/ -isystem
/n/17/segher/cross-RC/xtensa-linux/include -isystem
/n/17/segher/cross-RC/xtensa-linux/sys-include-g -O2 -O2  -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -fPIC -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I.
-I. -I../.././gcc -I/n/17/segher/src/gcc-4.5.0-RC-20100406/libgcc
-I/n/17/segher/src/gcc-4.5.0-RC-20100406/libgcc/.
-I/n/17/segher/src/gcc-4.5.0-RC-20100406/libgcc/../gcc
-I/n/17/segher/src/gcc-4.5.0-RC-20100406/libgcc/../include  -DHAVE_CC_TLS  -o
_mulvsi3.o -MT _mulvsi3.o -MD -MP -MF _mulvsi3.dep -DL_mulvsi3 -c
/n/17/segher/src/gcc-4.5.0-RC-20100406/libgcc/../gcc/libgcc2.c \

/tmp/ccoNFjKb.s: Assembler messages:
/tmp/ccoNFjKb.s:101: Error: cannot represent subtraction with an offset


-- 
   Summary: libgcc build fails with  Error: cannot represent
subtraction with an offset
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: segher at gcc dot gnu dot org
  GCC host triplet: x86_64-linux
GCC target triplet: xtensa-linux


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



[Bug target/43669] libgcc build fails with Error: cannot represent subtraction with an offset

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


--- Comment #1 from segher at gcc dot gnu dot org  2010-04-07 14:53 ---
cc:ing maintainer


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||bob dot wilson at acm dot
   ||org


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



[Bug middle-end/24434] [4.3/4.4/4.5/4.6 Regression] get_varargs_alias_set returns 0 always

2010-07-17 Thread segher at gcc dot gnu dot org


--- Comment #13 from segher at gcc dot gnu dot org  2010-07-17 19:04 ---
(In reply to comment #12)
> What does the standard say here?  What is the type in effect for aliasing
> when doing
> 
>  int i = va_arg (va, int);
> 
> ?  Is type-punning allowed when unpacking args?

>From C99, 7.15.1.1/2:

[...] if type is not compatible with the type of the actual next argument (as
promoted according to the default argument promotions), the behavior is
undefined, except for the following cases:

— one type is a signed integer type, the other type is the corresponding
unsigned integer type, and the value is representable in both types;

— one type is pointer to void and the other is a pointer to a character type.


-- 


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



[Bug target/45040] New: ICE in cselib_record_set

2010-07-23 Thread segher at gcc dot gnu dot org
/home/segher/buildall-4.5.1-RC1/score/gcc/./gcc/xgcc
-B/home/segher/buildall-4.5.1-RC1/score/gcc/./gcc/
-B/n/10/segher/cross-4.5.1-rc1/score-elf/bin/
-B/n/10/segher/cross-4.5.1-rc1/score-elf/lib/ -isystem
/n/10/segher/cross-4.5.1-rc1/score-elf/include -isystem
/n/10/segher/cross-4.5.1-rc1/score-elf/sys-include-g -O2 -mscore3 -O2  -g
-O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual
-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/10/segher/src/gcc-4.5.1-RC-20100722/libgcc
-I/n/10/segher/src/gcc-4.5.1-RC-20100722/libgcc/.
-I/n/10/segher/src/gcc-4.5.1-RC-20100722/libgcc/../gcc
-I/n/10/segher/src/gcc-4.5.1-RC-20100722/libgcc/../include  -DHAVE_CC_TLS
-DUSE_EMUTLS -o _powisf2.o -MT _powisf2.o -MD -MP -MF _powisf2.dep -DL_powisf2
-c /n/10/segher/src/gcc-4.5.1-RC-20100722/libgcc/../gcc/libgcc2.c \ 
/n/10/segher/src/gcc-4.5.1-RC-20100722/libgcc/../gcc/libgcc2.c: In function
'__powisf2':/n/10/segher/src/gcc-4.5.1-RC-20100722/libgcc/../gcc/libgcc2.c:1739:1:
internal compiler error: in cselib_record_set, at cselib.c:1999


-- 
   Summary: ICE in cselib_record_set
   Product: gcc
   Version: 4.5.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: segher at gcc dot gnu dot org
  GCC host triplet: x86_64-linux
GCC target triplet: score-elf


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



[Bug target/45040] ICE in cselib_record_set

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


--- Comment #1 from segher at gcc dot gnu dot org  2010-07-23 10:53 ---
Created an attachment (id=21292)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21292&action=view)
preprocessed source code


-- 


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



[Bug target/45040] [4.5 Regression] ICE in cselib_record_set

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


--- Comment #2 from segher at gcc dot gnu dot org  2010-07-23 11:19 ---
Without -mscore3, it fails with:

libgcc2.i:1:0: internal compiler error: in score_hard_regno_mode_ok, at
config/score/score.c:434


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|4.5.1   |---


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



[Bug target/43437] ICE in CSE, during libgcc build

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


--- Comment #10 from segher at gcc dot gnu dot org  2010-07-23 11:57 ---
Liqin, could you look at this please?


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

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


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



[Bug rtl-optimization/44169] Wrong code while generating TLS offsets

2010-05-18 Thread segher at gcc dot gnu dot org


--- Comment #4 from segher at gcc dot gnu dot org  2010-05-18 08:26 ---
Confirmed with current 4.4 branch and mainline.

-mabi=nospe -mno=spe doesn't make the problem go away; only
changing -mcpu does.


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||segher at gcc dot gnu dot
   |    |org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
  Known to fail||4.4.4 4.6.0
   Last reconfirmed|-00-00 00:00:00 |2010-05-18 08:26:21
   date||


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



[Bug rtl-optimization/44169] Wrong code while generating TLS offsets

2010-05-20 Thread segher at gcc dot gnu dot org


--- Comment #6 from segher at gcc dot gnu dot org  2010-05-20 12:10 ---
I don't see the problem with 4.3 .

Kyle, are you sure it doesn't happen for you with 4.4?

I use

powerpc-linux-gnuspe-gcc -Wall -W -O1 -pthread -ftls-model=initial-exec
-mcpu=8540 -fPIC -S t.c -fverbose-asm

paste your output of that?


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to work||4.3.5


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



[Bug target/43892] PowerPC suboptimal "add with carry" optimization

2010-05-21 Thread segher at gcc dot gnu dot org


--- Comment #12 from segher at gcc dot gnu dot org  2010-05-21 17:42 ---
(In reply to comment #11)
> If this is the case for something as simple as add with carry, one really
> needs a simple way to tell gcc what ppc class CPU one wants to use.

Please see -mcpu= .


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

 CC|    |segher at gcc dot gnu dot
   |        |org
 AssignedTo|unassigned at gcc dot gnu   |segher at gcc dot gnu dot
   |dot org |org
   Severity|normal  |enhancement
 Status|NEW |ASSIGNED
  Component|regression  |target
   Last reconfirmed|2010-04-26 13:52:59 |2010-05-21 17:42:28
   date||


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



[Bug bootstrap/44427] genautomata uses more than 1.5GB of RAM on powerpc64-linux

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


--- Comment #1 from segher at gcc dot gnu dot org  2010-06-05 22:57 ---
Patch posted at http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00449.html


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-06-05 22:57:11
   date||


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



[Bug bootstrap/44428] [4.6 Regression] Bootstrap failure for powerpc-apple-darwin9: Insn `*' will never be issued

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


--- Comment #1 from segher at gcc dot gnu dot org  2010-06-05 22:57 ---
Patch posted at http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00449.html


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |segher at gcc dot gnu dot
   |dot org |org
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-06-05 22:57:53
   date||


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



[Bug bootstrap/44427] genautomata uses more than 1.5GB of RAM on powerpc64-linux

2010-06-06 Thread segher at gcc dot gnu dot org


--- Comment #3 from segher at gcc dot gnu dot org  2010-06-06 11:39 ---
Subject: Bug 44427

Author: segher
Date: Sun Jun  6 11:38:46 2010
New Revision: 160338

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160338
Log:
gcc/ChangeLog
2010-06-06  Segher Boessenkool  

PR bootstrap/44427
PR bootstrap/44428
genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
endianness-independent.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/genautomata.c


-- 


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



[Bug bootstrap/44428] [4.6 Regression] Bootstrap failure for powerpc-apple-darwin9: Insn `*' will never be issued

2010-06-06 Thread segher at gcc dot gnu dot org


--- Comment #3 from segher at gcc dot gnu dot org  2010-06-06 11:39 ---
Subject: Bug 44428

Author: segher
Date: Sun Jun  6 11:38:46 2010
New Revision: 160338

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160338
Log:
gcc/ChangeLog
2010-06-06  Segher Boessenkool  

PR bootstrap/44427
PR bootstrap/44428
genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
endianness-independent.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/genautomata.c


-- 


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



[Bug bootstrap/44427] genautomata uses more than 1.5GB of RAM on powerpc64-linux

2010-06-06 Thread segher at gcc dot gnu dot org


--- Comment #4 from segher at gcc dot gnu dot org  2010-06-06 11:40 ---
Fixed.


-- 

segher at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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