OSDN Git Service

2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Sep 2006 00:37:14 +0000 (00:37 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Sep 2006 00:37:14 +0000 (00:37 +0000)
PR debug/28980
        * dwarf2out.c (loc_descriptor_from_tree_1): Handle
        FUNCTION_DECL.

2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>

PR debug/28980
        * gcc.c-torture/compile/debugvlafunction-1.c: New test.

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

gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c [new file with mode: 0644]

index 0bdff8c..b0b36ce 100644 (file)
@@ -1,3 +1,9 @@
+2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR debug/28980
+       * dwarf2out.c (loc_descriptor_from_tree_1): Handle
+       FUNCTION_DECL.
+
 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
 
        * basic_block.h (bb_has_eh_pred): Fix comment.
index 982d908..e82c81c 100644 (file)
@@ -9167,6 +9167,7 @@ loc_descriptor_from_tree_1 (tree loc, int want_address)
       /* FALLTHRU */
 
     case RESULT_DECL:
+    case FUNCTION_DECL:
       {
        rtx rtl = rtl_for_decl_location (loc);
 
index ae45dee..ce08250 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR debug/28980
+       * gcc.c-torture/compile/debugvlafunction-1.c: New test.
+
 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/specs/unchecked_union.ads: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c b/gcc/testsuite/gcc.c-torture/compile/debugvlafunction-1.c
new file mode 100644 (file)
index 0000000..3911f87
--- /dev/null
@@ -0,0 +1,11 @@
+extern void dynreplace_trampoline(void);
+extern void dynreplace_trampoline_endlabel(void);
+int dynreplace_add_trampoline(void)
+{
+  unsigned long trampoline_code[(((unsigned long)
+(&(dynreplace_trampoline_endlabel))
+-(unsigned long) (&dynreplace_trampoline)))
+];
+}
+
+