From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp2130.oracle.com (userp2130.oracle.com [156.151.31.86]) by sourceware.org (Postfix) with ESMTPS id DB0BF385DC06 for ; Fri, 3 Apr 2020 19:55:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DB0BF385DC06 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 033Jri55017910; Fri, 3 Apr 2020 19:55:55 GMT Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 303cevjxsc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Apr 2020 19:55:55 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 033JqFlP127049; Fri, 3 Apr 2020 19:55:55 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 302ga5pdf2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Apr 2020 19:55:55 +0000 Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 033Jtsm1030822; Fri, 3 Apr 2020 19:55:54 GMT Received: from dhcp-10-154-138-52.vpn.oracle.com (/10.154.138.52) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 03 Apr 2020 12:55:54 -0700 From: Qing Zhao Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: [PATCH][gcc][PR94230]provide an option to change the size limitation for -Wmisleading-indent Message-Id: <616B2BE0-0C66-4736-90E5-ECAD1FA4F8AD@ORACLE.COM> Date: Fri, 3 Apr 2020 14:55:53 -0500 Cc: gcc-patches@gcc.gnu.org To: dmalcolm@redhat.com, jakub@redhat.com X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9580 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 mlxlogscore=711 bulkscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004030159 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9580 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 adultscore=0 clxscore=1011 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 impostorscore=0 mlxlogscore=772 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004030159 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 19:55:58 -0000 Hi, David and Jakub, Per the discussion we had for PR94230: provide an option to change the = size limitation for -Wmisleading-indent https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94230 = I come up with the following simple patch per David=E2=80=99s = suggestion: Provide a new first class option -flocation-ranges to control = enabling/disablng range tracking when recording source locations. The default value for this option is enabling the range tracking. When specify -fno-location-ranges, disable the range tracking to save = space for column tracking.=20 I have tested this GCC to build our huge application by adding = -fno-location-ranges, the whole build completed without any issue. and -Wmisleading-indent also emitted several helpful warning message during = building. I am running bootstrap right now. Could you please take a look at the attached patch? thanks. Qing