predicates on expressions ?

2014-07-14 Thread Prathamesh Kulkarni
I was wondering if it was a good idea to implement predicate on expressions ? Sth like: (match_and_simplify (op (op2:predicate @0)) transform) instead of: (match_and_simplify (op (op2@1 @0)) if (predicate (@1)) transform) When predicate is simple as just being a macro/function, we coul

Re: GCC 4.9.1 Status Report (2014-07-10)

2014-07-14 Thread Franzi Edo.
Hi Chris, no way! It is like if gcc do not take in account of my BUILD_CFLAGS="-g -O2 -fbracket-depth=1024“ I even tried N=2048! /opt/uKOS/Packages/gcc-4.9.1/gcc/config/arm/neon.md:3486:10917: fatal error: bracket nesting level exceeded maximum of 256 /opt/uKOS/Packages/gcc-4.9.1/gcc/config

Re: predicates on expressions ?

2014-07-14 Thread Richard Biener
On Mon, Jul 14, 2014 at 12:07 PM, Prathamesh Kulkarni wrote: > I was wondering if it was a good idea to implement > predicate on expressions ? > > Sth like: > (match_and_simplify > (op (op2:predicate @0)) > transform) > > instead of: > (match_and_simplify > (op (op2@1 @0)) > if (predicate

Re: GCC 4.9.1 Status Report (2014-07-10)

2014-07-14 Thread Michael Matz
Hi, On Mon, 14 Jul 2014, Franzi Edo. wrote: > It is like if gcc do not take in account of my BUILD_CFLAGS="-g -O2 > -fbracket-depth=1024“ GCC meanwhile is compiled with c++. Instead of CFLAGS use CXXFLAGS. I.e. BUILD_CXXFLAGS, and so on. No guarantees, but at least foobar_CFLAGS only shoul

Why is unsigned type introduced in a simple case?

2014-07-14 Thread Bin.Cheng
Hi, For a simple example like below. int f1 (int p, short i, short n) { int sum = 0; do { sum += i; i++; } while (i < n); return sum; } When compiling with -O2 -fdump-tree-all options, GCC introduces unsigned type at the very beginning of gimple pass, for example, th

Re: Why is unsigned type introduced in a simple case?

2014-07-14 Thread pinskia
> On Jul 14, 2014, at 8:57 AM, "Bin.Cheng" wrote: > > Hi, > For a simple example like below. > > int > f1 (int p, short i, short n) > { > int sum = 0; > > do >{ > sum += i; > i++; This here is the same as i = i + 1; which is really i = (short)(((int)i) + 1); So it gets conve

Multilib build question involving MULTILIB_OSDIRNAMES

2014-07-14 Thread Steve Ellcey
I have a multilib question that I hope someone can help me with. If I have this multilib setup while building a cross compiler: MULTILIB_DEFAULTS { "mips32r2" } MULTILIB_OPTIONS = mips32r2/mips64r2 MULTILIB_OSDIRNAMES = ../lib ../lib64 Everything works the way I want it to. I have mips32r2 syst

Re: GCC 4.9.1 Status Report (2014-07-10)

2014-07-14 Thread Franzi Edo.
Hi Michael (all), Thank you for that! Unfortunately, even with BUILD_CXXFLAGS I have the same error …. Ciao Edo On 14 Jul 2014, at 16:53, Michael Matz wrote: > Hi, > > On Mon, 14 Jul 2014, Franzi Edo. wrote: > >> It is like if gcc do not take in account of my BUILD_CFLAGS="-g -O2 >> -fbracke

Re: predicates on expressions ?

2014-07-14 Thread Prathamesh Kulkarni
On Mon, Jul 14, 2014 at 6:35 PM, Richard Biener wrote: > On Mon, Jul 14, 2014 at 12:07 PM, Prathamesh Kulkarni > wrote: >> I was wondering if it was a good idea to implement >> predicate on expressions ? >> >> Sth like: >> (match_and_simplify >> (op (op2:predicate @0)) >> transform) >> >> ins