OSDN Git Service

2004-06-26 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
[pf3gnuchains/gcc-fork.git] / libcpp / ChangeLog
1 2004-06-21  Geoffrey Keating  <geoffk@apple.com>
2
3         * files.c (should_stack_file): Correct swapped parameters to call
4         to cb.read_pch.
5         * pch.c (cpp_valid_state): Handle -fpreprocessed.
6
7 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
8
9         * Makefile.in: Regenerate with automake 1.8.5.
10         * aclocal.m4: Likewise.
11         * configure: Regenerate.
12
13 2004-06-11  Zack Weinberg  <zack@codesourcery.com>
14
15         * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
16         * configure, config.in: Regenerate.
17         * system.h: Unconditionally define bool as unsigned char,
18         BOOL_BITFIELD as unsigned int.
19         * .cvsignore: New file.
20
21 2004-06-09  Geoffrey Keating  <geoffk@apple.com>
22
23         * traditional.c (push_replacement_text): Set macro->traditional.
24         (save_replacement_text): Likewise.
25         * pch.c (cpp_write_pch_state): Don't write list of defined macros.
26         (struct save_macro_item): Delete.
27         (struct save_macro_data): Use a character array not the previous
28         structured format.
29         (save_macros): Save macro as text not as internal structures.
30         (cpp_prepare_state): Update for changes to save_macro_data.
31         (cpp_read_state): Don't read macros defined in PCH.  Restore
32         -D macros as text.
33         * macro.c (create_iso_definition): Honour alloc_subobject.
34         Clear traditional flag.
35         (_cpp_create_definition): Honour alloc_subobject.
36         * lex.c (cpp_token_val_index): New.
37         * internal.h: Include cpp-id-data.h.
38         (uchar): Move definition to cpp-id-data.h.
39         (U): Likewise.
40         (cpp_macro): Likewise.
41         * directives.c (struct answer): Move to cpp-id-data.h.
42         (do_assert): Honour alloc_subobject.
43
44         * include/symtab.h (struct ht): Add field 'alloc_subobject'.
45         * include/cpplib.h (struct cpp_string): Add GTY marker.
46         (enum cpp_token_fld_kind): New.
47         (struct cpp_token): Add GTY markers.
48         (cpp_token_val_index): Prototype.
49         (CPP_HASHNODE_VALUE_IDX): New.
50         (struct cpp_hashnode): Don't skip fields of 'value' when marking.
51         * include/cpp-id-data.h: New file.
52
53 2004-06-09  Paolo Bonzini  <bonzini@gnu.org>
54
55         * Makefile.am (all-local): New.
56         * Makefile.in: Regenerate.
57
58 2004-06-06  Roger Sayle  <roger@eyesopen.com>
59
60         * Makefile.am (LIBICONV): Declare.
61         (makedepend_LDADD): Use LIBICONV.
62         * Makefile.in: Regenerate.
63
64 2004-06-05  Andrew Pinski  <pinskia@physics.uc.edu>
65
66         * Makefile.am (LIBINTL): Declare
67         (makedepend_LDADD): Use LIBINTL.
68         * Makefile.in: Regenerate.
69
70 2004-06-05  Zack Weinberg  <zack@codesourcery.com>
71
72         * Makefile.am: Add makedepend.
73         * Makefile.in, aclocal.m4: Regenerate.
74         * charset.c: Insert a space to avoid a warning.
75         * directives.c: Include mkdeps.h.
76         (_cpp_handle_directive): Reenable macro expander if appropriate.
77         (undefine_macros): Inline body of _cpp_free_definition for speed.
78         Do not call undef callback or _cpp_warn_if_unused_macro.
79         (cpp_get_deps): New interface.
80         * files.c (search_cache): Add pfile argument.  Check for file
81         that would be found by "" or <> search here...
82         (_cpp_find_file): ...not here.  Correct recorded start_dir of
83         files found by directory-of-current-file search that would be
84         found by "" or <> search.
85         * init.c (cpp_add_dependency_target): Delete.
86         * internal.h (struct lexer_state): Add discarding_output flag.
87         * lex.c (lex_identifier): Compute hash function while scanning.
88         * macro.c (cpp_scan_nooutput): Disable macro expansion outside
89         directives.
90         * makedepend.c: New file.
91         * mkdeps.c (struct deps): Add vpath vector.
92         (apply_vpath, deps_add_vpath): New function.
93         (deps_free): Free vpath vector.
94         (deps_add_dep, deps_add_target): Use apply_vpath.
95         * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
96         (ht_lookup_with_hash): New function.
97         * cpplib.h, mkdeps.h: Update prototypes.
98         * symtab.h: Update prototypes.
99         (HT_HASHSTEP, HT_FINISH): New macros.
100
101 2004-05-29  Geoffrey Keating  <geoffk@apple.com>
102
103         * symtab.c (ht_create): Set entries_owned.
104         (ht_destroy): Honour entries_owned.
105         (ht_expand): Likewise.
106         (ht_load): New.
107         * include/symtab.h (struct ht): New field 'entries_owned'
108         (ht_load): New prototype.
109
110 2004-05-26  Paolo Bonzini  <bonzini@gnu.org>
111
112         PR bootstrap/15651
113         * configure.ac: Fix m4 quoting when picking
114         the size of HOST_WIDE_INT.
115         * configure: Regenerate.
116
117 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
118
119         * Makefile.am: the correct directory for
120         gettext include files is given by @INCINTL@.
121         * Makefile.in: Regenerate.
122
123 2004-05-24  Paolo Bonzini  <bonzini@gnu.org>
124
125         * system.h [!ENABLE_NLS]: dgettext takes two
126         parameters.
127
128 2004-05-23  Paolo Bonzini  <bonzini@gnu.org>
129
130         Moved libcpp from the gcc subdirectory to the toplevel.
131         * Makefile.am: New file.
132         * Makefile.in: Regenerate.
133         * configure.ac: New file.
134         * configure: Regenerate.
135         * config.in: Regenerate.
136         * charset.c: Moved from gcc/cppcharset.c.  Add note about
137         brokenness of input charset detection.  Adjust for change
138         in name of cppucnid.h.
139         * errors.c: Moved from gcc/cpperror.c.  Do not include intl.h.
140         * expr.c: Moved from gcc/cppexp.c.
141         * files.c: Moved from gcc/cppfiles.c.  Do not include intl.h.
142         Remove #define of O_BINARY, it is in system.h.
143         * identifiers.c: Moved from gcc/cpphash.c.
144         * internal.h: Moved from gcc/cpphash.h.  Change header
145         guard name.  All other files adjusted to match name change.
146         * init.c: Moved from gcc/cppinit.c.
147         (init_library) [ENABLE_NLS]: Call bindtextdomain.
148         * lex.c: Moved from gcc/cpplex.c.
149         * directives.c: Moved from gcc/cpplib.c.
150         * macro.c: Moved from gcc/cppmacro.c.
151         * pch.c: Moved from gcc/cpppch.c.  Do not include intl.h.
152         * traditional.c: Moved from gcc/cpptrad.c.
153         * ucnid.h: Moved from gcc/cppucnid.h.  Change header
154         guard name.
155         * ucnid.pl: Moved from gcc/cppucnid.pl.
156         * ucnid.tab: Moved from gcc/cppucnid.tab.  Change header
157         guard name.
158         * symtab.c: Moved from gcc/hashtable.c.
159         * line-map.c: Moved from gcc.  Do not include intl.h.
160         * mkdeps.c: Moved from gcc.
161         * system.h: New file.
162         * include/cpplib.h: Moved from gcc.  Change header guard name.
163         * include/line-map.h: Moved from gcc.  Change header guard name.
164         * include/mkdeps.h: Moved from gcc.  Change header guard name.
165         * include/symtab.h: Moved from gcc/hashtable.h.  Change header
166         guard name.