From patchwork Fri Jun 18 16:47:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Espindola X-Patchwork-Id: 56208 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 0A9661007DE for ; Sat, 19 Jun 2010 02:47:54 +1000 (EST) Received: (qmail 10189 invoked by alias); 18 Jun 2010 16:47:51 -0000 Received: (qmail 10168 invoked by uid 22791); 18 Jun 2010 16:47:48 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Jun 2010 16:47:44 +0000 Received: from hpaq3.eem.corp.google.com (hpaq3.eem.corp.google.com [172.25.149.3]) by smtp-out.google.com with ESMTP id o5IGlfil005242 for ; Fri, 18 Jun 2010 09:47:41 -0700 Received: from iwn41 (iwn41.prod.google.com [10.241.68.105]) by hpaq3.eem.corp.google.com with ESMTP id o5IGletS005997 for ; Fri, 18 Jun 2010 09:47:40 -0700 Received: by iwn41 with SMTP id 41so773997iwn.40 for ; Fri, 18 Jun 2010 09:47:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.119.102 with SMTP id y38mr1314160ibq.135.1276879659910; Fri, 18 Jun 2010 09:47:39 -0700 (PDT) Received: by 10.231.67.146 with HTTP; Fri, 18 Jun 2010 09:47:39 -0700 (PDT) Date: Fri, 18 Jun 2010 12:47:39 -0400 Message-ID: Subject: [patch][linker plugin-api] Add const to the add_input_file and add_input_library callbacks From: Rafael Espindola To: GCC Patches X-System-Of-Record: true 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 I committed the attached patch. It was approved by Ian in the binutils mailing list. 2010-06-18 Rafael Espindola * plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library): Make argument const. Cheers, diff --git a/include/ChangeLog b/include/ChangeLog index a879adb..6b8053f 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2010-06-18 Rafael Espindola + + * plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library): + Make argument const. + 2010-06-08 Tristan Gingold * dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and diff --git a/include/plugin-api.h b/include/plugin-api.h index 5821785..55cfe25 100644 --- a/include/plugin-api.h +++ b/include/plugin-api.h @@ -220,13 +220,13 @@ enum ld_plugin_status typedef enum ld_plugin_status -(*ld_plugin_add_input_file) (char *pathname); +(*ld_plugin_add_input_file) (const char *pathname); /* The linker's interface for adding a library that should be searched. */ typedef enum ld_plugin_status -(*ld_plugin_add_input_library) (char *libname); +(*ld_plugin_add_input_library) (const char *libname); /* The linker's interface for issuing a warning or error message. */