From patchwork Tue Apr 10 23:49:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Sawdey X-Patchwork-Id: 896987 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-476175-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Y1tI06bX"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40LP6w2hhhz9s1B for ; Wed, 11 Apr 2018 09:50:13 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:from:to:cc:date:content-type:mime-version:message-id; q=dns; s=default; b=vsjZOTsuyu4hIzic1bBQULLpellKS1LhcmaVqDzj6OZ a7wWrTaIt2V2P7rOT06G/hsY87WHiGE30nmC1uTrq53/hcird1G9URnKoGPccrrn UkM9QhaY7Xr1iuwtfpO9l7eSNzmXmdPHJ31voXsMid/ilkWKodSnYouLtrsT/gTQ = 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 :subject:from:to:cc:date:content-type:mime-version:message-id; s=default; bh=Fqz40lXzWn18MNjGzVUY4yfAHLA=; b=Y1tI06bX+n72FjWfd XKClsqYwA1VzIlyzT4+fOMUsH2RS7CEHKak+KRpfvBMnVNf+0WuO4DylJzKn2Dc8 M3nCv/C01CaKeHta0OwODoBmBA86xkSGxM51nKlqWewWzkpr+R2HAMFAxTv5yG80 jycKFXka9hLTvsBf7s6AVpHplE= Received: (qmail 93238 invoked by alias); 10 Apr 2018 23:50:05 -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 93228 invoked by uid 89); 10 Apr 2018 23:50:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-15.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Apr 2018 23:50:03 +0000 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3ANiAUM010012 for ; Tue, 10 Apr 2018 19:50:01 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0b-001b2d01.pphosted.com with ESMTP id 2h96ws0qkt-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 10 Apr 2018 19:50:01 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Apr 2018 17:50:00 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 10 Apr 2018 17:49:57 -0600 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3ANnvQR10682696; Tue, 10 Apr 2018 16:49:57 -0700 Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0334478041; Tue, 10 Apr 2018 17:49:57 -0600 (MDT) Received: from ragesh3a (unknown [9.85.159.167]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP id 6F6DA78037; Tue, 10 Apr 2018 17:49:56 -0600 (MDT) Subject: [PATCH, rs6000] PR85321 improve documentation of -mcall and -mtraceback= From: Aaron Sawdey To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool , David Edelsohn Date: Tue, 10 Apr 2018 18:49:55 -0500 Mime-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18041023-0012-0000-0000-00001606B663 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008833; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000256; SDB=6.01016079; UDB=6.00518137; IPR=6.00795326; MB=3.00020511; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-10 23:49:59 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041023-0013-0000-0000-0000523C573F Message-Id: <1523404195.6245.18.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-04-10_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804100217 X-IsSubscribed: yes Another update to document -mcall- and -mtraceback= options. Cleanup to remove -mabi={no-,}spe from the RS/6000 and PowerPC section. And a trim to the help text for -mblock-compare-* and -mstring-compare-inline- limit so they are not excessively long. The complete description for those is now in invoke.texi. This is the last piece for 85321. Testing in progress on linux-ppc64le, ok for trunk if tests are ok? Thanks, Aaron 2018-04-10 Aaron Sawdey PR target/85321 * doc/invoke.texi (RS/6000 and PowerPC Options): Document options -mcall= and -mtraceback. Remove options -mabi=spe and -mabi=no-spe from PowerPC section. * config/rs6000/sysv4.opt (mcall): Improve help text. * config/rs6000/rs6000.opt (mblock-compare-inline-limit=): Trim help text that is too long. * config/rs6000/rs6000.opt (mblock-compare-inline-loop-limit=): Trim help text that is too long. * config/rs6000/rs6000.opt (mstring-compare-inline-limit=): Trim help text that is too long. Index: doc/invoke.texi =================================================================== --- doc/invoke.texi (revision 259302) +++ doc/invoke.texi (working copy) @@ -1076,7 +1076,10 @@ -mprioritize-restricted-insns=@var{priority} @gol -msched-costly-dep=@var{dependence_type} @gol -minsert-sched-nops=@var{scheme} @gol --mcall-sysv -mcall-netbsd @gol +-mcall-aixdesc -mcall-eabi -mcall-freebsd @gol +-mcall-linux -mcall-netbsd -mcall-openbsd @gol +-mcall-sysv -mcall-sysv-eabi -mcall-sysv-noeabi @gol +-mtraceback=@var{traceback_type} @gol -maix-struct-return -msvr4-struct-return @gol -mabi=@var{abi-type} -msecure-plt -mbss-plt @gol -mblock-move-inline-limit=@var{num} @gol @@ -23957,6 +23960,12 @@ On System V.4 and embedded PowerPC systems compile code for the OpenBSD operating system. +@item -mtraceback=@var{traceback_type} +@opindex mtraceback +Select the type of traceback table. Valid values for @var{traceback_type} +are @samp{full}, @samp{part}, +and @samp{no}. + @item -maix-struct-return @opindex maix-struct-return Return all structures in memory (as specified by the AIX ABI)@. @@ -23973,16 +23982,6 @@ @samp{no-spe}, @samp{ibmlongdouble}, @samp{ieeelongdouble}, @samp{elfv1}, @samp{elfv2}@. -@item -mabi=spe -@opindex mabi=spe -Extend the current ABI with SPE ABI extensions. This does not change -the default ABI, instead it adds the SPE ABI extensions to the current -ABI@. - -@item -mabi=no-spe -@opindex mabi=no-spe -Disable Book-E SPE ABI extensions for the current ABI@. - @item -mabi=ibmlongdouble @opindex mabi=ibmlongdouble Change the current ABI to use IBM extended-precision long double. Index: config/rs6000/sysv4.opt =================================================================== --- config/rs6000/sysv4.opt (revision 259301) +++ config/rs6000/sysv4.opt (working copy) @@ -21,7 +21,7 @@ mcall- Target RejectNegative Joined Var(rs6000_abi_name) -Select ABI calling convention. +-mcall=ABI Select ABI calling convention. msdata= Target RejectNegative Joined Var(rs6000_sdata_name) Index: config/rs6000/rs6000.opt =================================================================== --- config/rs6000/rs6000.opt (revision 259301) +++ config/rs6000/rs6000.opt (working copy) @@ -335,15 +335,15 @@ mblock-compare-inline-limit= Target Report Var(rs6000_block_compare_inline_limit) Init(31) RejectNegative Joined UInteger Save -Specify the maximum number of bytes to compare inline with non-looping code. If this is set to 0, all inline expansion (non-loop and loop) of memcmp is disabled. +Specify the maximum number of bytes to compare inline with non-looping code. mblock-compare-inline-loop-limit= Target Report Var(rs6000_block_compare_inline_loop_limit) Init(-1) RejectNegative Joined UInteger Save -Specify the maximum number of bytes to compare inline with loop code generation. If the length is not known at compile time, memcmp will be called after this many bytes are compared. By default, a length will be picked depending on the tuning target. +Specify the maximum number of bytes to compare inline with loop code generation. mstring-compare-inline-limit= Target Report Var(rs6000_string_compare_inline_limit) Init(8) RejectNegative Joined UInteger Save -Specify the maximum number pairs of load instructions that should be generated inline for the compare. If the number needed exceeds the limit, a call to strncmp will be generated instead. +Specify the maximum number pairs of load instructions that should be generated for inline compares. misel Target Report Mask(ISEL) Var(rs6000_isa_flags)