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]

[PATCH] "Fix" PR44989


The new testcase introduced spurious FAILs for LTO where it didn't
work at any point (at least not by design).

The following skips it in the testsuite and makes the bug a non-regression
LTO debuginfo bug.

Committed.

Richard.

2010-11-15  Richard Guenther  <rguenther@suse.de>

	PR lto/44989
	* g++.dg/guality/redeclaration1.C: Do not execute for LTO.

Index: gcc/testsuite/g++.dg/guality/redeclaration1.C
===================================================================
*** gcc/testsuite/g++.dg/guality/redeclaration1.C	(revision 166754)
--- gcc/testsuite/g++.dg/guality/redeclaration1.C	(working copy)
***************
*** 1,5 ****
--- 1,6 ----
  // { dg-do run }
  // { dg-options "-g" }
+ // { dg-skip-if "" { *-*-* } { "-fwhopr" "-flto" } { "" } }
  
  volatile int l;
  
*************** namespace S
*** 10,19 ****
    f()
    {
      int i = 42;
!     l = i;		// { dg-final { gdb-test 13 "i" "42" } }
      {
        extern int i;
!       l = i;		// { dg-final { gdb-test 16 "i" "24" } }
      }
    }
  }
--- 11,20 ----
    f()
    {
      int i = 42;
!     l = i;		// { dg-final { gdb-test 14 "i" "42" } }
      {
        extern int i;
!       l = i;		// { dg-final { gdb-test 17 "i" "24" } }
      }
    }
  }


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