Commit eb1fcdaa by Jakub Jelinek Committed by Jakub Jelinek

re PR bootstrap/43299 (Subversion id 157264 breaks powerpc 64-bit bootstraps)

	PR debug/43299
	* dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.

From-SVN: r157317
parent 69b89883
2010-03-09 Jakub Jelinek <jakub@redhat.com>
PR debug/43299
* dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
PR debug/43299
* var-tracking.c (adjust_sets): New function.
(count_with_sets, add_with_sets): Use it.
(get_adjusted_src): New inline function.
......
......@@ -12826,6 +12826,22 @@ const_ok_for_output_1 (rtx *rtlp, void *data ATTRIBUTE_UNUSED)
{
rtx rtl = *rtlp;
if (GET_CODE (rtl) == UNSPEC)
{
/* If delegitimize_address couldn't do anything with the UNSPEC, assume
we can't express it in the debug info. */
#ifdef ENABLE_CHECKING
inform (current_function_decl
? DECL_SOURCE_LOCATION (current_function_decl)
: UNKNOWN_LOCATION,
"non-delegitimized UNSPEC %d found in variable location",
XINT (rtl, 1));
#endif
expansion_failed (NULL_TREE, rtl,
"UNSPEC hasn't been delegitimized.\n");
return 1;
}
if (GET_CODE (rtl) != SYMBOL_REF)
return 0;
......
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