From 78e2534298a208515425f112291dec9b8ecd900b Mon Sep 17 00:00:00 2001 From: devans Date: Thu, 9 Nov 2000 18:09:35 +0000 Subject: [PATCH] * 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. --- cgen/ChangeLog | 8 +++++--- cgen/dev.scm | 1 + cgen/rtx-funcs.scm | 9 +++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/cgen/ChangeLog b/cgen/ChangeLog index 02a01d222d..5a356adfa9 100644 --- a/cgen/ChangeLog +++ b/cgen/ChangeLog @@ -1,7 +1,9 @@ -2000-11-02 Ben Elliston +2000-11-09 Doug Evans - * 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 diff --git a/cgen/dev.scm b/cgen/dev.scm index 66d1562402..c473aa1353 100644 --- a/cgen/dev.scm +++ b/cgen/dev.scm @@ -16,6 +16,7 @@ (load "fixup.scm") (define srcdir ".") +(set! %load-path (cons srcdir %load-path)) ; Utility to enable/disable compiled-in C code. diff --git a/cgen/rtx-funcs.scm b/cgen/rtx-funcs.scm index 47bd058226..92f4050037 100644 --- a/cgen/rtx-funcs.scm +++ b/cgen/rtx-funcs.scm @@ -426,14 +426,19 @@ ; 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 ) -- 2.11.0