OSDN Git Service

* dwarf2out.c (loc_list_plus_const): Only define if
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 2009 07:02:26 +0000 (07:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 2009 07:02:26 +0000 (07:02 +0000)
DWARF2_DEBUGGING_INFO.
(address_of_int_loc_descriptor): Likewise.

PR debug/41411
* dwarf2out.c (mem_loc_descriptor): Handle HIGH.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152059 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index 4ee5b37..ccab5ac 100644 (file)
@@ -1,4 +1,14 @@
-2009-09-23 Uros Bizjak <ubizjak@gmail.com>
+2009-09-23  Jakub Jelinek  <jakub@redhat.com>
+           Jan Hubicka  <jh@suse.cz>
+
+       * dwarf2out.c (loc_list_plus_const): Only define if
+       DWARF2_DEBUGGING_INFO.
+       (address_of_int_loc_descriptor): Likewise.
+
+       PR debug/41411
+       * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
+
+2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
 
        PR c/39779
        * c-typeck.c (build_binary_op) <short_shift>: Check that integer
 
        PR c/39779
        * c-typeck.c (build_binary_op) <short_shift>: Check that integer
index f25b18b..a2e91d4 100644 (file)
@@ -4657,6 +4657,7 @@ loc_descr_plus_const (dw_loc_descr_ref *list_head, HOST_WIDE_INT offset)
     }
 }
 
     }
 }
 
+#ifdef DWARF2_DEBUGGING_INFO
 /* Add a constant OFFSET to a location list.  */
 
 static void
 /* Add a constant OFFSET to a location list.  */
 
 static void
@@ -4666,6 +4667,7 @@ loc_list_plus_const (dw_loc_list_ref list_head, HOST_WIDE_INT offset)
   for (d = list_head; d != NULL; d = d->dw_loc_next)
     loc_descr_plus_const (&d->expr, offset);
 }
   for (d = list_head; d != NULL; d = d->dw_loc_next)
     loc_descr_plus_const (&d->expr, offset);
 }
+#endif
 
 /* Return the size of a location descriptor.  */
 
 
 /* Return the size of a location descriptor.  */
 
@@ -10896,7 +10898,9 @@ int_loc_descriptor (HOST_WIDE_INT i)
 
   return new_loc_descr (op, i, 0);
 }
 
   return new_loc_descr (op, i, 0);
 }
+#endif
 
 
+#ifdef DWARF2_DEBUGGING_INFO
 /* Return loc description representing "address" of integer value.
    This can appear only as toplevel expression.  */
 
 /* Return loc description representing "address" of integer value.
    This can appear only as toplevel expression.  */
 
@@ -10957,9 +10961,6 @@ address_of_int_loc_descriptor (int size, HOST_WIDE_INT i)
   loc_result->dw_loc_oprnd2.v.val_int = i;
   return loc_result;
 }
   loc_result->dw_loc_oprnd2.v.val_int = i;
   return loc_result;
 }
-#endif
-
-#ifdef DWARF2_DEBUGGING_INFO
 
 /* Return a location descriptor that designates a base+offset location.  */
 
 
 /* Return a location descriptor that designates a base+offset location.  */
 
@@ -11675,6 +11676,7 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
     case PARITY:
     case ASM_OPERANDS:
     case UNSPEC:
     case PARITY:
     case ASM_OPERANDS:
     case UNSPEC:
+    case HIGH:
       /* If delegitimize_address couldn't do anything with the UNSPEC, we
         can't express it in the debug info.  This can happen e.g. with some
         TLS UNSPECs.  */
       /* If delegitimize_address couldn't do anything with the UNSPEC, we
         can't express it in the debug info.  This can happen e.g. with some
         TLS UNSPECs.  */