diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-31 23:29:09 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-31 23:29:09 +0000 |
commit | ebcd99ea83f08598ba6210b74b3e4eed54ab377f (patch) | |
tree | 08400a85d775966593e59a8818fb65d6e459f863 /gcc/rtlanal.c | |
parent | 886e875c662de165526b00a3c7d31826b44c41b8 (diff) | |
download | gcc-ebcd99ea83f08598ba6210b74b3e4eed54ab377f.tar.gz |
* rtlanal.c (subreg_regno_offset): Do not use
SUBREG_REGNO_OFFSET.
* system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
* doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49381 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 578412361e6..f185c616f5a 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2947,9 +2947,7 @@ subreg_lsb (x) xmode - The mode of xregno. offset - The byte offset. ymode - The mode of a top level SUBREG (or what may become one). - RETURN - The regno offset which would be used. - This function can be overridden by defining SUBREG_REGNO_OFFSET, - taking the same parameters. */ + RETURN - The regno offset which would be used. */ unsigned int subreg_regno_offset (xregno, xmode, offset, ymode) unsigned int xregno; @@ -2957,15 +2955,10 @@ subreg_regno_offset (xregno, xmode, offset, ymode) unsigned int offset; enum machine_mode ymode; { - unsigned ret; int nregs_xmode, nregs_ymode; int mode_multiple, nregs_multiple; int y_offset; -/* Check for an override, and use it instead. */ -#ifdef SUBREG_REGNO_OFFSET - ret = SUBREG_REGNO_OFFSET (xregno, xmode, offset, ymode); -#else if (xregno >= FIRST_PSEUDO_REGISTER) abort (); @@ -2981,10 +2974,7 @@ subreg_regno_offset (xregno, xmode, offset, ymode) y_offset = offset / GET_MODE_SIZE (ymode); nregs_multiple = nregs_xmode / nregs_ymode; - ret = (y_offset / (mode_multiple / nregs_multiple)) * nregs_ymode; -#endif - - return ret; + return (y_offset / (mode_multiple / nregs_multiple)) * nregs_ymode; } /* Return the final regno that a subreg expression refers to. */ |