]>
Commit | Line | Data |
---|---|---|
4a5e00ca AS |
1 | 2011-12-20 Andreas Schwab <schwab@linux-m68k.org> |
2 | ||
3 | * configure: Regenerate. | |
4 | ||
095af58f AS |
5 | 2011-12-19 Andreas Schwab <schwab@linux-m68k.org> |
6 | ||
7 | * configure: Regenerate. | |
8 | ||
b0c084b7 JJ |
9 | 2011-12-07 Jakub Jelinek <jakub@redhat.com> |
10 | ||
11 | PR bootstrap/50237 | |
12 | * internal.h (_cpp_init_lexer): New prototype. | |
13 | * init.c (init_library): Call it. | |
14 | * lex.c (init_vectorized_lexer): Remove constructor attribute, | |
15 | add inline keyword. | |
16 | (HAVE_init_vectorized_lexer): Define. | |
17 | (_cpp_init_lexer): New function. | |
18 | ||
9b554be9 DS |
19 | 2011-12-03 Dodji Seketeli <dodji@redhat.com> |
20 | ||
21 | * macro.c (tokens_buff_remove_last_token) | |
22 | (tokens_buff_put_token_to): Add an 'inline' function specifier to | |
23 | the prototype. | |
24 | ||
8dcf72a8 DN |
25 | 2011-11-22 Diego Novillo <dnovillo@google.com> |
26 | ||
27 | * include/line-map.h (linemap_dump): Declare. | |
28 | (line_table_dump): Declare. | |
29 | * line-map.c (linemap_dump): New. | |
30 | (line_table_dump): New. | |
31 | ||
7e74ce3f ESR |
32 | 2011-11-21 Ed Smith-Rowland <3dw4rd@verizon.net> |
33 | ||
34 | PR c++/50958 | |
35 | * expr.c (cpp_userdef_char_remove_type): Fix typo. | |
36 | ||
e9411247 MM |
37 | 2011-11-03 Michael Matz <matz@suse.de> |
38 | ||
39 | PR bootstrap/50857 | |
40 | * configure.ac: Check for -fno-exceptions -fno-rtti. | |
41 | * configure: Regenerate. | |
42 | * Makefile.in (NOEXCEPTION_FLAGS): New flag. | |
43 | (ALL_CXXFLAGS): Use it. | |
44 | ||
0c1dace3 PC |
45 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
46 | ||
47 | * internal.h (uxstrdup, ustrchr): Return const unsigned char *. | |
48 | ||
25339f10 JM |
49 | 2011-11-02 Jason Merrill <jason@redhat.com> |
50 | ||
51 | PR c++/50810 | |
52 | * configure.ac: Add -Wno-narrowing to warning options. | |
53 | ||
97e3ad20 JM |
54 | 2011-10-31 Jason Merrill <jason@redhat.com> |
55 | ||
1fb80b0c JM |
56 | PR libstdc++/1773 |
57 | * init.c (cpp_init_builtins): Set __cplusplus for C++11. | |
58 | ||
97e3ad20 JM |
59 | PR c++/50920 |
60 | * include/cpplib.h (enum c_lang): Rename CLK_CXX0X to CLK_CXX11, | |
61 | CLK_GNUCXX0X to CLK_GNUCXX11. | |
62 | ||
3ce4f9e4 ESR |
63 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
64 | ||
65 | Implement C++11 user-defined literals. | |
66 | * expr.c: (cpp_interpret_float_suffix, cpp_interpret_int_suffix, | |
67 | cpp_userdef_string_remove_type, cpp_userdef_string_add_type, | |
68 | cpp_userdef_char_remove_type, cpp_userdef_char_add_type, | |
69 | cpp_userdef_string_p, cpp_userdef_char_p, cpp_get_userdef_suffix): New. | |
70 | (cpp_classify_number): Classify unrecognized tokens as user-defined | |
71 | literals. | |
72 | * include/cpplib.h: Add new tokens for user-defined literals. | |
73 | * init.c: Add new preprocessor flag (cxx11). | |
74 | * lex.c: (lex_string, lex_raw_string): Handle user-defined literals | |
75 | including concatenation and promotion with suffixes. | |
76 | ||
3bb0c8db DS |
77 | 2011-10-24 Dodji Seketeli <dodji@redhat.com> |
78 | ||
79 | * line-map.c (linemap_macro_map_lookup): Fix logic. | |
80 | ||
84756fd4 DS |
81 | 2011-10-24 Dodji Seketeli <dodji@redhat.com> |
82 | ||
83 | * include/line-map.h (linemap_expand_location): Take a line table | |
84 | parameter. Update comment. | |
85 | (linemap_resolve_location): Update comment. | |
86 | (linemap_expand_location_full): Remove. | |
87 | * line-map.c (linemap_resolve_location): Handle reserved | |
88 | locations; return a NULL map in those cases. | |
89 | (linemap_expand_location): If location is reserved, return a | |
90 | zeroed expanded location. Update comment. Take a line table to | |
91 | assert that the function takes non-virtual locations only. | |
92 | (linemap_expand_location_full): remove. | |
93 | (linemap_dump_location): Handle the fact that | |
94 | linemap_resolve_location can return NULL line maps when the | |
95 | location resolves to a reserved location. | |
96 | ||
97 | * line-map.c (linemap_macro_map_lookup): Fix logic. | |
98 | ||
ad2305ad DS |
99 | 2011-10-22 Dodji Seketeli <dodji@redhat.com> |
100 | ||
101 | PR bootstrap/50778 | |
102 | * include/internal.h (_cpp_remaining_tokens_num_in_context): Take the | |
103 | context to act upon. | |
104 | * lex.c (_cpp_remaining_tokens_num_in_context): Likewise. Update | |
105 | comment. | |
106 | (cpp_token_from_context_at): Likewise. | |
107 | (cpp_peek_token): Use the context to peek tokens from. | |
108 | ||
cbbcf655 DS |
109 | 2011-10-20 Dodji Seketeli <dodji@redhat.com> |
110 | ||
111 | PR bootstrap/50801 | |
112 | * lex.c (_cpp_remaining_tokens_num_in_context): Fix computation of | |
113 | number of tokens. | |
114 | ||
d17687f6 DS |
115 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
116 | ||
117 | PR bootstrap/50760 | |
118 | * include/line-map.h (struct linemap_stats): Change the type of | |
119 | the members from size_t to long. | |
120 | * macro.c (macro_arg_token_iter_init): Unconditionally initialize | |
121 | iter->location_ptr. | |
122 | ||
411f92de DS |
123 | 2011-10-17 Dodji Seketeli <dodji@redhat.com> |
124 | ||
125 | * line-map.c (linemap_macro_map_loc_to_exp_point): Avoid setting a | |
126 | variable without using it if ENABLE_CHECKING is not defined. Mark | |
127 | the LOCATION parameter as being unused. | |
128 | ||
b9bd6f74 TT |
129 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
130 | Dodji Seketeli <dodji@redhat.com> | |
131 | ||
132 | * include/line-map.h (struct line_maps::alloced_size_for_request): | |
133 | New member. | |
134 | * line-map.c (new_linemap): Use set->alloced_size_for_request to | |
135 | get the actual allocated size of line maps. | |
136 | ||
64a1a422 TT |
137 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
138 | Dodji Seketeli <dodji@redhat.com> | |
139 | ||
140 | * line-map.h (struct linemap_stats): Declare new struct. | |
141 | (linemap_get_statistics): Declare ... | |
142 | * line-map.c (linemap_get_statistics): ... new function. | |
143 | * macro.c (num_expanded_macros_counter, num_macro_tokens_counter): | |
144 | Declare new counters. | |
145 | (enter_macro_context, replace_args): Update | |
146 | num_macro_tokens_counter. | |
147 | (cpp_get_token_1): Update num_expanded_macros_counter. | |
148 | ||
847e697a TT |
149 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
150 | Dodji Seketeli <dodji@redhat.com> | |
151 | ||
152 | * include/cpplib.h (struct cpp_options)<debug>: New struct member. | |
153 | * include/line-map.h (linemap_dump_location): Declare ... | |
154 | * line-map.c (linemap_dump_location): ... new function. | |
155 | ||
92582b75 TT |
156 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
157 | Dodji Seketeli <dodji@redhat.com> | |
158 | ||
159 | * include/cpplib.h (struct cpp_options)<track_macro_expansion>: | |
160 | New option. | |
161 | * internal.h (struct macro_context): New struct. | |
162 | (enum context_tokens_kind): New enum. | |
163 | (struct cpp_context)<tokens_kind>: New member of type enum | |
164 | context_tokens_kind. | |
165 | (struct cpp_context)<macro>: Remove this. Replace it with an enum | |
166 | of macro and macro_context. | |
167 | (struct cpp_context)<direct_p>: Remove. | |
168 | (_cpp_remaining_tokens_num_in_context): Declare new function. | |
169 | * directives.c (destringize_and_run): Adjust. | |
170 | * lex.c (_cpp_remaining_tokens_num_in_context) | |
171 | (_cpp_token_from_context_at): Define new functions | |
172 | (cpp_peek_token): Use them. | |
173 | * init.c (cpp_create_reader): Initialize the base context to zero. | |
174 | (_cpp_token_from_context_at): Define new static function. | |
175 | (cpp_peek_token): Use new _cpp_remaining_tokens_num_in_context and | |
176 | _cpp_token_from_context_at. | |
177 | * macro.c (struct macro_arg)<virt_locs, expanded_virt_locs>: New | |
178 | members. | |
179 | (enum macro_arg_token_kind): New enum. | |
180 | (struct macro_arg_token_iter): New struct. | |
181 | (maybe_adjust_loc_for_trad_cpp, push_extended_tokens_context) | |
182 | (alloc_expanded_arg_mem, ensure_expanded_arg_room) | |
183 | (delete_macro_args, set_arg_token, get_arg_token_location) | |
184 | (arg_token_ptr_at, macro_arg_token_iter_init) | |
185 | (macro_arg_token_iter_get_token) | |
186 | (macro_arg_token_iter_get_location, macro_arg_token_iter_forward) | |
187 | (expanded_token_index, tokens_buff_new, tokens_buff_count) | |
188 | (tokens_buff_last_token_ptr, tokens_buff_put_token_to) | |
189 | (tokens_buff_add_token, tokens_buff_remove_last_token) | |
190 | (reached_end_of_context, consume_next_token_from_context): New | |
191 | static functions. | |
192 | (cpp_get_token_1): New static function. Split and extended from | |
193 | cpp_get_token. Use reached_end_of_context and | |
194 | consume_next_token_from_context. Unify its return point. Move | |
195 | the location tweaking from cpp_get_token_with_location in here. | |
196 | (cpp_get_token): Use cpp_get_token_1 | |
197 | (stringify_arg): Use the new arg_token_at. | |
198 | (paste_all_tokens): Support tokens coming from extended tokens | |
199 | contexts. | |
200 | (collect_args): Return the number of collected arguments, by | |
201 | parameter. Store virtual locations of tokens that constitute the | |
202 | collected args. | |
203 | (funlike_invocation_p): Return the number of collected arguments, | |
204 | by parameter. | |
205 | (enter_macro_context): Add a parameter for macro expansion point. | |
206 | Pass it to replace_args and to the "used" cpp callback. Get the | |
207 | number of function-like macro arguments from funlike_invocation_p, | |
208 | pass it to the new delete_macro_args to free the memory used by | |
209 | macro args. When -ftrack-macro-expansion is in effect, for macros | |
210 | that have no arguments, create a macro map for the macro expansion | |
211 | and use it to allocate proper virtual locations for tokens | |
212 | resulting from the expansion. Push an extended tokens context | |
213 | containing the tokens resulting from macro expansion and their | |
214 | virtual locations. | |
215 | (replace_args): Rename the different variables named 'count' into | |
216 | variables with more meaningful names. Create a macro map; | |
217 | allocate virtual locations of tokens resulting from this | |
218 | expansion. Use macro_arg_token_iter to iterate over tokens of a | |
219 | given macro. Handle the case of the argument of | |
220 | -ftrack-macro-expansion being < 2. Don't free macro arguments | |
221 | memory resulting from expand_arg here, as these are freed by the | |
222 | caller of replace_arg using delete_macro_args now. Push extended | |
223 | token context. | |
224 | (next_context, push_ptoken_context, _cpp_push_token_context) | |
225 | (_cpp_push_text_context): Properly initialize the context. | |
226 | (expand_arg): Use the new alloc_expanded_arg_mem, | |
227 | push_extended_tokens_context, cpp_get_token_1, and set_arg_token. | |
228 | (_cpp_pop_context): Really free the memory held by the context. | |
229 | Handle freeing memory used by extended tokens contexts. | |
230 | (cpp_get_token_with_location): Use cpp_get_token_1. | |
231 | (cpp_sys_macro_p): Adjust. | |
232 | (_cpp_backup_tokens): Support the new kinds of token contexts. | |
233 | * traditional.c (recursive_macro): Adjust. | |
234 | ||
46427374 TT |
235 | 2011-10-15 Tom Tromey <tromey@redhat> |
236 | Dodji Seketeli <dodji@redhat.com> | |
237 | ||
238 | * include/line-map.h (enum lc_reason)<LC_ENTER_MACRO>: New enum | |
239 | member. | |
240 | (MAX_SOURCE_LOCATION): New constant. | |
241 | (struct line_map_ordinary, struct line_map_macro): New structs. | |
242 | (struct line_map): Turn this into a union of the two above. Add | |
243 | comments. | |
244 | (struct maps_info): New struct. | |
245 | (struct line_maps)<info_ordinary, info_macro>: Two new fields. | |
246 | These now carry the map information that was previously scattered | |
247 | in struct line_maps. | |
248 | (struct map_info::allocated): Fix comment. | |
249 | (MAP_START_LOCATION, ORDINARY_MAP_FILE_NAME) | |
250 | (ORDINARY_MAP_STARTING_LINE_NUMBER) | |
251 | (ORDINARY_MAP_INCLUDER_FILE_INDEX) | |
252 | (ORDINARY_MAP_IN_SYSTEM_HEADER_P) | |
253 | (ORDINARY_MAP_NUMBER_OF_COLUMN_BITS, MACRO_MAP_MACRO) | |
254 | (MACRO_MAP_NUM_MACRO_TOKENS MACRO_MAP_LOCATIONS) | |
255 | (MACRO_MAP_EXPANSION_POINT_LOCATION) | |
256 | (LOCATION_POSSIBLY_IN_MACRO_MAP_P, LINEMAPS_MAP_INFO) | |
257 | (LINEMAPS_MAPS, LINEMAPS_ALLOCATE, LINEMAPS_USED, LINEMAPS_CACHE) | |
258 | (LINEMAPS_LAST_MAP, LINEMAPS_LAST_ALLOCATED_MAP) | |
259 | (LINEMAPS_ORDINARY_MAPS, LINEMAPS_ORDINARY_ALLOCATED) | |
260 | (LINEMAPS_ORDINARY_USED, LINEMAPS_ORDINARY_CACHE) | |
261 | (LINEMAPS_LAST_ORDINARY_MAP, LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP) | |
262 | (LINEMAPS_MACRO_MAPS, LINEMAPS_MACRO_ALLOCATED) | |
263 | (LINEMAPS_MACRO_USED, LINEMAPS_MACRO_CACHE) | |
264 | (LINEMAPS_LAST_MACRO_MAP, LINEMAPS_LAST_ALLOCATED_MACRO_MAP) | |
265 | (LINEMAPS_MAP_AT, LINEMAPS_ORDINARY_MAP_AT) | |
266 | (LINEMAPS_MACRO_MAP_AT): New accessors for ordinary and macro map | |
267 | information. | |
268 | (linemap_check_ordinary, linemap_assert) | |
269 | (linemap_location_before_p): New macros. | |
270 | (linemap_position_for_line_and_column) | |
271 | (linemap_tracks_macro_expansion_locs_p, linemap_add_macro_token) | |
272 | (linemap_macro_expansion_map_p) | |
273 | (linemap_macro_map_loc_to_def_point) | |
274 | (linemap_macro_map_loc_unwind_once) | |
275 | (linemap_macro_map_loc_to_exp_point, linemap_step_out_once) | |
276 | (linemap_get_source_line linemap_get_source_column) | |
277 | (linemap_map_get_macro_name, linemap_get_file_path) | |
278 | (linemap_location_in_system_header_p) | |
279 | (linemap_location_from_macro_expansion_p): Declare new functions. | |
280 | (SOURCE_LINE, SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION) | |
281 | (LINEMAP_FILE, LINEMAP_LINE, LINEMAP_SYSP): Assert that this | |
282 | accessors act on ordinary maps only. | |
283 | (INCLUDED_FROM): Return NULL for main files; use the new | |
284 | accessors. | |
285 | (LINEMAP_POSITION_FOR_COLUMN): Use the new accessors. | |
286 | (struct expanded_location): Move here from gcc/input.h | |
287 | (linemap_resolve_location, linemap_expand_location) | |
288 | (linemap_expand_location_full): Declare new functions. | |
289 | * line-map.c: Include cpplib.h, internal.h | |
290 | (linemap_enter_macro, linemap_add_macro_token) | |
291 | (linemap_get_expansion_line, linemap_get_expansion_filename): New | |
292 | functions that are private to libcpp. | |
293 | (linemap_assert): New macro. | |
294 | (linemap_macro_loc_to_exp_point, linemap_macro_loc_to_exp_point) | |
295 | (linemap_macro_loc_unwind, linemap_macro_map_loc_to_def_point) | |
296 | (linemap_macro_map_loc_unwind_toward_spelling) | |
297 | (linemap_macro_map_loc_to_exp_point) | |
298 | (first_map_in_common_1, first_map_in_common): New static | |
299 | functions. | |
300 | (new_linemap): Define new static functions. Extracted and | |
301 | enhanced from ... | |
302 | (linemap_add): ... here. Use linemap_assert in lieu of abort | |
303 | previously. | |
304 | (linemap_tracks_macro_expansion_locs_p) | |
305 | (linemap_add_macro_token, linemap_macro_expansion_map_p) | |
306 | (linemap_check_ordinary, linemap_macro_map_loc_to_exp_point) | |
307 | (linemap_macro_map_loc_to_def_point) | |
308 | (linemap_macro_map_loc_unwind_once) | |
309 | (linemap_step_out_once, linemap_map_get_index) | |
310 | (linemap_get_source_line,linemap_get_source_column) | |
311 | (linemap_get_file_path, linemap_map_get_macro_name) | |
312 | (linemap_location_in_system_header_p) | |
313 | (linemap_location_originated_from_system_header_p) | |
314 | (linemap_location_from_macro_expansion_p) | |
315 | (linemap_tracks_macro_expansion_locs_p) | |
316 | (linemap_resolve_location, linemap_expand_location) | |
317 | (linemap_expand_location_full) | |
318 | (linemap_tracks_macro_expansion_locs_p) | |
319 | (linemap_position_for_line_and_column, linemap_compare_locations): | |
320 | Define new public functions. | |
321 | (linemap_init): Initialize ordinary and macro maps information in | |
322 | the map set. | |
323 | (linemap_check_files_exited): Use the new accessors. | |
324 | (linemap_free): Remove this dead code. | |
325 | (linemap_line_start): Assert this uses an ordinary map. Adjust to | |
326 | use the new ordinary map accessors and data structures. Don't | |
327 | overflow past the lowest possible macro token's location. | |
328 | (linemap_position_for_column): Assert the ordinary maps of the map | |
329 | set are really ordinary. Use ordinary map accessors. | |
330 | (linemap_lookup): Keep the same logic but generalize to allow | |
331 | lookup of both ordinary and macro maps. Do not crash when called | |
332 | with an empty line table. | |
333 | * directives-only.c (_cpp_preprocess_dir_only): Adjust to use the | |
334 | new API of line-map.h. | |
335 | * directives.c (start_directive, do_line, do_linemarker) | |
336 | (do_linemarker): Likewise. | |
337 | * files.c (_cpp_find_file, _cpp_stack_include, open_file_failed) | |
338 | (make_cpp_dir, cpp_make_system_header): Likewise. | |
339 | * init.c (cpp_read_main_file): Likewise. | |
340 | * internal.h (CPP_INCREMENT_LINE): Likewise. | |
341 | (linemap_enter_macro, linemap_add_macro_token) | |
342 | (linemap_get_expansion_line, linemap_get_expansion_filename): New | |
343 | functions private to libcpp. | |
344 | * lex.c (_cpp_process_line_notes, _cpp_skip_block_comment) | |
345 | (skip_line_comment, skip_whitespace, lex_raw_string) | |
346 | (_cpp_lex_direct): Likewise. | |
347 | * macro.c (_cpp_builtin_macro_text): Likewise. | |
348 | (_cpp_aligned_alloc): Initialize the new name member of the macro. | |
349 | * traditional.c (copy_comment, _cpp_scan_out_logical_line): | |
350 | Likewise. | |
351 | * errors.c (cpp_diagnostic): Adjust to new linemap API. | |
352 | ||
892a371f DS |
353 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
354 | ||
355 | * line-map.c (linemap_add): Assert that reason must not be | |
356 | LC_RENAME when called for the first time on a "main input file". | |
357 | ||
e3dfef44 GC |
358 | 2011-08-22 Gabriel Charette <gchare@google.com> |
359 | ||
360 | * init.c (cpp_create_reader): Inititalize forced_token_location_p. | |
361 | * internal.h (struct cpp_reader): Add field forced_token_location_p. | |
362 | * lex.c (_cpp_lex_direct): Use forced_token_location_p. | |
363 | (cpp_force_token_locations): New. | |
364 | (cpp_stop_forcing_token_locations): New. | |
365 | ||
32fe396e RO |
366 | 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
367 | ||
368 | PR libstdc++/1773 | |
369 | * init.c (cpp_init_builtins): Define __cplusplus 19971L. | |
370 | ||
7c1ffff9 JM |
371 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
372 | ||
373 | * include/cpplib.h (struct cpp_options): Fix typo. | |
374 | ||
a48e3dd1 JM |
375 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
376 | ||
377 | * include/cpplib.h (struct cpp_options): Add rliterals. | |
378 | * init.c (struct lang_flags, lang_defaults): Add rliterals. | |
379 | (cpp_set_lang): Set rliterals option. | |
380 | (cpp_init_builtins): Define __STDC_UTF_16__ and __STDC_UTF_32__. | |
381 | * lex.c (_cpp_lex_direct): Only accept raw strings if rliterals. | |
382 | ||
3f6ced10 GC |
383 | 2011-08-15 Gabriel Charette <gchare@google.com> |
384 | ||
385 | * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Remove. | |
386 | Update all users to use linemap_position_for_column instead. | |
387 | ||
0681d04c GC |
388 | 2011-07-28 Gabriel Charette <gchare@google.com> |
389 | ||
390 | * include/line-map.h (struct line_maps): | |
391 | Remove unused field last_listed. Update all users. | |
392 | ||
5e9627ca L |
393 | 2011-07-28 H.J. Lu <hongjiu.lu@intel.com> |
394 | ||
395 | * configure.ac: Set need_64bit_hwint to yes for x86 targets. | |
396 | * configure: Regenerated. | |
397 | ||
a024b70f RO |
398 | 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
399 | ||
400 | * system.h [__cplusplus]: Wrap C function declarations in extern "C". | |
401 | ||
5b6d595b RO |
402 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
403 | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | |
404 | ||
405 | PR bootstrap/49794 | |
406 | * configure.ac: Test AM_ICONV with CXX. | |
407 | * configure: Regenerate. | |
408 | * system.h (HAVE_DESIGNATED_INITIALIZERS): Never define for C++. | |
409 | ||
d0a9fbe1 DS |
410 | 2011-07-15 Dodji Seketeli <dodji@redhat.com> |
411 | ||
412 | * directives.c (struct if_stack): Use source_location as type | |
413 | here. | |
414 | * include/cpplib.h (struct cpp_callbacks)<include, define, undef, | |
415 | indent, def_pragma, used_define, used_undef>: Properly use | |
416 | source_location as parameter type, rather than unsigned int. | |
417 | ||
fbdd5d87 RO |
418 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
419 | ||
420 | PR target/39150 | |
421 | * configure.ac (host_wide_int): Handle x86_64-*-solaris2.1[0-9] | |
422 | like i[34567]86-*-solaris2.1[0-9]*. | |
423 | * configure: Regenerate. | |
424 | ||
8787a05a JM |
425 | 2011-06-16 Jason Merrill <jason@redhat.com> |
426 | ||
427 | PR c++/45399 | |
428 | * lex.c (lex_raw_string): Don't check for embedded NUL. | |
429 | ||
38fbfaf6 DS |
430 | 2011-06-06 Dodji Seketeli <dodji@redhat.com> |
431 | ||
432 | PR preprocessor/48532 | |
433 | * directives.c (do_pragma): Don't forget the invocation location | |
434 | when parsing the pragma name of a namespaced pragma directive. | |
435 | ||
fc0993ac JT |
436 | 2011-05-29 John Tytgat <John.Tytgat@aaug.net> |
437 | ||
438 | * files.c (read_file_guts): Add test on non-zero value of S_ISREG. | |
439 | ||
ef230b38 UB |
440 | 2011-05-22 Uros Bizjak <ubizjak@gmail.com> |
441 | ||
442 | PR target/49104 | |
443 | * lex.c (init_vectorized_lexer): Do not set "minimum" when __3dNOW_A__ | |
444 | is defined. Check bit_MMXEXT and bit_CMOV to use search_line_mmx. | |
445 | ||
e5b0dad8 JK |
446 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
447 | ||
448 | * system.h (ENUM_BITFIELD): Remove. | |
449 | ||
6cfae070 JJ |
450 | 2011-04-24 Jakub Jelinek <jakub@redhat.com> |
451 | ||
452 | PR preprocessor/48740 | |
453 | * lex.c (lex_raw_string): When raw string ends with | |
454 | ??) followed by raw prefix and ", ensure it is preprocessed | |
455 | with ??) rather than ??]. | |
456 | ||
04695783 JM |
457 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
458 | ||
459 | * files.c (destroy_cpp_file): Remove useless if-before-free. | |
460 | * init.c (cpp_destroy): Likewise. | |
461 | * macro.c (replace_args): Likewise. | |
462 | * pch.c (cpp_valid_state): Likewise. | |
463 | ||
4489800d KT |
464 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
465 | ||
466 | * files.c (file_hash_eq): Use filename_cmp | |
467 | instead of strcmp. | |
468 | (nonexistent_file_hash_eq): Likewise. | |
469 | (remap_filename): Likewise. | |
470 | Handle absolute DOS-path, | |
471 | (append_file_to_dir): Check for IS_DIR_SEPARATOR | |
472 | instead of slash. | |
473 | (read_name_map): Likewise. | |
474 | * linemap.c (linemap_add): Use filename_cmp | |
475 | instead of strcmp. | |
476 | * mkdeps.c (apply_vpath): Use filename_ncmp | |
477 | instead of strncmp. | |
478 | (deps_restore): Use filename_cmp instead of | |
479 | strcmp. | |
480 | * init.c (read_original_directory): Use | |
481 | IS_DIR_SEPARATOR instead of checking for slash. | |
482 | ||
f3c33d9d MM |
483 | 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
484 | ||
485 | PR preprocessor/48192 | |
486 | * directives.c (do_ifdef): Do not consider conditional macros as | |
487 | being defined. | |
488 | (do_ifndef): Ditto. | |
489 | * expr.c (parse_defined): Ditto. | |
490 | ||
01956319 RH |
491 | 2011-03-18 Richard Henderson <rth@redhat.com> |
492 | ||
493 | PR bootstrap/45381 | |
494 | * lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5. | |
495 | ||
c5a62c6f EB |
496 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
497 | Jakub Jelinek <jakub@redhat.com> | |
498 | ||
499 | PR preprocessor/39213 | |
500 | * directives.c (end_directive): Call _cpp_remove_overlay for deferred | |
501 | pragmas as well in traditional mode. | |
502 | ||
0e1a989c ILT |
503 | 2010-11-17 Ian Lance Taylor <iant@google.com> |
504 | ||
505 | PR bootstrap/45538 | |
506 | * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS. Remove switch of | |
507 | AC_LANG based on ENABLE_BUILD_WITH_CXX. | |
508 | ||
651a20b5 KT |
509 | 2010-11-16 Kai Tietz <kai.tietz@onevision.com> |
510 | ||
511 | PR preprocessor/17349 | |
512 | * lex.c (save_comment): Handle in argument passing c++ | |
513 | comments special. | |
514 | ||
480767a9 ILT |
515 | 2010-11-02 Ian Lance Taylor <iant@google.com> |
516 | ||
517 | * configure.ac: Use AC_SYS_LARGEFILE. | |
518 | * configure: Rebuild. | |
519 | * config.in: Rebuild. | |
520 | ||
078419c9 | 521 | 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net> |
480767a9 | 522 | |
078419c9 BS |
523 | * line-map.h (source_location): Remove obsolete comment |
524 | mentioning location_s. | |
525 | ||
d6874138 KT |
526 | 2010-09-29 Kai Tietz <kai.tietz@onevision.com> |
527 | ||
528 | PR preprocessor/45362 | |
529 | * directives.c (cpp_pop_definition): Make static. | |
530 | (do_pragma_push_macro): Reworked to store text | |
531 | definition. | |
532 | (do_pragma_pop_macro): Add free text definition. | |
533 | (cpp_push_definition): Removed. | |
534 | * include/cpplib.h (cpp_push_definition): Removed. | |
535 | (cpp_pop_definition): Likewise. | |
536 | * internal.h (def_pragma_macro): Remove member 'value' | |
537 | and add new members 'definition', 'line', | |
538 | 'syshdr', 'sued' and 'is_undef'. | |
539 | * pch.c (_cpp_restore_pushed_macros): Rework to work | |
540 | on text definition and store additional macro flags. | |
541 | (_cpp_save_pushed_macros): Likewise. | |
542 | ||
e3339d0f JM |
543 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
544 | ||
545 | * include/cpplib.h (cpp_options): Rename warn_deprecated, | |
546 | warn_traditional, warn_long_long and pedantic. | |
547 | * directives.c (directive_diagnostics, _cpp_handle_directive): | |
548 | Update names of cpp_options members. | |
549 | * expr.c (cpp_classify_number, eval_token): Update names of | |
550 | cpp_options members. | |
551 | * init.c (cpp_create_reader, post_options): Update names of | |
552 | cpp_options members. | |
553 | * internal.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Update names of | |
554 | cpp_options members. | |
555 | * macro.c (parse_params): Update names of cpp_options members. | |
556 | ||
128465e6 ILT |
557 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
558 | ||
559 | * init.c: Fix type name in comment. | |
560 | ||
a69d2520 JJ |
561 | 2010-08-31 Jakub Jelinek <jakub@redhat.com> |
562 | ||
563 | PR preprocessor/45457 | |
564 | * expr.c (parse_defined): Call pfile->cb.user_builtin_macro hook if | |
565 | needed. | |
566 | * directives.c (do_ifdef, do_ifndef): Likewise. | |
567 | ||
707bcb7a RO |
568 | 2010-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
569 | ||
570 | * system.h [HAVE_INTTYPES_H]: Include inttypes.h. | |
571 | ||
6f173e52 RH |
572 | 2010-08-24 Richard Henderson <rth@redhat.com> |
573 | ||
574 | PR bootstrap/45376 | |
575 | * configure.ac (HAVE_SSE4): New check. | |
576 | * configure, config.in: Rebuild. | |
577 | * lex.c (search_line_sse42): Omit if !HAVE_SSE4. | |
578 | ||
789d73cb RO |
579 | 2010-08-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
580 | ||
581 | * lex.c [__sun__ && __svr4__]: Disable init_vectorized_lexer | |
582 | etc. on Solaris 2/x86. | |
583 | ||
246a2fcb RH |
584 | 2010-08-21 Richard Henderson <rth@redhat.com> |
585 | Andi Kleen <ak@linux.intel.com> | |
586 | David S. Miller <davem@davemloft.net> | |
587 | ||
588 | * configure.ac (AC_C_BIGENDIAN, AC_TYPE_UINTPTR_T): New tests. | |
589 | (ssize_t): Check via AC_TYPE_SSIZE_T instead of AC_CHECK_TYPE. | |
590 | (ptrdiff_t): Check via AC_CHECK_TYPE. | |
591 | * config.in, configure: Rebuild. | |
592 | * system.h: Include stdint.h, if available. | |
593 | * lex.c (WORDS_BIGENDIAN): Provide default. | |
594 | (acc_char_mask_misalign, acc_char_replicate, acc_char_cmp, | |
595 | acc_char_index, search_line_acc_char, repl_chars, search_line_mmx, | |
596 | search_line_sse2, search_line_sse42, init_vectorized_lexer, | |
597 | search_line_fast): New. | |
598 | (_cpp_clean_line): Use search_line_fast. Restructure the fast | |
599 | loop to make it clear when we're leaving the loop. Stay in the | |
600 | fast loop for non-trigraph '?'. | |
601 | ||
8e680db5 JJ |
602 | 2010-06-11 Jakub Jelinek <jakub@redhat.com> |
603 | ||
604 | * include/cpplib.h (struct cpp_callbacks): Add user_builtin_macro | |
605 | callback. | |
606 | (enum cpp_builtin_type): Add BT_FIRST_USER and BT_LAST_USER. | |
607 | (cpp_macro_definition): Remove const qual from second argument. | |
608 | * macro.c (enter_macro_context): Call user_builtin_macro callback for | |
609 | NODE_BUILTIN !NODE_USED macros. | |
610 | (warn_of_redefinition): Likewise. Remove const qual from second | |
611 | argument. | |
612 | (cpp_macro_definition): Likewise. | |
613 | * pch.c (write_macdef, save_macros): Call user_builtin_macro callback | |
614 | for NODE_BUILTIN !NODE_USED macros. | |
615 | ||
1cb42611 JM |
616 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
617 | ||
618 | * include/cpplib.h (struct cpp_options): Remove show_column. | |
619 | * init.c (cpp_create_reader, post_options): Don't set show_column. | |
620 | ||
ff5dfc48 JR |
621 | 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com> |
622 | ||
623 | PR bootstrap/44432 | |
624 | * configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++, | |
625 | check that C++ compiler works. | |
626 | * configure: Regenerate. | |
627 | ||
a9429e29 LB |
628 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
629 | ||
630 | * include/symtab.h (ht_identifier_ptr): New. | |
631 | ||
c3f247f4 RW |
632 | 2010-06-03 Joern Rennecke <joern.rennecke@embecosm.com> |
633 | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | |
634 | ||
635 | PR bootstrap/42798 | |
636 | * configure.ac: Check for declaration of 'basename(char *)'. | |
637 | * configure: Regenerate. | |
638 | * config.in: Regenerate. | |
639 | ||
2778d766 JM |
640 | 2010-04-25 Joseph Myers <joseph@codesourcery.com> |
641 | ||
642 | * include/cpplib.h (enum c_lang): Add CLK_GNUC1X and CLK_STDC1X. | |
643 | * init.c (lang_defaults): Add entries for new language variants. | |
644 | (cpp_init_builtins): Define __STDC_VERSION__ to 201000L for C1X | |
645 | variants. | |
646 | ||
d8a12e84 MLI |
647 | 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
648 | ||
649 | PR cpp/43195 | |
650 | * files.c (report_missing_guard): Test for #pragma once. | |
651 | ||
87cf0651 SB |
652 | 2010-04-07 Simon Baldwin <simonb@google.com> |
653 | ||
654 | * directives.c (do_diagnostic): Add warning reason argument, | |
655 | call appropriate error reporting function for code. | |
656 | (directive_diagnostics): Call specific warning functions with | |
657 | warning reason where appropriate. | |
658 | (do_error, do_warning, do_pragma_dependency): Add warning reason | |
659 | argument to do_diagnostic calls. | |
660 | * macro.c (_cpp_warn_if_unused_macro, enter_macro_context, | |
661 | _cpp_create_definition): Call specific warning functions with | |
662 | warning reason where appropriate. | |
663 | * Makefile.in: Add new diagnostic functions to gettext translations. | |
664 | * include/cpplib.h (struct cpp_callbacks): Add warning reason code | |
665 | to error callback. | |
666 | (CPP_DL_WARNING, CPP_DL_WARNING_SYSHDR, CPP_DL_PEDWARN, CPP_DL_ERROR, | |
667 | CPP_DL_ICE, CPP_DL_NOTE, CPP_DL_FATAL): Replace macros with enums. | |
668 | (CPP_W_NONE, CPP_W_DEPRECATED, CPP_W_COMMENTS, | |
669 | CPP_W_MISSING_INCLUDE_DIRS, CPP_W_TRIGRAPHS, CPP_W_MULTICHAR, | |
670 | CPP_W_TRADITIONAL, CPP_W_LONG_LONG, CPP_W_ENDIF_LABELS, | |
671 | CPP_W_NUM_SIGN_CHANGE, CPP_W_VARIADIC_MACROS, | |
672 | CPP_W_BUILTIN_MACRO_REDEFINED, CPP_W_DOLLARS, CPP_W_UNDEF, | |
673 | CPP_W_UNUSED_MACROS, CPP_W_CXX_OPERATOR_NAMES, CPP_W_NORMALIZE, | |
674 | CPP_W_INVALID_PCH, CPP_W_WARNING_DIRECTIVE): New enums for cpp | |
675 | warning reason codes. | |
676 | (cpp_warning, cpp_pedwarning, cpp_warning_syshdr, | |
677 | cpp_warning_with_line, cpp_pedwarning_with_line, | |
678 | cpp_warning_with_line_syshdr): New specific error reporting functions. | |
679 | * pch.c (cpp_valid_state): Call specific warning functions with | |
680 | warning reason where appropriate. | |
681 | * errors.c (cpp_diagnostic, cpp_diagnostic_with_line): New central | |
682 | diagnostic handlers. | |
683 | (cpp_warning, cpp_pedwarning, cpp_warning_syshdr, | |
684 | cpp_warning_with_line, cpp_pedwarning_with_line, | |
685 | cpp_warning_with_line_syshdr): New specific error reporting functions. | |
686 | * expr.c (cpp_classify_number, eval_token, num_unary_op): Call | |
687 | specific warning functions with warning reason where appropriate. | |
688 | * lex.c (_cpp_process_line_notes, _cpp_skip_block_comment, | |
689 | warn_about_normalization, lex_identifier_intern, lex_identifier, | |
690 | _cpp_lex_direct): Ditto. | |
691 | * charset.c (_cpp_valid_ucn, convert_hex, convert_escape, | |
692 | narrow_str_to_charconst): Ditto. | |
693 | ||
d947ada0 JJ |
694 | 2010-04-06 Jakub Jelinek <jakub@redhat.com> |
695 | ||
696 | PR preprocessor/43642 | |
697 | * lex.c (lex_raw_string): Change type of TYPE variable to | |
698 | unsigned char. | |
699 | ||
4d9e8446 RW |
700 | 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
701 | ||
702 | * aclocal.m4: Regenerate. | |
703 | ||
52150625 JM |
704 | 2010-03-29 Jason Merrill <jason@redhat.com> |
705 | ||
00a81b8b JM |
706 | More N3077 raw string changes |
707 | * charset.c (cpp_interpret_string): Don't transform UCNs in raw | |
708 | strings. | |
709 | * lex.c (bufring_append): Split out from... | |
710 | (lex_raw_string): ...here. Undo trigraph and line splicing | |
711 | transformations. Do process line notes in multi-line literals. | |
712 | (_cpp_process_line_notes): Ignore notes that were already handled. | |
713 | ||
52150625 JM |
714 | Some raw string changes from N3077 |
715 | * charset.c (cpp_interpret_string): Change inner delimiters to (). | |
716 | * lex.c (lex_raw_string): Likewise. Also disallow '\' in delimiter. | |
717 | ||
709d7160 JJ |
718 | 2010-02-11 Jakub Jelinek <jakub@redhat.com> |
719 | ||
720 | * init.c (read_original_filename): Don't call read_original_directory | |
721 | if _cpp_handle_directive returns 0. | |
722 | ||
dadab4fd JM |
723 | 2010-01-01 Joseph Myers <joseph@codesourcery.com> |
724 | ||
725 | PR preprocessor/41947 | |
726 | * expr.c (cpp_classify_number): Give error for hexadecimal | |
727 | floating-point constant with no digits before or after point. | |
728 | ||
3de8a540 AC |
729 | 2009-11-20 Arnaud Charlet <charlet@adacore.com> |
730 | ||
731 | * macro.c (enter_macro_context): Call cb.used callback if defined. | |
732 | * directives.c (do_idef, do_ifndef): Ditto. | |
733 | * include/cpplib.h (struct cpp_callbacks): Add used callback. | |
734 | ||
17e7cb85 KT |
735 | 2009-11-11 Kai Tietz <kai.tietz@onevision.com> |
736 | ||
737 | * directives.c (do_pragma_push_macro): New pragma handler. | |
738 | (do_pragma_pop_macro): Likewise. | |
739 | (_cpp_init_internal_pragmas): Add push_macro and | |
740 | pop_macro handler to internal pragmas. | |
741 | (lex_macro_node_from_str): Removed. | |
742 | (cpp_push_definition): Replace lex_macro_node_from_str | |
743 | by _cpp_lex_identifier. | |
744 | (cpp_pop_definition): Likewise. | |
745 | * internal.h (_cpp_lex_identifier): New prototype. | |
746 | (def_pragma_macro): New structure. | |
747 | (cpp_reader): New member pushed_macros. | |
748 | * lex.c (_cpp_lex_identifier): New function. | |
749 | (lex_identifier_intern): New function. | |
750 | * init.c (cpp_create_reader): Initialize pushed_macros | |
751 | member. | |
752 | (cpp_destroy): Free elements in pushed_macros member. | |
753 | * pch.c (_cpp_save_pushed_macros): New function. | |
754 | (_cpp_restore_pushed_macros): Likewise. | |
755 | (_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros. | |
756 | (cpp_read_state): Use _cpp_restore_pushed_macros. | |
757 | ||
2c6e3f55 JJ |
758 | 2009-10-19 Jakub Jelinek <jakub@redhat.com> |
759 | ||
760 | * charset.c (cpp_init_iconv): Initialize utf8_cset_desc. | |
761 | (_cpp_destroy_iconv): Destroy utf8_cset_desc, char16_cset_desc | |
762 | and char32_cset_desc. | |
763 | (converter_for_type): Handle CPP_UTF8STRING. | |
764 | (cpp_interpret_string): Handle CPP_UTF8STRING and raw-strings. | |
765 | * directives.c (get__Pragma_string): Handle CPP_UTF8STRING. | |
766 | (parse_include): Reject raw strings. | |
767 | * include/cpplib.h (CPP_UTF8STRING): New token type. | |
768 | * internal.h (struct cpp_reader): Add utf8_cset_desc field. | |
769 | * lex.c (lex_raw_string): New function. | |
770 | (lex_string): Handle u8 string literals, call lex_raw_string | |
771 | for raw string literals. | |
772 | (_cpp_lex_direct): Call lex_string even for u8" and {,u,U,L,u8}R" | |
773 | sequences. | |
774 | * macro.c (stringify_arg): Handle CPP_UTF8STRING. | |
775 | ||
96c169e1 JJ |
776 | 2009-10-14 Jakub Jelinek <jakub@redhat.com> |
777 | ||
778 | PR preprocessor/41543 | |
779 | * include/line-map.h (RESERVED_LOCATION_COUNT): Define. | |
780 | * line-map.c (linemap_init): Initialize highest_location and | |
781 | highest_line to RESERVED_LOCATION_COUNT-1 instead of 0. | |
782 | ||
30c99a9e JM |
783 | 2009-10-09 Jason Merrill <jason@redhat.com> |
784 | ||
785 | * charset.c (_cpp_valid_ucn): Update C++0x restrictions. | |
786 | ||
2214382c NV |
787 | 2009-10-09 Neil Vachharajani <nvachhar@google.com> |
788 | ||
789 | * directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and | |
790 | sccs. | |
791 | ||
e02222d2 LR |
792 | 2009-09-23 Loren J. Rittle <ljrittle@acm.org> |
793 | ||
794 | * configure.ac (AC_CHECK_HEADERS after AC_LANG(C++)): Add sys/stat.h. | |
795 | * configure: Rebuilt. | |
796 | ||
9a8a2b7a RG |
797 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
798 | ||
799 | PR pch/38987 | |
800 | * files.c (pch_open_file): Disallow non-toplevel PCH inclusion. | |
801 | ||
74dc6a11 CD |
802 | 2009-09-18 Chris Demetriou <cgd@google.com> |
803 | ||
804 | PR preprocessor/28435: | |
805 | * include/cpplib.h (struct cpp_options): Add new member | |
806 | deps.need_preprocessor_output. | |
807 | * files.c (open_file_failed): If preprocessor output is needed | |
808 | always report an error. | |
809 | ||
933608b7 KT |
810 | 2009-09-13 Kai Tietz <kai.tietz@onevision.com> |
811 | ||
812 | * configure.ac: Set for i?86-w64-mingw* | |
813 | need_64bit_hwint to yes. | |
814 | * configure: Regenerated. | |
815 | ||
86373e7e JM |
816 | 2009-09-10 Jason Merrill <jason@redhat.com> |
817 | ||
818 | * directives.c (cpp_define): constify. | |
819 | ||
fd2ab214 ILT |
820 | 2009-09-02 Ian Lance Taylor <iant@google.com> |
821 | ||
822 | * macro.c (stringify_arg): Escape CPP_WCHAR tokens. | |
823 | ||
df58e648 RW |
824 | 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
825 | ||
826 | * configure.ac (AC_PREREQ): Bump to 2.64. | |
827 | ||
5213506e RW |
828 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
829 | ||
830 | * aclocal.m4: Regenerate. | |
831 | * config.in: Regenerate. | |
832 | * configure: Regenerate. | |
833 | ||
709a22df TT |
834 | 2009-08-17 Tom Tromey <tromey@redhat.com> |
835 | ||
836 | PR preprocessor/41067: | |
837 | * charset.c (convert_escape): Add missing ":" to error text. | |
838 | ||
0c539b47 DR |
839 | 2009-07-27 Douglas B Rupp <rupp@gnat.com> |
840 | ||
841 | * include/cpplib.h (INO_T_CPP): New macro. | |
842 | (struct cpp_dir): Use it. | |
843 | ||
2b69c841 JQ |
844 | 2009-07-20 Jerry Quinn <jlquinn@optonline.net> |
845 | ||
846 | PR regression/40800 | |
847 | * configure.ac: Use = instead of == for testing | |
848 | ENABLE_BUILD_WITH_CXX. | |
849 | * configure: Rebuild. | |
850 | ||
f1bf410c JQ |
851 | 2009-07-17 Jerry Quinn <jlquinn@optonline.net> |
852 | ||
853 | * directives.c (do_linemarker, do_line): Use CPP_STRING for | |
854 | ignored enum value. | |
855 | * files.c (find_file_in_dir): Add cast from void* to char*. | |
856 | * symtab.c (ht_lookup_with_hash): Add cast from void* to char*. | |
857 | * Makefile.in: (WARN_CFLAGS): Use general and C-specific | |
858 | warnings. | |
859 | (CXX, CXXFLAGS, WARN_CXXFLAGS, ALL_CXXFLAGS, | |
860 | ENABLE_BUILD_WITH_CXX, CCDEPMODE, CXXDEPMODE, COMPILER, | |
861 | COMPILER_FLAGS): New. | |
862 | (DEPMODE): Set from CCDEPMODE or CXXDEPMODE. | |
863 | (COMPILE.base): Use COMPILER instead of CC. Use COMPILER_FLAGS | |
864 | instead of ALL_CFLAGS. | |
865 | * configure.ac: Invoke AC_PROG_CXX. Separate C-specific warnings | |
866 | from other warnings. Add -Wc++-compat to C-specific warnings. | |
867 | Check for --enable-build-with-cxx. Set and substitute | |
868 | ENABLE_BUILD_WITH_CXX. Invoke ZW_PROG_COMPILER_DEPENDENCIES | |
869 | according to ENABLE_BUILD_WITH_CXX. Invoke AC_LANG before | |
870 | AC_CHECK_HEADERS. | |
871 | * configure: Rebuild. | |
872 | * include/cpp-id-data.h: Remove extern "C". | |
873 | * include/line-map.h: Likewise. | |
874 | * include/mkdeps.h: Likewise. | |
875 | * include/symtab.h: Likewise. | |
876 | * internal.h: Likewise. | |
877 | ||
a28fbdba MLI |
878 | 2009-06-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
879 | ||
880 | * directives.c (parse_include): Add location argument. Update all | |
881 | calls. | |
882 | (parse_answer): Likewise. | |
883 | (do_include_common): Error with exact location. | |
884 | (parse_assertion): Likewise. | |
885 | ||
b506a5a2 MLI |
886 | 2009-06-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
887 | ||
888 | * expr.c (num_div_op): Take explicit location. | |
889 | ||
7d8847a4 ILT |
890 | 2009-06-17 Ian Lance Taylor <iant@google.com> |
891 | ||
892 | * include/cpplib.h (progname): Don't declare. | |
893 | ||
3d8b2a98 ILT |
894 | 2009-06-12 Ian Lance Taylor <iant@google.com> |
895 | ||
896 | * include/cpplib.h (struct cpp_options): Add | |
897 | warn_cxx_operator_names field. | |
898 | (NODE_WARN_OPERATOR): Define. | |
899 | (struct cpp_hashnode): Increase flags field to 10 bits, decrease | |
900 | type to 6 bits. | |
901 | * init.c (mark_named_operators): Add flags parameter. | |
902 | (cpp_post_options): Pick flags value to pass to | |
903 | mark_named_operators. | |
904 | * lex.c (lex_identifier): If NODE_WARN_OPERATOR is set, warn that | |
905 | identifier is an operator name in C++. | |
906 | ||
e74fe492 AH |
907 | 2009-06-01 Aldy Hernandez <aldyh@redhat.com> |
908 | ||
909 | * include/line-map.h (LAST_SOURCE_COLUMN): New. | |
910 | ||
4851089f ILT |
911 | 2009-06-01 Ian Lance Taylor <iant@google.com> |
912 | ||
913 | * include/cpp-id-data.h: Add extern "C". | |
914 | * include/line-map.h: Likewise. | |
915 | * include/mkdeps.h: Likewise. | |
916 | * include/symtab.h: Likewise. | |
917 | * internal.h: Likewise. | |
918 | ||
7e5487a2 ILT |
919 | 2009-05-15 Ian Lance Taylor <iant@google.com> |
920 | ||
921 | * include/cpplib.h (enum cpp_builtin_type): Rename from enum | |
922 | builtin_type. Change all uses. | |
923 | ||
00b0c19b MLI |
924 | 2009-05-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
925 | ||
926 | PR cpp/36674 | |
927 | * directives (do_linemarker): Compensate for the increment in | |
928 | location that occurs when we reach the end of line. | |
929 | * files (_cpp_stack_include): Mention _cpp_find_file in the | |
930 | comment. | |
931 | ||
9a0c6187 JM |
932 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
933 | ||
934 | * include/cpplib.h (enum cpp_token_fld_kind): Add | |
935 | CPP_TOKEN_FLD_TOKEN_NO. | |
936 | (struct cpp_macro_arg, struct cpp_identifier): Define. | |
937 | (union cpp_token_u): Use struct cpp_identifier for identifiers. | |
938 | Use struct cpp_macro_arg for macro arguments. Add token_no for | |
939 | CPP_PASTE token numbers. | |
940 | * directives.c (_cpp_handle_directive, lex_macro_node, do_pragma, | |
941 | do_pragma_poison, parse_assertion): Use val.node.node in place of | |
942 | val.node. | |
943 | * expr.c (parse_defined, eval_token): Use val.node.node in place | |
944 | of val.node. | |
945 | * lex.c (cpp_ideq, _cpp_lex_direct, cpp_token_len, | |
946 | cpp_spell_token, cpp_output_token, _cpp_equiv_tokens, | |
947 | cpp_token_val_index): Use val.macro_arg.arg_no or val.token_no in | |
948 | place of val.arg_no. Use val.node.node in place of val.node. | |
949 | * macro.c (replace_args, cpp_get_token, parse_params, | |
950 | lex_expansion_token, create_iso_definition, cpp_macro_definition): | |
951 | Use val.macro_arg.arg_no or val.token_no in place of val.arg_no. | |
952 | Use val.node.node in place of val.node. | |
953 | ||
9e322bc1 JM |
954 | 2009-05-03 Joseph Myers <joseph@codesourcery.com> |
955 | ||
956 | * charset.c (one_utf8_to_cppchar): Correct mask used for 5-byte | |
957 | UTF-8 sequences. | |
958 | ||
f88d0772 JM |
959 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
960 | ||
961 | PR preprocessor/39559 | |
962 | * expr.c (cpp_interpret_integer): Use a pedwarn for decimal | |
963 | constants larger than intmax_t in C99 mode. | |
964 | ||
d1b38208 TG |
965 | 2009-04-21 Taras Glek <tglek@mozilla.com> |
966 | ||
967 | * include/cpp-id-data.h: Update GTY annotations to new syntax. | |
968 | * include/cpplib.h: Likewise. | |
969 | * include/line-map.h: Likewise. | |
970 | * include/symtab.h: Likewise. | |
971 | ||
cfc93532 MLI |
972 | 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
973 | ||
974 | PR c++/14875 | |
975 | * lex.c (cpp_type2name): Take a flags parameter. Call | |
976 | cpp_named_operator2name for named operators and cpp_digraph2name | |
977 | for digraphs. | |
978 | (cpp_digraph2name): New. | |
979 | (cpp_spell_token): Use it. | |
980 | (cpp_output_token): Likewise. | |
981 | * include/cpplib.h (cpp_type2name): Update declaration. | |
982 | * init.c (cpp_named_operator2name): New. | |
983 | * internal.h (cpp_named_operator2name): Declare. | |
984 | ||
9c650d90 MLI |
985 | 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
986 | ||
987 | PR c++/13358 | |
988 | * init.c (cpp_create_reader): Wlong_long is disabled by default. | |
989 | * expr.c (cpp_classify_number): Give different messages for C and | |
990 | C++ front-ends. | |
991 | ||
aa508502 JM |
992 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
993 | ||
994 | PR preprocessor/20078 | |
995 | * include/cpp-id-data.h (struct cpp_macro): Add extra_tokens | |
996 | field. | |
997 | * include/cpplib.h (SP_DIGRAPH, SP_PREV_WHITE): Define. | |
998 | (struct cpp_token): Change flags to unsigned short. | |
999 | * lex.c (_cpp_lex_direct): Initialize arg_no for CPP_PASTE tokens. | |
1000 | (_cpp_equiv_tokens): Check arg_no for CPP_PASTE tokens. | |
1001 | (cpp_token_val_index): Return CPP_TOKEN_FLD_ARG_NO for CPP_PASTE | |
1002 | tokens. | |
1003 | * macro.c (macro_real_token_count): New. | |
1004 | (enter_macro_context, replace_args): Use macro_real_token_count. | |
1005 | (create_iso_definition): Record whitespace surrounding and digraph | |
1006 | spelling of # and ## tokens using SP_PREV_WHITE and SP_DIGRAPH. | |
1007 | Set extra_tokens and save CPP_PASTE tokens with arg_no set for | |
1008 | multiple consecutive ## tokens. | |
1009 | (_cpp_create_definition): Initialize extra_tokens. | |
1010 | (cpp_macro_definition): Use macro_real_token_count. | |
1011 | ||
61cc8223 JM |
1012 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
1013 | ||
1014 | * directives.c (parse_include): Pass true to check_eol. | |
1015 | ||
c7f9c0b9 JM |
1016 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
1017 | ||
1018 | PR preprocessor/39646 | |
1019 | * include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM. | |
1020 | * line-map.c (linemap_add): Handle LC_RENAME_VERBATIM. | |
1021 | * directives.c (do_line, do_linemarker): Use LC_RENAME_VERBATIM in | |
1022 | place of LC_RENAME. | |
1023 | ||
a5cb563b JM |
1024 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
1025 | ||
1026 | PR preprocessor/39647 | |
1027 | * directives.c (check_eol): Add parameter expand. | |
1028 | (do_undef, parse_include, do_line, do_linemarker, do_ident, | |
1029 | do_pragma_once, do_pragma_system_header, do_ifdef, do_ifndef, | |
1030 | do_else, do_endif, do_assert, do_unassert): All callers changed. | |
1031 | Pass true from do_line, false elsewhere. | |
1032 | ||
18f41a1b JM |
1033 | 2009-04-12 Joseph Myers <joseph@codesourcery.com> |
1034 | ||
1035 | PR preprocessor/31869 | |
1036 | * macro.c (stringify_arg): Handle NULL source token in padding | |
1037 | token where previous padding token did not have source token with | |
1038 | preceding whitespace. | |
1039 | ||
748086b7 JJ |
1040 | 2009-04-09 Jakub Jelinek <jakub@redhat.com> |
1041 | ||
1042 | * Makefile.in: Change copyright header to refer to version | |
1043 | 3 of the GNU General Public License and to point readers at the | |
1044 | COPYING3 file and the FSF's license web page. | |
1045 | * charset.c: Likewise. | |
1046 | * directives-only.c: Likewise. | |
1047 | * directives.c: Likewise. | |
1048 | * errors.c: Likewise. | |
1049 | * expr.c: Likewise. | |
1050 | * files.c: Likewise. | |
1051 | * identifiers.c: Likewise. | |
1052 | * include/cpp-id-data.h: Likewise. | |
1053 | * include/cpplib.h: Likewise. | |
1054 | * include/line-map.h: Likewise. | |
1055 | * include/mkdeps.h: Likewise. | |
1056 | * include/symtab.h: Likewise. | |
1057 | * init.c: Likewise. | |
1058 | * internal.h: Likewise. | |
1059 | * lex.c: Likewise. | |
1060 | * line-map.c: Likewise. | |
1061 | * macro.c: Likewise. | |
1062 | * makeucnid.c: Likewise. | |
1063 | * mkdeps.c: Likewise. | |
1064 | * pch.c: Likewise. | |
1065 | * symtab.c: Likewise. | |
1066 | * system.h: Likewise. | |
1067 | * traditional.c: Likewise. | |
1068 | * ucnid.tab: Likewise. | |
1069 | * ucnid.h: Regenerate. | |
1070 | ||
eec49116 JJ |
1071 | 2009-04-01 Janis Johnson <janis187@us.ibm.com> |
1072 | ||
839a3b8a JJ |
1073 | PR c/39027 |
1074 | * include/cpplib.h (CPP_N_DEFAULT): Define. | |
1075 | * expr.c (interpret_float_suffix): Recognize d or D for double, | |
1076 | return new value for default. | |
1077 | (cpp_classify_number): Issue pedwarn for use of d or D in suffix. | |
1078 | ||
eec49116 JJ |
1079 | PR c/33466 |
1080 | * expr.c (interpret_float_suffix): Reject invalid suffix that uses | |
1081 | letters from decimal float and fixed-point suffixes. | |
1082 | ||
47580d22 JM |
1083 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
1084 | ||
1085 | PR preprocessor/15638 | |
1086 | * files.c (_cpp_find_file): Call open_file_failed after diagnosing | |
1087 | invalid PCH. | |
1088 | (open_file_failed): Make error for missing file fatal. | |
1089 | * include/cpplib.h (CPP_DL_FATAL): Define. | |
1090 | ||
5a2df0fa SV |
1091 | 2009-03-30 Sergiy Vyshnevetskiy <serg@vostok.net> |
1092 | ||
1093 | PR preprocessor/31932: | |
1094 | * internal.h: Don't mention HAVE_ICONV_H. | |
1095 | * configure, config.in: Rebuild. | |
1096 | * configure.ac: Don't check for iconv.h. | |
1097 | ||
c1a8a3c6 TT |
1098 | 2009-03-30 Tom Tromey <tromey@redhat.com> |
1099 | ||
1100 | PR preprocessor/39512: | |
1101 | * line-map.c (linemap_init): Initialize 'reallocator' field. | |
1102 | ||
a37a7b8a JJ |
1103 | 2009-03-30 Jakub Jelinek <jakub@redhat.com> |
1104 | ||
1105 | PR target/39558 | |
1106 | * macro.c (cpp_get_token): If macro_to_expand returns NULL | |
1107 | and used some tokens, add CPP_PADDING before next token. | |
1108 | ||
148e4216 JM |
1109 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
1110 | ||
1111 | PR preprocessor/34695 | |
1112 | * makedepend.c: Remove. | |
1113 | * Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove. | |
1114 | (all, clean, TAGS_SOURCES, include): Remove makedepend handling. | |
1115 | * directives.c (cpp_errors): Remove. | |
1116 | * errors.c (print_location, _cpp_begin_message, v_message): | |
1117 | Remove. | |
1118 | (cpp_error, cpp_error_with_line): Always use error callback. | |
1119 | (cpp_error, cpp_error_with_line, cpp_errno): Return bool. | |
1120 | * include/cpplib.h (cpp_options): Remove pedantic_errors, | |
1121 | inhibit_warnings, warn_system_headers, inhibit_errors, | |
1122 | warnings_are_errors, client_diagnostic. | |
1123 | (cpp_callbacks): Add extra arguments to error callback; make it | |
1124 | return bool. | |
1125 | (cpp_finish): Return void. | |
1126 | (cpp_destroy): Remove inaccurate comment about return value. | |
1127 | (cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove. | |
1128 | (CPP_DL_NOTE): Define. | |
1129 | * include/line-map.h (linemap_print_containing_files): Remove. | |
1130 | * init.c (cpp_finish): Do not check for or return number of | |
1131 | errors. | |
1132 | * internal.h (cpp_reader): Remove errors field. | |
1133 | * line-map.c (linemap_print_containing_files): Remove. | |
1134 | * macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message | |
1135 | about previous definition. Only emit it if previous diagnostic | |
1136 | was emitted. | |
1137 | ||
f1450211 JM |
1138 | 2009-03-28 Joseph Myers <joseph@codesourcery.com> |
1139 | ||
1140 | * Makefile.in (po/$(PACKAGE).pot): Use $(mkinstalldirs) not | |
1141 | mkinstalldirs. | |
1142 | ||
8f5929e1 JJ |
1143 | 2009-03-18 Jakub Jelinek <jakub@redhat.com> |
1144 | ||
1145 | * include/cpplib.h (struct cpp_dir): Reorder fields for 64-bit hosts. | |
1146 | ||
4bb09c26 JM |
1147 | 2009-02-21 Joseph Myers <joseph@codesourcery.com> |
1148 | ||
1149 | * lex.c (lex_string): Return a CPP_LESS token for missing '>' in a | |
1150 | header name. | |
1151 | (_cpp_lex_direct): Handle this. | |
1152 | ||
68c9ab45 RG |
1153 | 2009-02-15 Richard Guenther <rguenther@suse.de> |
1154 | ||
1155 | Revert last change. | |
1156 | ||
601b3e1a RG |
1157 | 2009-02-13 Richard Guenther <rguenther@suse.de> |
1158 | ||
1159 | * configure.ac: Enable LFS. | |
1160 | * configure: Re-generate. | |
1161 | * config.in: Likewise. | |
1162 | ||
fc0cd180 BE |
1163 | 2009-01-05 Ben Elliston <bje@au.ibm.com> |
1164 | ||
1165 | * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir. | |
1166 | (.po.pox): Likewise. | |
1167 | (po/$(PACKAGE).pot): Likewise. | |
1168 | ||
db89a3be AO |
1169 | 2008-12-10 Alexandre Oliva <aoliva@redhat.com> |
1170 | ||
1171 | PR target/37033 | |
1172 | * pch.c (cpp_valid_state): Improve message for poisoned symbols. | |
1173 | Allow for differences in __GCC_HAVE_DWARF2_CFI_ASM. | |
1174 | ||
cc955282 JM |
1175 | 2008-11-29 Joseph Myers <joseph@codesourcery.com> |
1176 | ||
1177 | * lex.c (cpp_token_len): Use 6 as default length. | |
1178 | ||
47960aaf MLI |
1179 | 2008-10-31 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1180 | ||
1181 | * expr.c (struct op): Add location. | |
1182 | (_cpp_parse_expr): Propagate locations throught the stack | |
1183 | of expressions. | |
1184 | (reduce): Likewise. | |
1185 | (check_promotion): Use explicit location in errors. | |
1186 | ||
631d0d36 MG |
1187 | 2008-10-05 Matthew Gingell <gingell@adacore.com> |
1188 | Arnaud Charlet <charlet@adacore.com> | |
1189 | ||
1190 | * include/cpplib.h (cpp_comments, cpp_comment_table): New structs. | |
1191 | (cpp_get_comments): New function. | |
1192 | * internal.h (struct cpp_reader): Add comments field. | |
1193 | * init.c (cpp_destroy): Free comments. | |
1194 | * lex.c (store_comment, cpp_get_comments): New functions. | |
1195 | (comments): New struct. | |
1196 | (save_comment): Store comments in comments struct. | |
1197 | ||
c047ce93 SB |
1198 | 2008-09-18 Simon Baldwin <simonb@google.com> |
1199 | ||
1200 | * include/cpplib.h (struct cpp_options): Add new boolean flag | |
1201 | warn_builtin_macro_redefined. | |
1202 | * init.c (cpp_create_reader): Initialize warn_builtin_macro_redefined. | |
1203 | * (struct builtin_operator): Split out from previous struct builtin, | |
1204 | enhance extra const correctness. | |
1205 | * (struct builtin_macro): Split out from previous struct builtin, add | |
1206 | new always_warn_if_redefined flag, enhance const correctness. | |
1207 | * (mark_named_operators): Use struct builtin_operator. | |
1208 | * (cpp_init_special_builtins): Use struct builtin_macro, add NODE_WARN | |
1209 | to builtins selectively. | |
1210 | * macro.c (warn_of_redefinition): Return false if a builtin macro | |
1211 | is not flagged with NODE_WARN. | |
1212 | ||
affa55c6 JJ |
1213 | 2008-07-31 Jakub Jelinek <jakub@redhat.com> |
1214 | ||
1215 | PR preprocessor/36649 | |
1216 | * files.c (struct report_missing_guard_data): New type. | |
1217 | (report_missing_guard): Put paths into an array instead of printing | |
1218 | them right away. Return 1 rather than 0. | |
1219 | (report_missing_guard_cmp): New function. | |
1220 | (_cpp_report_missing_guards): Sort and print paths gathered by | |
1221 | report_missing_guard callback. | |
1222 | ||
3b8f20a1 MLI |
1223 | 2008-07-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
1224 | ||
1225 | PR 28079 | |
1226 | * directives.c (strtolinenum): Handle overflow. | |
1227 | (do_line): Give a warning if line number overflowed. | |
1228 | (do_linemarker): Update call to strtolinenum. | |
1229 | ||
1bb64668 MLI |
1230 | 2008-07-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
1231 | ||
1232 | * include/line-map.h (linenum_type): New typedef. | |
1233 | (struct line_map): Use it. | |
1234 | (SOURCE_LINE): Second arguments is a LOCATION not a LINE. | |
1235 | (SOURCE_COLUMN): Likewise. | |
1236 | * macro.c (_cpp_builtin_macro_text): Use linenum_type. Don't store | |
1237 | source_location values in a variable of type linenum_type. | |
1238 | * directives.c (struct if_stack): Use linenum_type. | |
1239 | (strtoul_for_line): Rename as strtolinenum. | |
1240 | (do_line): Use linenum_type. | |
1241 | (do_linemarker): Use linenum_type and strtolinenum. | |
1242 | (_cpp_do_file_change): Use linenum_t. | |
1243 | * line-map.c (linemap_add): Likewise. | |
1244 | (linemap_line_start): Likewise. | |
1245 | * traditional.c (struct fun_macro): 'line' is a source_location. | |
1246 | * errors.c (print_location): Use linenum_type. | |
1247 | * directives-only.c (_cpp_preprocess_dir_only): Likewise. | |
1248 | * internal.h (CPP_INCREMENT_LINE): Likewise. | |
1249 | * lex.c (_cpp_skip_block_comment): Use source_location. | |
1250 | ||
5950c3c9 BE |
1251 | 2008-07-14 Ben Elliston <bje@au.ibm.com> |
1252 | ||
1253 | * include/cpplib.h (NODE_CONDITIONAL): New. | |
1254 | (struct cpp_callbacks): New macro_to_expand field. | |
1255 | (struct cpp_hashnode): Adjust size of flags and type fields. | |
1256 | (cpp_peek_token): Prototype. | |
1257 | * lex.c (cpp_peek_token): New function. | |
1258 | (_cpp_temp_token): Protect pre-existing lookaheads. | |
1259 | * macro.c (cpp_get_token): Expand any conditional macros. | |
1260 | (_cpp_backup_tokens_direct): New. | |
1261 | (_cpp_backup_tokens): Call _cpp_backup_tokens_direct. | |
1262 | (warn_of_redefinition): Silently allow redefined conditional | |
1263 | macros. | |
1264 | (_cpp_create_definition): Remove the conditional flag when a user | |
1265 | defines one of the conditional macros. | |
1266 | * internal.h (_cpp_backup_tokens_direct): New prototype. | |
1267 | ||
e85edc9e AH |
1268 | 2008-06-13 Andrew Haley <aph@redhat.com> |
1269 | ||
1270 | PR preprocessor/33305 | |
1271 | * macro.c (replace_args): Print a warning for empty macro | |
1272 | arguments in C89 and C++. | |
1273 | ||
18c04407 RW |
1274 | 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1275 | ||
1276 | * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies. | |
1277 | * configure: Regenerate. | |
1278 | ||
2d09b640 RW |
1279 | 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1280 | ||
1281 | * Makefile.in (datarootdir): New variable. | |
1282 | ||
0b7c73cc L |
1283 | 2008-06-12 H.J. Lu <hongjiu.lu@intel.com> |
1284 | ||
1285 | PR preprocessor/36479 | |
1286 | * charset.c (cpp_interpret_string_notranslate): Also set | |
1287 | narrow_cset_desc.width. | |
1288 | ||
cd985f66 JM |
1289 | 2008-06-07 Joseph Myers <joseph@codesourcery.com> |
1290 | ||
1291 | * configure.ac (parisc*64*-*-*): Remove. | |
1292 | * configure: Regenerate. | |
1293 | ||
d750887f TT |
1294 | 2008-05-30 Tom Tromey <tromey@redhat.com> |
1295 | ||
1296 | PR preprocessor/36320: | |
1297 | * internal.h (_cpp_parse_expr): Update. | |
1298 | * expr.c (_cpp_parse_expr): Add 'is_if' argument. Update error | |
1299 | messages. | |
1300 | * directives.c (do_if): Update. | |
1301 | (do_elif): Require expression if processing group. | |
1302 | ||
c100de59 DS |
1303 | 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net> |
1304 | ||
1305 | * include/cpplib.h (struct cpp_dir): Add new field, canonical_name. | |
1306 | ||
5d6342eb TT |
1307 | 2008-05-21 Tom Tromey <tromey@redhat.com> |
1308 | ||
1309 | PR preprocessor/27777: | |
1310 | * lex.c (cpp_output_line_to_string): New function. | |
1311 | * internal.h (_cpp_begin_message): Don't declare. | |
1312 | * errors.c (_cpp_begin_message): Now static. | |
1313 | * include/cpplib.h (cpp_output_line_to_string): Declare. | |
1314 | * directives.c (do_diagnostic): Rewrote. Use | |
1315 | cpp_output_line_to_string. Don't use _cpp_begin_message. | |
1316 | ||
dae4174e TT |
1317 | 2008-05-21 Tom Tromey <tromey@redhat.com> |
1318 | ||
1319 | * include/symtab.h (HT_ALLOCED): Remove. | |
1320 | (ht_purge): Declare. | |
1321 | * symtab.c (DELETED): New define. | |
1322 | (ht_lookup): Update comment. | |
1323 | (ht_lookup_with_hash): Handle deleted entries. Remove HT_ALLOCED | |
1324 | code. Use subobject allocator for strings, if it exists. | |
1325 | (ht_expand): Handle deleted entries. | |
1326 | (ht_forall): Likewise. | |
1327 | (ht_purge): New function. | |
1328 | (ht_dump_statistics): Print deletion statistics. | |
1329 | ||
899015a0 TT |
1330 | 2008-05-13 Tom Tromey <tromey@redhat.com> |
1331 | ||
1332 | PR preprocessor/22168: | |
1333 | * include/cpplib.h (struct cpp_options) <objc>: Update | |
1334 | documentation. | |
1335 | * expr.c (eval_token): Warn for use of assertions. | |
1336 | * directives.c (directive_diagnostics): Warn about extensions. | |
1337 | (DEPRECATED): New define. | |
1338 | (DIRECTIVE_TABLE): Use it. | |
1339 | ||
71c10038 TT |
1340 | 2008-05-06 Tom Tromey <tromey@redhat.com> |
1341 | ||
1342 | PR preprocessor/35313, PR preprocessor/36088: | |
1343 | * expr.c (optab) <QUERY, COMMA>: Set precedence to 4. | |
1344 | (reduce) <case CPP_QUERY>: Special case CPP_COMMA and CPP_COLON. | |
1345 | ||
2bd0fe3d DM |
1346 | 2008-05-04 David S. Miller <davem@davemloft.net> |
1347 | ||
1348 | * configure.ac (sparc*-*-*): Always set need_64bit_hwint to yes. | |
1349 | * configure: Regenerate. | |
1350 | ||
28f68625 DF |
1351 | 2008-04-22 Daniel Franke <franke.daniel@gmail.com> |
1352 | ||
1353 | * include/cpplib.h (cpp_define_formatted): New. | |
1354 | * directives.c (cpp_define_formatted): New. | |
1355 | ||
688e7a53 TT |
1356 | 2008-04-21 Tom Tromey <tromey@redhat.com> |
1357 | ||
1358 | PR libcpp/33415: | |
1359 | * charset.c (_cpp_convert_input): Add buffer_start argument. | |
1360 | Ignore UTF-8 BOM if seen. | |
1361 | * internal.h (_cpp_convert_input): Add argument. | |
1362 | * files.c (struct _cpp_file) <buffer_start>: New field. | |
1363 | (destroy_cpp_file): Free buffer_start, not buffer. | |
1364 | (_cpp_pop_file_buffer): Likewise. | |
1365 | (read_file_guts): Update. | |
1366 | ||
b6baa67d KVH |
1367 | 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com> |
1368 | ||
1369 | * include/cpp-id-data.h (UC): Was U, conflicts with U"..." literal. | |
1370 | * include/cpplib.h (CHAR16, CHAR32, STRING16, STRING32): New tokens. | |
1371 | (struct cpp_options): Added uliterals. | |
1372 | (cpp_interpret_string): Update prototype. | |
1373 | (cpp_interpret_string_notranslate): Idem. | |
1374 | * charset.c (init_iconv_desc): New width member in cset_converter. | |
1375 | (cpp_init_iconv): Add support for char{16,32}_cset_desc. | |
1376 | (convert_ucn): Idem. | |
1377 | (emit_numeric_escape): Idem. | |
1378 | (convert_hex): Idem. | |
1379 | (convert_oct): Idem. | |
1380 | (convert_escape): Idem. | |
1381 | (converter_for_type): New function. | |
1382 | (cpp_interpret_string): Use converter_for_type, support u and U prefix. | |
1383 | (cpp_interpret_string_notranslate): Match changed prototype. | |
1384 | (wide_str_to_charconst): Use converter_for_type. | |
1385 | (cpp_interpret_charconst): Add support for CPP_CHAR{16,32}. | |
1386 | * directives.c (linemarker_dir): Macro U changed to UC. | |
1387 | (parse_include): Idem. | |
1388 | (register_pragma_1): Idem. | |
1389 | (restore_registered_pragmas): Idem. | |
1390 | (get__Pragma_string): Support CPP_STRING{16,32}. | |
1391 | * expr.c (eval_token): Support CPP_CHAR{16,32}. | |
1392 | * init.c (struct lang_flags): Added uliterals. | |
1393 | (lang_defaults): Idem. | |
1394 | * internal.h (struct cset_converter) <width>: New field. | |
1395 | (struct cpp_reader) <char16_cset_desc>: Idem. | |
1396 | (struct cpp_reader) <char32_cset_desc>: Idem. | |
1397 | * lex.c (digraph_spellings): Macro U changed to UC. | |
1398 | (OP, TK): Idem. | |
1399 | (lex_string): Add support for u'...', U'...', u"..." and U"...". | |
1400 | (_cpp_lex_direct): Idem. | |
1401 | * macro.c (_cpp_builtin_macro_text): Macro U changed to UC. | |
1402 | (stringify_arg): Support CPP_CHAR{16,32} and CPP_STRING{16,32}. | |
1403 | ||
deb984e6 PB |
1404 | 2008-04-18 Paolo Bonzini <bonzini@gnu.org> |
1405 | ||
1406 | PR bootstrap/35457 | |
1407 | * aclocal.m4: Regenerate. | |
1408 | * configure: Regenerate. | |
1409 | ||
bf048bea TT |
1410 | 2008-04-17 Tom Tromey <tromey@redhat.com> |
1411 | ||
1412 | PR libcpp/34866: | |
1413 | * errors.c (cpp_error): Don't reference a token before the start | |
1414 | of the current run. | |
1415 | ||
7f27b0f8 TT |
1416 | 2008-04-16 Tom Tromey <tromey@redhat.com> |
1417 | ||
1418 | * Makefile.in (TAGS_SOURCES): New variable. | |
1419 | (TAGS): New target. | |
1420 | ||
a1fcb9a1 KK |
1421 | 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org> |
1422 | ||
1423 | * configure.ac: (need_64bit_hwint): Need 64bit hwint for sh-*-* | |
1424 | and shbe-*-*. | |
1425 | * configure: Rebuilt. | |
1426 | ||
93d45d9e JM |
1427 | 2008-04-02 Joseph Myers <joseph@codesourcery.com> |
1428 | ||
1429 | * include/cpplib.h (struct cpp_callbacks): Add used_define, | |
1430 | used_undef and before_define. | |
1431 | (NODE_USED): Define. | |
1432 | * directives.c (do_define, do_undef, undefine_macros, do_ifdef, | |
1433 | do_ifndef, cpp_pop_definition): Handle new flag and use new | |
1434 | callbacks. | |
1435 | * expr.c (parse_defined): Handle new flag and use new callbacks. | |
1436 | * macro.c (enter_macro_context, _cpp_free_definition): Handle new | |
1437 | flag and use new callbacks. | |
1438 | ||
d4c32e1d JJ |
1439 | 2008-04-01 Jakub Jelinek <jakub@redhat.com> |
1440 | ||
1441 | PR pch/13675 | |
1442 | * files.c (struct _cpp_file): Remove pch field. | |
1443 | (pch_open_file): Don't set file->pch, just file->pchname. | |
1444 | (should_stack_file): After pfile->cb.read_pch call | |
1445 | free pchname and clear pchname, don't close file->fd. | |
1446 | Test file->pchname instead of file->pch. Don't close fd after cb. | |
1447 | (_cpp_stack_include): Test file->pchname instead of file->pch. | |
1448 | ||
161031e3 TT |
1449 | 2008-03-28 Tom Tromey <tromey@redhat.com> |
1450 | ||
1451 | * Makefile.in (POSTCOMPILE): New variable. | |
1452 | (.c.o): Use it. | |
1453 | ||
14ccf800 TT |
1454 | 2008-03-13 Tom Tromey <tromey@redhat.com> |
1455 | ||
1456 | PR libcpp/35322: | |
1457 | * directives.c (destringize_and_run): Set pfile->directive. | |
1458 | ||
830465c6 MM |
1459 | 2008-03-06 Markus Milleder <markus.milleder@generali.at> |
1460 | ||
1461 | PR preprocessor/35458 | |
1462 | * mkdeps.c (munge): Quote '#' with a '\'. | |
1463 | ||
d482a073 RW |
1464 | 2008-02-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1465 | ||
1466 | PR preprocessor/35379 | |
1467 | * mkdeps.c (deps_write): Ensure the first target always appears | |
1468 | in the first column, without leading backslash newline. Avoid | |
1469 | some more extra whitespace. | |
1470 | ||
185a6cc1 TS |
1471 | 2008-02-25 Thiemo Seufer <ths@mips.com> |
1472 | ||
d482a073 | 1473 | * Makefile.in ($(srcdir)/config.in): Depend on configure.ac. |
185a6cc1 | 1474 | |
2bf41bf0 TT |
1475 | 2008-02-19 Tom Tromey <tromey@redhat.com> |
1476 | ||
1477 | * traditional.c (lex_identifier): Use CPP_HASHNODE. | |
1478 | * lex.c (lex_identifier): Use CPP_HASHNODE. | |
1479 | * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Wrap in | |
1480 | do-while. | |
1481 | * identifiers.c (alloc_node): Change return type. | |
1482 | (_cpp_init_hashtable): Don't cast 'alloc_node'. | |
1483 | (proxy_assertion_broken): New declaration. | |
1484 | (cpp_forall_identifiers): Move comment. | |
1485 | * line-map.c (linemap_add): Comment fix. | |
1486 | (linemap_line_start): Indentation fix. | |
1487 | ||
765d600a JJ |
1488 | 2008-01-25 Jakub Jelinek <jakub@redhat.com> |
1489 | ||
1490 | PR preprocessor/34692 | |
1491 | * macro.c (collect_args): Add pragma_buff argument. Push | |
1492 | CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather | |
1493 | than into arguments. Reset prevent_expansion and parsing_args | |
1494 | state at CPP_PRAGMA_EOL/CPP_EOF. | |
1495 | (funlike_invocation_p): Add pragma_buff argument, pass it through | |
1496 | to collect_args. | |
1497 | (enter_macro_context): Add result argument. Adjust | |
1498 | funlike_invocation_p caller. Emit all deferred pragma tokens | |
1499 | gathered during collect_args before the expansion, add a padding | |
1500 | token. Return 2 instead of 1 if any pragma tokens were prepended. | |
1501 | (cpp_get_token): If enter_macro_context returns 2, don't return | |
1502 | a padding token, instead cycle to grab CPP_PRAGMA token. | |
1503 | * directives.c (_cpp_handle_directive): If was_parsing_args | |
1504 | in deferred pragma, leave parsing_args and prevent_expansion as is. | |
1505 | ||
ec46053b TT |
1506 | 2008-01-22 Tom Tromey <tromey@redhat.com> |
1507 | ||
765d600a | 1508 | PR c++/34859 |
ec46053b TT |
1509 | * macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and |
1510 | __STDC_CONSTANT_MACROS. | |
1511 | ||
681c6ab0 FF |
1512 | 2008-01-07 Fred Fish <fnf@specifix.com> |
1513 | ||
765d600a | 1514 | PR preprocessor/30363 |
681c6ab0 FF |
1515 | * traditional.c (replace_args_and_push): Add local variable |
1516 | cxtquote, calculate the replacement text size assuming a | |
1517 | worst case of every input character quoted with backslash, | |
1518 | and properly handle output quoting of quote characters in | |
1519 | actual arguments used in function-like macros. | |
1520 | ||
33ae4837 TT |
1521 | 2008-01-03 Tom Tromey <tromey@redhat.com> |
1522 | ||
765d600a | 1523 | PR preprocessor/34602 |
33ae4837 TT |
1524 | * directives.c (do_line): Don't try to spell EOF token. |
1525 | (do_linemarker): Add comment. | |
1526 | ||
675575f5 DD |
1527 | 2007-12-11 DJ Delorie <dj@redhat.com> |
1528 | ||
1529 | * charset.c (convert_using_iconv): Close out any shift states, | |
1530 | returning to the initial state. | |
1531 | ||
97f6bd40 TT |
1532 | 2007-12-06 Tom Tromey <tromey@redhat.com> |
1533 | ||
765d600a | 1534 | PR c/29172 |
97f6bd40 TT |
1535 | * internal.h (struct cpp_reader) <file_hash_entries>: Changed |
1536 | type. | |
1537 | <file_hash_entries_allocated, file_hash_entries_used>: Removed. | |
1538 | * files.c (FILE_HASH_POOL_SIZE): New macro. | |
1539 | (struct file_hash_entry_pool): New. | |
1540 | (destroy_all_cpp_files): New function. | |
1541 | (allocate_file_hash_entries): Allocate a file_hash_entry_pool. | |
1542 | (new_file_hash_entry): Update. | |
1543 | (free_file_hash_entries): New function. | |
1544 | (_cpp_cleanup_files): Call free_file_hash_entries and | |
1545 | destroy_all_cpp_files. | |
1546 | (cpp_clear_file_cache): New function. | |
1547 | * include/cpplib.h (cpp_clear_file_cache): Declare. | |
1548 | ||
d56a25e1 TT |
1549 | 2007-12-03 Tom Tromey <tromey@redhat.com> |
1550 | ||
765d600a | 1551 | PR preprocessor/34288 |
d56a25e1 TT |
1552 | * configure.ac, config.in: Rebuilt. |
1553 | * configure.ac: Check for ssize_t. | |
1554 | ||
607f74e9 TT |
1555 | 2007-11-30 Tom Tromey <tromey@redhat.com> |
1556 | ||
765d600a | 1557 | PR preprocessor/32868 |
607f74e9 TT |
1558 | * macro.c (_cpp_create_definition): Special case |
1559 | __STDC_FORMAT_MACROS. | |
1560 | ||
b0f4807f MM |
1561 | 2007-11-16 Michael Matz <matz@suse.de> |
1562 | ||
1563 | * files.c (search_path_head): Fix check for absolute paths. | |
1564 | ||
f1e20710 TT |
1565 | 2007-11-11 Tom Tromey <tromey@redhat.com> |
1566 | ||
765d600a | 1567 | PR c++/17557 |
f1e20710 TT |
1568 | * include/cpplib.h (cpp_included_before): Declare. |
1569 | * files.c (struct file_hash_entry) <location>: New field. | |
1570 | (_cpp_find_file): Initialize new field. | |
1571 | (make_cpp_dir): Likewise. | |
1572 | (cpp_included_before): New function. | |
1573 | ||
f373b44d TT |
1574 | 2007-11-01 Tom Tromey <tromey@redhat.com> |
1575 | ||
765d600a | 1576 | PR preprocessor/30805 |
f373b44d TT |
1577 | * macro.c (paste_tokens): Handle padding token. |
1578 | (paste_tokens): Don't abort unless padding has PASTE_LEFT flag. | |
1579 | ||
5b9a40df TT |
1580 | 2007-10-31 Tom Tromey <tromey@redhat.com> |
1581 | ||
765d600a | 1582 | PR preprocessor/30786 |
5b9a40df TT |
1583 | * macro.c (builtin_macro): Return result of _cpp_do__Pragma. |
1584 | * directives.c (_cpp_do__Pragma): Return error status. | |
1585 | * internal.h (_cpp_do__Pragma): Update. | |
1586 | * directives.c (get__Pragma_string): Back up if EOF seen. | |
1587 | ||
5ffeb913 TT |
1588 | 2007-09-06 Tom Tromey <tromey@redhat.com> |
1589 | ||
1590 | * internal.h (struct cpp_reader) <invocation_location>: New | |
1591 | field. | |
1592 | (struct cpp_reader) <set_invocation_location>: Likewise. | |
1593 | * init.c (cpp_set_line_map): New function. | |
1594 | * line-map.c (linemap_add): Use linemap's allocator. | |
1595 | * include/line-map.h (GTY): Define. | |
1596 | (line_map_realloc): New typedef. | |
1597 | (struct line_map): Mark with GTY. | |
1598 | (struct line_maps): Likewise. | |
1599 | (struct line_maps) <maps>: Likewise. | |
1600 | (struct line_maps) <reallocator>: New field. | |
1601 | * include/symtab.h (GTY): Conditionally define. | |
1602 | * include/cpplib.h (cpp_set_line_map): Declare. | |
1603 | (cpp_get_token_with_location): Declare. | |
1604 | * macro.c (cpp_get_token): Set invocation_location on the reader. | |
1605 | (cpp_get_token_with_location): New function. | |
1606 | ||
ac6b1c67 CF |
1607 | 2007-08-30 Chao-ying Fu <fu@mips.com> |
1608 | ||
1609 | * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur, | |
1610 | ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk. | |
1611 | (cpp_classify_number): Support decimal fixed-point constants without | |
1612 | exponents. | |
1613 | Warn about fixed-point constants when -pedantic. | |
1614 | * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change | |
1615 | comments to support fixed-point values. | |
1616 | (CPP_N_FRACT, CPP_N_ACCUM): Define. | |
1617 | ||
cda5e672 TT |
1618 | 2007-08-18 Tom Tromey <tromey@redhat.com> |
1619 | ||
765d600a | 1620 | PR preprocessor/32974 |
cda5e672 TT |
1621 | * directives.c (parse_include): Don't check for EOL when |
1622 | processing #pragma dependency. | |
1623 | ||
ccfc4c91 OW |
1624 | 2007-07-30 Ollie Wild <aaw@google.com> |
1625 | ||
1626 | * directives-only.c: New file. | |
1627 | * internal.h (struct _cpp_dir_only_callbacks): New. | |
1628 | (_cpp_preprocess_dir_only): New function. | |
1629 | * directives.c (_cpp_handle_directive): Check directives_only before | |
1630 | disabling execution of indented directives. | |
1631 | * files.c (_cpp_stack_file): Add directives_only check. | |
1632 | * include/cpplib.h (struct cpp_options): Add directives_only. | |
1633 | (cpp_init_special_builtins): New function. | |
1634 | * init.c (cpp_init_special_builtins): New function. | |
1635 | (cpp_init_builtins): Move builtin_array initialization to | |
1636 | cpp_init_special_builtins. | |
1637 | (post_options): Check directives_only before setting | |
1638 | pfile->state.prevent_expansion = 1. | |
1639 | * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__ | |
1640 | is expanded inside a directive while -fdirectives-only is enabled. | |
1641 | * Makefile.in (libcpp_a_OBJS): Add directives-only.o. | |
1642 | (libcpp_a_SOURCES): Add directives-only.c. | |
1643 | ||
a206413a UB |
1644 | 2007-07-04 Uros Bizjak <ubizjak@gmail.com> |
1645 | ||
1646 | * traditional.c (_cpp_scan_out_logical_line): Initialize | |
1647 | fmacro.args, fmacro.node, fmacro.offset, fmacro.line and | |
1648 | fmacro.args to prevent 'may be used uninitialized' warning. | |
1649 | ||
c77cd3d1 UB |
1650 | 2007-07-03 Uros Bizjak <ubizjak@gmail.com> |
1651 | ||
1652 | * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q): | |
1653 | Add new constants. | |
1654 | * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q' | |
1655 | suffixes. Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q | |
1656 | for 'q' or 'Q' suffixes. | |
1657 | ||
66938a1d DS |
1658 | 2007-06-17 Danny Smith <dannysmith@users.sourceforge.net |
1659 | ||
e1311401 | 1660 | * files.c (open_file): Correct typo. |
66938a1d | 1661 | |
71995ede VP |
1662 | 2007-06-16 Vladimir Prus <vladimir@codesourcery.com> |
1663 | ||
e1311401 | 1664 | * files.c (open_file): Prevent the call |
71995ede VP |
1665 | for stat from overwriting errno. |
1666 | ||
84152c25 VP |
1667 | 2007-06-09 Vladimir Prus <vladimir@codesourcery.com> |
1668 | ||
e1311401 | 1669 | * files.c (open_file): Account for the |
84152c25 VP |
1670 | fact that on windows, opening a directory gives |
1671 | EACCES. | |
1672 | ||
f7fd775f JW |
1673 | 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de> |
1674 | ||
1675 | PR preprocessor/23479 | |
1676 | * expr.c (cpp_classify_number): Implement 0b-prefixed binary | |
1677 | integer constants. | |
1678 | (append_digit): Likewise. | |
1679 | * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed | |
1680 | binary integer constants. | |
1681 | ||
ed0e74e0 DK |
1682 | 2007-05-31 Dave Korn <dave.korn@artimi.com> |
1683 | ||
1684 | PR preprocessor/14331 | |
1685 | * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF. | |
1686 | ||
a702045a OW |
1687 | 2007-05-24 Ollie Wild <aaw@google.com> |
1688 | ||
1689 | * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. | |
1690 | * pch.c (cpp_write_pch_deps): Save __COUNTER__ state. | |
1691 | (cpp_write_pch_state): Save __COUNTER__ state. | |
1692 | (cpp_valid_state): Check valid __COUNTER__ state. | |
1693 | (cpp_read_state): Read new __COUNTER__ state. | |
1694 | * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator. | |
1695 | * init.c (builtin_array): Add __COUNTER__/BT_COUNTER. | |
1696 | * internal.h (struct cpp_reader): Add counter member. | |
1697 | ||
126e073b SM |
1698 | 2007-05-23 Simon Martin <simartin@users.sourceforge.net> |
1699 | ||
1700 | PR preprocessor/20077 | |
1701 | * macro.c (create_iso_definition): Fixed the method to determine | |
1702 | whether the token-pasting operator appears at the beginning or the end | |
1703 | of a macro. | |
1704 | ||
0b4cafec ILT |
1705 | 2007-05-21 Ian Lance Taylor <iant@google.com> |
1706 | ||
1707 | * internal.h (struct cpp_reader): Add new fields: | |
1708 | nonexistent_file_hash and nonexistent_file_ob. | |
1709 | * files.c: Include "obstack.h". | |
1710 | (find_file_in_dir): Before trying to open the file, look up the | |
1711 | path name in the hash table of nonexistent files. After failing | |
1712 | to open the file, add the path name to the hash table. | |
1713 | (_cpp_find_file): Cache the results of looking up the file name | |
1714 | starting with the quote and bracket chain heads, if we can. | |
1715 | (nonexistent_file_hash_eq): New static function. | |
1716 | (_cpp_init_files): Initialize pfile->nonexistent_file_hash and | |
1717 | pfile->nonexistent_file_ob. | |
1718 | (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and | |
1719 | pfile->nonexistent_file_ob. | |
1720 | ||
30e04921 JJ |
1721 | 2007-05-14 Janis Johnson <janis187@us.ibm.com> |
1722 | ||
5a6bb57e JJ |
1723 | * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic. |
1724 | ||
30e04921 JJ |
1725 | PR c/31924 |
1726 | * expr.c (interpret_float_suffix): Check for invalid suffix. | |
1727 | ||
22a8a52d EC |
1728 | 2007-05-02 Eric Christopher <echristo@apple.com> |
1729 | ||
1730 | * expr.c (num_div_op): Don't overflow if the result is | |
1731 | zero. | |
1732 | ||
fca35e1b TT |
1733 | 2007-05-02 Tom Tromey <tromey@redhat.com> |
1734 | ||
765d600a | 1735 | PR preprocessor/28709 |
fca35e1b TT |
1736 | * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs. |
1737 | ||
4cd97075 MM |
1738 | 2007-03-30 Michael Meissner <michael.meissner@amd.com> |
1739 | ||
1740 | * directives.c (lex_macro_node_from_str): Fix alloca call to be | |
1741 | type correct. | |
1742 | ||
121de39f RH |
1743 | 2007-03-30 Richard Henderson <rth@redhat.com> |
1744 | ||
1745 | * directives.c (lex_macro_node_from_str): New. | |
1746 | (cpp_push_definition, cpp_pop_definition): New. | |
1747 | * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare. | |
1748 | ||
4fcb360b BM |
1749 | 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> |
1750 | ||
1751 | * Makefile.in: Add dummy install-pdf target. | |
1752 | ||
67e64439 TT |
1753 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
1754 | ||
765d600a | 1755 | PR preprocessor/30468 |
67e64439 TT |
1756 | * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped |
1757 | './'. | |
1758 | ||
ee380365 TT |
1759 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
1760 | ||
765d600a | 1761 | PR preprocessor/29966 |
ee380365 TT |
1762 | * macro.c (lex_expansion_token): Save and restore cpp_reader's |
1763 | cur_token. | |
1764 | (_cpp_create_definition): Don't restore cur_token here. | |
1765 | * lex.c (_cpp_lex_token): Added assertion. | |
1766 | ||
024abeb3 TT |
1767 | 2007-01-27 Tom Tromey <tromey@redhat.com> |
1768 | ||
1769 | * configure: Rebuilt. | |
1770 | ||
ee1c2a10 TT |
1771 | 2007-01-12 Tom Tromey <tromey@redhat.com> |
1772 | ||
765d600a | 1773 | PR preprocessor/28227 |
ee1c2a10 TT |
1774 | * directives.c (lex_macro_node): Added 'is_def_or_undef' |
1775 | argument. | |
1776 | (do_define): Update. | |
1777 | (do_undef): Update. | |
1778 | (do_ifdef): Update. | |
1779 | (do_ifndef): Update. | |
1780 | ||
67214c16 PB |
1781 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
1782 | ||
1783 | * configure: Regenerate. | |
1784 | ||
1aa6ca40 PB |
1785 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
1786 | ||
1787 | * configure: Regenerate. | |
1788 | ||
705e2d28 TT |
1789 | 2007-01-04 Tom Tromey <tromey@redhat.com> |
1790 | ||
765d600a | 1791 | PR preprocessor/28165 |
705e2d28 TT |
1792 | * internal.h (cpp_in_primary_file): New function. |
1793 | * directives.c (do_include_next): Use cpp_in_primary_file. | |
1794 | (do_pragma_once): Likewise. | |
1795 | (do_pragma_system_header): Likewise. | |
1796 | ||
7af45bd4 ILT |
1797 | 2006-12-29 Ian Lance Taylor <iant@google.com> |
1798 | ||
1799 | * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't | |
1800 | look backward at the end of the line unless we saw a backslash. | |
1801 | ||
9d30f270 JJ |
1802 | 2006-12-29 Jakub Jelinek <jakub@redhat.com> |
1803 | ||
1804 | PR preprocessor/29612 | |
1805 | * directives.c (do_linemarker): Set pfile->buffer->sysp always, not | |
1806 | only when new_sysp is non-zero. | |
1807 | ||
30b0edc0 TT |
1808 | 2006-12-28 Tom Tromey <tromey@redhat.com> |
1809 | ||
765d600a | 1810 | PR preprocessor/30001 |
30b0edc0 TT |
1811 | * charset.c (_cpp_convert_input): Check that to.len is greater |
1812 | than zero. | |
1813 | ||
85d9c13c TS |
1814 | 2006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> |
1815 | ||
1816 | * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU. | |
83cc06b2 | 1817 | * configure: Rebuilt. |
85d9c13c | 1818 | |
dfafdaa6 DG |
1819 | 2006-11-01 Douglas Gregor <doug.gregor@gmail.com> |
1820 | ||
1821 | * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X | |
1822 | for experimental C++0x mode. | |
1823 | * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has | |
1824 | adopted the preprocessor changes introduced in C99. | |
1825 | ||
0f45f0f5 JM |
1826 | 2006-10-29 Joseph Myers <joseph@codesourcery.com> |
1827 | ||
1828 | * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux* | |
1829 | depending on --enable-targets=all. | |
1830 | * configure: Regenerate. | |
1831 | ||
de000d22 JJ |
1832 | 2006-10-12 Jakub Jelinek <jakub@redhat.com> |
1833 | ||
1834 | PR preprocessor/28709 | |
1835 | * macro.c (paste_tokens): Do error reporting here, use BUF with the | |
1836 | spelled LHS token as opposed to spelling it again. | |
1837 | (paste_all_tokens): Don't report errors here, just break on failure. | |
1838 | ||
b5422ad7 BM |
1839 | 2006-10-10 Brooks Moses <bmoses@stanford.edu> |
1840 | ||
1841 | * Makefile.in: Added empty "pdf" target. | |
1842 | ||
aaf50ff2 GK |
1843 | 2006-09-22 Geoffrey Keating <geoffk@apple.com> |
1844 | ||
1845 | * configure.ac: Make need_64_bit_hwint case for x86-darwin | |
1846 | match exactly the glob in gcc/config.gcc. | |
1847 | * configure: Regenerate. | |
1848 | ||
c663e301 JM |
1849 | 2006-09-13 Joseph S. Myers <joseph@codesourcery.com> |
1850 | ||
1851 | PR c/28768 | |
1852 | PR preprocessor/14634 | |
1853 | * lex.c (lex_string): Pedwarn for unterminated literals. | |
1854 | ||
f7288899 EC |
1855 | 2006-09-08 Eric Christopher <echristo@apple.com> |
1856 | ||
1857 | * configure.ac: Add 64-bit HWI support for i?86-darwin. | |
1858 | ||
b52dbbf8 SE |
1859 | 2006-08-14 Steve Ellcey <sje@cup.hp.com> |
1860 | ||
1861 | PR c++/28288 | |
1862 | PR c++/14556 | |
1863 | * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens. | |
1864 | (CPP_LAST_EQ): Change. | |
1865 | (CPP_LAST_PUNCTUATOR): Change. | |
1866 | * expr.c (cpp_operator): Remove MIN and MAX. | |
1867 | (reduce): Remove CPP_MIN and CPP_MAX. | |
1868 | (num_binary_op): Ditto. | |
1869 | * lex.c (_cpp_lex_direct): Ditto. | |
1870 | (cpp_avoid_paste): Remove ? as legal symbol after > or <. | |
1871 | ||
1c90c6f9 JJ |
1872 | 2006-06-09 Jakub Jelinek <jakub@redhat.com> |
1873 | ||
1874 | PR preprocessor/27746 | |
1875 | * directives.c (do_pragma): Handle pragma with valid namespace | |
1876 | and invalid name coming from macro expansion. | |
1877 | * directives.c (destringize_and_run): Initialize next field in | |
1878 | context. | |
1879 | ||
1880 | PR c/27747 | |
1881 | PR c++/27748 | |
1882 | * directives.c (destringize_and_run): Set NO_EXPAND on the | |
1883 | tokens. | |
1884 | ||
1885 | * macro.c (_cpp_backup_tokens): Fix comment typo. | |
1886 | ||
5c3c3683 DJ |
1887 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
1888 | ||
1889 | * Makefile.in (CATALOGS): Add po/ prefix. | |
1890 | * configure: Regenerated. | |
1891 | ||
b2bd74bc CD |
1892 | 2006-05-23 Carlos O'Donell <carlos@codesourcery.com> |
1893 | ||
1894 | * Makefile.in: Add install-html target. Add install-html to .PHONY | |
1895 | ||
be8ac3e2 GZ |
1896 | 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> |
1897 | ||
1898 | * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. | |
1899 | * files.c (_cpp_get_file_stat): New function. | |
1900 | * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. | |
1901 | * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. | |
1902 | * internal.h (_cpp_get_file_stat): Prototype. | |
1903 | (struct cpp_buffer): Add timestamp. | |
1904 | ||
83900997 JJ |
1905 | 2006-01-23 Jakub Jelinek <jakub@redhat.com> |
1906 | ||
1907 | PR preprocessor/25717 | |
1908 | * init.c (cpp_init_builtins): If __STDC__ will not change value | |
1909 | between system headers and other sources, define it as a normal | |
1910 | macro rather than a builtin. | |
1911 | * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check | |
1912 | cpp_in_system_header condition. | |
1913 | ||
1914 | 2006-01-05 Paolo Bonzini <bonzini@gnu.org> | |
9220c30c PB |
1915 | |
1916 | * Makefile.in: Use -MMD instead of -MD. | |
1917 | ||
bc4071dd RH |
1918 | 2006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com> |
1919 | Richard Henderson <rth@redhat.com> | |
1920 | ||
1921 | Merge from gomp branch: | |
1922 | * directives.c (struct pragma_entry): Add is_deferred. Add ident | |
1923 | entry to value union. | |
1924 | (end_directive): Don't eat the line if in_deferred_pragma. | |
1925 | (run_directive): Remove pragma hacks. | |
1926 | (insert_pragma_entry): Remove. | |
1927 | (new_pragma_entry): New. | |
1928 | (register_pragma_1): Split out of register_pragma. Only handle | |
1929 | the lookup tree and return the new entry. | |
1930 | (cpp_register_pragma): Fill in the pragma entry here. | |
1931 | (cpp_register_deferred_pragma): New. | |
1932 | (register_pragma_internal): New. | |
1933 | (_cpp_init_internal_pragmas): Use register_pragma_internal. | |
1934 | (do_pragma): Allow pragma expansion after namespace. For deferred | |
1935 | pragmas, don't slurp the line into a string. | |
1936 | (destringize_and_run): Save tokens for deferred pragmas. | |
1937 | (cpp_handle_deferred_pragma): Remove. | |
1938 | * macro.c (builtin_macro): Remove pragma token hack. | |
1939 | (_cpp_push_token_context): Rename from push_token_context and export. | |
1940 | * internal.h (struct lexer_state): Add pragma_allow_expansion. | |
1941 | (_cpp_push_token_context): Declare. | |
1942 | * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return | |
1943 | a token. Update the line number correctly if so. | |
1944 | (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens. | |
1945 | (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas. | |
1946 | * include/cpplib.h (PRAGMA_EOL): New. | |
1947 | (CPP_TOKEN_FLD_PRAGMA): New. | |
1948 | (struct cpp_token): Add val.pragma. | |
1949 | (struct cpp_options): Remove defer_pragmas. | |
1950 | (cpp_handle_deferred_pragma): Remove. | |
1951 | (cpp_register_deferred_pragma): Declare. | |
1952 | ||
d09e893f JJ |
1953 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
1954 | ||
1955 | PR c++/25294 | |
1956 | * directives.c (do_pragma): If pragma line ends with multi-line | |
1957 | block comment, end the saved deferred pragma string before that | |
1958 | comment. Handle embedded '\0' chars on the pragma line. | |
1959 | ||
ab84748a VR |
1960 | 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
1961 | ||
1962 | PR c++/23333 | |
1963 | * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure. | |
1964 | ||
ad6ed77e JG |
1965 | 2005-12-07 Jon Grimm <jgrimm2@us.ibm.com> |
1966 | Ben Elliston <bje@au.ibm.com> | |
1967 | ||
1968 | * include/cpplib.h (CPP_N_DFLOAT): New. | |
1969 | * expr.c (interpret_float_suffix): Identify df, dd, and dl | |
1970 | suffixes as decimal floating point constants. | |
1971 | (cpp_classify_number): Disallow hexadecimal DFP constants. | |
1972 | ||
ba096620 | 1973 | 2005-11-14 Gerald Pfeifer <gerald@pfeifer.com> |
bc4071dd | 1974 | Ian Lance Taylor <ian@airs.com> |
ba096620 GP |
1975 | |
1976 | * include/cpplib.h (struct cpp_callbacks): Annotate error with | |
1977 | ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0). | |
1978 | ||
456b8ce5 UB |
1979 | 2005-11-09 Per Bothner <per@bothner.com> |
1980 | Uros Bizjak <uros@kss-loka.si> | |
f7288899 | 1981 | |
456b8ce5 UB |
1982 | PR c/24101 |
1983 | * init.c (read_original_filename): Temporarily set | |
1984 | state.in_directive before calling _cpp_lex_direct for | |
1985 | CPP_HASH tokens. | |
1986 | ||
5571f74f JW |
1987 | 2005-11-03 James E Wilson <wilson@specifix.com> |
1988 | ||
1989 | PR preprocessor/24202 | |
1990 | * files.c (_cpp_pop_file_buffer): Set buffer_valid to false. | |
1991 | ||
a63607ed JM |
1992 | 2005-11-04 Joseph S. Myers <joseph@codesourcery.com> |
1993 | ||
1994 | * include/cpplib.h (struct cpp_callbacks): Make error take | |
1995 | va_list* parameter. | |
1996 | * errors.c (cpp_error): Update call to callback. | |
1997 | ||
651ed942 AP |
1998 | 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> |
1999 | ||
2000 | PR preprocessor/22042 | |
2001 | * macro.c (_cpp_builtin_macro_text): Lower the needed max | |
2002 | buffer size. | |
2003 | (cpp_quote_string): Don't octalify non printable | |
2004 | charactors. | |
2005 | ||
178b58b5 JM |
2006 | 2005-11-03 Joseph S. Myers <joseph@codesourcery.com> |
2007 | ||
2008 | PR c++/17964 | |
2009 | * include/cpplib.h (struct cpp_options): Add client_diagnostic. | |
2010 | (struct cpp_callbacks): Add error. | |
2011 | * errors.c (cpp_error): If client_diagnostic, use error callback. | |
2012 | * charset.c (convert_escape): Don't use %03o in diagnostic. | |
2013 | ||
3ee5ed11 | 2014 | 2005-10-21 James E Wilson <wilson@specifix.com> |
6568f34b JW |
2015 | |
2016 | PR preprocessor/15220 | |
2017 | * files.c (_cpp_find_file): New parameter angle_brackets. Fix all | |
2018 | callers. Pass to open_file_failed. | |
2019 | (open_file_failed): New parameter angle_brackets. Fix all callers. | |
2020 | Use in print_dep assignment. | |
2021 | * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file. | |
2022 | * internal.h (_cpp_find_file): Add new parm to declaration. | |
f7288899 | 2023 | |
077fc835 KH |
2024 | 2005-10-08 Kazu Hirata <kazu@codesourcery.com> |
2025 | ||
2026 | * configure.ac: Require 64-bit int for arm*-*-*eabi*. | |
2027 | * configure: Regenerate. | |
2028 | ||
cbc43ae0 ILT |
2029 | 2005-10-04 Ian Lance Taylor <ian@airs.com> |
2030 | ||
2031 | PR preprocessor/13726 | |
2032 | * directives.c (check_eol_return_comments): New static function. | |
2033 | (parse_include): Add buf parameter. Change all callers. | |
2034 | (do_include_common): If not discard comments, turn on | |
2035 | save_comments. Pass collected comments to include callback. | |
2036 | * include/cpplib.h (struct cpp_callbacks): Add new parameter to | |
2037 | include callback: cpp_token list. | |
2038 | ||
af15a2fe JM |
2039 | 2005-09-20 Joseph S. Myers <joseph@codesourcery.com> |
2040 | ||
2041 | * include/cpplib.h (struct cpp_options): Add extended_identifiers. | |
2042 | * init.c (struct lang_flags, lang_defaults): Add | |
2043 | extended_identifiers. | |
2044 | (cpp_set_lang): Use it. | |
2045 | * lex.c (forms_identifier_p): Check extended_identifiers. | |
2046 | ||
f5eab47e JJ |
2047 | 2005-08-30 Jakub Jelinek <jakub@redhat.com> |
2048 | ||
2049 | PR preprocessor/20348 | |
2050 | PR preprocessor/20356 | |
2051 | * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and | |
2052 | 2004-06-05 changes. | |
2053 | ||
467129e6 KG |
2054 | 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2055 | ||
2056 | * configure.ac (ACX_PROG_CC_WARNING_OPTS): add | |
2057 | -Wmissing-format-attribute. | |
2058 | ||
2059 | * configure: Regenerate. | |
2060 | ||
200031d1 KC |
2061 | 2005-06-29 Kelley Cook <kcook@gcc.gnu.org> |
2062 | ||
2063 | * all files: Update FSF address in copyright headers. | |
2064 | * makeucnid.c (write_copyright): Update outputted FSF address. | |
2065 | ||
f610dd5f ZW |
2066 | 2005-06-13 Zack Weinberg <zack@codesourcery.com> |
2067 | ||
2068 | * configure.ac: Invoke ZW_CREATE_DEPDIR and | |
2069 | ZW_PROG_COMPILER_DEPENDENCIES. | |
2070 | * aclocal.m4, configure: Regenerate. | |
2071 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE): | |
2072 | New variables. | |
2073 | (distclean): Clean up $(DEPDIR) and its contents. | |
2074 | (.c.o): Use $(COMPILE). | |
2075 | Include $(DEPDIR)/*.Po for most object->header dependencies. | |
2076 | ||
c3f829c1 GDR |
2077 | 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2078 | ||
2079 | * configure.ac: Check declarations for asprintf and vasprintf. | |
2080 | * config.in: Regenerate. | |
2081 | * configure: Likewise. | |
2082 | ||
2083 | * charset.c (conversion_loop): Use XRESIZEVEC. | |
2084 | (convert_no_conversion): Likewise. | |
2085 | (convert_using_iconv): Likewise. | |
2086 | (init_iconv_desc): Cast return value of alloca. | |
2087 | (cpp_host_to_exec_charset): Use XNEWVEC. | |
2088 | (emit_numeric_escape): Use XRESIZEVEC. | |
2089 | (cpp_interpret_string): Use XNEWVEC. | |
2090 | (cpp_interpret_string): Use XRESIZEVEC. | |
2091 | (_cpp_interpret_identifier): Cast return value of alloca. | |
2092 | (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC. | |
2093 | * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC. | |
2094 | (parse_include): Use XNEWVEC. | |
2095 | (insert_pragma_entry): Rename local variable "new" to | |
f610dd5f | 2096 | "new_entry". |
c3f829c1 GDR |
2097 | (save_registered_pragmas): Cast return value of xmemdup. |
2098 | (destringize_and_run): Same for alloca. | |
2099 | (parse_assertion): Likewise. | |
2100 | (do_assert): Cast allocated storage to proper type. | |
2101 | (cpp_define): Likewise. | |
2102 | (_cpp_define_builtin): Likewise. | |
2103 | (cpp_undef): Likewise. | |
2104 | (handle_assertion): Likewise. | |
2105 | (cpp_push_buffer): Rename local variable "new" to "new_buffer". | |
2106 | * expr.c (CPP_UPLUS): Cast value to type cpp_ttype. | |
2107 | (CPP_UMINUS): Likewise. | |
2108 | (struct cpp_operator): Rename from struct operator. | |
2109 | (_cpp_expand_op_stack): Use XRESIZEVEC. | |
2110 | * files.c (pch_open_file): Use XNEWVEC. | |
2111 | (pch_open_file): Use XRESIZEVEC. | |
2112 | (read_file_guts): Use XNEWVEC and XRESIZEVEC. | |
2113 | (dir_name_of_file): Use XNEWVEC. | |
2114 | (make_cpp_file): Use XCNEW. | |
2115 | (make_cpp_dir): Likewise. | |
2116 | (allocate_file_hash_entries): USE XNEWVEC. | |
2117 | (cpp_included): Cast return value of htab_find_with_hash. | |
2118 | (append_file_to_dir): Use XNEWVEC. | |
2119 | (read_filename_string): Likewise. Use XRESIZEVEC too. | |
2120 | (read_name_map): Cast return value of alloca. Use XRESIZEVEC. | |
2121 | (remap_filename): Use XNEWVEC. | |
2122 | (struct pchf_entry): Move definition out of struct pchf_data. | |
2123 | (_cpp_save_file_entries): Use XCNEWVAR. | |
2124 | (_cpp_read_file_entries): Use XNEWVAR. | |
2125 | * identifiers.c (alloc_node): Use XOBNEW. | |
2126 | * init.c (cpp_create_reader): Use XCNEW. | |
2127 | (cpp_init_builtins): Cast of b->value to enum builtin_type. | |
2128 | (read_original_directory): Cast return value of alloca. | |
2129 | * lex.c (add_line_note): Use XRESIZEVEC. | |
2130 | (warn_about_normalization): Use XNEWVEC. | |
2131 | (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype). | |
2132 | (new_buff): Use XNEWVEC. | |
2133 | * line-map.c (linemap_add): Use XRESIZEVEC. | |
2134 | * macro.c (builtin_macro): Cast return value of alloca. | |
2135 | (paste_tokens): Likewise. | |
2136 | (expand_arg): Use XNEWVEC and XRESIZEVEC. | |
2137 | (_cpp_save_parameter): Use XRESIZEVEC. | |
2138 | (create_iso_definition): Cast allocated storage to proper type. | |
2139 | (_cpp_create_definition): Likewise. | |
2140 | (cpp_macro_definition): Use XRESIZEVEC. | |
2141 | * makedepend.c (add_clm): Use XNEW. | |
2142 | (add_dir): Likewise. | |
2143 | * mkdeps.c (munge): Use XNEWVEC. | |
2144 | (deps_init): Use XCNEW. | |
2145 | (deps_add_target): Use XRESIZEVEC. | |
2146 | (deps_add_default_target): Cast return value of alloca. | |
2147 | (deps_add_dep): Use XRESIZEVEC. | |
2148 | (deps_add_vpath): Likewise. Use XNEWVEC too. | |
2149 | (deps_restore): Likewise. | |
2150 | * pch.c (save_idents): Use XNEW and XNEWVEC. | |
2151 | (cpp_save_state): Use XNEW. | |
2152 | (count_defs): Cast return value of htab_find. | |
2153 | (write_defs): Likewise. | |
2154 | (cpp_write_pch_deps): Use XNEWVEC. | |
2155 | (collect_ht_nodes): Use XRESIZEVEC. | |
2156 | (cpp_valid_state): Use XNEWVEC. | |
2157 | (save_macros): Use XRESIZEVEC. Cast return value of xmemdup. | |
2158 | * symtab.c (ht_create): Use XCNEW. | |
2159 | (ht_lookup_with_hash): Cast return value of obstack_copy0. | |
2160 | (ht_expand): Use XCNEWVEC. | |
2161 | * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus. | |
2162 | (bool): Do not define if __cplusplus. | |
2163 | ||
1ed17cd5 ZW |
2164 | 2005-05-12 Zack Weinberg <zack@codesourcery.com> |
2165 | ||
2166 | * directives.c (#sccs table entry): Mark IN_I, consistent with #ident. | |
2167 | (do_sccs): Delete function definition, #define to do_ident. | |
2168 | (do_ident): Don't hardwire directive name. | |
2169 | ||
5a8c20ce RK |
2170 | 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp> |
2171 | ||
2172 | PR bootstrap/21230 | |
2173 | * configure: Regenerate. | |
2174 | ||
473c5bc9 AP |
2175 | 2005-04-27 Andris Pavenis <pavenis@latnet.lv> |
2176 | ||
2177 | * files.c: Include io.h for DJGPP to get prototype of setmode. | |
2178 | ||
c1fc5047 PB |
2179 | 2005-04-19 Per Bothner <per@bothner.com> |
2180 | ||
2181 | PR preprocessor/20907 | |
2182 | * line-map.c (linemap_line_start): Fix bug when we need to increse | |
2183 | column_bits but can re-use the current line_map. | |
2184 | ||
042630ad KG |
2185 | 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2186 | ||
2187 | * system.h (fopen, fdopen, freopen): Define these to the unlocked | |
2188 | libiberty functions. | |
2189 | ||
0d667716 KG |
2190 | 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2191 | ||
2192 | * configure.ac (libcpp_UNLOCKED_FUNCS): New. | |
2193 | (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS. | |
2194 | * system.h (putchar, getc, getchar, clearerr, feof, fileno, | |
2195 | fflush, fgetc, fgets, ferror, fread): Redefine to the associated | |
2196 | _unlocked function. | |
2197 | (fwrite_unlocked): Fix prototype. | |
1ed17cd5 | 2198 | |
0d667716 KG |
2199 | * configure, config.in: Regenerate. |
2200 | ||
cae064e7 JJ |
2201 | 2005-04-05 Jakub Jelinek <jakub@redhat.com> |
2202 | ||
2203 | PR preprocessor/19475 | |
2204 | * macro.c (create_iso_definition): For < ISO C99, don't | |
2205 | pedwarn if there is no whitespace between macro name and its | |
2206 | replacement, but the replacement starts with a basic character | |
2207 | set character. | |
2208 | ||
cbada204 AJ |
2209 | 2005-03-28 Andreas Jaeger <aj@suse.de> |
2210 | ||
2211 | * lex.c (warn_about_normalization): Cast field width to int to | |
2212 | avoid warning. | |
2213 | ||
f42eccdb JM |
2214 | 2005-03-19 Joseph S. Myers <joseph@codesourcery.com> |
2215 | ||
2216 | * configure.ac: Consistently use solaris2.1[0-9]* instead of | |
2217 | solaris2.1[0-9]. | |
2218 | * configure: Regenerate. | |
2219 | ||
c79e602b GK |
2220 | 2005-03-15 Geoffrey Keating <geoffk@apple.com> |
2221 | ||
2222 | * charset.c (_cpp_valid_ucn): In identifiers, reject a partial | |
2223 | UCN rather than printing an error. | |
2224 | ||
50668cf6 GK |
2225 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> |
2226 | ||
6baba9bb GK |
2227 | * lex.c (forms_identifier_p): Disable UCNs in C89 mode. |
2228 | ||
2229 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> | |
1ed17cd5 | 2230 | |
50668cf6 GK |
2231 | * init.c (cpp_create_reader): Default warn_normalize to normalized_C. |
2232 | * charset.c: Update for new format of ucnid.h. | |
2233 | (ucn_valid_in_identifier): Update for new format of ucnid.h. | |
2234 | Add NST parameter, and update it; update callers. | |
2235 | (cpp_valid_ucn): Add NST parameter, update callers. Replace abort | |
2236 | with cpp_error. | |
2237 | (convert_ucn): Pass normalize_state to cpp_valid_ucn. | |
2238 | * internal.h (struct normalize_state): New. | |
2239 | (INITIAL_NORMALIZE_STATE): New. | |
2240 | (NORMALIZE_STATE_RESULT): New. | |
2241 | (NORMALIZE_STATE_UPDATE_IDNUM): New. | |
2242 | (_cpp_valid_ucn): New. | |
2243 | * lex.c (warn_about_normalization): New. | |
2244 | (forms_identifier_p): Add normalize_state parameter, update callers. | |
2245 | (lex_identifier): Add normalize_state parameter, update callers. Keep | |
2246 | the state current. | |
2247 | (lex_number): Likewise. | |
2248 | (_cpp_lex_direct): Pass normalize_state to subroutines. Check | |
2249 | it with warn_about_normalization. | |
2250 | * makeucnid.c: New. | |
2251 | * ucnid.h: Replace. | |
2252 | * ucnid.pl: Remove. | |
2253 | * ucnid.tab: Make appropriate for input to makeucnid.c. Remove | |
2254 | comments about obsolete version of C++. | |
2255 | * include/cpplib.h (enum cpp_normalize_level): New. | |
2256 | (struct cpp_options): Add warn_normalize field. | |
2257 | ||
47e20491 GK |
2258 | 2005-03-11 Geoffrey Keating <geoffk@apple.com> |
2259 | ||
2260 | * directives.c (glue_header_name): Update call to cpp_spell_token. | |
2261 | * internal.h (_cpp_interpret_identifier): New. | |
2262 | * charset.c (_cpp_interpret_identifier): New. | |
2263 | (_cpp_valid_ucn): Allow UCN version of '$'. | |
2264 | * lex.c (lex_identifier): Add extra parameter to indicate if initial | |
2265 | character was '$' or '\'. Support identifiers with UCNs. | |
2266 | (forms_identifier_p): Allow UCNs. | |
2267 | (_cpp_lex_direct): Pass extra parameter to lex_identifier. | |
2268 | (utf8_to_ucn): New. | |
2269 | (cpp_spell_token): Add FORSTRING parameter. Use it. | |
2270 | (cpp_token_as_text): Update call to cpp_spell_token. | |
2271 | (cpp_output_token): Write UCNs back out. | |
2272 | (stringify_arg): Update call to cpp_spell_token. | |
2273 | (paste_tokens): Likewise. | |
2274 | (cpp_macro_definition): Likewise. | |
2275 | * macro.c (stringify_arg): Likewise. | |
2276 | (paste_tokens): Likewise. | |
2277 | (cpp_macro_definition): Likewise. | |
2278 | * include/cpplib.h: Add parameter to cpp_spell_token. | |
2279 | ||
73096711 JJ |
2280 | 2005-03-04 Jakub Jelinek <jakub@redhat.com> |
2281 | ||
2282 | PR bootstrap/20282 | |
2283 | PR bootstrap/20305 | |
2284 | * macro.c (replace_args, cpp_get_token): Copy whole | |
2285 | cpp_token_u instead of just cpp_string field from it. | |
2286 | ||
2203a881 DP |
2287 | 2005-02-28 Devang Patel <dpatel@apple.com> |
2288 | ||
2289 | * directives.c (do_line): Save sysp early before line table is | |
2290 | realloc'ed. | |
1ed17cd5 | 2291 | |
c5ff069d ZW |
2292 | 2005-02-20 Zack Weinberg <zack@codesourcery.com> |
2293 | ||
2294 | PR 18785 | |
2295 | * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. | |
2296 | (cpp_host_to_exec_charset): New function. | |
2297 | * include/cpplib.h: Declare cpp_host_to_exec_charset. | |
2298 | ||
04c90eea DP |
2299 | 2005-02-19 Devang Patel <dpatel@apple.com> |
2300 | ||
2301 | * charset.c (_cpp_convert_input): Check '\r' before inserting | |
2302 | '\n' at the end. | |
c5ff069d | 2303 | |
6da55c00 EC |
2304 | 2005-02-15 Eric Christopher <echristo@redhat.com> |
2305 | ||
2306 | PR preprocessor/19077 | |
2307 | * macro.c (cpp_macro_definition): Move handling of whitespace | |
2308 | to PREV_WHITE conditional. Remove overloading of len | |
2309 | variable. | |
2310 | ||
31c3e631 KH |
2311 | 2005-02-14 Kazu Hirata <kazu@cs.umass.edu> |
2312 | ||
2313 | * directives.c, files.c, init.c, internal.h, macro.c, pch.c, | |
2314 | traditional.c: Update copyright. | |
2315 | ||
be0f1e54 PB |
2316 | 2005-02-14 Paolo Bonzini <bonzini@gnu.org> |
2317 | ||
2318 | PR bootstrap/19818 | |
2319 | * configure.ac: Check for declaration of basename and getopt. | |
2320 | * config.in: Regenerate. | |
2321 | * configure: Regenerate. | |
2322 | * internal.h (ustrcspn): New. | |
2323 | * macro.c (create_iso_definition): Fix allocation of memory. | |
2324 | (padding_token): Add cast to remove const-ness. | |
2325 | * pch.c (cpp_read_state): Use ustrcspn. | |
2326 | ||
ecddfb39 MS |
2327 | 2005-02-08 Mike Stump <mrs@apple.com> |
2328 | ||
2329 | * files.c (pchf_adder): Remove. | |
2330 | (struct pchf_adder_info): Likewise. | |
2331 | (_cpp_save_file_entries): Write out all files so that #import works. | |
2332 | ||
9fcdd891 JM |
2333 | 2005-01-23 Joseph S. Myers <joseph@codesourcery.com> |
2334 | ||
2335 | * configure: Regenerate. | |
2336 | ||
ecfd72e7 TS |
2337 | 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> |
2338 | ||
2339 | * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. | |
2340 | ||
6c25a4f7 | 2341 | * include/cpplib.h: Also update copyright years. |
c5ff069d | 2342 | |
942926ad GK |
2343 | 2005-01-03 Geoffrey Keating <geoffk@apple.com> |
2344 | ||
2345 | * files.c (_cpp_find_file): Add files found by search_path_exhausted | |
2346 | to the list of all files. | |
2347 | ||
a2566ae9 GDR |
2348 | 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2349 | ||
2350 | * internal.h: Update references to Cpp lib filenames. | |
2351 | * directives.c: Likewise. | |
2352 | * init.c: Likewise. | |
2353 | * macro.c: Likewise. | |
2354 | * traditional.c: Likewise. | |
2355 | ||
1b449375 EB |
2356 | 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr> |
2357 | ||
2358 | PR preprocessor/15167 | |
2359 | * files.c (destroy_cpp_file): New function. | |
2360 | (should_stack_file): Make a new file if the | |
2361 | compared file is still stacked. | |
2362 | ||
28303828 NN |
2363 | 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> |
2364 | ||
c5ff069d | 2365 | PR preprocessor/17610 |
28303828 NN |
2366 | * directives.c (do_include_common): Error out if an empty filename |
2367 | is given for #include (or #include_next or #import). | |
2368 | ||
c812785a RS |
2369 | 2004-11-27 Roger Sayle <roger@eyesopen.com> |
2370 | Zack Weinberg <zack@codesourcery.com> | |
2371 | ||
2372 | * internal.h: Replace all uses of uchar with unsigned char. | |
2373 | * include/cpp-id-data.h: Likewise. Guard typedef of uchar | |
2374 | with !IN_GCC, so uchar is only defined whilst building libcpp. | |
2375 | ||
f91eaa01 KC |
2376 | 2004-11-24 Kelley Cook <kcook@gcc.gnu.org> |
2377 | ||
2378 | * aclocal.m4: Regenerate. | |
2379 | ||
f78ce0c2 RS |
2380 | 2004-11-24 Roger Sayle <roger@eyesopen.com> |
2381 | ||
2382 | PR preprocessor/15824 | |
2383 | * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> | |
2384 | directly, instead of the non-existant "system.h" and "ansidecl.h". | |
2385 | * configure: Regenerate. | |
2386 | ||
b5b3e36a | 2387 | 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com> |
c5ff069d | 2388 | Joseph Myers <joseph@codesourcery.com> |
b5b3e36a DJ |
2389 | |
2390 | * internal.h (struct lexer_state): Add in_deferred_pragma. | |
2391 | * directives.c (struct pragma_entry): Add allow_expansion. | |
2392 | (insert_pragma_entry): Take allow_expansion flag. | |
2393 | (register_pragma): Likewise. | |
2394 | (cpp_register_pragma): Likewise. | |
2395 | (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. | |
2396 | (do_pragma): Honor allow_expansion. | |
2397 | (cpp_handle_deferred_pragma): Set in_deferred_pragma. | |
2398 | * include/cpplib.h (cpp_register_pragma): Update prototype. | |
2399 | ||
a8e68029 | 2400 | 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> |
c5ff069d | 2401 | Mark Mitchell <mark@codesourcery.com> |
a8e68029 DJ |
2402 | |
2403 | * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set | |
2404 | need_64bit_hwint=yes. | |
2405 | * configure: Regenerate. | |
2406 | ||
50f47ee0 JM |
2407 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
2408 | ||
2409 | * Makefile.in ($(PACKAGE).pot): New rule. Depend on | |
2410 | po/$(PACKAGE).pot. | |
2411 | (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword | |
2412 | arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. | |
2413 | Remove local srcdir path from generated file. | |
2414 | ||
968e08d6 | 2415 | 2004-11-04 Zack Weinberg <zack@codesourcery.com> |
c5ff069d | 2416 | Gerald Pfeifer <gerald@pfeifer.com> |
968e08d6 ZW |
2417 | |
2418 | * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H | |
2419 | as well. | |
2420 | ||
3da3d587 ZW |
2421 | 2004-10-27 Zack Weinberg <zack@codesourcery.com> |
2422 | ||
2423 | PR 18075 | |
2424 | * directives.c (do_pragma): Do not defer pragmas which are unknown. | |
2425 | (cpp_handle_deferred_pragma): Add cast to silence warning. | |
2426 | ||
ac24fc25 JM |
2427 | 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk> |
2428 | ||
2429 | * errors.c (_cpp_begin_message): Print "error: " for errors. | |
2430 | ||
7731405b AJ |
2431 | 2004-10-10 Andreas Jaeger <aj@suse.de> |
2432 | ||
2433 | * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. | |
2434 | * Makefile.in (makedepend.o): Add dependency on mkdeps.h. | |
2435 | ||
646544e3 AP |
2436 | 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> |
2437 | ||
2438 | * pch.c (cpp_write_pch_state): Remove variable z as it is not | |
2439 | used. | |
2440 | (cpp_read_state): Remove unused variables, m, d and mac_count. | |
2441 | ||
67a74146 PB |
2442 | 2004-09-29 Per Bothner <per@bothner.com> |
2443 | ||
2444 | * directives.c (cpp_handle_deferred_pragma): Save, clear and restore | |
2445 | cb.line_change. Otherwise do_pragma will call the line_change | |
2446 | call-back with a meaningless line number. | |
2447 | ||
018a4785 ZW |
2448 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
2449 | ||
2450 | * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to | |
2451 | programs cluster. Use ACX_PROG_CC_WARNING_OPTS, | |
2452 | ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. | |
2453 | * aclocal.m4, configure: Regenerate. | |
2454 | * init.c: Include localedir.h. | |
2455 | * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. | |
2456 | (DEFS): Delete. | |
2457 | (.c.o): Use $(ALL_CFLAGS). | |
2458 | (localedir.h, localedir.hs): New rules. | |
2459 | (clean): Use rm -rf to remove directories. | |
2460 | (distclean): Also delete localedir.h and localedir.hs. | |
2461 | (init.o): Update dependencies. | |
2462 | ||
88fa57d7 KC |
2463 | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> |
2464 | ||
2465 | * Makefile.in (aclocal.m4): Update dependencies. | |
2466 | * configure.ac (AC_CONFIG_MACRO_DIR): New. | |
2467 | * aclocal.m4, configure: Regenerate. | |
2468 | ||
8f8e9aa5 ZW |
2469 | 2004-09-17 Zack Weinberg <zack@codesourcery.com> |
2470 | ||
a29f62d9 ZW |
2471 | * charset.c (_cpp_destroy_iconv, emit_numeric_escape) |
2472 | (_cpp_convert_input, _cpp_default_encoding): Add comments. | |
2473 | Some other comments in this file also tweaked. | |
2474 | ||
8f8e9aa5 ZW |
2475 | * directives.c (do_pragma): Save current buffer position |
2476 | before lexing the pragma keywords; don't call | |
2477 | _cpp_backup_tokens in the defer_pragmas case. | |
2478 | ||
a2981930 PB |
2479 | 2004-09-15 Per Bothner <per@bothner.com> |
2480 | ||
2481 | * include/line-map.h (line_map_start): Add parameter names so | |
2482 | preceding comment makes sense. | |
2483 | (linemap_add): Remove from comment mention of non-existing parameter. | |
2484 | ||
21b11495 ZW |
2485 | 2004-09-09 Matt Austern <austern@apple.com> |
2486 | Zack Weinberg <zack@codesourcery.com> | |
2487 | ||
2488 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
2489 | prefixes throughout. Add entry for PRAGMA. Remove | |
2490 | unnecessary "= 0" from EQ. | |
2491 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
2492 | prefixes, via token-paste. | |
2493 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
2494 | Change from #defines to additional cpp_ttype enumerators. | |
2495 | (struct cpp_options): Add defer_pragmas. | |
2496 | (cpp_handle_deferred_pragma): Prototype new interface. | |
2497 | ||
2498 | * internal.h (struct cpp_reader): Add directive_result. | |
2499 | * directives.c (struct pragma_entry): Add is_internal field; | |
2500 | give boolean fields type bool. | |
2501 | (start_directive): Initialize pfile->directive_result.type. | |
2502 | (_cpp_do__Pragma): Likewise. | |
2503 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
2504 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
2505 | from it. | |
2506 | (register_pragma): New static function, bulk of former | |
2507 | cpp_register_pragma here; add 'internal' argument, pass along | |
2508 | to insert_pragma_entry. | |
2509 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
2510 | always passes false for 'internal' argument. | |
2511 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
2512 | true for 'internal'. | |
2513 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
2514 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
2515 | token instead of executing the pragma. | |
2516 | (cpp_handle_deferred_pragma): New interface. | |
2517 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
2518 | match changes to cpplib.h. | |
2519 | (_cpp_lex_token): Check for a directive-result token and | |
2520 | return it if present. | |
2521 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
2522 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
2523 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
2524 | ||
0fd9e8dd SB |
2525 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
2526 | ||
2527 | PR preprocessor/14699 | |
2528 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
2529 | from size_t to double. | |
2530 | ||
39b8ce7f AS |
2531 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
2532 | Andreas Jaeger <aj@suse.de> | |
2533 | ||
2534 | * configure.ac: Set PACKAGE correctly. | |
2535 | * configure: Regenerated. | |
2536 | ||
5d1f4b27 PB |
2537 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
2538 | ||
2539 | * Makefile.in: Add back top_builddir. | |
2540 | ||
078e3ffe PB |
2541 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
2542 | ||
2543 | * configure.ac: Replace Automake macro invocations | |
2544 | with manual Autoconf checks and substitutions. | |
2545 | * configure: Regenerate. | |
2546 | * aclocal.m4: Regenerate. | |
2547 | * config.in: Regenerate. | |
2548 | * Makefile.am: Removed. | |
2549 | * Makefile.in: Heavy simplification and reorganization. | |
2550 | ||
b3f8d95d MM |
2551 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
2552 | ||
2553 | * configure.ac (arm*-*-eabi*): New target. | |
2554 | (arm*-*-symbianelf*): Likewise. | |
2555 | * configure: Regenerated. | |
2556 | ||
72bb2c39 BI |
2557 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
2558 | ||
2559 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
2560 | * directives.c: Use XNEW-family macros from libiberty. | |
2561 | * lex.c: Likewise. | |
2562 | * macro.c: Likewise. | |
2563 | * cpplib.h (cpp_deps_style): Export enum with name. | |
2564 | ||
21b11495 | 2565 | 2004-07-23 Matthias Klose <doko@debian.org> |
72bb2c39 | 2566 | |
21b11495 | 2567 | * init.c (init_library): Use PACKAGE for the text domain. |
85eac2a0 | 2568 | |
a23ee064 AP |
2569 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
2570 | ||
2571 | PR preprocessor/16366 | |
2572 | * internal.h (struct cpp_reader): New field dir_hash. | |
2573 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
2574 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
2575 | ||
a09d4744 NB |
2576 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
2577 | ||
2578 | PR preprocessor/16192 | |
2579 | PR preprocessor/15913 | |
2580 | PR preprocessor/15572 | |
2581 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
2582 | expression is missing. | |
2583 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
2584 | ||
f58f7def PB |
2585 | 2004-06-30 Per Bothner <per@bothner.com> |
2586 | ||
2587 | * include/line-map.h (fileline): Remove old typedef. | |
2588 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
2589 | ||
e83d8d43 ZW |
2590 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
2591 | ||
2592 | Partially revert patch of 2004-06-05. | |
2593 | * files.c (search_cache): Remove pfile argument. Don't check | |
2594 | for file that would be found by "" or <> search here... | |
2595 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
2596 | Do not apply directory-of-current-file correction to files | |
2597 | found by this check. Rearrange code slightly. | |
2598 | ||
c0d578e6 GK |
2599 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
2600 | ||
2601 | * files.c (should_stack_file): Correct swapped parameters to call | |
2602 | to cb.read_pch. | |
2603 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
2604 | ||
159d5224 PB |
2605 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
2606 | ||
2607 | * Makefile.in: Regenerate with automake 1.8.5. | |
2608 | * aclocal.m4: Likewise. | |
2609 | * configure: Regenerate. | |
2610 | ||
2fac9c01 ZW |
2611 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
2612 | ||
2613 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
2614 | * configure, config.in: Regenerate. | |
2615 | * system.h: Unconditionally define bool as unsigned char, | |
2616 | BOOL_BITFIELD as unsigned int. | |
2617 | * .cvsignore: New file. | |
2618 | ||
d8044160 GK |
2619 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
2620 | ||
2621 | * traditional.c (push_replacement_text): Set macro->traditional. | |
2622 | (save_replacement_text): Likewise. | |
2623 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
2624 | (struct save_macro_item): Delete. | |
2625 | (struct save_macro_data): Use a character array not the previous | |
2626 | structured format. | |
2627 | (save_macros): Save macro as text not as internal structures. | |
2628 | (cpp_prepare_state): Update for changes to save_macro_data. | |
2629 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
2cf22451 | 2630 | -D macros as text. |
d8044160 GK |
2631 | * macro.c (create_iso_definition): Honour alloc_subobject. |
2632 | Clear traditional flag. | |
2633 | (_cpp_create_definition): Honour alloc_subobject. | |
2634 | * lex.c (cpp_token_val_index): New. | |
2635 | * internal.h: Include cpp-id-data.h. | |
2636 | (uchar): Move definition to cpp-id-data.h. | |
2637 | (U): Likewise. | |
2638 | (cpp_macro): Likewise. | |
2639 | * directives.c (struct answer): Move to cpp-id-data.h. | |
2640 | (do_assert): Honour alloc_subobject. | |
2cf22451 ZW |
2641 | |
2642 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
2643 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
2644 | (enum cpp_token_fld_kind): New. | |
2645 | (struct cpp_token): Add GTY markers. | |
2646 | (cpp_token_val_index): Prototype. | |
2647 | (CPP_HASHNODE_VALUE_IDX): New. | |
2648 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
2649 | * include/cpp-id-data.h: New file. | |
d8044160 | 2650 | |
0ca8e815 PB |
2651 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
2652 | ||
2653 | * Makefile.am (all-local): New. | |
2654 | * Makefile.in: Regenerate. | |
2655 | ||
b51fa00f RS |
2656 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
2657 | ||
2658 | * Makefile.am (LIBICONV): Declare. | |
2659 | (makedepend_LDADD): Use LIBICONV. | |
2660 | * Makefile.in: Regenerate. | |
2661 | ||
5e2f3f39 AP |
2662 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
2663 | ||
2664 | * Makefile.am (LIBINTL): Declare | |
2665 | (makedepend_LDADD): Use LIBINTL. | |
2666 | * Makefile.in: Regenerate. | |
2667 | ||
c6e83800 ZW |
2668 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
2669 | ||
2670 | * Makefile.am: Add makedepend. | |
2671 | * Makefile.in, aclocal.m4: Regenerate. | |
2672 | * charset.c: Insert a space to avoid a warning. | |
2673 | * directives.c: Include mkdeps.h. | |
2674 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
2675 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
2676 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
2677 | (cpp_get_deps): New interface. | |
2678 | * files.c (search_cache): Add pfile argument. Check for file | |
2679 | that would be found by "" or <> search here... | |
2680 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
2681 | files found by directory-of-current-file search that would be | |
2682 | found by "" or <> search. | |
2683 | * init.c (cpp_add_dependency_target): Delete. | |
2684 | * internal.h (struct lexer_state): Add discarding_output flag. | |
2685 | * lex.c (lex_identifier): Compute hash function while scanning. | |
2686 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
2687 | directives. | |
2688 | * makedepend.c: New file. | |
2689 | * mkdeps.c (struct deps): Add vpath vector. | |
2690 | (apply_vpath, deps_add_vpath): New function. | |
2691 | (deps_free): Free vpath vector. | |
2692 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
2693 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
2694 | (ht_lookup_with_hash): New function. | |
2695 | * cpplib.h, mkdeps.h: Update prototypes. | |
2696 | * symtab.h: Update prototypes. | |
2697 | (HT_HASHSTEP, HT_FINISH): New macros. | |
2698 | ||
b453c95f GK |
2699 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
2700 | ||
2701 | * symtab.c (ht_create): Set entries_owned. | |
2702 | (ht_destroy): Honour entries_owned. | |
2703 | (ht_expand): Likewise. | |
2704 | (ht_load): New. | |
2cf22451 ZW |
2705 | * include/symtab.h (struct ht): New field 'entries_owned' |
2706 | (ht_load): New prototype. | |
b453c95f | 2707 | |
963e23c5 PB |
2708 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
2709 | ||
2710 | PR bootstrap/15651 | |
2711 | * configure.ac: Fix m4 quoting when picking | |
2712 | the size of HOST_WIDE_INT. | |
2713 | * configure: Regenerate. | |
2714 | ||
0429bc77 PB |
2715 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
2716 | ||
2717 | * Makefile.am: the correct directory for | |
2718 | gettext include files is given by @INCINTL@. | |
2719 | * Makefile.in: Regenerate. | |
2720 | ||
c86dd7db PB |
2721 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
2722 | ||
2723 | * system.h [!ENABLE_NLS]: dgettext takes two | |
2724 | parameters. | |
2725 | ||
4f4e53dd PB |
2726 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
2727 | ||
2728 | Moved libcpp from the gcc subdirectory to the toplevel. | |
2729 | * Makefile.am: New file. | |
2730 | * Makefile.in: Regenerate. | |
2731 | * configure.ac: New file. | |
2732 | * configure: Regenerate. | |
2733 | * config.in: Regenerate. | |
2734 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
2735 | brokenness of input charset detection. Adjust for change | |
2736 | in name of cppucnid.h. | |
2737 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
2738 | * expr.c: Moved from gcc/cppexp.c. | |
2739 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
2740 | Remove #define of O_BINARY, it is in system.h. | |
2741 | * identifiers.c: Moved from gcc/cpphash.c. | |
2742 | * internal.h: Moved from gcc/cpphash.h. Change header | |
2743 | guard name. All other files adjusted to match name change. | |
2744 | * init.c: Moved from gcc/cppinit.c. | |
2745 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
2746 | * lex.c: Moved from gcc/cpplex.c. | |
2747 | * directives.c: Moved from gcc/cpplib.c. | |
2748 | * macro.c: Moved from gcc/cppmacro.c. | |
2749 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
2750 | * traditional.c: Moved from gcc/cpptrad.c. | |
2751 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
2752 | guard name. | |
2753 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
2754 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
2755 | guard name. | |
2756 | * symtab.c: Moved from gcc/hashtable.c. | |
2757 | * line-map.c: Moved from gcc. Do not include intl.h. | |
2758 | * mkdeps.c: Moved from gcc. | |
2759 | * system.h: New file. | |
2cf22451 ZW |
2760 | * include/cpplib.h: Moved from gcc. Change header guard name. |
2761 | * include/line-map.h: Moved from gcc. Change header guard name. | |
2762 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
2763 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
2764 | guard name. |