Commit 58b62eaa by Michael Meissner Committed by Michael Meissner

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
parent 34222cd6
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
......
...@@ -10832,6 +10832,9 @@ rs6000_pass_by_reference (cumulative_args_t cum ATTRIBUTE_UNUSED, ...@@ -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, ...@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment