This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Constrainst for individual registers
- From: ××××× ×××××× <ilya at ein-hashofet dot co dot il>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 24 Oct 2011 10:09:23 +0200
- Subject: Constrainst for individual registers
Hi,
I'm doing some modifections to the avr backend to suit my needs.
I would like to add new constrainst for individual registers to use in
inline assembly blocks and i was wondering what is the correct way of
doing this?
in gcc-4.5, i've added a new class for each register to reg_class,
REG_CLASS_NAMES and REG_CLASS_CONTENTS, made a need constrainst for
each register using its class and it worked as expected.
i tried to do the same in gcc-4.7 and i got:
internal compiler error: in find_costs_and_classes, at ira-costs.c:1704.
So i was wondering whether i did the wrong thing or just forgot to
update some target hook.
Thanks,
Ilya.