1. 02 Jul, 2003 25 commits
    • c-common.h (c_common_init_options): New prototype. · b86f6cd9
      	* c-common.h (c_common_init_options): New prototype.
      	* c-opts.c (deferred_size): Remove.
      	(defer_opt): Array is now pre-allocated.
      	(c_common_init_options): Pre-allocate deferred_opts.  Make
      	lang_flags unsigned.
      	(push_command_line_options): Free deferred_opts.
      	* hooks.c (hook_uint_uint_constcharptrptr_0): New.
      	* hooks.h (hook_uint_uint_constcharptrptr_0): New.
      	* langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
      	* langhooks.h (struct lang_hooks): New prototype for init_options.
      	* main.c (main): Cast argv.
      	* opts.c (handle_option, handle_options): Update prototypes.
      	(decode_options): save_argc, save_argv are not global.  Constify.
      	* opts.h (decode_options): New prototype.
      	* toplev.c (general_init): New protoype.
      	(save_argv): Make static.
      	(save_argc): Remove.
      	(print_switch_values, general_init): Constify.
      	(toplev_main): Save argv.
      	* toplev.h (toplev_main): Update prototype.
      	(save_argc, save_argv): Remove.
      ada:
      	* misc.c (save_argc, save_argv): Make static.
      	(gnat_init_options): New prototype.
      	(gnat_init_options): Update.
      f:
      	* top.c (ffe_init_options): Update prototype.
      	* top.h (ffe_init_options): Update prototype.
      java:
      	* lang.c (java_init_options): Update prototype.
      treelang:
      	* tree1.c (treelang_init_options): Update prototype.
      	* treelang.h (treelang_init_options): Update prototype.
      
      From-SVN: r68850
      Neil Booth committed
    • basic_string.tcc (_M_replace_aux): Constify __n1 and __off1. · 41ba4c46
      2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
      
      	* include/bits/basic_string.tcc (_M_replace_aux): Constify
      	__n1 and __off1.
      
      From-SVN: r68849
      Paolo Carlini committed
    • dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS. · f23b9d52
              * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
              (emit_bincl_stab): Same.
              (emit_pending_bincls): Same.
      
      From-SVN: r68848
      David Edelsohn committed
    • re PR fastjar/9532 (jar -C flag is incompatible with Sun's (fastjar uses… · 5208b50b
      re PR fastjar/9532 (jar -C flag is incompatible with Sun's (fastjar uses nonportable feature of getcwd))
      
      	PR java/9532
      	* jartool.c (add_to_jar): Return 1 on failure to open file.
      	Split out -C case to:
      	* jartool.c (add_to_jar_with_dir): New function.
      
      From-SVN: r68847
      Nathanael Nerode committed
    • re PR c++/11072 (Implementation of offsetof macro) · 300e89a2
      	PR c++/11072
      	* ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
      testsuite:
      	PR c++/11072
      	* g++.dg/other/offsetof2.C: XFAIL.
      	* g++.dg/other/offsetof5.C: New.
      
      From-SVN: r68831
      Nathan Sidwell committed
    • stl_bvector.h: Fully qualify standard functions with std::, thus avoiding Koenig lookup. · da73f9de
      2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
      
      	* include/bits/stl_bvector.h: Fully qualify standard
      	functions with std::, thus avoiding Koenig lookup.
      	* include/bits/stl_construct.h: Likewise.
      	* include/bits/stl_deque.h: Likewise.
      
      From-SVN: r68828
      Paolo Carlini committed
    • 7.cc: Include <testsuite_hooks.h>, tweak. · 1c380095
      2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
      
      	* testsuite/22_locale/num_put/put/char/7.cc: Include
      	<testsuite_hooks.h>, tweak.
      	* testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
      
      From-SVN: r68827
      Paolo Carlini committed
    • Actually remove iris[34].h. · 11fedfd3
      From-SVN: r68826
      Rainer Orth committed
    • re PR c++/10219 (ICE in maybe_adjust_types_for_deduction on invalid code) · 08476342
      cp:
      	PR c++/10219
      	* pt.c (type_unification_real): Don't unify exprs of error type.
      	* tree.c (error_type): Don't die on error_type.
      testsuite:
      	PR c++/10219
      	* g++.dg/template/error1.C: New.
      
      From-SVN: r68825
      Nathan Sidwell committed
    • re PR c++/9779 (ICE in type_unknown_p when casting in static member) · 0c83a0fc
      cp:
      	PR c++/9779
      	* decl2.c (arg_assoc_class): Don't die on NULL type.
      	* typeck.c (type_unknown_p): Don't die on untyped expressions.
      testsuite:
      	PR c++/9779
      	* g++.dg/template/dependent-expr1.C: New.
      
      From-SVN: r68824
      Nathan Sidwell committed
    • re PR rtl-optimization/11210 (optimizer drops conditional with typecast from… · 1a8c4ca6
      re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed to unsigned char)
      
      	PR optimization/11210
      	* expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
      	about the behaviour with regard to bitfields.
      	* fold-const (decode_field_reference): Record outermost type in
      	case the expression is a NOP. Strip all NOPs. Set the signedness
      	to that of the outermost type (if any) when the bitsize is equal
      	to the size of the type.
      
      From-SVN: r68823
      Eric Botcazou committed
    • mips.md (addsi3): Remove workaround for adds of -32768. · 23cdfcf7
      	* config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
      	(addsi3_internal, adddi3, adddi3_internal_2): Likewise.
      	(adddi3_internal_3, addsi3_internal_2): Likewise.
      
      From-SVN: r68822
      Richard Sandiford committed
    • mips.c (machine_function): Add new fields: ignore_hazard_length_p and all_noreorder_p. · 6f2993e5
      	* config/mips/mips.c (machine_function): Add new fields:
      	ignore_hazard_length_p and all_noreorder_p.
      	(mips_flag_delayed_branch): New variable.
      	(override_options): Treat '/' as an operand punctuation character.
      	Set up mips_flag_delayed_branch.
      	(print_operand): Handle '/'.
      	(mips_output_function_prologue): Put the whole function in
      	.set noreorder and .set nomacro if all_noreorder_p is true.
      	(mips_output_function_epilogue): End the noreorder/nomacro sequence.
      	(mips16_optimize_gp): Remove "first insn" parameter.
      	(mips16_lay_out_constants): New function, split out from mips_reorg.
      	(mips_avoid_hazard, mips_avoid_hazards): New functions.
      	(mips_reorg): For mips16 code, call mips16_lay_out_constant
      	and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
      	do delayed-branch scheduling followed by hazard detection.
      	(mips_adjust_insn_length): Only account for hazards if
      	!ignore_hazard_length_p.
      	(mips_output_load_label): Add a nop to the o32 sequence if
      	the target suffers from load delays.
      	(mips_output_conditional_branch): Add %/ to the end of branches.
      	(mips_output_division): Fill the branch delay slot with %#.
      	* config/mips/mips.md: Remove redundant '%*' from mips16 branch
      	instructions.  End all other %* branches with %/.
      	(ffssi2, ffsdi2): Fix lengths.
      	(truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
      	(fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
      	(fix_truncsfsi2_macro): Likewise.
      	(mov_lwl): Set hazard to "none".
      	(ashldi3_internal): Fill the branch delay slot with %#.
      	(ashrdi3_internal, lshrdi3_internal): Likewise.
      	(exception_receiver): Explicitly set $28.
      	(hazard_nop): New pattern.
      
      From-SVN: r68821
      Richard Sandiford committed
    • cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling… · 0184bd46
      cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_inlinable_function_p.
      
      	* cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
      	before calling tree_inlinable_function_p.
      
      From-SVN: r68819
      Jan Hubicka committed
    • re PR c++/6949 (ICE in tsubst_decl, at cp/pt.c:5733) · ddb45080
      	PR c++/6949
      	* decl2.c (grokfield): Create TEMPLATE_DECLs for methods in local
      	classes.
      
      	PR c++/6949
      	* g++.dg/template/local3.C: New test.
      
      From-SVN: r68818
      Mark Mitchell committed
    • Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects check* targets, but not libs/programs). · f9f4d1e1
      2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
      
      	* testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
      	check* targets, but not libs/programs).
      	* testsuite/Makefile.in:  Regenerate.
      
      From-SVN: r68813
      Phil Edwards committed
    • inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> too. · 1a78e5a7
      	* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
      	<internal/stdio_core.h> too.
      	(stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
      	<internal/wchar_core.h> too.
      	Substitute va_list uses in inline definition.
      	* fixinc/fixincl.x: Regenerate.
      
      From-SVN: r68811
      Rainer Orth committed
    • iris5.h (SET_FILE_NUMBER): Moved here from iris3.h. · 4c82f12b
      	* config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
      	Undef before redefinition.
      	(LABEL_AFTER_LOC): Likewise.
      	(DEFAULT_SIGNED_CHAR): Likewise.
      	(ASM_OUTPUT_ASCII): Moved here from iris4.h.
      	Fix IRIX spelling.
      
      	* config/mips/iris3.h: Remove, unused.
      	* config/mips/iris4.h: Likewise.
      
      	* config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
      
      	* config/mips/iris5.h (TARGET_DEFAULT): Move ...
      	* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
      	target_cpu_default.
      
      	* config/mips/iris5.h: Move explicit includes ...
      	* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
      
      	* config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
      	* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
      	tm_defines.
      
      	* config/mips/iris6.h (TARGET_DEFAULT): Move ...
      	* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
      	target_cpu_default.
      
      	* config/mips/iris6.h: Fix IRIX spelling.
      	(MULTILIB_DEFAULTS): Undef before redefinition.
      
      	* config/mips/iris6.h: Move explicit includes ...
      	* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
      
      From-SVN: r68808
      Rainer Orth committed
    • cgraph.c (cgraph_mark_needed_node, [...]): Use next_needed field instead of aux… · 8bd87c4e
      cgraph.c (cgraph_mark_needed_node, [...]): Use next_needed field instead of aux to maintain the queue.
      
      	* cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
      	cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
      	Use next_needed field instead of aux to maintain the queue.
      	* cgraph.h (cgraph_node): Add next_needed.
      	(cgraph_varpool_node): Add next_needed; remove aux.
      	* cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
      
      From-SVN: r68807
      Jan Hubicka committed
    • Daily bump. · d6435621
      From-SVN: r68805
      GCC Administrator committed
    • cgraphunit.c (cgraph_finalize_function): Set finalized. · f6981e16
      	* cgraphunit.c (cgraph_finalize_function): Set finalized.
      	(cgraph_finalize_function): Do not examine inlinablility.
      	(cgraph_finalize_compilation_unit): Do it here.
      	* cgraph.h (cgraph_local_info): Add finalized field.
      
      From-SVN: r68803
      Jan Hubicka committed
    • ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *. · d1c60855
      	* ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
      	(gt_pch_restore): Likewise.
      
      From-SVN: r68802
      Rainer Orth committed
    • decl2.c (defer_fn): Set DECL_DEFER_OUTPUT. · 8cd2462c
      	* decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
      	(finish-file): Do not process function with DECL_DEFER_OUTPUT clear;
      	clear DECL_DEFER_OUTPUT once function is processed; avoid flags
      	massaging.
      
      	* cp-tree.h (DECL_NEEDED_P): Support unit-at-a-time
      	(expand_or_defer_fn): Declare.
      	(lower_function): Declare.
      	* decl.c (start_cleanup_fn): Use expand_or_defer_fn.
      	* decl2.c: Include cgraph.h and varpool.h
      	(maybe_emit_vtables):  Make explicit instantations as needed.
      	(mark_member_pointers, lower_function): New functions.
      	(finish_file): Do unit-at-a-time.
      	* method.c (synthesize_method): Use expand_or_defer_fn.
      	* optimize.c (maybe_clone_body): Use expand_or_defer_fn.
      	* parser.c (cp_parser_function_definition_after_decl): Use
      	expand_or_defer_fn.
      	* pt.c (instantiate_decl): Likewise.
      	* semantics.c: Include cgraph.h
      	(expand_or_defer_fn): Break out from ...
      	(expand_body): ... here; deal with unit-at-a-time.
      	* cp-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
      	LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Define.
      
      From-SVN: r68801
      Jan Hubicka committed
  2. 01 Jul, 2003 15 commits