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]
Other format: [Raw text]

treelang fixes/accommodations


The build broke due to changes elsewhere. This fixes it. I will upload this
shortly. 

Bootstrapped on i686-pc-linux-gnu (C, treelang, COBOL).

+ 2002-08-16  Tim Josling  <tej@melbpc.org.au>
+ 
+         Remove variables and functions now defined elsewhere.
+       
+       * treetree.c (maybe_objc_comptypes): Remove.
+       (warn_format, warn_format_y2k, warn_format_extra_args,
+       warn_format_nonliteral, warn_format_security,
+       warn_format_zero_length): Remove.
+       (maybe_building_objc_message_expr): Remove.
+       (cpp_post_options): Remove.
+       (maybe_objc_check_decl): Remove.
+       (integer_types): Remove.
+ 
+
Index: gcc/treelang/ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/treelang/ChangeLog,v
retrieving revision 1.14
diff -c -r1.14 ChangeLog
*** gcc/treelang/ChangeLog	13 Aug 2002 08:20:11 -0000	1.14
--- gcc/treelang/ChangeLog	17 Aug 2002 23:06:11 -0000
***************
*** 1,3 ****
--- 1,17 ----
+ 2002-08-16  Tim Josling  <tej@melbpc.org.au>
+ 
+         Remove variables and functions now defined elsewhere.
+ 	
+ 	* treetree.c (maybe_objc_comptypes): Remove.
+ 	(warn_format, warn_format_y2k, warn_format_extra_args,
+ 	warn_format_nonliteral, warn_format_security,
+ 	warn_format_zero_length): Remove.
+ 	(maybe_building_objc_message_expr): Remove.
+ 	(cpp_post_options): Remove.
+ 	(maybe_objc_check_decl): Remove.
+ 	(integer_types): Remove.
+ 
+ 
  2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
  
  	* treelang.c: Remove cpp_post_options.
Index: gcc/treelang/treetree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/treelang/treetree.c,v
retrieving revision 1.9
diff -c -r1.9 treetree.c
*** gcc/treelang/treetree.c	13 Aug 2002 08:20:12 -0000	1.9
--- gcc/treelang/treetree.c	17 Aug 2002 23:06:17 -0000
***************
*** 90,105 ****
  extern int option_main;
  extern char **file_names;
  
- /* Flags etc required by c code.  */
- 
- int warn_format = 0;
- int warn_format_y2k = 0;
- int warn_format_extra_args = 0;
- int warn_format_nonliteral = 0;
- int warn_format_security = 0;
- int warn_format_zero_length = 0;
- 
- 
  /* The front end language hooks (addresses of code for this front
     end).  Mostly just use the C routines.  */
  
--- 90,95 ----
***************
*** 850,870 ****
  
  /* Following  from c-lang.c.  */
  
- /* Tell the c code we are not objective C.  */
- 
- int
- maybe_objc_comptypes (tree lhs ATTRIBUTE_UNUSED,
-                       tree rhs ATTRIBUTE_UNUSED,
-                       int reflexive ATTRIBUTE_UNUSED);
- 
- int
- maybe_objc_comptypes (tree lhs ATTRIBUTE_UNUSED,
-                       tree rhs ATTRIBUTE_UNUSED,
-                       int reflexive ATTRIBUTE_UNUSED)
- {
-   return -1;
- }
- 
  /* Used by c-typeck.c (build_external_ref), but only for objc.  */
  
  tree
--- 840,845 ----
***************
*** 885,901 ****
  
  /* Tell the c code we are not objective C.  */
  
- tree
- maybe_building_objc_message_expr (void);
- 
- tree
- maybe_building_objc_message_expr ()
- {
-   return 0;
- }
- 
- /* Tell the c code we are not objective C.  */
- 
  int
  objc_comptypes (tree lhs ATTRIBUTE_UNUSED, 
                  tree rhs ATTRIBUTE_UNUSED, 
--- 860,865 ----
***************
*** 972,985 ****
  
  /* Should not be called for treelang.   */
  
- void
- cpp_post_options (cpp_reader *pfile ATTRIBUTE_UNUSED)
- {
-   abort ();
- }
- 
- /* Should not be called for treelang.   */
- 
  const char *
  init_c_lex (const char *filename ATTRIBUTE_UNUSED)
  {
--- 936,941 ----
***************
*** 1063,1079 ****
    abort ();
  }
  
- /* Should not be called for treelang.   */
- 
- void
- maybe_objc_check_decl (tree decl ATTRIBUTE_UNUSED);
- 
- void
- maybe_objc_check_decl (tree decl ATTRIBUTE_UNUSED)
- {
-   abort ();
- }
- 
  /* Used for objective C.  */
  
  void
--- 1019,1024 ----
***************
*** 1082,1087 ****
--- 1027,1033 ----
  void
  objc_check_decl (tree decl ATTRIBUTE_UNUSED)
  {
+   abort ();
  }
  
  /* Tell the c code we are not objective C.  */
***************
*** 1201,1212 ****
    /* `unsigned long' is the standard type for sizeof.
       Note that stddef.h uses `unsigned long',
       and this must agree, even if long and int are the same size.  */
- 
- /* This variable keeps a table for types for each precision so that we
-    only allocate each of them once.  Signed and unsigned types are
-    kept separate.  */
- 
- tree integer_types[itk_none] = { NULL_TREE};
  
  /* The reserved keyword table.  */
  struct resword
--- 1147,1152 ----

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