This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New dwarf-die[1-7] failures


> On Fri, Jan 09, 2004 at 11:56:31PM +0100, Jan Hubicka wrote:
> > Alternativly I can lappend -gdwarf-2 into DEFAULT_OPTIONS so at least
> > testcase not overwriting dg-options will get -gdwarf-2 automatically.
> 
> That would be nice.
This seems to do the job...
Honza

2004-01-09  Jan Hubicka  <jh@suse.cz>
	* gcc.dg/dwarf-die[1-7].c: Move to...
	* gcc.dg/debug/dwarf2/dwarf-die[1-7].c: ... here.
	* gcc.dg/debug/dwarf2/dwarf2.exp: New.
Index: testsuite/gcc.dg/dwarf-die1.c
===================================================================
RCS file: testsuite/gcc.dg/dwarf-die1.c
diff -N testsuite/gcc.dg/dwarf-die1.c
*** testsuite/gcc.dg/dwarf-die1.c	3 Jan 2004 23:03:45 -0000	1.1.2.1
--- /dev/null	1 Jan 1970 00:00:00 -0000
***************
*** 1,8 ****
- /* Verify that inline function never actually inlined has no abstract DIE.  */
- /* { dg-do compile */
- /* { dg-options "-O2 -gdwarf-2 -dA" } */
- /* { dg-final { scan-assembler-not "DW_AT_inline" } } */
- inline int t()
- {
- }
- int (*q)()=t;
--- 0 ----
Index: testsuite/gcc.dg/dwarf-die2.c
===================================================================
RCS file: testsuite/gcc.dg/dwarf-die2.c
diff -N testsuite/gcc.dg/dwarf-die2.c
*** testsuite/gcc.dg/dwarf-die2.c	3 Jan 2004 23:03:45 -0000	1.1.2.1
--- /dev/null	1 Jan 1970 00:00:00 -0000
***************
*** 1,7 ****
- /* Verify that inline function never actually emit has no DIE.  */
- /* { dg-do compile */
- /* { dg-options "-O0 -gdwarf-2 -dA" } */
- /* { dg-final { scan-assembler-not "CIE Version" } } */
- static inline int t()
- {
- }
--- 0 ----
Index: testsuite/gcc.dg/dwarf-die3.c
===================================================================
RCS file: testsuite/gcc.dg/dwarf-die3.c
diff -N testsuite/gcc.dg/dwarf-die3.c
*** testsuite/gcc.dg/dwarf-die3.c	3 Jan 2004 23:03:45 -0000	1.1.2.1
--- /dev/null	1 Jan 1970 00:00:00 -0000
***************
*** 1,11 ****
- /* Verify that extern inline function never actually inlined has no abstract DIE.  */
- /* { dg-do compile */
- /* { dg-options "-O0 -gdwarf-2 -dA" } */
- /* { dg-final { scan-assembler-not "DW_AT_inline" } } */
- extern inline int t()
- {
- }
- int (*q)()=t;
- int t()
- {
- }
--- 0 ----
Index: testsuite/gcc.dg/dwarf-die5.c
===================================================================
RCS file: testsuite/gcc.dg/dwarf-die5.c
diff -N testsuite/gcc.dg/dwarf-die5.c
*** testsuite/gcc.dg/dwarf-die5.c	3 Jan 2004 23:03:45 -0000	1.1.2.1
--- /dev/null	1 Jan 1970 00:00:00 -0000
***************
*** 1,12 ****
- /* Inlined inline function must have abstract DIE  */
- /* { dg-do compile */
- /* { dg-options "-O2 -gdwarf-2 -dA -fpreprocessed" } */
- /* { dg-final { scan-assembler "3.*DW_AT_inline" } } */
- #1 "test.h"
- inline int t()
- {
- }
- int q()
- {
-   t();
- }
--- 0 ----
Index: testsuite/gcc.dg/dwarf-die6.c
===================================================================
RCS file: testsuite/gcc.dg/dwarf-die6.c
diff -N testsuite/gcc.dg/dwarf-die6.c
*** testsuite/gcc.dg/dwarf-die6.c	3 Jan 2004 23:03:45 -0000	1.1.2.1
--- /dev/null	1 Jan 1970 00:00:00 -0000
***************
*** 1,12 ****
- /* not inline inline function must not have abstract DIE  */
- /* { dg-do compile */
- /* { dg-options "-O2 -fno-inline -gdwarf-2 -dA -fpreprocessed" } */
- /* { dg-final { scan-assembler-not "DW_AT_inline" } } */
- #1 "test.h"
- inline int t()
- {
- }
- int q()
- {
-   t();
- }
--- 0 ----
Index: testsuite/gcc.dg/dwarf-die7.c
===================================================================
RCS file: testsuite/gcc.dg/dwarf-die7.c
diff -N testsuite/gcc.dg/dwarf-die7.c
*** testsuite/gcc.dg/dwarf-die7.c	3 Jan 2004 23:03:45 -0000	1.1.2.1
--- /dev/null	1 Jan 1970 00:00:00 -0000
***************
*** 1,14 ****
- /* Inlined non-inline function must have abstract DIE  */
- /* { dg-do compile */
- /* { dg-options "-O2 -gdwarf-2 -dA -fpreprocessed" } */
- /* { dg-final { scan-assembler "1.*DW_AT_inline" } } */
- #1 "test.h"
- void f(void);
- static int t()
- {
- 	f();
- }
- int q()
- {
-   t();
- }
--- 0 ----
Index: testsuite/gcc.dg/debug/dwarf2/dwarf-die1.c
===================================================================
RCS file: testsuite/gcc.dg/debug/dwarf2/dwarf-die1.c
diff -N testsuite/gcc.dg/debug/dwarf2/dwarf-die1.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/debug/dwarf2/dwarf-die1.c	9 Jan 2004 14:26:20 -0000
***************
*** 0 ****
--- 1,8 ----
+ /* Verify that inline function never actually inlined has no abstract DIE.  */
+ /* { dg-do compile */
+ /* { dg-options "-O2 -gdwarf-2 -dA" } */
+ /* { dg-final { scan-assembler-not "DW_AT_inline" } } */
+ inline int t()
+ {
+ }
+ int (*q)()=t;
Index: testsuite/gcc.dg/debug/dwarf2/dwarf-die2.c
===================================================================
RCS file: testsuite/gcc.dg/debug/dwarf2/dwarf-die2.c
diff -N testsuite/gcc.dg/debug/dwarf2/dwarf-die2.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/debug/dwarf2/dwarf-die2.c	9 Jan 2004 14:26:20 -0000
***************
*** 0 ****
--- 1,7 ----
+ /* Verify that inline function never actually emit has no DIE.  */
+ /* { dg-do compile */
+ /* { dg-options "-O0 -gdwarf-2 -dA" } */
+ /* { dg-final { scan-assembler-not "CIE Version" } } */
+ static inline int t()
+ {
+ }
Index: testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c
===================================================================
RCS file: testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c
diff -N testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/debug/dwarf2/dwarf-die3.c	9 Jan 2004 14:26:20 -0000
***************
*** 0 ****
--- 1,11 ----
+ /* Verify that extern inline function never actually inlined has no abstract DIE.  */
+ /* { dg-do compile */
+ /* { dg-options "-O0 -gdwarf-2 -dA" } */
+ /* { dg-final { scan-assembler-not "DW_AT_inline" } } */
+ extern inline int t()
+ {
+ }
+ int (*q)()=t;
+ int t()
+ {
+ }
Index: testsuite/gcc.dg/debug/dwarf2/dwarf-die5.c
===================================================================
RCS file: testsuite/gcc.dg/debug/dwarf2/dwarf-die5.c
diff -N testsuite/gcc.dg/debug/dwarf2/dwarf-die5.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/debug/dwarf2/dwarf-die5.c	9 Jan 2004 14:26:20 -0000
***************
*** 0 ****
--- 1,12 ----
+ /* Inlined inline function must have abstract DIE  */
+ /* { dg-do compile */
+ /* { dg-options "-O2 -gdwarf-2 -dA -fpreprocessed" } */
+ /* { dg-final { scan-assembler "3.*DW_AT_inline" } } */
+ #1 "test.h"
+ inline int t()
+ {
+ }
+ int q()
+ {
+   t();
+ }
Index: testsuite/gcc.dg/debug/dwarf2/dwarf-die6.c
===================================================================
RCS file: testsuite/gcc.dg/debug/dwarf2/dwarf-die6.c
diff -N testsuite/gcc.dg/debug/dwarf2/dwarf-die6.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/debug/dwarf2/dwarf-die6.c	9 Jan 2004 14:26:20 -0000
***************
*** 0 ****
--- 1,12 ----
+ /* not inline inline function must not have abstract DIE  */
+ /* { dg-do compile */
+ /* { dg-options "-O2 -fno-inline -gdwarf-2 -dA -fpreprocessed" } */
+ /* { dg-final { scan-assembler-not "DW_AT_inline" } } */
+ #1 "test.h"
+ inline int t()
+ {
+ }
+ int q()
+ {
+   t();
+ }
Index: testsuite/gcc.dg/debug/dwarf2/dwarf-die7.c
===================================================================
RCS file: testsuite/gcc.dg/debug/dwarf2/dwarf-die7.c
diff -N testsuite/gcc.dg/debug/dwarf2/dwarf-die7.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/debug/dwarf2/dwarf-die7.c	9 Jan 2004 14:26:20 -0000
***************
*** 0 ****
--- 1,14 ----
+ /* Inlined non-inline function must have abstract DIE  */
+ /* { dg-do compile */
+ /* { dg-options "-O2 -gdwarf-2 -dA -fpreprocessed" } */
+ /* { dg-final { scan-assembler "1.*DW_AT_inline" } } */
+ #1 "test.h"
+ void f(void);
+ static int t()
+ {
+ 	f();
+ }
+ int q()
+ {
+   t();
+ }
Index: testsuite/gcc.dg/debug/dwarf2/dwarf2.exp
===================================================================
RCS file: testsuite/gcc.dg/debug/dwarf2/dwarf2.exp
diff -N testsuite/gcc.dg/debug/dwarf2/dwarf2.exp
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/debug/dwarf2/dwarf2.exp	9 Jan 2004 14:26:20 -0000
***************
*** 0 ****
--- 1,42 ----
+ #   Copyright (C) 2002 Free Software Foundation, Inc.
+ 
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
+ # 
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ # GNU General Public License for more details.
+ # 
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
+ 
+ # GCC testsuite that uses the `dg.exp' driver.
+ 
+ # Load support procs.
+ load_lib gcc-dg.exp
+ 
+ # If a testcase doesn't have special options, use these.
+ global DEFAULT_CFLAGS
+ if ![info exists DEFAULT_CFLAGS] then {
+     set DEFAULT_CFLAGS " -ansi -pedantic-errors -gdwarf-2"
+ }
+ 
+ # Initialize `dg'.
+ dg-init
+ 
+ # Main loop.
+ set comp_output [gcc_target_compile \
+     "$srcdir/$subdir/../trivial.c" "trivial.S" assembly \
+     "additional_flags=-gdwarf-2"]
+ if { ! [string match "*: target system does not support the * debug format*" \
+     $comp_output] } {
+     dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \
+ 	    "" $DEFAULT_CFLAGS
+ }
+ 
+ # All done.
+ dg-finish


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]