From patchwork Fri Nov 5 22:25:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jay K X-Patchwork-Id: 70304 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 003371007D2 for ; Sat, 6 Nov 2010 09:25:27 +1100 (EST) Received: (qmail 4290 invoked by alias); 5 Nov 2010 22:25:25 -0000 Received: (qmail 4271 invoked by uid 22791); 5 Nov 2010 22:25:23 -0000 X-SWARE-Spam-Status: No, hits=2.3 required=5.0 tests=AWL, BAYES_50, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SUBJ_ALL_CAPS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from col0-omc3-s14.col0.hotmail.com (HELO col0-omc3-s14.col0.hotmail.com) (65.55.34.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Nov 2010 22:25:16 +0000 Received: from COL101-W43 ([65.55.34.136]) by col0-omc3-s14.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 5 Nov 2010 15:25:14 -0700 Message-ID: From: Jay K To: gcc-patches Subject: ATTRIBUTE_UNUSED => ARG_UNUSED Date: Fri, 5 Nov 2010 22:25:14 +0000 MIME-Version: 1.0 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 ATTRIBUTE_UNUSED => ARG_UNUSED In 4.5.1, configure -enable-build-with-cxx, with older g++: +         void *ARG_UNUSED(data_p))  {    /* Body of _cpp_free_definition inlined here for speed.       Macros and assertions no longer have anything to free.  */ j and so on. for a in  *.h *.c; do perl -pi.bak -e "s/([A-Za-z0-9_]+) ATTRIBUTE_UNUSED/ARG_UNUSED(\1)/" $a; done  - Jay diff -u -r1.1.1.1 directives.c --- directives.c    28 May 2010 05:49:44 -0000    1.1.1.1 +++ directives.c    5 Nov 2010 21:44:04 -0000 @@ -1,3 +1,5 @@ @@ -621,8 +623,8 @@  /* Undefine a single macro/assertion/whatever.  */    static int -undefine_macros (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *h, -         void *data_p ATTRIBUTE_UNUSED) +undefine_macros (cpp_reader *ARG_UNUSED(pfile), cpp_hashnode *h,