OSDN Git Service

(arm_gen_constant, case IOR,XOR): Don't invert a constant if loading
[pf3gnuchains/gcc-fork.git] / gcc / c-tree.h
index 1a495ec..956f9b8 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for C parsing and type checking.
-   Copyright (C) 1987, 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1987, 1993, 1994, 1995 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -15,7 +15,8 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
 
 #ifndef _C_TREE_H
 #define _C_TREE_H
@@ -39,27 +40,27 @@ struct lang_identifier
 /* This represents the value which the identifier has in the
    file-scope namespace.  */
 #define IDENTIFIER_GLOBAL_VALUE(NODE)  \
-  (((struct lang_identifier *)(NODE))->global_value)
+  (((struct lang_identifier *) (NODE))->global_value)
 /* This represents the value which the identifier has in the current
    scope.  */
 #define IDENTIFIER_LOCAL_VALUE(NODE)   \
-  (((struct lang_identifier *)(NODE))->local_value)
+  (((struct lang_identifier *) (NODE))->local_value)
 /* This represents the value which the identifier has as a label in
    the current label scope.  */
 #define IDENTIFIER_LABEL_VALUE(NODE)   \
-  (((struct lang_identifier *)(NODE))->label_value)
+  (((struct lang_identifier *) (NODE))->label_value)
 /* This records the extern decl of this identifier, if it has had one
    at any point in this compilation.  */
 #define IDENTIFIER_LIMBO_VALUE(NODE)   \
-  (((struct lang_identifier *)(NODE))->limbo_value)
+  (((struct lang_identifier *) (NODE))->limbo_value)
 /* This records the implicit function decl of this identifier, if it
    has had one at any point in this compilation.  */
 #define IDENTIFIER_IMPLICIT_DECL(NODE) \
-  (((struct lang_identifier *)(NODE))->implicit_decl)
+  (((struct lang_identifier *) (NODE))->implicit_decl)
 /* This is the last function in which we printed an "undefined variable"
    message for this identifier.  Value is a FUNCTION_DECL or null.  */
 #define IDENTIFIER_ERROR_LOCUS(NODE)   \
-  (((struct lang_identifier *)(NODE))->error_locus)
+  (((struct lang_identifier *) (NODE))->error_locus)
 
 /* In identifiers, C uses the following fields in a special way:
    TREE_PUBLIC        to record that there was a previous local extern decl.
@@ -108,7 +109,7 @@ struct lang_type
 
 /* Store a value in that field.  */
 #define C_SET_EXP_ORIGINAL_CODE(exp, code) \
-  (TREE_COMPLEXITY (exp) = (int)(code))
+  (TREE_COMPLEXITY (exp) = (int) (code))
 
 /* Record whether a typedef for type `int' was actually `signed int'.  */
 #define C_TYPEDEF_EXPLICITLY_SIGNED(exp) DECL_LANG_FLAG_1 ((exp))
@@ -123,6 +124,9 @@ struct lang_type
    without prototypes.  */
 #define TYPE_ACTUAL_ARG_TYPES(NODE) TYPE_NONCOPIED_PARTS (NODE)
 
+/* In a FIELD_DECL, nonzero if the decl was originally a bitfield.  */
+#define DECL_C_BIT_FIELD(NODE) DECL_LANG_FLAG_4 (NODE)
+
 /* Nonzero if the type T promotes to itself.
    ANSI C states explicitly the list of types that promote;
    in particular, short promotes to int even if they have the same width.  */
@@ -156,7 +160,7 @@ extern void gen_aux_info_record                 PROTO((tree, int, int, int));
 
 /* in c-common.c */
 extern void declare_function_name               PROTO((void));
-extern void decl_attributes                     PROTO((tree, tree));
+extern void decl_attributes                     PROTO((tree, tree, tree));
 extern void init_function_format_info          PROTO((void));
 extern void record_function_format             PROTO((tree, tree, int, int, int));
 extern void check_function_format              PROTO((tree, tree, tree));
@@ -238,6 +242,9 @@ extern tree void_ftype_ptr_ptr_int;
 extern tree void_type_node;
 extern tree wchar_array_type_node;
 extern tree wchar_type_node;
+extern tree boolean_type_node;
+extern tree boolean_true_node;
+extern tree boolean_false_node;
 
 extern tree build_enumerator                    PROTO((tree, tree));
 /* Declare a predefined function.  Return the declaration.  */
@@ -254,9 +261,10 @@ extern void declare_parm_level                  PROTO((int));
 extern tree define_label                        PROTO((char *, int, tree));
 extern void delete_block                        PROTO((tree));
 extern void finish_decl                         PROTO((tree, tree, tree));
-extern tree finish_enum                         PROTO((tree, tree));
+extern void finish_decl_top_level               PROTO((tree, tree, tree));
+extern tree finish_enum                         PROTO((tree, tree, tree));
 extern void finish_function                     PROTO((int));
-extern tree finish_struct                       PROTO((tree, tree));
+extern tree finish_struct                       PROTO((tree, tree, tree));
 extern tree get_parm_info                       PROTO((int));
 extern tree getdecls                            PROTO((void));
 extern tree gettags                             PROTO((void));
@@ -273,6 +281,7 @@ extern int  kept_level_p                        PROTO((void));
 extern tree lookup_label                        PROTO((tree));
 extern tree lookup_name                         PROTO((tree));
 extern tree lookup_name_current_level          PROTO((tree));
+extern tree lookup_name_current_level_global   PROTO((tree));
 extern tree maybe_build_cleanup                 PROTO((tree));
 extern void parmlist_tags_warning               PROTO((void));
 extern void pending_xref_error                  PROTO((void));
@@ -298,8 +307,10 @@ extern void shadow_record_fields                PROTO((tree));
 extern void shadow_tag                          PROTO((tree));
 extern void shadow_tag_warned                   PROTO((tree, int));
 extern tree start_enum                          PROTO((tree));
-extern int  start_function                      PROTO((tree, tree, int));
-extern tree start_decl                          PROTO((tree, tree, int));
+extern int  start_function                      PROTO((tree, tree, tree,
+                                                      tree, int));
+extern tree start_decl                          PROTO((tree, tree, int,
+                                                      tree, tree));
 extern tree start_struct                        PROTO((enum tree_code, tree));
 extern void store_parm_decls                    PROTO((void));
 extern tree xref_tag                            PROTO((enum tree_code, tree));
@@ -374,6 +385,11 @@ extern int current_function_returns_value;
 
 extern int current_function_returns_null;
 
+/* Nonzero means the expression being parsed will never be evaluated.
+   This is a count, since unevaluated expressions can nest.  */
+
+extern int skip_evaluation;
+
 /* Nonzero means `$' can be in an identifier.  */
 
 extern int dollars_in_ident;
@@ -428,6 +444,12 @@ extern int warn_nested_externs;
 
 extern int warn_cast_qual;
 
+/* Nonzero means warn when casting a function call to a type that does
+   not match the return type (e.g. (float)sqrt() or (anything*)malloc()
+   when there is no previous declaration of sqrt or malloc.  */
+
+extern int warn_bad_function_cast;
+
 /* Warn about traditional constructs whose meanings changed in ANSI C.  */
 
 extern int warn_traditional;
@@ -460,6 +482,10 @@ extern int warn_parentheses;
 
 extern int warn_missing_braces;
 
+/* Warn about comparison of signed and unsigned values.  */
+
+extern int warn_sign_compare;
+
 /* Nonzero means this is a function to call to perform comptypes
    on two record types.  */