From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7598 invoked by alias); 11 Oct 2012 11:40:17 -0000 Received: (qmail 7582 invoked by uid 22791); 11 Oct 2012 11:40:14 -0000 X-SWARE-Spam-Status: No, hits=-3.9 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,TW_XF X-Spam-Check-By: sourceware.org Received: from ra.se.axis.com (HELO ra.se.axis.com) (195.60.68.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Oct 2012 11:40:07 +0000 Received: from localhost (localhost [127.0.0.1]) by ra.se.axis.com (Postfix) with ESMTP id C0FC525CD5; Thu, 11 Oct 2012 13:40:03 +0200 (CEST) Received: from ra.se.axis.com ([127.0.0.1]) by localhost (ra.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 818UvCNMCZ7h; Thu, 11 Oct 2012 13:40:01 +0200 (CEST) Received: from seth.se.axis.com (seth.se.axis.com [10.0.2.172]) by ra.se.axis.com (Postfix) with ESMTP id 763A113AF1; Thu, 11 Oct 2012 13:39:57 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by seth.se.axis.com (Postfix) with ESMTP id 742A13E06F; Thu, 11 Oct 2012 13:39:57 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id q9BBdvd0027700; Thu, 11 Oct 2012 13:39:57 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id q9BBdvoY027696; Thu, 11 Oct 2012 13:39:57 +0200 Date: Thu, 11 Oct 2012 11:54:00 -0000 Message-Id: <201210111139.q9BBdvoY027696@ignucius.se.axis.com> From: Hans-Peter Nilsson To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org In-reply-to: <201210110013.q9B0DWaE013816@ignucius.se.axis.com> (message from Hans-Peter Nilsson on Thu, 11 Oct 2012 02:13:32 +0200) Subject: Committed, PR54897 (was: [C++ PATCH] -Wsizeof-pointer-memaccess warning (take 2)) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01087.txt.bz2 > From: Hans-Peter Nilsson > Date: Thu, 11 Oct 2012 02:13:32 +0200 > There's now an "excess error": > > x/libstdc++-v3/testsuite/23_containers/bitset/45713.cc:24:55: > error: size of array 'test' is not an integral constant-expression > int test[sizeof(std::bitset<0xffffffff>) != 1 ? 1 : -1]; > > Or is the error message in error and just "missing" before? > Please have a look. As per discussion in PR54897, I committed the following, after correcting the target syntax in the cutnpasted patch there. (The target parser is picky about matching *-*-*, which I guess is appropriate since it has to handle effective-targets as well.) PR testsuite/54897 * testsuite/23_containers/bitset/45713.cc: Skip for avr*-*-* cris*-*-* h8300*-*-* mcore*-*-* moxie*-*-*. Index: libstdc++-v3/testsuite/23_containers/bitset/45713.cc =================================================================== --- libstdc++-v3/testsuite/23_containers/bitset/45713.cc (revision 192353) +++ libstdc++-v3/testsuite/23_containers/bitset/45713.cc (working copy) @@ -1,4 +1,4 @@ -// Copyright (C) 2010 Free Software Foundation, Inc. +// Copyright (C) 2010, 2012 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -15,7 +15,10 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } +// The testcase requires bitsizetype to be wider than sizetype, +// otherwise types/vars with 0x20000000 bytes or larger can't be used. +// See http://gcc.gnu.org/PR54897 +// { dg-do compile { target { ! { avr*-*-* cris*-*-* h8300*-*-* mcore*-*-* moxie*-*-* } } } } #include brgds, H-P