1. 26 Jan, 2004 29 commits
    • class.c (add_method): Just check processing_template_decl to determine whether… · c353b8e3
      class.c (add_method): Just check processing_template_decl to determine whether or not we are within a...
      
      	* class.c (add_method): Just check processing_template_decl to
      	determine whether or not we are within a template.
      	* decl2.c (maybe_retrofit_in_chrg): Likewise.
      	* init.c (decl_constant_value): Check the type of the declaration,
      	not TREE_READONLY.
      	* name-lookup.c (maybe_push_to_top_level): Rename to ...
      	(push_to_top_level): ... this.
      	* name-lookup.h (maybe_push_to_top_level): Do not declare it.
      	* pt.c (push_template_decl_real): Reorder condition for speed.
      	(convert_template_argument): Use dependency-checking functions in
      	place of uses_template_parms.
      	(lookup_template_class): Avoid calling uses_template_parms more
      	than once.
      	(uses_template_parms): Reimplement, using dependency-checking
      	functions.
      	(instantiate_class_template): Use push_to_top_level, not
      	maybe_push_to_top_level.
      	(type_unification_real): Simplify.
      	(type_dependent_expression_p): Handle OFFSET_REFs and
      	TEMPLATE_DECLs.
      	(any_dependent_template_arguments_p): Handle multiple levels of
      	template argument.
      	* semantics.c (expand_or_defer_fn): Do not check
      	uses_template_parms for template instantiations.
      	* typeck.c (comptypes): Avoid calling cp_type_quals.
      
      From-SVN: r76647
      Mark Mitchell committed
    • Split slow unaligned load/store into smaller loads and stores. · d9b7db12
      OKed by David Edelsohn.
      
      From-SVN: r76646
      Fariborz Jahanian committed
    • Use adjust_address_nv directly with appropriate mode. · 11b25716
      OKed by David Edelsohn.
      
      From-SVN: r76645
      Fariborz Jahanian committed
    • xtensa-protos.h: Remove the prototype for xtensa_builtin_saveregs. · 4c45af42
      	* config/xtensa/xtensa-protos.h: Remove the prototype for
      	xtensa_builtin_saveregs.
      	* config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
      	(TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
      	(TARGET_PROMOTE_PROTOTYPES): Likewise.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	(TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
      	(xtensa_builtin_saveregs): Make it static.
      	(xtensa_return_in_memory): New.
      	* config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
      	(PROMOTE_FUNCTION_RETURN): Likewise.
      	(PROMOTE_PROTOTYPES): Likewise.
      	(STRUCT_VALUE): Likewise.
      	(RETURN_IN_MEMORY): Likewise.
      	(EXPAND_BUILTIN_SAVEREGS): Likewise.
      
      From-SVN: r76644
      Kazu Hirata committed
    • arm.c (TARGET_SETUP_INCOMING_VARARGS): New. · 1cc9f5f5
      	* config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
      	(arm_setup_incoming_varargs): Likewise.
      	* config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
      
      From-SVN: r76643
      Kazu Hirata committed
    • cris.c (TARGET_SETUP_INCOMING_VARARGS): New. · 558d352a
      	* config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
      	(cris_setup_incoming_varargs): Likewise.
      	* config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
      
      From-SVN: r76640
      Kazu Hirata committed
    • 20040124-1.c: Moved test from here... · 044701ce
      	* gcc.dg/20040124-1.c: Moved test from here...
      	* gcc.c-torture/compile/20040124-1.c: ...to here.
      
      From-SVN: r76639
      Ian Lance Taylor committed
    • ns32k.c (TARGET_STRUCT_VALUE_RTX): New. · 2001a5cf
      	* config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
      	(ns32k_struct_value_rtx): Likewise.
      	* config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
      	NS32K_STRUCT_VALUE_REGNUM.
      
      From-SVN: r76638
      Kazu Hirata committed
    • arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New. · f9ba5949
      	* config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
      	(TARGET_PROMOTE_PROTOTYPES): Likewise.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(arm_struct_value_rtx): Likewise.
      	* config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
      	(STRUCT_VALUE): Likewise.
      	(STRUCT_VALUE_REGNUM): Likewise.
      	(PROMOTE_PROTOTYPES): Likewise.
      
      From-SVN: r76636
      Kazu Hirata committed
    • ia64-protos.h: Remove the prototype for ia64_setup_incoming_varargs and ia64_return_in_memory. · 351a758b
      	* config/ia64/ia64-protos.h: Remove the prototype for
      	ia64_setup_incoming_varargs and ia64_return_in_memory.
      	* config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	(TARGET_SETUP_INCOMING_VARARGS): Likewise.
      	(TARGET_STRICT_ARGUMENT_NAMING): Likewise.
      	(ia64_setup_incoming_varargs): Adjust the arguments to meet
      	the requirement of TARGET_SETUP_INCOMING_VARARGS.
      	(ia64_return_in_memory): Make it static.  Change the return
      	type to bool from int.  Add an argument.
      	(ia64_struct_value_rtx): New.
      	* config/ia64/ia64.h: Remove commented-out definitions of
      	PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
      	PROMOTE_PROTOTYPES.
      	(RETURN_IN_MEMORY): Remove.
      	(STRUCT_VALUE_REGNUM): Likewise.
      	(STRICT_ARGUMENT_NAMING): Likewise.
      
      From-SVN: r76635
      Kazu Hirata committed
    • [multiple changes] · 26fd4eae
      2004-01-26  Ed Schonberg  <schonberg@gnat.com>
      
      	* exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
      	one-dimensional array an slice assignments, when component type is
      	controlled.
      
      	* exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
      	component type is controlled, and control_actions are in effect, use
      	TSS procedure rather than generating inline code.
      
      	* exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
      	arrays with controlled components.
      
      2004-01-26  Vincent Celier  <celier@gnat.com>
      
      	* gnatcmd.adb (GNATCmd): Add specification of argument file on the
      	command line for the non VMS case.
      
      	* gnatlink.adb (Process_Binder_File): When building object file, if
      	GNU linker is used, put all object paths between quotes, to prevent ld
      	error when there are unusual characters (such as '!') in the paths.
      
      	* Makefile.generic: When there are sources in Ada and the main is in
      	C/C++, invoke gnatmake with -B, instead of -z.
      
      	* vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
      	from VMS_Conversion.
      	(Process_Argument): New procedure, extracted from VMS_Conversion. Add
      	specification of argument file on the command line.
      
      2004-01-26  Bernard Banner  <banner@gnat.com>
      
      	* Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
      
      2004-01-26  Ed Schonberg  <schonberg@gnat.com>
      
      	* snames.adb: Update copyright notice.
      	Add info on slice assignment for controlled arrays.
      
      From-SVN: r76634
      Arnaud Charlet committed
    • GtkFramePeer.java (menuBarHeight): Mark private. · ecf67f46
      2004-01-26  Kim Ho  <kho@redhat.com>
      
              * gnu/java/awt/peer/gtk/GtkFramePeer.java (menuBarHeight): Mark
              private.
              (setMenuBar): Grab MenuBar height and change insets.
              (setBounds): Account for MenuBar height.
              (postInsetsChangedEvent): Ditto.
              (postSizeAllocateEvent): Remove.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              (menubar_resize_cb): Remove
              (setMenuBarPeer): Remove callback.
              (getMenuBarHeight): Use size requisition instead of
              allocation.
      
      From-SVN: r76633
      Kim Ho committed
    • basic_string.h (replace(iterator, iterator, const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT. · 4d39d873
      2004-01-26  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/basic_string.h (replace(iterator, iterator,
      	const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
      	(replace(iterator, iterator, const _CharT*)): Ditto.
      	(replace(iterator, iterator, const _CharT*, size_type)):
      	Add missing _GLIBCXX_DEBUG_PEDASSERT.
      
      From-SVN: r76630
      Paolo Carlini committed
    • re PR target/13666 (deviation from the psABI for small unions) · a7bba6ca
      	PR target/13666
      	* config/sparc/sparc.c (function_arg_union_value): New function.
      	(function_arg): Use it to deal with unions.
      	(function_value): Likewise.  Define 'regbase' only for ARCH64.
      	Replace a conditional statement by a simpler one.
      
      From-SVN: r76628
      Eric Botcazou committed
    • basic_string.tcc (replace(size_type, size_type, const _CharT*, size_type)):… · 2cb612d1
      basic_string.tcc (replace(size_type, size_type, const _CharT*, size_type)): Implement optimized in-place algorithm for non-overlapping ranges.
      
      2004-01-26  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/basic_string.tcc (replace(size_type,
      	size_type, const _CharT*, size_type)): Implement optimized
      	in-place algorithm for non-overlapping ranges.
      	* testsuite/21_strings/basic_string/replace/char/6.cc: New.
      	* testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
      
      	* include/bits/basic_string.tcc (insert(size_type,
      	const _CharT*, size_type)): Tweak slightly.
      
      From-SVN: r76625
      Paolo Carlini committed
    • mips.c (mips16_optimize_gp): Delete. · 6865f4cd
      	* config/mips/mips.c (mips16_optimize_gp): Delete.
      	(mips_reorg): Don't call it.
      
      From-SVN: r76623
      Richard Sandiford committed
    • sparc-ret.c: Run only in 32-bit mode. · f210a007
      	* gcc.dg/sparc-ret.c: Run only in 32-bit mode.  Don't scan
      	the assembly output if -m64 is passed.
      
      From-SVN: r76621
      Eric Botcazou committed
    • configure.ac: Add m4_pattern_allow(LIBOBJS). · 5254fd7b
      	* configure.ac: Add m4_pattern_allow(LIBOBJS).
      	* configure: Regenerate.
      
      From-SVN: r76619
      Ian Lance Taylor committed
    • c4x.md (addqi3_noclobber): Move up pecking order. · 2d6d0eb5
      	* config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
      	(floatunsqihf2): Remove operand 6.
      	(fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
      	fix patterns.
      	(ldi_conditional, ldf_conditional): Validate operands.
      
      From-SVN: r76618
      Michael Hayes committed
    • c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove. · 8f422192
      	* config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
      	(HAVE_GAS_HIDDEN): Undefine as interim measure.
      
      From-SVN: r76617
      Michael Hayes committed
    • re PR c++/13833 (Conversion problem in template function) · b7c707d1
      	PR c++/13833
      	* call.c (build_over_call): Do not convert arguments when
      	processing a template.
      	* pt.c (build_non_dependent_expr): Do not build a
      	NON_DEPENDENT_EXPR for arithmetic constants.
      
      	PR c++/13833
      	* g++.dg/template/cond3.C: New test.
      
      From-SVN: r76616
      Mark Mitchell committed
    • c4x.c (c4x_legitimate_address_p): Invalidate direct memory references if TARGET_EXPOSE_LDP nonzero. · 9c3602e4
      	* config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
      	memory references if TARGET_EXPOSE_LDP nonzero.
      
      From-SVN: r76611
      Michael Hayes committed
    • Fix last commit. · b6ab76d6
      From-SVN: r76608
      Michael Hayes committed
    • c4x.c (c4x_valid_operands): More aggressively reject invalid operand combinations. · b7bbb574
      	* config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
      	invalid operand combinations.
      
      From-SVN: r76607
      Michael Hayes committed
    • Daily bump. · 3a03ba74
      From-SVN: r76604
      GCC Administrator committed
    • c4x.c (c4x_check_legit_addr): Rename to c4x_legitimate_address_p. · 1e903c61
      	* config/c4x/c4x.c (c4x_check_legit_addr): Rename to
      	c4x_legitimate_address_p.  Fix post_modify check.
      	* config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
      	* config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
      
      From-SVN: r76601
      Michael Hayes committed
    • pa-protos.h: Remove the prototype for hppa_builtin_saveregs. · 3f12cd9b
      	* config/pa/pa-protos.h: Remove the prototype for
      	hppa_builtin_saveregs.  Add a prototype for
      	pa_return_in_memory.
      	* config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
      	(TARGET_PROMOTE_PROTOTYPES): Likewise.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	(TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
      	(pa_struct_value_rtx): Likewise.
      	(pa_return_in_memory): Likewise.
      	* config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
      	PA_STRUCT_VALUE_REGNUM.
      	(INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
      	(EXPAND_BUILTIN_SAVEREGS): Remove.
      	(PROMOTE_PROTOTYPES): Likewise.
      	(PROMOTE_FUNCTION_RETURN): Likewise.
      
      From-SVN: r76600
      Kazu Hirata committed
    • vax.c (TARGET_PROMOTE_PROTOTYPES): New. · f289e226
      	* config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(vax_struct_value_rtx): Likewise.
      	* config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
      	VAX_STRUCT_VALUE_REGNUM.
      	(PROMOTE_PROTOTYPES): Remove.
      
      From-SVN: r76599
      Kazu Hirata committed
  2. 25 Jan, 2004 11 commits