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
This commit is contained in:
parent
69b89883e8
commit
eb1fcdaa11
|
@ -1,5 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue