r269056 - in /trunk/gcc: ChangeLog fold-const.c...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Wed Feb 20 23:01:00 GMT 2019


Author: jakub
Date: Wed Feb 20 23:01:41 2019
New Revision: 269056

URL: https://gcc.gnu.org/viewcvs?rev=269056&root=gcc&view=rev
Log:
	PR middle-end/89091
	* fold-const.c (decode_field_reference): Return NULL_TREE if
	lang_hooks.types.type_for_size returns NULL.  Check it before
	overwriting *exp_.  Use return NULL_TREE instead of return 0.

	* gcc.dg/torture/pr89091.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr89091.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list