From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Edelsohn To: Geoffrey KEATING Cc: egcs@cygnus.com Subject: Re: asm clobbers, !SMALL_REGISTER_CLASSES patch. Date: Thu, 12 Feb 1998 20:24:00 -0000 Message-id: <9802130410.AA27074@rios1.watson.ibm.com> References: <199802130301.OAA15403@discus.anu.edu.au> X-SW-Source: 1998-02/msg00574.html * stmt.c (expand_asm_operands): When an asm statement clobbers a register that is in a class of its own, and there is space remaining for an extra output, turn the clobber into an output to a dummy pseudo. At present, don't do this if there are constraints that have alternatives. This is a good effort and I am glad that you are continuing to pursue this needed feature, but I am curious why you are choosing to implement it this way instead of as a match_scratch of the appropriate register class? I think that the correct solution is to turn the clobber of a named register into the equivalent that GCC uses internally for machine description files: match_scratch. This patch probably works to some extent, but it simply lies to GCC by transforming the clobber -- and lying to GCC always causes problems in the long run. David