summaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-04 15:14:24 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-04 15:14:24 +0000
commit1c49fb1f6d95bd8a5c98fc9417f9354a3f368066 (patch)
treeec8563114db54fbaaa6a2bcedb46d6d00989d62a /gcc/recog.c
parent9193bd65cc0783a5fc8a85ee46117c0877b5c3df (diff)
downloadgcc-1c49fb1f6d95bd8a5c98fc9417f9354a3f368066.tar.gz
* recog.c (validate_replace_rtx_1): Instead of aborting just make
sure the change won't be validated. * gcc.c-torture/compile/20010326-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41083 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/recog.c b/gcc/recog.c
index bc7c712de24..bbecd5b719e 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -625,7 +625,13 @@ validate_replace_rtx_1 (loc, from, to, object)
inner_mode = SImode;
if (GET_MODE_CLASS (mode) != MODE_INT)
- abort ();
+ {
+ /* Substitute in something that we know won't be
+ recognized. */
+ to = gen_rtx_CLOBBER (GET_MODE (x), const0_rtx);
+ validate_change (object, loc, to, 1);
+ return;
+ }
if (BYTES_BIG_ENDIAN || WORDS_BIG_ENDIAN)
{