Missed ssa-copyrename optimization?

2013-01-07 Thread Bin.Cheng
Hi, For attached preprocessed file, dump file lib_a-s_frexp.E.021t.copyrename1 contains gimple sequences like: : x_41 = x_8(D); goto ; : if (ix_15 <= 1048575) goto ; else goto ; : x_19 = x_8(D) * 1.8014398509481984e+16; gh_u.value = x_19; _21 = gh_u.parts.msw; hx_22

Re: Primary and secondary sysroot?

2013-01-07 Thread Ian Lance Taylor
On Mon, Jan 7, 2013 at 2:47 AM, Dmitry Mikushin wrote: > > We have a version of GCC coming as additional toolchain for several > supported Linux distros. Moreover, package we are shipping also contains > modified glibc and some other libraries. In this situation, applications > built with this com

Re: Build error in genconstants.c

2013-01-07 Thread Marc Glisse
On Tue, 8 Jan 2013, Iyer, Balaji V wrote: Hello Everyone, I am getting the following error when I tried to build the trunk (revision 194999) on my SuSE machine (Linux 2.6.32.29-0.3-default x86_64). I just did the standard configure (../src_directory/configure --prefix=<>). It looks li

microblaze unroll loops optimization

2013-01-07 Thread David Holsgrove
Loop unrolling (-funroll-loops) for microblaze is ineffectual on the gcc 4.6/4.7/4.8 branches. This previously worked on an out of tree gcc 4.1.2, and I believe the relevant diff to be the use of UNSPEC_CMP and UNSPEC_CMPU to create two unique instructions for signed_compare and unsigned_compare i

Build error in genconstants.c

2013-01-07 Thread Iyer, Balaji V
Hello Everyone, I am getting the following error when I tried to build the trunk (revision 194999) on my SuSE machine (Linux 2.6.32.29-0.3-default x86_64). I just did the standard configure (../src_directory/configure --prefix=<>). It looks like some syscall functions on my machine see

Re: code hoisting with CCmode condition codes

2013-01-07 Thread Richard Henderson
On 01/06/2013 01:11 PM, Alan Lehotsky wrote: > Do I need to do something like change my define_expand for addsi3 to be > something like > > > [ (parallel [ (clobber:CCmode (reg:CCmode CCREG)) > (set:SI (match_operand:SI 0 "" "") >

Re: VUSE ops on return statements that return a GIMPLE reg?

2013-01-07 Thread Richard Biener
On Mon, 7 Jan 2013, Steven Bosscher wrote: > Hello, > > Consider this test case: > > -- 8< > int a; > __attribute__((__noinline__,__noclone__,__pure__)) > int use (int b) > { > return b * 2 + 4 + a; > } > > int foo (int b, int c, int d) > { > int res, r

VUSE ops on return statements that return a GIMPLE reg?

2013-01-07 Thread Steven Bosscher
Hello, Consider this test case: -- 8< int a; __attribute__((__noinline__,__noclone__,__pure__)) int use (int b) { return b * 2 + 4 + a; } int foo (int b, int c, int d) { int res, r = 0; res = use (b); if (c) r = res; return r; }

Re: PR 55171 4.6 Backport

2013-01-07 Thread Kai Tietz
Hi, I am a bit in doubt that the fix of PR 55171 will help you for 64-bit. The patch modifies thunk-code for 32-bit "thiscall" calling-convention. So it can't affect 64-bit code path. Kai

PR 55171 4.6 Backport

2013-01-07 Thread Jonathan Liu
Hello, Would it be possible to have fix for PR 55171 backported to 4.6 branch? I am having an issue with the attached test case not working using MinGW-w64 GCC 4.6.3 64-bit. Thanks. Regards, Jonathan class Base { public: virtual ~Base() { } }; class Derived : public Base { public: De

Primary and secondary sysroot?

2013-01-07 Thread Dmitry Mikushin
Deal all, We have a version of GCC coming as additional toolchain for several supported Linux distros. Moreover, package we are shipping also contains modified glibc and some other libraries. In this situation, applications built with this compiler should first logically use its own sysroot, b

Too conservative in hardreg propagation pass?

2013-01-07 Thread Bin.Cheng
Hi, In cprop_hardreg pass, function find_oldest_value_reg checks if oldest_regno is in same register class as original one by calling in_hard_reg_set_p. Won't this be too conservative, considering the rewriting of rtx is guarded by validate_change? For example on Thumb1, r12 <-- r0 r1 <-- r1 + r12