From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 38F7F385AC20 for ; Thu, 29 Jul 2021 07:17:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 38F7F385AC20 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16T77GA3043391 for ; Thu, 29 Jul 2021 03:17:05 -0400 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 3a3fb0vp3g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 29 Jul 2021 03:17:05 -0400 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16T74RGu025555 for ; Thu, 29 Jul 2021 07:17:04 GMT Received: from b03cxnp07027.gho.boulder.ibm.com (b03cxnp07027.gho.boulder.ibm.com [9.17.130.14]) by ppma02dal.us.ibm.com with ESMTP id 3a23650w85-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 29 Jul 2021 07:17:04 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp07027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16T7H2H723855536 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jul 2021 07:17:03 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 391926A04F; Thu, 29 Jul 2021 07:17:02 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F33B6A074; Thu, 29 Jul 2021 07:17:02 +0000 (GMT) Received: from mww0272.dal12m.mail.ibm.com (unknown [9.208.64.29]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTPS; Thu, 29 Jul 2021 07:17:02 +0000 (GMT) MIME-Version: 1.0 In-Reply-To: <7a13098d7023cf184c25dfaacd829effb07f35c8.camel@vnet.ibm.com> Subject: Re: [PATCH, rs6000] Add ppc64_linux_gcc_target_options method To: "will schmidt" Cc: "Carl E. Love" , "gdb-patches@sourceware.org" , "rogerio" Message-ID: From: "Ulrich Weigand" Date: Thu, 29 Jul 2021 09:16:59 +0200 References: <7a13098d7023cf184c25dfaacd829effb07f35c8.camel@vnet.ibm.com> X-KeepSent: 43B2612B:09642948-C1258721:0027DDD6; name=$KeepSent; type=4 X-Mailer: IBM Notes Release 9.0.1FP7 Octobe4, 2013 X-Disclaimed: 54595 X-MIMETrack: CD-MIME by Router on MWW0272/03/M/IBM at 07/29/2021 07:17:02, CD-MIME complete at 07/29/2021 07:17:02,Itemize by Router on MWW0272/03/M/IBM at 07/29/2021 07:17:02 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: EH6R3JnvytmKqamSl1AKaBq0IPHTqZzq X-Proofpoint-GUID: EH6R3JnvytmKqamSl1AKaBq0IPHTqZzq X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-29_06:2021-07-27, 2021-07-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 adultscore=0 priorityscore=1501 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2107290048 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2021 07:17:08 -0000 "will schmidt" wrote on 27.07.2021 17:35:42: > +/* Implement the linux=5Fgcc=5Ftarget=5Foptions method. */ > +static std::string > +ppc64=5Flinux=5Fgcc=5Ftarget=5Foptions (struct gdbarch *gdbarch) > +{ > + return "-mcmodel=3Dmedium"; > +} The default version of this hook passes -m32 if the inferior is a 32-bit process. Don't we still need this on PowerPC (at least on big-endian)? Also, if -mcmodel=3Dmedium is the default, we don't actually have to explicitly specify it. Just omitting the -mcmodel=3Dlarge should be sufficient. Bye, Ulrich