Re: calculation of pi

2012-11-03 Thread Ian Lance Taylor
On Sat, Nov 3, 2012 at 12:55 AM, Mischa Baars wrote: > On 11/02/2012 07:11 PM, Ian Lance Taylor wrote: >> >> On Fri, Nov 2, 2012 at 8:13 AM, Mischa Baars >> wrote: >>> >>> I have been writing this piece of example code, but it seems that someone >>> has been modifying the compiler in the meantime

LRA unaligned reloads

2012-11-03 Thread David Miller
On 32-bit sparc with LRA enabled we have the following (this generated for gcc.dg/vect/pr51581-4.c with -flto): (insn 252 142 165 4 (set (reg:HI 234 [ D.1511 ]) (mem/c:HI (plus:SI (reg/f:SI 1307) (const_int 24 [0x18])) [4 b+24 S2 A64])) test.c:23 59 {*movhi_insn} (ex

Re: Feature request: Attribute to delay evaluation of function argument

2012-11-03 Thread Oleg Endo
On Sun, 2012-11-04 at 11:02 +1100, Clinton Mead wrote: > Hi All > > This is a feature request. To explain, lets say I want to create a > TriBool type, like so: > > enum TriBool { False, True, Unknown }; > > I now want to implement operator&&. I want operator&& to short > circuit, i.e. if the fir

Re: Configure gcc with --multilib=... ?

2012-11-03 Thread Andrew Pinski
On Sat, Nov 3, 2012 at 5:50 PM, Matt Turner wrote: > Hi Joseph, > > I see that --with-multilib-list= is an option for AMD64 and SH. Are > there plans or patches for mips? Otherwise, have there been any > developments that will allow me to configure to build only n32 and > n64? I created my own s

Re: Configure gcc with --multilib=... ?

2012-11-03 Thread Matt Turner
On Tue, Jun 14, 2011 at 9:26 AM, Joseph S. Myers wrote: > On Tue, 14 Jun 2011, Matt Turner wrote: > >> I say this mail http://gcc.gnu.org/ml/gcc/2010-01/msg00063.html >> suggesting the addition of a --multilib= configure option. Has such a >> thing been added? Is there a way to configure gcc to bu

Feature request: Attribute to delay evaluation of function argument

2012-11-03 Thread Clinton Mead
Hi All This is a feature request. To explain, lets say I want to create a TriBool type, like so: enum TriBool { False, True, Unknown }; I now want to implement operator&&. I want operator&& to short circuit, i.e. if the first argument is False the second argument shouldn't be evaluated. So I'll

gcc-4.7-20121103 is now available

2012-11-03 Thread gccadmin
Snapshot gcc-4.7-20121103 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.7-20121103/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.7 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

GCC Phoning Home

2012-11-03 Thread Bruce Korb
I have realized that it would be real useful to know which fixinclude fixes are actually in use so that old cruft can get retired. Since nobody at all has direct access to all the actively maintained platforms, it makes it difficult to know. Therefore, it seems reasonable to me to jigger up some

Re: calculation of pi

2012-11-03 Thread Mischa Baars
On 11/03/2012 12:41 PM, Tim Prince wrote: On 11/3/2012 3:32 AM, Mischa Baars wrote: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory which also prevents me from compiling the compiler under Fedora 17. This means that I am both not able to compile progra

Re: calculation of pi

2012-11-03 Thread Tim Prince
On 11/3/2012 3:32 AM, Mischa Baars wrote: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory which also prevents me from compiling the compiler under Fedora 17. This means that I am both not able to compile programs in 32-bit mode and help you with the co

[help]failed to generate PHI NODE in esra pass.

2012-11-03 Thread Yangyueming
Hi, all I do the research of min max instructions recently. I find it is related with phiopt. case1: int foo(short a ,short b) {   if (a < b)     a = b;     return a; } It is successed in pass phiopt1(-O2 with gcc 4.7.0). The MAX_EXPR can be generated. foo (short int a, short int b) {   int D

Re: calculation of pi

2012-11-03 Thread Mischa Baars
On 11/02/2012 07:11 PM, Ian Lance Taylor wrote: On Fri, Nov 2, 2012 at 8:13 AM, Mischa Baars wrote: I have been writing this piece of example code, but it seems that someone has been modifying the compiler in the meantime such that arguments are now passed in xmm registers instead of over the s

Re: calculation of pi

2012-11-03 Thread Mischa Baars
On 11/02/2012 07:11 PM, Ian Lance Taylor wrote: On Fri, Nov 2, 2012 at 8:13 AM, Mischa Baars wrote: I have been writing this piece of example code, but it seems that someone has been modifying the compiler in the meantime such that arguments are now passed in xmm registers instead of over the s