From patchwork Mon Apr 11 20:41:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Wilson X-Patchwork-Id: 65569 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1559921qge; Mon, 11 Apr 2016 13:42:06 -0700 (PDT) X-Received: by 10.66.168.177 with SMTP id zx17mr35080093pab.3.1460407326903; Mon, 11 Apr 2016 13:42:06 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id xd4si5569427pab.110.2016.04.11.13.42.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Apr 2016 13:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-424639-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-424639-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-424639-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=UvXR/Go8T1Xqhe8qHIKfm9/xgW463ue5ZhiWEGqvRsKtri CQ01JhdI75aX5bYBZeyrXKeCrFMq+KVRYWEHSdiBg2zh9uKkzYzdau3iNhsbu5dH ZccfP3W4SPY+6FbGX32On7/dzM5fm4nHtub+5/oeJFyCsabLxbGh1J5mDUXL0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=LfXIMljY4WzcRA1ldH//vo+3++Q=; b=EaNWSnT5bhVOOAXV333X /20cTgfMVHFjGyoF6cNIj1kxTjpn+d3zezvwXSfIUOqAkNN5mZ8/6tvMPnBrul3h kBbJtD5qSgWiJA2k7htJg0s+A7wVmYFdICXLBU9AjmNBuUJAlFzVoTL2LUh54ovo Ntsbi5FHnjuZyNrnnUshn1s= Received: (qmail 90858 invoked by alias); 11 Apr 2016 20:41:49 -0000 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 Received: (qmail 90203 invoked by uid 89); 11 Apr 2016 20:41:49 -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, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-oi0-f49.google.com Received: from mail-oi0-f49.google.com (HELO mail-oi0-f49.google.com) (209.85.218.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 11 Apr 2016 20:41:38 +0000 Received: by mail-oi0-f49.google.com with SMTP id y204so223050612oie.3 for ; Mon, 11 Apr 2016 13:41:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=rtLU2Z/R7Gr+qFD9eyOi8wsrzq0frUP7qns967ccN2c=; b=hvsQW3w9sFOub3t+Sfht+K5JZIWTt8KRhkT88UW2eyQYbqKfAsJat1Ut/JQsY72tWM a36nAcYzaROJFyZdVctp9VqGIV3cQG0DaPSE3vDJ71sM1Qbc5RQQU9raPN4n7DnA6jUQ FGlZ1HZn/i3wd5XNW2qsyrmsWzgGCckFzY/Q5mVVjbKvMNh8b/H50WTT2rNHdBjqsFfW H1h5QbA1Q+6RB+POvfYvF8pDZNmzi+lXAcRBwMuJ1WVsH/vDDfg7QNOQx5xkqazHtOkG hcBaPHt2ZfcVHcSI6PFJgO9CldPVzdiwzUBmERAlWRd5AglLsh+LpVqh9kA9ppVsNUAl JYVA== X-Gm-Message-State: AD7BkJJYW5kgVbxkYkfQnzbdBvjY9CMAkKL14t5lcwK0MmD42s23G3nKdxQOldKHxDjDhVNjWRgBoqoAdfwem6sr MIME-Version: 1.0 X-Received: by 10.157.2.69 with SMTP id 63mr11495409otb.170.1460407297069; Mon, 11 Apr 2016 13:41:37 -0700 (PDT) Received: by 10.157.33.46 with HTTP; Mon, 11 Apr 2016 13:41:36 -0700 (PDT) Date: Mon, 11 Apr 2016 13:41:36 -0700 Message-ID: Subject: [PATCH, GCC 5] PR 70613, -fabi-version docs don't match implementation From: Jim Wilson To: "gcc-patches@gcc.gnu.org" Here is a patch to correct the -fabi-version docs on the GCC 5 branch. This was tested with an x86_64-linux bootstrap, make doc, make dvi, and checking the output info and dvi files to make sure the changes look right. Ok to check in? Jim Index: ChangeLog =================================================================== --- ChangeLog (revision 234867) +++ ChangeLog (working copy) @@ -1,3 +1,12 @@ +2016-04-11 Jim Wilson + + Partial backport from trunk r228017. + 2015-09-22 Jason Merrill + + PR c++/70613 + * doc/invoke.texi (-fabi-version): Document version 9. + (-Wabi): Document version 9. Mention version 8 is default for GCC 5.1. + 2016-04-09 Oleg Endo Backport from mainline Index: doc/invoke.texi =================================================================== --- doc/invoke.texi (revision 234867) +++ doc/invoke.texi (working copy) @@ -2118,6 +2118,9 @@ scope. Version 8, which first appeared in G++ 4.9, corrects the substitution behavior of function types with function-cv-qualifiers. +Version 9, which first appeared in G++ 5.2, corrects the alignment of +@code{nullptr_t}. + See also @option{-Wabi}. @item -fabi-compat-version=@var{n} @@ -2619,7 +2622,15 @@ When mangling a function type with function-cv-qua un-qualified function type was incorrectly treated as a substitution candidate. -This was fixed in @option{-fabi-version=8}. +This was fixed in @option{-fabi-version=8}, the default for GCC 5.1. + +@item +@code{decltype(nullptr)} incorrectly had an alignment of 1, leading to +unaligned accesses. Note that this did not affect the ABI of a +function with a @code{nullptr_t} parameter, as parameters have a +minimum alignment. + +This was fixed in @option{-fabi-version=9}, the default for GCC 5.2. @end itemize It also warns about psABI-related changes. The known psABI changes at this