From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6680 invoked by alias); 16 Apr 2009 01:45:23 -0000 Received: (qmail 6581 invoked by uid 48); 16 Apr 2009 01:45:04 -0000 Date: Thu, 16 Apr 2009 01:45:00 -0000 Subject: [Bug testsuite/39781] New: Fail: g++.dg/cpp/_Pragma1.C, gcc.dg/cpp/_Pragma6.c X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jingyu at google dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg01298.txt.bz2 These two tests require that platform supports pragma pack(push). For example, gcc.dg/cpp_Pragma6.c: /* PR c/27747 */ /* This is supposed to succeed only if the target defines HANDLE_PRAGMA_PACK_PUSH_POP and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. */ /* { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* } } } } */ #define push bar #define foo _Pragma ("pack(push)") foo int i; #pragma pack(pop) However, config/arm does not define "HANDLE_PRAGMA_PACK_PUSH_POP". So GCC gives the following warning which breaks the dejaGNU test. "warning: #pragma pack(push[, id], ) is not supported on this target" The same failure is also observed on the report: http://gcc.gnu.org/ml/gcc-testresults/2009-04/msg01473.html Suggest to filter arm-*-* out of the test target list. $arm-eabi-gcc -v Using built-in specs. Target: arm-eabi Configured with: /usr/local/google/nightly/sources/arm_toolchain/gcc-4.4/configure --prefix=/usr/local/google/tmp/gcc4.4_dejagnu/install --target=arm-eabi --build=x86_64-linux-gnu --host=x86_64-linux-gnu --with-gmp=/usr/local/google/tmp/gcc4.4_dejagnu/install --with-mpfr=/usr/local/google/tmp/gcc4.4_dejagnu/install --enable-multilib --with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++ Thread model: single gcc version 4.4.0 20090415 (prerelease) (GCC) -- Summary: Fail: g++.dg/cpp/_Pragma1.C, gcc.dg/cpp/_Pragma6.c Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jingyu at google dot com GCC build triplet: x86_64-linux-gnu, i686-linux-gnu GCC host triplet: x86_64-linux-gnu, i686-linux-gnu GCC target triplet: arm-unknown-eabi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39781