re PR other/4932 (the i386 backend crashes on incorrect asm("... %c0 ..."))
2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org> PR other/4932 * config/i386/i386.c (print_operand): Verify that the argument to %c is a constant and not a conditional which needs to be reversed. From-SVN: r47453
This commit is contained in:
parent
894c7af33d
commit
c1d5afc412
|
@ -1,3 +1,10 @@
|
|||
2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org>
|
||||
|
||||
PR other/4932
|
||||
* config/i386/i386.c (print_operand): Verify that the
|
||||
argument to %c is a constant and not a conditional which
|
||||
needs to be reversed.
|
||||
|
||||
Thu Nov 29 11:12:59 2001 Geoffrey Keating (geoffk@redhat.com)
|
||||
|
||||
* emit-rtl.c (gen_lowpart_common): Fix conversion of
|
||||
|
|
|
@ -5650,6 +5650,13 @@ print_operand (file, x, code)
|
|||
|
||||
/* Like above, but reverse condition */
|
||||
case 'c':
|
||||
/* Check to see if argument to %c is really a constant
|
||||
and not a condition code which needs to be reversed. */
|
||||
if (GET_RTX_CLASS (GET_CODE (x)) != '<')
|
||||
{
|
||||
output_operand_lossage ("operand is neither a constant nor a condition code, invalid operand code 'c'");
|
||||
return;
|
||||
}
|
||||
put_condition_code (GET_CODE (x), GET_MODE (XEXP (x, 0)), 1, 0, file);
|
||||
return;
|
||||
case 'f':
|
||||
|
|
Loading…
Reference in New Issue