From patchwork Tue Sep 7 22:08:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 64076 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 F085FB6F07 for ; Wed, 8 Sep 2010 08:08:21 +1000 (EST) Received: (qmail 6707 invoked by alias); 7 Sep 2010 22:08:19 -0000 Received: (qmail 6690 invoked by uid 22791); 7 Sep 2010 22:08:19 -0000 X-SWARE-Spam-Status: No, hits=-5.6 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; Tue, 07 Sep 2010 22:08:15 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o87M8DMG000816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 7 Sep 2010 18:08:13 -0400 Received: from anchor.twiddle.home (ovpn-113-40.phx2.redhat.com [10.3.113.40]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o87M8DEa025666 for ; Tue, 7 Sep 2010 18:08:13 -0400 Message-ID: <4C86B7CC.9080300@redhat.com> Date: Tue, 07 Sep 2010 15:08:12 -0700 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Thunderbird/3.1.2 MIME-Version: 1.0 To: GCC Patches Subject: [PATCH, SEH] Use tm_p.h in tree-vect-data-refs.c. 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 This file uses MAX_STACK_ALIGNMENT whose definition in cygming.h will shortly depend on the ABI in use. We need to include tm_p.h to make sure that the supporting declarations are seen. Tested on x86_64-{linux,mingw32}, i686-cygwin. r~ * tree-vect-data-refs.c: Include tm_p.h. * Makefile.in (tree-vect-data-refs.o): Update deps. * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi): Move delarations outside #ifdef RTX_CODE. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index acffb60..736963c 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2753,7 +2753,8 @@ tree-vect-stmts.o: tree-vect-stmts.c $(CONFIG_H) $(SYSTEM_H) \ tree-vect-data-refs.o: tree-vect-data-refs.c $(CONFIG_H) $(SYSTEM_H) \ coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \ $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) \ - $(EXPR_H) $(OPTABS_H) $(SCEV_H) $(TREE_VECTORIZER_H) $(TOPLEV_H) $(DIAGNOSTIC_CORE_H) \ + $(EXPR_H) $(OPTABS_H) $(SCEV_H) $(TREE_VECTORIZER_H) $(TOPLEV_H) \ + $(DIAGNOSTIC_CORE_H) $(TM_P_H) \ tree-pretty-print.h gimple-pretty-print.h tree-vectorizer.o: tree-vectorizer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(GGC_H) $(TREE_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) \ diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index de6b961..a7b5948 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -35,6 +35,9 @@ extern void ix86_expand_epilogue (int); extern void ix86_output_addr_vec_elt (FILE *, int); extern void ix86_output_addr_diff_elt (FILE *, int, int); +extern enum calling_abi ix86_cfun_abi (void); +extern enum calling_abi ix86_function_type_abi (const_tree); + #ifdef RTX_CODE extern int standard_80387_constant_p (rtx); extern const char *standard_80387_constant_opcode (rtx); @@ -142,8 +145,6 @@ extern int ix86_function_arg_boundary (enum machine_mode, const_tree); extern bool ix86_solaris_return_in_memory (const_tree, const_tree); extern rtx ix86_force_to_memory (enum machine_mode, rtx); extern void ix86_free_from_memory (enum machine_mode); -extern enum calling_abi ix86_cfun_abi (void); -extern enum calling_abi ix86_function_type_abi (const_tree); extern void ix86_call_abi_override (const_tree); extern int ix86_reg_parm_stack_space (const_tree); diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 7944d8b..ff4f0db 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "ggc.h" #include "tree.h" +#include "tm_p.h" #include "target.h" #include "basic-block.h" #include "tree-pretty-print.h"