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
This commit is contained in:
Paul Brook 2004-02-18 11:11:24 +00:00 committed by Paul Brook
parent cdbafce136
commit c5fe50362f
3 changed files with 9 additions and 8 deletions

View 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.

View 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>

View 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);
}