GNU MPC 1.0 release candidate

2012-07-07 Thread Andreas Enge
We are pleased to announce the immediate availability of the first release candidate for GNU MPC 1.0 at http://www.multiprecision.org/mpc/download/mpc-1.0.0rc1.tar.gz sha1sum 9acc8a54ba4ecd0ccf172c0d07fcc218220e79a3 Reports on successful installations and potential problems are very welcome;

gcc plugin problem

2012-07-07 Thread mahdi hamzeh
Hello, I am newbie in GCC plugin. I am developing a gcc plugin but I am struggled with a problem I could not figure out how to deal with. The problem is following: I use a function in the plugin which is defined and specified in a ".c" file. The function is "void loop_optimizer_init (unsigned fla

Re: gcc plugin problem

2012-07-07 Thread Jonathan Wakely
On 7 July 2012 19:59, mahdi hamzeh wrote: > Hello, > > I am newbie in GCC plugin. I am developing a gcc plugin but I am > struggled with a problem I could not figure out how to deal with. The > problem is following: > > I use a function in the plugin which is defined and specified in a > ".c" file

Re: gcc plugin problem

2012-07-07 Thread mahdi hamzeh
Jonathan, I compiled and built gcc 4.7.0 myself. I am not sure if I build gcc on my machine, it would be compiled as c++. How would I check that? Thanks On Sat, Jul 7, 2012 at 12:03 PM, Jonathan Wakely wrote: > > On 7 July 2012 19:59, mahdi hamzeh wrote: > > Hello, > > > > I am newbie in GCC

gcc generates suboptimal code for tight loops

2012-07-07 Thread Ondřej Bílka
Consider following loop. int recal(int *x){int i; for(i=0;;i+=4){ if(__builtin_expect((x[i]|x[i+1])|(x[i+2]|x[i+3]),0)) break; } return (x[i]|x[i+1])*(x[i+2]|x[i+3]); } On x64 orl instruction is destructive. Gcc saves intermediate result to register instead recalculating it at end

gcc-4.7-20120707 is now available

2012-07-07 Thread gccadmin
Snapshot gcc-4.7-20120707 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.7-20120707/ 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