aboutsummaryrefslogtreecommitdiff
path: root/gcc/gengtype.c
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2011-03-21 10:25:38 +0000
committerNicola Pero <nicola.pero@meta-innovation.com>2011-03-21 10:25:38 +0000
commitc7d0cd7873d80b824d66030c6c4e7935f336a16e (patch)
tree02e7a05a6992d6586c3ddbd38265a89d7778de89 /gcc/gengtype.c
parent49ebe439039a427e83a9924f9461d2346dcd9de6 (diff)
In gcc/:
2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com> PR bootstrap/48167 * gengtype.c (files_rules): Added rule for cp/parser.h. In gcc/objcp/: 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com> PR bootstrap/48167 * Make-lang.in (START_HDRS): Added CXX_PARSER_H and CXX_PRETTY_PRINT_H. * config-lang.in (gtfiles): Added cp/parser.h and reorganized list so that it is more obvious that it is identical to the C++ one with the addition of some files at the end. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@171214 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype.c')
-rw-r--r--gcc/gengtype.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c
index bd626ed93a6..7127a2a9e95 100644
--- a/gcc/gengtype.c
+++ b/gcc/gengtype.c
@@ -1761,6 +1761,12 @@ static outf_p source_dot_c_frul (input_file*, char**, char**);
matters, so change with extreme care! */
struct file_rule_st files_rules[] = {
+ /* The general rule assumes that files in subdirectories belong to a
+ particular front-end, and files not in subdirectories are shared.
+ The following rules deal with exceptions - files that are in
+ subdirectories and yet are shared, and files that are top-level,
+ but are not shared. */
+
/* the c-family/ source directory is special. */
{ DIR_PREFIX_REGEX "c-family/([[:alnum:]_-]*)\\.c$",
REG_EXTENDED, NULL_REGEX,
@@ -1792,7 +1798,12 @@ struct file_rule_st files_rules[] = {
REG_EXTENDED, NULL_REGEX,
"gt-cp-name-lookup.h", "cp/name-lookup.c", NULL_FRULACT },
- /* objc/objc-act.h fives gt-objc-objc-act.h for objc/objc-act.c ! */
+ /* cp/parser.h gives gt-cp-parser.h for cp/parser.c ! */
+ { DIR_PREFIX_REGEX "cp/parser\\.h$",
+ REG_EXTENDED, NULL_REGEX,
+ "gt-cp-parser.h", "cp/parser.c", NULL_FRULACT },
+
+ /* objc/objc-act.h gives gt-objc-objc-act.h for objc/objc-act.c ! */
{ DIR_PREFIX_REGEX "objc/objc-act\\.h$",
REG_EXTENDED, NULL_REGEX,
"gt-objc-objc-act.h", "objc/objc-act.c", NULL_FRULACT },