]>
Commit | Line | Data |
---|---|---|
8a645150 DM |
1 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
2 | ||
3 | * errors.c (cpp_diagnostic): Update for change in signature | |
4 | of "error" callback. | |
5 | (cpp_diagnostic_with_line): Likewise, calling override_column | |
6 | on the rich_location. | |
7 | * include/cpplib.h (struct cpp_callbacks): Within "error" | |
8 | callback, convert param from source_location to rich_location *, | |
9 | and drop column_override param. | |
10 | * include/line-map.h (struct source_range): New struct. | |
11 | (struct location_range): New struct. | |
12 | (class rich_location): New class. | |
13 | (linemap_client_expand_location_to_spelling_point): New declaration. | |
14 | * line-map.c (rich_location::rich_location): New ctors. | |
15 | (rich_location::lazily_expand_location): New method. | |
16 | (rich_location::override_column): New method. | |
17 | (rich_location::add_range): New methods. | |
18 | (rich_location::set_range): New method. | |
19 | ||
ee015909 DM |
20 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
21 | ||
22 | * include/line-map.h (struct linemap_stats): Add fields | |
23 | "adhoc_table_size" and "adhoc_table_entries_used". | |
24 | * line-map.c (linemap_get_statistics): Populate above fields. | |
25 | ||
a6c764d0 MM |
26 | 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com> |
27 | ||
28 | * config.in: Regenerate. | |
29 | * configure: Regenerate. | |
30 | * configure.ac: Remove ENABLE_CHECKING. | |
31 | ||
49445904 UB |
32 | 2015-11-03 Uros Bizjak <ubizjak@gmail.com> |
33 | ||
34 | * lex.c (search_line_sse42): Correctly advance the pointer to an | |
35 | aligned address. | |
36 | ||
525ce910 DM |
37 | 2015-11-02 David Malcolm <dmalcolm@redhat.com> |
38 | ||
39 | * include/line-map.h (source_location): In the table in the | |
40 | descriptive comment, show UNKNOWN_LOCATION, BUILTINS_LOCATION, | |
41 | LINE_MAP_MAX_LOCATION_WITH_COLS, LINE_MAP_MAX_SOURCE_LOCATION. | |
42 | Add notes about ad-hoc values. | |
43 | ||
7ec491c0 MM |
44 | 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com> |
45 | ||
22d66382 MM |
46 | * include/line-map.h: Use CHECKING_P instead of ENABLE_CHECKING. |
47 | * init.c: Likewise. | |
48 | * macro.c (struct macro_arg_token_iter, set_arg_token, | |
49 | macro_arg_token_iter_init, macro_arg_token_iter_forward, | |
50 | macro_arg_token_iter_get_token, macro_arg_token_iter_get_location, | |
51 | alloc_expanded_arg_mem, _cpp_backup_tokens): Likewise. | |
52 | ||
7ec491c0 MM |
53 | * config.in: Regenerate. |
54 | * configure: Regenerate. | |
55 | * configure.ac (CHECKING_P): Define. | |
56 | * system.h (fancy_abort): Declare. | |
57 | (abort): Define. | |
58 | (gcc_assert): Define. Use CHECKING_P. | |
59 | ||
179b8d05 MM |
60 | 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com> |
61 | ||
62 | * system.h (CHECKING_P, gcc_checking_assert): Define. | |
63 | ||
87b470b3 MLI |
64 | 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
65 | ||
66 | PR c/66415 | |
67 | * line-map.c (linemap_position_for_loc_and_offset): Handle the | |
68 | case of long lines encoded in multiple maps. | |
69 | ||
85bc8baa MP |
70 | 2015-09-07 Marek Polacek <polacek@redhat.com> |
71 | ||
72 | * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning. | |
73 | ||
bf5372e7 YS |
74 | 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com> |
75 | ||
76 | * configure: Regenerate. | |
77 | ||
d17f7d59 TS |
78 | 2015-07-08 Thomas Schwinge <thomas@codesourcery.com> |
79 | ||
80 | * include/line-map.h (RESERVED_LOCATION_COUNT): Change type to | |
81 | source_location. | |
82 | ||
fbb22910 PC |
83 | 2015-07-02 Paolo Carlini <paolo.carlini@oracle.com> |
84 | ||
d885793d | 85 | PR preprocessor/53690 |
fbb22910 PC |
86 | * charset.c (_cpp_valid_ucn): Add cppchar_t * parameter and change |
87 | return type to bool. Fix encoding of \u0000 and \U00000000 in C++. | |
88 | (convert_ucn): Adjust call. | |
89 | * lex.c (forms_identifier_p): Likewise. | |
90 | * internal.h (_cpp_valid_ucn): Adjust declaration. | |
91 | ||
fe95b036 ESR |
92 | 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> |
93 | ||
94 | Implement N4197 - Adding u8 character literals | |
95 | * include/cpplib.h (UTF8CHAR, UTF8CHAR_USERDEF): New cpp tokens; | |
96 | (struct cpp_options): Add utf8_char_literals. | |
97 | * init.c (struct lang_flags): Add utf8_char_literals; | |
98 | (struct lang_flags lang_defaults): Add column for utf8_char_literals. | |
fbb22910 | 99 | * macro.c (stringify_arg()): Treat CPP_UTF8CHAR token; |
fe95b036 ESR |
100 | * expr.c (cpp_userdef_char_remove_type(), cpp_userdef_char_add_type()): |
101 | Treat CPP_UTF8CHAR_USERDEF, CPP_UTF8CHAR tokens; | |
102 | (cpp_userdef_char_p()): Treat CPP_UTF8CHAR_USERDEF token; | |
103 | (eval_token(), _cpp_parse_expr()): Treat CPP_UTF8CHAR token. | |
104 | * lex.c (lex_string(), _cpp_lex_direct()): Include CPP_UTF8CHAR tokens. | |
105 | * charset.c (converter_for_type(), cpp_interpret_charconst()): | |
106 | Treat CPP_UTF8CHAR token. | |
107 | ||
dc6bcf52 UB |
108 | 2015-06-30 Uros Bizjak <ubizjak@gmail.com> |
109 | ||
110 | * lex.c (search_line_sse42) [__GCC_ASM_FLAG_OUTPUTS__]: New main | |
111 | loop using asm flag outputs. | |
112 | ||
a1661b90 MP |
113 | 2015-06-08 Marek Polacek <polacek@redhat.com> |
114 | ||
115 | PR c/66415 | |
116 | * line-map.c (linemap_position_for_loc_and_offset): Remove | |
117 | linemap_assert_fails; reverse conditions. | |
118 | ||
815facd3 MLI |
119 | 2015-05-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
120 | ||
121 | * line-map.c (LINE_MAP_MAX_COLUMN_NUMBER | |
122 | LINE_MAP_MAX_LOCATION_WITH_COLS,LINE_MAP_MAX_SOURCE_LOCATION): | |
123 | New constants. | |
124 | (linemap_line_start): Use them. | |
125 | (linemap_position_for_column): Use them. | |
126 | ||
c819ed29 DM |
127 | 2015-05-20 David Malcolm <dmalcolm@redhat.com> |
128 | ||
129 | * include/line-map.h (MAP_START_LOCATION): Eliminate the non-const | |
130 | variant, and tweak comment for the const variant. | |
131 | (ORDINARY_MAP_STARTING_LINE_NUMBER): Drop the non-const variant. | |
132 | (ORDINARY_MAP_INCLUDER_FILE_INDEX): Likewise. | |
133 | (ORDINARY_MAP_IN_SYSTEM_HEADER_P): Likewise. | |
134 | (SET_ORDINARY_MAP_NUMBER_OF_COLUMN_BITS): Delete. | |
135 | (ORDINARY_MAP_FILE_NAME): Drop the non-const variant. | |
136 | (MACRO_MAP_MACRO): Likewise. | |
137 | (MACRO_MAP_NUM_MACRO_TOKENS): Likewise. | |
138 | (MACRO_MAP_LOCATIONS): Likewise. | |
139 | (MACRO_MAP_EXPANSION_POINT_LOCATION): Likewise. | |
140 | * line-map.c (linemap_add): Replace writes through macros with | |
141 | direct field accesses. | |
142 | (linemap_enter_macro): Likewise. | |
143 | (linemap_line_start): Likewise. | |
144 | ||
0e50b624 DM |
145 | 2015-05-19 David Malcolm <dmalcolm@redhat.com> |
146 | ||
147 | * directives.c (do_line): Strengthen local "map" from | |
148 | const line_map * to const line_map_ordinary *. | |
149 | (do_linemarker): Likewise. | |
150 | (_cpp_do_file_change): Assert that we're not dealing with | |
151 | a macro map. Introduce local "ord_map" via a call to | |
152 | linemap_check_ordinary, guarded within the check for | |
153 | non-NULL. Use it for typesafety. | |
154 | * files.c (cpp_make_system_header): Strengthen local "map" from | |
155 | const line_map * to const line_map_ordinary *. | |
156 | * include/cpplib.h (struct cpp_callbacks): Likewise for second | |
157 | parameter of "file_change" callback. | |
158 | * include/line-map.h (struct line_map): Convert from a struct | |
159 | containing a union to a base class. | |
160 | (struct line_map_ordinary): Convert to a subclass of line_map. | |
161 | (struct line_map_macro): Likewise. | |
162 | (linemap_check_ordinary): Strengthen return type from line_map * | |
163 | to line_map_ordinary *, and add a const-variant. | |
164 | (linemap_check_macro): New pair of functions. | |
165 | (ORDINARY_MAP_STARTING_LINE_NUMBER): Strengthen param from | |
166 | const line_map * to const line_map_ordinary *, eliminating call | |
167 | to linemap_check_ordinary. Likewise for the non-const variant. | |
168 | (ORDINARY_MAP_INCLUDER_FILE_INDEX): Likewise. | |
169 | (ORDINARY_MAP_IN_SYSTEM_HEADER_P): Likewise. | |
170 | (ORDINARY_MAP_NUMBER_OF_COLUMN_BITS): Likewise. | |
171 | (ORDINARY_MAP_FILE_NAME): Likewise. | |
172 | (MACRO_MAP_MACRO): Strengthen param from const line_map * to | |
173 | const line_map_macro *. Likewise for the non-const variant. | |
174 | (MACRO_MAP_NUM_MACRO_TOKENS): Likewise. | |
175 | (MACRO_MAP_LOCATIONS): Likewise. | |
176 | (MACRO_MAP_EXPANSION_POINT_LOCATION): Likewise. | |
177 | (struct maps_info): Replace with... | |
178 | (struct maps_info_ordinary):...this and... | |
179 | (struct maps_info_macro): ...this. | |
180 | (struct line_maps): Convert fields "info_ordinary" and | |
181 | "info_macro" to the above new structs. | |
182 | (LINEMAPS_MAP_INFO): Delete both functions. | |
183 | (LINEMAPS_MAPS): Likewise. | |
184 | (LINEMAPS_ALLOCATED): Rewrite both variants to avoid using | |
185 | LINEMAPS_MAP_INFO. | |
186 | (LINEMAPS_USED): Likewise. | |
187 | (LINEMAPS_CACHE): Likewise. | |
188 | (LINEMAPS_MAP_AT): Likewise. | |
189 | (LINEMAPS_ORDINARY_MAPS): Strengthen return type from line_map * | |
190 | to line_map_ordinary *. | |
191 | (LINEMAPS_ORDINARY_MAP_AT): Likewise. | |
192 | (LINEMAPS_LAST_ORDINARY_MAP): Likewise. | |
193 | (LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP): Likewise. | |
194 | (LINEMAPS_MACRO_MAPS): Strengthen return type from line_map * to | |
195 | line_map_macro *. | |
196 | (LINEMAPS_MACRO_MAP_AT): Likewise. | |
197 | (LINEMAPS_LAST_MACRO_MAP): Likewise. | |
198 | (LINEMAPS_LAST_ALLOCATED_MACRO_MAP): Likewise. | |
199 | (linemap_map_get_macro_name): Strengthen param from | |
200 | const line_map * to const line_map_macro *. | |
201 | (SOURCE_LINE): Strengthen first param from const line_map * to | |
202 | const line_map_ordinary *, removing call to | |
203 | linemap_check_ordinary. | |
204 | (SOURCE_COLUMN): Likewise. | |
205 | (LAST_SOURCE_LINE_LOCATION): Likewise. | |
206 | (LAST_SOURCE_LINE): Strengthen first param from const line_map * | |
207 | to const line_map_ordinary *. | |
208 | (LAST_SOURCE_COLUMN): Likewise. | |
209 | (INCLUDED_FROM): Strengthen return type from line_map * to | |
210 | line_map_ordinary *., and second param from const line_map * | |
211 | to const line_map_ordinary *, removing call to | |
212 | linemap_check_ordinary. | |
213 | (MAIN_FILE_P): Strengthen param from const line_map * to | |
214 | const line_map_ordinary *, removing call to | |
215 | linemap_check_ordinary. | |
216 | (linemap_position_for_line_and_column): Strengthen param from | |
217 | const line_map * to const line_map_ordinary *. | |
218 | (LINEMAP_FILE): Strengthen param from const line_map * to | |
219 | const line_map_ordinary *, removing call to | |
220 | linemap_check_ordinary. | |
221 | (LINEMAP_LINE): Likewise. | |
222 | (LINEMAP_SYSP): Likewise. | |
223 | (linemap_resolve_location): Strengthen final param from | |
224 | const line_map ** to const line_map_ordinary **. | |
225 | * internal.h (CPP_INCREMENT_LINE): Likewise for local "map". | |
226 | (linemap_enter_macro): Strengthen return type from | |
227 | const line_map * to const line_map_macro *. | |
228 | (linemap_add_macro_token): Likewise for first param. | |
229 | * line-map.c (linemap_check_files_exited): Strengthen local "map" | |
230 | from const line_map * to const line_map_ordinary *. | |
231 | (new_linemap): Introduce local "map_size" and use it when | |
232 | calculating how large the buffer should be. Rewrite based | |
233 | on change of info_macro and info_ordinary into distinct types. | |
234 | (linemap_add): Strengthen locals "map" and "from" from line_map * | |
235 | to line_map_ordinary *. | |
236 | (linemap_enter_macro): Strengthen return type from | |
237 | const line_map * to const line_map_macro *, and local "map" from | |
238 | line_map * to line_map_macro *. | |
239 | (linemap_add_macro_token): Strengthen param "map" from | |
240 | const line_map * to const line_map_macro *. | |
241 | (linemap_line_start): Strengthen local "map" from line_map * to | |
242 | line_map_ordinary *. | |
243 | (linemap_position_for_column): Likewise. | |
244 | (linemap_position_for_line_and_column): Strengthen first param | |
245 | from const line_map * to const line_map_ordinary *. | |
246 | (linemap_position_for_loc_and_offset): Strengthen local "map" from | |
247 | const line_map * to const line_map_ordinary *. | |
248 | (linemap_ordinary_map_lookup): Likewise for return type and locals | |
249 | "cached" and "result". | |
250 | (linemap_macro_map_lookup): Strengthen return type and locals | |
251 | "cached" and "result" from const line_map * to | |
252 | const line_map_macro *. | |
253 | (linemap_macro_map_loc_to_exp_point): Likewise for param "map". | |
254 | (linemap_macro_map_loc_to_def_point): Likewise. | |
255 | (linemap_macro_map_loc_unwind_toward_spelling): Likewise. | |
256 | (linemap_get_expansion_line): Strengthen local "map" from | |
257 | const line_map * to const line_map_ordinary *. | |
258 | (linemap_get_expansion_filename): Likewise. | |
259 | (linemap_map_get_macro_name): Strengthen param from | |
260 | const line_map * to const line_map_macro *. | |
261 | (linemap_location_in_system_header_p): Add call to | |
262 | linemap_check_ordinary in region guarded by | |
263 | !linemap_macro_expansion_map_p. Introduce local "macro_map" via | |
264 | linemap_check_macro in other region, using it in place of "map" | |
265 | for typesafety. | |
266 | (first_map_in_common_1): Add calls to linemap_check_macro. | |
267 | (trace_include): Strengthen param "map" from const line_map * to | |
268 | const line_map_ordinary *. | |
269 | (linemap_macro_loc_to_spelling_point): Strengthen final param from | |
270 | const line_map ** to const line_map_ordinary **. Replace a | |
271 | C-style cast with a const_cast, and add calls to | |
272 | linemap_check_macro and linemap_check_ordinary. | |
273 | (linemap_macro_loc_to_def_point): Likewise. | |
274 | (linemap_macro_loc_to_exp_point): Likewise. | |
275 | (linemap_resolve_location): Strengthen final param from | |
276 | const line_map ** to const line_map_ordinary **. | |
277 | (linemap_unwind_toward_expansion): Introduce local "macro_map" via | |
278 | a checked cast and use it in place of *map. | |
279 | (linemap_unwind_to_first_non_reserved_loc): Strengthen local | |
280 | "map1" from const line_map * to const line_map_ordinary *. | |
281 | (linemap_expand_location): Introduce local "ord_map" via a checked | |
282 | cast and use it in place of map. | |
283 | (linemap_dump): Make local "map" const. Strengthen local | |
284 | "includer_map" from line_map * to const line_map_ordinary *. | |
285 | Introduce locals "ord_map" and "macro_map" via checked casts and | |
286 | use them in place of "map" for typesafety. | |
287 | (linemap_dump_location): Strengthen local "map" from | |
288 | const line_map * to const line_map_ordinary *. | |
289 | (linemap_get_file_highest_location): Update for elimination of | |
290 | union. | |
291 | (linemap_get_statistics): Strengthen local "cur_map" from | |
292 | line_map * to const line_map_macro *. Update uses of sizeof to | |
293 | use the appropriate line_map subclasses. | |
294 | * macro.c (_cpp_warn_if_unused_macro): Add call to | |
295 | linemap_check_ordinary. | |
296 | (builtin_macro): Strengthen local "map" from const line_map * to | |
297 | const line_map_macro *. | |
298 | (enter_macro_context): Likewise. | |
299 | (replace_args): Likewise. | |
300 | (tokens_buff_put_token_to): Likewise for param "map". | |
301 | (tokens_buff_add_token): Likewise. | |
302 | ||
ba4ad400 DM |
303 | 2015-05-13 David Malcolm <dmalcolm@redhat.com> |
304 | ||
305 | * include/line-map.h (source_location): Add a reference to | |
306 | location-example.txt to the descriptive comment. | |
307 | * location-example.txt: New file. | |
308 | ||
0501dbd9 DM |
309 | 2015-05-13 David Malcolm <dmalcolm@redhat.com> |
310 | ||
311 | * include/line-map.h (MAX_SOURCE_LOCATION): Convert from a macro | |
312 | to a const source_location. | |
313 | (RESERVED_LOCATION_COUNT): Likewise. | |
314 | (linemap_check_ordinary): Convert from a macro to a pair of inline | |
315 | functions, for const/non-const arguments. | |
316 | (MAP_START_LOCATION): Likewise. | |
317 | (ORDINARY_MAP_STARTING_LINE_NUMBER): Likewise. | |
318 | (ORDINARY_MAP_INCLUDER_FILE_INDEX): Likewise. | |
319 | (ORDINARY_MAP_IN_SYSTEM_HEADER_P): Likewise. | |
320 | (ORDINARY_MAP_NUMBER_OF_COLUMN_BITS): Convert from a macro to a | |
321 | pair of inline functions, for const/non-const arguments, where the | |
322 | latter is named... | |
323 | (SET_ORDINARY_MAP_NUMBER_OF_COLUMN_BITS): New function. | |
324 | (ORDINARY_MAP_FILE_NAME): Convert from a macro to a pair of inline | |
325 | functions, for const/non-const arguments. | |
326 | (MACRO_MAP_MACRO): Likewise. | |
327 | (MACRO_MAP_NUM_MACRO_TOKENS): Likewise. | |
328 | (MACRO_MAP_LOCATIONS): Likewise. | |
329 | (MACRO_MAP_EXPANSION_POINT_LOCATION): Likewise. | |
330 | (LINEMAPS_MAP_INFO): Likewise. | |
331 | (LINEMAPS_MAPS): Likewise. | |
332 | (LINEMAPS_ALLOCATED): Likewise. | |
333 | (LINEMAPS_USED): Likewise. | |
334 | (LINEMAPS_CACHE): Likewise. | |
335 | (LINEMAPS_ORDINARY_CACHE): Likewise. | |
336 | (LINEMAPS_MACRO_CACHE): Likewise. | |
337 | (LINEMAPS_MAP_AT): Convert from a macro to an inline function. | |
338 | (LINEMAPS_LAST_MAP): Likewise. | |
339 | (LINEMAPS_LAST_ALLOCATED_MAP): Likewise. | |
340 | (LINEMAPS_ORDINARY_MAPS): Likewise. | |
341 | (LINEMAPS_ORDINARY_MAP_AT): Likewise. | |
342 | (LINEMAPS_ORDINARY_ALLOCATED): Likewise. | |
343 | (LINEMAPS_ORDINARY_USED): Likewise. | |
344 | (LINEMAPS_LAST_ORDINARY_MAP): Likewise. | |
345 | (LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP): Likewise. | |
346 | (LINEMAPS_MACRO_MAPS): Likewise. | |
347 | (LINEMAPS_MACRO_MAP_AT): Likewise. | |
348 | (LINEMAPS_MACRO_ALLOCATED): Likewise. | |
349 | (LINEMAPS_MACRO_USED): Likewise. | |
350 | (LINEMAPS_MACRO_LOWEST_LOCATION): Likewise. | |
351 | (LINEMAPS_LAST_MACRO_MAP): Likewise. | |
352 | (LINEMAPS_LAST_ALLOCATED_MACRO_MAP): Likewise. | |
353 | (IS_ADHOC_LOC): Likewise. | |
354 | (COMBINE_LOCATION_DATA): Likewise. | |
355 | (SOURCE_LINE): Likewise. | |
356 | (SOURCE_COLUMN): Likewise. | |
357 | (LAST_SOURCE_LINE_LOCATION): Likewise. | |
358 | (LAST_SOURCE_LINE): Likewise. | |
359 | (LAST_SOURCE_COLUMN): Likewise. | |
360 | (LAST_SOURCE_LINE_LOCATION) | |
361 | (INCLUDED_FROM): Likewise. | |
362 | (MAIN_FILE_P): Likewise. | |
363 | (LINEMAP_FILE): Likewise. | |
364 | (LINEMAP_LINE): Likewise. | |
365 | (LINEMAP_SYSP): Likewise. | |
366 | (linemap_location_before_p): Likewise. | |
367 | * line-map.c (linemap_check_files_exited): Make local "map" const. | |
368 | (linemap_add): Use SET_ORDINARY_MAP_NUMBER_OF_COLUMN_BITS. | |
369 | (linemap_line_start): Likewise. | |
370 | ||
eb70f327 MH |
371 | 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> |
372 | ||
373 | * aclocal.m4: Regenerated with automake-1.11.6. | |
374 | ||
60c12095 DM |
375 | 2015-05-13 David Malcolm <dmalcolm@redhat.com> |
376 | ||
377 | * include/line-map.h (linemap_assert): Move up within the file to | |
378 | before all of the map accessor macros. | |
379 | (linemap_assert_fails): Likewise. | |
380 | (linemap_check_ordinary): Likewise. | |
381 | (linemap_macro_expansion_map_p): Likewise. | |
382 | ||
c3388e62 DM |
383 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
384 | ||
385 | * directives.c (do_line): Set seen_line_directive on line_table. | |
386 | (do_linemarker): Likewise. | |
387 | * include/line-map.h (struct line_maps): Add new field | |
388 | "seen_line_directive". | |
389 | ||
fe191308 JM |
390 | 2015-05-08 Jason Merrill <jason@redhat.com> |
391 | ||
392 | * include/cpplib.h: Add CPP_W_CXX11_COMPAT. | |
393 | (struct cpp_options): Add cpp_warn_cxx11_compat. | |
394 | * init.c (cpp_create_reader): Initialize it. | |
395 | * lex.c (lex_string): Add -Wc++11-compat warning. | |
396 | ||
21c0a521 DM |
397 | 2015-05-05 David Malcolm <dmalcolm@redhat.com> |
398 | ||
399 | * pch.c (cpp_valid_state): Fix indentation so that it reflects the | |
400 | block structure. | |
401 | ||
c87b25e6 DM |
402 | 2015-05-05 David Malcolm <dmalcolm@redhat.com> |
403 | ||
404 | * include/line-map.h: Fix comment at the top of the file. | |
405 | (source_location): Rewrite and expand the comment for this | |
406 | typedef, adding an ascii-art table to clarify how source_location | |
407 | values are allocated. | |
408 | * line-map.c: Fix comment at the top of the file. | |
409 | ||
ca708025 RB |
410 | 2015-04-09 Richard Biener <rguenther@suse.de> |
411 | ||
412 | PR pch/65550 | |
413 | * files.c (pch_open_file): Allow main and pre-included files | |
414 | when trying to open a PCH. | |
415 | ||
e4b33ee5 JJ |
416 | 2015-04-06 Jakub Jelinek <jakub@redhat.com> |
417 | ||
418 | PR preprocessor/61977 | |
419 | * lex.c (cpp_peek_token): If peektok is CPP_EOF, back it up | |
420 | with all tokens peeked by the current function. | |
421 | ||
b8cd77f4 JJ |
422 | 2015-04-02 Jakub Jelinek <jakub@redhat.com> |
423 | ||
424 | PR preprocessor/61977 | |
425 | * lex.c (cpp_peek_token): Temporarily clear pfile->cb.line_change. | |
426 | ||
fb136e35 JJ |
427 | 2015-03-23 Jakub Jelinek <jakub@redhat.com> |
428 | ||
429 | PR preprocessor/65238 | |
430 | * internal.h (_cpp_scan_out_logical_line): Add third argument. | |
431 | * directives.c (prepare_directive_trad): Pass false to it. | |
432 | * traditional.c (_cpp_read_logical_line_trad, | |
433 | _cpp_create_trad_definition): Likewise. | |
434 | (struct fun_macro): Add paramc field. | |
435 | (fun_like_macro): New function. | |
436 | (maybe_start_funlike): Handle NODE_BUILTIN macros. Initialize | |
437 | macro->paramc field. | |
438 | (save_argument): Use macro->paramc instead of | |
439 | macro->node->value.macro->paramc. | |
440 | (push_replacement_text): Formatting fix. | |
441 | (recursive_macro): Use fun_like_macro helper. | |
442 | (_cpp_scan_out_logical_line): Likewise. Add BUILTIN_MACRO_ARG | |
443 | argument. Initialize fmacro.paramc field. Handle builtin | |
444 | function-like macros. | |
445 | ||
a5858a3d ESR |
446 | 2015-03-16 Edward Smith-Rowland <3dw4rd@verizon.net> |
447 | ||
448 | PR c++/64626 | |
449 | * lex.c (lex_number): If a number ends with digit-seps (') skip back | |
450 | and let lex_string take them. | |
451 | ||
44d95244 MT |
452 | 2015-03-02 Markus Trippelsdorf <markus@trippelsdorf.de> |
453 | ||
454 | PR target/65261 | |
455 | * lex.c (search_line_fast): Silence ubsan errors. | |
456 | ||
f8abc9ba DS |
457 | 2015-02-03 <dodji@redhat.com> |
458 | ||
459 | PR preprocessor/64803 | |
460 | * internal.h (cpp_reader::top_most_macro_node): New data member. | |
461 | * macro.c (enter_macro_context): Pass the location of the end of | |
462 | the top-most invocation of the function-like macro, or the | |
463 | location of the expansion point of the top-most object-like macro. | |
464 | (cpp_get_token_1): Store the top-most macro node in the new | |
465 | pfile->top_most_macro_node data member. | |
466 | (_cpp_pop_context): Clear the new cpp_reader::top_most_macro_node | |
467 | data member. | |
468 | ||
95d0610c SN |
469 | 2015-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com> |
470 | ||
471 | * lex.c (search_line_fast): Change __ARM_NEON__ to __ARM_NEON. | |
472 | ||
10ef8f28 MP |
473 | 2015-01-23 Marek Polacek <polacek@redhat.com> |
474 | ||
475 | DR#412 | |
476 | PR preprocessor/60570 | |
477 | * directives.c (do_elif): Don't evaluate #elif conditionals | |
478 | when they don't need to be. | |
479 | ||
6e6cb471 JJ |
480 | 2015-01-16 Jakub Jelinek <jakub@redhat.com> |
481 | ||
482 | * expr.c (cpp_classify_number): Add N_() around ?: string | |
483 | literals used in cpp_error_with_line call as format string. | |
484 | ||
5624e564 JJ |
485 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
486 | ||
487 | Update copyright years. | |
488 | ||
1f8d3e84 JJ |
489 | 2014-12-19 Jakub Jelinek <jakub@redhat.com> |
490 | ||
491 | PR preprocessor/63831 | |
492 | * directives.c (lex_macro_node): Remove __has_attribute__ handling. | |
493 | * internal.h (struct spec_node): Remove n__has_attribute__ field. | |
494 | (struct lexer_state): Remove in__has_attribute__ field. | |
495 | * macro.c (_cpp_builtin_macro_text): Handle BT_HAS_ATTRIBUTE. | |
496 | * identifiers.c (_cpp_init_hashtable): Remove __has_attribute__ | |
497 | handling. | |
498 | * init.c (builtin_array): Add __has_attribute and __has_cpp_attribute. | |
499 | (cpp_init_special_builtins): Don't initialize __has_attribute | |
500 | or __has_cpp_attribute if CLK_ASM or pfile->cb.has_attribute is NULL. | |
501 | * traditional.c (enum ls): Remove ls_has_attribute, | |
502 | ls_has_attribute_close. | |
503 | (_cpp_scan_out_logical_line): Remove __has_attribute__ handling. | |
504 | * include/cpplib.h (enum cpp_builtin_type): Add BT_HAS_ATTRIBUTE. | |
505 | * pch.c (cpp_read_state): Remove __has_attribute__ handling. | |
506 | * expr.c (eval_token): Likewise. | |
507 | (parse_has_attribute): Removed. | |
508 | ||
01ca36af UB |
509 | 2014-12-11 Uros Bizjak <ubizjak@gmail.com> |
510 | ||
511 | * directives.c (cpp_define_formatted): Use xvasprintf. | |
512 | ||
b93c0722 MLI |
513 | 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
514 | ||
515 | * line-map.c (linemap_position_for_loc_and_offset): Add new | |
516 | linemap_assert_fails. | |
517 | ||
73bd8329 MLI |
518 | 2014-12-02 Manuel López-Ibáñez <manu@gcc.gnu.org> |
519 | ||
520 | * include/line-map.h (linemap_assert_fails): Declare. | |
521 | * line-map.c (linemap_position_for_loc_and_offset): Use it. | |
522 | ||
9c320ab1 MLI |
523 | 2014-12-02 Manuel López-Ibáñez <manu@gcc.gnu.org> |
524 | ||
49445904 UB |
525 | * line-map.c (linemap_add): Fix typo. |
526 | (linemap_line_start): Fix whitespace. | |
9c320ab1 | 527 | |
81fee4a7 JM |
528 | 2014-11-29 John Schmerge <jbschmerge@gmail.com> |
529 | ||
530 | PR preprocessor/41698 | |
531 | * charset.c (one_utf8_to_utf16): Do not produce surrogate pairs | |
532 | for 0xffff. | |
533 | ||
43ba1c6c JJ |
534 | 2014-11-25 Jakub Jelinek <jakub@redhat.com> |
535 | ||
536 | PR preprocessor/60436 | |
537 | * line-map.c (linemap_line_start): If highest is above 0x60000000 | |
538 | and we are still tracking columns or highest is above 0x70000000, | |
539 | force add_map. | |
540 | ||
8a23b100 UB |
541 | 2014-11-20 Uros Bizjak <ubizjak@gmail.com> |
542 | ||
543 | PR target/63966 | |
1b6b13f3 UB |
544 | * lex.c [__i386__ || __x86_64__]: Compile special SSE functions |
545 | only for (__GNUC__ >= 5 || !defined(__PIC__)). | |
8a23b100 | 546 | |
d82f1e13 MLI |
547 | 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
548 | ||
549 | * include/line-map.h: Include EXPR, so that unused variable warnings | |
550 | do not occur. | |
551 | ||
3aa34c1d MLI |
552 | 2014-11-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
553 | ||
554 | PR fortran/44054 | |
555 | * include/line-map.h (linemap_position_for_loc_and_offset): | |
556 | Declare. | |
557 | * line-map.c (linemap_position_for_loc_and_offset): New. | |
558 | ||
35485da9 DM |
559 | 2014-11-11 David Malcolm <dmalcolm@redhat.com> |
560 | ||
561 | * ChangeLog.jit: New. | |
562 | ||
42fd12b1 ESR |
563 | 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
564 | ||
565 | * include/cpplib.h (cpp_callbacks): Add has_attribute. | |
566 | * internal.h (lexer_state): Add in__has_attribute__. | |
567 | * directives.c (lex_macro_node): Prevent use of __has_attribute__ | |
568 | as a macro. | |
569 | * expr.c (parse_has_attribute): New function; (eval_token): Look for | |
570 | __has_attribute__ and route to parse_has_attribute. | |
571 | * identifiers.c (_cpp_init_hashtable): Initialize n__has_attribute__. | |
572 | * pch.c (cpp_read_state): Initialize n__has_attribute__. | |
573 | * traditional.c (enum ls): Add ls_has_attribute, ls_has_attribute_close; | |
574 | (_cpp_scan_out_logical_line): Attend to __has_attribute__. | |
575 | ||
be5ffc59 JM |
576 | 2014-11-06 Joseph Myers <joseph@codesourcery.com> |
577 | ||
578 | * include/cpp-id-data.h (struct cpp_macro): Update comment | |
579 | regarding parameters. | |
580 | * include/cpplib.h (struct cpp_macro_arg, struct cpp_identifier): | |
581 | Add spelling fields. | |
582 | (struct cpp_token): Update comment on macro_arg. | |
583 | * internal.h (_cpp_save_parameter): Add extra argument. | |
584 | (_cpp_spell_ident_ucns): New declaration. | |
585 | * lex.c (lex_identifier): Add SPELLING argument. Set *SPELLING to | |
586 | original spelling of identifier. | |
587 | (_cpp_lex_direct): Update calls to lex_identifier. | |
588 | (_cpp_spell_ident_ucns): New function, factored out of | |
589 | cpp_spell_token. | |
590 | (cpp_spell_token): Adjust FORSTRING argument semantics to return | |
591 | original spelling of identifiers. Use _cpp_spell_ident_ucns in | |
592 | !FORSTRING case. | |
593 | (_cpp_equiv_tokens): Check spellings of identifiers and macro | |
594 | arguments are identical. | |
595 | * macro.c (macro_arg_saved_data): New structure. | |
596 | (paste_tokens): Use original spellings of identifiers from | |
597 | cpp_spell_token. | |
598 | (_cpp_save_parameter): Add argument SPELLING. Save both canonical | |
599 | node and its value. | |
600 | (parse_params): Update calls to _cpp_save_parameter. | |
601 | (lex_expansion_token): Save spelling of macro argument tokens. | |
602 | (_cpp_create_definition): Extract canonical node from saved data. | |
603 | (cpp_macro_definition): Use UCNs in spelling of macro name. Use | |
604 | original spellings of macro argument tokens and identifiers. | |
605 | * traditional.c (scan_parameters): Update call to | |
606 | _cpp_save_parameter. | |
607 | ||
701cade1 JM |
608 | 2014-11-05 Joseph Myers <joseph@codesourcery.com> |
609 | ||
610 | PR preprocessor/9449 | |
611 | * init.c (lang_defaults): Enable extended identifiers for C++ and | |
612 | C99-based standards. | |
613 | ||
19a9ba64 AM |
614 | 2014-10-22 Alan Modra <amodra@gmail.com> |
615 | ||
616 | * symtab.c (ht_create): Use obstack_specify_allocation in place of | |
617 | _obstack_begin. | |
618 | * files.c (_cpp_init_files): Likewise. | |
619 | * init.c (cpp_create_reader): Likewise. | |
620 | * identifiers.c (_cpp_init_hashtable): Likewise. | |
621 | ||
3aac0952 MLI |
622 | 2014-10-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
623 | ||
624 | * include/line-map.h (linemap_location_from_macro_expansion_p): | |
625 | const struct line_maps * argument. | |
626 | (linemap_position_for_line_and_column): const struct line_map * | |
627 | argument. | |
628 | * line-map.c (linemap_add_macro_token): Use correct argument name | |
629 | in comment. | |
630 | (linemap_position_for_line_and_column): const struct line_map * | |
631 | argument. | |
632 | (linemap_macro_map_loc_to_def_point): Fix comment. Make static. | |
633 | (linemap_location_from_macro_expansion_p): const struct line_maps * | |
634 | argument. | |
635 | (linemap_resolve_location): Fix argument names in comment. | |
636 | ||
0ccaaab0 BS |
637 | 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com> |
638 | ||
639 | * lex.c (search_line_fast): Add new version to be used for Power8 | |
640 | and later targets when Altivec is enabled. Restrict the existing | |
641 | Altivec version to big-endian systems so that lvsr is not used on | |
642 | little endian, where it is deprecated. Remove LE-specific code | |
643 | from the now-BE-only version. | |
644 | ||
dc257367 BE |
645 | 2014-10-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
646 | Jeff Law <law@redhat.com> | |
647 | ||
648 | * charset.c (convert_no_conversion): Reallocate memory with 25% | |
649 | headroom. | |
650 | ||
a15f7cb8 ESR |
651 | 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
652 | ||
653 | Implement SD-6: SG10 Feature Test Recommendations | |
654 | * internal.h (lexer_state, spec_nodes): Add in__has_include__. | |
655 | * directives.c: Support __has_include__ builtin. | |
656 | * expr.c (parse_has_include): New function to parse __has_include__ | |
657 | builtin; (eval_token()): Use it. | |
658 | * files.c (_cpp_has_header()): New funtion to look for header; | |
659 | (open_file_failed()): Not an error to not find a header file for | |
660 | __has_include__. | |
661 | * identifiers.c (_cpp_init_hashtable()): Add entry for __has_include__. | |
662 | * pch.c (cpp_read_state): Lookup __has_include__. | |
663 | * traditional.c (enum ls, _cpp_scan_out_logical_line()): Walk through | |
664 | __has_include__ statements. | |
665 | ||
cc811a8a BE |
666 | 2014-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de> |
667 | ||
668 | PR preprocessor/58893 | |
669 | * errors.c (cpp_diagnostic): Fix possible out of bounds access. | |
670 | * files.c (_cpp_stack_include): Initialize src_loc for IT_CMDLINE. | |
671 | ||
083e891e MP |
672 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
673 | ||
674 | PR c/61405 | |
675 | PR c/53874 | |
676 | * include/cpplib.h (enum cpp_ttype): Define CPP_KEYWORD. | |
677 | ||
d87fc699 JH |
678 | 2014-09-17 Jan Hubicka <hubicka@ucw.cz> |
679 | ||
680 | * charset.c (conversion): Rename to ... | |
681 | (cpp_conversion): ... this one; update. | |
682 | * files.c (file_hash_entry): Rename to ... | |
683 | (cpp_file_hash_entry): ... this one ; update. | |
684 | ||
909eb89c MP |
685 | 2014-09-17 Marek Polacek <polacek@redhat.com> |
686 | ||
687 | PR c/61854 | |
688 | * init.c (struct lang_flags): Remove cplusplus_comments. | |
689 | (cpp_set_lang): Likewise. | |
690 | (post_options): Likewise. | |
691 | * lex.c (_cpp_lex_direct): Disallow C++ style comments in C90/C94. | |
692 | ||
1ef33fd4 MLI |
693 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
694 | ||
695 | * include/cpplib.h (struct cpp_options): Declare warn_normalize as | |
696 | int instead of enum. | |
697 | ||
2b71f4a4 MLI |
698 | 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
699 | ||
700 | * macro.c (replace_args): Use cpp_pedwarning, cpp_warning and | |
701 | CPP_W flags. | |
702 | * include/cpplib.h: Add CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. | |
703 | * init.c (cpp_create_reader): Do not init to -1 here. | |
704 | * expr.c (num_binary_op): Use cpp_pedwarning. | |
705 | ||
81b5d104 MLI |
706 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
707 | ||
708 | * directives.c (check_eol_1): New. | |
709 | (check_eol_endif_labels): New. | |
710 | (check_eol): Call check_eol_1. | |
711 | (do_else,do_endif): Call check_eol_endif_labels. | |
712 | ||
b753b37b MLI |
713 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
714 | ||
715 | * macro.c (warn_of_redefinition): Suppress warnings for builtins | |
716 | that lack the NODE_WARN flag, unless Wbuiltin-macro-redefined. | |
717 | (_cpp_create_definition): Use Wbuiltin-macro-redefined for | |
718 | builtins that lack the NODE_WARN flag. | |
719 | * directives.c (do_undef): Likewise. | |
720 | * init.c (cpp_init_special_builtins): Do not change flags | |
721 | depending on Wbuiltin-macro-redefined. | |
722 | ||
7c05e50c ESR |
723 | 2014-08-28 Edward Smith-Rowland <3dw4rd@verizon.net> |
724 | ||
725 | PR cpp/23827 - standard C++ should not have hex float preprocessor | |
726 | tokens | |
727 | * libcpp/init.c (lang_flags): Change CXX98 flag for extended numbers | |
728 | from 1 to 0. | |
729 | * libcpp/expr.c (cpp_classify_number): Weite error message for improper | |
730 | use of hex floating literal. | |
731 | ||
e4276ba5 ESR |
732 | 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> |
733 | ||
734 | * include/cpplib.h (enum c_lang): Add CLK_GNUCXX1Z, CLK_CXX1Z; | |
735 | Rename CLK_GNUCXX1Y, CLK_CXX1Y to CLK_GNUCXX14, CLK_CXX14; | |
736 | * init.c (struct lang_flags lang_defaults): Add column for trigraphs; | |
737 | Add rows for CLK_GNUCXX1Z, CLK_CXX1Z; (cpp_set_lang): Set trigraphs; | |
738 | (cpp_init_builtins): Set __cplusplus to 201402L for C++14; | |
739 | Set __cplusplus to 201500L for C++17. | |
740 | * expr.c (cpp_classify_number): Change C++1y to C++14 in binary | |
741 | constants error message. | |
742 | ||
dd3ff077 MP |
743 | 2014-08-20 Marek Polacek <polacek@redhat.com> |
744 | ||
745 | * include/cpplib.h (cpp_options): Use signed char. | |
746 | * lex.c (_cpp_lex_direct): Don't warn in C++ mode. | |
747 | ||
3f4f5c9a MP |
748 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
749 | ||
750 | * lex.c (_cpp_lex_direct): Fix a typo. | |
751 | ||
177cce46 MP |
752 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
753 | ||
754 | * charset.c (_cpp_valid_ucn): Warn only if -Wc90-c99-compat. | |
755 | * lex.c (_cpp_lex_direct): Likewise. | |
756 | * macro.c (replace_args): Likewise. | |
757 | (parse_params): Likewise. | |
758 | * include/cpplib.h (cpp_options): Change cpp_warn_c90_c99_compat | |
759 | to char. | |
760 | ||
f3bede71 MP |
761 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
762 | ||
763 | PR c/51849 | |
764 | * lex.c (_cpp_lex_direct): Warn when -Wc90-c99-compat is in effect. | |
765 | * charset.c (_cpp_valid_ucn): Likewise. | |
766 | * include/cpplib.h (cpp_options): Add cpp_warn_c90_c99_compat. | |
767 | * macro.c (replace_args): Warn when -Wc90-c99-compat is in effect. | |
768 | (parse_params): Likewise. | |
769 | ||
61eb99f6 MP |
770 | 2014-07-27 Marek Polacek <polacek@redhat.com> |
771 | ||
772 | PR c/61861 | |
773 | * macro.c (builtin_macro): Add location parameter. Set | |
774 | location of builtin macro to the expansion point. | |
775 | (enter_macro_context): Pass location to builtin_macro. | |
776 | ||
c468587a DS |
777 | 2014-07-16 Dodji Seketeli <dodji@redhat.com> |
778 | ||
779 | Support location tracking for built-in macro tokens | |
780 | * include/line-map.h (line_maps::builtin_location): New data | |
781 | member. | |
782 | (line_map_init): Add a new parameter to initialize the new | |
783 | line_maps::builtin_location data member. | |
784 | * line-map.c (linemap_init): Initialize the | |
785 | line_maps::builtin_location data member. | |
786 | * macro.c (builtin_macro): Create a macro map and track the token | |
787 | resulting from the expansion of a built-in macro. | |
788 | ||
3976796b ESR |
789 | 2014-07-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
790 | Jonathan Wakely <jwakely@redhat.com> | |
791 | ||
c786fca6 | 792 | PR preprocessor/61389 |
3976796b ESR |
793 | * macro.c (_cpp_arguments_ok, parse_params, create_iso_definition): |
794 | Warning messages mention C++11 in c++ mode and C99 in c mode. | |
795 | * lex.c (lex_identifier_intern, lex_identifier): Ditto | |
796 | ||
7aee8646 ESR |
797 | 2014-07-09 Edward Smith-Rowland <3dw4rd@verizon.net> |
798 | ||
799 | PR c++/58155 - -Wliteral-suffix warns about tokens which are skipped | |
800 | by preprocessor | |
801 | * lex.c (lex_raw_string ()): Do not warn about invalid suffix | |
802 | if skipping. (lex_string ()): Ditto. | |
803 | ||
98ba7482 ESR |
804 | 2014-06-04 Edward Smith-Rowland <3dw4rd@verizon.net> |
805 | ||
806 | PR c++/61038 | |
807 | * macro.c (stringify_arg (cpp_reader *, macro_arg *)): | |
808 | Combine user-defined escape logic with the other string and char logic. | |
809 | ||
edf6ddf6 RB |
810 | 2014-05-26 Richard Biener <rguenther@suse.de> |
811 | ||
812 | * configure.ac: Remove long long and __int64 type checks, | |
813 | add check for uint64_t and fail if that wasn't found. | |
814 | * include/cpplib.h (cpp_num_part): Use uint64_t. | |
815 | * config.in: Regenerate. | |
816 | * configure: Likewise. | |
817 | ||
28939589 MP |
818 | 2014-05-21 Marek Polacek <polacek@redhat.com> |
819 | ||
820 | PR c/61212 | |
821 | * files.c (find_file_in_dir): Add parens around &&. | |
822 | ||
49039169 ESR |
823 | 2014-05-20 Edward Smith-Rowland <3dw4rd@verizon.net> |
824 | ||
28939589 | 825 | PR c++/61038 |
49039169 ESR |
826 | * macro.c (stringify_arg (cpp_reader *, macro_arg *)): |
827 | Check for user-defined literal strings and user-defined literal chars | |
828 | to escape necessary characters. | |
829 | ||
54da09ee RB |
830 | 2014-05-20 Richard Biener <rguenther@suse.de> |
831 | ||
832 | * configure.ac: Copy gcc logic of detecting a 64bit type. | |
833 | Remove HOST_WIDE_INT define. | |
834 | * include/cpplib.h: typedef cpp_num_part to a 64bit type, | |
835 | similar to how hwint.h does it. | |
836 | * config.in: Regenerate. | |
837 | * configure: Likewise. | |
838 | ||
eac3e079 JY |
839 | 2014-05-09 Joey Ye <joey.ye@arm.com> |
840 | ||
841 | * files.c (find_file_in_dir): Always try to shorten for DOS | |
842 | non-system headers. | |
843 | * init.c (ENABLE_CANONICAL_SYSTEM_HEADERS): Default enabled for DOS. | |
844 | ||
f543058d RB |
845 | 2014-05-07 Richard Biener <rguenther@suse.de> |
846 | ||
847 | * configure.ac: Always set need_64bit_hwint to yes. | |
848 | * configure: Regenerated. | |
849 | ||
d9f069ab RO |
850 | 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
851 | ||
852 | * lex.c: Remove Solaris 9 reference. | |
853 | ||
341c653c WL |
854 | 2014-02-24 Walter Lee <walt@tilera.com> |
855 | ||
856 | * configure.ac: Change "tilepro" triplet to "tilepro*". | |
857 | * configure: Regenerate. | |
858 | ||
179652df JJ |
859 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
860 | ||
861 | PR preprocessor/58844 | |
862 | * macro.c (enter_macro_context): Only push | |
863 | macro_real_token_count (macro) tokens rather than | |
864 | macro->count tokens, regardless of | |
865 | CPP_OPTION (pfile, track-macro-expansion). | |
866 | ||
acf601ae JJ |
867 | 2014-02-07 Jakub Jelinek <jakub@redhat.com> |
868 | ||
869 | PR preprocessor/56824 | |
870 | * line-map.c (get_combined_adhoc_loc, linemap_get_expansion_line, | |
871 | linemap_get_expansion_filename, linemap_location_in_system_header_p, | |
872 | linemap_location_from_macro_expansion_p, | |
873 | linemap_macro_loc_to_spelling_point, linemap_macro_loc_to_def_point, | |
874 | linemap_macro_loc_to_exp_point, linemap_expand_location): Fix | |
875 | formatting. | |
876 | (linemap_compare_locations): Look through adhoc locations for both | |
877 | l0 and l1. | |
878 | ||
7ecc3eb9 DS |
879 | 2014-01-23 Dodji Seketeli <dodji@redhat.com> |
880 | ||
881 | PR PR preprocessor/58580 | |
882 | * include/line-map.h (linemap_get_file_highest_location): Declare | |
883 | new function. | |
884 | * line-map.c (linemap_get_file_highest_location): Define it. | |
885 | ||
35c3d610 RS |
886 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
887 | ||
888 | Update copyright years | |
889 | ||
3a4efce7 JM |
890 | 2013-12-09 Joseph Myers <joseph@codesourcery.com> |
891 | ||
892 | PR preprocessor/55715 | |
893 | * expr.c (num_binary_op): Implement subtraction directly rather | |
894 | than with negation and falling through into addition case. | |
895 | ||
aadce585 BS |
896 | 2013-11-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com> |
897 | ||
898 | * lex.c (search_line_fast): Correct for little endian. | |
899 | ||
d3f4ff8b JM |
900 | 2013-11-15 Joseph Myers <joseph@codesourcery.com> |
901 | ||
902 | * ucnid.tab: Add C11 and C11NOSTART data. | |
903 | * makeucnid.c (digit): Rename enum value to N99. | |
904 | (C11, N11, all_languages): New enum values. | |
905 | (NUM_CODE_POINTS, MAX_CODE_POINT): New macros. | |
906 | (flags, decomp, combining_value): Use NUM_CODE_POINTS as array | |
907 | size. | |
908 | (decomp): Use unsigned int as element type. | |
909 | (all_decomp): New array. | |
910 | (read_ucnid): Handle C11 and C11NOSTART. Use MAX_CODE_POINT. | |
911 | (read_table): Use MAX_CODE_POINT. Store all decompositions in | |
912 | all_decomp. | |
913 | (read_derived): Use MAX_CODE_POINT. | |
914 | (write_table): Use NUM_CODE_POINTS. Print N99, C11 and N11 | |
915 | flags. Print whole array variable declaration rather than just | |
916 | array contents. | |
917 | (char_id_valid, write_context_switch): New functions. | |
918 | (main): Call write_context_switch. | |
919 | * ucnid.h: Regenerate. | |
920 | * include/cpplib.h (struct cpp_options): Add c11_identifiers. | |
921 | * init.c (struct lang_flags): Add c11_identifiers. | |
922 | (cpp_set_lang): Set c11_identifiers option from selected language. | |
923 | * internal.h (struct normalize_state): Document "previous" as | |
924 | previous starter character. | |
925 | (NORMALIZE_STATE_UPDATE_IDNUM): Take character as argument. | |
926 | * charset.c (DIG): Rename enum value to N99. | |
927 | (C11, N11): New enum values. | |
928 | (struct ucnrange): Give name to struct. Use short for flags and | |
929 | unsigned int for end of range. Include ucnid.h for whole variable | |
930 | declaration. | |
931 | (ucn_valid_in_identifier): Allow for characters up to 0x10FFFF. | |
932 | Allow for C11 in determining valid characters and valid start | |
933 | characters. Use check_nfc for non-Hangul context-dependent | |
934 | checks. Only store starter characters in nst->previous. | |
935 | (_cpp_valid_ucn): Pass new argument to | |
936 | NORMALIZE_STATE_UPDATE_IDNUM. | |
937 | * lex.c (lex_identifier): Pass new argument to | |
938 | NORMALIZE_STATE_UPDATE_IDNUM. Call NORMALIZE_STATE_UPDATE_IDNUM | |
939 | after initial non-UCN part of identifier. | |
940 | (lex_number): Pass new argument to NORMALIZE_STATE_UPDATE_IDNUM. | |
941 | ||
54848ff8 JM |
942 | 2013-11-15 Joseph Myers <joseph@codesourcery.com> |
943 | ||
944 | * ucnid.tab: Mark C99 digits as [C99DIG]. | |
945 | * makeucnid.c (read_ucnid): Handle [C99DIG]. | |
946 | (read_table): Don't check for digit characters. | |
947 | * ucnid.h: Regenerate. | |
948 | ||
5157b91e TB |
949 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
950 | ||
951 | * macro.c (_cpp_builtin_macro_text): Correct | |
952 | wording of two warnings. | |
953 | ||
e8ff5196 TB |
954 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
955 | ||
956 | * include/cpplib.h (CPP_W_DATE_TIME): Added. | |
957 | (cpp_options): Add warn_date_time. | |
958 | * init.c (cpp_create_reader): Init it. | |
959 | * macro.c (_cpp_builtin_macro_text): Warn when | |
960 | __DATE__/__TIME__/__TIMESTAMP__ is used. | |
961 | ||
7057e645 ESR |
962 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
963 | ||
e8ff5196 | 964 | Implement C++14 digit separators. |
7057e645 ESR |
965 | * include/cpplib.h (cpp_options): Add digit_separators flag. |
966 | * internal.h (DIGIT_SEP(c)): New macro. | |
967 | * expr.c (cpp_classify_number): Check improper placement of digit sep; | |
968 | (cpp_interpret_integer): Skip over digit separators. | |
969 | * init.c (lang_flags): Add digit_separators flag; (lang_defaults): Add | |
970 | digit separator flags per language; (cpp_set_lang): Set | |
971 | digit_separators | |
972 | * lex.c (lex_number): Add digits separator to allowable characters for | |
973 | C++14. | |
974 | ||
459260ec DM |
975 | 2013-10-15 David Malcolm <dmalcolm@redhat.com> |
976 | ||
977 | * Makefile.in (PICFLAG): New. | |
978 | (ALL_CFLAGS): Add PICFLAG. | |
979 | (ALL_CXXFLAGS): Likewise. | |
980 | * configure.ac: Add --enable-host-shared, setting up new | |
981 | PICFLAG variable. | |
982 | * configure: Regenerate. | |
983 | ||
fd6eea0c RE |
984 | 2013-08-07 Richard Earnshaw <rearnsha@arm.com> |
985 | ||
986 | * configure.ac: Set need_64bit_hwint for all arm targets. | |
987 | * configure: Regenerated. | |
988 | ||
8cf88735 JJ |
989 | 2013-07-20 Jakub Jelinek <jakub@redhat.com> |
990 | ||
991 | PR preprocessor/57620 | |
992 | * lex.c (lex_raw_string): Undo phase1 and phase2 transformations | |
993 | between R" and final " rather than only in between R"del( and )del". | |
994 | ||
87e356ba JJ |
995 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
996 | ||
d5e48350 JJ |
997 | PR preprocessor/57824 |
998 | * lex.c (lex_raw_string): Allow reading new-lines if | |
999 | in_deferred_pragma or if parsing_args and there is still | |
1000 | data in the current buffer. | |
1001 | ||
c26302d5 JJ |
1002 | * include/cpplib.h (cpp_token_val_index): Change parameter type to |
1003 | const cpp_token *. | |
1004 | * lex.c (cpp_token_val_index): Likewise. | |
1005 | ||
87e356ba JJ |
1006 | PR preprocessor/57757 |
1007 | * lex.c (cpp_avoid_paste): Avoid pasting CPP_{,W,UTF8}STRING | |
1008 | or CPP_STRING{16,32} with CPP_NAME or SPELL_LITERAL token that | |
1009 | starts if a-zA-Z_. | |
1010 | ||
c865f923 ESR |
1011 | 2013-06-28 Ed Smith-Rowland <3dw4rd@verizon.net> |
1012 | ||
1013 | * lex.c (lex_raw_string(), lex_string()): Constrain suffixes treated | |
1014 | as concatenated literal and macro to just the patterns found in | |
1015 | inttypes.h; (is_macro()): New. | |
1016 | ||
39953c79 DC |
1017 | 2013-06-24 Dehao Chen <dehao@google.com> |
1018 | ||
1019 | * files.c (_cpp_stack_include): Fix the highest_location when header | |
1020 | file is guarded by #ifndef and is included twice. | |
1021 | ||
01187df0 JJ |
1022 | 2013-04-28 Jakub Jelinek <jakub@redhat.com> |
1023 | ||
1024 | N3472 binary constants | |
1025 | * include/cpplib.h (struct cpp_options): Fix a typo in user_literals | |
1026 | field comment. Add binary_constants field. | |
1027 | * init.c (struct lang_flags): Add binary_constants field. | |
1028 | (lang_defaults): Add bin_cst column to the table. | |
1029 | (cpp_set_lang): Initialize CPP_OPTION (pfile, binary_constants). | |
1030 | * expr.c (cpp_classify_number): Talk about C++11 instead of C++0x | |
1031 | in diagnostics. Accept binary constants if | |
1032 | CPP_OPTION (pfile, binary_constants) even when pedantic. Adjust | |
1033 | pedwarn message. | |
1034 | ||
61949153 PC |
1035 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
1036 | ||
1037 | * include/cpplib.h (enum c_lang): Add CLK_GNUCXX1Y and CLK_CXX1Y. | |
1038 | * init.c (lang_defaults): Add defaults for the latter. | |
1039 | (cpp_init_builtins): Define __cplusplus as 201300L for the latter. | |
1040 | * lex.c (_cpp_lex_direct): Update. | |
1041 | ||
994a4cc0 SH |
1042 | 2013-04-03 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1043 | ||
1044 | PR target/56771 | |
1045 | * configure.ac: Require 64-bit int for arm*-*-rtems*. | |
1046 | * configure: Regenerate. | |
1047 | ||
28937f11 JJ |
1048 | 2013-03-06 Jakub Jelinek <jakub@redhat.com> |
1049 | ||
1050 | PR middle-end/56461 | |
1051 | * internal.h (struct cpp_buffer): Add to_free field. | |
1052 | (_cpp_pop_file_buffer): Add third argument. | |
1053 | * files.c (_cpp_stack_file): Set buffer->to_free. | |
1054 | (_cpp_pop_file_buffer): Add to_free argument. Free to_free | |
1055 | if non-NULL, and if equal to file->buffer_start, also clear | |
1056 | file->buffer{,_start,_valid}. | |
1057 | * directives.c (_cpp_pop_buffer): Pass buffer->to_free | |
1058 | to _cpp_pop_file_buffer. | |
1059 | ||
3b8af25b JJ |
1060 | 2013-03-01 Jakub Jelinek <jakub@redhat.com> |
1061 | ||
1062 | PR middle-end/56461 | |
1063 | * files.c (_cpp_save_file_entries): Free result at the end. | |
1064 | * pch.c (cpp_string_free): New function. | |
1065 | (cpp_save_state): Use it in htab_create call. | |
1066 | (cpp_write_pch_deps): Free ss->defs. Destroy ss->definedhash. | |
1067 | ||
1a80db97 JJ |
1068 | 2013-02-28 Jakub Jelinek <jakub@redhat.com> |
1069 | ||
15fd8332 JJ |
1070 | * files.c (_cpp_find_file): If returning early, before storing |
1071 | something to *hash_slot and *hash_slot is NULL, call htab_clear_slot | |
1072 | on it. Access *hash_slot using void * type rather than | |
1073 | struct file_hash_entry * to avoid aliasing issues. | |
1074 | ||
1a80db97 JJ |
1075 | * configure.ac: Don't define ENABLE_CHECKING whenever |
1076 | --enable-checking is seen, instead use similar --enable-checking=yes | |
1077 | vs. --enable-checking=release default as gcc/ subdir has and | |
1078 | define ENABLE_CHECKING if ENABLE_CHECKING is defined in gcc/. | |
1079 | Define ENABLE_VALGRIND_CHECKING if requested. | |
1080 | * lex.c (new_buff): If ENABLE_VALGRIND_CHECKING, put _cpp_buff | |
1081 | struct first in the allocated buffer and result->base after it. | |
1082 | (_cpp_free_buff): If ENABLE_VALGRIND_CHECKING, free buff itself | |
1083 | instead of buff->base. | |
1084 | * config.in: Regenerated. | |
1085 | * configure: Regenerated. | |
1086 | ||
561f7fc7 ESR |
1087 | 2013-02-13 Ed Smith-Rowland <3dw4rd@verizon.net> |
1088 | ||
1089 | PR c++/55582 | |
61949153 | 1090 | * lex.c (lex_raw_string): Allow string literal with suffix |
561f7fc7 ESR |
1091 | beginning with 's' to be parsed as a C++11 user-defined literal. |
1092 | ||
500f3ed9 RS |
1093 | 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com> |
1094 | ||
1095 | Update copyright years. | |
1096 | ||
1582c677 PC |
1097 | 2013-01-04 Paolo Carlini <paolo.carlini@oracle.com> |
1098 | ||
1099 | PR c++/54526 (again) | |
1100 | * lex.c (_cpp_lex_direct): In C++11 mode, implement 2.5 p3, bullet 2. | |
1101 | ||
8ac16127 MG |
1102 | 2013-01-03 Marc Glisse <marc.glisse@inria.fr> |
1103 | ||
1104 | PR bootstrap/50177 | |
1105 | * line-map.c (get_combined_adhoc_loc): Cast from extern "C" type. | |
1106 | (new_linemap): Likewise. | |
1107 | (linemap_enter_macro): Likewise. | |
1108 | ||
f41e5bd1 JJ |
1109 | 2012-12-03 Jakub Jelinek <jakub@redhat.com> |
1110 | ||
1111 | PR bootstrap/55380 | |
1112 | PR other/54691 | |
1113 | * files.c (read_file_guts): Allocate extra 16 bytes instead of | |
1114 | 1 byte at the end of buf. Pass size + 16 instead of size | |
1115 | to _cpp_convert_input. | |
1116 | * charset.c (_cpp_convert_input): Reallocate if there aren't | |
1117 | at least 16 bytes beyond to.len in the buffer. Clear 16 bytes | |
1118 | at to.text + to.len. | |
1119 | ||
31962032 SE |
1120 | 2012-11-21 Steve Ellcey <sellcey@mips.com> |
1121 | ||
1122 | PR pch/55399 | |
1123 | * files.c (pch_open_file): Fix check for implicit_preinclude. | |
1124 | ||
5dc99c46 SB |
1125 | 2012-11-16 Simon Baldwin <simonb@google.com> |
1126 | ||
1127 | * include/cpplib.h (struct cpp_options): Add canonical_system_headers. | |
1128 | * files.c (find_file_in_dir): Call maybe_shorter_path() only if | |
1129 | canonical_system_headers is set. | |
1130 | * init.c (cpp_create_reader): Initialize canonical_system_headers. | |
1131 | * configure.ac: Add new --enable-canonical-system-headers. | |
1132 | * configure: Regenerate. | |
1133 | * config.in: Regenerate. | |
1134 | ||
a4a0016d ESR |
1135 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
1136 | ||
1137 | PR c++/54413 | |
1138 | * include/cpplib.h (cpp_interpret_float_suffix): Add cpp_reader* arg. | |
1139 | (cpp_interpret_int_suffix): Add cpp_reader* arg. | |
1140 | * init.c (cpp_create_reader): Iitialize new flags. | |
1141 | * expr.c (interpret_float_suffix): Use new flags. | |
1142 | (cpp_interpret_float_suffix): Add cpp_reader* arg. | |
1143 | (interpret_int_suffix): Use new flags. | |
1144 | (cpp_interpret_int_suffix): Add cpp_reader* arg. | |
1145 | (cpp_classify_number): Adjust calls to interpret_x_suffix. | |
1146 | ||
04ce690f IB |
1147 | 2012-10-23 Ian Bolton <ian.bolton@arm.com> |
1148 | Jim MacArthur <jim.macarthur@arm.com> | |
1149 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
1150 | Nigel Stephens <nigel.stephens@arm.com> | |
1151 | Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> | |
1152 | Richard Earnshaw <rearnsha@arm.com> | |
1153 | Sofiane Naci <sofiane.naci@arm.com> | |
1154 | Stephen Thomas <stephen.thomas@arm.com> | |
1155 | Tejas Belagod <tejas.belagod@arm.com> | |
1156 | Yufeng Zhang <yufeng.zhang@arm.com> | |
1157 | ||
1158 | * configure.ac: Enable AArch64. | |
1159 | * configure: Regenerate. | |
1160 | ||
1efcb8c6 JM |
1161 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
1162 | ||
1163 | * files.c (struct _cpp_file): Add implicit_preinclude. | |
1164 | (pch_open_file): Allow a previously opened implicitly included | |
1165 | file. | |
1166 | (_cpp_find_file): Add implicit_preinclude argument. Free file and | |
1167 | do not call open_file_failed if implicit_preinclude. Store | |
1168 | implicit_preinclude value. | |
1169 | (_cpp_stack_include, _cpp_fake_include, _cpp_compare_file_date): | |
1170 | Update calls to _cpp_find_file. | |
1171 | (_cpp_stack_include): Handle IT_DEFAULT. | |
1172 | (cpp_push_default_include): New. | |
1173 | * include/cpplib.h (cpp_push_default_include): Declare. | |
1174 | * init.c (cpp_read_main_file): Update call to _cpp_find_file. | |
1175 | * internal.h (enum include_type): Add IT_DEFAULT. | |
1176 | (_cpp_find_file): Update prototype. | |
1177 | ||
55e7f907 TB |
1178 | 2012-10-15 Tobias Burnus <burnus@net-b.de> |
1179 | ||
1180 | * files.c (read_file_guts, _cpp_save_file_entries): Free memory | |
1181 | before returning. | |
1182 | * lex.c (warn_about_normalization): Ditto. | |
1183 | * mkdeps.c (deps_save): Ditto. | |
1184 | * pch.c (cpp_valid_state): Ditto. | |
1185 | ||
f591bd8f FW |
1186 | 2012-10-04 Florian Weimer <fweimer@redhat.com> |
1187 | ||
1188 | * directives.c (do_pragma_warning_or_error): New. | |
1189 | (do_pragma_warning): New. | |
1190 | (do_pragma_error): New. | |
1191 | (_cpp_init_internal_pragmas): Register new pragmas. | |
1192 | ||
ec6e0399 DC |
1193 | 2012-09-25 Dehao Chen <dehao@google.com> |
1194 | ||
1195 | PR middle-end/54704 | |
1196 | * line-map.c (location_adhoc_data_hash): Fix the hash function. | |
1197 | ||
52187008 DC |
1198 | 2012-09-25 Dehao Chen <dehao@google.com> |
1199 | ||
1200 | PR middle-end/54645 | |
1201 | * include/line-map.h (location_adhoc_data): Move location_adhoc_data | |
1202 | into GC. | |
1203 | (location_adhoc_data_map): Likewise. | |
1204 | (line_maps): Likewise. | |
1205 | (rebuild_location_adhoc_htab): New Function. | |
1206 | * line-map.c (+rebuild_location_adhoc_htab): new Funcion. | |
1207 | (get_combined_adhoc_loc): Move location_adhoc_data into GC. | |
1208 | (location_adhoc_data_fini): Likewise. | |
1209 | (linemap_init): Likewise. | |
1210 | (location_adhoc_data_init): Remove Function. | |
1211 | ||
5368224f DC |
1212 | 2012-09-19 Dehao Chen <dehao@google.com> |
1213 | ||
1214 | * include/line-map.h (MAX_SOURCE_LOCATION): New value. | |
1215 | (location_adhoc_data_fini): New. | |
1216 | (get_combined_adhoc_loc): New. | |
1217 | (get_data_from_adhoc_loc): New. | |
1218 | (get_location_from_adhoc_loc): New. | |
1219 | (location_adhoc_data_map): New. | |
1220 | (COMBINE_LOCATION_DATA): New. | |
1221 | (IS_ADHOC_LOC): New. | |
1222 | (expanded_location): New field. | |
1223 | (line_maps): New field. | |
1224 | * line-map.c (location_adhoc_data): New. | |
1225 | (location_adhoc_data_hash): New. | |
1226 | (location_adhoc_data_eq): New. | |
1227 | (location_adhoc_data_update): New. | |
1228 | (get_combined_adhoc_loc): New. | |
1229 | (get_data_from_adhoc_loc): New. | |
1230 | (get_location_from_adhoc_loc): New. | |
1231 | (location_adhoc_data_init): New. | |
1232 | (location_adhoc_data_fini): New. | |
1233 | (linemap_init): Initialize location_adhoc_data. | |
1234 | (linemap_lookup): Change to use new location. | |
1235 | (linemap_ordinary_map_lookup): Likewise. | |
1236 | (linemap_macro_map_lookup): Likewise. | |
1237 | (linemap_macro_map_loc_to_def_point): Likewise. | |
1238 | (linemap_macro_map_loc_unwind_toward_spel): Likewise. | |
1239 | (linemap_get_expansion_line): Likewise. | |
1240 | (linemap_get_expansion_filename): Likewise. | |
1241 | (linemap_location_in_system_header_p): Likewise. | |
1242 | (linemap_location_from_macro_expansion_p): Likewise. | |
1243 | (linemap_macro_loc_to_spelling_point): Likewise. | |
1244 | (linemap_macro_loc_to_def_point): Likewise. | |
1245 | (linemap_macro_loc_to_exp_point): Likewise. | |
1246 | (linemap_resolve_location): Likewise. | |
1247 | (linemap_unwind_toward_expansion): Likewise. | |
1248 | (linemap_unwind_to_first_non_reserved_loc): Likewise. | |
1249 | (linemap_expand_location): Likewise. | |
1250 | (linemap_dump_location): Likewise. | |
1251 | (linemap_line_start): Likewise. | |
1252 | ||
f3d25c65 DS |
1253 | 2012-05-25 Dodji Seketeli <dodji@redhat.com> |
1254 | ||
1255 | PR preprocessor/53469 | |
1256 | * directives.c (do_pragma): Use the virtual location for the | |
1257 | pragma token, instead of its spelling location. | |
1258 | ||
0823efed DN |
1259 | 2012-08-14 Diego Novillo <dnovillo@google.com> |
1260 | ||
1261 | Merge from cxx-conversion branch. Configury. | |
1262 | ||
1263 | * Makefile.in: Remove all handlers of ENABLE_BUILD_WITH_CXX. | |
1264 | * configure.ac: Likewise. | |
1265 | * configure: Regenerate. | |
1266 | ||
1267 | 2012-08-14 Lawrence Crowl <crowl@google.com> | |
1268 | ||
1269 | Merge from cxx-conversion branch. New C++ hash table. | |
1270 | ||
1271 | * include/symtab.h (typedef struct ht hash_table): Change the typedef | |
1272 | name to cpp_hash_table. Update all users of the typedef. | |
1273 | ||
c0fd3497 LB |
1274 | 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
1275 | ||
1276 | * include/line-map.h (line_map_macro): Use the "atomic" GTY option | |
1277 | for the macro_locations field. | |
1278 | ||
d35d1c0f UB |
1279 | 2011-06-19 Uros Bizjak <ubizjak@gmail.com> |
1280 | ||
1281 | * lex.c (search_line_sse42): Use __builtin_ia32_loaddqu and | |
1282 | __builtin_ia32_pcmpestri128 instead of asm. | |
1283 | ||
d86d2119 DA |
1284 | 2012-06-04 Dimitrios Apostolou <jimis@gmx.net> |
1285 | ||
1286 | * line-map.c (linemap_enter_macro): Don't zero max_column_hint in | |
1287 | every macro. This improves performance by reducing the number of | |
1288 | reallocations when track-macro-expansion is on. | |
1289 | ||
7ca643e1 DS |
1290 | 2012-06-04 Dodji Seketeli <dodji@redhat.com> |
1291 | ||
1292 | PR preprocessor/53463 | |
1293 | * line-map.c (linemap_location_in_system_header_p): For built-in | |
1294 | macro tokens, check the first expansion point location that is not | |
1295 | for a token coming from a built-in macro. | |
1296 | ||
7d9641cc JM |
1297 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
1298 | ||
1299 | * directives.c: Fix typos. | |
1300 | * include/line-map.h: Fix typos. | |
1301 | * line-map.c: Fix typos. | |
1302 | * macro.c: Fix typos. | |
1303 | ||
53a103d3 DS |
1304 | 2012-05-25 Dodji Seketeli <dodji@redhat.com> |
1305 | ||
1306 | PR bootstrap/53459 | |
1307 | * lex.c (search_line_fast): Avoid unused local typedefs to simulate | |
1308 | a static assertion. | |
1309 | ||
828a7f76 DS |
1310 | 2012-05-29 Dodji Seketeli <dodji@redhat.com> |
1311 | ||
1312 | PR preprocessor/53229 | |
1313 | * internal.h (cpp_reader::set_invocation_location): Remove. | |
1314 | (cpp_reader::about_to_expand_macro_p): New member flag. | |
1315 | * directives.c (do_pragma): Remove Kludge as | |
1316 | pfile->set_invocation_location is no more. | |
1317 | * macro.c (cpp_get_token_1): Do away with the use of | |
1318 | cpp_reader::set_invocation_location. Just collect the macro | |
1319 | expansion point when we are about to expand the top-most macro. | |
1320 | Do not override cpp_reader::about_to_expand_macro_p. | |
1321 | This fixes gcc.dg/cpp/paste12.c by making get_token_no_padding | |
1322 | properly handle locations of expansion points. | |
1323 | (cpp_get_token_with_location): Adjust, as | |
1324 | cpp_reader::set_invocation_location is no more. | |
1325 | (paste_tokens): Take a virtual location parameter for | |
1326 | the LHS of the pasting operator. Use it in diagnostics. Update | |
1327 | comments. | |
1328 | (paste_all_tokens): Tighten the assert. Propagate the location of | |
1329 | the expansion point when no virtual locations are available. | |
1330 | Pass the virtual location to paste_tokens. | |
1331 | (in_macro_expansion_p): New static function. | |
1332 | (enter_macro_context): Set the cpp_reader::about_to_expand_macro_p | |
1333 | flag until we really start expanding the macro. | |
1334 | ||
0b2c4be5 DS |
1335 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
1336 | ||
1337 | PR preprocessor/7263 | |
1338 | * include/cpplib.h (cpp_classify_number): Take a location | |
1339 | parameter. | |
1340 | * expr.c (SYNTAX_ERROR_AT, SYNTAX_ERROR2_AT): New diagnostic | |
1341 | macros that take a location parameter. | |
1342 | (cpp_classify_number): Take a (virtual) location parameter. Use | |
1343 | it for diagnostics. Adjust comments. | |
1344 | (eval_token): Take a location parameter. Pass it to | |
1345 | cpp_classify_number and to diagnostic routines. | |
1346 | (_cpp_parse_expr): Use virtual locations of tokens when parsing | |
1347 | expressions. Pass a virtual location to eval_token and to | |
1348 | diagnostic routines. | |
1349 | ||
638d2065 TG |
1350 | 2012-05-10 Tristan Gingold <gingold@adacore.com> |
1351 | ||
1352 | * expr.c (interpret_float_suffix): Add a guard. | |
1353 | ||
3ad64f53 DS |
1354 | 2012-05-02 Dodji Seketeli <dodji@redhat.com> |
1355 | ||
1356 | Properly initialize cpp_context in destringize_and_run | |
1357 | * directives.c (destringize_and_run): Properly initialize the new | |
1358 | context. | |
1359 | * macro.c (_cpp_pop_context): Assert that we shouldn't try to pop | |
1360 | the initial base context, which has the same life time as the | |
1361 | current instance of cpp_file. | |
1362 | ||
b193dfa8 MLI |
1363 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1364 | Dodji Seketeli <dodji@seketeli.org> | |
1365 | ||
3efc2959 | 1366 | PR c++/52974 |
b193dfa8 MLI |
1367 | * libcpp/files.c (maybe_shorter_path): New. |
1368 | (find_file_in_dir): Use it. | |
1369 | ||
4e65a470 DS |
1370 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
1371 | ||
51fce2d3 DS |
1372 | Switch -ftrack-macro-expansion=2 on by default. |
1373 | * init.c (cpp_create_reader): Switch -ftrack-macro-expansion=2 on | |
1374 | by default. Add comments. | |
1375 | ||
c4ca1a09 DS |
1376 | Strip "<built-in>" loc from displayed expansion context |
1377 | * include/line-map.h (linemap_unwind_toward_expansion): Fix typo | |
1378 | in comment. | |
1379 | (linemap_unwind_to_first_non_reserved_loc): Declare new function. | |
1380 | * line-map.c (linemap_unwind_to_first_non_reserved_loc): Define | |
1381 | new function. | |
1382 | ||
3600218c DS |
1383 | Fix expansion point loc for macro-like tokens |
1384 | * macro.c (macro_of_context): New static function. | |
1385 | (_cpp_push_token_context, push_extended_tokens_context): If the | |
1386 | macro argument is NULL, it means we are continuing the expansion | |
1387 | of the current macro, if any. Update comments. | |
1388 | (_cpp_pop_context): Re-enable expansion of the macro only when we | |
1389 | are really out of the context of the current expansion. | |
1390 | ||
0ff2b8a0 DS |
1391 | Fix token pasting with -ftrack-macro-expansion |
1392 | * macro.c (paste_all_tokens): Put the token resulting from pasting | |
1393 | into an extended token context with -ftrack-macro-location is in | |
1394 | effect. | |
1395 | ||
4e65a470 DS |
1396 | Fix cpp_sys_macro_p with -ftrack-macro-expansion |
1397 | * macro.c (cpp_sys_macro_p): Support -ftrack-macro-expansion. | |
1398 | ||
112448b4 DS |
1399 | 2012-04-29 Dodji Seketeli <dodji@redhat.com> |
1400 | ||
1401 | * lex.c (lex_raw_string): Change C++ style comments into C style | |
1402 | comments. | |
19a9ba64 | 1403 | (lex_string): Likewise. |
112448b4 | 1404 | |
7f5f5f98 OW |
1405 | 2012-04-27 Ollie Wild <aaw@google.com> |
1406 | ||
1407 | * include/cpplib.h (struct cpp_options): Add new field, | |
1408 | warn_literal_suffix. | |
1409 | (CPP_W_LITERAL_SUFFIX): New enum. | |
1410 | * init.c (cpp_create_reader): Default initialization of | |
1411 | warn_literal_suffix. | |
1412 | * lex.c (lex_raw_string): Treat user-defined literals which don't | |
1413 | begin with '_' as separate tokens and produce a warning. | |
1414 | (lex_string): Ditto. | |
1415 | ||
1d72e96f MLI |
1416 | 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1417 | ||
1418 | * line-map.c (linemap_resolve_location): Synchronize comments with | |
1419 | those in line-map.h. | |
1420 | * include/line-map.h (linemap_resolve_location): Fix spelling in | |
1421 | comment. | |
1422 | ||
e75b54a2 RE |
1423 | 2012-03-22 Richard Earnshaw <rearnsha@arm.com> |
1424 | ||
1425 | * lex.c (search_line_fast): Provide Neon-optimized version for ARM. | |
1426 | ||
7888f266 RO |
1427 | 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1428 | ||
1429 | * lex.c: Remove Solaris 8 reference. | |
1430 | ||
dd552284 WL |
1431 | 2012-02-14 Walter Lee <walt@tilera.com> |
1432 | ||
1433 | * configure.ac: Require 64-bit hwint for tilegx and tilepro. | |
1434 | * configure: Regenerate. | |
1435 | ||
2c5cbc31 RG |
1436 | 2012-01-09 Richard Guenther <rguenther@suse.de> |
1437 | ||
1438 | * macro.c (_cpp_builtin_macro_text): Remove unused variable map. | |
1439 | ||
b492b686 GF |
1440 | 2012-01-09 Gary Funck <gary@intrepid.com> |
1441 | ||
1442 | PR preprocessor/33919 | |
1443 | * files.c (_cpp_get_file_name): New. Implement file name | |
1444 | access function. | |
1445 | * internal.h (_cpp_get_file_name): New prototype. | |
1446 | * macro.c (_cpp_builtin_macro_text): Call _cpp_get_file_name() | |
1447 | to use pfile->main_file in lieu of traversing INCLUDED_FROM chain. | |
1448 | ||
75291c57 OH |
1449 | 2012-01-03 Olivier Hainque <hainque@adacore.com> |
1450 | ||
1451 | * system.h: Prior to #define, #undef fopen and freopen unconditionally. | |
1452 | ||
48b0b196 JM |
1453 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
1454 | ||
1455 | * include/cpplib.h (CLK_GNUC1X): Change to CLK_GNUC11. | |
1456 | (CLK_STDC1X): Change to CLK_STDC11. | |
1457 | * init.c (lang_defaults): Update comments. | |
1458 | (cpp_init_builtins): Update language tests. Use 201112L for C11 | |
1459 | __STDC_VERSION__. | |
1460 | ||
4a5e00ca AS |
1461 | 2011-12-20 Andreas Schwab <schwab@linux-m68k.org> |
1462 | ||
1463 | * configure: Regenerate. | |
1464 | ||
095af58f AS |
1465 | 2011-12-19 Andreas Schwab <schwab@linux-m68k.org> |
1466 | ||
1467 | * configure: Regenerate. | |
1468 | ||
b0c084b7 JJ |
1469 | 2011-12-07 Jakub Jelinek <jakub@redhat.com> |
1470 | ||
1471 | PR bootstrap/50237 | |
1472 | * internal.h (_cpp_init_lexer): New prototype. | |
1473 | * init.c (init_library): Call it. | |
1474 | * lex.c (init_vectorized_lexer): Remove constructor attribute, | |
1475 | add inline keyword. | |
1476 | (HAVE_init_vectorized_lexer): Define. | |
1477 | (_cpp_init_lexer): New function. | |
1478 | ||
9b554be9 DS |
1479 | 2011-12-03 Dodji Seketeli <dodji@redhat.com> |
1480 | ||
1481 | * macro.c (tokens_buff_remove_last_token) | |
1482 | (tokens_buff_put_token_to): Add an 'inline' function specifier to | |
1483 | the prototype. | |
1484 | ||
8dcf72a8 DN |
1485 | 2011-11-22 Diego Novillo <dnovillo@google.com> |
1486 | ||
1487 | * include/line-map.h (linemap_dump): Declare. | |
1488 | (line_table_dump): Declare. | |
1489 | * line-map.c (linemap_dump): New. | |
1490 | (line_table_dump): New. | |
1491 | ||
7e74ce3f ESR |
1492 | 2011-11-21 Ed Smith-Rowland <3dw4rd@verizon.net> |
1493 | ||
1494 | PR c++/50958 | |
1495 | * expr.c (cpp_userdef_char_remove_type): Fix typo. | |
1496 | ||
e9411247 MM |
1497 | 2011-11-03 Michael Matz <matz@suse.de> |
1498 | ||
1499 | PR bootstrap/50857 | |
1500 | * configure.ac: Check for -fno-exceptions -fno-rtti. | |
1501 | * configure: Regenerate. | |
1502 | * Makefile.in (NOEXCEPTION_FLAGS): New flag. | |
1503 | (ALL_CXXFLAGS): Use it. | |
1504 | ||
0c1dace3 PC |
1505 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
1506 | ||
1507 | * internal.h (uxstrdup, ustrchr): Return const unsigned char *. | |
1508 | ||
25339f10 JM |
1509 | 2011-11-02 Jason Merrill <jason@redhat.com> |
1510 | ||
1511 | PR c++/50810 | |
1512 | * configure.ac: Add -Wno-narrowing to warning options. | |
1513 | ||
97e3ad20 JM |
1514 | 2011-10-31 Jason Merrill <jason@redhat.com> |
1515 | ||
1fb80b0c JM |
1516 | PR libstdc++/1773 |
1517 | * init.c (cpp_init_builtins): Set __cplusplus for C++11. | |
1518 | ||
97e3ad20 JM |
1519 | PR c++/50920 |
1520 | * include/cpplib.h (enum c_lang): Rename CLK_CXX0X to CLK_CXX11, | |
1521 | CLK_GNUCXX0X to CLK_GNUCXX11. | |
1522 | ||
3ce4f9e4 ESR |
1523 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
1524 | ||
1525 | Implement C++11 user-defined literals. | |
1526 | * expr.c: (cpp_interpret_float_suffix, cpp_interpret_int_suffix, | |
1527 | cpp_userdef_string_remove_type, cpp_userdef_string_add_type, | |
1528 | cpp_userdef_char_remove_type, cpp_userdef_char_add_type, | |
1529 | cpp_userdef_string_p, cpp_userdef_char_p, cpp_get_userdef_suffix): New. | |
1530 | (cpp_classify_number): Classify unrecognized tokens as user-defined | |
1531 | literals. | |
1532 | * include/cpplib.h: Add new tokens for user-defined literals. | |
1533 | * init.c: Add new preprocessor flag (cxx11). | |
1534 | * lex.c: (lex_string, lex_raw_string): Handle user-defined literals | |
1535 | including concatenation and promotion with suffixes. | |
1536 | ||
3bb0c8db DS |
1537 | 2011-10-24 Dodji Seketeli <dodji@redhat.com> |
1538 | ||
1539 | * line-map.c (linemap_macro_map_lookup): Fix logic. | |
1540 | ||
84756fd4 DS |
1541 | 2011-10-24 Dodji Seketeli <dodji@redhat.com> |
1542 | ||
1543 | * include/line-map.h (linemap_expand_location): Take a line table | |
1544 | parameter. Update comment. | |
1545 | (linemap_resolve_location): Update comment. | |
1546 | (linemap_expand_location_full): Remove. | |
1547 | * line-map.c (linemap_resolve_location): Handle reserved | |
1548 | locations; return a NULL map in those cases. | |
1549 | (linemap_expand_location): If location is reserved, return a | |
1550 | zeroed expanded location. Update comment. Take a line table to | |
1551 | assert that the function takes non-virtual locations only. | |
1552 | (linemap_expand_location_full): remove. | |
1553 | (linemap_dump_location): Handle the fact that | |
1554 | linemap_resolve_location can return NULL line maps when the | |
1555 | location resolves to a reserved location. | |
1556 | ||
1557 | * line-map.c (linemap_macro_map_lookup): Fix logic. | |
1558 | ||
ad2305ad DS |
1559 | 2011-10-22 Dodji Seketeli <dodji@redhat.com> |
1560 | ||
1561 | PR bootstrap/50778 | |
1562 | * include/internal.h (_cpp_remaining_tokens_num_in_context): Take the | |
1563 | context to act upon. | |
1564 | * lex.c (_cpp_remaining_tokens_num_in_context): Likewise. Update | |
1565 | comment. | |
1566 | (cpp_token_from_context_at): Likewise. | |
1567 | (cpp_peek_token): Use the context to peek tokens from. | |
1568 | ||
cbbcf655 DS |
1569 | 2011-10-20 Dodji Seketeli <dodji@redhat.com> |
1570 | ||
1571 | PR bootstrap/50801 | |
1572 | * lex.c (_cpp_remaining_tokens_num_in_context): Fix computation of | |
1573 | number of tokens. | |
1574 | ||
d17687f6 DS |
1575 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
1576 | ||
1577 | PR bootstrap/50760 | |
1578 | * include/line-map.h (struct linemap_stats): Change the type of | |
19a9ba64 | 1579 | the members from size_t to long. |
d17687f6 | 1580 | * macro.c (macro_arg_token_iter_init): Unconditionally initialize |
19a9ba64 | 1581 | iter->location_ptr. |
d17687f6 | 1582 | |
411f92de DS |
1583 | 2011-10-17 Dodji Seketeli <dodji@redhat.com> |
1584 | ||
1585 | * line-map.c (linemap_macro_map_loc_to_exp_point): Avoid setting a | |
19a9ba64 AM |
1586 | variable without using it if ENABLE_CHECKING is not defined. Mark |
1587 | the LOCATION parameter as being unused. | |
411f92de | 1588 | |
b9bd6f74 TT |
1589 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1590 | Dodji Seketeli <dodji@redhat.com> | |
1591 | ||
1592 | * include/line-map.h (struct line_maps::alloced_size_for_request): | |
1593 | New member. | |
1594 | * line-map.c (new_linemap): Use set->alloced_size_for_request to | |
1595 | get the actual allocated size of line maps. | |
1596 | ||
64a1a422 TT |
1597 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1598 | Dodji Seketeli <dodji@redhat.com> | |
1599 | ||
1600 | * line-map.h (struct linemap_stats): Declare new struct. | |
1601 | (linemap_get_statistics): Declare ... | |
1602 | * line-map.c (linemap_get_statistics): ... new function. | |
1603 | * macro.c (num_expanded_macros_counter, num_macro_tokens_counter): | |
1604 | Declare new counters. | |
1605 | (enter_macro_context, replace_args): Update | |
1606 | num_macro_tokens_counter. | |
1607 | (cpp_get_token_1): Update num_expanded_macros_counter. | |
1608 | ||
847e697a TT |
1609 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1610 | Dodji Seketeli <dodji@redhat.com> | |
1611 | ||
1612 | * include/cpplib.h (struct cpp_options)<debug>: New struct member. | |
1613 | * include/line-map.h (linemap_dump_location): Declare ... | |
1614 | * line-map.c (linemap_dump_location): ... new function. | |
1615 | ||
92582b75 TT |
1616 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1617 | Dodji Seketeli <dodji@redhat.com> | |
1618 | ||
1619 | * include/cpplib.h (struct cpp_options)<track_macro_expansion>: | |
1620 | New option. | |
1621 | * internal.h (struct macro_context): New struct. | |
1622 | (enum context_tokens_kind): New enum. | |
1623 | (struct cpp_context)<tokens_kind>: New member of type enum | |
1624 | context_tokens_kind. | |
1625 | (struct cpp_context)<macro>: Remove this. Replace it with an enum | |
1626 | of macro and macro_context. | |
1627 | (struct cpp_context)<direct_p>: Remove. | |
1628 | (_cpp_remaining_tokens_num_in_context): Declare new function. | |
1629 | * directives.c (destringize_and_run): Adjust. | |
1630 | * lex.c (_cpp_remaining_tokens_num_in_context) | |
1631 | (_cpp_token_from_context_at): Define new functions | |
1632 | (cpp_peek_token): Use them. | |
1633 | * init.c (cpp_create_reader): Initialize the base context to zero. | |
1634 | (_cpp_token_from_context_at): Define new static function. | |
1635 | (cpp_peek_token): Use new _cpp_remaining_tokens_num_in_context and | |
1636 | _cpp_token_from_context_at. | |
1637 | * macro.c (struct macro_arg)<virt_locs, expanded_virt_locs>: New | |
1638 | members. | |
1639 | (enum macro_arg_token_kind): New enum. | |
1640 | (struct macro_arg_token_iter): New struct. | |
1641 | (maybe_adjust_loc_for_trad_cpp, push_extended_tokens_context) | |
1642 | (alloc_expanded_arg_mem, ensure_expanded_arg_room) | |
1643 | (delete_macro_args, set_arg_token, get_arg_token_location) | |
1644 | (arg_token_ptr_at, macro_arg_token_iter_init) | |
1645 | (macro_arg_token_iter_get_token) | |
1646 | (macro_arg_token_iter_get_location, macro_arg_token_iter_forward) | |
1647 | (expanded_token_index, tokens_buff_new, tokens_buff_count) | |
1648 | (tokens_buff_last_token_ptr, tokens_buff_put_token_to) | |
1649 | (tokens_buff_add_token, tokens_buff_remove_last_token) | |
1650 | (reached_end_of_context, consume_next_token_from_context): New | |
1651 | static functions. | |
1652 | (cpp_get_token_1): New static function. Split and extended from | |
1653 | cpp_get_token. Use reached_end_of_context and | |
1654 | consume_next_token_from_context. Unify its return point. Move | |
1655 | the location tweaking from cpp_get_token_with_location in here. | |
1656 | (cpp_get_token): Use cpp_get_token_1 | |
1657 | (stringify_arg): Use the new arg_token_at. | |
1658 | (paste_all_tokens): Support tokens coming from extended tokens | |
1659 | contexts. | |
1660 | (collect_args): Return the number of collected arguments, by | |
1661 | parameter. Store virtual locations of tokens that constitute the | |
1662 | collected args. | |
1663 | (funlike_invocation_p): Return the number of collected arguments, | |
1664 | by parameter. | |
1665 | (enter_macro_context): Add a parameter for macro expansion point. | |
1666 | Pass it to replace_args and to the "used" cpp callback. Get the | |
1667 | number of function-like macro arguments from funlike_invocation_p, | |
1668 | pass it to the new delete_macro_args to free the memory used by | |
1669 | macro args. When -ftrack-macro-expansion is in effect, for macros | |
1670 | that have no arguments, create a macro map for the macro expansion | |
1671 | and use it to allocate proper virtual locations for tokens | |
1672 | resulting from the expansion. Push an extended tokens context | |
1673 | containing the tokens resulting from macro expansion and their | |
1674 | virtual locations. | |
1675 | (replace_args): Rename the different variables named 'count' into | |
1676 | variables with more meaningful names. Create a macro map; | |
1677 | allocate virtual locations of tokens resulting from this | |
1678 | expansion. Use macro_arg_token_iter to iterate over tokens of a | |
1679 | given macro. Handle the case of the argument of | |
1680 | -ftrack-macro-expansion being < 2. Don't free macro arguments | |
1681 | memory resulting from expand_arg here, as these are freed by the | |
1682 | caller of replace_arg using delete_macro_args now. Push extended | |
1683 | token context. | |
1684 | (next_context, push_ptoken_context, _cpp_push_token_context) | |
1685 | (_cpp_push_text_context): Properly initialize the context. | |
1686 | (expand_arg): Use the new alloc_expanded_arg_mem, | |
1687 | push_extended_tokens_context, cpp_get_token_1, and set_arg_token. | |
1688 | (_cpp_pop_context): Really free the memory held by the context. | |
1689 | Handle freeing memory used by extended tokens contexts. | |
1690 | (cpp_get_token_with_location): Use cpp_get_token_1. | |
1691 | (cpp_sys_macro_p): Adjust. | |
1692 | (_cpp_backup_tokens): Support the new kinds of token contexts. | |
1693 | * traditional.c (recursive_macro): Adjust. | |
1694 | ||
46427374 TT |
1695 | 2011-10-15 Tom Tromey <tromey@redhat> |
1696 | Dodji Seketeli <dodji@redhat.com> | |
1697 | ||
1698 | * include/line-map.h (enum lc_reason)<LC_ENTER_MACRO>: New enum | |
1699 | member. | |
1700 | (MAX_SOURCE_LOCATION): New constant. | |
1701 | (struct line_map_ordinary, struct line_map_macro): New structs. | |
19a9ba64 | 1702 | (struct line_map): Turn this into a union of the two above. Add |
46427374 TT |
1703 | comments. |
1704 | (struct maps_info): New struct. | |
1705 | (struct line_maps)<info_ordinary, info_macro>: Two new fields. | |
1706 | These now carry the map information that was previously scattered | |
1707 | in struct line_maps. | |
1708 | (struct map_info::allocated): Fix comment. | |
1709 | (MAP_START_LOCATION, ORDINARY_MAP_FILE_NAME) | |
1710 | (ORDINARY_MAP_STARTING_LINE_NUMBER) | |
1711 | (ORDINARY_MAP_INCLUDER_FILE_INDEX) | |
1712 | (ORDINARY_MAP_IN_SYSTEM_HEADER_P) | |
1713 | (ORDINARY_MAP_NUMBER_OF_COLUMN_BITS, MACRO_MAP_MACRO) | |
1714 | (MACRO_MAP_NUM_MACRO_TOKENS MACRO_MAP_LOCATIONS) | |
1715 | (MACRO_MAP_EXPANSION_POINT_LOCATION) | |
1716 | (LOCATION_POSSIBLY_IN_MACRO_MAP_P, LINEMAPS_MAP_INFO) | |
1717 | (LINEMAPS_MAPS, LINEMAPS_ALLOCATE, LINEMAPS_USED, LINEMAPS_CACHE) | |
1718 | (LINEMAPS_LAST_MAP, LINEMAPS_LAST_ALLOCATED_MAP) | |
1719 | (LINEMAPS_ORDINARY_MAPS, LINEMAPS_ORDINARY_ALLOCATED) | |
1720 | (LINEMAPS_ORDINARY_USED, LINEMAPS_ORDINARY_CACHE) | |
1721 | (LINEMAPS_LAST_ORDINARY_MAP, LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP) | |
1722 | (LINEMAPS_MACRO_MAPS, LINEMAPS_MACRO_ALLOCATED) | |
1723 | (LINEMAPS_MACRO_USED, LINEMAPS_MACRO_CACHE) | |
1724 | (LINEMAPS_LAST_MACRO_MAP, LINEMAPS_LAST_ALLOCATED_MACRO_MAP) | |
1725 | (LINEMAPS_MAP_AT, LINEMAPS_ORDINARY_MAP_AT) | |
1726 | (LINEMAPS_MACRO_MAP_AT): New accessors for ordinary and macro map | |
1727 | information. | |
1728 | (linemap_check_ordinary, linemap_assert) | |
1729 | (linemap_location_before_p): New macros. | |
1730 | (linemap_position_for_line_and_column) | |
1731 | (linemap_tracks_macro_expansion_locs_p, linemap_add_macro_token) | |
1732 | (linemap_macro_expansion_map_p) | |
1733 | (linemap_macro_map_loc_to_def_point) | |
1734 | (linemap_macro_map_loc_unwind_once) | |
1735 | (linemap_macro_map_loc_to_exp_point, linemap_step_out_once) | |
1736 | (linemap_get_source_line linemap_get_source_column) | |
1737 | (linemap_map_get_macro_name, linemap_get_file_path) | |
1738 | (linemap_location_in_system_header_p) | |
1739 | (linemap_location_from_macro_expansion_p): Declare new functions. | |
1740 | (SOURCE_LINE, SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION) | |
1741 | (LINEMAP_FILE, LINEMAP_LINE, LINEMAP_SYSP): Assert that this | |
1742 | accessors act on ordinary maps only. | |
1743 | (INCLUDED_FROM): Return NULL for main files; use the new | |
1744 | accessors. | |
1745 | (LINEMAP_POSITION_FOR_COLUMN): Use the new accessors. | |
1746 | (struct expanded_location): Move here from gcc/input.h | |
1747 | (linemap_resolve_location, linemap_expand_location) | |
1748 | (linemap_expand_location_full): Declare new functions. | |
1749 | * line-map.c: Include cpplib.h, internal.h | |
1750 | (linemap_enter_macro, linemap_add_macro_token) | |
1751 | (linemap_get_expansion_line, linemap_get_expansion_filename): New | |
1752 | functions that are private to libcpp. | |
1753 | (linemap_assert): New macro. | |
1754 | (linemap_macro_loc_to_exp_point, linemap_macro_loc_to_exp_point) | |
1755 | (linemap_macro_loc_unwind, linemap_macro_map_loc_to_def_point) | |
1756 | (linemap_macro_map_loc_unwind_toward_spelling) | |
1757 | (linemap_macro_map_loc_to_exp_point) | |
1758 | (first_map_in_common_1, first_map_in_common): New static | |
1759 | functions. | |
1760 | (new_linemap): Define new static functions. Extracted and | |
1761 | enhanced from ... | |
1762 | (linemap_add): ... here. Use linemap_assert in lieu of abort | |
1763 | previously. | |
1764 | (linemap_tracks_macro_expansion_locs_p) | |
1765 | (linemap_add_macro_token, linemap_macro_expansion_map_p) | |
1766 | (linemap_check_ordinary, linemap_macro_map_loc_to_exp_point) | |
1767 | (linemap_macro_map_loc_to_def_point) | |
1768 | (linemap_macro_map_loc_unwind_once) | |
1769 | (linemap_step_out_once, linemap_map_get_index) | |
1770 | (linemap_get_source_line,linemap_get_source_column) | |
1771 | (linemap_get_file_path, linemap_map_get_macro_name) | |
1772 | (linemap_location_in_system_header_p) | |
1773 | (linemap_location_originated_from_system_header_p) | |
1774 | (linemap_location_from_macro_expansion_p) | |
1775 | (linemap_tracks_macro_expansion_locs_p) | |
1776 | (linemap_resolve_location, linemap_expand_location) | |
1777 | (linemap_expand_location_full) | |
1778 | (linemap_tracks_macro_expansion_locs_p) | |
1779 | (linemap_position_for_line_and_column, linemap_compare_locations): | |
1780 | Define new public functions. | |
1781 | (linemap_init): Initialize ordinary and macro maps information in | |
1782 | the map set. | |
1783 | (linemap_check_files_exited): Use the new accessors. | |
1784 | (linemap_free): Remove this dead code. | |
1785 | (linemap_line_start): Assert this uses an ordinary map. Adjust to | |
1786 | use the new ordinary map accessors and data structures. Don't | |
1787 | overflow past the lowest possible macro token's location. | |
1788 | (linemap_position_for_column): Assert the ordinary maps of the map | |
1789 | set are really ordinary. Use ordinary map accessors. | |
1790 | (linemap_lookup): Keep the same logic but generalize to allow | |
1791 | lookup of both ordinary and macro maps. Do not crash when called | |
1792 | with an empty line table. | |
1793 | * directives-only.c (_cpp_preprocess_dir_only): Adjust to use the | |
1794 | new API of line-map.h. | |
1795 | * directives.c (start_directive, do_line, do_linemarker) | |
1796 | (do_linemarker): Likewise. | |
1797 | * files.c (_cpp_find_file, _cpp_stack_include, open_file_failed) | |
1798 | (make_cpp_dir, cpp_make_system_header): Likewise. | |
1799 | * init.c (cpp_read_main_file): Likewise. | |
1800 | * internal.h (CPP_INCREMENT_LINE): Likewise. | |
1801 | (linemap_enter_macro, linemap_add_macro_token) | |
1802 | (linemap_get_expansion_line, linemap_get_expansion_filename): New | |
1803 | functions private to libcpp. | |
1804 | * lex.c (_cpp_process_line_notes, _cpp_skip_block_comment) | |
1805 | (skip_line_comment, skip_whitespace, lex_raw_string) | |
1806 | (_cpp_lex_direct): Likewise. | |
1807 | * macro.c (_cpp_builtin_macro_text): Likewise. | |
1808 | (_cpp_aligned_alloc): Initialize the new name member of the macro. | |
1809 | * traditional.c (copy_comment, _cpp_scan_out_logical_line): | |
1810 | Likewise. | |
1811 | * errors.c (cpp_diagnostic): Adjust to new linemap API. | |
1812 | ||
892a371f DS |
1813 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
1814 | ||
1815 | * line-map.c (linemap_add): Assert that reason must not be | |
1816 | LC_RENAME when called for the first time on a "main input file". | |
1817 | ||
e3dfef44 GC |
1818 | 2011-08-22 Gabriel Charette <gchare@google.com> |
1819 | ||
1820 | * init.c (cpp_create_reader): Inititalize forced_token_location_p. | |
1821 | * internal.h (struct cpp_reader): Add field forced_token_location_p. | |
1822 | * lex.c (_cpp_lex_direct): Use forced_token_location_p. | |
1823 | (cpp_force_token_locations): New. | |
1824 | (cpp_stop_forcing_token_locations): New. | |
1825 | ||
32fe396e RO |
1826 | 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1827 | ||
1828 | PR libstdc++/1773 | |
1829 | * init.c (cpp_init_builtins): Define __cplusplus 19971L. | |
1830 | ||
7c1ffff9 JM |
1831 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
1832 | ||
1833 | * include/cpplib.h (struct cpp_options): Fix typo. | |
1834 | ||
a48e3dd1 JM |
1835 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
1836 | ||
1837 | * include/cpplib.h (struct cpp_options): Add rliterals. | |
1838 | * init.c (struct lang_flags, lang_defaults): Add rliterals. | |
1839 | (cpp_set_lang): Set rliterals option. | |
1840 | (cpp_init_builtins): Define __STDC_UTF_16__ and __STDC_UTF_32__. | |
1841 | * lex.c (_cpp_lex_direct): Only accept raw strings if rliterals. | |
1842 | ||
3f6ced10 GC |
1843 | 2011-08-15 Gabriel Charette <gchare@google.com> |
1844 | ||
1845 | * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Remove. | |
1846 | Update all users to use linemap_position_for_column instead. | |
1847 | ||
0681d04c GC |
1848 | 2011-07-28 Gabriel Charette <gchare@google.com> |
1849 | ||
1850 | * include/line-map.h (struct line_maps): | |
1851 | Remove unused field last_listed. Update all users. | |
1852 | ||
5e9627ca L |
1853 | 2011-07-28 H.J. Lu <hongjiu.lu@intel.com> |
1854 | ||
1855 | * configure.ac: Set need_64bit_hwint to yes for x86 targets. | |
1856 | * configure: Regenerated. | |
1857 | ||
a024b70f RO |
1858 | 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1859 | ||
1860 | * system.h [__cplusplus]: Wrap C function declarations in extern "C". | |
1861 | ||
5b6d595b RO |
1862 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1863 | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | |
1864 | ||
1865 | PR bootstrap/49794 | |
1866 | * configure.ac: Test AM_ICONV with CXX. | |
1867 | * configure: Regenerate. | |
1868 | * system.h (HAVE_DESIGNATED_INITIALIZERS): Never define for C++. | |
1869 | ||
d0a9fbe1 DS |
1870 | 2011-07-15 Dodji Seketeli <dodji@redhat.com> |
1871 | ||
1872 | * directives.c (struct if_stack): Use source_location as type | |
1873 | here. | |
1874 | * include/cpplib.h (struct cpp_callbacks)<include, define, undef, | |
1875 | indent, def_pragma, used_define, used_undef>: Properly use | |
1876 | source_location as parameter type, rather than unsigned int. | |
1877 | ||
fbdd5d87 RO |
1878 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1879 | ||
1880 | PR target/39150 | |
1881 | * configure.ac (host_wide_int): Handle x86_64-*-solaris2.1[0-9] | |
1882 | like i[34567]86-*-solaris2.1[0-9]*. | |
1883 | * configure: Regenerate. | |
1884 | ||
8787a05a JM |
1885 | 2011-06-16 Jason Merrill <jason@redhat.com> |
1886 | ||
1887 | PR c++/45399 | |
1888 | * lex.c (lex_raw_string): Don't check for embedded NUL. | |
1889 | ||
38fbfaf6 DS |
1890 | 2011-06-06 Dodji Seketeli <dodji@redhat.com> |
1891 | ||
1892 | PR preprocessor/48532 | |
1893 | * directives.c (do_pragma): Don't forget the invocation location | |
1894 | when parsing the pragma name of a namespaced pragma directive. | |
1895 | ||
fc0993ac JT |
1896 | 2011-05-29 John Tytgat <John.Tytgat@aaug.net> |
1897 | ||
1898 | * files.c (read_file_guts): Add test on non-zero value of S_ISREG. | |
1899 | ||
ef230b38 UB |
1900 | 2011-05-22 Uros Bizjak <ubizjak@gmail.com> |
1901 | ||
1902 | PR target/49104 | |
1903 | * lex.c (init_vectorized_lexer): Do not set "minimum" when __3dNOW_A__ | |
1904 | is defined. Check bit_MMXEXT and bit_CMOV to use search_line_mmx. | |
1905 | ||
e5b0dad8 JK |
1906 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
1907 | ||
1908 | * system.h (ENUM_BITFIELD): Remove. | |
1909 | ||
6cfae070 JJ |
1910 | 2011-04-24 Jakub Jelinek <jakub@redhat.com> |
1911 | ||
1912 | PR preprocessor/48740 | |
1913 | * lex.c (lex_raw_string): When raw string ends with | |
1914 | ??) followed by raw prefix and ", ensure it is preprocessed | |
1915 | with ??) rather than ??]. | |
1916 | ||
04695783 JM |
1917 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
1918 | ||
1919 | * files.c (destroy_cpp_file): Remove useless if-before-free. | |
1920 | * init.c (cpp_destroy): Likewise. | |
1921 | * macro.c (replace_args): Likewise. | |
1922 | * pch.c (cpp_valid_state): Likewise. | |
1923 | ||
4489800d KT |
1924 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
1925 | ||
1926 | * files.c (file_hash_eq): Use filename_cmp | |
1927 | instead of strcmp. | |
1928 | (nonexistent_file_hash_eq): Likewise. | |
1929 | (remap_filename): Likewise. | |
1930 | Handle absolute DOS-path, | |
1931 | (append_file_to_dir): Check for IS_DIR_SEPARATOR | |
1932 | instead of slash. | |
1933 | (read_name_map): Likewise. | |
1934 | * linemap.c (linemap_add): Use filename_cmp | |
1935 | instead of strcmp. | |
1936 | * mkdeps.c (apply_vpath): Use filename_ncmp | |
1937 | instead of strncmp. | |
1938 | (deps_restore): Use filename_cmp instead of | |
1939 | strcmp. | |
1940 | * init.c (read_original_directory): Use | |
1941 | IS_DIR_SEPARATOR instead of checking for slash. | |
1942 | ||
f3c33d9d MM |
1943 | 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
1944 | ||
1945 | PR preprocessor/48192 | |
1946 | * directives.c (do_ifdef): Do not consider conditional macros as | |
1947 | being defined. | |
1948 | (do_ifndef): Ditto. | |
1949 | * expr.c (parse_defined): Ditto. | |
1950 | ||
01956319 RH |
1951 | 2011-03-18 Richard Henderson <rth@redhat.com> |
1952 | ||
1953 | PR bootstrap/45381 | |
1954 | * lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5. | |
1955 | ||
c5a62c6f | 1956 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
19a9ba64 | 1957 | Jakub Jelinek <jakub@redhat.com> |
c5a62c6f EB |
1958 | |
1959 | PR preprocessor/39213 | |
1960 | * directives.c (end_directive): Call _cpp_remove_overlay for deferred | |
1961 | pragmas as well in traditional mode. | |
1962 | ||
0e1a989c ILT |
1963 | 2010-11-17 Ian Lance Taylor <iant@google.com> |
1964 | ||
1965 | PR bootstrap/45538 | |
1966 | * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS. Remove switch of | |
1967 | AC_LANG based on ENABLE_BUILD_WITH_CXX. | |
1968 | ||
651a20b5 KT |
1969 | 2010-11-16 Kai Tietz <kai.tietz@onevision.com> |
1970 | ||
1971 | PR preprocessor/17349 | |
1972 | * lex.c (save_comment): Handle in argument passing c++ | |
1973 | comments special. | |
1974 | ||
480767a9 ILT |
1975 | 2010-11-02 Ian Lance Taylor <iant@google.com> |
1976 | ||
1977 | * configure.ac: Use AC_SYS_LARGEFILE. | |
1978 | * configure: Rebuild. | |
1979 | * config.in: Rebuild. | |
1980 | ||
078419c9 | 1981 | 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net> |
480767a9 | 1982 | |
078419c9 BS |
1983 | * line-map.h (source_location): Remove obsolete comment |
1984 | mentioning location_s. | |
1985 | ||
d6874138 KT |
1986 | 2010-09-29 Kai Tietz <kai.tietz@onevision.com> |
1987 | ||
1988 | PR preprocessor/45362 | |
1989 | * directives.c (cpp_pop_definition): Make static. | |
1990 | (do_pragma_push_macro): Reworked to store text | |
1991 | definition. | |
1992 | (do_pragma_pop_macro): Add free text definition. | |
1993 | (cpp_push_definition): Removed. | |
1994 | * include/cpplib.h (cpp_push_definition): Removed. | |
1995 | (cpp_pop_definition): Likewise. | |
1996 | * internal.h (def_pragma_macro): Remove member 'value' | |
1997 | and add new members 'definition', 'line', | |
1998 | 'syshdr', 'sued' and 'is_undef'. | |
1999 | * pch.c (_cpp_restore_pushed_macros): Rework to work | |
2000 | on text definition and store additional macro flags. | |
2001 | (_cpp_save_pushed_macros): Likewise. | |
2002 | ||
e3339d0f JM |
2003 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
2004 | ||
2005 | * include/cpplib.h (cpp_options): Rename warn_deprecated, | |
2006 | warn_traditional, warn_long_long and pedantic. | |
2007 | * directives.c (directive_diagnostics, _cpp_handle_directive): | |
2008 | Update names of cpp_options members. | |
2009 | * expr.c (cpp_classify_number, eval_token): Update names of | |
2010 | cpp_options members. | |
2011 | * init.c (cpp_create_reader, post_options): Update names of | |
2012 | cpp_options members. | |
2013 | * internal.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Update names of | |
2014 | cpp_options members. | |
2015 | * macro.c (parse_params): Update names of cpp_options members. | |
2016 | ||
128465e6 ILT |
2017 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
2018 | ||
2019 | * init.c: Fix type name in comment. | |
2020 | ||
a69d2520 JJ |
2021 | 2010-08-31 Jakub Jelinek <jakub@redhat.com> |
2022 | ||
2023 | PR preprocessor/45457 | |
2024 | * expr.c (parse_defined): Call pfile->cb.user_builtin_macro hook if | |
2025 | needed. | |
2026 | * directives.c (do_ifdef, do_ifndef): Likewise. | |
2027 | ||
707bcb7a RO |
2028 | 2010-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2029 | ||
2030 | * system.h [HAVE_INTTYPES_H]: Include inttypes.h. | |
2031 | ||
6f173e52 RH |
2032 | 2010-08-24 Richard Henderson <rth@redhat.com> |
2033 | ||
2034 | PR bootstrap/45376 | |
2035 | * configure.ac (HAVE_SSE4): New check. | |
2036 | * configure, config.in: Rebuild. | |
2037 | * lex.c (search_line_sse42): Omit if !HAVE_SSE4. | |
2038 | ||
789d73cb RO |
2039 | 2010-08-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2040 | ||
2041 | * lex.c [__sun__ && __svr4__]: Disable init_vectorized_lexer | |
2042 | etc. on Solaris 2/x86. | |
2043 | ||
246a2fcb RH |
2044 | 2010-08-21 Richard Henderson <rth@redhat.com> |
2045 | Andi Kleen <ak@linux.intel.com> | |
2046 | David S. Miller <davem@davemloft.net> | |
2047 | ||
2048 | * configure.ac (AC_C_BIGENDIAN, AC_TYPE_UINTPTR_T): New tests. | |
2049 | (ssize_t): Check via AC_TYPE_SSIZE_T instead of AC_CHECK_TYPE. | |
2050 | (ptrdiff_t): Check via AC_CHECK_TYPE. | |
2051 | * config.in, configure: Rebuild. | |
2052 | * system.h: Include stdint.h, if available. | |
2053 | * lex.c (WORDS_BIGENDIAN): Provide default. | |
2054 | (acc_char_mask_misalign, acc_char_replicate, acc_char_cmp, | |
2055 | acc_char_index, search_line_acc_char, repl_chars, search_line_mmx, | |
2056 | search_line_sse2, search_line_sse42, init_vectorized_lexer, | |
2057 | search_line_fast): New. | |
2058 | (_cpp_clean_line): Use search_line_fast. Restructure the fast | |
2059 | loop to make it clear when we're leaving the loop. Stay in the | |
2060 | fast loop for non-trigraph '?'. | |
2061 | ||
8e680db5 JJ |
2062 | 2010-06-11 Jakub Jelinek <jakub@redhat.com> |
2063 | ||
2064 | * include/cpplib.h (struct cpp_callbacks): Add user_builtin_macro | |
2065 | callback. | |
2066 | (enum cpp_builtin_type): Add BT_FIRST_USER and BT_LAST_USER. | |
2067 | (cpp_macro_definition): Remove const qual from second argument. | |
2068 | * macro.c (enter_macro_context): Call user_builtin_macro callback for | |
2069 | NODE_BUILTIN !NODE_USED macros. | |
2070 | (warn_of_redefinition): Likewise. Remove const qual from second | |
2071 | argument. | |
2072 | (cpp_macro_definition): Likewise. | |
2073 | * pch.c (write_macdef, save_macros): Call user_builtin_macro callback | |
2074 | for NODE_BUILTIN !NODE_USED macros. | |
2075 | ||
1cb42611 JM |
2076 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
2077 | ||
2078 | * include/cpplib.h (struct cpp_options): Remove show_column. | |
2079 | * init.c (cpp_create_reader, post_options): Don't set show_column. | |
2080 | ||
ff5dfc48 JR |
2081 | 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com> |
2082 | ||
2083 | PR bootstrap/44432 | |
2084 | * configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++, | |
2085 | check that C++ compiler works. | |
2086 | * configure: Regenerate. | |
2087 | ||
a9429e29 LB |
2088 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
2089 | ||
2090 | * include/symtab.h (ht_identifier_ptr): New. | |
2091 | ||
c3f247f4 RW |
2092 | 2010-06-03 Joern Rennecke <joern.rennecke@embecosm.com> |
2093 | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | |
2094 | ||
2095 | PR bootstrap/42798 | |
2096 | * configure.ac: Check for declaration of 'basename(char *)'. | |
2097 | * configure: Regenerate. | |
2098 | * config.in: Regenerate. | |
2099 | ||
2778d766 JM |
2100 | 2010-04-25 Joseph Myers <joseph@codesourcery.com> |
2101 | ||
2102 | * include/cpplib.h (enum c_lang): Add CLK_GNUC1X and CLK_STDC1X. | |
2103 | * init.c (lang_defaults): Add entries for new language variants. | |
2104 | (cpp_init_builtins): Define __STDC_VERSION__ to 201000L for C1X | |
2105 | variants. | |
2106 | ||
d8a12e84 MLI |
2107 | 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2108 | ||
2109 | PR cpp/43195 | |
2110 | * files.c (report_missing_guard): Test for #pragma once. | |
2111 | ||
87cf0651 SB |
2112 | 2010-04-07 Simon Baldwin <simonb@google.com> |
2113 | ||
2114 | * directives.c (do_diagnostic): Add warning reason argument, | |
2115 | call appropriate error reporting function for code. | |
2116 | (directive_diagnostics): Call specific warning functions with | |
2117 | warning reason where appropriate. | |
2118 | (do_error, do_warning, do_pragma_dependency): Add warning reason | |
2119 | argument to do_diagnostic calls. | |
2120 | * macro.c (_cpp_warn_if_unused_macro, enter_macro_context, | |
2121 | _cpp_create_definition): Call specific warning functions with | |
2122 | warning reason where appropriate. | |
2123 | * Makefile.in: Add new diagnostic functions to gettext translations. | |
2124 | * include/cpplib.h (struct cpp_callbacks): Add warning reason code | |
2125 | to error callback. | |
2126 | (CPP_DL_WARNING, CPP_DL_WARNING_SYSHDR, CPP_DL_PEDWARN, CPP_DL_ERROR, | |
2127 | CPP_DL_ICE, CPP_DL_NOTE, CPP_DL_FATAL): Replace macros with enums. | |
2128 | (CPP_W_NONE, CPP_W_DEPRECATED, CPP_W_COMMENTS, | |
2129 | CPP_W_MISSING_INCLUDE_DIRS, CPP_W_TRIGRAPHS, CPP_W_MULTICHAR, | |
2130 | CPP_W_TRADITIONAL, CPP_W_LONG_LONG, CPP_W_ENDIF_LABELS, | |
2131 | CPP_W_NUM_SIGN_CHANGE, CPP_W_VARIADIC_MACROS, | |
2132 | CPP_W_BUILTIN_MACRO_REDEFINED, CPP_W_DOLLARS, CPP_W_UNDEF, | |
2133 | CPP_W_UNUSED_MACROS, CPP_W_CXX_OPERATOR_NAMES, CPP_W_NORMALIZE, | |
2134 | CPP_W_INVALID_PCH, CPP_W_WARNING_DIRECTIVE): New enums for cpp | |
2135 | warning reason codes. | |
2136 | (cpp_warning, cpp_pedwarning, cpp_warning_syshdr, | |
2137 | cpp_warning_with_line, cpp_pedwarning_with_line, | |
2138 | cpp_warning_with_line_syshdr): New specific error reporting functions. | |
2139 | * pch.c (cpp_valid_state): Call specific warning functions with | |
2140 | warning reason where appropriate. | |
2141 | * errors.c (cpp_diagnostic, cpp_diagnostic_with_line): New central | |
2142 | diagnostic handlers. | |
2143 | (cpp_warning, cpp_pedwarning, cpp_warning_syshdr, | |
2144 | cpp_warning_with_line, cpp_pedwarning_with_line, | |
2145 | cpp_warning_with_line_syshdr): New specific error reporting functions. | |
2146 | * expr.c (cpp_classify_number, eval_token, num_unary_op): Call | |
2147 | specific warning functions with warning reason where appropriate. | |
2148 | * lex.c (_cpp_process_line_notes, _cpp_skip_block_comment, | |
2149 | warn_about_normalization, lex_identifier_intern, lex_identifier, | |
2150 | _cpp_lex_direct): Ditto. | |
2151 | * charset.c (_cpp_valid_ucn, convert_hex, convert_escape, | |
2152 | narrow_str_to_charconst): Ditto. | |
2153 | ||
d947ada0 JJ |
2154 | 2010-04-06 Jakub Jelinek <jakub@redhat.com> |
2155 | ||
2156 | PR preprocessor/43642 | |
2157 | * lex.c (lex_raw_string): Change type of TYPE variable to | |
2158 | unsigned char. | |
2159 | ||
4d9e8446 RW |
2160 | 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2161 | ||
2162 | * aclocal.m4: Regenerate. | |
2163 | ||
52150625 JM |
2164 | 2010-03-29 Jason Merrill <jason@redhat.com> |
2165 | ||
00a81b8b JM |
2166 | More N3077 raw string changes |
2167 | * charset.c (cpp_interpret_string): Don't transform UCNs in raw | |
2168 | strings. | |
2169 | * lex.c (bufring_append): Split out from... | |
2170 | (lex_raw_string): ...here. Undo trigraph and line splicing | |
2171 | transformations. Do process line notes in multi-line literals. | |
2172 | (_cpp_process_line_notes): Ignore notes that were already handled. | |
2173 | ||
52150625 JM |
2174 | Some raw string changes from N3077 |
2175 | * charset.c (cpp_interpret_string): Change inner delimiters to (). | |
2176 | * lex.c (lex_raw_string): Likewise. Also disallow '\' in delimiter. | |
2177 | ||
709d7160 JJ |
2178 | 2010-02-11 Jakub Jelinek <jakub@redhat.com> |
2179 | ||
2180 | * init.c (read_original_filename): Don't call read_original_directory | |
2181 | if _cpp_handle_directive returns 0. | |
2182 | ||
dadab4fd JM |
2183 | 2010-01-01 Joseph Myers <joseph@codesourcery.com> |
2184 | ||
2185 | PR preprocessor/41947 | |
2186 | * expr.c (cpp_classify_number): Give error for hexadecimal | |
2187 | floating-point constant with no digits before or after point. | |
2188 | ||
3de8a540 AC |
2189 | 2009-11-20 Arnaud Charlet <charlet@adacore.com> |
2190 | ||
2191 | * macro.c (enter_macro_context): Call cb.used callback if defined. | |
2192 | * directives.c (do_idef, do_ifndef): Ditto. | |
2193 | * include/cpplib.h (struct cpp_callbacks): Add used callback. | |
2194 | ||
17e7cb85 KT |
2195 | 2009-11-11 Kai Tietz <kai.tietz@onevision.com> |
2196 | ||
2197 | * directives.c (do_pragma_push_macro): New pragma handler. | |
2198 | (do_pragma_pop_macro): Likewise. | |
2199 | (_cpp_init_internal_pragmas): Add push_macro and | |
2200 | pop_macro handler to internal pragmas. | |
2201 | (lex_macro_node_from_str): Removed. | |
2202 | (cpp_push_definition): Replace lex_macro_node_from_str | |
2203 | by _cpp_lex_identifier. | |
2204 | (cpp_pop_definition): Likewise. | |
2205 | * internal.h (_cpp_lex_identifier): New prototype. | |
2206 | (def_pragma_macro): New structure. | |
2207 | (cpp_reader): New member pushed_macros. | |
2208 | * lex.c (_cpp_lex_identifier): New function. | |
2209 | (lex_identifier_intern): New function. | |
2210 | * init.c (cpp_create_reader): Initialize pushed_macros | |
2211 | member. | |
2212 | (cpp_destroy): Free elements in pushed_macros member. | |
2213 | * pch.c (_cpp_save_pushed_macros): New function. | |
2214 | (_cpp_restore_pushed_macros): Likewise. | |
2215 | (_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros. | |
2216 | (cpp_read_state): Use _cpp_restore_pushed_macros. | |
2217 | ||
2c6e3f55 JJ |
2218 | 2009-10-19 Jakub Jelinek <jakub@redhat.com> |
2219 | ||
2220 | * charset.c (cpp_init_iconv): Initialize utf8_cset_desc. | |
2221 | (_cpp_destroy_iconv): Destroy utf8_cset_desc, char16_cset_desc | |
2222 | and char32_cset_desc. | |
2223 | (converter_for_type): Handle CPP_UTF8STRING. | |
2224 | (cpp_interpret_string): Handle CPP_UTF8STRING and raw-strings. | |
2225 | * directives.c (get__Pragma_string): Handle CPP_UTF8STRING. | |
2226 | (parse_include): Reject raw strings. | |
2227 | * include/cpplib.h (CPP_UTF8STRING): New token type. | |
2228 | * internal.h (struct cpp_reader): Add utf8_cset_desc field. | |
2229 | * lex.c (lex_raw_string): New function. | |
2230 | (lex_string): Handle u8 string literals, call lex_raw_string | |
2231 | for raw string literals. | |
2232 | (_cpp_lex_direct): Call lex_string even for u8" and {,u,U,L,u8}R" | |
2233 | sequences. | |
2234 | * macro.c (stringify_arg): Handle CPP_UTF8STRING. | |
2235 | ||
96c169e1 JJ |
2236 | 2009-10-14 Jakub Jelinek <jakub@redhat.com> |
2237 | ||
2238 | PR preprocessor/41543 | |
2239 | * include/line-map.h (RESERVED_LOCATION_COUNT): Define. | |
2240 | * line-map.c (linemap_init): Initialize highest_location and | |
2241 | highest_line to RESERVED_LOCATION_COUNT-1 instead of 0. | |
2242 | ||
30c99a9e JM |
2243 | 2009-10-09 Jason Merrill <jason@redhat.com> |
2244 | ||
2245 | * charset.c (_cpp_valid_ucn): Update C++0x restrictions. | |
2246 | ||
2214382c NV |
2247 | 2009-10-09 Neil Vachharajani <nvachhar@google.com> |
2248 | ||
2249 | * directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and | |
2250 | sccs. | |
2251 | ||
e02222d2 LR |
2252 | 2009-09-23 Loren J. Rittle <ljrittle@acm.org> |
2253 | ||
2254 | * configure.ac (AC_CHECK_HEADERS after AC_LANG(C++)): Add sys/stat.h. | |
2255 | * configure: Rebuilt. | |
2256 | ||
9a8a2b7a RG |
2257 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
2258 | ||
2259 | PR pch/38987 | |
2260 | * files.c (pch_open_file): Disallow non-toplevel PCH inclusion. | |
2261 | ||
74dc6a11 CD |
2262 | 2009-09-18 Chris Demetriou <cgd@google.com> |
2263 | ||
2264 | PR preprocessor/28435: | |
2265 | * include/cpplib.h (struct cpp_options): Add new member | |
2266 | deps.need_preprocessor_output. | |
2267 | * files.c (open_file_failed): If preprocessor output is needed | |
2268 | always report an error. | |
2269 | ||
933608b7 KT |
2270 | 2009-09-13 Kai Tietz <kai.tietz@onevision.com> |
2271 | ||
2272 | * configure.ac: Set for i?86-w64-mingw* | |
2273 | need_64bit_hwint to yes. | |
2274 | * configure: Regenerated. | |
2275 | ||
86373e7e JM |
2276 | 2009-09-10 Jason Merrill <jason@redhat.com> |
2277 | ||
2278 | * directives.c (cpp_define): constify. | |
2279 | ||
fd2ab214 ILT |
2280 | 2009-09-02 Ian Lance Taylor <iant@google.com> |
2281 | ||
2282 | * macro.c (stringify_arg): Escape CPP_WCHAR tokens. | |
2283 | ||
df58e648 RW |
2284 | 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2285 | ||
2286 | * configure.ac (AC_PREREQ): Bump to 2.64. | |
2287 | ||
5213506e RW |
2288 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2289 | ||
2290 | * aclocal.m4: Regenerate. | |
2291 | * config.in: Regenerate. | |
2292 | * configure: Regenerate. | |
2293 | ||
709a22df TT |
2294 | 2009-08-17 Tom Tromey <tromey@redhat.com> |
2295 | ||
2296 | PR preprocessor/41067: | |
2297 | * charset.c (convert_escape): Add missing ":" to error text. | |
2298 | ||
0c539b47 DR |
2299 | 2009-07-27 Douglas B Rupp <rupp@gnat.com> |
2300 | ||
2301 | * include/cpplib.h (INO_T_CPP): New macro. | |
2302 | (struct cpp_dir): Use it. | |
2303 | ||
2b69c841 JQ |
2304 | 2009-07-20 Jerry Quinn <jlquinn@optonline.net> |
2305 | ||
2306 | PR regression/40800 | |
2307 | * configure.ac: Use = instead of == for testing | |
2308 | ENABLE_BUILD_WITH_CXX. | |
2309 | * configure: Rebuild. | |
2310 | ||
f1bf410c JQ |
2311 | 2009-07-17 Jerry Quinn <jlquinn@optonline.net> |
2312 | ||
2313 | * directives.c (do_linemarker, do_line): Use CPP_STRING for | |
2314 | ignored enum value. | |
2315 | * files.c (find_file_in_dir): Add cast from void* to char*. | |
2316 | * symtab.c (ht_lookup_with_hash): Add cast from void* to char*. | |
2317 | * Makefile.in: (WARN_CFLAGS): Use general and C-specific | |
2318 | warnings. | |
2319 | (CXX, CXXFLAGS, WARN_CXXFLAGS, ALL_CXXFLAGS, | |
2320 | ENABLE_BUILD_WITH_CXX, CCDEPMODE, CXXDEPMODE, COMPILER, | |
2321 | COMPILER_FLAGS): New. | |
2322 | (DEPMODE): Set from CCDEPMODE or CXXDEPMODE. | |
2323 | (COMPILE.base): Use COMPILER instead of CC. Use COMPILER_FLAGS | |
2324 | instead of ALL_CFLAGS. | |
2325 | * configure.ac: Invoke AC_PROG_CXX. Separate C-specific warnings | |
2326 | from other warnings. Add -Wc++-compat to C-specific warnings. | |
2327 | Check for --enable-build-with-cxx. Set and substitute | |
2328 | ENABLE_BUILD_WITH_CXX. Invoke ZW_PROG_COMPILER_DEPENDENCIES | |
2329 | according to ENABLE_BUILD_WITH_CXX. Invoke AC_LANG before | |
2330 | AC_CHECK_HEADERS. | |
2331 | * configure: Rebuild. | |
2332 | * include/cpp-id-data.h: Remove extern "C". | |
2333 | * include/line-map.h: Likewise. | |
2334 | * include/mkdeps.h: Likewise. | |
2335 | * include/symtab.h: Likewise. | |
2336 | * internal.h: Likewise. | |
2337 | ||
a28fbdba MLI |
2338 | 2009-06-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
2339 | ||
2340 | * directives.c (parse_include): Add location argument. Update all | |
2341 | calls. | |
2342 | (parse_answer): Likewise. | |
2343 | (do_include_common): Error with exact location. | |
2344 | (parse_assertion): Likewise. | |
2345 | ||
b506a5a2 MLI |
2346 | 2009-06-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2347 | ||
2348 | * expr.c (num_div_op): Take explicit location. | |
2349 | ||
7d8847a4 ILT |
2350 | 2009-06-17 Ian Lance Taylor <iant@google.com> |
2351 | ||
2352 | * include/cpplib.h (progname): Don't declare. | |
2353 | ||
3d8b2a98 ILT |
2354 | 2009-06-12 Ian Lance Taylor <iant@google.com> |
2355 | ||
2356 | * include/cpplib.h (struct cpp_options): Add | |
2357 | warn_cxx_operator_names field. | |
2358 | (NODE_WARN_OPERATOR): Define. | |
2359 | (struct cpp_hashnode): Increase flags field to 10 bits, decrease | |
2360 | type to 6 bits. | |
2361 | * init.c (mark_named_operators): Add flags parameter. | |
2362 | (cpp_post_options): Pick flags value to pass to | |
2363 | mark_named_operators. | |
2364 | * lex.c (lex_identifier): If NODE_WARN_OPERATOR is set, warn that | |
2365 | identifier is an operator name in C++. | |
2366 | ||
e74fe492 AH |
2367 | 2009-06-01 Aldy Hernandez <aldyh@redhat.com> |
2368 | ||
2369 | * include/line-map.h (LAST_SOURCE_COLUMN): New. | |
2370 | ||
4851089f ILT |
2371 | 2009-06-01 Ian Lance Taylor <iant@google.com> |
2372 | ||
2373 | * include/cpp-id-data.h: Add extern "C". | |
2374 | * include/line-map.h: Likewise. | |
2375 | * include/mkdeps.h: Likewise. | |
2376 | * include/symtab.h: Likewise. | |
2377 | * internal.h: Likewise. | |
2378 | ||
7e5487a2 ILT |
2379 | 2009-05-15 Ian Lance Taylor <iant@google.com> |
2380 | ||
2381 | * include/cpplib.h (enum cpp_builtin_type): Rename from enum | |
2382 | builtin_type. Change all uses. | |
2383 | ||
00b0c19b MLI |
2384 | 2009-05-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
2385 | ||
2386 | PR cpp/36674 | |
2387 | * directives (do_linemarker): Compensate for the increment in | |
2388 | location that occurs when we reach the end of line. | |
2389 | * files (_cpp_stack_include): Mention _cpp_find_file in the | |
2390 | comment. | |
2391 | ||
9a0c6187 JM |
2392 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
2393 | ||
2394 | * include/cpplib.h (enum cpp_token_fld_kind): Add | |
2395 | CPP_TOKEN_FLD_TOKEN_NO. | |
2396 | (struct cpp_macro_arg, struct cpp_identifier): Define. | |
2397 | (union cpp_token_u): Use struct cpp_identifier for identifiers. | |
2398 | Use struct cpp_macro_arg for macro arguments. Add token_no for | |
2399 | CPP_PASTE token numbers. | |
2400 | * directives.c (_cpp_handle_directive, lex_macro_node, do_pragma, | |
2401 | do_pragma_poison, parse_assertion): Use val.node.node in place of | |
2402 | val.node. | |
2403 | * expr.c (parse_defined, eval_token): Use val.node.node in place | |
2404 | of val.node. | |
2405 | * lex.c (cpp_ideq, _cpp_lex_direct, cpp_token_len, | |
2406 | cpp_spell_token, cpp_output_token, _cpp_equiv_tokens, | |
2407 | cpp_token_val_index): Use val.macro_arg.arg_no or val.token_no in | |
2408 | place of val.arg_no. Use val.node.node in place of val.node. | |
2409 | * macro.c (replace_args, cpp_get_token, parse_params, | |
2410 | lex_expansion_token, create_iso_definition, cpp_macro_definition): | |
2411 | Use val.macro_arg.arg_no or val.token_no in place of val.arg_no. | |
2412 | Use val.node.node in place of val.node. | |
2413 | ||
9e322bc1 JM |
2414 | 2009-05-03 Joseph Myers <joseph@codesourcery.com> |
2415 | ||
2416 | * charset.c (one_utf8_to_cppchar): Correct mask used for 5-byte | |
2417 | UTF-8 sequences. | |
2418 | ||
f88d0772 JM |
2419 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
2420 | ||
2421 | PR preprocessor/39559 | |
2422 | * expr.c (cpp_interpret_integer): Use a pedwarn for decimal | |
2423 | constants larger than intmax_t in C99 mode. | |
2424 | ||
d1b38208 TG |
2425 | 2009-04-21 Taras Glek <tglek@mozilla.com> |
2426 | ||
2427 | * include/cpp-id-data.h: Update GTY annotations to new syntax. | |
2428 | * include/cpplib.h: Likewise. | |
2429 | * include/line-map.h: Likewise. | |
2430 | * include/symtab.h: Likewise. | |
2431 | ||
cfc93532 MLI |
2432 | 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
2433 | ||
2434 | PR c++/14875 | |
2435 | * lex.c (cpp_type2name): Take a flags parameter. Call | |
2436 | cpp_named_operator2name for named operators and cpp_digraph2name | |
2437 | for digraphs. | |
2438 | (cpp_digraph2name): New. | |
2439 | (cpp_spell_token): Use it. | |
2440 | (cpp_output_token): Likewise. | |
2441 | * include/cpplib.h (cpp_type2name): Update declaration. | |
2442 | * init.c (cpp_named_operator2name): New. | |
2443 | * internal.h (cpp_named_operator2name): Declare. | |
2444 | ||
9c650d90 MLI |
2445 | 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
2446 | ||
2447 | PR c++/13358 | |
2448 | * init.c (cpp_create_reader): Wlong_long is disabled by default. | |
2449 | * expr.c (cpp_classify_number): Give different messages for C and | |
2450 | C++ front-ends. | |
2451 | ||
aa508502 JM |
2452 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
2453 | ||
2454 | PR preprocessor/20078 | |
2455 | * include/cpp-id-data.h (struct cpp_macro): Add extra_tokens | |
2456 | field. | |
2457 | * include/cpplib.h (SP_DIGRAPH, SP_PREV_WHITE): Define. | |
2458 | (struct cpp_token): Change flags to unsigned short. | |
2459 | * lex.c (_cpp_lex_direct): Initialize arg_no for CPP_PASTE tokens. | |
2460 | (_cpp_equiv_tokens): Check arg_no for CPP_PASTE tokens. | |
2461 | (cpp_token_val_index): Return CPP_TOKEN_FLD_ARG_NO for CPP_PASTE | |
2462 | tokens. | |
2463 | * macro.c (macro_real_token_count): New. | |
2464 | (enter_macro_context, replace_args): Use macro_real_token_count. | |
2465 | (create_iso_definition): Record whitespace surrounding and digraph | |
2466 | spelling of # and ## tokens using SP_PREV_WHITE and SP_DIGRAPH. | |
2467 | Set extra_tokens and save CPP_PASTE tokens with arg_no set for | |
2468 | multiple consecutive ## tokens. | |
2469 | (_cpp_create_definition): Initialize extra_tokens. | |
2470 | (cpp_macro_definition): Use macro_real_token_count. | |
2471 | ||
61cc8223 JM |
2472 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
2473 | ||
2474 | * directives.c (parse_include): Pass true to check_eol. | |
2475 | ||
c7f9c0b9 JM |
2476 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
2477 | ||
2478 | PR preprocessor/39646 | |
2479 | * include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM. | |
2480 | * line-map.c (linemap_add): Handle LC_RENAME_VERBATIM. | |
2481 | * directives.c (do_line, do_linemarker): Use LC_RENAME_VERBATIM in | |
2482 | place of LC_RENAME. | |
2483 | ||
a5cb563b JM |
2484 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
2485 | ||
2486 | PR preprocessor/39647 | |
2487 | * directives.c (check_eol): Add parameter expand. | |
2488 | (do_undef, parse_include, do_line, do_linemarker, do_ident, | |
2489 | do_pragma_once, do_pragma_system_header, do_ifdef, do_ifndef, | |
2490 | do_else, do_endif, do_assert, do_unassert): All callers changed. | |
2491 | Pass true from do_line, false elsewhere. | |
2492 | ||
18f41a1b JM |
2493 | 2009-04-12 Joseph Myers <joseph@codesourcery.com> |
2494 | ||
2495 | PR preprocessor/31869 | |
2496 | * macro.c (stringify_arg): Handle NULL source token in padding | |
2497 | token where previous padding token did not have source token with | |
2498 | preceding whitespace. | |
2499 | ||
748086b7 JJ |
2500 | 2009-04-09 Jakub Jelinek <jakub@redhat.com> |
2501 | ||
2502 | * Makefile.in: Change copyright header to refer to version | |
2503 | 3 of the GNU General Public License and to point readers at the | |
2504 | COPYING3 file and the FSF's license web page. | |
2505 | * charset.c: Likewise. | |
2506 | * directives-only.c: Likewise. | |
2507 | * directives.c: Likewise. | |
2508 | * errors.c: Likewise. | |
2509 | * expr.c: Likewise. | |
2510 | * files.c: Likewise. | |
2511 | * identifiers.c: Likewise. | |
2512 | * include/cpp-id-data.h: Likewise. | |
2513 | * include/cpplib.h: Likewise. | |
2514 | * include/line-map.h: Likewise. | |
2515 | * include/mkdeps.h: Likewise. | |
2516 | * include/symtab.h: Likewise. | |
2517 | * init.c: Likewise. | |
2518 | * internal.h: Likewise. | |
2519 | * lex.c: Likewise. | |
2520 | * line-map.c: Likewise. | |
2521 | * macro.c: Likewise. | |
2522 | * makeucnid.c: Likewise. | |
2523 | * mkdeps.c: Likewise. | |
2524 | * pch.c: Likewise. | |
2525 | * symtab.c: Likewise. | |
2526 | * system.h: Likewise. | |
2527 | * traditional.c: Likewise. | |
2528 | * ucnid.tab: Likewise. | |
2529 | * ucnid.h: Regenerate. | |
2530 | ||
eec49116 JJ |
2531 | 2009-04-01 Janis Johnson <janis187@us.ibm.com> |
2532 | ||
839a3b8a JJ |
2533 | PR c/39027 |
2534 | * include/cpplib.h (CPP_N_DEFAULT): Define. | |
2535 | * expr.c (interpret_float_suffix): Recognize d or D for double, | |
2536 | return new value for default. | |
2537 | (cpp_classify_number): Issue pedwarn for use of d or D in suffix. | |
2538 | ||
eec49116 JJ |
2539 | PR c/33466 |
2540 | * expr.c (interpret_float_suffix): Reject invalid suffix that uses | |
2541 | letters from decimal float and fixed-point suffixes. | |
2542 | ||
47580d22 JM |
2543 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
2544 | ||
2545 | PR preprocessor/15638 | |
2546 | * files.c (_cpp_find_file): Call open_file_failed after diagnosing | |
2547 | invalid PCH. | |
2548 | (open_file_failed): Make error for missing file fatal. | |
2549 | * include/cpplib.h (CPP_DL_FATAL): Define. | |
2550 | ||
5a2df0fa SV |
2551 | 2009-03-30 Sergiy Vyshnevetskiy <serg@vostok.net> |
2552 | ||
2553 | PR preprocessor/31932: | |
2554 | * internal.h: Don't mention HAVE_ICONV_H. | |
2555 | * configure, config.in: Rebuild. | |
2556 | * configure.ac: Don't check for iconv.h. | |
2557 | ||
c1a8a3c6 TT |
2558 | 2009-03-30 Tom Tromey <tromey@redhat.com> |
2559 | ||
2560 | PR preprocessor/39512: | |
2561 | * line-map.c (linemap_init): Initialize 'reallocator' field. | |
2562 | ||
a37a7b8a JJ |
2563 | 2009-03-30 Jakub Jelinek <jakub@redhat.com> |
2564 | ||
2565 | PR target/39558 | |
2566 | * macro.c (cpp_get_token): If macro_to_expand returns NULL | |
2567 | and used some tokens, add CPP_PADDING before next token. | |
2568 | ||
148e4216 JM |
2569 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
2570 | ||
2571 | PR preprocessor/34695 | |
2572 | * makedepend.c: Remove. | |
2573 | * Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove. | |
2574 | (all, clean, TAGS_SOURCES, include): Remove makedepend handling. | |
2575 | * directives.c (cpp_errors): Remove. | |
2576 | * errors.c (print_location, _cpp_begin_message, v_message): | |
2577 | Remove. | |
2578 | (cpp_error, cpp_error_with_line): Always use error callback. | |
2579 | (cpp_error, cpp_error_with_line, cpp_errno): Return bool. | |
2580 | * include/cpplib.h (cpp_options): Remove pedantic_errors, | |
2581 | inhibit_warnings, warn_system_headers, inhibit_errors, | |
2582 | warnings_are_errors, client_diagnostic. | |
2583 | (cpp_callbacks): Add extra arguments to error callback; make it | |
2584 | return bool. | |
2585 | (cpp_finish): Return void. | |
2586 | (cpp_destroy): Remove inaccurate comment about return value. | |
2587 | (cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove. | |
2588 | (CPP_DL_NOTE): Define. | |
2589 | * include/line-map.h (linemap_print_containing_files): Remove. | |
2590 | * init.c (cpp_finish): Do not check for or return number of | |
2591 | errors. | |
2592 | * internal.h (cpp_reader): Remove errors field. | |
2593 | * line-map.c (linemap_print_containing_files): Remove. | |
2594 | * macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message | |
2595 | about previous definition. Only emit it if previous diagnostic | |
2596 | was emitted. | |
2597 | ||
f1450211 JM |
2598 | 2009-03-28 Joseph Myers <joseph@codesourcery.com> |
2599 | ||
2600 | * Makefile.in (po/$(PACKAGE).pot): Use $(mkinstalldirs) not | |
2601 | mkinstalldirs. | |
2602 | ||
8f5929e1 JJ |
2603 | 2009-03-18 Jakub Jelinek <jakub@redhat.com> |
2604 | ||
2605 | * include/cpplib.h (struct cpp_dir): Reorder fields for 64-bit hosts. | |
2606 | ||
4bb09c26 JM |
2607 | 2009-02-21 Joseph Myers <joseph@codesourcery.com> |
2608 | ||
2609 | * lex.c (lex_string): Return a CPP_LESS token for missing '>' in a | |
2610 | header name. | |
2611 | (_cpp_lex_direct): Handle this. | |
2612 | ||
68c9ab45 RG |
2613 | 2009-02-15 Richard Guenther <rguenther@suse.de> |
2614 | ||
2615 | Revert last change. | |
2616 | ||
601b3e1a RG |
2617 | 2009-02-13 Richard Guenther <rguenther@suse.de> |
2618 | ||
2619 | * configure.ac: Enable LFS. | |
2620 | * configure: Re-generate. | |
2621 | * config.in: Likewise. | |
2622 | ||
fc0cd180 BE |
2623 | 2009-01-05 Ben Elliston <bje@au.ibm.com> |
2624 | ||
2625 | * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir. | |
2626 | (.po.pox): Likewise. | |
2627 | (po/$(PACKAGE).pot): Likewise. | |
2628 | ||
db89a3be AO |
2629 | 2008-12-10 Alexandre Oliva <aoliva@redhat.com> |
2630 | ||
2631 | PR target/37033 | |
2632 | * pch.c (cpp_valid_state): Improve message for poisoned symbols. | |
2633 | Allow for differences in __GCC_HAVE_DWARF2_CFI_ASM. | |
2634 | ||
cc955282 JM |
2635 | 2008-11-29 Joseph Myers <joseph@codesourcery.com> |
2636 | ||
2637 | * lex.c (cpp_token_len): Use 6 as default length. | |
2638 | ||
47960aaf MLI |
2639 | 2008-10-31 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2640 | ||
2641 | * expr.c (struct op): Add location. | |
2642 | (_cpp_parse_expr): Propagate locations throught the stack | |
2643 | of expressions. | |
2644 | (reduce): Likewise. | |
2645 | (check_promotion): Use explicit location in errors. | |
2646 | ||
631d0d36 MG |
2647 | 2008-10-05 Matthew Gingell <gingell@adacore.com> |
2648 | Arnaud Charlet <charlet@adacore.com> | |
2649 | ||
2650 | * include/cpplib.h (cpp_comments, cpp_comment_table): New structs. | |
2651 | (cpp_get_comments): New function. | |
2652 | * internal.h (struct cpp_reader): Add comments field. | |
2653 | * init.c (cpp_destroy): Free comments. | |
2654 | * lex.c (store_comment, cpp_get_comments): New functions. | |
2655 | (comments): New struct. | |
2656 | (save_comment): Store comments in comments struct. | |
2657 | ||
c047ce93 SB |
2658 | 2008-09-18 Simon Baldwin <simonb@google.com> |
2659 | ||
2660 | * include/cpplib.h (struct cpp_options): Add new boolean flag | |
2661 | warn_builtin_macro_redefined. | |
2662 | * init.c (cpp_create_reader): Initialize warn_builtin_macro_redefined. | |
2663 | * (struct builtin_operator): Split out from previous struct builtin, | |
2664 | enhance extra const correctness. | |
2665 | * (struct builtin_macro): Split out from previous struct builtin, add | |
2666 | new always_warn_if_redefined flag, enhance const correctness. | |
2667 | * (mark_named_operators): Use struct builtin_operator. | |
2668 | * (cpp_init_special_builtins): Use struct builtin_macro, add NODE_WARN | |
2669 | to builtins selectively. | |
2670 | * macro.c (warn_of_redefinition): Return false if a builtin macro | |
2671 | is not flagged with NODE_WARN. | |
2672 | ||
affa55c6 JJ |
2673 | 2008-07-31 Jakub Jelinek <jakub@redhat.com> |
2674 | ||
2675 | PR preprocessor/36649 | |
2676 | * files.c (struct report_missing_guard_data): New type. | |
2677 | (report_missing_guard): Put paths into an array instead of printing | |
2678 | them right away. Return 1 rather than 0. | |
2679 | (report_missing_guard_cmp): New function. | |
2680 | (_cpp_report_missing_guards): Sort and print paths gathered by | |
2681 | report_missing_guard callback. | |
2682 | ||
3b8f20a1 MLI |
2683 | 2008-07-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
2684 | ||
2685 | PR 28079 | |
2686 | * directives.c (strtolinenum): Handle overflow. | |
2687 | (do_line): Give a warning if line number overflowed. | |
2688 | (do_linemarker): Update call to strtolinenum. | |
2689 | ||
1bb64668 MLI |
2690 | 2008-07-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
2691 | ||
2692 | * include/line-map.h (linenum_type): New typedef. | |
2693 | (struct line_map): Use it. | |
2694 | (SOURCE_LINE): Second arguments is a LOCATION not a LINE. | |
2695 | (SOURCE_COLUMN): Likewise. | |
2696 | * macro.c (_cpp_builtin_macro_text): Use linenum_type. Don't store | |
2697 | source_location values in a variable of type linenum_type. | |
2698 | * directives.c (struct if_stack): Use linenum_type. | |
2699 | (strtoul_for_line): Rename as strtolinenum. | |
2700 | (do_line): Use linenum_type. | |
2701 | (do_linemarker): Use linenum_type and strtolinenum. | |
2702 | (_cpp_do_file_change): Use linenum_t. | |
2703 | * line-map.c (linemap_add): Likewise. | |
2704 | (linemap_line_start): Likewise. | |
2705 | * traditional.c (struct fun_macro): 'line' is a source_location. | |
2706 | * errors.c (print_location): Use linenum_type. | |
2707 | * directives-only.c (_cpp_preprocess_dir_only): Likewise. | |
2708 | * internal.h (CPP_INCREMENT_LINE): Likewise. | |
2709 | * lex.c (_cpp_skip_block_comment): Use source_location. | |
19a9ba64 | 2710 | |
5950c3c9 BE |
2711 | 2008-07-14 Ben Elliston <bje@au.ibm.com> |
2712 | ||
2713 | * include/cpplib.h (NODE_CONDITIONAL): New. | |
2714 | (struct cpp_callbacks): New macro_to_expand field. | |
2715 | (struct cpp_hashnode): Adjust size of flags and type fields. | |
2716 | (cpp_peek_token): Prototype. | |
2717 | * lex.c (cpp_peek_token): New function. | |
2718 | (_cpp_temp_token): Protect pre-existing lookaheads. | |
2719 | * macro.c (cpp_get_token): Expand any conditional macros. | |
2720 | (_cpp_backup_tokens_direct): New. | |
2721 | (_cpp_backup_tokens): Call _cpp_backup_tokens_direct. | |
2722 | (warn_of_redefinition): Silently allow redefined conditional | |
2723 | macros. | |
2724 | (_cpp_create_definition): Remove the conditional flag when a user | |
2725 | defines one of the conditional macros. | |
2726 | * internal.h (_cpp_backup_tokens_direct): New prototype. | |
2727 | ||
e85edc9e AH |
2728 | 2008-06-13 Andrew Haley <aph@redhat.com> |
2729 | ||
2730 | PR preprocessor/33305 | |
2731 | * macro.c (replace_args): Print a warning for empty macro | |
2732 | arguments in C89 and C++. | |
2733 | ||
18c04407 RW |
2734 | 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2735 | ||
2736 | * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies. | |
2737 | * configure: Regenerate. | |
2738 | ||
2d09b640 RW |
2739 | 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2740 | ||
2741 | * Makefile.in (datarootdir): New variable. | |
2742 | ||
0b7c73cc L |
2743 | 2008-06-12 H.J. Lu <hongjiu.lu@intel.com> |
2744 | ||
2745 | PR preprocessor/36479 | |
2746 | * charset.c (cpp_interpret_string_notranslate): Also set | |
2747 | narrow_cset_desc.width. | |
2748 | ||
cd985f66 JM |
2749 | 2008-06-07 Joseph Myers <joseph@codesourcery.com> |
2750 | ||
2751 | * configure.ac (parisc*64*-*-*): Remove. | |
2752 | * configure: Regenerate. | |
2753 | ||
d750887f TT |
2754 | 2008-05-30 Tom Tromey <tromey@redhat.com> |
2755 | ||
2756 | PR preprocessor/36320: | |
2757 | * internal.h (_cpp_parse_expr): Update. | |
2758 | * expr.c (_cpp_parse_expr): Add 'is_if' argument. Update error | |
2759 | messages. | |
2760 | * directives.c (do_if): Update. | |
2761 | (do_elif): Require expression if processing group. | |
2762 | ||
c100de59 DS |
2763 | 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net> |
2764 | ||
2765 | * include/cpplib.h (struct cpp_dir): Add new field, canonical_name. | |
2766 | ||
5d6342eb TT |
2767 | 2008-05-21 Tom Tromey <tromey@redhat.com> |
2768 | ||
2769 | PR preprocessor/27777: | |
2770 | * lex.c (cpp_output_line_to_string): New function. | |
2771 | * internal.h (_cpp_begin_message): Don't declare. | |
2772 | * errors.c (_cpp_begin_message): Now static. | |
2773 | * include/cpplib.h (cpp_output_line_to_string): Declare. | |
2774 | * directives.c (do_diagnostic): Rewrote. Use | |
2775 | cpp_output_line_to_string. Don't use _cpp_begin_message. | |
2776 | ||
dae4174e TT |
2777 | 2008-05-21 Tom Tromey <tromey@redhat.com> |
2778 | ||
2779 | * include/symtab.h (HT_ALLOCED): Remove. | |
2780 | (ht_purge): Declare. | |
2781 | * symtab.c (DELETED): New define. | |
2782 | (ht_lookup): Update comment. | |
2783 | (ht_lookup_with_hash): Handle deleted entries. Remove HT_ALLOCED | |
2784 | code. Use subobject allocator for strings, if it exists. | |
2785 | (ht_expand): Handle deleted entries. | |
2786 | (ht_forall): Likewise. | |
2787 | (ht_purge): New function. | |
2788 | (ht_dump_statistics): Print deletion statistics. | |
2789 | ||
899015a0 TT |
2790 | 2008-05-13 Tom Tromey <tromey@redhat.com> |
2791 | ||
2792 | PR preprocessor/22168: | |
2793 | * include/cpplib.h (struct cpp_options) <objc>: Update | |
2794 | documentation. | |
2795 | * expr.c (eval_token): Warn for use of assertions. | |
2796 | * directives.c (directive_diagnostics): Warn about extensions. | |
2797 | (DEPRECATED): New define. | |
2798 | (DIRECTIVE_TABLE): Use it. | |
2799 | ||
71c10038 TT |
2800 | 2008-05-06 Tom Tromey <tromey@redhat.com> |
2801 | ||
2802 | PR preprocessor/35313, PR preprocessor/36088: | |
2803 | * expr.c (optab) <QUERY, COMMA>: Set precedence to 4. | |
2804 | (reduce) <case CPP_QUERY>: Special case CPP_COMMA and CPP_COLON. | |
2805 | ||
2bd0fe3d DM |
2806 | 2008-05-04 David S. Miller <davem@davemloft.net> |
2807 | ||
2808 | * configure.ac (sparc*-*-*): Always set need_64bit_hwint to yes. | |
2809 | * configure: Regenerate. | |
2810 | ||
28f68625 DF |
2811 | 2008-04-22 Daniel Franke <franke.daniel@gmail.com> |
2812 | ||
2813 | * include/cpplib.h (cpp_define_formatted): New. | |
2814 | * directives.c (cpp_define_formatted): New. | |
2815 | ||
688e7a53 TT |
2816 | 2008-04-21 Tom Tromey <tromey@redhat.com> |
2817 | ||
2818 | PR libcpp/33415: | |
2819 | * charset.c (_cpp_convert_input): Add buffer_start argument. | |
2820 | Ignore UTF-8 BOM if seen. | |
2821 | * internal.h (_cpp_convert_input): Add argument. | |
2822 | * files.c (struct _cpp_file) <buffer_start>: New field. | |
2823 | (destroy_cpp_file): Free buffer_start, not buffer. | |
2824 | (_cpp_pop_file_buffer): Likewise. | |
2825 | (read_file_guts): Update. | |
2826 | ||
b6baa67d KVH |
2827 | 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com> |
2828 | ||
2829 | * include/cpp-id-data.h (UC): Was U, conflicts with U"..." literal. | |
2830 | * include/cpplib.h (CHAR16, CHAR32, STRING16, STRING32): New tokens. | |
2831 | (struct cpp_options): Added uliterals. | |
2832 | (cpp_interpret_string): Update prototype. | |
2833 | (cpp_interpret_string_notranslate): Idem. | |
2834 | * charset.c (init_iconv_desc): New width member in cset_converter. | |
2835 | (cpp_init_iconv): Add support for char{16,32}_cset_desc. | |
2836 | (convert_ucn): Idem. | |
2837 | (emit_numeric_escape): Idem. | |
2838 | (convert_hex): Idem. | |
2839 | (convert_oct): Idem. | |
2840 | (convert_escape): Idem. | |
2841 | (converter_for_type): New function. | |
2842 | (cpp_interpret_string): Use converter_for_type, support u and U prefix. | |
2843 | (cpp_interpret_string_notranslate): Match changed prototype. | |
2844 | (wide_str_to_charconst): Use converter_for_type. | |
2845 | (cpp_interpret_charconst): Add support for CPP_CHAR{16,32}. | |
2846 | * directives.c (linemarker_dir): Macro U changed to UC. | |
2847 | (parse_include): Idem. | |
2848 | (register_pragma_1): Idem. | |
2849 | (restore_registered_pragmas): Idem. | |
2850 | (get__Pragma_string): Support CPP_STRING{16,32}. | |
2851 | * expr.c (eval_token): Support CPP_CHAR{16,32}. | |
2852 | * init.c (struct lang_flags): Added uliterals. | |
2853 | (lang_defaults): Idem. | |
2854 | * internal.h (struct cset_converter) <width>: New field. | |
2855 | (struct cpp_reader) <char16_cset_desc>: Idem. | |
2856 | (struct cpp_reader) <char32_cset_desc>: Idem. | |
2857 | * lex.c (digraph_spellings): Macro U changed to UC. | |
2858 | (OP, TK): Idem. | |
2859 | (lex_string): Add support for u'...', U'...', u"..." and U"...". | |
2860 | (_cpp_lex_direct): Idem. | |
2861 | * macro.c (_cpp_builtin_macro_text): Macro U changed to UC. | |
2862 | (stringify_arg): Support CPP_CHAR{16,32} and CPP_STRING{16,32}. | |
2863 | ||
deb984e6 PB |
2864 | 2008-04-18 Paolo Bonzini <bonzini@gnu.org> |
2865 | ||
2866 | PR bootstrap/35457 | |
2867 | * aclocal.m4: Regenerate. | |
2868 | * configure: Regenerate. | |
2869 | ||
bf048bea TT |
2870 | 2008-04-17 Tom Tromey <tromey@redhat.com> |
2871 | ||
2872 | PR libcpp/34866: | |
2873 | * errors.c (cpp_error): Don't reference a token before the start | |
2874 | of the current run. | |
2875 | ||
7f27b0f8 TT |
2876 | 2008-04-16 Tom Tromey <tromey@redhat.com> |
2877 | ||
2878 | * Makefile.in (TAGS_SOURCES): New variable. | |
2879 | (TAGS): New target. | |
2880 | ||
a1fcb9a1 KK |
2881 | 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org> |
2882 | ||
2883 | * configure.ac: (need_64bit_hwint): Need 64bit hwint for sh-*-* | |
2884 | and shbe-*-*. | |
2885 | * configure: Rebuilt. | |
2886 | ||
93d45d9e JM |
2887 | 2008-04-02 Joseph Myers <joseph@codesourcery.com> |
2888 | ||
2889 | * include/cpplib.h (struct cpp_callbacks): Add used_define, | |
2890 | used_undef and before_define. | |
2891 | (NODE_USED): Define. | |
2892 | * directives.c (do_define, do_undef, undefine_macros, do_ifdef, | |
2893 | do_ifndef, cpp_pop_definition): Handle new flag and use new | |
2894 | callbacks. | |
2895 | * expr.c (parse_defined): Handle new flag and use new callbacks. | |
2896 | * macro.c (enter_macro_context, _cpp_free_definition): Handle new | |
2897 | flag and use new callbacks. | |
2898 | ||
d4c32e1d JJ |
2899 | 2008-04-01 Jakub Jelinek <jakub@redhat.com> |
2900 | ||
2901 | PR pch/13675 | |
2902 | * files.c (struct _cpp_file): Remove pch field. | |
2903 | (pch_open_file): Don't set file->pch, just file->pchname. | |
2904 | (should_stack_file): After pfile->cb.read_pch call | |
2905 | free pchname and clear pchname, don't close file->fd. | |
2906 | Test file->pchname instead of file->pch. Don't close fd after cb. | |
2907 | (_cpp_stack_include): Test file->pchname instead of file->pch. | |
2908 | ||
161031e3 TT |
2909 | 2008-03-28 Tom Tromey <tromey@redhat.com> |
2910 | ||
2911 | * Makefile.in (POSTCOMPILE): New variable. | |
2912 | (.c.o): Use it. | |
2913 | ||
14ccf800 TT |
2914 | 2008-03-13 Tom Tromey <tromey@redhat.com> |
2915 | ||
2916 | PR libcpp/35322: | |
2917 | * directives.c (destringize_and_run): Set pfile->directive. | |
2918 | ||
830465c6 MM |
2919 | 2008-03-06 Markus Milleder <markus.milleder@generali.at> |
2920 | ||
2921 | PR preprocessor/35458 | |
2922 | * mkdeps.c (munge): Quote '#' with a '\'. | |
2923 | ||
d482a073 RW |
2924 | 2008-02-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
2925 | ||
2926 | PR preprocessor/35379 | |
2927 | * mkdeps.c (deps_write): Ensure the first target always appears | |
2928 | in the first column, without leading backslash newline. Avoid | |
2929 | some more extra whitespace. | |
2930 | ||
185a6cc1 TS |
2931 | 2008-02-25 Thiemo Seufer <ths@mips.com> |
2932 | ||
d482a073 | 2933 | * Makefile.in ($(srcdir)/config.in): Depend on configure.ac. |
185a6cc1 | 2934 | |
2bf41bf0 TT |
2935 | 2008-02-19 Tom Tromey <tromey@redhat.com> |
2936 | ||
2937 | * traditional.c (lex_identifier): Use CPP_HASHNODE. | |
2938 | * lex.c (lex_identifier): Use CPP_HASHNODE. | |
2939 | * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Wrap in | |
2940 | do-while. | |
2941 | * identifiers.c (alloc_node): Change return type. | |
2942 | (_cpp_init_hashtable): Don't cast 'alloc_node'. | |
2943 | (proxy_assertion_broken): New declaration. | |
2944 | (cpp_forall_identifiers): Move comment. | |
2945 | * line-map.c (linemap_add): Comment fix. | |
2946 | (linemap_line_start): Indentation fix. | |
2947 | ||
765d600a JJ |
2948 | 2008-01-25 Jakub Jelinek <jakub@redhat.com> |
2949 | ||
2950 | PR preprocessor/34692 | |
2951 | * macro.c (collect_args): Add pragma_buff argument. Push | |
2952 | CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather | |
2953 | than into arguments. Reset prevent_expansion and parsing_args | |
2954 | state at CPP_PRAGMA_EOL/CPP_EOF. | |
2955 | (funlike_invocation_p): Add pragma_buff argument, pass it through | |
2956 | to collect_args. | |
2957 | (enter_macro_context): Add result argument. Adjust | |
2958 | funlike_invocation_p caller. Emit all deferred pragma tokens | |
2959 | gathered during collect_args before the expansion, add a padding | |
2960 | token. Return 2 instead of 1 if any pragma tokens were prepended. | |
2961 | (cpp_get_token): If enter_macro_context returns 2, don't return | |
2962 | a padding token, instead cycle to grab CPP_PRAGMA token. | |
2963 | * directives.c (_cpp_handle_directive): If was_parsing_args | |
2964 | in deferred pragma, leave parsing_args and prevent_expansion as is. | |
2965 | ||
ec46053b TT |
2966 | 2008-01-22 Tom Tromey <tromey@redhat.com> |
2967 | ||
765d600a | 2968 | PR c++/34859 |
ec46053b TT |
2969 | * macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and |
2970 | __STDC_CONSTANT_MACROS. | |
2971 | ||
681c6ab0 FF |
2972 | 2008-01-07 Fred Fish <fnf@specifix.com> |
2973 | ||
765d600a | 2974 | PR preprocessor/30363 |
681c6ab0 | 2975 | * traditional.c (replace_args_and_push): Add local variable |
19a9ba64 | 2976 | cxtquote, calculate the replacement text size assuming a |
681c6ab0 FF |
2977 | worst case of every input character quoted with backslash, |
2978 | and properly handle output quoting of quote characters in | |
2979 | actual arguments used in function-like macros. | |
2980 | ||
33ae4837 TT |
2981 | 2008-01-03 Tom Tromey <tromey@redhat.com> |
2982 | ||
765d600a | 2983 | PR preprocessor/34602 |
33ae4837 TT |
2984 | * directives.c (do_line): Don't try to spell EOF token. |
2985 | (do_linemarker): Add comment. | |
2986 | ||
675575f5 DD |
2987 | 2007-12-11 DJ Delorie <dj@redhat.com> |
2988 | ||
2989 | * charset.c (convert_using_iconv): Close out any shift states, | |
2990 | returning to the initial state. | |
2991 | ||
97f6bd40 TT |
2992 | 2007-12-06 Tom Tromey <tromey@redhat.com> |
2993 | ||
765d600a | 2994 | PR c/29172 |
97f6bd40 TT |
2995 | * internal.h (struct cpp_reader) <file_hash_entries>: Changed |
2996 | type. | |
2997 | <file_hash_entries_allocated, file_hash_entries_used>: Removed. | |
2998 | * files.c (FILE_HASH_POOL_SIZE): New macro. | |
2999 | (struct file_hash_entry_pool): New. | |
3000 | (destroy_all_cpp_files): New function. | |
3001 | (allocate_file_hash_entries): Allocate a file_hash_entry_pool. | |
3002 | (new_file_hash_entry): Update. | |
3003 | (free_file_hash_entries): New function. | |
3004 | (_cpp_cleanup_files): Call free_file_hash_entries and | |
3005 | destroy_all_cpp_files. | |
3006 | (cpp_clear_file_cache): New function. | |
3007 | * include/cpplib.h (cpp_clear_file_cache): Declare. | |
3008 | ||
d56a25e1 TT |
3009 | 2007-12-03 Tom Tromey <tromey@redhat.com> |
3010 | ||
765d600a | 3011 | PR preprocessor/34288 |
d56a25e1 TT |
3012 | * configure.ac, config.in: Rebuilt. |
3013 | * configure.ac: Check for ssize_t. | |
3014 | ||
607f74e9 TT |
3015 | 2007-11-30 Tom Tromey <tromey@redhat.com> |
3016 | ||
765d600a | 3017 | PR preprocessor/32868 |
607f74e9 TT |
3018 | * macro.c (_cpp_create_definition): Special case |
3019 | __STDC_FORMAT_MACROS. | |
3020 | ||
b0f4807f MM |
3021 | 2007-11-16 Michael Matz <matz@suse.de> |
3022 | ||
3023 | * files.c (search_path_head): Fix check for absolute paths. | |
3024 | ||
f1e20710 TT |
3025 | 2007-11-11 Tom Tromey <tromey@redhat.com> |
3026 | ||
765d600a | 3027 | PR c++/17557 |
f1e20710 TT |
3028 | * include/cpplib.h (cpp_included_before): Declare. |
3029 | * files.c (struct file_hash_entry) <location>: New field. | |
3030 | (_cpp_find_file): Initialize new field. | |
3031 | (make_cpp_dir): Likewise. | |
3032 | (cpp_included_before): New function. | |
3033 | ||
f373b44d TT |
3034 | 2007-11-01 Tom Tromey <tromey@redhat.com> |
3035 | ||
765d600a | 3036 | PR preprocessor/30805 |
f373b44d TT |
3037 | * macro.c (paste_tokens): Handle padding token. |
3038 | (paste_tokens): Don't abort unless padding has PASTE_LEFT flag. | |
3039 | ||
5b9a40df TT |
3040 | 2007-10-31 Tom Tromey <tromey@redhat.com> |
3041 | ||
765d600a | 3042 | PR preprocessor/30786 |
5b9a40df TT |
3043 | * macro.c (builtin_macro): Return result of _cpp_do__Pragma. |
3044 | * directives.c (_cpp_do__Pragma): Return error status. | |
3045 | * internal.h (_cpp_do__Pragma): Update. | |
3046 | * directives.c (get__Pragma_string): Back up if EOF seen. | |
3047 | ||
5ffeb913 TT |
3048 | 2007-09-06 Tom Tromey <tromey@redhat.com> |
3049 | ||
3050 | * internal.h (struct cpp_reader) <invocation_location>: New | |
3051 | field. | |
3052 | (struct cpp_reader) <set_invocation_location>: Likewise. | |
3053 | * init.c (cpp_set_line_map): New function. | |
3054 | * line-map.c (linemap_add): Use linemap's allocator. | |
3055 | * include/line-map.h (GTY): Define. | |
3056 | (line_map_realloc): New typedef. | |
3057 | (struct line_map): Mark with GTY. | |
3058 | (struct line_maps): Likewise. | |
3059 | (struct line_maps) <maps>: Likewise. | |
3060 | (struct line_maps) <reallocator>: New field. | |
3061 | * include/symtab.h (GTY): Conditionally define. | |
3062 | * include/cpplib.h (cpp_set_line_map): Declare. | |
3063 | (cpp_get_token_with_location): Declare. | |
3064 | * macro.c (cpp_get_token): Set invocation_location on the reader. | |
3065 | (cpp_get_token_with_location): New function. | |
3066 | ||
ac6b1c67 CF |
3067 | 2007-08-30 Chao-ying Fu <fu@mips.com> |
3068 | ||
3069 | * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur, | |
3070 | ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk. | |
3071 | (cpp_classify_number): Support decimal fixed-point constants without | |
3072 | exponents. | |
3073 | Warn about fixed-point constants when -pedantic. | |
3074 | * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change | |
3075 | comments to support fixed-point values. | |
3076 | (CPP_N_FRACT, CPP_N_ACCUM): Define. | |
3077 | ||
cda5e672 TT |
3078 | 2007-08-18 Tom Tromey <tromey@redhat.com> |
3079 | ||
765d600a | 3080 | PR preprocessor/32974 |
cda5e672 TT |
3081 | * directives.c (parse_include): Don't check for EOL when |
3082 | processing #pragma dependency. | |
3083 | ||
ccfc4c91 OW |
3084 | 2007-07-30 Ollie Wild <aaw@google.com> |
3085 | ||
3086 | * directives-only.c: New file. | |
3087 | * internal.h (struct _cpp_dir_only_callbacks): New. | |
3088 | (_cpp_preprocess_dir_only): New function. | |
3089 | * directives.c (_cpp_handle_directive): Check directives_only before | |
3090 | disabling execution of indented directives. | |
3091 | * files.c (_cpp_stack_file): Add directives_only check. | |
3092 | * include/cpplib.h (struct cpp_options): Add directives_only. | |
3093 | (cpp_init_special_builtins): New function. | |
3094 | * init.c (cpp_init_special_builtins): New function. | |
3095 | (cpp_init_builtins): Move builtin_array initialization to | |
3096 | cpp_init_special_builtins. | |
3097 | (post_options): Check directives_only before setting | |
3098 | pfile->state.prevent_expansion = 1. | |
3099 | * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__ | |
3100 | is expanded inside a directive while -fdirectives-only is enabled. | |
3101 | * Makefile.in (libcpp_a_OBJS): Add directives-only.o. | |
3102 | (libcpp_a_SOURCES): Add directives-only.c. | |
3103 | ||
a206413a UB |
3104 | 2007-07-04 Uros Bizjak <ubizjak@gmail.com> |
3105 | ||
3106 | * traditional.c (_cpp_scan_out_logical_line): Initialize | |
3107 | fmacro.args, fmacro.node, fmacro.offset, fmacro.line and | |
3108 | fmacro.args to prevent 'may be used uninitialized' warning. | |
3109 | ||
c77cd3d1 UB |
3110 | 2007-07-03 Uros Bizjak <ubizjak@gmail.com> |
3111 | ||
3112 | * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q): | |
3113 | Add new constants. | |
3114 | * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q' | |
3115 | suffixes. Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q | |
3116 | for 'q' or 'Q' suffixes. | |
3117 | ||
66938a1d DS |
3118 | 2007-06-17 Danny Smith <dannysmith@users.sourceforge.net |
3119 | ||
e1311401 | 3120 | * files.c (open_file): Correct typo. |
66938a1d | 3121 | |
71995ede VP |
3122 | 2007-06-16 Vladimir Prus <vladimir@codesourcery.com> |
3123 | ||
e1311401 | 3124 | * files.c (open_file): Prevent the call |
71995ede VP |
3125 | for stat from overwriting errno. |
3126 | ||
84152c25 VP |
3127 | 2007-06-09 Vladimir Prus <vladimir@codesourcery.com> |
3128 | ||
e1311401 | 3129 | * files.c (open_file): Account for the |
19a9ba64 AM |
3130 | fact that on windows, opening a directory gives |
3131 | EACCES. | |
84152c25 | 3132 | |
f7fd775f JW |
3133 | 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de> |
3134 | ||
3135 | PR preprocessor/23479 | |
3136 | * expr.c (cpp_classify_number): Implement 0b-prefixed binary | |
3137 | integer constants. | |
3138 | (append_digit): Likewise. | |
3139 | * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed | |
3140 | binary integer constants. | |
3141 | ||
ed0e74e0 DK |
3142 | 2007-05-31 Dave Korn <dave.korn@artimi.com> |
3143 | ||
3144 | PR preprocessor/14331 | |
3145 | * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF. | |
3146 | ||
a702045a OW |
3147 | 2007-05-24 Ollie Wild <aaw@google.com> |
3148 | ||
3149 | * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. | |
3150 | * pch.c (cpp_write_pch_deps): Save __COUNTER__ state. | |
3151 | (cpp_write_pch_state): Save __COUNTER__ state. | |
3152 | (cpp_valid_state): Check valid __COUNTER__ state. | |
3153 | (cpp_read_state): Read new __COUNTER__ state. | |
3154 | * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator. | |
3155 | * init.c (builtin_array): Add __COUNTER__/BT_COUNTER. | |
3156 | * internal.h (struct cpp_reader): Add counter member. | |
3157 | ||
126e073b SM |
3158 | 2007-05-23 Simon Martin <simartin@users.sourceforge.net> |
3159 | ||
3160 | PR preprocessor/20077 | |
3161 | * macro.c (create_iso_definition): Fixed the method to determine | |
3162 | whether the token-pasting operator appears at the beginning or the end | |
3163 | of a macro. | |
3164 | ||
0b4cafec ILT |
3165 | 2007-05-21 Ian Lance Taylor <iant@google.com> |
3166 | ||
3167 | * internal.h (struct cpp_reader): Add new fields: | |
3168 | nonexistent_file_hash and nonexistent_file_ob. | |
3169 | * files.c: Include "obstack.h". | |
3170 | (find_file_in_dir): Before trying to open the file, look up the | |
3171 | path name in the hash table of nonexistent files. After failing | |
3172 | to open the file, add the path name to the hash table. | |
3173 | (_cpp_find_file): Cache the results of looking up the file name | |
3174 | starting with the quote and bracket chain heads, if we can. | |
3175 | (nonexistent_file_hash_eq): New static function. | |
3176 | (_cpp_init_files): Initialize pfile->nonexistent_file_hash and | |
3177 | pfile->nonexistent_file_ob. | |
3178 | (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and | |
3179 | pfile->nonexistent_file_ob. | |
3180 | ||
30e04921 JJ |
3181 | 2007-05-14 Janis Johnson <janis187@us.ibm.com> |
3182 | ||
19a9ba64 | 3183 | * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic. |
5a6bb57e | 3184 | |
30e04921 JJ |
3185 | PR c/31924 |
3186 | * expr.c (interpret_float_suffix): Check for invalid suffix. | |
3187 | ||
22a8a52d EC |
3188 | 2007-05-02 Eric Christopher <echristo@apple.com> |
3189 | ||
3190 | * expr.c (num_div_op): Don't overflow if the result is | |
3191 | zero. | |
3192 | ||
fca35e1b TT |
3193 | 2007-05-02 Tom Tromey <tromey@redhat.com> |
3194 | ||
765d600a | 3195 | PR preprocessor/28709 |
fca35e1b TT |
3196 | * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs. |
3197 | ||
4cd97075 MM |
3198 | 2007-03-30 Michael Meissner <michael.meissner@amd.com> |
3199 | ||
3200 | * directives.c (lex_macro_node_from_str): Fix alloca call to be | |
3201 | type correct. | |
3202 | ||
121de39f RH |
3203 | 2007-03-30 Richard Henderson <rth@redhat.com> |
3204 | ||
3205 | * directives.c (lex_macro_node_from_str): New. | |
3206 | (cpp_push_definition, cpp_pop_definition): New. | |
3207 | * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare. | |
3208 | ||
4fcb360b BM |
3209 | 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> |
3210 | ||
3211 | * Makefile.in: Add dummy install-pdf target. | |
3212 | ||
67e64439 TT |
3213 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
3214 | ||
765d600a | 3215 | PR preprocessor/30468 |
67e64439 TT |
3216 | * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped |
3217 | './'. | |
3218 | ||
ee380365 TT |
3219 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
3220 | ||
765d600a | 3221 | PR preprocessor/29966 |
ee380365 TT |
3222 | * macro.c (lex_expansion_token): Save and restore cpp_reader's |
3223 | cur_token. | |
3224 | (_cpp_create_definition): Don't restore cur_token here. | |
3225 | * lex.c (_cpp_lex_token): Added assertion. | |
3226 | ||
024abeb3 TT |
3227 | 2007-01-27 Tom Tromey <tromey@redhat.com> |
3228 | ||
3229 | * configure: Rebuilt. | |
3230 | ||
ee1c2a10 TT |
3231 | 2007-01-12 Tom Tromey <tromey@redhat.com> |
3232 | ||
765d600a | 3233 | PR preprocessor/28227 |
ee1c2a10 TT |
3234 | * directives.c (lex_macro_node): Added 'is_def_or_undef' |
3235 | argument. | |
3236 | (do_define): Update. | |
3237 | (do_undef): Update. | |
3238 | (do_ifdef): Update. | |
3239 | (do_ifndef): Update. | |
3240 | ||
67214c16 PB |
3241 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
3242 | ||
3243 | * configure: Regenerate. | |
3244 | ||
1aa6ca40 PB |
3245 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
3246 | ||
3247 | * configure: Regenerate. | |
3248 | ||
705e2d28 TT |
3249 | 2007-01-04 Tom Tromey <tromey@redhat.com> |
3250 | ||
765d600a | 3251 | PR preprocessor/28165 |
705e2d28 TT |
3252 | * internal.h (cpp_in_primary_file): New function. |
3253 | * directives.c (do_include_next): Use cpp_in_primary_file. | |
3254 | (do_pragma_once): Likewise. | |
3255 | (do_pragma_system_header): Likewise. | |
3256 | ||
7af45bd4 ILT |
3257 | 2006-12-29 Ian Lance Taylor <iant@google.com> |
3258 | ||
3259 | * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't | |
3260 | look backward at the end of the line unless we saw a backslash. | |
3261 | ||
9d30f270 JJ |
3262 | 2006-12-29 Jakub Jelinek <jakub@redhat.com> |
3263 | ||
3264 | PR preprocessor/29612 | |
3265 | * directives.c (do_linemarker): Set pfile->buffer->sysp always, not | |
3266 | only when new_sysp is non-zero. | |
3267 | ||
30b0edc0 TT |
3268 | 2006-12-28 Tom Tromey <tromey@redhat.com> |
3269 | ||
765d600a | 3270 | PR preprocessor/30001 |
30b0edc0 TT |
3271 | * charset.c (_cpp_convert_input): Check that to.len is greater |
3272 | than zero. | |
3273 | ||
85d9c13c TS |
3274 | 2006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> |
3275 | ||
3276 | * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU. | |
83cc06b2 | 3277 | * configure: Rebuilt. |
85d9c13c | 3278 | |
dfafdaa6 DG |
3279 | 2006-11-01 Douglas Gregor <doug.gregor@gmail.com> |
3280 | ||
3281 | * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X | |
3282 | for experimental C++0x mode. | |
3283 | * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has | |
3284 | adopted the preprocessor changes introduced in C99. | |
3285 | ||
0f45f0f5 JM |
3286 | 2006-10-29 Joseph Myers <joseph@codesourcery.com> |
3287 | ||
3288 | * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux* | |
3289 | depending on --enable-targets=all. | |
3290 | * configure: Regenerate. | |
3291 | ||
de000d22 JJ |
3292 | 2006-10-12 Jakub Jelinek <jakub@redhat.com> |
3293 | ||
3294 | PR preprocessor/28709 | |
3295 | * macro.c (paste_tokens): Do error reporting here, use BUF with the | |
3296 | spelled LHS token as opposed to spelling it again. | |
3297 | (paste_all_tokens): Don't report errors here, just break on failure. | |
3298 | ||
b5422ad7 BM |
3299 | 2006-10-10 Brooks Moses <bmoses@stanford.edu> |
3300 | ||
3301 | * Makefile.in: Added empty "pdf" target. | |
3302 | ||
aaf50ff2 GK |
3303 | 2006-09-22 Geoffrey Keating <geoffk@apple.com> |
3304 | ||
3305 | * configure.ac: Make need_64_bit_hwint case for x86-darwin | |
3306 | match exactly the glob in gcc/config.gcc. | |
3307 | * configure: Regenerate. | |
3308 | ||
c663e301 JM |
3309 | 2006-09-13 Joseph S. Myers <joseph@codesourcery.com> |
3310 | ||
3311 | PR c/28768 | |
3312 | PR preprocessor/14634 | |
3313 | * lex.c (lex_string): Pedwarn for unterminated literals. | |
3314 | ||
f7288899 EC |
3315 | 2006-09-08 Eric Christopher <echristo@apple.com> |
3316 | ||
3317 | * configure.ac: Add 64-bit HWI support for i?86-darwin. | |
3318 | ||
b52dbbf8 SE |
3319 | 2006-08-14 Steve Ellcey <sje@cup.hp.com> |
3320 | ||
3321 | PR c++/28288 | |
3322 | PR c++/14556 | |
3323 | * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens. | |
3324 | (CPP_LAST_EQ): Change. | |
3325 | (CPP_LAST_PUNCTUATOR): Change. | |
3326 | * expr.c (cpp_operator): Remove MIN and MAX. | |
3327 | (reduce): Remove CPP_MIN and CPP_MAX. | |
3328 | (num_binary_op): Ditto. | |
3329 | * lex.c (_cpp_lex_direct): Ditto. | |
3330 | (cpp_avoid_paste): Remove ? as legal symbol after > or <. | |
3331 | ||
1c90c6f9 JJ |
3332 | 2006-06-09 Jakub Jelinek <jakub@redhat.com> |
3333 | ||
3334 | PR preprocessor/27746 | |
3335 | * directives.c (do_pragma): Handle pragma with valid namespace | |
3336 | and invalid name coming from macro expansion. | |
3337 | * directives.c (destringize_and_run): Initialize next field in | |
3338 | context. | |
3339 | ||
3340 | PR c/27747 | |
3341 | PR c++/27748 | |
3342 | * directives.c (destringize_and_run): Set NO_EXPAND on the | |
3343 | tokens. | |
3344 | ||
3345 | * macro.c (_cpp_backup_tokens): Fix comment typo. | |
3346 | ||
5c3c3683 DJ |
3347 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
3348 | ||
3349 | * Makefile.in (CATALOGS): Add po/ prefix. | |
3350 | * configure: Regenerated. | |
3351 | ||
b2bd74bc CD |
3352 | 2006-05-23 Carlos O'Donell <carlos@codesourcery.com> |
3353 | ||
3354 | * Makefile.in: Add install-html target. Add install-html to .PHONY | |
3355 | ||
be8ac3e2 GZ |
3356 | 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> |
3357 | ||
3358 | * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. | |
3359 | * files.c (_cpp_get_file_stat): New function. | |
3360 | * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. | |
3361 | * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. | |
3362 | * internal.h (_cpp_get_file_stat): Prototype. | |
3363 | (struct cpp_buffer): Add timestamp. | |
3364 | ||
83900997 JJ |
3365 | 2006-01-23 Jakub Jelinek <jakub@redhat.com> |
3366 | ||
3367 | PR preprocessor/25717 | |
3368 | * init.c (cpp_init_builtins): If __STDC__ will not change value | |
3369 | between system headers and other sources, define it as a normal | |
3370 | macro rather than a builtin. | |
3371 | * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check | |
3372 | cpp_in_system_header condition. | |
3373 | ||
3374 | 2006-01-05 Paolo Bonzini <bonzini@gnu.org> | |
9220c30c PB |
3375 | |
3376 | * Makefile.in: Use -MMD instead of -MD. | |
3377 | ||
bc4071dd RH |
3378 | 2006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com> |
3379 | Richard Henderson <rth@redhat.com> | |
3380 | ||
3381 | Merge from gomp branch: | |
3382 | * directives.c (struct pragma_entry): Add is_deferred. Add ident | |
3383 | entry to value union. | |
3384 | (end_directive): Don't eat the line if in_deferred_pragma. | |
3385 | (run_directive): Remove pragma hacks. | |
3386 | (insert_pragma_entry): Remove. | |
3387 | (new_pragma_entry): New. | |
3388 | (register_pragma_1): Split out of register_pragma. Only handle | |
3389 | the lookup tree and return the new entry. | |
3390 | (cpp_register_pragma): Fill in the pragma entry here. | |
3391 | (cpp_register_deferred_pragma): New. | |
3392 | (register_pragma_internal): New. | |
3393 | (_cpp_init_internal_pragmas): Use register_pragma_internal. | |
3394 | (do_pragma): Allow pragma expansion after namespace. For deferred | |
3395 | pragmas, don't slurp the line into a string. | |
3396 | (destringize_and_run): Save tokens for deferred pragmas. | |
3397 | (cpp_handle_deferred_pragma): Remove. | |
3398 | * macro.c (builtin_macro): Remove pragma token hack. | |
3399 | (_cpp_push_token_context): Rename from push_token_context and export. | |
3400 | * internal.h (struct lexer_state): Add pragma_allow_expansion. | |
3401 | (_cpp_push_token_context): Declare. | |
3402 | * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return | |
3403 | a token. Update the line number correctly if so. | |
3404 | (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens. | |
3405 | (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas. | |
3406 | * include/cpplib.h (PRAGMA_EOL): New. | |
3407 | (CPP_TOKEN_FLD_PRAGMA): New. | |
3408 | (struct cpp_token): Add val.pragma. | |
3409 | (struct cpp_options): Remove defer_pragmas. | |
3410 | (cpp_handle_deferred_pragma): Remove. | |
3411 | (cpp_register_deferred_pragma): Declare. | |
3412 | ||
d09e893f JJ |
3413 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
3414 | ||
3415 | PR c++/25294 | |
3416 | * directives.c (do_pragma): If pragma line ends with multi-line | |
3417 | block comment, end the saved deferred pragma string before that | |
3418 | comment. Handle embedded '\0' chars on the pragma line. | |
3419 | ||
ab84748a VR |
3420 | 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
3421 | ||
3422 | PR c++/23333 | |
3423 | * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure. | |
3424 | ||
ad6ed77e JG |
3425 | 2005-12-07 Jon Grimm <jgrimm2@us.ibm.com> |
3426 | Ben Elliston <bje@au.ibm.com> | |
3427 | ||
3428 | * include/cpplib.h (CPP_N_DFLOAT): New. | |
3429 | * expr.c (interpret_float_suffix): Identify df, dd, and dl | |
3430 | suffixes as decimal floating point constants. | |
3431 | (cpp_classify_number): Disallow hexadecimal DFP constants. | |
3432 | ||
ba096620 | 3433 | 2005-11-14 Gerald Pfeifer <gerald@pfeifer.com> |
bc4071dd | 3434 | Ian Lance Taylor <ian@airs.com> |
ba096620 GP |
3435 | |
3436 | * include/cpplib.h (struct cpp_callbacks): Annotate error with | |
3437 | ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0). | |
3438 | ||
456b8ce5 UB |
3439 | 2005-11-09 Per Bothner <per@bothner.com> |
3440 | Uros Bizjak <uros@kss-loka.si> | |
f7288899 | 3441 | |
456b8ce5 UB |
3442 | PR c/24101 |
3443 | * init.c (read_original_filename): Temporarily set | |
3444 | state.in_directive before calling _cpp_lex_direct for | |
3445 | CPP_HASH tokens. | |
3446 | ||
5571f74f JW |
3447 | 2005-11-03 James E Wilson <wilson@specifix.com> |
3448 | ||
3449 | PR preprocessor/24202 | |
3450 | * files.c (_cpp_pop_file_buffer): Set buffer_valid to false. | |
3451 | ||
a63607ed JM |
3452 | 2005-11-04 Joseph S. Myers <joseph@codesourcery.com> |
3453 | ||
3454 | * include/cpplib.h (struct cpp_callbacks): Make error take | |
3455 | va_list* parameter. | |
3456 | * errors.c (cpp_error): Update call to callback. | |
3457 | ||
651ed942 AP |
3458 | 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> |
3459 | ||
3460 | PR preprocessor/22042 | |
3461 | * macro.c (_cpp_builtin_macro_text): Lower the needed max | |
3462 | buffer size. | |
3463 | (cpp_quote_string): Don't octalify non printable | |
3464 | charactors. | |
3465 | ||
178b58b5 JM |
3466 | 2005-11-03 Joseph S. Myers <joseph@codesourcery.com> |
3467 | ||
3468 | PR c++/17964 | |
3469 | * include/cpplib.h (struct cpp_options): Add client_diagnostic. | |
3470 | (struct cpp_callbacks): Add error. | |
3471 | * errors.c (cpp_error): If client_diagnostic, use error callback. | |
3472 | * charset.c (convert_escape): Don't use %03o in diagnostic. | |
3473 | ||
3ee5ed11 | 3474 | 2005-10-21 James E Wilson <wilson@specifix.com> |
6568f34b JW |
3475 | |
3476 | PR preprocessor/15220 | |
3477 | * files.c (_cpp_find_file): New parameter angle_brackets. Fix all | |
3478 | callers. Pass to open_file_failed. | |
3479 | (open_file_failed): New parameter angle_brackets. Fix all callers. | |
3480 | Use in print_dep assignment. | |
3481 | * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file. | |
3482 | * internal.h (_cpp_find_file): Add new parm to declaration. | |
f7288899 | 3483 | |
077fc835 KH |
3484 | 2005-10-08 Kazu Hirata <kazu@codesourcery.com> |
3485 | ||
3486 | * configure.ac: Require 64-bit int for arm*-*-*eabi*. | |
3487 | * configure: Regenerate. | |
3488 | ||
cbc43ae0 ILT |
3489 | 2005-10-04 Ian Lance Taylor <ian@airs.com> |
3490 | ||
3491 | PR preprocessor/13726 | |
3492 | * directives.c (check_eol_return_comments): New static function. | |
3493 | (parse_include): Add buf parameter. Change all callers. | |
3494 | (do_include_common): If not discard comments, turn on | |
3495 | save_comments. Pass collected comments to include callback. | |
3496 | * include/cpplib.h (struct cpp_callbacks): Add new parameter to | |
3497 | include callback: cpp_token list. | |
3498 | ||
af15a2fe JM |
3499 | 2005-09-20 Joseph S. Myers <joseph@codesourcery.com> |
3500 | ||
3501 | * include/cpplib.h (struct cpp_options): Add extended_identifiers. | |
3502 | * init.c (struct lang_flags, lang_defaults): Add | |
3503 | extended_identifiers. | |
3504 | (cpp_set_lang): Use it. | |
3505 | * lex.c (forms_identifier_p): Check extended_identifiers. | |
3506 | ||
f5eab47e JJ |
3507 | 2005-08-30 Jakub Jelinek <jakub@redhat.com> |
3508 | ||
3509 | PR preprocessor/20348 | |
3510 | PR preprocessor/20356 | |
3511 | * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and | |
3512 | 2004-06-05 changes. | |
3513 | ||
467129e6 KG |
3514 | 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
3515 | ||
3516 | * configure.ac (ACX_PROG_CC_WARNING_OPTS): add | |
3517 | -Wmissing-format-attribute. | |
3518 | ||
3519 | * configure: Regenerate. | |
3520 | ||
200031d1 KC |
3521 | 2005-06-29 Kelley Cook <kcook@gcc.gnu.org> |
3522 | ||
3523 | * all files: Update FSF address in copyright headers. | |
3524 | * makeucnid.c (write_copyright): Update outputted FSF address. | |
3525 | ||
f610dd5f ZW |
3526 | 2005-06-13 Zack Weinberg <zack@codesourcery.com> |
3527 | ||
3528 | * configure.ac: Invoke ZW_CREATE_DEPDIR and | |
3529 | ZW_PROG_COMPILER_DEPENDENCIES. | |
3530 | * aclocal.m4, configure: Regenerate. | |
3531 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE): | |
3532 | New variables. | |
3533 | (distclean): Clean up $(DEPDIR) and its contents. | |
3534 | (.c.o): Use $(COMPILE). | |
3535 | Include $(DEPDIR)/*.Po for most object->header dependencies. | |
3536 | ||
c3f829c1 GDR |
3537 | 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net> |
3538 | ||
3539 | * configure.ac: Check declarations for asprintf and vasprintf. | |
3540 | * config.in: Regenerate. | |
3541 | * configure: Likewise. | |
3542 | ||
3543 | * charset.c (conversion_loop): Use XRESIZEVEC. | |
3544 | (convert_no_conversion): Likewise. | |
3545 | (convert_using_iconv): Likewise. | |
3546 | (init_iconv_desc): Cast return value of alloca. | |
3547 | (cpp_host_to_exec_charset): Use XNEWVEC. | |
3548 | (emit_numeric_escape): Use XRESIZEVEC. | |
3549 | (cpp_interpret_string): Use XNEWVEC. | |
3550 | (cpp_interpret_string): Use XRESIZEVEC. | |
3551 | (_cpp_interpret_identifier): Cast return value of alloca. | |
3552 | (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC. | |
3553 | * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC. | |
3554 | (parse_include): Use XNEWVEC. | |
3555 | (insert_pragma_entry): Rename local variable "new" to | |
f610dd5f | 3556 | "new_entry". |
c3f829c1 GDR |
3557 | (save_registered_pragmas): Cast return value of xmemdup. |
3558 | (destringize_and_run): Same for alloca. | |
3559 | (parse_assertion): Likewise. | |
3560 | (do_assert): Cast allocated storage to proper type. | |
3561 | (cpp_define): Likewise. | |
3562 | (_cpp_define_builtin): Likewise. | |
3563 | (cpp_undef): Likewise. | |
3564 | (handle_assertion): Likewise. | |
3565 | (cpp_push_buffer): Rename local variable "new" to "new_buffer". | |
3566 | * expr.c (CPP_UPLUS): Cast value to type cpp_ttype. | |
3567 | (CPP_UMINUS): Likewise. | |
3568 | (struct cpp_operator): Rename from struct operator. | |
3569 | (_cpp_expand_op_stack): Use XRESIZEVEC. | |
3570 | * files.c (pch_open_file): Use XNEWVEC. | |
3571 | (pch_open_file): Use XRESIZEVEC. | |
3572 | (read_file_guts): Use XNEWVEC and XRESIZEVEC. | |
3573 | (dir_name_of_file): Use XNEWVEC. | |
3574 | (make_cpp_file): Use XCNEW. | |
3575 | (make_cpp_dir): Likewise. | |
3576 | (allocate_file_hash_entries): USE XNEWVEC. | |
3577 | (cpp_included): Cast return value of htab_find_with_hash. | |
3578 | (append_file_to_dir): Use XNEWVEC. | |
3579 | (read_filename_string): Likewise. Use XRESIZEVEC too. | |
3580 | (read_name_map): Cast return value of alloca. Use XRESIZEVEC. | |
3581 | (remap_filename): Use XNEWVEC. | |
3582 | (struct pchf_entry): Move definition out of struct pchf_data. | |
3583 | (_cpp_save_file_entries): Use XCNEWVAR. | |
3584 | (_cpp_read_file_entries): Use XNEWVAR. | |
3585 | * identifiers.c (alloc_node): Use XOBNEW. | |
3586 | * init.c (cpp_create_reader): Use XCNEW. | |
3587 | (cpp_init_builtins): Cast of b->value to enum builtin_type. | |
3588 | (read_original_directory): Cast return value of alloca. | |
3589 | * lex.c (add_line_note): Use XRESIZEVEC. | |
3590 | (warn_about_normalization): Use XNEWVEC. | |
3591 | (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype). | |
3592 | (new_buff): Use XNEWVEC. | |
3593 | * line-map.c (linemap_add): Use XRESIZEVEC. | |
3594 | * macro.c (builtin_macro): Cast return value of alloca. | |
3595 | (paste_tokens): Likewise. | |
3596 | (expand_arg): Use XNEWVEC and XRESIZEVEC. | |
3597 | (_cpp_save_parameter): Use XRESIZEVEC. | |
3598 | (create_iso_definition): Cast allocated storage to proper type. | |
3599 | (_cpp_create_definition): Likewise. | |
3600 | (cpp_macro_definition): Use XRESIZEVEC. | |
3601 | * makedepend.c (add_clm): Use XNEW. | |
3602 | (add_dir): Likewise. | |
3603 | * mkdeps.c (munge): Use XNEWVEC. | |
3604 | (deps_init): Use XCNEW. | |
3605 | (deps_add_target): Use XRESIZEVEC. | |
3606 | (deps_add_default_target): Cast return value of alloca. | |
3607 | (deps_add_dep): Use XRESIZEVEC. | |
3608 | (deps_add_vpath): Likewise. Use XNEWVEC too. | |
3609 | (deps_restore): Likewise. | |
3610 | * pch.c (save_idents): Use XNEW and XNEWVEC. | |
3611 | (cpp_save_state): Use XNEW. | |
3612 | (count_defs): Cast return value of htab_find. | |
3613 | (write_defs): Likewise. | |
3614 | (cpp_write_pch_deps): Use XNEWVEC. | |
3615 | (collect_ht_nodes): Use XRESIZEVEC. | |
3616 | (cpp_valid_state): Use XNEWVEC. | |
3617 | (save_macros): Use XRESIZEVEC. Cast return value of xmemdup. | |
3618 | * symtab.c (ht_create): Use XCNEW. | |
3619 | (ht_lookup_with_hash): Cast return value of obstack_copy0. | |
3620 | (ht_expand): Use XCNEWVEC. | |
3621 | * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus. | |
3622 | (bool): Do not define if __cplusplus. | |
3623 | ||
1ed17cd5 ZW |
3624 | 2005-05-12 Zack Weinberg <zack@codesourcery.com> |
3625 | ||
3626 | * directives.c (#sccs table entry): Mark IN_I, consistent with #ident. | |
3627 | (do_sccs): Delete function definition, #define to do_ident. | |
3628 | (do_ident): Don't hardwire directive name. | |
3629 | ||
5a8c20ce RK |
3630 | 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp> |
3631 | ||
3632 | PR bootstrap/21230 | |
3633 | * configure: Regenerate. | |
3634 | ||
473c5bc9 AP |
3635 | 2005-04-27 Andris Pavenis <pavenis@latnet.lv> |
3636 | ||
3637 | * files.c: Include io.h for DJGPP to get prototype of setmode. | |
3638 | ||
c1fc5047 PB |
3639 | 2005-04-19 Per Bothner <per@bothner.com> |
3640 | ||
3641 | PR preprocessor/20907 | |
3642 | * line-map.c (linemap_line_start): Fix bug when we need to increse | |
3643 | column_bits but can re-use the current line_map. | |
3644 | ||
042630ad KG |
3645 | 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
3646 | ||
3647 | * system.h (fopen, fdopen, freopen): Define these to the unlocked | |
3648 | libiberty functions. | |
3649 | ||
0d667716 KG |
3650 | 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
3651 | ||
3652 | * configure.ac (libcpp_UNLOCKED_FUNCS): New. | |
3653 | (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS. | |
3654 | * system.h (putchar, getc, getchar, clearerr, feof, fileno, | |
3655 | fflush, fgetc, fgets, ferror, fread): Redefine to the associated | |
3656 | _unlocked function. | |
3657 | (fwrite_unlocked): Fix prototype. | |
1ed17cd5 | 3658 | |
0d667716 KG |
3659 | * configure, config.in: Regenerate. |
3660 | ||
cae064e7 JJ |
3661 | 2005-04-05 Jakub Jelinek <jakub@redhat.com> |
3662 | ||
3663 | PR preprocessor/19475 | |
3664 | * macro.c (create_iso_definition): For < ISO C99, don't | |
3665 | pedwarn if there is no whitespace between macro name and its | |
3666 | replacement, but the replacement starts with a basic character | |
3667 | set character. | |
3668 | ||
cbada204 AJ |
3669 | 2005-03-28 Andreas Jaeger <aj@suse.de> |
3670 | ||
3671 | * lex.c (warn_about_normalization): Cast field width to int to | |
3672 | avoid warning. | |
3673 | ||
f42eccdb JM |
3674 | 2005-03-19 Joseph S. Myers <joseph@codesourcery.com> |
3675 | ||
3676 | * configure.ac: Consistently use solaris2.1[0-9]* instead of | |
3677 | solaris2.1[0-9]. | |
3678 | * configure: Regenerate. | |
3679 | ||
c79e602b GK |
3680 | 2005-03-15 Geoffrey Keating <geoffk@apple.com> |
3681 | ||
3682 | * charset.c (_cpp_valid_ucn): In identifiers, reject a partial | |
3683 | UCN rather than printing an error. | |
3684 | ||
50668cf6 GK |
3685 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> |
3686 | ||
6baba9bb GK |
3687 | * lex.c (forms_identifier_p): Disable UCNs in C89 mode. |
3688 | ||
3689 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> | |
1ed17cd5 | 3690 | |
50668cf6 GK |
3691 | * init.c (cpp_create_reader): Default warn_normalize to normalized_C. |
3692 | * charset.c: Update for new format of ucnid.h. | |
3693 | (ucn_valid_in_identifier): Update for new format of ucnid.h. | |
3694 | Add NST parameter, and update it; update callers. | |
3695 | (cpp_valid_ucn): Add NST parameter, update callers. Replace abort | |
3696 | with cpp_error. | |
3697 | (convert_ucn): Pass normalize_state to cpp_valid_ucn. | |
3698 | * internal.h (struct normalize_state): New. | |
3699 | (INITIAL_NORMALIZE_STATE): New. | |
3700 | (NORMALIZE_STATE_RESULT): New. | |
3701 | (NORMALIZE_STATE_UPDATE_IDNUM): New. | |
3702 | (_cpp_valid_ucn): New. | |
3703 | * lex.c (warn_about_normalization): New. | |
3704 | (forms_identifier_p): Add normalize_state parameter, update callers. | |
3705 | (lex_identifier): Add normalize_state parameter, update callers. Keep | |
3706 | the state current. | |
3707 | (lex_number): Likewise. | |
3708 | (_cpp_lex_direct): Pass normalize_state to subroutines. Check | |
3709 | it with warn_about_normalization. | |
3710 | * makeucnid.c: New. | |
3711 | * ucnid.h: Replace. | |
3712 | * ucnid.pl: Remove. | |
3713 | * ucnid.tab: Make appropriate for input to makeucnid.c. Remove | |
3714 | comments about obsolete version of C++. | |
3715 | * include/cpplib.h (enum cpp_normalize_level): New. | |
3716 | (struct cpp_options): Add warn_normalize field. | |
3717 | ||
47e20491 GK |
3718 | 2005-03-11 Geoffrey Keating <geoffk@apple.com> |
3719 | ||
3720 | * directives.c (glue_header_name): Update call to cpp_spell_token. | |
3721 | * internal.h (_cpp_interpret_identifier): New. | |
3722 | * charset.c (_cpp_interpret_identifier): New. | |
3723 | (_cpp_valid_ucn): Allow UCN version of '$'. | |
3724 | * lex.c (lex_identifier): Add extra parameter to indicate if initial | |
3725 | character was '$' or '\'. Support identifiers with UCNs. | |
3726 | (forms_identifier_p): Allow UCNs. | |
3727 | (_cpp_lex_direct): Pass extra parameter to lex_identifier. | |
3728 | (utf8_to_ucn): New. | |
3729 | (cpp_spell_token): Add FORSTRING parameter. Use it. | |
3730 | (cpp_token_as_text): Update call to cpp_spell_token. | |
3731 | (cpp_output_token): Write UCNs back out. | |
3732 | (stringify_arg): Update call to cpp_spell_token. | |
3733 | (paste_tokens): Likewise. | |
3734 | (cpp_macro_definition): Likewise. | |
3735 | * macro.c (stringify_arg): Likewise. | |
3736 | (paste_tokens): Likewise. | |
3737 | (cpp_macro_definition): Likewise. | |
3738 | * include/cpplib.h: Add parameter to cpp_spell_token. | |
3739 | ||
73096711 JJ |
3740 | 2005-03-04 Jakub Jelinek <jakub@redhat.com> |
3741 | ||
3742 | PR bootstrap/20282 | |
3743 | PR bootstrap/20305 | |
3744 | * macro.c (replace_args, cpp_get_token): Copy whole | |
3745 | cpp_token_u instead of just cpp_string field from it. | |
3746 | ||
2203a881 DP |
3747 | 2005-02-28 Devang Patel <dpatel@apple.com> |
3748 | ||
3749 | * directives.c (do_line): Save sysp early before line table is | |
3750 | realloc'ed. | |
1ed17cd5 | 3751 | |
c5ff069d ZW |
3752 | 2005-02-20 Zack Weinberg <zack@codesourcery.com> |
3753 | ||
3754 | PR 18785 | |
3755 | * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. | |
3756 | (cpp_host_to_exec_charset): New function. | |
3757 | * include/cpplib.h: Declare cpp_host_to_exec_charset. | |
3758 | ||
04c90eea DP |
3759 | 2005-02-19 Devang Patel <dpatel@apple.com> |
3760 | ||
3761 | * charset.c (_cpp_convert_input): Check '\r' before inserting | |
3762 | '\n' at the end. | |
c5ff069d | 3763 | |
6da55c00 EC |
3764 | 2005-02-15 Eric Christopher <echristo@redhat.com> |
3765 | ||
3766 | PR preprocessor/19077 | |
3767 | * macro.c (cpp_macro_definition): Move handling of whitespace | |
3768 | to PREV_WHITE conditional. Remove overloading of len | |
3769 | variable. | |
3770 | ||
31c3e631 KH |
3771 | 2005-02-14 Kazu Hirata <kazu@cs.umass.edu> |
3772 | ||
3773 | * directives.c, files.c, init.c, internal.h, macro.c, pch.c, | |
3774 | traditional.c: Update copyright. | |
3775 | ||
be0f1e54 PB |
3776 | 2005-02-14 Paolo Bonzini <bonzini@gnu.org> |
3777 | ||
3778 | PR bootstrap/19818 | |
3779 | * configure.ac: Check for declaration of basename and getopt. | |
3780 | * config.in: Regenerate. | |
3781 | * configure: Regenerate. | |
3782 | * internal.h (ustrcspn): New. | |
3783 | * macro.c (create_iso_definition): Fix allocation of memory. | |
3784 | (padding_token): Add cast to remove const-ness. | |
3785 | * pch.c (cpp_read_state): Use ustrcspn. | |
3786 | ||
ecddfb39 MS |
3787 | 2005-02-08 Mike Stump <mrs@apple.com> |
3788 | ||
3789 | * files.c (pchf_adder): Remove. | |
3790 | (struct pchf_adder_info): Likewise. | |
3791 | (_cpp_save_file_entries): Write out all files so that #import works. | |
3792 | ||
9fcdd891 JM |
3793 | 2005-01-23 Joseph S. Myers <joseph@codesourcery.com> |
3794 | ||
3795 | * configure: Regenerate. | |
3796 | ||
ecfd72e7 TS |
3797 | 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> |
3798 | ||
3799 | * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. | |
3800 | ||
6c25a4f7 | 3801 | * include/cpplib.h: Also update copyright years. |
c5ff069d | 3802 | |
942926ad GK |
3803 | 2005-01-03 Geoffrey Keating <geoffk@apple.com> |
3804 | ||
3805 | * files.c (_cpp_find_file): Add files found by search_path_exhausted | |
3806 | to the list of all files. | |
3807 | ||
a2566ae9 GDR |
3808 | 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net> |
3809 | ||
3810 | * internal.h: Update references to Cpp lib filenames. | |
3811 | * directives.c: Likewise. | |
3812 | * init.c: Likewise. | |
3813 | * macro.c: Likewise. | |
3814 | * traditional.c: Likewise. | |
3815 | ||
1b449375 EB |
3816 | 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr> |
3817 | ||
3818 | PR preprocessor/15167 | |
3819 | * files.c (destroy_cpp_file): New function. | |
3820 | (should_stack_file): Make a new file if the | |
3821 | compared file is still stacked. | |
3822 | ||
28303828 NN |
3823 | 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> |
3824 | ||
c5ff069d | 3825 | PR preprocessor/17610 |
28303828 NN |
3826 | * directives.c (do_include_common): Error out if an empty filename |
3827 | is given for #include (or #include_next or #import). | |
3828 | ||
c812785a RS |
3829 | 2004-11-27 Roger Sayle <roger@eyesopen.com> |
3830 | Zack Weinberg <zack@codesourcery.com> | |
3831 | ||
3832 | * internal.h: Replace all uses of uchar with unsigned char. | |
3833 | * include/cpp-id-data.h: Likewise. Guard typedef of uchar | |
3834 | with !IN_GCC, so uchar is only defined whilst building libcpp. | |
3835 | ||
f91eaa01 KC |
3836 | 2004-11-24 Kelley Cook <kcook@gcc.gnu.org> |
3837 | ||
3838 | * aclocal.m4: Regenerate. | |
3839 | ||
f78ce0c2 RS |
3840 | 2004-11-24 Roger Sayle <roger@eyesopen.com> |
3841 | ||
3842 | PR preprocessor/15824 | |
3843 | * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> | |
3844 | directly, instead of the non-existant "system.h" and "ansidecl.h". | |
3845 | * configure: Regenerate. | |
3846 | ||
b5b3e36a | 3847 | 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com> |
c5ff069d | 3848 | Joseph Myers <joseph@codesourcery.com> |
b5b3e36a DJ |
3849 | |
3850 | * internal.h (struct lexer_state): Add in_deferred_pragma. | |
3851 | * directives.c (struct pragma_entry): Add allow_expansion. | |
3852 | (insert_pragma_entry): Take allow_expansion flag. | |
3853 | (register_pragma): Likewise. | |
3854 | (cpp_register_pragma): Likewise. | |
3855 | (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. | |
3856 | (do_pragma): Honor allow_expansion. | |
3857 | (cpp_handle_deferred_pragma): Set in_deferred_pragma. | |
3858 | * include/cpplib.h (cpp_register_pragma): Update prototype. | |
3859 | ||
a8e68029 | 3860 | 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> |
c5ff069d | 3861 | Mark Mitchell <mark@codesourcery.com> |
a8e68029 DJ |
3862 | |
3863 | * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set | |
3864 | need_64bit_hwint=yes. | |
3865 | * configure: Regenerate. | |
3866 | ||
50f47ee0 JM |
3867 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
3868 | ||
3869 | * Makefile.in ($(PACKAGE).pot): New rule. Depend on | |
3870 | po/$(PACKAGE).pot. | |
3871 | (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword | |
3872 | arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. | |
3873 | Remove local srcdir path from generated file. | |
3874 | ||
968e08d6 | 3875 | 2004-11-04 Zack Weinberg <zack@codesourcery.com> |
c5ff069d | 3876 | Gerald Pfeifer <gerald@pfeifer.com> |
968e08d6 ZW |
3877 | |
3878 | * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H | |
3879 | as well. | |
3880 | ||
3da3d587 ZW |
3881 | 2004-10-27 Zack Weinberg <zack@codesourcery.com> |
3882 | ||
3883 | PR 18075 | |
3884 | * directives.c (do_pragma): Do not defer pragmas which are unknown. | |
3885 | (cpp_handle_deferred_pragma): Add cast to silence warning. | |
3886 | ||
ac24fc25 JM |
3887 | 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk> |
3888 | ||
3889 | * errors.c (_cpp_begin_message): Print "error: " for errors. | |
3890 | ||
7731405b AJ |
3891 | 2004-10-10 Andreas Jaeger <aj@suse.de> |
3892 | ||
3893 | * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. | |
3894 | * Makefile.in (makedepend.o): Add dependency on mkdeps.h. | |
3895 | ||
646544e3 AP |
3896 | 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> |
3897 | ||
3898 | * pch.c (cpp_write_pch_state): Remove variable z as it is not | |
3899 | used. | |
3900 | (cpp_read_state): Remove unused variables, m, d and mac_count. | |
3901 | ||
67a74146 PB |
3902 | 2004-09-29 Per Bothner <per@bothner.com> |
3903 | ||
3904 | * directives.c (cpp_handle_deferred_pragma): Save, clear and restore | |
3905 | cb.line_change. Otherwise do_pragma will call the line_change | |
3906 | call-back with a meaningless line number. | |
3907 | ||
018a4785 ZW |
3908 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
3909 | ||
3910 | * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to | |
3911 | programs cluster. Use ACX_PROG_CC_WARNING_OPTS, | |
3912 | ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. | |
3913 | * aclocal.m4, configure: Regenerate. | |
3914 | * init.c: Include localedir.h. | |
3915 | * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. | |
3916 | (DEFS): Delete. | |
3917 | (.c.o): Use $(ALL_CFLAGS). | |
3918 | (localedir.h, localedir.hs): New rules. | |
3919 | (clean): Use rm -rf to remove directories. | |
3920 | (distclean): Also delete localedir.h and localedir.hs. | |
3921 | (init.o): Update dependencies. | |
3922 | ||
88fa57d7 KC |
3923 | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> |
3924 | ||
3925 | * Makefile.in (aclocal.m4): Update dependencies. | |
3926 | * configure.ac (AC_CONFIG_MACRO_DIR): New. | |
3927 | * aclocal.m4, configure: Regenerate. | |
3928 | ||
8f8e9aa5 ZW |
3929 | 2004-09-17 Zack Weinberg <zack@codesourcery.com> |
3930 | ||
a29f62d9 ZW |
3931 | * charset.c (_cpp_destroy_iconv, emit_numeric_escape) |
3932 | (_cpp_convert_input, _cpp_default_encoding): Add comments. | |
3933 | Some other comments in this file also tweaked. | |
3934 | ||
8f8e9aa5 ZW |
3935 | * directives.c (do_pragma): Save current buffer position |
3936 | before lexing the pragma keywords; don't call | |
3937 | _cpp_backup_tokens in the defer_pragmas case. | |
3938 | ||
a2981930 PB |
3939 | 2004-09-15 Per Bothner <per@bothner.com> |
3940 | ||
3941 | * include/line-map.h (line_map_start): Add parameter names so | |
3942 | preceding comment makes sense. | |
3943 | (linemap_add): Remove from comment mention of non-existing parameter. | |
3944 | ||
21b11495 ZW |
3945 | 2004-09-09 Matt Austern <austern@apple.com> |
3946 | Zack Weinberg <zack@codesourcery.com> | |
3947 | ||
3948 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
3949 | prefixes throughout. Add entry for PRAGMA. Remove | |
3950 | unnecessary "= 0" from EQ. | |
3951 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
3952 | prefixes, via token-paste. | |
3953 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
3954 | Change from #defines to additional cpp_ttype enumerators. | |
3955 | (struct cpp_options): Add defer_pragmas. | |
3956 | (cpp_handle_deferred_pragma): Prototype new interface. | |
3957 | ||
3958 | * internal.h (struct cpp_reader): Add directive_result. | |
3959 | * directives.c (struct pragma_entry): Add is_internal field; | |
3960 | give boolean fields type bool. | |
3961 | (start_directive): Initialize pfile->directive_result.type. | |
3962 | (_cpp_do__Pragma): Likewise. | |
3963 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
3964 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
3965 | from it. | |
3966 | (register_pragma): New static function, bulk of former | |
3967 | cpp_register_pragma here; add 'internal' argument, pass along | |
3968 | to insert_pragma_entry. | |
3969 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
3970 | always passes false for 'internal' argument. | |
3971 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
3972 | true for 'internal'. | |
3973 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
3974 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
3975 | token instead of executing the pragma. | |
3976 | (cpp_handle_deferred_pragma): New interface. | |
3977 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
3978 | match changes to cpplib.h. | |
3979 | (_cpp_lex_token): Check for a directive-result token and | |
3980 | return it if present. | |
3981 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
3982 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
3983 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
3984 | ||
0fd9e8dd SB |
3985 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
3986 | ||
3987 | PR preprocessor/14699 | |
3988 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
3989 | from size_t to double. | |
3990 | ||
39b8ce7f AS |
3991 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
3992 | Andreas Jaeger <aj@suse.de> | |
3993 | ||
3994 | * configure.ac: Set PACKAGE correctly. | |
3995 | * configure: Regenerated. | |
3996 | ||
5d1f4b27 PB |
3997 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
3998 | ||
3999 | * Makefile.in: Add back top_builddir. | |
4000 | ||
078e3ffe PB |
4001 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
4002 | ||
4003 | * configure.ac: Replace Automake macro invocations | |
4004 | with manual Autoconf checks and substitutions. | |
4005 | * configure: Regenerate. | |
4006 | * aclocal.m4: Regenerate. | |
4007 | * config.in: Regenerate. | |
4008 | * Makefile.am: Removed. | |
4009 | * Makefile.in: Heavy simplification and reorganization. | |
4010 | ||
b3f8d95d MM |
4011 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
4012 | ||
4013 | * configure.ac (arm*-*-eabi*): New target. | |
4014 | (arm*-*-symbianelf*): Likewise. | |
4015 | * configure: Regenerated. | |
4016 | ||
72bb2c39 BI |
4017 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
4018 | ||
4019 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
4020 | * directives.c: Use XNEW-family macros from libiberty. | |
4021 | * lex.c: Likewise. | |
4022 | * macro.c: Likewise. | |
4023 | * cpplib.h (cpp_deps_style): Export enum with name. | |
4024 | ||
21b11495 | 4025 | 2004-07-23 Matthias Klose <doko@debian.org> |
72bb2c39 | 4026 | |
21b11495 | 4027 | * init.c (init_library): Use PACKAGE for the text domain. |
85eac2a0 | 4028 | |
a23ee064 AP |
4029 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
4030 | ||
4031 | PR preprocessor/16366 | |
4032 | * internal.h (struct cpp_reader): New field dir_hash. | |
4033 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
4034 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
4035 | ||
a09d4744 NB |
4036 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
4037 | ||
4038 | PR preprocessor/16192 | |
4039 | PR preprocessor/15913 | |
4040 | PR preprocessor/15572 | |
4041 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
4042 | expression is missing. | |
4043 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
4044 | ||
f58f7def PB |
4045 | 2004-06-30 Per Bothner <per@bothner.com> |
4046 | ||
4047 | * include/line-map.h (fileline): Remove old typedef. | |
4048 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
4049 | ||
e83d8d43 ZW |
4050 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
4051 | ||
4052 | Partially revert patch of 2004-06-05. | |
4053 | * files.c (search_cache): Remove pfile argument. Don't check | |
4054 | for file that would be found by "" or <> search here... | |
4055 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
4056 | Do not apply directory-of-current-file correction to files | |
4057 | found by this check. Rearrange code slightly. | |
4058 | ||
c0d578e6 GK |
4059 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
4060 | ||
4061 | * files.c (should_stack_file): Correct swapped parameters to call | |
4062 | to cb.read_pch. | |
4063 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
4064 | ||
159d5224 PB |
4065 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
4066 | ||
4067 | * Makefile.in: Regenerate with automake 1.8.5. | |
4068 | * aclocal.m4: Likewise. | |
4069 | * configure: Regenerate. | |
4070 | ||
2fac9c01 ZW |
4071 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
4072 | ||
4073 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
4074 | * configure, config.in: Regenerate. | |
4075 | * system.h: Unconditionally define bool as unsigned char, | |
4076 | BOOL_BITFIELD as unsigned int. | |
4077 | * .cvsignore: New file. | |
4078 | ||
d8044160 GK |
4079 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
4080 | ||
4081 | * traditional.c (push_replacement_text): Set macro->traditional. | |
4082 | (save_replacement_text): Likewise. | |
4083 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
4084 | (struct save_macro_item): Delete. | |
4085 | (struct save_macro_data): Use a character array not the previous | |
4086 | structured format. | |
4087 | (save_macros): Save macro as text not as internal structures. | |
4088 | (cpp_prepare_state): Update for changes to save_macro_data. | |
4089 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
2cf22451 | 4090 | -D macros as text. |
d8044160 GK |
4091 | * macro.c (create_iso_definition): Honour alloc_subobject. |
4092 | Clear traditional flag. | |
4093 | (_cpp_create_definition): Honour alloc_subobject. | |
4094 | * lex.c (cpp_token_val_index): New. | |
4095 | * internal.h: Include cpp-id-data.h. | |
4096 | (uchar): Move definition to cpp-id-data.h. | |
4097 | (U): Likewise. | |
4098 | (cpp_macro): Likewise. | |
4099 | * directives.c (struct answer): Move to cpp-id-data.h. | |
4100 | (do_assert): Honour alloc_subobject. | |
2cf22451 ZW |
4101 | |
4102 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
4103 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
4104 | (enum cpp_token_fld_kind): New. | |
4105 | (struct cpp_token): Add GTY markers. | |
4106 | (cpp_token_val_index): Prototype. | |
4107 | (CPP_HASHNODE_VALUE_IDX): New. | |
4108 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
4109 | * include/cpp-id-data.h: New file. | |
d8044160 | 4110 | |
0ca8e815 PB |
4111 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
4112 | ||
4113 | * Makefile.am (all-local): New. | |
4114 | * Makefile.in: Regenerate. | |
4115 | ||
b51fa00f RS |
4116 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
4117 | ||
4118 | * Makefile.am (LIBICONV): Declare. | |
4119 | (makedepend_LDADD): Use LIBICONV. | |
4120 | * Makefile.in: Regenerate. | |
4121 | ||
5e2f3f39 AP |
4122 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
4123 | ||
4124 | * Makefile.am (LIBINTL): Declare | |
4125 | (makedepend_LDADD): Use LIBINTL. | |
4126 | * Makefile.in: Regenerate. | |
4127 | ||
c6e83800 ZW |
4128 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
4129 | ||
4130 | * Makefile.am: Add makedepend. | |
4131 | * Makefile.in, aclocal.m4: Regenerate. | |
4132 | * charset.c: Insert a space to avoid a warning. | |
4133 | * directives.c: Include mkdeps.h. | |
4134 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
4135 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
4136 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
4137 | (cpp_get_deps): New interface. | |
4138 | * files.c (search_cache): Add pfile argument. Check for file | |
4139 | that would be found by "" or <> search here... | |
4140 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
4141 | files found by directory-of-current-file search that would be | |
4142 | found by "" or <> search. | |
4143 | * init.c (cpp_add_dependency_target): Delete. | |
4144 | * internal.h (struct lexer_state): Add discarding_output flag. | |
4145 | * lex.c (lex_identifier): Compute hash function while scanning. | |
4146 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
4147 | directives. | |
4148 | * makedepend.c: New file. | |
4149 | * mkdeps.c (struct deps): Add vpath vector. | |
4150 | (apply_vpath, deps_add_vpath): New function. | |
4151 | (deps_free): Free vpath vector. | |
4152 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
4153 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
4154 | (ht_lookup_with_hash): New function. | |
4155 | * cpplib.h, mkdeps.h: Update prototypes. | |
4156 | * symtab.h: Update prototypes. | |
4157 | (HT_HASHSTEP, HT_FINISH): New macros. | |
4158 | ||
b453c95f GK |
4159 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
4160 | ||
4161 | * symtab.c (ht_create): Set entries_owned. | |
4162 | (ht_destroy): Honour entries_owned. | |
4163 | (ht_expand): Likewise. | |
4164 | (ht_load): New. | |
2cf22451 ZW |
4165 | * include/symtab.h (struct ht): New field 'entries_owned' |
4166 | (ht_load): New prototype. | |
b453c95f | 4167 | |
963e23c5 PB |
4168 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
4169 | ||
4170 | PR bootstrap/15651 | |
4171 | * configure.ac: Fix m4 quoting when picking | |
4172 | the size of HOST_WIDE_INT. | |
4173 | * configure: Regenerate. | |
4174 | ||
0429bc77 PB |
4175 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
4176 | ||
4177 | * Makefile.am: the correct directory for | |
4178 | gettext include files is given by @INCINTL@. | |
4179 | * Makefile.in: Regenerate. | |
4180 | ||
c86dd7db PB |
4181 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
4182 | ||
4183 | * system.h [!ENABLE_NLS]: dgettext takes two | |
4184 | parameters. | |
4185 | ||
4f4e53dd PB |
4186 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
4187 | ||
4188 | Moved libcpp from the gcc subdirectory to the toplevel. | |
4189 | * Makefile.am: New file. | |
4190 | * Makefile.in: Regenerate. | |
4191 | * configure.ac: New file. | |
4192 | * configure: Regenerate. | |
4193 | * config.in: Regenerate. | |
4194 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
4195 | brokenness of input charset detection. Adjust for change | |
4196 | in name of cppucnid.h. | |
4197 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
4198 | * expr.c: Moved from gcc/cppexp.c. | |
4199 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
4200 | Remove #define of O_BINARY, it is in system.h. | |
4201 | * identifiers.c: Moved from gcc/cpphash.c. | |
4202 | * internal.h: Moved from gcc/cpphash.h. Change header | |
4203 | guard name. All other files adjusted to match name change. | |
4204 | * init.c: Moved from gcc/cppinit.c. | |
4205 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
4206 | * lex.c: Moved from gcc/cpplex.c. | |
4207 | * directives.c: Moved from gcc/cpplib.c. | |
4208 | * macro.c: Moved from gcc/cppmacro.c. | |
4209 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
4210 | * traditional.c: Moved from gcc/cpptrad.c. | |
4211 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
4212 | guard name. | |
4213 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
4214 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
4215 | guard name. | |
4216 | * symtab.c: Moved from gcc/hashtable.c. | |
4217 | * line-map.c: Moved from gcc. Do not include intl.h. | |
4218 | * mkdeps.c: Moved from gcc. | |
4219 | * system.h: New file. | |
2cf22451 ZW |
4220 | * include/cpplib.h: Moved from gcc. Change header guard name. |
4221 | * include/line-map.h: Moved from gcc. Change header guard name. | |
4222 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
4223 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
4224 | guard name. |