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