This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ PATCH: remove c-common decls from cp-tree.h


Since these are declared in c-common.h, having them here is wrong.  There
ought to be a warning for this sort of redundancy.

2001-01-02  Jason Merrill  <jason@redhat.com>

	* cp-tree.h: Lose c-common.c decls.

*** cp-tree.h.~1~	Tue Jan  2 15:22:32 2001
--- cp-tree.h	Tue Jan  2 19:25:09 2001
*************** extern int warn_multichar;
*** 3190,3229 ****
     flag_guiding_decls in do_friend. */
  extern int warn_nontemplate_friend;
  
- /* in c-common.c */
- extern void declare_function_name               PARAMS ((void));
- extern void decl_attributes                     PARAMS ((tree, tree, tree));
- extern void init_function_format_info		PARAMS ((void));
- extern void record_function_format		PARAMS ((tree, tree, int, int, int));
- extern void check_function_format		PARAMS ((int *, tree, tree, tree));
- /* Print an error message for invalid operands to arith operation CODE.
-    NOP_EXPR is used as a special case (see truthvalue_conversion).  */
- extern void binary_op_error                     PARAMS ((enum tree_code));
- extern tree canonical_type_variant              PARAMS ((tree));
- /* Validate the expression after `case' and apply default promotions.  */
- extern tree check_case_value                    PARAMS ((tree));
- /* Concatenate a list of STRING_CST nodes into one STRING_CST.  */
- extern tree combine_strings                     PARAMS ((tree));
- extern void constant_expression_warning         PARAMS ((tree));
- extern tree convert_and_check			PARAMS ((tree, tree));
- extern void overflow_warning			PARAMS ((tree));
- extern void unsigned_conversion_warning		PARAMS ((tree, tree));
- extern void c_apply_type_quals_to_decl          PARAMS ((int, tree));
- 
- /* Read the rest of the current #-directive line.  */
- extern char *get_directive_line                 PARAMS ((void));
- #define GET_DIRECTIVE_LINE() get_directive_line ()
- 
- /* Subroutine of build_binary_op, used for comparison operations.
-    See if the operands have both been converted from subword integer types
-    and, if so, perhaps change them both back to their original type.  */
- extern tree shorten_compare                     PARAMS ((tree *, tree *, tree *, enum tree_code *));
- /* Prepare expr to be an argument of a TRUTH_NOT_EXPR,
-    or validate its data type for an `if' or `while' statement or ?..: exp.  */
- extern tree truthvalue_conversion               PARAMS ((tree));
- extern tree type_for_mode                       PARAMS ((enum machine_mode, int));
- extern tree type_for_size                       PARAMS ((unsigned, int));
- 
  /* in decl{2}.c */
  /* A node that is a list (length 1) of error_mark_nodes.  */
  extern tree error_mark_list;
--- 3190,3195 ----
*************** extern tree frob_opname                 
*** 4391,4396 ****
--- 4357,4363 ----
  /* in tree.c */
  extern void init_tree			        PARAMS ((void));
  extern int pod_type_p				PARAMS ((tree));
+ extern tree canonical_type_variant              PARAMS ((tree));
  extern void unshare_base_binfos			PARAMS ((tree));
  extern int member_p				PARAMS ((tree));
  extern cp_lvalue_kind real_lvalue_p		PARAMS ((tree));
*************** extern linkage_kind decl_linkage        
*** 4470,4475 ****
--- 4437,4443 ----
  
  /* in typeck.c */
  extern int string_conv_p			PARAMS ((tree, tree, int));
+ extern tree cp_truthvalue_conversion		PARAMS ((tree));
  extern tree condition_conversion		PARAMS ((tree));
  extern tree target_type				PARAMS ((tree));
  extern tree require_complete_type		PARAMS ((tree));

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]