From patchwork Thu Oct 11 11:39:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 190871 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A41762C008E for ; Thu, 11 Oct 2012 22:40:35 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1350560436; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:Message-Id:From:To: In-reply-to:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=mt02fvryfaMV3VUAUT/s2pp8au4=; b=k7i0hVFI/CuTA7o qvT55m1DW81Ju1cA23asRiEvq434w1dosjltMdFhUj8F3SWQCv8XDjl+zYVJqSis 4s2NNV9G+Hv/idr/pRT6Fd3ZIRDQFTtygVugSYZBKtz6MvQ8ycs3GWz9Q2gImRRQ 9s6B/490/+kG+sdhoIRmVk7uHSuQ= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Received:Received:Date:Message-Id:From:To:In-reply-to:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=lJm51whrN5pAKVkuBWZPI67bVxN1C/siK318mccOsC+pa8hiiJOaqzHLby8Yfr gIUI/DB6qj0Ix0DIWpiaGZv6MLJD9OcMS8ZZiYgky4Njc58cnPf2ZyeoSyOblUok Sw8XFNv5CbC6sIraDfTKvtjD78krg9PkvmwmoSwq8JZtM=; 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 13:39:57 +0200 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 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org > 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*-*-*. brgds, H-P 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