Re: Compiler turns off warnings unexpectedly

2009-01-02 Thread Dodji Seketeli
Jan Engelhardt a écrit : On Thursday 2009-01-01 03:05, Andrew Pinski wrote: On Wed, Dec 31, 2008 at 9:02 PM, Jan Engelhardt wrote: Hi, I have here an (attached) testcase which unexpectedly turns off warnings. Compiling it using `gcc test.c -c -Wall` (or test.i) gives: test.c: In function 'p

Re: Compiler turns off warnings unexpectedly

2009-01-02 Thread Paolo Bonzini
I have here an (attached) testcase which unexpectedly turns off warnings. Compiling it using `gcc test.c -c -Wall` (or test.i) gives: test.c: In function 'pam_sm_authenticate': test.c:6: warning: implicit declaration of function 'undef' >>> This works on the trunk but fail

Documentation and behaviour of the "optimize" attribute

2009-01-02 Thread Richard Sandiford
Hi, Sorry in advance if this going over old ground. And if not, sorry for the somewhat negative message ;), but ... I think the current documentation and/or behaviour of the "optimize" attribute are a little confusing. The current behaviour is that, if __attribute__((optimize(...))) does not sp

[IRA] New register allocator question

2009-01-02 Thread Bingfeng Mei
Hello, I recently ported our GCC to new IRA by following mainline development. The only interface I added is IRA_COVER_CLASSES. Our architecture has predicate register file. When predicate register has to be spilled, the new IRA produces inferior code to the old register allocator. The old all

Re: Documentation and behaviour of the "optimize" attribute

2009-01-02 Thread Richard Guenther
On Fri, Jan 2, 2009 at 12:36 PM, Richard Sandiford wrote: > Hi, > > Sorry in advance if this going over old ground. And if not, sorry > for the somewhat negative message ;), but ... I think the current > documentation and/or behaviour of the "optimize" attribute are a little > confusing. > > The

RE: [IRA] New register allocator question

2009-01-02 Thread Bingfeng Mei
I found if I define a new register class that covers both GR_REGS and PR_REGS, the issue can be solved. New IRA spill the predicate register to general regsister first instead of memory. Is this right approach? #define IRA_COVER_CLASSES \ { \ GRPR_REGS, M_REGS, BXBC

Re: Compiler turns off warnings unexpectedly

2009-01-02 Thread Jakub Jelinek
On Thu, Jan 01, 2009 at 03:11:52AM +0100, Jan Engelhardt wrote: > > On Thursday 2009-01-01 03:05, Andrew Pinski wrote: > >On Wed, Dec 31, 2008 at 9:02 PM, Jan Engelhardt wrote: > >> Hi, > >> > >> > >> I have here an (attached) testcase which unexpectedly turns off > >> warnings. Compiling it usin

Re: Documentation and behaviour of the "optimize" attribute

2009-01-02 Thread H.J. Lu
On Fri, Jan 2, 2009 at 4:05 AM, Richard Guenther wrote: > On Fri, Jan 2, 2009 at 12:36 PM, Richard Sandiford > wrote: >> Hi, >> >> Sorry in advance if this going over old ground. And if not, sorry >> for the somewhat negative message ;), but ... I think the current >> documentation and/or behav

writing md rules for fixed-point conversion

2009-01-02 Thread Sean D'Epagnier
I am working toward efficient support of some of the sfixed point types on avr architecture. I started out by writing an assembly library to handle all of the conversions to and from various fixed point, integer, and floating point types. In many cases the functions are only 1 or 2 instructions,

gcc-4.4-20090102 is now available

2009-01-02 Thread gccadmin
Snapshot gcc-4.4-20090102 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20090102/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.4 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk