First steps to making treelang doc compliant

Tim Josling tej@melbpc.org.au
Sat Jun 8 21:39:00 GMT 2002


I am following the instructions in sourcebuild.texi.

Happy to change it. I have not yet tackled the texi files in the treelang directory. But that will come.

In sourcebuild.texi it talks about having GNATS categories. I am not sure this is warranted.

Tim Josling
-------------- next part --------------
diff -c -p -r -N -X treelang.diff.excl cvs/gcc/gcc/ChangeLog cvs.work/gcc/gcc/ChangeLog
*** cvs/gcc/gcc/ChangeLog	Sun Jun  9 12:06:22 2002
--- cvs.work/gcc/gcc/ChangeLog	Sun Jun  9 14:15:18 2002
***************
*** 1,5 ****
--- 1,20 ----
  2002-06-09  Tim Josling  <tej@melbpc.org.au>
  
+          First steps to making treelang documentation compliant, based on
+ 	 instructions in sourcebuild.texi. Also add to gcc.c list of
+ 	 default languages.
+ 	
+ 	* doc/contrib.texi: Add self as contributor of treelang.
+ 
+ 	* doc/frontends.texi: Add mention of treelang.
+ 
+ 	* doc/invoke.texi (Overall Options): Add mention of treelang.
+ 
+ 	* doc/standards.texi:  Add mention of treelang.
+ 
+ 	* gcc.c (default_compilers): Add treelang to list of default
+ 	compilers.
+ 	
  	* gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
  	TREELANG and COBOL.
  	(lang_names): Add treelang and cobol.
diff -c -p -r -N -X treelang.diff.excl cvs/gcc/gcc/doc/contrib.texi cvs.work/gcc/gcc/doc/contrib.texi
*** cvs/gcc/gcc/doc/contrib.texi	Sun May 19 07:30:25 2002
--- cvs.work/gcc/gcc/doc/contrib.texi	Sun Jun  9 12:44:05 2002
*************** sidetracks.
*** 232,237 ****
--- 232,241 ----
  J. Kean Johnston for OpenServer support.
  
  @item
+ Tim Josling for the sample language treelang based originally on Richard
+ Kenner's 'toy'.
+ 
+ @item
  Klaus Kaempf for his ongoing work to make alpha-vms a viable target.
  
  @item
diff -c -p -r -N -X treelang.diff.excl cvs/gcc/gcc/doc/frontends.texi cvs.work/gcc/gcc/doc/frontends.texi
*** cvs/gcc/gcc/doc/frontends.texi	Tue Apr 16 06:19:15 2002
--- cvs.work/gcc/gcc/doc/frontends.texi	Sun Jun  9 12:46:44 2002
***************
*** 4,19 ****
  @c For copying conditions, see the file gcc.texi.
  
  @node G++ and GCC
! @chapter Compile C, C++, Objective-C, Ada, Fortran, or Java
  
  @cindex Objective-C
  @cindex Fortran
  @cindex Java
  @cindex Ada
  Several versions of the compiler (C, C++, Objective-C, Ada, 
! Fortran, and Java) are integrated; this is why we use the name
  ``GNU Compiler Collection''.  GCC can compile programs written in any of these
! languages.  The Ada, Fortran, and Java compilers are described in
  separate manuals.
  
  @cindex GCC
--- 4,20 ----
  @c For copying conditions, see the file gcc.texi.
  
  @node G++ and GCC
! @chapter Compile C, C++, Objective-C, Ada, Fortran, Java, or treelang
  
  @cindex Objective-C
  @cindex Fortran
  @cindex Java
  @cindex Ada
+ @cindex treelang
  Several versions of the compiler (C, C++, Objective-C, Ada, 
! Fortran, Java and treelang) are integrated; this is why we use the name
  ``GNU Compiler Collection''.  GCC can compile programs written in any of these
! languages.  The Ada, Fortran, Java and treelang compilers are described in
  separate manuals.
  
  @cindex GCC
diff -c -p -r -N -X treelang.diff.excl cvs/gcc/gcc/doc/invoke.texi cvs.work/gcc/gcc/doc/invoke.texi
*** cvs/gcc/gcc/doc/invoke.texi	Sun Jun  9 12:04:50 2002
--- cvs.work/gcc/gcc/doc/invoke.texi	Sun Jun  9 13:05:12 2002
*************** assembler  assembler-with-cpp
*** 814,819 ****
--- 814,820 ----
  ada
  f77  f77-cpp-input  ratfor
  java
+ treelang
  @end example
  
  @item -x none
diff -c -p -r -N -X treelang.diff.excl cvs/gcc/gcc/doc/standards.texi cvs.work/gcc/gcc/doc/standards.texi
*** cvs/gcc/gcc/doc/standards.texi	Tue Apr 16 06:19:15 2002
--- cvs.work/gcc/gcc/doc/standards.texi	Sun Jun  9 12:55:34 2002
*************** recent version, while @uref{http://www.t
*** 167,172 ****
--- 167,179 ----
  is an older example.  @uref{http://www.gnustep.org} includes useful
  information as well.
  
+ @cindex treelang
+ There is no standard for treelang, which is a sample language front end
+ for GCC. Its only purpose is as a sample for people wishing to write a
+ new language for GCC. The language is documented in
+ @file{gcc/treelang/treelang.texi} which can be turned into info files or
+ html.
+ 
  @xref{Top, GNAT Reference Manual, About This Guide, gnat_rm,
  GNAT Reference Manual}, for information on standard
  conformance and compatibility of the Ada compiler.
diff -c -p -r -N -X treelang.diff.excl cvs/gcc/gcc/gcc.c cvs.work/gcc/gcc/gcc.c
*** cvs/gcc/gcc/gcc.c	Wed Jun  5 06:40:45 2002
--- cvs.work/gcc/gcc/gcc.c	Sun Jun  9 13:00:00 2002
*************** static const struct compiler default_com
*** 831,836 ****
--- 831,837 ----
    {".p", "#Pascal", 0}, {".pas", "#Pascal", 0},
    {".java", "#Java", 0}, {".class", "#Java", 0},
    {".zip", "#Java", 0}, {".jar", "#Java", 0},
+   {".tree", "#treelang", 0},
    /* Next come the entries for C.  */
    {".c", "@c", 0},
    {"@c",


More information about the Gcc-patches mailing list