projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
000d38e
)
* expr.c (convert_modes): Check for legal hard register.
author
Steve Ellcey
<sje@cup.hp.com>
Wed, 5 Mar 2003 00:12:40 +0000
(
00:12
+0000)
committer
Steve Ellcey
<sje@gcc.gnu.org>
Wed, 5 Mar 2003 00:12:40 +0000
(
00:12
+0000)
From-SVN: r63813
gcc/ChangeLog
patch
|
blob
|
history
gcc/expr.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 7b0adc10b0c642d84f49f2d91992b1af91d78830..07a7c49ecefacc453eeb7f99660334afb22b21d5 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,7
@@
+2003-03-04 Steve Ellcey <sje@cup.hp.com>
+
+ * expr.c (convert_modes): Check for legal hard register.
+
2003-03-04 Tom Tromey <tromey@redhat.com>
* doc/sourcebuild.texi (Front End Directory): Document tags.
diff --git
a/gcc/expr.c
b/gcc/expr.c
index 39940cb609d89ea4c14c01e213556969bb68e0b9..c0119af0f3fcad859e3bdd06dfd2f199607a65d2 100644
(file)
--- a/
gcc/expr.c
+++ b/
gcc/expr.c
@@
-1406,6
+1406,8
@@
convert_modes (mode, oldmode, x, unsignedp)
&& ((GET_CODE (x) == MEM && ! MEM_VOLATILE_P (x)
&& direct_load[(int) mode])
|| (GET_CODE (x) == REG
+ && (! HARD_REGISTER_P (x)
+ || HARD_REGNO_MODE_OK (REGNO (x), mode))
&& TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode),
GET_MODE_BITSIZE (GET_MODE (x)))))))))
{