Commit 23662b9a by Cary Coutant Committed by Cary Coutant

typedef2.C: Add -fno-debug-types-section flag.

gcc/testsuite/
	* g++.dg/debug/dwarf2/typedef2.C: Add -fno-debug-types-section flag.
	* g++.dg/debug/dwarf2/typedef4.C: Likewise.
	* g++.dg/debug/dwarf2/static-data-member1.C: Likewise.
	* g++.dg/debug/dwarf2/global-used-types-1.C: Likewise.
	* g++.dg/debug/dwarf2/self-ref-1.C: Likewise.
	* g++.dg/debug/dwarf2/nested-2.C: Likewise.
	* g++.dg/debug/dwarf2/typedef1.C: Likewise.
	* g++.dg/debug/dwarf2/namespace-2.C: Likewise.
	* g++.dg/debug/dwarf2/integer-typedef.C: Likewise.
	* g++.dg/debug/dwarf2/self-ref-2.C: Likewise.
	* g++.dg/debug/dwarf2/explicit-constructor.C: Likewise.

From-SVN: r198060
parent 475b8f37
2013-04-18 Cary Coutant <ccoutant@google.com>
* g++.dg/debug/dwarf2/typedef2.C: Add -fno-debug-types-section flag.
* g++.dg/debug/dwarf2/typedef4.C: Likewise.
* g++.dg/debug/dwarf2/static-data-member1.C: Likewise.
* g++.dg/debug/dwarf2/global-used-types-1.C: Likewise.
* g++.dg/debug/dwarf2/self-ref-1.C: Likewise.
* g++.dg/debug/dwarf2/nested-2.C: Likewise.
* g++.dg/debug/dwarf2/typedef1.C: Likewise.
* g++.dg/debug/dwarf2/namespace-2.C: Likewise.
* g++.dg/debug/dwarf2/integer-typedef.C: Likewise.
* g++.dg/debug/dwarf2/self-ref-2.C: Likewise.
* g++.dg/debug/dwarf2/explicit-constructor.C: Likewise.
2013-04-18 Grigoriy Kraynov <grigoriy.kraynov@intel.com>
* gcc.target/i386/avx2-vpop-check.h: volatility is casted away in
......
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++
// { dg-do compile }
// { dg-options "-O -g -dA -gno-strict-dwarf" }
// { dg-options "-O -g -dA -gno-strict-dwarf -fno-debug-types-section" }
// { dg-final { scan-assembler-times "DW_AT_explicit" 2 } }
struct Foo
......
// Contributed by Dodji Seketeli <dodji@redhat.com>
// { dg-options "-g -dA -fno-merge-debug-strings" }
// { dg-options "-g -dA -fno-merge-debug-strings -fno-debug-types-section" }
// { dg-do compile }
// { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } }
// { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } }
......
// Origin: PR debug/49130
// { dg-options "-g -dA -fno-merge-debug-strings" }
// { dg-options "-g -dA -fno-merge-debug-strings -fno-debug-types-section" }
typedef long unsigned int size_t;
static const size_t foo = 2048;
......
// Test that we define A inside the namespace rather than declaring it
// there and then defining it at CU scope.
// { dg-options "-g -dA" }
// { dg-options "-g -dA -fno-debug-types-section" }
// { dg-final { scan-assembler-not "DW_AT_declaration" } }
namespace N {
......
/*
Origin: PR debug/45024
{ dg-options "-g -dA -fno-merge-debug-strings" }
{ dg-options "-g -dA -fno-merge-debug-strings -fno-debug-types-section" }
{ dg-do compile }
*/
......
// Origin: PR debug/45088
// { dg-do compile }
// { dg-options "-g -dA" }
// { dg-options "-g -dA -fno-debug-types-section" }
// { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_pointer_type\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT_byte_size\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type" 4 } }
struct A
......
// Origin: PR debug/45088
// { dg-do compile }
// { dg-options "-g -dA" }
// { dg-options "-g -dA -fno-debug-types-section" }
// { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_pointer_type\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT_byte_size\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type" 4 } }
template<class T>
......
// { dg-do compile }
// { dg-options "-g -dA -fno-merge-debug-strings" }
// { dg-options "-g -dA -fno-merge-debug-strings -fno-debug-types-section" }
struct A
{
......
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/40705
// { dg-options "-g -dA" }
// { dg-options "-g -dA -fno-debug-types-section" }
// { dg-do compile }
// { dg-final { scan-assembler-times "DW_TAG_structure_type" 2 } }
// { dg-final { scan-assembler-times "DW_AT_name: \"foo<1u>\"|\"foo<1u>..\"\[^\n\]*DW_AT_name" 1 } }
......
// Origin: PR debug/43628
// { dg-options "-g -dA" }
// { dg-options "-g -dA -fno-debug-types-section" }
// { dg-do compile }
// { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_formal_parameter\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type\[\n\r\]{1,2}" 1 } }
......
// Origin: PR debug/45171
// { dg-options "-g -dA -fno-eliminate-unused-debug-types" }
// { dg-options "-g -dA -fno-eliminate-unused-debug-types -fno-debug-types-section" }
// { dg-do compile }
// There should be 2 real instances of byte_size -- one for the
......
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