From patchwork Thu Oct 7 20:05:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 67101 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 205AAB70AB for ; Fri, 8 Oct 2010 07:06:02 +1100 (EST) Received: (qmail 19218 invoked by alias); 7 Oct 2010 20:05:59 -0000 Received: (qmail 19204 invoked by uid 22791); 7 Oct 2010 20:05:57 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Oct 2010 20:05:53 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o97K5pKJ017269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 7 Oct 2010 16:05:51 -0400 Received: from anchor.twiddle.home (ovpn-113-27.phx2.redhat.com [10.3.113.27]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o97K5pos013081 for ; Thu, 7 Oct 2010 16:05:51 -0400 Message-ID: <4CAE281F.1040800@redhat.com> Date: Thu, 07 Oct 2010 13:05:51 -0700 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4 MIME-Version: 1.0 To: GCC Patches Subject: Move unwind_info_type to coretypes.h X-IsSubscribed: yes 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 Not all files that include "tm_p.h" also include "target.h". Moving this enum allows prototypes involving it to be shared between i386.c and winnt.c via i386-protos.h. Sanity bootstrapped on x86_64-linux. r~ * target.h (enum unwind_info_type): Move ... * coretypes.h: ... here. diff --git a/gcc/coretypes.h b/gcc/coretypes.h index 419142a..3c63684 100644 --- a/gcc/coretypes.h +++ b/gcc/coretypes.h @@ -111,6 +111,16 @@ enum tls_model { TLS_MODEL_LOCAL_EXEC }; +/* Types of unwind/exception handling info that can be generated. */ + +enum unwind_info_type +{ + UI_NONE, + UI_SJLJ, + UI_DWARF2, + UI_TARGET +}; + struct edge_def; typedef struct edge_def *edge; typedef const struct edge_def *const_edge; diff --git a/gcc/target.h b/gcc/target.h index f160e97..99dd1ee 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -128,16 +128,6 @@ enum vect_cost_for_stmt vec_perm }; -/* Types of unwind/exception handling info that can be generated. */ - -enum unwind_info_type -{ - UI_NONE, - UI_SJLJ, - UI_DWARF2, - UI_TARGET -}; - /* The target structure. This holds all the backend hooks. */ #define DEFHOOKPOD(NAME, DOC, TYPE, INIT) TYPE NAME; #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (* NAME) PARAMS;