Committed, MMIX: Don't check for SYMBOL_REF for 4-bytes in mmix_assemble_integer
Hans-Peter Nilsson
hp@bitrange.com
Tue Feb 12 20:52:00 GMT 2002
To avoid giving the impression that symbolic expressions are
well-handled by "TETRA expression" (only "pure numbers", thank
you), I made this tweak. Tested by putting:
if (GET_CODE (x) == SYMBOL_REF)
abort ();
before the changed line and running the testsuite on that.
Apparently SYMBOL_REF:s don't get there. This is expected,
since this is a 64-bit arch.
* config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
handle SYMBOL_REF.
Index: mmix.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mmix/mmix.c,v
retrieving revision 1.17
diff -p -c -r1.17 mmix.c
*** mmix.c 2002/02/11 22:38:30 1.17
--- mmix.c 2002/02/13 01:55:41
*************** mmix_assemble_integer (x, size, aligned_
*** 1941,1947 ****
return true;
case 4:
! if (GET_CODE (x) != CONST_INT && GET_CODE (x) != SYMBOL_REF)
{
aligned_p = 0;
break;
--- 1941,1947 ----
return true;
case 4:
! if (GET_CODE (x) != CONST_INT)
{
aligned_p = 0;
break;
brgds, H-P
More information about the Gcc-patches
mailing list