recog.c (validate_replace_rtx_1): Instead of aborting just make sure the change won't be validated.

* 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.

From-SVN: r41083
This commit is contained in:
Jakub Jelinek 2001-04-04 17:14:24 +02:00 committed by Jakub Jelinek
parent e59d6709ee
commit 347f344069
4 changed files with 32 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-04-04 Jakub Jelinek <jakub@redhat.com>
* recog.c (validate_replace_rtx_1): Instead of aborting just make
sure the change won't be validated.
Wed Apr 4 00:45:38 EDT 2001 John Wehle (john@feith.com)
* rtl.h (set_noop_p): Declare.

View File

@ -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)
{

View File

@ -1,3 +1,7 @@
2001-04-04 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20010326-1.c: New test.
2001-04-03 Alexandre Oliva <aoliva@redhat.com>
* g++.old-deja/g++.ext/instantiate1.C: Adjust to accommodate

View File

@ -0,0 +1,16 @@
float d;
int e, f;
void foo (void)
{
struct { float u, v; } a = {0.0, 0.0};
float b;
int c;
c = e;
if (c == 0)
c = f;
b = d;
if (a.v < b)
a.v = b;
}