aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2004-02-18 11:11:24 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2004-02-18 11:11:24 +0000
commitc5fe50362f8f923bdbcf3900025b5e93cb24705d (patch)
tree2ac0d0a235c34e6327340353a384ea4fa0ae9a92
parentcdbafce1363a1dbda16e23accbd5af588c498b64 (diff)
downloadgcc-c5fe50362f8f923bdbcf3900025b5e93cb24705d.zip
gcc-c5fe50362f8f923bdbcf3900025b5e93cb24705d.tar.gz
gcc-c5fe50362f8f923bdbcf3900025b5e93cb24705d.tar.bz2
Fix previous checkin.
PR debug/12934 * dwarf2out.c (loc_descriptor_from_tree): Handle EXPR_WITH_FILE_LOCATION. testsuite/ * gcc.dg/debug/debug-7.c: New test. From-SVN: r78018
-rw-r--r--gcc/ChangeLog1
-rw-r--r--gcc/testsuite/ChangeLog1
-rw-r--r--gcc/testsuite/gcc.dg/debug/debug-7.c15
3 files changed, 9 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3aaa11b..4e4dcd7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d77221a..c343a64 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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>
diff --git a/gcc/testsuite/gcc.dg/debug/debug-7.c b/gcc/testsuite/gcc.dg/debug/debug-7.c
index 361bc4b..d424e91 100644
--- a/gcc/testsuite/gcc.dg/debug/debug-7.c
+++ b/gcc/testsuite/gcc.dg/debug/debug-7.c
@@ -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);
}