Commit 70614cb9 by Thomas Schwinge Committed by Thomas Schwinge

Fix "dg-lto-options" misuse

	gcc/testsuite/
	* g++.dg/lto/20080915_0.C: Don't use "dg-lto-options".
	* g++.dg/lto/20080907_0.C: Use "#pragma GCC" instead of
	"dg-lto-options".
	* g++.dg/lto/20101010-1_0.C: Likewise.
	* g++.dg/lto/20101010-2_0.C: Likewise.

Reviewed-by: Jason Merrill <jason@redhat.com>

From-SVN: r258142
parent ed2a2f08
2018-03-02 Thomas Schwinge <thomas@codesourcery.com>
* g++.dg/lto/20080915_0.C: Don't use "dg-lto-options".
* g++.dg/lto/20080907_0.C: Use "#pragma GCC" instead of
"dg-lto-options".
* g++.dg/lto/20101010-1_0.C: Likewise.
* g++.dg/lto/20101010-2_0.C: Likewise.
2018-03-02 Jakub Jelinek <jakub@redhat.com>
PR ipa/84628
......
// { dg-lto-do assemble }
// { dg-lto-options "-Wno-return-type" }
/* "WARNING: lto.exp does not support dg-additional-options" */
#pragma GCC diagnostic ignored "-Wreturn-type"
struct Foo { void func (); }; Foo & bar () { } struct Baz { Baz (Baz &); };
Baz dummy() { bar().func(); }
// { dg-lto-do assemble }
// { dg-lto-options "-Wno-return-type" }
struct Foo {
static const int dummy;
......
// { dg-lto-do link }
// { dg-lto-options "-Wno-return-type" }
/* "WARNING: lto.exp does not support dg-additional-options" */
#pragma GCC diagnostic ignored "-Wreturn-type"
typedef long size_t;
template < class, class > struct pair
......
// { dg-lto-do link }
// { dg-lto-options "-Wno-return-type" }
/* "WARNING: lto.exp does not support dg-additional-options" */
#pragma GCC diagnostic ignored "-Wreturn-type"
typedef int size_t;
template < size_t _Nw > struct _Base_bitset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment