OSDN Git Service

* dev.scm: Add srcdir to %load-path.
authordevans <devans>
Thu, 9 Nov 2000 18:09:35 +0000 (18:09 +0000)
committerdevans <devans>
Thu, 9 Nov 2000 18:09:35 +0000 (18:09 +0000)
* rtx-funcs.scm (subword): Mode of argument can be different
than mode of result, so don't use OP0 to specify argument's mode.

cgen/ChangeLog
cgen/dev.scm
cgen/rtx-funcs.scm

index 02a01d2..5a356ad 100644 (file)
@@ -1,7 +1,9 @@
-2000-11-02  Ben Elliston  <bje@redhat.com>
+2000-11-09  Doug Evans  <dje@casey.transmeta.com>
 
-       * doc/porting.texi (Building a GAS test suite): Document my change
-       to gas-build.sh.
+       * dev.scm: Add srcdir to %load-path.
+
+       * rtx-funcs.scm (subword): Mode of argument can be different
+       than mode of result, so don't use OP0 to specify argument's mode.
 
 2000-11-01  Ben Elliston  <bje@redhat.com>
 
index 66d1562..c473aa1 100644 (file)
@@ -16,6 +16,7 @@
 (load "fixup.scm")
 
 (define srcdir ".")
+(set! %load-path (cons srcdir %load-path))
 
 ; Utility to enable/disable compiled-in C code.
 
index 47bd058..92f4050 100644 (file)
 
 ; GCC's subreg.
 ; Called subword 'cus it's not exactly subreg.
-; Word numbering is from most signficant (word 0) to least (word N-1).
+; Word numbering is from most significant (word 0) to least (word N-1).
 ; ??? May also want an endian dependent word ordering.  That can be
 ; implemented on top of or beside this.
 ; ??? GCC plans to switch to SUBREG_BYTE.  Keep an eye out for the switch
 ; (which is extensive so probably won't happen anytime soon).
+;
+; The mode spec of operand0 use to be OP0, but subword is not a normal rtx.
+; The mode of operand0 is not necessarily the same as the mode of the result,
+; and code which analyzes it would otherwise use the result mode (specified by
+; `&mode') for the mode of operand0.
 
 (drn (subword &options &mode value word-num)
-     (OPTIONS NUMMODE RTX RTX) (NA NA OP0 INT)
+     (OPTIONS NUMMODE RTX RTX) (NA NA ANY INT)
      ARG
      #f
 )