From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29526 invoked by alias); 14 Jun 2011 16:53:24 -0000 Received: (qmail 29518 invoked by uid 22791); 14 Jun 2011 16:53:22 -0000 X-SWARE-Spam-Status: No, hits=-2.5 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.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Jun 2011 16:53:08 +0000 Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p5EGr6mt024834 for ; Tue, 14 Jun 2011 09:53:06 -0700 Received: from yxd5 (yxd5.prod.google.com [10.190.1.197]) by hpaq11.eem.corp.google.com with ESMTP id p5EGqVR6006823 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 14 Jun 2011 09:53:05 -0700 Received: by yxd5 with SMTP id 5so3756058yxd.7 for ; Tue, 14 Jun 2011 09:53:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.95.16 with SMTP id x16mr8545658ybl.46.1308070384447; Tue, 14 Jun 2011 09:53:04 -0700 (PDT) Received: by 10.151.39.12 with HTTP; Tue, 14 Jun 2011 09:53:04 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Jun 2011 17:29:00 -0000 Message-ID: Subject: Re: Create common hooks structure shared between driver and cc1 From: Ian Lance Taylor To: "Joseph S. Myers" Cc: gcc-patches Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01082.txt.bz2 On Wed, May 25, 2011 at 12:21 PM, Joseph S. Myers wrote: > Here is a revised version of my patch > to create > the common hooks structure. =A0Tested in the same way as the original > patch. =A0OK to commit? > > 2011-05-25 =A0Joseph Myers =A0 > > =A0 =A0 =A0 =A0* common/common-target-def.h, common/common-target.def, > =A0 =A0 =A0 =A0common/common-target.h, common/config/default-common.c, > =A0 =A0 =A0 =A0common/config/pa/pa-common.c: New files. > =A0 =A0 =A0 =A0* Makefile.in (common_out_file, common_out_object_file, > =A0 =A0 =A0 =A0COMMON_TARGET_H, COMMON_TARGET_DEF_H): New. > =A0 =A0 =A0 =A0(OBJS-libcommon-target): Include $(common_out_object_file). > =A0 =A0 =A0 =A0(prefix.o): Update dependencies. > =A0 =A0 =A0 =A0($(common_out_object_file), common/common-target-hooks-def= .h, > =A0 =A0 =A0 =A0s-common-target-hooks-def-h): New. > =A0 =A0 =A0 =A0(s-tm-texi): Also check timestamp on common-target.def. > =A0 =A0 =A0 =A0(build/genhooks.o): Update dependencies. > =A0 =A0 =A0 =A0* config.gcc (common_out_file, target_has_targetm_common):= Define. > =A0 =A0 =A0 =A0* config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with > =A0 =A0 =A0 =A0TARGET_ALWAYS_STRIP_DOTDOT. > =A0 =A0 =A0 =A0* configure.ac (common_out_object_file): Define. > =A0 =A0 =A0 =A0(common_out_file, common_out_object_file): Substitute. > =A0 =A0 =A0 =A0(common): Create directory. > =A0 =A0 =A0 =A0* configure: Regenerate. > =A0 =A0 =A0 =A0* doc/tm.texi.in (targetm_common): Document. > =A0 =A0 =A0 =A0(TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry. > =A0 =A0 =A0 =A0* doc/tm.texi: Regenerate. > =A0 =A0 =A0 =A0* genhooks.c (hook_array): Also include common/common-targ= et.def. > =A0 =A0 =A0 =A0* prefix.c (tm.h): Don't include. > =A0 =A0 =A0 =A0(common/common-target.h): Include. > =A0 =A0 =A0 =A0(ALWAYS_STRIP_DOTDOT): Don't define. > =A0 =A0 =A0 =A0(update_path): Use targetm_common.always_strip_dotdot inst= ead of > =A0 =A0 =A0 =A0ALWAYS_STRIP_DOTDOT. > =A0 =A0 =A0 =A0* system.h (ALWAYS_STRIP_DOTDOT): Poison. This is OK. Thanks. Ian