Fix previous checkin.
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Feb 2004 11:11:24 +0000 (11:11 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Feb 2004 11:11:24 +0000 (11:11 +0000)
PR debug/12934
* dwarf2out.c (loc_descriptor_from_tree): Handle
EXPR_WITH_FILE_LOCATION.
testsuite/
* gcc.dg/debug/debug-7.c: New test.

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

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/debug-7.c

index 3aaa11b..4e4dcd7 100644 (file)
@@ -1,5 +1,6 @@
 2004-02-18  Paul Brook  <paul@codesourcery.com>
 
+       PR debug/12934
        * dwarf2out.c (loc_descriptor_from_tree): Handle
        EXPR_WITH_FILE_LOCATION.
 
index d77221a..c343a64 100644 (file)
@@ -1,5 +1,6 @@
 2004-02-18  Paul Brook  <paul@codesourcery.com>
 
+       PR debug/12934
        * gcc.dg/debug/debug-7.c: New test.
 
 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
index 361bc4b..d424e91 100644 (file)
@@ -1,17 +1,16 @@
 /* { dg-do compile } */
 /* { dg-options "-dA" } */
+/* PR debug/12934.  */
 
-typedef __SIZE_TYPE__ size_t;
-
-static inline size_t foo (int n)
+static inline int foo ()
 {
-  return (n + sizeof (int) * 8 - 1) / (sizeof (int) * 8);
+  return 42;
 }
 
-void bar (int, int *);
+void bar (int *);
 
-void baz (int n)
+void baz ()
 {
-  int a[foo (n)];
-  bar (n, a);
+  int a[foo ()];
+  bar (a);
 }