Unreviewed patches
Eric Botcazou
ebotcazou@libertysurf.fr
Fri Sep 3 13:20:00 GMT 2004
> How about a flags parameter then? Or if you want to go for absolute
> minimum overhead, you can use a ternary value, i.e.
>
> greater than zero: apply peepholes.
> zero: don't apply peepholes.
Thanks for the tip. And, since I don't want to deal with those peculiar
back-ends anymore :-), I simply added a new state numbered 2 to
the 'nopeepholes' parameter (after checking that every call to
final_scan_insn currently uses 0 or 1).
Is this ok with you, Zack (after the usual testing of course)? Or do you
want me to add "#if DELAY_SLOTS/#endif" pairs?
2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* final.c (output_in_slot): New global variable.
(final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
'output_in_slot' before invoking output_asm_insn.
(output_asm_insn): Add a space after the tab if 'output_in_slot'
is set.
* config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
final_scan_insn.
(output_sibcall): Likewise.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc_prettify-2b.diff
Type: text/x-diff
Size: 3705 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040903/49b8a8a0/attachment.bin>
More information about the Gcc-patches
mailing list