Re: optimizing the pushing of constant parameters to functions

2010-02-27 Thread Joern Rennecke
Quoting Andrew Pinski : Sent from my iPhone On Feb 27, 2010, at 10:17 AM, "Daniel R. Grayson" wrote: I wonder whether there is a plan to optimize code such as this: extern int (const int x); void () { (444); (444); } by not pushing the constant argument twice. I

Re: optimizing the pushing of constant parameters to functions

2010-02-27 Thread Andrew Pinski
Sent from my iPhone On Feb 27, 2010, at 10:17 AM, "Daniel R. Grayson" wrote: I wonder whether there is a plan to optimize code such as this: extern int (const int x); void () { (444); (444); } by not pushing the constant argument twice. It seems safe to do s

optimizing the pushing of constant parameters to functions

2010-02-27 Thread Daniel R. Grayson
I wonder whether there is a plan to optimize code such as this: extern int (const int x); void () { (444); (444); } by not pushing the constant argument twice. It seems safe to do so, because the function called will not modify its argument on the stack. The experi

Re: Gcc plugin: error: ‘LAST_AND_UNUSED_RTX_CODE’ undeclared

2010-02-27 Thread Andrew Pinski
On Sat, Feb 27, 2010 at 12:55 AM, ashish jain wrote: > I havent modified anything in that part of the code. Reordering the header > files somehow made all the errors disappear. You should figure out what is doing the define of CONST then. Because from the sound of it, you are going to have prob

Re: [RFH] A simple way to figure out the number of bits used by a long double

2010-02-27 Thread Dave Korn
On 26/02/2010 19:24, Ian Lance Taylor wrote: > Paolo Carlini writes: > >> I'm trying to simplify somewhat code in the library hashing floating >> point numbers, and I would find very useful a simple "recipe" giving the >> total number of bits actually used by a long double: the basic issue is >>

Re: Change x86 default arch for 4.5?

2010-02-27 Thread Gerald Pfeifer
On Mon, 22 Feb 2010, Erik Trulsson wrote: > As for the relative hurts. Code compiled for a newer CPU (making use > of newer instructions) will not run at all on older CPUs not supporting > those newer instructions. Much hurt there. > > On the other hand code compiled for an older CPU that is run

Idea for Google Summer Code : C Compiler for EFI Byte Code implement in gcc

2010-02-27 Thread b95705030
Hello all, I am highly interestd in implementing C compiler for EFI Byte Code in gcc and participate in Google Summer Code. EFI is a much larger, more complex,OS-like replacement for the older BIOS firmware interface present in all IBM PC-compatible personal computers. and the EFI specificat

Re: Gcc plugin: error: ‘LAST_AND_UNUSED_RTX_CODE’ undeclared

2010-02-27 Thread ashish jain
Hi, --- On Fri, 26/2/10, Andrew Pinski wrote: > From the looks of it, you have a define for CONST as > const.  This > first error is the reason for the rest of the errors. > > Thanks, > Andrew Pinski I havent modified anything in that part of the code. Reordering the header files somehow made