diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-10 20:28:04 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-10 20:28:04 +0000 |
commit | ef7557ec6752b817aad8ceeaf9242aa0f5dbb720 (patch) | |
tree | 52fffe30d4f92cf23695b52077e0393f56988f48 /gcc/testsuite/gcc.dg/debug | |
parent | f2bd5d546797abaf99d7cafb6add5003ff733ff3 (diff) | |
download | gcc-ef7557ec6752b817aad8ceeaf9242aa0f5dbb720.tar.gz |
PR debug/50983
* dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
value in the current line table.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/debug')
-rw-r--r-- | gcc/testsuite/gcc.dg/debug/dwarf2/asm-line1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/asm-line1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/asm-line1.c new file mode 100644 index 00000000000..1d2e1481e5a --- /dev/null +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/asm-line1.c @@ -0,0 +1,20 @@ +/* PR debug/50983 */ +/* { dg-do compile { target *-*-linux-gnu } } */ +/* { dg-options "-O0 -gdwarf-2" } */ +/* { dg-final { scan-assembler "is_stmt 1" } } */ + +int i; +void f() __attribute ((section ("foo"))); +void f() { if (i) ++i; else --i; } + +void fun() +{ + return; +} + +int main() +{ + f(); + fun(); + return 0; +} |