Re: IRA_COVER_CLASSES for m32c

2008-09-11 Thread DJ Delorie
Opening this up to the gcc public, since I appear to be unable to get this to work right. Still no luck defining a working IRA_COVER_CLASSES for m32c. My latest attempt: #define IRA_COVER_CLASSES \ { \ HC_REGS, MEM_REGS, LIM_REG_CLASSES\ } (effectively GENERAL_REGS (which I also tried),

front-end: can I remove 'dummy' extra code - keep front-end coding very simple

2008-09-11 Thread Lemaitre Laurent-R29173
Hi Tom, Thanks for your help. Now my front-end (so far based on treelang) parses fine and I can run some simple examples. I am trying to keep it as simple as possible. Any idea why the following declarations are required: #include "diagnostic.h" #include "convert.h" tree convert (tree type ATTRIBUT

Продается квартира

2008-09-11 Thread Carline Schrauder
ПР0ДАЕТСЯ КВАРТИРА В М0СКВЕ! 1-комн. кв., г. Москва, "Жулебино", 10 мин. тр. от м.Выхино, 3/12 эт. пан. дома, 40/21/9 кв.м., лоджия 5 кв.м. Телефон, окна во двор, дом 1998 г.п., чистый подъезд, консьерж. Ремонт: плитка, ламинат, встр. кухня, шкаф-купе, мебель, кондиционер, стеклопакеты, железн

Re: extra instructions lost from -O0 to -O1

2008-09-11 Thread Ian Lance Taylor
"Thomas A.M. Bernard" <[EMAIL PROTECTED]> writes: > Ian Lance Taylor wrote: >> "Thomas A.M. Bernard" <[EMAIL PROTECTED]> writes: >> >> >>> I guess I am missing something here. I've tried the following as Paolo >>> suggested, >>> >>> (define_insn "setallocate" >>> [(unspec_volatile:DI [(match_op

Re: extra instructions lost from -O0 to -O1

2008-09-11 Thread Thomas A.M. Bernard
Ian Lance Taylor wrote: "Thomas A.M. Bernard" <[EMAIL PROTECTED]> writes: I guess I am missing something here. I've tried the following as Paolo suggested, (define_insn "setallocate" [(unspec_volatile:DI [(match_operand:DI 0 "general_operand" "r")] UNSPEC_AL

Re: IRA performance regressions on PPC

2008-09-11 Thread Vladimir Makarov
Luis Machado wrote: Upon further investigation on facerec's regression, it looks like the code generated by the IRA-enabled gcc has many more spills than the one with a disabled IRA, twice or sometimes three times more. I'm trying to reduce the testcase a bit further so it's simpler to analyse.

Re: extra instructions lost from -O0 to -O1

2008-09-11 Thread Ian Lance Taylor
"Thomas A.M. Bernard" <[EMAIL PROTECTED]> writes: > I guess I am missing something here. I've tried the following as Paolo > suggested, > > (define_insn "setallocate" > [(unspec_volatile:DI [(match_operand:DI 0 "general_operand" "r")] > UNSPEC_ALLOCATE)] > "" > "a

Re: extra instructions lost from -O0 to -O1

2008-09-11 Thread Thomas A.M. Bernard
I guess I am missing something here. I've tried the following as Paolo suggested, (define_insn "setallocate" [(unspec_volatile:DI [(match_operand:DI 0 "general_operand" "r")] UNSPEC_ALLOCATE)] "" "allocate %0\t\t#TCB_INSTRUCTIONS" [(set_attr "type" "multi")]

Re: extra instructions lost from -O0 to -O1

2008-09-11 Thread Paolo Bonzini
Thomas A.M. Bernard wrote: > I have tried unspec_volatile without success though. As > follow, > > (define_insn "setallocate" >[(setallocate >(unspec_volatile:DI [ (match_operand:DI 0 "general_operand" > "r")] >UNSPEC_ALLOCATE) >)] > ""

Re: extra instructions lost from -O0 to -O1

2008-09-11 Thread Thomas A.M. Bernard
Steven, In the MD file, I have this pattern: (define_insn "setallocate" [(setallocate (match_operand:DI 0 "general_operand" "r") )] "" "allocate %0\t\t#TCB_INSTRUCTIONS" [(set_attr "type" "multi")]) As you said dce takes out the instruction when flag -01 is engaged. I would like to r

Re: extra instructions lost from -O0 to -O1

2008-09-11 Thread Steven Bosscher
On Thu, Sep 11, 2008 at 10:38 AM, Thomas A.M. Bernard <[EMAIL PROTECTED]> wrote: > Hi, > > I inserted some extra instructions in the Alpha back-end (MD files). They > are properly emitted when the flag -O0 is enabled. Since they have no side > effects and no dependencies on other instructions, they

extra instructions lost from -O0 to -O1

2008-09-11 Thread Thomas A.M. Bernard
Hi, I inserted some extra instructions in the Alpha back-end (MD files). They are properly emitted when the flag -O0 is enabled. Since they have no side effects and no dependencies on other instructions, they are omitted when flag -O1 is engaged. Is there a way (I mean attribute/constraint in