diff options
Diffstat (limited to 'gcc-4.4.0/gcc/testsuite/gcc.dg/debug')
-rw-r--r-- | gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c | 4 | ||||
-rw-r--r-- | gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/mlt1.c | 32 |
2 files changed, 35 insertions, 1 deletions
diff --git a/gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c b/gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c index 8bd34b2fe..873188fe8 100644 --- a/gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c +++ b/gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c @@ -2,8 +2,10 @@ section if nothing went in there. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ -/* { dg-options "-gdwarf-2 -ffunction-sections -w" } */ +/* { dg-options "-gdwarf-2 -ffunction-sections -w -dA" } */ /* { dg-final { scan-assembler-not "\\.Letext0-\\.Ltext0" } } */ +/* { dg-final { scan-assembler-not "\\.Ltext0\[^\n\r\]*Offset 0x0" } } */ +/* { dg-final { scan-assembler "DW_AT_ranges" } } */ int f (void) diff --git a/gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/mlt1.c b/gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/mlt1.c new file mode 100644 index 000000000..7b0b2e994 --- /dev/null +++ b/gcc-4.4.0/gcc/testsuite/gcc.dg/debug/dwarf2/mlt1.c @@ -0,0 +1,32 @@ +/* Test that -gmlt includes line tables and inlined subroutine entries, + and excludes types and variables. */ +/* Origin: Cary Coutant <ccoutant@google.com> */ +/* { dg-do compile } */ +/* { dg-options "-O2 -gdwarf-2 -dA -gmlt" } */ +/* { dg-final { scan-assembler "DW_AT_stmt_list" } } */ +/* { dg-final { scan-assembler "DW_TAG_subprogram" } } */ +/* { dg-final { scan-assembler "DW_TAG_inlined_subroutine" } } */ +/* { dg-final { scan-assembler-not "DW_TAG_variable" } } */ +/* { dg-final { scan-assembler-not "DW_TAG_formal_parameter" } } */ +/* { dg-final { scan-assembler-not "DW_TAG_base_type" } } */ + +static inline __attribute__((always_inline)) int +a(int i, int j) +{ + return (i << 5) + j; +} + +int +b(int i, int j) +{ + return (i >> 5) + (j << 27); +} + +int +c(int i, int j) +{ + int r = a(i, j); + r = b(r, i); + r = b(r, j); + return r; +} |