diff options
author | Tim Josling <tej@melbpc.org.au> | 2002-07-14 01:59:15 +0000 |
---|---|---|
committer | Tim Josling <timjosling@gcc.gnu.org> | 2002-07-14 01:59:15 +0000 |
commit | 8ac9d31fd90e5a28237f444567b212d152aabe17 (patch) | |
tree | 2f21865689bba6b9b86d1c23e3bc5f9616a18379 /gcc/doc/gty.texi | |
parent | 33ce85ffa76374fb2da94640463bf8241aac1589 (diff) | |
download | gcc-8ac9d31fd90e5a28237f444567b212d152aabe17.tar.gz |
Make gengtype.c language independent.
From-SVN: r55436
Diffstat (limited to 'gcc/doc/gty.texi')
-rw-r--r-- | gcc/doc/gty.texi | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/gcc/doc/gty.texi b/gcc/doc/gty.texi index 02b1b3913f8..37e87c63e7a 100644 --- a/gcc/doc/gty.texi +++ b/gcc/doc/gty.texi @@ -228,14 +228,31 @@ things you need to do: @enumerate @item -You need to add the file to the list of source files the type machinery -scans. For a back-end file, this is usually done automatically; if not, -you should add it to @code{config_gtfiles} in the appropriate port's -entries in @file{config.gcc}. For a front-end file, this is done by -adding the filename to the @code{gtfiles} variable defined in -@file{config-lang.in}. For other files, this is done by adding the +You need to add the file to the list of source files the type +machinery scans. There are three cases: + +@enumerate a +@item +For a back-end file, this is usually done +automatically; if not, you should add it to @code{config_gtfiles} in +the appropriate port's entries in @file{config.gcc}. + +@item +For files shared by all front ends, this is done by adding the filename to the @code{GTFILES} variable in @file{Makefile.in}. +@item +For any other file used by a front end, this is done by adding the +filename to the @code{gtfiles} variable defined in +@file{config-lang.in}. For C, the file is @file{c-config-lang.in}. +This list should include all files that have GTY macros in them that +are used in that front end, other than those defined in the previous +list items. For example, it is common for front end writers to use +@file{c-common.c} and other files from the C front end, and these +should be included in the @file{gtfiles} variable for such front ends. + +@end enumerate + @item You need to include the file that the type machinery will generate in the source file you just changed. The file will be called |