Reload generate invalid instruction on ppc64

2014-07-28 Thread Carrot Wei
Hi Vlad When I use ppc64 gcc4.9 to compile an internal application I got an ICE due to an invalid instruction generated by reload. Before IRA, I have following insns: (insn 139 136 581 10 (set (reg:DI 567) (const_int 0 [0])) ./strings/stringpiece.h:205 discrim 1 520 {*movdi_internal64}

RE: Help w/ PR61538?

2014-07-28 Thread Matthew Fortune
I'll switch to replying on PR61538. I had not read all the ticket previously and although I may have found a problem it seems it may not be the cause of this failure. The generated code differences after the patches seem significant but I may not get chance to look at the differences in detail for

[GSoC] replacing op in c_expr

2014-07-28 Thread Prathamesh Kulkarni
I am having few issues replacing op in c_expr. I thought of following possibilities: a) create a new vec vector new_code. for each token in code { if token.type is not CPP_NAME new_code.safe_push (token); else { cpp_token new_token = ??? create new token of

Re: [GSoC] support for literals

2014-07-28 Thread Richard Biener
On Sun, Jul 27, 2014 at 10:05 PM, Prathamesh Kulkarni wrote: > Hi, > I was wondering if it would be a good idea to have the following syntax > for literals: > (type val) ? > type would be one of the tree-codes representing cst types like > INTEGER_CST, REAL_CST, etc. > > eg: > (negate (integer

Re: [GSoC] outer-if expressions

2014-07-28 Thread Richard Biener
On Sat, Jul 26, 2014 at 11:20 PM, Prathamesh Kulkarni wrote: > Hi, >This patch adds support for outer-if expressions. > > Couple of issues: > a) Doesn't interop with for-pattern, since we don't replace identifier > in c-expr yet, > and this gets more complicated with addition of outer-if. Doe

Re: C as intermediate language, signed integer overflow and -ftrapv

2014-07-28 Thread Richard Biener
On Sun, Jul 27, 2014 at 9:13 AM, Thomas Mertes wrote: > On Fri, Jul 25, 2014 at 12:35, Richard Biener > wrote: >> On Fri, Jul 25, 2014 at 10:43 AM, Thomas Mertes wrote: >> > On Thu, Jul 24 at 10:36 PM, Richard Biener >> > wrote: >> >> Fact is that if somebody is interested in >> >> -ftrapv he

Re: Help w/ PR61538?

2014-07-28 Thread Joshua Kinard
On 07/28/2014 04:41, Matthew Fortune wrote: > Hi Joshua, > > I know very little about this area but I'll try and offer some advice > anyway... > You know more than I do :) >> On 07/05/2014 23:43, Joshua Kinard wrote: >>> Hi, >>> >>> I filed PR61538 about two weeks ago, regarding gcc-4.8.x and

RE: Help w/ PR61538?

2014-07-28 Thread Matthew Fortune
Hi Joshua, I know very little about this area but I'll try and offer some advice anyway... > On 07/05/2014 23:43, Joshua Kinard wrote: > > Hi, > > > > I filed PR61538 about two weeks ago, regarding gcc-4.8.x and up not > > compiling a g++/pthreads-linked app correctly on SGI R1x000-based systems