1. 29 Dec, 2000 1 commit
  2. 26 Dec, 2000 1 commit
  3. 13 Dec, 2000 2 commits
  4. 08 Dec, 2000 2 commits
    • Add - before rms to be more portable. · 5a2eb52b
      From-SVN: r38142
      Mike Stump committed
    • safe-ctype.h: New file. · f6bbde28
      include:
      	* safe-ctype.h: New file.
      libiberty:
      	* safe-ctype.c: New file.
      	* Makefile.in (CFILES): Add safe-ctype.c.
      	(REQUIRED_OFILES): Add safe-ctype.o.
      
      	* argv.c: Define ISBLANK and use it, not isspace.
      	* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
      	strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
      	uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
      	before calling TOLOWER(c)/TOUPPER(c).
      gcc:
      	* Makefile.in (HOST_RTL): Add safe-ctype.o.
      	(safe-ctype.o): New rule.
      	* system.h: Include safe-ctype.h, not ctype.h.  No need to
      	wrap ctype macros.
      
      	* cpphash.h: Zap IStable and related macros.  Define is_* in
      	terms of safe-ctype.h macros.
      	* cppinit.c: Delete the IStable and all related code.
      
      	* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
      	is_space arrays.  Delete initialize_char_syntax.  Change all
      	references to the above arrays to use macros instead.
      	* tradcpp.h: Define is_idchar, is_idstart, is_space, and
      	is_nvspace in terms of safe_ctype.h's macros.
      	* tradcif.y: is_idchar, is_idstart are macros not arrays.
      
      	* config/i370/i370.c, config/winnt/dirent.c,
      	config/winnt/fixinc-nt.c, config/winnt/ld.c:
      	Use uppercase ctype macros.  If we included ctype.h,
      	include safe-ctype.h instead.
      
      	* fixinc/fixfixes.c: Use uppercase ctype macros.  Don't test
      	ISLOWER(c) before calling TOUPPER(c).
      	* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
      	* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h.  No need to
      	wrap ctype macros.  Don't test ISUPPER(x) before calling TOLOWER(x).
      gcc/ch:
      	* lex.c: Don't bother checking whether ISUPPER(c) before
      	calling TOLOWER(c).  Don't bother checking whether isascii(c)
      	before testing ISSPACE(c); ISSPACE(c) includes '\n'.
      gcc/f:
      	* Make-lang.in: Link f/fini with safe-ctype.o.
      	* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
      	* com.c: Use TOUPPER, not ffesrc_toupper.
      	* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
      	* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
      	* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
      	initializing code; use TOUPPER and TOLOWER instead of
      	ffesrc_toupper and ffesrc_tolower.
      	* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
      	Don't define ffesrc_toupper or ffesrc_tolower.
      gcc/java:
      	* jvgenmain.c: Use ISPRINT not isascii.
      
      From-SVN: r38124
      Zack Weinberg committed
  5. 07 Dec, 2000 2 commits
  6. 05 Dec, 2000 1 commit
  7. 04 Dec, 2000 1 commit
    • cp-demangle.c: s/new_abi/v3/. · c6e13630
              * cp-demangle.c: s/new_abi/v3/.
              * cplus-dem.c: Likewise.
              (current_demangling_style): Now auto_demangling.
              (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
              (main): Use standard symbol chars for auto_demangling.
      
      From-SVN: r38002
      Jason Merrill committed
  8. 27 Nov, 2000 1 commit
  9. 22 Nov, 2000 2 commits
    • * cplus-dem.c (main): Handle gnat_demangling. · 3b3bd9a7
      From-SVN: r37679
      H.J. Lu committed
    • Makefile.in, [...]: Expunge remaining traces of facility for running MD files… · d1209685
      Makefile.in, [...]: Expunge remaining traces of facility for running MD files through C preprocessor.
      
      gcc:
              * Makefile.in, config.gcc, configure.in: Expunge remaining
              traces of facility for running MD files through C preprocessor.
      
      libiberty:
              * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
              (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
              * configure.in: Call AC_C_INLINE and AC_C_CONST.  Use three
              argument form of AC_DEFINE in dummy definitions block.  Use
              AC_DEFINE_NOAUTOHEADER for real definitions of things defined
              in dummy block.  Preload cache variables instead of bypassing
              tests, where possible.
              * acconfig.h: Removed.
      
              * xmalloc.c (xmalloc_failed): New function, does error
              reporting on failed allocation.
              (xmalloc, xcalloc, xrealloc): Use it.
              * libiberty.h: Move #includes to top.  Prototype xmalloc_failed.
      
      From-SVN: r37650
      Zack Weinberg committed
  10. 21 Nov, 2000 1 commit
  11. 19 Nov, 2000 1 commit
  12. 16 Nov, 2000 1 commit
  13. 15 Nov, 2000 4 commits
  14. 04 Nov, 2000 1 commit
    • hashtab.c (htab_expand): Change to return int. · d50d20ec
      	* hashtab.c (htab_expand): Change to return int.  Use calloc or
       	xcalloc depending on htab->return_allocation_failure.  Return zero
       	if calloc fails.
      	(htab_create): Update comment to cover memory allocation.
      	(htab_try_create): New.
      	(htab_find_slot_with_hash): Return NULL if htab_expand fails.
        	Update comment to cover this.
      
      From-SVN: r37247
      Hans-Peter Nilsson committed
  15. 03 Nov, 2000 1 commit
  16. 23 Oct, 2000 1 commit
  17. 22 Oct, 2000 1 commit
    • cp-demangle.c (string_list_def): Add caret_position and comments. · 0870bfd6
      	* cp-demangle.c (string_list_def): Add caret_position and comments.
      	(result_caret_pos): New macro.
      	(result_append_string): Rename to...
      	(result_add_string): ... this, and insert at caret position.
      	Rename throughout.
      	(result_append): Rename to...
      	(result_add): ... this, and insert at caret position.  Rename
      	throughout.
      	(result_append_char): Rename to...
      	(result_add_char): ... this, and insert at caret position.  Rename
      	throughout.
      	(result_append_space): Remove.
      	(string_list_new): Initialize caret position.
      	(result_add_separated_char): Use caret position.
      	(result_get_caret): New funtion.
      	(result_set_caret): Likewise.
      	(result_shift_caret): Likewise.
      	(result_previous_char_is_space): Likewise.
      	(substitution_start): Use caret position.
      	(substitution_add): Likewise.
      	(demangling_new): Initialize caret position.
      	(demangle_encoding): Use caret position.
      	(demanglin_nested_name): Put CV qualifiers after name.
      	(demangle_type_ptr): Use switch statement.  Handle pointers to
      	arrays.  Don't use result_append_space.  Use caret position.
      	(demangle_type): Emit CV qualifiers after underlying type.  Adjust
      	call to demangle_array_type.
      	(demangle_array_type): Add parameter to handle pointers to arrays.
      
      From-SVN: r37011
      Alex Samuel committed
  18. 01 Oct, 2000 1 commit
    • c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only. · f15b9af9
      	* c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
      	(lang_mark_false_label_stack): Remove.
      	* c-lex.c (init_c_lex): Add file_info_tree as GC root.  Allocate
      	<top level> string in GC area.
      	(mark_splay_tree_node): New function.
      	(mark_splay_tree): Likewise.
      	* except.c (mark_eh_status): Only call lang_mark_false_label_stack
      	if it exists.
      	* ggc-callbacks.c (lang_mark_false_label_stack): Remove.
      	* ggc-common.c (lang_mark_false_label_stack): Change type.
      	* ggc.h (ggc_alloc_string): Add comment.
      	(ggc_strdup): New function.
      
      	* decl.c (lang_mark_false_label_stack): Remove.
      	* lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
      
      	* com.c (lang_mark_false_label_stack): Remove.
      
      	Convert to GC.
      	* Make-lang.in (s-java): Don't depend on ggc-callbacks.o.
      	* Makefile.in (BACKEND): Don't include ggc-callbacks.o.
      	(typeck.o): Depend on ggc.h.
      	* class.c (add_method_1): Use GC functions for allocation.
      	(init_class_processing): Register roots.
      	* decl.c (ggc_p): Set to 1.
      	(pending_local_decls): Make it static.
      	(push_jvm_slot): Use GC functions for allocation.
      	(init_decl_processing): Register roots.
      	(give_name_to_locals): Use GC functions for allocation.
      	(lang_mark_tree): New function.
      	* java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Use GC
      	functions for allocation.
      	* jcf-parse.c (jcf_parse_source): Use ggc_strdup.
      	* lex.c (java_lex): Use build_string, rather than replicating it
      	inline.
      	* parse.y (goal): Add more roots.
      	(mark_parser_ctxt): New function.
      	* typeck.c: Include ggc.h.
      
      	* splay-tree.c (splay_tree_insert): Fix formatting.
      
      From-SVN: r36687
      Mark Mitchell committed
  19. 17 Sep, 2000 1 commit
    • splay-tree.c (splay_tree_predecessor): Fix typo in comment. · 8f17b5c5
      	* splay-tree.c (splay_tree_predecessor): Fix typo in comment.
      
      	Convert the C front-end to use function-at-a-time mode.
      	* c-common.h: Include splay-tree.h.
      	(C_DECLARED_LABEL_FLAG): New macro.
      	(struct language_function): Add x_scope_stmt_stack and
      	x_function_name_declared_p.
      	(RECHAIN_STMTS): Move definition.
      	(lang_statment_code_p): Likewise.
      	(lang_expand_stmt): Likewise.
      	(lang_expand_decl_stmt): New variable.
      	(lang_expand_function_end): Likewise.
      	(current_scope_stmt_stack): New function.
      	(add_decl_stmt): Likewise.
      	(add_scope_stmt): Likewise.
      	(mark_stmt_tree): Likewise.
      	(struct c_lang_decl): New structure.
      	(DECL_SAVED_TREE): Define.
      	(c_mark_lang_decl): New function.
      	(c_expand_start_cond): Change prototype.
      	(c_finish_then): New function.
      	(c_finish_else): Likewise.
      	(current_function_name_declared): Remove.
      	(set_current_function_name_declared): Likewise.
      	(mark_c_language_function): Declare.
      	(case_compare): Likewise.
      	(c_add_case_label): Likewise.
      	(c_expand_expr): Likewise.
      	(c_safe_from_p): Likewise.
      	* c-common.c (lang_expand_function_end): New variable.
      	(struct if_elt): Add if_stmt.
      	(c_expand_start_cond): Add the if-statement to the statement-tree,
      	rather than generating RTL.
      	(c_finish_then): New function.
      	(c_expand_start_else): Don't generate RTL.
      	(c_finish_else): New function.
      	(c_expand_expr_stmt): Don't generate RTL.
      	(statement_code_p): Add SCOPE_STMT.
      	(case_compare): New function.
      	(c_add_case_label): Likewise.
      	(mark_stmt_tree): Likewise.
      	(c_mark_lang_decl): Likewise.
      	(mark_c_language_function): Likewise.
      	(c_expand_expr): Likewise.
      	(c_safe_from_p): Likewise.
      	* c-decl.c (c_stmt_tree): New variable
      	(c_scope_stmt_stack): Likewise.
      	(c_function_name_declared_p): Likewise.
      	(lang_expand_expr_stmt): Remove.
      	(poplevel): Don't call output_inline_function for nested
      	functions.
      	(pushdecl): Don't set DECL_CONTEXT for a local declaration of an
      	`extern' function.
      	(redeclaration_error_message): Change means of computing whether
      	or not a function is nested.
      	(lookup_label): Don't call label_rtx.
      	(init_decl_processing): Add more GC roots.
      	(start_decl): Add DECL_STMTs to the statement-tree, rather than
      	calling rest_of_decl_compilation.
      	(finish_decl): Don't call expand_decl.
      	(store_parm_decls): Begin the statement-tree, but don't generate
      	RTL.
      	(finish_function): Tie off the statement-tree.  Call c_expand_body
      	if appropriate.
      	(c_expand_body): New function.
      	(push_c_function_context): Save more information.
      	(pop_c_function_contxt): Likewise.
      	(copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
      	(lang_mark_tree): Mark it.
      	(current_stmt_tree): Adjust.
      	(current_scope_stmt_stack): New function.
      	(do_case): Remove.
      	(set_current_name_declared): Likewise.
      	(c_begin_compound_stmt): Define.
      	(c_expand_decl_stmt): Likewise.
      	* c-lang.c: Include rtl.h and expr.h.
      	(lang_init): Set more language-specific hooks.
      	* c-lex.c: Include expr.h.
      	* c-parse.in: Changes throughout to add statements to the
      	statement-tree, rather than generating RTL after every statement.
      	* c-semantics.c (lang_expand_decl_stmt): Define.
      	(add_decl_stmt): New function.
      	(add_scope_stmt): Likewise.
      	(finish_stmt_tree): Tweak.
      	(genrtl_expr_stmt): Likewise.
      	(genrtl_decl_stmt): Handle local labels, and call
      	lang_expand_decl_stmt if required.
      	(genrtl_for_stmt): Fix line-number handling.
      	(genrtl_case_label): Handle cleanups.
      	(genrtl_asm_stmt): Don't call combine_strings.
      	(genrtl_compound_stmt): Simplify.
      	(expand_stmt): Handle SCOPE_STMTs.
      	* c-tree.h (struct lang_decl): New structure.
      	(C_DECLARED_LABEL_FLAG): Remove.
      	(c_begin_compound_stmt): Declare.
      	(c_expand_decl_stmt): Likewise.
      	(c_expand_start_case): Rename to c_start_case.
      	(c_finish_case): New function.
      	* c-typeck.c (start_init): Tweak setting of
      	constructor_incremental.
      	(c_expand_asm_operands): Tweak error-handling.  Add to the
      	statement-tree.
      	(c_expand_return): Add to the statement-tree.
      	(c_expand_start_case): Rename to ...
      	(c_start_case): ... this.
      	(struct c_switch): New type.
      	(switch_stack): New variable.
      	(do_case): Simplify.
      	(c_finish_case): New function.
      	* dependence.c: Include expr.h.
      	(enum dependence_type): Change spelling of enumerals.
      	(check_node_dependence): Adjust.
      	* expr.h (lang_safe_from_p): Declare.
      	(safe_from_p): Likewise.
      	* expr.c (lang_safe_from_p): New variable.
      	(safe_from_p): Give it external linkage.  Use lang_safe_from_p.
      	* stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
      	* toplev.c (rest_of_decl_compilation): Robustify.
      	* tree.c (contains_placeholder_p): Likewise.
      	* Makefile.in: Update dependencies.
      	* objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
      	* objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
      	(objc_expand_function_end): New function.
      	(finish_method_def): Use it.
      	(init_objc): Initialize more language-specific hooks.
      	* objc/Make-lang.in: Update dependencies.
      
      	* cp-tree.h (struct cp_language_function): Remove
      	x_scope_stmt_stack and name_declared.
      	(current_scope_stmt_stack): Remove.
      	(function_name_declared_p): New macro.
      	(struct lang_decl_flags): Use c_lang_decl as a base class.
      	(context): Remove.
      	(struct lang_decl): Replace saved_tree with context.
      	(DECL_FRIEND_CONTEXT): Adjust accordingly.
      	(SET_DECL_FRIEND_CONTEXT): Likewise.
      	(DECL_VIRTUAL_CONTEXT): Likewise.
      	(DECL_SAVED_TREE): Remove.
      	(C_DECLARED_LABEL_FLAG): Likewise.
      	(cplus_expand_expr_stmt): Don't declare.
      	(add_decl_stmt): Likewise.
      	(add_scope_stmt): Likewise.
      	* decl.c (mark_stmt_tree): Remove.
      	(case_compare): Likewise.
      	(finish_case_label): Use c_add_case_label.
      	(init_decl_processing): Set more language-specific hooks.
      	(build_enumerator): Fix typo in comment.
      	(cplus_expand_expr_stmt): Remove.
      	(mark_lang_function): Use mark_c_language_function.
      	(lang_mark_tree): Use c_mark_lang_decl.
      	* decl2.c: Change order of inclusion.
      	* except.c: Likewise.
      	* expr.c (cplus_expand_expr): Remove handling of STMT_EXPR.  Fall
      	back on c_expand_expr.
      	* friend.c: Include expr.h.
      	* init.c: Change order of inclusion.
      	* Makefile.in: Update dependencies.
      	* lex.h (free_lang_decl_chain): Remove.
      	* optimize.c (maybe_clone_body): Use function_name_declared_p.
      	* pt.c (build_template_decl): Don't copy DECL_VIRTUAL_CONTEXT if
      	it doesn't exist.
      	(instantiate_decl): Use function_name_declared_p.
      	* semantics.c (lang_expand_expr_stmt): Remove.
      	(set_current_function_name_declared): Likewise.
      	(current_function_name_declared): Likewise.
      	(begin_compound_stmt): Use function_name_declared_p.
      	(add_decl_stmt): Remove.
      	(setup_vtbl_ptr): Use function_name_declared_p.
      	(add_scope_stmt): Remove.
      	(current_scope_stmt_stack): New function.
      	(cp_expand_stmt): Don't handle SCOPE_STMTs.
      	(expand_body): Use function_name_declared_p.
      	* tree.c (cp_statement_code_p): Don't include SCOPE_STMT.
      	* typeck.c: Change order of includes.
      	(convert_sequence): Remove.
      
      From-SVN: r36464
      Mark Mitchell committed
  20. 15 Sep, 2000 1 commit
  21. 13 Sep, 2000 1 commit
  22. 10 Sep, 2000 2 commits
  23. 08 Sep, 2000 1 commit
  24. 07 Sep, 2000 2 commits
  25. 05 Sep, 2000 6 commits
    • cp-demangle.c (demangle_encoding): Rename variable. · 1056d228
      	* cp-demangle.c (demangle_encoding): Rename variable.
      	(demangle_name): Rename parameter.  Handle return type
      	suppression.
      	(demangle_nested_name): Rename parameter.
      	(demangle_prefix): Likewise.  Change return type suppression.
      	(demangle_unqualified_name): Add parameter.  Flag constructors and
      	conversion operators.
      	(demangle_special_name): Fix comment.
      	(demangle_type): Rename variable.
      	(demangle_bare_function_type): Check for missing return type and
      	parameter.
      	(demangle_class_enum_type): Rename parameter.
      	(demangle_discriminator): Fix misspelling in comment.
      
      From-SVN: r36168
      Alex Samuel committed
    • configure.in (Cygwin): special case cygwin only when we're building cygwin, not… · 2f31ed7e
      configure.in (Cygwin): special case cygwin only when we're building cygwin, not when we're hosting cygwin.
      
      * configure.in (Cygwin): special case cygwin only when we're
      building cygwin, not when we're hosting cygwin.
      
      From-SVN: r36164
      DJ Delorie committed
    • cp-demangle.c (demangle_template_arg): Eat an `E' after an <expression>. · 02bcb9c6
      	* cp-demangle.c (demangle_template_arg): Eat an `E' after an
      	<expression>.
      
      From-SVN: r36153
      Alex Samuel committed
    • cp-demangle.c (demangle_type_ptr): Increment position past pointer and reference characters. · aee749cf
      	* cp-demangle.c (demangle_type_ptr): Increment position past
      	pointer and reference characters.
      
      From-SVN: r36151
      Alex Samuel committed
    • cp-demangle.c (demangle_nv_offset): New function. · 92a16bbe
      	* cp-demangle.c (demangle_nv_offset): New function.
      	(demangle_v_offset): Likewise.
      	(demangle_call_offset): Likewise.
      	(demangle_special_name): Update thunk demangling to comply with
      	ABI changes.
      
      From-SVN: r36150
      Alex Samuel committed
    • In include: · 31e0ab1f
              * dyn-string.h: Adjust formatting.
              (dyn_string_insert_char): New macro.  New declaration.
      
      In libiberty:
      
              * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
              (substitution_def): Remove template_parm_number.
              (NOT_TEMPLATE_PARM): Remove.
              (result_insert_string): New macro.
              (result_insert): Likewise.
              (result_insert_char): Likewise.
              (substitution_add): Remove last parameter.  Don't store template
              parm number.
              (BFT_NO_RETURN_TYPE): Define as NULL.
              (demangle_encoding): Adjust call to demangle_bare_function_type.
              (demangle_name): Adjust substitution.  Adjust call to
              substitution_add.
              (demangle_prefix): Adjust call to substitution_add.
              (demangle_identifier): Handle anonymous namespaces.
              (demangle_operator_name): Change demangling of vendor-extended
              operator to match ABI changes.
              (demangle_type_ptr): Change parameters.  Make recursive.  Handle
              substitutions here.
              (demangle_type): Adjust calls to demangle_template_param,
              substitution_add, and demangle_type_ptr.  Fix substitution of
              templated types.
              (demangle_function_type): Change parameter to a pointer.
              (demangle_bare_function_type): Likewise.  Adjust insertion point.
              (demangle_template_param): Remove last parameter.
              (demangle_expr_primary): Remove unused variable.  Adjust call to
              demangle_template_param.
              (is_mangled_char): Accept `$' and `.'.
              * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
              * dyn-string.c (dyn_string_insert_char): New function.
      
      From-SVN: r36148
      Alex Samuel committed
  26. 31 Aug, 2000 1 commit
    • Add testcases and missing changelogs: · ccbc3eb7
      2000-08-31  Hans-Peter Nilsson  <hp@axis.com>
      
      	* testsuite/demangle-expected: Add nine tests for
      	underscore-after-number followed by five tests for name-signature
      	delimiter.
      
      2000-07-24  Hans-Peter Nilsson  <hp@axis.com>
      
      	* cplus-dem.c (work_stuff_copy_to_from): New.
      	(delete_non_B_K_work_stuff): New.
      	(delete_work_stuff): New.
      	(mop_up): Break out work_stuff destruction to delete_work_stuff.
      	(iterate_demangle_function): New.
      	(demangle_prefix): Call iterate_demangle_function instead of
      	demangle_function_name.  Leave handling of name-signature
      	__-delimiters to iterate_demangle_function.
      
      	* cplus-dem.c (demangle_integral_value): Strip an optional
      	following underscore cautiously.  Handle negative numbers.
      
      From-SVN: r36086
      Hans-Peter Nilsson committed