diff options
author | Zack Weinberg <zack@codesourcery.com> | 2002-05-12 18:43:33 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-05-12 18:43:33 +0000 |
commit | 9a5834ae8dc3c4b6bb29ee487186a85b89378985 (patch) | |
tree | 041a0c07e04b7b1e912cc3fbfff87c4cb5742d5e /gcc/gensupport.h | |
parent | 0d08ea488f729f49298fcba3ff5e574da24291ec (diff) | |
download | gcc-9a5834ae8dc3c4b6bb29ee487186a85b89378985.zip gcc-9a5834ae8dc3c4b6bb29ee487186a85b89378985.tar.gz gcc-9a5834ae8dc3c4b6bb29ee487186a85b89378985.tar.bz2 |
gensupport.c (n_comma_elts): Moved here from genattrtab.c.
* gensupport.c (n_comma_elts): Moved here from genattrtab.c.
(scan_comma_elt): New function. Accepts whitespace in comma lists.
* gensupport.h: Prototype new routines.
* genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
use of printf.
* genattrtab.c (n_comma_elts): Moved to gensupport.c.
(next_comma_elt): Use scan_comma_elt.
* config/i386/i386.md: Use new attribute notation to break up
long lines in define_attr forms.
From-SVN: r53403
Diffstat (limited to 'gcc/gensupport.h')
-rw-r--r-- | gcc/gensupport.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gensupport.h b/gcc/gensupport.h index 96c8c87..bac804b 100644 --- a/gcc/gensupport.h +++ b/gcc/gensupport.h @@ -1,5 +1,5 @@ /* Declarations for rtx-reader support for gen* routines. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2002 Free Software Foundation, Inc. This file is part of GCC. @@ -27,3 +27,7 @@ extern rtx read_md_rtx PARAMS ((int *, int *)); extern void message_with_line PARAMS ((int, const char *, ...)) ATTRIBUTE_PRINTF_2; + +extern int n_comma_elts PARAMS ((const char *)); +extern const char *scan_comma_elt PARAMS ((const char **)); + |