]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
a23ee064
AP
12004-07-16 Andris Pavenis <pavenis@latnet.lv>
2
3 PR preprocessor/16366
4 * internal.h (struct cpp_reader): New field dir_hash.
5 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
6 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
7
a09d4744
NB
82004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
9
10 PR preprocessor/16192
11 PR preprocessor/15913
12 PR preprocessor/15572
13 * expr.c (_cpp_parse_expr): Handle remaining cases where an
14 expression is missing.
15 * init.c (post_options): Traditional cpp doesn't do // comments.
16
f58f7def
PB
172004-06-30 Per Bothner <per@bothner.com>
18
19 * include/line-map.h (fileline): Remove old typedef.
20 * internal.h (struct cpp_reader): Use source_location typedef instead.
21
e83d8d43
ZW
222004-06-26 Zack Weinberg <zack@codesourcery.com>
23
24 Partially revert patch of 2004-06-05.
25 * files.c (search_cache): Remove pfile argument. Don't check
26 for file that would be found by "" or <> search here...
27 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
28 Do not apply directory-of-current-file correction to files
29 found by this check. Rearrange code slightly.
30
c0d578e6
GK
312004-06-21 Geoffrey Keating <geoffk@apple.com>
32
33 * files.c (should_stack_file): Correct swapped parameters to call
34 to cb.read_pch.
35 * pch.c (cpp_valid_state): Handle -fpreprocessed.
36
159d5224
PB
372004-06-15 Paolo Bonzini <bonzini@gnu.org>
38
39 * Makefile.in: Regenerate with automake 1.8.5.
40 * aclocal.m4: Likewise.
41 * configure: Regenerate.
42
2fac9c01
ZW
432004-06-11 Zack Weinberg <zack@codesourcery.com>
44
45 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
46 * configure, config.in: Regenerate.
47 * system.h: Unconditionally define bool as unsigned char,
48 BOOL_BITFIELD as unsigned int.
49 * .cvsignore: New file.
50
d8044160
GK
512004-06-09 Geoffrey Keating <geoffk@apple.com>
52
53 * traditional.c (push_replacement_text): Set macro->traditional.
54 (save_replacement_text): Likewise.
55 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
56 (struct save_macro_item): Delete.
57 (struct save_macro_data): Use a character array not the previous
58 structured format.
59 (save_macros): Save macro as text not as internal structures.
60 (cpp_prepare_state): Update for changes to save_macro_data.
61 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 62 -D macros as text.
d8044160
GK
63 * macro.c (create_iso_definition): Honour alloc_subobject.
64 Clear traditional flag.
65 (_cpp_create_definition): Honour alloc_subobject.
66 * lex.c (cpp_token_val_index): New.
67 * internal.h: Include cpp-id-data.h.
68 (uchar): Move definition to cpp-id-data.h.
69 (U): Likewise.
70 (cpp_macro): Likewise.
71 * directives.c (struct answer): Move to cpp-id-data.h.
72 (do_assert): Honour alloc_subobject.
2cf22451
ZW
73
74 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
75 * include/cpplib.h (struct cpp_string): Add GTY marker.
76 (enum cpp_token_fld_kind): New.
77 (struct cpp_token): Add GTY markers.
78 (cpp_token_val_index): Prototype.
79 (CPP_HASHNODE_VALUE_IDX): New.
80 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
81 * include/cpp-id-data.h: New file.
d8044160 82
0ca8e815
PB
832004-06-09 Paolo Bonzini <bonzini@gnu.org>
84
85 * Makefile.am (all-local): New.
86 * Makefile.in: Regenerate.
87
b51fa00f
RS
882004-06-06 Roger Sayle <roger@eyesopen.com>
89
90 * Makefile.am (LIBICONV): Declare.
91 (makedepend_LDADD): Use LIBICONV.
92 * Makefile.in: Regenerate.
93
5e2f3f39
AP
942004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
95
96 * Makefile.am (LIBINTL): Declare
97 (makedepend_LDADD): Use LIBINTL.
98 * Makefile.in: Regenerate.
99
c6e83800
ZW
1002004-06-05 Zack Weinberg <zack@codesourcery.com>
101
102 * Makefile.am: Add makedepend.
103 * Makefile.in, aclocal.m4: Regenerate.
104 * charset.c: Insert a space to avoid a warning.
105 * directives.c: Include mkdeps.h.
106 (_cpp_handle_directive): Reenable macro expander if appropriate.
107 (undefine_macros): Inline body of _cpp_free_definition for speed.
108 Do not call undef callback or _cpp_warn_if_unused_macro.
109 (cpp_get_deps): New interface.
110 * files.c (search_cache): Add pfile argument. Check for file
111 that would be found by "" or <> search here...
112 (_cpp_find_file): ...not here. Correct recorded start_dir of
113 files found by directory-of-current-file search that would be
114 found by "" or <> search.
115 * init.c (cpp_add_dependency_target): Delete.
116 * internal.h (struct lexer_state): Add discarding_output flag.
117 * lex.c (lex_identifier): Compute hash function while scanning.
118 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
119 directives.
120 * makedepend.c: New file.
121 * mkdeps.c (struct deps): Add vpath vector.
122 (apply_vpath, deps_add_vpath): New function.
123 (deps_free): Free vpath vector.
124 (deps_add_dep, deps_add_target): Use apply_vpath.
125 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
126 (ht_lookup_with_hash): New function.
127 * cpplib.h, mkdeps.h: Update prototypes.
128 * symtab.h: Update prototypes.
129 (HT_HASHSTEP, HT_FINISH): New macros.
130
b453c95f
GK
1312004-05-29 Geoffrey Keating <geoffk@apple.com>
132
133 * symtab.c (ht_create): Set entries_owned.
134 (ht_destroy): Honour entries_owned.
135 (ht_expand): Likewise.
136 (ht_load): New.
2cf22451
ZW
137 * include/symtab.h (struct ht): New field 'entries_owned'
138 (ht_load): New prototype.
b453c95f 139
963e23c5
PB
1402004-05-26 Paolo Bonzini <bonzini@gnu.org>
141
142 PR bootstrap/15651
143 * configure.ac: Fix m4 quoting when picking
144 the size of HOST_WIDE_INT.
145 * configure: Regenerate.
146
0429bc77
PB
1472004-05-25 Paolo Bonzini <bonzini@gnu.org>
148
149 * Makefile.am: the correct directory for
150 gettext include files is given by @INCINTL@.
151 * Makefile.in: Regenerate.
152
c86dd7db
PB
1532004-05-24 Paolo Bonzini <bonzini@gnu.org>
154
155 * system.h [!ENABLE_NLS]: dgettext takes two
156 parameters.
157
4f4e53dd
PB
1582004-05-23 Paolo Bonzini <bonzini@gnu.org>
159
160 Moved libcpp from the gcc subdirectory to the toplevel.
161 * Makefile.am: New file.
162 * Makefile.in: Regenerate.
163 * configure.ac: New file.
164 * configure: Regenerate.
165 * config.in: Regenerate.
166 * charset.c: Moved from gcc/cppcharset.c. Add note about
167 brokenness of input charset detection. Adjust for change
168 in name of cppucnid.h.
169 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
170 * expr.c: Moved from gcc/cppexp.c.
171 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
172 Remove #define of O_BINARY, it is in system.h.
173 * identifiers.c: Moved from gcc/cpphash.c.
174 * internal.h: Moved from gcc/cpphash.h. Change header
175 guard name. All other files adjusted to match name change.
176 * init.c: Moved from gcc/cppinit.c.
177 (init_library) [ENABLE_NLS]: Call bindtextdomain.
178 * lex.c: Moved from gcc/cpplex.c.
179 * directives.c: Moved from gcc/cpplib.c.
180 * macro.c: Moved from gcc/cppmacro.c.
181 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
182 * traditional.c: Moved from gcc/cpptrad.c.
183 * ucnid.h: Moved from gcc/cppucnid.h. Change header
184 guard name.
185 * ucnid.pl: Moved from gcc/cppucnid.pl.
186 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
187 guard name.
188 * symtab.c: Moved from gcc/hashtable.c.
189 * line-map.c: Moved from gcc. Do not include intl.h.
190 * mkdeps.c: Moved from gcc.
191 * system.h: New file.
2cf22451
ZW
192 * include/cpplib.h: Moved from gcc. Change header guard name.
193 * include/line-map.h: Moved from gcc. Change header guard name.
194 * include/mkdeps.h: Moved from gcc. Change header guard name.
195 * include/symtab.h: Moved from gcc/hashtable.h. Change header
196 guard name.