From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24739 invoked by alias); 14 Nov 2014 14:13:32 -0000 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 Received: (qmail 24729 invoked by uid 89); 14 Nov 2014 14:13:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 14 Nov 2014 14:13:30 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAEEDSWu025243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Nov 2014 09:13:29 -0500 Received: from tucnak.zalov.cz (ovpn-116-116.ams2.redhat.com [10.36.116.116]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sAEEDQIU032500 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Fri, 14 Nov 2014 09:13:28 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id sAEEDPPM007196; Fri, 14 Nov 2014 15:13:25 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id sAEEDOHp007195; Fri, 14 Nov 2014 15:13:24 +0100 Date: Fri, 14 Nov 2014 14:48:00 -0000 From: Jakub Jelinek To: Uros Bizjak Cc: "gcc-patches@gcc.gnu.org" , Konstantin Serebryany Subject: Re: libsanitizer merge from upstream r221802 Message-ID: <20141114141324.GT5026@tucnak.redhat.com> Reply-To: Jakub Jelinek References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg01772.txt.bz2 On Fri, Nov 14, 2014 at 03:11:16PM +0100, Uros Bizjak wrote: > The missing definition in system's /usr/include/linux/types.h is protected with: > > typedef __u16 __bitwise __le16; > typedef __u16 __bitwise __be16; > typedef __u32 __bitwise __le32; > typedef __u32 __bitwise __be32; > #if defined(__GNUC__) && !defined(__STRICT_ANSI__) > typedef __u64 __bitwise __le64; > typedef __u64 __bitwise __be64; > #endif > > which doesn't work with -std=c++11, but works without problems with > -std=gnu++11. > > As proposed by Jakub at [1], -std=gnu++11 fixes the problem with old > kernels. Attached patch implements this proposal. > > 2014-11-14 Uros Bizjak > > * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11. > * asan/Makefile.am (AM_CXXFLAGS): Ditto. > * lsan/Makefile.am (AM_CXXFLAGS): Ditto. > * interception/Makefile.am (AM_CXXFLAGS): Ditto. > * tsan/Makefile.am (AM_CXXFLAGS): Ditto. > * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto. > * ubsan/Makefile.am (AM_CXXFLAGS): Ditto. > * sanitizer_common/Makefile.in: Regenerate. > * asan/Makefile.in: Ditto. > * lsan/Makefile.in: Ditto. > * interception/Makefile.in: Ditto. > * tsan/Makefile.in: Ditto. > * libbacktrace/Makefile.in: Ditto. > * ubsan/Makefile.in: Ditto. Ok, thanks. Really no reason for pedantic checking. Jakub