r265894 - in /trunk/gcc: ChangeLog stor-layout....

jozefl@gcc.gnu.org jozefl@gcc.gnu.org
Wed Nov 7 22:06:00 GMT 2018


Author: jozefl
Date: Wed Nov  7 22:06:26 2018
New Revision: 265894

URL: https://gcc.gnu.org/viewcvs?rev=265894&root=gcc&view=rev
Log:
2018-11-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

	PR c/87691
	
	gcc/ChangeLog:
	* stor-layout.c (compute_record_mode): Set TYPE_MODE of UNION_TYPE
	to the mode of the widest field iff the widest field has mode class
	MODE_INT, or MODE_PARTIAL_INT and the union would be passed by
	reference.

	gcc/testsuite/ChangeLog:
	* gcc.target/msp430/pr87691.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/msp430/pr87691.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/stor-layout.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list