[4.8] Request to backport patch to the 4.8 branch

2014-12-24 Thread zhangjian
Hi, guys I encounter a gcc failure when I build mysql on opensuse[1] 5.6.17/storage/perfschema/pfs_account.cc:320:1: error: could not split insn [ 1245s] } [ 1245s] ^ [ 1245s] (insn 482 1770 1461 (parallel [ [ 1245s] (set (reg:SI 1 x1 [orig:167 D.16835 ] [167]) [ 1245s]

Re: [4.8] Request to backport patch to the 4.8 branch

2014-12-24 Thread Bin.Cheng
On Wed, Dec 24, 2014 at 4:35 PM, zhangjian wrote: > Hi, guys > > I encounter a gcc failure when I build mysql on opensuse[1] > 5.6.17/storage/perfschema/pfs_account.cc:320:1: error: could not split insn > [ 1245s] } > [ 1245s] ^ > [ 1245s] (insn 482 1770 1461 (parallel [ > [ 1245s] (

[PATCH, libiberty, gcc]: Introduce xasprintf to libiberty and use it in gengtype

2014-12-24 Thread Uros Bizjak
Hello! Based on a suggestion from [1] and on previous work by Manuel and Ben. The new code is almost the same as existing asprintf.c, but uses recently added xvasprintf. Thes patch removes local xasprintf definition from gengtype.c and uses the new one there. libiberty/ChangeLog: 2014-12-24 Ur

Re: [4.8] Request to backport patch to the 4.8 branch

2014-12-24 Thread Bamvor Jian Zhang
On 2014/12/24 17:41, Bin.Cheng wrote: > On Wed, Dec 24, 2014 at 4:35 PM, zhangjian > wrote: >> Hi, guys >> >> I encounter a gcc failure when I build mysql on opensuse[1] >> 5.6.17/storage/perfschema/pfs_account.cc:320:1: error: could not split insn >> [ 1245s] } >> [ 1245s] ^ >> [ 1245s] (insn

Flatten tree.h and tree-core.h (Version 2)

2014-12-24 Thread Michael Collison
This patch flattens tree.h and tree-core.h. This is a revised patch that does not include tree-core.h as a result of flattening. I removed the includes in tree.h and tree-core.h except for the include of tree-core.h in tree.h. I modified genattrtab.c, genautomata.c, genemit.c, gengtype.c, ge

[PATCH, libgo]: Double StackMin size for 64bit non-split-stack targets

2014-12-24 Thread Uros Bizjak
Hello! The attached patch doubles StackMin size for 64bit non-split-stack targets. This patch fixes regexp libgo failure (tracked as gcc PR61871 [1]) on alpha-linux-gnu. --cut here-- Index: runtime/proc.c === --- runtime/proc.c

[Patch, moxie] Add -mmul.x option

2014-12-24 Thread Anthony Green
I am committing the attached patch, which adds support for the mul.x and umul.x instructions, which compute the high 32 bits of a 64-bit result for a 32-bit multiply (signed and unsigned). These instructions are enabled by default for moxiebox-* configurations. This patch also updates the add, s

Commit: 4.9 branch: Backport RX alignment fix

2014-12-24 Thread Nick Clifton
Hi Guys, I am backporting an RX-specific patch from the mainline to the 4.9 branch as this fixes an internal error in the assembler (!) when running the gcc test gcc.c-torture/compile/pr53748.c. Cheers Nick gcc/ChangeLog 2014-12-24 Nick Clifton Backport from mainline:

Commit: 4.9 branch: Backport RX 'R' operator fix

2014-12-24 Thread Nick Clifton
Hi Guys, I am backporting an RX-specific patch from the mainline to the 4.9 branch as it fixes an ICE running the gcc test gcc.c-torture/compile/pr39423-2.c. Cheers Nick gcc/ChangeLog 2014-12-24 Nick Clifton Backport from mainline: 2014-03-25 Nick Clifton

Commit: MSP430: Fix addsi splitter (PR 64160)

2014-12-24 Thread Nick Clifton
Hi Guys. I am applying the patch below to fix PR 64160 for the MSP430. Cheers Nick gcc/ChangeLog 2014-12-24 Nick Clifton PR target/64160 * config/msp430/msp430.md (addsi splitter): Do not split when the destination partially overlaps the source. Index: config/msp

Re: [PATCH, libiberty, gcc]: Introduce xasprintf to libiberty and use it in gengtype

2014-12-24 Thread Ian Lance Taylor
On Wed, Dec 24, 2014 at 1:52 AM, Uros Bizjak wrote: > > libiberty/ChangeLog: > > 2014-12-24 Uros Bizjak > Ben Elliston > Manuel Lopez-Ibanez > > * xasprintf.c: New file. > * Makefile.in (CFILES): Add xasprintf.c. > (REQUIRED_OFILES): Add xasprintf.$(objext). >

[PATCH] combine: Correct cost calculation and display for split I2

2014-12-24 Thread Segher Boessenkool
If we have split a parallel I2 to two insns, we will count its RTL cost twice. This currently does not matter since the cost is 0 always (it is not a single set insn), but let's fix it anyway. Also do not display the fake I1 in the cost calculation in the dump file. Tested on powerpc64-linux. O

[PATCH] rs6000: Fix the dlmzb. testcases

2014-12-24 Thread Segher Boessenkool
The dlmzb. instruction requires an 8-byte aligned operand. The testcases try to enforce that by passing an arg as "long long *", but current GCC still assumes an alignment of 1 (correctly I think -- the pointer is only used as pointer to char). This patch changes the testcases to explicitly have

[PATCH] simplify-rtx: Generalize (and X (ior (not X) Y) -> (and X Y)

2014-12-24 Thread Segher Boessenkool
The existing transform (and X (ior (not X) Y) -> (and X Y) has two shortcomings: it only handles identical RTX for X, i.e. registers, not e.g. subregs of registers; and it only handles the case where the NOT is the first arm of the IOR (it can be the second arm e.g. if the first arm is a NOT as

[Patch, MIPS] Remove some multilibs from mips-mti-linux-gnu target

2014-12-24 Thread Steve Ellcey
This patch removes mips32[r1] and mips64[r1] from the list of mips-mti-linux-gnu architectures built with -mnan=2008. They should never have been included since these architectures do not support the ieee 2008 format (GCC warns and ignores the nan flag). The recent changes to glibc to use -Werror

[PATCH] libobjc: Properly handle classes without instance variables in class_copyIvarList ().

2014-12-24 Thread Dimitris Papavasiliou
Hello, The attached patch fixes an issue reported a couple of years ago in Bug 51891 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51891). The problem is caused because classes without instance variables have no ivar list at all, so that their ivars pointer is NULL, but the code in class_cop

Re: [PATCH] rs6000: Fix the dlmzb. testcases

2014-12-24 Thread David Edelsohn
On Wed, Dec 24, 2014 at 12:05 PM, Segher Boessenkool wrote: > The dlmzb. instruction requires an 8-byte aligned operand. The testcases > try to enforce that by passing an arg as "long long *", but current GCC > still assumes an alignment of 1 (correctly I think -- the pointer is only > used as po

[PATCH] Cleaning up incomplete type warning.

2014-12-24 Thread Luis Felipe Strano Moraes
This removes an unnecessary static variable from the code and also makes it a single warning instead of two. Patch originally proposed by Manuel López-Ibáñez. Luis Strano gcc/c/ChangeLog: 2014-12-24 Luis Felipe Strano Moraes * c-decl.c (get_parm_info): cleaning up incomplete type wa

[SH][committed] Fix pr51244-12.c failures on SH2A

2014-12-24 Thread Oleg Endo
Hi, Attached patch fixes the failures on SH2A that started to show recently in the gcc.target/sh/pr51244-12.c test case. Tested with make -k check-gcc RUNTESTFLAGS="--target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}" Committed as r219062. Cheers, Oleg gcc/Change

[PATCH] ubsan: Do not run the testsuite if ubsan does not work at all

2014-12-24 Thread Segher Boessenkool
I normally build with --disable-libsanitizer, because the sanitizers testresults are very unreproducable, so just annoying noise. This however makes most (all?) ubsan testcases fail, since they want to load a shared library that does not exist. This patch disables the ubsan testcases if a trivial

C++ PATCH for c++/63522 (ICE with unexpanded parameter pack)

2014-12-24 Thread Jason Merrill
Things later in compilation were getting confused because we didn't catch the unexpanded parameter pack soon enough. While looking at this I also fixed a location issue with the error about a parameter pack before the end of a class template parameter list, and avoided some follow-on errors wh

Re: [PATCH] pr31397 - implement -Wsuggest-override

2014-12-24 Thread Jason Merrill
OK. Jason