re PR target/46512 (crtstuff.c:563:1: internal compiler error: Segmentation fault)

PR target/46512
	* config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
	under check for type.

From-SVN: r166849
This commit is contained in:
Nathan Froyd 2010-11-17 01:41:13 +00:00 committed by Nathan Froyd
parent d82f74d3ab
commit b58a864da3
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
PR target/46512
* config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
under check for type.
2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
* ifcvt.c (dead_or_predicable): Fix typo.

View File

@ -9608,10 +9608,9 @@ pa_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode,
static unsigned int
pa_function_arg_boundary (enum machine_mode mode, const_tree type)
{
tree size = TYPE_SIZE (type);
bool singleword = (type
? (integer_zerop (size)
|| !TREE_CONSTANT (size)
? (integer_zerop (TYPE_SIZE (type))
|| !TREE_CONSTANT (TYPE_SIZE (type))
|| int_size_in_bytes (type) <= UNITS_PER_WORD)
: GET_MODE_SIZE (mode) <= UNITS_PER_WORD);