dwarf2out.c (const_ok_for_output_1): Print the unspec enum name if possible.
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Wed, 23 Mar 2011 07:53:26 +0000 (07:53 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 23 Mar 2011 07:53:26 +0000 (07:53 +0000)
2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
if possible.

From-SVN: r171340

gcc/ChangeLog
gcc/dwarf2out.c

index 6b5c14c5d06239628bd0c0f0740ec498505b0845..ee72d4e3b1bd94c94cfc65e309b47658c99f7d15 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
+       * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
+       if possible.
+
 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
 
        * emit-rtl.c (emit_pattern_before_noloc): New function.
index 32ffe1b6d6291d211e824f0cad2841f95fbf0aef..aa6f6b6b9cfac5d8f253f36ae9e145e66ed0ca99 100644 (file)
@@ -13616,8 +13616,15 @@ const_ok_for_output_1 (rtx *rtlp, void *data ATTRIBUTE_UNUSED)
        inform (current_function_decl
                ? DECL_SOURCE_LOCATION (current_function_decl)
                : UNKNOWN_LOCATION,
+#if NUM_UNSPEC_VALUES > 0
+               "non-delegitimized UNSPEC %s (%d) found in variable location",
+               ((XINT (rtl, 1) >= 0 && XINT (rtl, 1) < NUM_UNSPEC_VALUES)
+                ? unspec_strings[XINT (rtl, 1)] : "unknown"),
+               XINT (rtl, 1));
+#else
                "non-delegitimized UNSPEC %d found in variable location",
                XINT (rtl, 1));
+#endif
 #endif
       expansion_failed (NULL_TREE, rtl,
                        "UNSPEC hasn't been delegitimized.\n");