OSDN Git Service

gcc/ChangeLog:
[pf3gnuchains/gcc-fork.git] / libcpp / ChangeLog
index 3935dff..a6378bc 100644 (file)
@@ -1,3 +1,128 @@
+2008-12-10  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR target/37033
+       * pch.c (cpp_valid_state): Improve message for poisoned symbols.
+       Allow for differences in __GCC_HAVE_DWARF2_CFI_ASM.
+
+2008-11-29  Joseph Myers  <joseph@codesourcery.com>
+
+       * lex.c (cpp_token_len): Use 6 as default length.
+
+2008-10-31  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * expr.c (struct op): Add location.
+       (_cpp_parse_expr): Propagate locations throught the stack
+       of expressions.
+       (reduce): Likewise.
+       (check_promotion): Use explicit location in errors.
+
+2008-10-05  Matthew Gingell  <gingell@adacore.com>
+           Arnaud Charlet  <charlet@adacore.com>
+
+       * include/cpplib.h (cpp_comments, cpp_comment_table): New structs.
+       (cpp_get_comments): New function.
+       * internal.h (struct cpp_reader): Add comments field.
+       * init.c (cpp_destroy): Free comments.
+       * lex.c (store_comment, cpp_get_comments): New functions.
+       (comments): New struct.
+       (save_comment): Store comments in comments struct.
+
+2008-09-18  Simon Baldwin  <simonb@google.com>
+
+       * include/cpplib.h (struct cpp_options): Add new boolean flag
+       warn_builtin_macro_redefined.
+       * init.c (cpp_create_reader): Initialize warn_builtin_macro_redefined.
+       * (struct builtin_operator): Split out from previous struct builtin,
+       enhance extra const correctness.
+       * (struct builtin_macro): Split out from previous struct builtin, add
+       new always_warn_if_redefined flag, enhance const correctness.
+       * (mark_named_operators): Use struct builtin_operator.
+       * (cpp_init_special_builtins): Use struct builtin_macro, add NODE_WARN
+       to builtins selectively.
+       * macro.c (warn_of_redefinition): Return false if a builtin macro
+       is not flagged with NODE_WARN.
+
+2008-07-31  Jakub Jelinek  <jakub@redhat.com>
+
+       PR preprocessor/36649
+       * files.c (struct report_missing_guard_data): New type.
+       (report_missing_guard): Put paths into an array instead of printing
+       them right away.  Return 1 rather than 0.
+       (report_missing_guard_cmp): New function.
+       (_cpp_report_missing_guards): Sort and print paths gathered by
+       report_missing_guard callback.
+
+2008-07-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       PR 28079
+       * directives.c (strtolinenum): Handle overflow.
+       (do_line): Give a warning if line number overflowed.
+       (do_linemarker): Update call to strtolinenum.
+
+2008-07-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       * include/line-map.h (linenum_type): New typedef.
+       (struct line_map): Use it.
+       (SOURCE_LINE): Second arguments is a LOCATION not a LINE.
+       (SOURCE_COLUMN): Likewise.
+       * macro.c (_cpp_builtin_macro_text): Use linenum_type. Don't store
+       source_location values in a variable of type linenum_type.
+       * directives.c (struct if_stack): Use linenum_type.
+       (strtoul_for_line): Rename as strtolinenum.
+       (do_line): Use linenum_type.
+       (do_linemarker): Use linenum_type and strtolinenum.
+       (_cpp_do_file_change): Use linenum_t.
+       * line-map.c (linemap_add): Likewise.
+       (linemap_line_start): Likewise.
+       * traditional.c (struct fun_macro): 'line' is a source_location.
+       * errors.c (print_location): Use linenum_type.
+       * directives-only.c (_cpp_preprocess_dir_only): Likewise.
+       * internal.h (CPP_INCREMENT_LINE): Likewise.
+       * lex.c (_cpp_skip_block_comment): Use source_location.
+       
+2008-07-14  Ben Elliston  <bje@au.ibm.com>
+
+       * include/cpplib.h (NODE_CONDITIONAL): New.
+       (struct cpp_callbacks): New macro_to_expand field.
+       (struct cpp_hashnode): Adjust size of flags and type fields.
+       (cpp_peek_token): Prototype.
+       * lex.c (cpp_peek_token): New function.
+       (_cpp_temp_token): Protect pre-existing lookaheads.
+       * macro.c (cpp_get_token): Expand any conditional macros.
+       (_cpp_backup_tokens_direct): New.
+       (_cpp_backup_tokens): Call _cpp_backup_tokens_direct.
+       (warn_of_redefinition): Silently allow redefined conditional
+       macros.
+       (_cpp_create_definition): Remove the conditional flag when a user
+       defines one of the conditional macros.
+       * internal.h (_cpp_backup_tokens_direct): New prototype.
+
+2008-06-13  Andrew Haley  <aph@redhat.com>
+
+       PR preprocessor/33305
+       * macro.c (replace_args): Print a warning for empty macro
+       arguments in C89 and C++.
+
+2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies.
+       * configure: Regenerate.
+
+2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * Makefile.in (datarootdir): New variable.
+
+2008-06-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR preprocessor/36479
+       * charset.c (cpp_interpret_string_notranslate): Also set
+       narrow_cset_desc.width.
+
+2008-06-07  Joseph Myers  <joseph@codesourcery.com>
+
+       * configure.ac (parisc*64*-*-*): Remove.
+       * configure: Regenerate.
+
 2008-05-30  Tom Tromey  <tromey@redhat.com>
 
        PR preprocessor/36320: