From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23486 invoked by alias); 28 Jul 2004 23:36:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 23478 invoked from network); 28 Jul 2004 23:36:29 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.5) by sourceware.org with SMTP; 28 Jul 2004 23:36:29 -0000 Received: (qmail 29250 invoked from network); 28 Jul 2004 23:36:28 -0000 Received: from taltos.codesourcery.com (zack@66.92.218.83) by mail.codesourcery.com with DES-CBC3-SHA encrypted SMTP; 28 Jul 2004 23:36:28 -0000 Received: by taltos.codesourcery.com (sSMTP sendmail emulation); Wed, 28 Jul 2004 16:36:27 -0700 To: gcc-patches@gcc.gnu.org Subject: Move enum tls_model to coretypes.h From: Zack Weinberg Date: Thu, 29 Jul 2004 15:11:00 -0000 Message-ID: <874qnrwvpg.fsf@codesourcery.com> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-07/txt/msg02604.txt.bz2 SYMBOL_REF_TLS_MODEL (in rtl.h) returns a value of type enum tls_model, which is defined in tree.h. So any file that uses SYMBOL_REF_TLS_MODEL needs to include tree.h even if it has no other reason to do so. This doesn't come up very often (never in CVS; I found it while working on something else), but enum tls_model is small and unlikely to change often, so a reasonable fix is to move it to coretypes.h. zw * tree.h (enum tls_model): Move ... * coretypes.h: ... here. =================================================================== Index: coretypes.h --- coretypes.h 28 Jan 2003 23:26:22 -0000 1.4 +++ coretypes.h 28 Jul 2004 23:35:10 -0000 @@ -50,6 +50,16 @@ typedef union tree_node *tree; struct cpp_reader; +/* The thread-local storage model associated with a given VAR_DECL + or SYMBOL_REF. This isn't used much, but both trees and RTL refer + to it, so it's here. */ +enum tls_model { + TLS_MODEL_GLOBAL_DYNAMIC = 1, + TLS_MODEL_LOCAL_DYNAMIC, + TLS_MODEL_INITIAL_EXEC, + TLS_MODEL_LOCAL_EXEC +}; + #else struct _dont_use_rtx_here_; =================================================================== Index: tree.h --- tree.h 26 Jul 2004 16:28:51 -0000 1.576 +++ tree.h 28 Jul 2004 23:35:10 -0000 @@ -2571,13 +2571,6 @@ extern GTY(()) tree integer_types[itk_no /* Set to the default thread-local storage (tls) model to use. */ -enum tls_model { - TLS_MODEL_GLOBAL_DYNAMIC = 1, - TLS_MODEL_LOCAL_DYNAMIC, - TLS_MODEL_INITIAL_EXEC, - TLS_MODEL_LOCAL_EXEC -}; - extern enum tls_model flag_tls_default;