re PR libgcc/66854 (libgcc2.c:1846:9: internal compiler error: Segmentation fault)

2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/66854
	* config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
	null before IEEE 128-bit floating point support patch.

From-SVN: r225843
This commit is contained in:
Michael Meissner 2015-07-15 17:15:37 +00:00 committed by Michael Meissner
parent 34222cd6cc
commit 58b62eaab2
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/66854
* config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
null before IEEE 128-bit floating point support patch.
2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* simplify-rtx.c (simplify_ternary_operation): Add simplification * simplify-rtx.c (simplify_ternary_operation): Add simplification

View File

@ -10832,6 +10832,9 @@ rs6000_pass_by_reference (cumulative_args_t cum ATTRIBUTE_UNUSED,
machine_mode mode, const_tree type, machine_mode mode, const_tree type,
bool named ATTRIBUTE_UNUSED) bool named ATTRIBUTE_UNUSED)
{ {
if (!type)
return 0;
if (DEFAULT_ABI == ABI_V4 && TARGET_IEEEQUAD if (DEFAULT_ABI == ABI_V4 && TARGET_IEEEQUAD
&& FLOAT128_IEEE_P (TYPE_MODE (type))) && FLOAT128_IEEE_P (TYPE_MODE (type)))
{ {
@ -10840,9 +10843,6 @@ rs6000_pass_by_reference (cumulative_args_t cum ATTRIBUTE_UNUSED,
return 1; return 1;
} }
if (!type)
return 0;
if (DEFAULT_ABI == ABI_V4 && AGGREGATE_TYPE_P (type)) if (DEFAULT_ABI == ABI_V4 && AGGREGATE_TYPE_P (type))
{ {
if (TARGET_DEBUG_ARG) if (TARGET_DEBUG_ARG)