1. 15 Sep, 2003 11 commits
    • floatformat.c (floatformat_is_valid): New function. · 9c8860c3
      	* floatformat.c (floatformat_is_valid): New function.
      	(get_field, put_field): Correct comments.
      
      From-SVN: r71405
      Daniel Jacobowitz committed
    • * floatformat.h (floatformat_is_valid): Add prototype. · 0d66a821
      From-SVN: r71404
      Daniel Jacobowitz committed
    • haifa-sched.c (schedule_block): Use ready_remove_first instead of choose_ready… · 3d9b0280
      haifa-sched.c (schedule_block): Use ready_remove_first instead of choose_ready for non-dfa insn scheduling.
      
      2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* haifa-sched.c (schedule_block): Use ready_remove_first instead
      	of choose_ready for non-dfa insn scheduling.
      
      From-SVN: r71403
      Vladimir Makarov committed
    • re PR c++/12184 (ICE with trying to convert an incomplete type) · 3afd2e20
      cp:
      	PR c++/12184
      	* typeck.c (convert_arguments): Return error_mark_node for an
      	incomplete parameter. Make error message more informative.
      testsuite:
      	PR c++/12184
      	* g++.dg/expr/call2.C: New test.
      
      From-SVN: r71402
      Nathan Sidwell committed
    • invoke.texi (Warning Options): Describe -Wold-style-definition. · 2352184a
      2003-09-15  Andreas Jaeger  <aj@suse.de>
                  Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
      
      	* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
      	* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
      	* c-parse.in: Warn about old-style parameter definition.
      	* c-common.c: Define warn_old_style_defintion.
      	* c-common.h: Declare it.
      	* c.opt: Add Wold-style-defintion.
      
      From-SVN: r71401
      Andreas Jaeger committed
    • invoke.texi (Warning Options): Describe -Wold-style-definition. · c034f121
      2003-09-15  Andreas Jaeger  <aj@suse.de>
                  Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
      
      	* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
      	* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
      	* c-parse.in: Warn about old-style parameter definition.
      	* c-common.c: Define warn_old_style_defintion.
      	* c-common.h: Declare it.
      	* c.opt: Add Wold-style-defintion.
      
      testsuite:
      2003-09-15  Andreas Jaeger  <aj@suse.de>
      
      	* gcc.dg/Wold-style-definition-1.c: New test.
      
      From-SVN: r71400
      Andreas Jaeger committed
    • altivec.h: Convert () prototypes to ISO C90. · 863d938c
      	* config/rs6000/altivec.h: Convert () prototypes to ISO C90.
      	* config/rs6000/rs6000.c: Likewise.
      
      From-SVN: r71399
      Andreas Jaeger committed
    • re PR rtl-optimization/10914 (unswitch loops does not work on powerpc) · ec6ec6aa
      2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
      
              PR optimization/10914
              * expr.h (get_condition, canonicalize_condition): Declaration changed.
              * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
              and canonicalize_condition calls.
              * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
              delete_null_pointer_checks): Ditto.
              * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
              * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
              * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
              (canonicalize_condition, get_condition): Allow to return comparisons
              of cc mode registers.
              * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
              cc mode registers comparison in condition.
      
      From-SVN: r71398
      Zdenek Dvorak committed
    • re PR c++/3907 (nested template parm collides with member name) · a7e8c268
      	* coverage.c (create_coverage): Do not call pushlevel/poplevel.
      	* langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
      	function.
      	* langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
      
      	PR c++/3907
      	* class.c (maybe_note_name_used_in_class): Refine test for whether
      	or not we are in a class scope.
      
      	* cp-tree.h (language_function): Remove x_expanding_p.
      	(expanding_p): Remove.
      	(doing_semantic_analysis_p): Remove.
      	(scope_kind): Add sk_function_parms, sk_class,
      	sk_namespace.
      	(innermost_scope_kind): New method.
      	* call.c (cxx_type_promotes_to): Use type_decays_to.
      	* cp-lang.c (LANG_HOOKS_PUSHLEVEL): Redefine.
      	(LANG_HOOKS_POPLEVEL): Likewise.
      	* decl.c (cp_binding_level): Remove parm_flag, template_parms_p,
      	template_spec_p, namespace_p, is_for_scope, is_try_scope, and
      	is_catch_scope.  Add kind and explicit_spec_p.
      	(cxx_scope_descriptor): Use a lookup table.
      	(find_class_binding_level): Use "kind" field in binding_level, not
      	the various flags.
      	(pop_binding_level): Likewise.
      	(innermost_nonclass_level): Likewise.
      	(toplevel_bindings_p): Likewise.
      	(namespace_bindings_p): Likewise.
      	(template_parm_scope_p): Likewise.
      	(innermost_scope_kind): New method.
      	(current_tmpl_spec_kind): Use "kind" field in binding_level, not
      	the various flags.
      	(pushlevel): Remove check for doing_semantic_analysis_p.
      	(begin_scope): Simplify.
      	(add_decl_to_level): Use "kind" field in binding_level, not
      	the various flags.
      	(push_local_binding): Likewise.
      	(pop_label): Remove check for doing_semantic_analysis_p.
      	(poplevel): Use "kind" field in binding_level, not
      	the various flags.
      	(set_block): Remove check for doing_semantic_analysis_p.
      	(pushlevel_class): Use "kind" field in binding_level, not
      	the various flags.
      	(poplevel_class): Likewise.
      	(initial_push_namespace_scope): Likewise.
      	(maybe_push_to_top_level): Likewise.
      	(set_identifier_type_value_with_scope): Likewise.
      	(pop_everything): Likewise.
      	(maybe_process_template_type_declaration): Likewise.
      	(pushtag): Likewise.
      	(pushdecl): Likewise.
      	(pushdecl_with_scope): Likewise.
      	(check_previous_goto_1): Likewise.
      	(define_label): Likewise.
      	(finish_case_label): Likewise.
      	(lookup_tag): Likewise.
      	(unqualified_namespace_lookup): Likewise.
      	(lookup_name_real): Likewise.
      	(lookup_name_current_level): Likewise.
      	(lookup_type_current_level): Likewise.
      	(record_builtin_type): Likewise.
      	(cp_make_fname_decl): Likewise.
      	(maybe_inject_for_scope_var): Likewise.
      	(cp_finish_decl): Remove check for doing_semantic_analysis_p.
      	(start_function): Use begin_scope, not pushlevel.
      	(finish_function): Use "kind" field in binding_level, not
      	the various flags.
      	(start_method): Use begin_scope, not pushlevel.
      	(make_label_decl): Do not check expanding_p.
      	(save_function-data): Do not set expanding_p.
      	(cxx_push_function_context): Do not clear expanding_p.
      	* semantics.c (cxx_expand_function_start): Do not set expanding_p.
      
      	PR c++/3907
      	* g++.dg/parse/template12.C: New test.
      
      	* g++.dg/abi/bitfield11.C: New test.
      	* g++.dg/abi/bitfield12.C: Likewise.
      
      From-SVN: r71393
      Mark Mitchell committed
    • class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field… · 29edb15c
      class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its...
      
      	* class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for
      	an bit-field whose width exceeds that of its type.
      
      	* g++.dg/abi/bitfield11.C: New test.
      	* g++.dg/abi/bitfield12.C: Likewise.
      
      From-SVN: r71392
      Mark Mitchell committed
    • Daily bump. · bd12da49
      From-SVN: r71390
      GCC Administrator committed
  2. 14 Sep, 2003 14 commits
  3. 13 Sep, 2003 6 commits
  4. 12 Sep, 2003 9 commits
    • pretty-print.c (pp_construct): Use xcalloc instead of xmalloc when allocating pp->buffer. · c4555dd9
      2003-09-12  Ziemowit Laski  <zlaski@apple.com>
      
              * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
              when allocating pp->buffer.
      
      From-SVN: r71346
      Ziemowit Laski committed
    • darwin.c (machopic_select_rtx_section): Use const_data_section for things that… · 2e53734e
      darwin.c (machopic_select_rtx_section): Use const_data_section for things that might require relocation.
      
      	* config/darwin.c (machopic_select_rtx_section): Use
      	const_data_section for things that might require relocation.
      
      From-SVN: r71345
      Geoffrey Keating committed
    • re PR bootstrap/12264 (Mainline faield to bootstrap) · edeb3871
              PR bootstrap/12264
              * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
      
      From-SVN: r71343
      H.J. Lu committed
    • elf.h (ASM_SPEC): Remove no-density option. · 6cedbe44
      	* config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
      	* config/xtensa/linux.h (ASM_SPEC): Likewise.
      	* config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
      	-mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
      	-m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
      	-m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
      	-m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
      	-m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
      	and redefine corresponding TARGET_* macros with constants from the
      	xtensa-config.h header.
      	* doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
      	for the options listed above.
      
      From-SVN: r71339
      Bob Wilson committed
    • Use ISO C90 prototypes. · a2369ed3
      From-SVN: r71336
      Dale Johannesen committed
    • re PR rtl-optimization/8967 (Making class data members `const' pessimizes code) · d2399d75
      	PR optimization/8967
      	* alias.c (write_dependence_p): Modify to take an additional constp
      	argument that controls whether the UNCHANGING_RTX_P flags are used.
      	(anti_dependence, output_dependence): Adjust write_dependence_p
      	callers to pass this additional argument, to return the same result.
      	(unchanging_anti_dependence): New variant of anti_dependence that
      	ignores the UNCHANGING_RTX_P property on memory references.
      	* rtl.h (unchaning_anti_dependence): Prototype here.
      	* flow.c (init_propagate_block): Place fake constant mem writes on
      	the mem_set_list so that dead writes to const variables are deleted.
      	(insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
      	(mark_used_regs): Likewise.
      
      From-SVN: r71332
      Roger Sayle committed
    • mcore-protos.h (mcore_r15_operand_p): Declare. · f0f4da32
      	* config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
      	(mcore_secondary_reload_class): Declare.
      	(mcore_output_inline_const_forced): Remove.
      	* config/mcore/mcore.md (movsi): Remove the code that forced
      	non-inlineable constants into a register if the target was r15
      	or the stack pointer.  Remove constant restrictions from the main
      	define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
      	of an r <- P alternative.  Remove fallback define_insn for reload.
      	(movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
      	define_insn.  Use mcore_output_move in the remaining define_insn.
      	Adjust condition and constraints in the way as for movsi.
      	(movdi): Always split unacceptable constants into two.  Use
      	simplify_gen_subreg instead of operand_subword{,_force}.
      	* config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
      	(mcore_output_move): Support HImode and QImode moves as well.
      	(mcore_m15_operand_p): New function.
      	(mcore_reload_class): Use it to detect cases where LRW_REGS are better.
      	(mcore_secondary_reload_class): New function.
      	* config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
      	terms of mcore_secondary_reload_class.
      
      From-SVN: r71330
      Richard Sandiford committed