Skip to content
Snippets Groups Projects
  1. May 31, 2006
    • Daniel Jacobowitz's avatar
      gcc/, libcpp/ · 5c3c3683
      Daniel Jacobowitz authored
      gcc/, libcpp/
      	* Makefile.in (CATALOGS): Add po/ prefix.
      	* configure: Regenerated.
      config/
      	* gettext-sister.m4 (ZW_GNU_GETTEXT_SISTER_DIR): Provide some
      	defines otherwise gotten from AM_GNU_GETTEXT.  Remove the
      	po/ prefix from CATALOGS.
      
      From-SVN: r114268
      5c3c3683
  2. May 24, 2006
  3. Apr 21, 2006
  4. Mar 31, 2006
  5. Mar 13, 2006
    • Joseph Myers's avatar
      be.po, [...]: Update. · 8a420cfb
      Joseph Myers authored
      	* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
      	rw.po, sv.po, tr.po, vi.po, zh_CN.po: Update.
      	* zh_TW.po: New file.
      
      From-SVN: r111982
      8a420cfb
  6. Feb 18, 2006
    • Grigory Zagorodnev's avatar
      cpp.texi (__TIMESTAMP__): Document. · be8ac3e2
      Grigory Zagorodnev authored
      2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
      
      gcc/ChangeLog:
           * doc/cpp.texi (__TIMESTAMP__): Document.
      
      libcpp/ChangeLog:
           * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP.
           * files.c (_cpp_get_file_stat): New function.
           * include/cpplib.h (builtin_type): Add BT_TIMESTAMP.
           * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP.
           * internal.h (_cpp_get_file_stat): Prototype.
           (struct cpp_buffer): Add timestamp.
      
      gcc/testsuite/ChangeLog:
           * gcc.dg/cpp/undef3.c: New test.
           * gcc.dg/cpp/trad/builtins2.c: New test.
      
      From-SVN: r111232
      be8ac3e2
  7. Jan 23, 2006
  8. Jan 05, 2006
  9. Jan 04, 2006
    • Richard Henderson's avatar
      directives.c (struct pragma_entry): Add is_deferred. · bc4071dd
      Richard Henderson authored
      libcpp/
      	* directives.c (struct pragma_entry): Add is_deferred.  Add ident
      	entry to value union.
      	(end_directive): Don't eat the line if in_deferred_pragma.
      	(run_directive): Remove pragma hacks.
      	(insert_pragma_entry): Remove.
      	(new_pragma_entry): New.
      	(register_pragma_1): Split out of register_pragma.  Only handle
      	the lookup tree and return the new entry.
      	(cpp_register_pragma): Fill in the pragma entry here.
      	(cpp_register_deferred_pragma): New.
      	(register_pragma_internal): New.
      	(_cpp_init_internal_pragmas): Use register_pragma_internal.
      	(do_pragma): Allow pragma expansion after namespace.  For deferred
      	pragmas, don't slurp the line into a string.
      	(destringize_and_run): Save tokens for deferred pragmas.
      	(cpp_handle_deferred_pragma): Remove.
      	* macro.c (builtin_macro): Remove pragma token hack.
      	(_cpp_push_token_context): Rename from push_token_context and export.
      	* internal.h (struct lexer_state): Add pragma_allow_expansion.
      	(_cpp_push_token_context): Declare.
      	* lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return
      	a token.  Update the line number correctly if so.
      	(_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens.
      	(cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas.
      	* include/cpplib.h (PRAGMA_EOL): New.
      	(CPP_TOKEN_FLD_PRAGMA): New.
      	(struct cpp_token): Add val.pragma.
      	(struct cpp_options): Remove defer_pragmas.
      	(cpp_handle_deferred_pragma): Remove.
      	(cpp_register_deferred_pragma): Declare.
      
      gcc/
      	* c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
      	via integer constant.
      	(pragma_lex): Remove.
      	* c-pch.c (c_common_pch_pragma): Accept the name as an argument,
      	rather than parsing it.
      	* c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
      	handle_pragma_extern_prefix): Add %< %> quotes.
      	(registered_pragmas): New.
      	(c_register_pragma_1): New.
      	(c_register_pragma): Use it.
      	(c_register_pragma_with_expansion): Likewise.
      	(c_invoke_pragma_handler): New.
      	(init_pragma): Use cpp_register_deferred_pragma directly for
      	pch_preprocess.
      	* c-pragma.h (enum pragma_kind): New.
      	(pragma_handler): New.
      	(c_invoke_pragma_handler): Declare.
      	* c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
      	CPP_PRAGMA_EOL.
      	* c-common.h (c_common_pch_pragma): Update decl.
      	* Makefile.in (c-parser.o): Update dependencies.
      	(GTFILES): Add c-pragma.h.
      	* c-parser.c (struct c_token): Add pragma_kind.
      	(struct c_parser): Add in_pragma.
      	(c_lex_one_token): Always initialize keyword and pragma_kind.
      	Extract data for CPP_PRAGMA.
      	(c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
      	(c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
      	Don't allow CPP_PRAGMA_EOL if in_pragma.
      	(c_parser_consume_pragma): New.
      	(c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
      	(c_parser_skip_to_end_of_parameter): Likewise.
      	(c_parser_skip_to_end_of_block_or_statement): Likewise.
      	(c_parser_skip_to_pragma_eol): New.
      	(c_parser_external_declaration): Handle CPP_PRAGMA.
      	(c_parser_compound_statement_nostart): Likewise.
      	(c_parser_statement_after_labels): Likewise.
      	(c_parser_pragma): New.
      	(pragma_lex): Likewise.
      	(c_parser_pragma_pch_preprocess): New.
      	(c_parser_new): Merge into ...
      	(c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
      
      gcc/cp/
      	* lex.c (handle_pragma_java_exceptions): Fix whitespace.
      	* parser.c (struct cp_token): Add pragma_kind.
      	(eof_token): Update to match.
      	(struct cp_lexer): Add in_pragma; rearrange next for better packing.
      	(cp_parser_initial_pragma): New.
      	(cp_lexer_new_main): Use it.  Don't bother clearing
      	c_lex_return_raw_strings.
      	(cp_lexer_get_preprocessor_token): Always initialize keyword
      	and pragma_kind fields.  Handle CPP_PRAGMA.
      	(cp_lexer_consume_token): Don't allow CPP_PRAGMA_EOL when 
      	in_pragma is set.
      	(cp_lexer_handle_pragma): Remove.  Update callers to cp_parser_pragma.
      	(cp_lexer_print_token) <CPP_PRAGMA>: Don't print as a string.
      	(cp_parser_skip_to_pragma_eol): New.
      	(cp_parser_error): Use it.
      	(cp_parser_skip_to_closing_parenthesis): Stop at CPP_PRAGMA_EOL;
      	rearrange with switch statement.
      	(cp_parser_skip_to_end_of_statement): Likewise.
      	(cp_parser_skip_to_end_of_block_or_statement): Likewise.
      	(cp_parser_skip_to_closing_brace): Likewise.
      	(cp_parser_skip_until_found): Likewise.
      	(cp_parser_statement): Add in_compound argument; update callers.
      	Use it to decide how to handle pragma parsing.
      	(cp_parser_labeled_statement): Add in_compound argument; pass
      	it on to cp_parser_statement.
      	(cp_parser_statement_seq_opt): Stop at CPP_PRAGMA_EOL.
      	(cp_parser_declaration_seq_opt): Likewise.
      	(cp_parser_parameter_declaration): Likewise.
      	(cp_parser_member_specification_opt): Likewise.
      	(cp_parser_function_definition_after_decl): Likewise.
      	(cp_parser_cache_group): Handle CPP_PRAGMA/CPP_PRAGMA_EOL pairs.
      	(cp_parser_pragma): New.
      	(pragma_lex): New.
      
      gcc/testsuite/
      	* g++.dg/parse/pragma2.C: Update expected error lines.
      
      From-SVN: r109336
      bc4071dd
  10. Dec 31, 2005
  11. Dec 22, 2005
    • Volker Reichelt's avatar
      re PR c++/23333 (accepts invalid pure specifier) · ab84748a
      Volker Reichelt authored
      2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
      
      	PR c++/23333
      	* include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.
      
      	* c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if
      	number is a single digit '0'.
      
      	* parser.c (cp_parser_pure_specifier): Check for PURE_ZERO to
      	identify a single '0'.
      
      	* g++.dg/parse/error25.C: Add more tests.
      
      From-SVN: r108947
      ab84748a
  12. Dec 06, 2005
  13. Dec 03, 2005
  14. Dec 01, 2005
    • Joseph Myers's avatar
      be.po, [...]: Update. · 31c61ecd
      Joseph Myers authored
      	* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
      	rw.po, sv.po, tr.po, vi.po: Update.
      
      From-SVN: r107808
      31c61ecd
  15. Nov 20, 2005
  16. Nov 14, 2005
  17. Nov 09, 2005
    • Uros Bizjak's avatar
      re PR c/24101 (Segfault with preprocessed source) · 456b8ce5
      Uros Bizjak authored
      libcpp/
      
      	PR c/24101
      	* init.c (read_original_filename): Temporarily set
      	state.in_directive before calling _cpp_lex_direct for
      	CPP_HASH tokens.
      
      gcc/
      
      	PR c/24101
      	* toplev.c (process_options): Initialize debug_hooks early
      	in case lang_hooks.post_options ends up calling a debug_hook.
      
      gcc/testsuite/
      
      	PR c/24101
      	* gcc.dg/pr24101-1.i, gcc.dg/pr24101-2.i: New tests.
      	* gcc.dg/dg.exp: Run main loop also for *.i files.
      
      From-SVN: r106677
      456b8ce5
  18. Nov 04, 2005
  19. Nov 03, 2005
    • Joseph Myers's avatar
      re PR c++/17964 (cpp error messages contain wrong line in C++) · 178b58b5
      Joseph Myers authored
      gcc:
      	PR c++/17964
      	* diagnostic.c (diagnostic_set_info_translated): New function.
      	(diagnostic_set_info): Use it.  Add comment.
      	* diagnostic.h (diagnostic_set_info_translated): Declare.
      
      gcc/cp:
      	* error.c (cp_cpp_error): New function.
      	* cp-tree.h (cp_cpp_error): Declare.
      	* parser.c (cp_lexer_new_main): Set CPP option client_diagnostic
      	and error callback after lexing.
      
      gcc/testsuite:
      	* g++.dg/cpp/string-1.C: New test.
      
      libcpp:
      	* include/cpplib.h (struct cpp_options): Add client_diagnostic.
      	(struct cpp_callbacks): Add error.
      	* errors.c (cpp_error): If client_diagnostic, use error callback.
      	* charset.c (convert_escape): Don't use %03o in diagnostic.
      
      From-SVN: r106454
      178b58b5
  20. Oct 31, 2005
  21. Oct 21, 2005
    • Jim Wilson's avatar
      Fix date of last ChangeLog entry. · 3ee5ed11
      Jim Wilson authored
      From-SVN: r105760
      3ee5ed11
    • James E Wilson's avatar
      Fix bug with -MM -MG. · 6568f34b
      James E Wilson authored
      PR preprocessor/15220
      * files.c (_cpp_find_file): New parameter angle_brackets.  Fix all
      callers.  Pass to open_file_failed.
      (open_file_failed): New parameter angle_brackets.  Fix all callers.
      Use in print_dep assignment.
      * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
      * internal.h (_cpp_find_file): Add new parm to declaration.
      
      From-SVN: r105757
      6568f34b
  22. Oct 08, 2005
    • Kazu Hirata's avatar
      configure.in (arm-*-linux-gnueabi): Add to noconfigdirs target-libffi... · 077fc835
      Kazu Hirata authored
      /
      	* configure.in (arm-*-linux-gnueabi): Add to noconfigdirs
      	target-libffi, target-qthreads, target-libjava, and
      	targetlibobjc.
      	* configure: Regenerate.
      
      gcc/
      	Merge from csl-arm-branch:
      	2005-09-07  Paul Brook  <paul@codesourcery.com>
      	* config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
      	space to string.
      
      	2005-04-30  Paul Brook  <paul@codesourcery.com>
      	* config/arm/bpabi.h (TARGET_DEFAULT): Define.
      	* config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
      
      	2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
      	* config/arm/arm.c (arm_all_abis): Add aapcs-linux.
      	(arm_override_options): Use TARGET_AAPCS_BASED.
      	* config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
      	(PTRDIFF_TYPE): Use int for AAPCS.
      	(DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
      	* config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
      	(DEFAULT_SHORT_ENUMS): Delete.
      	* doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
      
      	2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
      	* config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
      	* config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
      	* config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
      
      	2004-12-03  Mark Mitchell  <mark@codesourcery.com>
      	* config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
      
      	2004-11-22  Mark Mitchell  <mark@codesourcery.com>
      	* config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
      
      	2004-11-19  Mark Mitchell  <mark@codesourcery.com>
      	* config.gcc (arm*-*-linux-gnueabi): Add it.
      	* config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
      	redefining it.
      	(TARGET_OS_CPP_BUILTINS): Likeiwse.
      	* config/arm/linux-eabi.h: New file.
      	* config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
      	(LINUX_TARET_LINK_SPEC): Likewise.
      	(LINK_SPEC): Use it.
      	* config/arm/t-linux-eabi: New file.
      
      libcpp/
      	* configure.ac: Require 64-bit int for arm*-*-*eabi*.
      	* configure: Regenerate.
      
      libstdc++/
      	Merge from csl-arm-branch:
      	2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
      	* libstdc++-v3/config/linker-map.gnu: Add ARM EABI symbols.
      
      From-SVN: r105121
      077fc835
  23. Oct 04, 2005
    • Ian Lance Taylor's avatar
      re PR preprocessor/13726 (cpp -C -dI loses comments on same line as #include directives) · cbc43ae0
      Ian Lance Taylor authored
      libcpp/
      	PR preprocessor/13726
      	* directives.c (check_eol_return_comments): New static function.
      	(parse_include): Add buf parameter.  Change all callers.
      	(do_include_common): If not discard comments, turn on
      	save_comments.  Pass collected comments to include callback.
      	* include/cpplib.h (struct cpp_callbacks): Add new parameter to
      	include callback: cpp_token list.
      gcc/
      	PR preprocessor/13726
      	* c-ppoutput.c (cb_include): Add comments parameter, and print out
      	any comments passed in.
      gcc/testsuite/
      	PR preprocessor/13726
      	* gcc.dg/cpp/cmdlne-dI-C.c: New test.
      	* gcc.dg/cpp/cmdlne-dI-C.h: New file.
      
      From-SVN: r104951
      cbc43ae0
  24. Sep 20, 2005
    • Joseph Myers's avatar
      c.opt (fextended-identifiers): New. · af15a2fe
      Joseph Myers authored
      gcc:
      	* c.opt (fextended-identifiers): New.
      	* c-opts.c (c_common_handle_option): Handle
      	-fextended-identifiers.
      	* doc/cpp.texi: Update documentation of extended identifiers.
      	* doc/cppopts.texi (-fextended-identifiers): Document.
      
      gcc/testsuite:
      	* g++.dg/cpp/ucnid-1.C, g++.dg/cpp/normalize-1.C,
      	g++.dg/other/ucnid-1.C, gcc.dg/cpp/normalize-1.c,
      	gcc.dg/cpp/normalize-2.c, gcc.dg/cpp/normalize-3.c,
      	gcc.dg/cpp/normalize-4.c, gcc.dg/cpp/ucnid-1.c,
      	gcc.dg/cpp/ucnid-2.c, gcc.dg/cpp/ucnid-3.c, gcc.dg/cpp/ucnid-4.c,
      	gcc.dg/cpp/ucnid-5.c, gcc.dg/cpp/ucnid-7.c,gcc.dg/ucnid-1.c,
      	gcc.dg/ucnid-2.c, gcc.dg/ucnid-3.c, gcc.dg/ucnid-4.c,
      	gcc.dg/ucnid-5.c, gcc.dg/ucnid-6.c: Add -fextended-identifiers.
      	* gcc.dg/cpp/ucnid-8.c: New test.
      
      libcpp:
      	* include/cpplib.h (struct cpp_options): Add extended_identifiers.
      	* init.c (struct lang_flags, lang_defaults): Add
      	extended_identifiers.
      	(cpp_set_lang): Use it.
      	* lex.c (forms_identifier_p): Check extended_identifiers.
      
      From-SVN: r104462
      af15a2fe
  25. Sep 04, 2005
    • Joseph Myers's avatar
      be.po, [...]: Update. · 01cd3b3a
      Joseph Myers authored
      	* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
      	rw.po, sv.po, tr.po, vi.po: Update.
      
      From-SVN: r103829
      01cd3b3a
  26. Aug 30, 2005
    • Jakub Jelinek's avatar
      re PR preprocessor/20348 (File not included when file with same name is included before) · f5eab47e
      Jakub Jelinek authored
      	PR preprocessor/20348
      	PR preprocessor/20356
      	* files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
      	2004-06-05 changes.
      
      	* gcc.dg/cpp/pr20348.c: New test.
      	* gcc.dg/cpp/pr20348.h: New file.
      	* gcc.dg/cpp/inc/pr20348.h: New file.
      	* gcc.dg/cpp/inc/pr20348-aux.h: New file.
      	* gcc.dg/cpp/pr20356.c: New test.
      	* gcc.dg/cpp/pr20356.h: New file.
      	* gcc.dg/cpp/inc/pr20356.h: New file.
      	* gcc.dg/cpp/inc/pr20356-aux.h: New file.
      
      From-SVN: r103629
      f5eab47e
  27. Jul 24, 2005
  28. Jun 29, 2005
  29. Jun 18, 2005
  30. Jun 16, 2005
    • Joseph Myers's avatar
      be.po, [...]: Update. · 9b9c745e
      Joseph Myers authored
      	* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
      	rw.po, sv.po, tr.po, vi.po: Update.
      
      From-SVN: r101092
      9b9c745e
  31. Jun 14, 2005
  32. Jun 13, 2005
    • Zack Weinberg's avatar
      top level: · f610dd5f
      Zack Weinberg authored
      	* depcomp: Update from automake CVS.  Add 'ia64hp' stanza.
      	In 'cpp' stanza, support '#line' as well as '# '.
      config:
      	* depstand.m4, lead-dot.m4: New files.
      libcpp:
      	* configure.ac: Invoke ZW_CREATE_DEPDIR and
      	ZW_PROG_COMPILER_DEPENDENCIES.
      	* aclocal.m4, configure: Regenerate.
      	* Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
      	New variables.
      	(distclean): Clean up $(DEPDIR) and its contents.
      	(.c.o): Use $(COMPILE).
      	Include $(DEPDIR)/*.Po for most object->header dependencies.
      
      From-SVN: r100874
      f610dd5f
  33. Jun 07, 2005
  34. May 28, 2005
    • Gabriel Dos Reis's avatar
      configure.ac: Check declarations for asprintf and vasprintf. · c3f829c1
      Gabriel Dos Reis authored
      	* configure.ac: Check declarations for asprintf and vasprintf.
      	* config.in: Regenerate.
      	* configure: Likewise.
      
      	* charset.c (conversion_loop): Use XRESIZEVEC.
      	(convert_no_conversion): Likewise.
      	(convert_using_iconv): Likewise.
      	(init_iconv_desc): Cast return value of alloca.
      	(cpp_host_to_exec_charset): Use XNEWVEC.
      	(emit_numeric_escape): Use XRESIZEVEC.
      	(cpp_interpret_string): Use XNEWVEC.
      	(cpp_interpret_string): Use XRESIZEVEC.
      	(_cpp_interpret_identifier): Cast return value of alloca.
      	(_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
      	* directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
      	(parse_include): Use XNEWVEC.
      	(insert_pragma_entry): Rename local variable "new" to
      	"new_entry".
      	(save_registered_pragmas): Cast return value of xmemdup.
      	(destringize_and_run): Same for alloca.
      	(parse_assertion): Likewise.
      	(do_assert): Cast allocated storage to proper type.
      	(cpp_define): Likewise.
      	(_cpp_define_builtin): Likewise.
      	(cpp_undef): Likewise.
      	(handle_assertion): Likewise.
      	(cpp_push_buffer): Rename local variable "new" to "new_buffer".
      	* expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
      	(CPP_UMINUS): Likewise.
      	(struct cpp_operator): Rename from struct operator.
      	(_cpp_expand_op_stack): Use XRESIZEVEC.
      	* files.c (pch_open_file): Use XNEWVEC.
      	(pch_open_file): Use XRESIZEVEC.
      	(read_file_guts): Use XNEWVEC and XRESIZEVEC.
      	(dir_name_of_file): Use XNEWVEC.
      	(make_cpp_file): Use XCNEW.
      	(make_cpp_dir): Likewise.
      	(allocate_file_hash_entries): USE XNEWVEC.
      	(cpp_included): Cast return value of htab_find_with_hash.
      	(append_file_to_dir): Use XNEWVEC.
      	(read_filename_string): Likewise. Use XRESIZEVEC too.
      	(read_name_map): Cast return value of alloca.  Use XRESIZEVEC.
      	(remap_filename): Use XNEWVEC.
      	(struct pchf_entry): Move definition out of struct pchf_data.
      	(_cpp_save_file_entries): Use XCNEWVAR.
      	(_cpp_read_file_entries): Use XNEWVAR.
      	* identifiers.c (alloc_node): Use XOBNEW.
      	* init.c (cpp_create_reader): Use XCNEW.
      	(cpp_init_builtins): Cast of b->value to enum builtin_type.
      	(read_original_directory): Cast return value of alloca.
      	* lex.c (add_line_note): Use XRESIZEVEC.
      	(warn_about_normalization): Use XNEWVEC.
      	(_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
      	(new_buff): Use XNEWVEC.
      	* line-map.c (linemap_add): Use XRESIZEVEC.
      	* macro.c (builtin_macro): Cast return value of alloca.
      	(paste_tokens): Likewise.
      	(expand_arg): Use XNEWVEC and XRESIZEVEC.
      	(_cpp_save_parameter): Use XRESIZEVEC.
      	(create_iso_definition): Cast allocated storage to proper type.
      	(_cpp_create_definition): Likewise.
      	(cpp_macro_definition): Use XRESIZEVEC.
      	* makedepend.c (add_clm): Use XNEW.
      	(add_dir): Likewise.
      	* mkdeps.c (munge): Use XNEWVEC.
      	(deps_init): Use XCNEW.
      	(deps_add_target): Use XRESIZEVEC.
      	(deps_add_default_target): Cast return value of alloca.
      	(deps_add_dep): Use XRESIZEVEC.
      	(deps_add_vpath): Likewise.  Use XNEWVEC too.
      	(deps_restore): Likewise.
      	* pch.c (save_idents): Use XNEW and XNEWVEC.
      	(cpp_save_state): Use XNEW.
      	(count_defs): Cast return value of htab_find.
      	(write_defs): Likewise.
      	(cpp_write_pch_deps): Use XNEWVEC.
      	(collect_ht_nodes): Use XRESIZEVEC.
      	(cpp_valid_state): Use XNEWVEC.
      	(save_macros): Use XRESIZEVEC.  Cast return value of xmemdup.
      	* symtab.c (ht_create): Use XCNEW.
      	(ht_lookup_with_hash): Cast return value of obstack_copy0.
      	(ht_expand): Use XCNEWVEC.
      	* system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
      	(bool): Do not define if __cplusplus.
      
      From-SVN: r100295
      c3f829c1
  35. May 12, 2005
Loading