From patchwork Tue Nov 6 22:05:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [AARCH64/Committed] Fix g++.dg/abi/aarch64_guard1.C Date: Tue, 06 Nov 2012 12:05:54 -0000 From: Andrew Pinski X-Patchwork-Id: 197559 Message-Id: To: GCC Patches Hi, The problem here is with section anchors turned on, we generate a BSS rather than a local common symbol and we no longer match the pattern: "_ZGVZ3foovE1x,8,8". This fixes this testcase by just adding -fno-section-anchors. Thanks, Andrew Pinski 2012-11-06 Andrew Pinski * g++.dg/abi/aarch64_guard1.C: Add -fno-section-anchors. Index: g++.dg/abi/aarch64_guard1.C =================================================================== --- g++.dg/abi/aarch64_guard1.C (revision 193259) +++ g++.dg/abi/aarch64_guard1.C (working copy) @@ -2,7 +2,7 @@ // 8-byte doubleword and that only the least significant bit is used // for initialization guard variables. // { dg-do compile { target aarch64*-*-* } } -// { dg-options "-O -fdump-tree-original" } +// { dg-options "-O -fdump-tree-original -fno-section-anchors" } int bar();