From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 2AB253858C20 for ; Wed, 30 Nov 2022 08:33:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2AB253858C20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AU83ML3010308; Wed, 30 Nov 2022 08:33:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=kAG/4ssMt96XcyOovbmkVLKZKs1qXpVokCqgbz0fduc=; b=Sg7gJzM+PqQyUDaJo/KsCribpkhOKacCcNK1SWK5pyRIk29tL/tdKkPBWTUCyj+uUZQe sFnh/QH2OfmAgJLV2RV61gMnZ1mtTCjGM6X8NcCs7zDnuyJectc1OUcXc6qNrYAR1fRF 2RDJnrvaIFSMEf138HkJnyqgP6N2j4AMop6gkZLwA7lpB5DLjTzIrCH3azgboqJbTgUt xqIaatEQX/TBOTnsvvyuQleh9gd3nch745K96ya+C3bxJdN//YtDitdkkb55x+sDgw32 hdWJhCuE6VH+9Yl/8tQrEpIPHyM92KU8Gc397qiz4nh3oJ5dzYm/dZCI3Kdjrvi19GvZ bg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3m63b0gnbf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Nov 2022 08:33:25 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2AU8UxJe019767; Wed, 30 Nov 2022 08:33:24 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3m63b0gnaw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Nov 2022 08:33:24 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2AU8LG6B003091; Wed, 30 Nov 2022 08:33:23 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma06fra.de.ibm.com with ESMTP id 3m3a2hux0p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Nov 2022 08:33:22 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2AU8XKEd33292862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Nov 2022 08:33:20 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 89378AE045; Wed, 30 Nov 2022 08:33:20 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A3D4AE051; Wed, 30 Nov 2022 08:33:18 +0000 (GMT) Received: from [9.197.238.163] (unknown [9.197.238.163]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 30 Nov 2022 08:33:18 +0000 (GMT) Message-ID: Date: Wed, 30 Nov 2022 16:33:16 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: PING^1 [PATCH v2] rs6000: Rework option -mpowerpc64 handling [PR106680] Content-Language: en-US To: GCC Patches Cc: Peter Bergner , Iain Sandoe , David Edelsohn , Segher Boessenkool References: <63afd344-38fa-7a8e-4958-8256c2a9bca7@linux.ibm.com> From: "Kewen.Lin" In-Reply-To: <63afd344-38fa-7a8e-4958-8256c2a9bca7@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: OKUegW1Bvk01JDAzWwpLf_voidauZPoj X-Proofpoint-ORIG-GUID: fpT5l42bQ7KPiZh7LHSvw86VJ8Sxp9rx Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-30_04,2022-11-29_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1011 priorityscore=1501 mlxlogscore=999 spamscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 impostorscore=0 mlxscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211300062 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603350.html BR, Kewen on 2022/10/12 16:12, Kewen.Lin via Gcc-patches wrote: > Hi, > > PR106680 shows that -m32 -mpowerpc64 is different from > -mpowerpc64 -m32, this is determined by the way how we > handle option powerpc64 in rs6000_handle_option. > > Segher pointed out this difference should be taken as > a bug and we should ensure that option powerpc64 is > independent of -m32/-m64. So this patch removes the > handlings in rs6000_handle_option and add some necessary > supports in rs6000_option_override_internal instead. > > With this patch, if users specify -m{no-,}powerpc64, the > specified value is honoured, otherwise, for 64bit it > always enables OPTION_MASK_POWERPC64; while for 32bit > and TARGET_POWERPC64 and OS_MISSING_POWERPC64, it disables > OPTION_MASK_POWERPC64. > > btw, following Segher's suggestion, I did some tries to warn > when OPTION_MASK_POWERPC64 is set for OS_MISSING_POWERPC64. > If warn for the case that powerpc64 is specified explicitly, > there are some TCs using -m32 -mpowerpc64 on ppc64-linux, > they need some updates, meanwhile the artificial run > with "--target_board=unix'{-m32/-mpowerpc64}'" will have > noisy warnings on ppc64-linux. If warn for the case that > it's specified implicitly, they can just be initialized by > TARGET_DEFAULT (like -m32 on ppc64-linux) or set from the > given cpu mask, we have to special case them and not to warn. > As Segher's latest comment, I decide not to warn them and > keep it consistent with before. > > Bootstrapped and regress-tested on: > - powerpc64-linux-gnu P7 and P8 {-m64,-m32} > - powerpc64le-linux-gnu P9 and P10 > - powerpc-ibm-aix7.2.0.0 {-maix64,-maix32} > > Hi Iain, could you help to test this new patch on darwin > again? Thanks in advance! > > Is it ok for trunk if darwin testing goes well? >