1. 27 Jan, 2004 3 commits
    • system.h (CHAR_BITFIELD): Delete. · 1c62e7b2
      	* system.h (CHAR_BITFIELD): Delete.
      	(BOOL_BITFIELD): New.
      	* c-decl.c (c_scope): Use BOOL_BITFIELD.
      	* gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
      cp:
      	* cp-tree.h (language_function, lang_type_header): Use
      	BOOL_BITFIELD.
      	* name-lookup.h (cp_binding_level): Likewise.
      
      From-SVN: r76686
      Kaveh R. Ghazi committed
    • c_locale.cc: Fix throw messages to use the __N marker. · ba9119ec
      2004-01-26  Paolo Carlini  <pcarlini@suse.de>
      
      	* config/locale/generic/c_locale.cc: Fix throw messages
      	to use the __N marker.
      	* config/locale/gnu/c_locale.cc: Likewise.
      	* config/locale/ieee_1003.1-2001/codecvt_specializations.h:
      	Likewise.
      	* docs/html/17_intro/C++STYLE: Likewise.
      	* include/bits/basic_ios.tcc: Likewise.
      	* include/bits/fstream.tcc: Likewise.
      	* include/bits/vector.tcc: Likewise.
      	* include/ext/ropeimpl.h: Likewise.
      	* include/std/std_bitset.h: Likewise.
      	* src/ios.cc: Likewise.
      	* src/locale.cc: Likewise.
      	* src/localename.cc: Likewise.
      
      From-SVN: r76684
      Paolo Carlini committed
    • Daily bump. · efc8d3d2
      From-SVN: r76681
      GCC Administrator committed
  2. 26 Jan, 2004 37 commits
    • arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New. · 96ab60fc
      	* config/arc/arc.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.
      	(arc_return_in_memory): Likewise.
      	* config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
      	(PROMOTE_FUNCTION_RETURN): Likewise.
      	(RETURN_IN_MEMORY): Likewise.
      	(STRUCT_VALUE): Likewise.
      
      From-SVN: r76677
      Kazu Hirata committed
    • c-parse.in (extension): Use itype. · 1aaec916
              * c-parse.in (extension): Use itype.
              (SAVE_EXT_FLAGS): Don't allocate a tree.
              (RESTORE_EXT_FLAGS): Don't read a tree.
      
      From-SVN: r76676
      Richard Henderson committed
    • Revert accidental commit. · 242d8792
      From-SVN: r76675
      Richard Henderson committed
    • c-parse.in (extension): Use itype. · 6d4b0a5d
              * c-parse.in (extension): Use itype.
              (SAVE_EXT_FLAGS): Don't allocate a tree.
              (RESTORE_EXT_FLAGS): Don't read a tree.
      
      From-SVN: r76674
      Richard Henderson committed
    • * objc.dg/stret-1.m (glob): Renamed to globa. · 32e7d1e9
      From-SVN: r76671
      Rainer Orth committed
    • Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB. · 7f996f90
      	* Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
      
      	* 5fsystem.ads (Functions_Return_By_DSP): Set to False.
      	(ZCX_By_Default): Likewise.
      	(Front_End_ZCX_Support): Likewise.
      
      	* 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
      	(Initialize_Lock): Mark Level unreferenced.
      	(Sleep): Mark Reason unreferenced.
      	(Timed_Sleep): Likewise.
      	(Wakeup): Likewise.
      	(Exit_Task): Use Result.
      	(Check_No_Locks): Mark Self_ID unreferenced.
      
      	* 5gtasinf.adb (New_Sproc): Make Attr constant.
      	(Bound_Thread_Attributes): Make Sproc constant.
      	(New_Bound_Thread_Attributes): Likewise.
      
      From-SVN: r76669
      Rainer Orth committed
    • 2004-01-26 David Jee <djee@redhat.com> · 7edbd87e
      	* gnu/java/awt/peer/gtk/GtkComponentPeer.java
      	(handleEvent): Implemented. Handles PaintEvents.
      	(paint): Implemented. Use GTK native methods to queue updates
              for this heavyweight peer.
      	* gnu/java/awt/peer/gtk/GtkContainerPeer.java
      	(handleEvent): Removed.
      	* java/awt/Component.java
      	(paint): Implemented. Explictly paint the heavyweight peer.
      	(update): Clear the background for heavyweight components.
      	(paintAll): No need to call peer.paint() anymore.
      	(processEvent): Don't process PaintEvents here. It's now done in
      	the peer's handleEvent().
      	(processPaintEvent): Removed.
      	* java/awt/Container.java
      	(paint): No need to call super.paint(). Visit heavyweight
      	children as well.
      	(update): Don't clear the background here.  It's done in
      	Component.update().
      	(visitChildren): Added check to not recurse into Containers.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
      	(filter_expose_event_handler): New method.  Filter unwanted
      	expose events while painting heavyweight peers.
      	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
      	New method. Connect filter and block pre_event_handler.
      	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
      	New method. Disconnect filter and unblock pre_event_handler.
      	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea):
      	New method. Invalidate and update given area.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
      	(pre_event_handler): Add checks for unwanted expose events.
      
      From-SVN: r76668
      David Jee committed
    • 2004-01-26 David Jee <djee@redhat.com> · 81a88a61
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
      	(find_bg_color_widget): For GtkButton, return its child.
      
      From-SVN: r76667
      David Jee committed
    • cselib.c (discard_useless_values): Clear out value pointer pointing to… · 18874af6
      cselib.c (discard_useless_values): Clear out value pointer pointing to datastructure to be recycled.
      
      
      	* cselib.c (discard_useless_values):  Clear out value pointer pointing
      	to datastructure to be recycled.
      
      From-SVN: r76666
      Jan Hubicka committed
    • basic_string.h (_M_replace_aux): Use the __N marker in throw message. · 0e50667c
      2004-01-26  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/basic_string.h (_M_replace_aux): Use the
      	__N marker in throw message.
      	* include/bits/basic_string.tcc (assign(const _CharT*,
      	size_type), insert(size_type, const _CharT*, size_type),
      	replace(size_type, size_type, const _CharT*, size_type),
      	reserve, _Rep::_S_create, resize, _M_replace_dispatch):
      	Likewise.
      
      	* include/bits/basic_string.h, include/bits/basic_string.tcc:
      	Fold overlong lines, minor formatting changes.
      
      From-SVN: r76664
      Paolo Carlini committed
    • h8300.c (h8300_tiny_constant_address_p): Use a switch statement instead of a… · d6456562
      h8300.c (h8300_tiny_constant_address_p): Use a switch statement instead of a chain of if statements.
      
      	* config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
      	switch statement instead of a chain of if statements.
      
      From-SVN: r76663
      Kazu Hirata committed
    • re PR c++/13663 (gcc segfaults on invalid use of member) · 6f69173e
      	PR c++/13663
      	* semantics.c (finish_for_expr): Check for unresolved overloaded
      	functions.
      
      	PR c++/13363
      	* g++.dg/expr/for1.C: New test.
      
      From-SVN: r76659
      Mark Mitchell committed
    • contrib.texi: Minor cleanup for Paolo Carlini's entry. · 5cea9d5d
              * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
              acute accents for Petur Runolfsson's entry.
      
      From-SVN: r76655
      Jeff Law committed
    • pdp11.c (TARGET_STRUCT_VALUE_RTX): New. · 04e9daaf
      	* config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	* config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
      	(RETURN_IN_MEMORY): Likewise.
      
      From-SVN: r76654
      Kazu Hirata committed
    • Test case for PR middle-end/13779. · b2037eac
      From-SVN: r76652
      Fariborz Jahanian committed
    • rs6000.c, rs6000.md, function.c, expr.c checked in. · 6c8066b9
      rs6000.c, rs6000.md, function.c, expr.c checked in. All related to -mcpu=G5
      compilation mode.
      
      From-SVN: r76651
      Fariborz Jahanian committed
    • re PR middle-end/13779 ([3.4 only] powerpc64: incorrect initialization of 'long… · d3a16cbd
      re PR middle-end/13779 ([3.4 only] powerpc64: incorrect initialization of 'long long' with constant)
      
      PR middle-end/13779
      split constant correctly into register components of PARALLEL insn.
      OKed by Roger Sayle.
      
      From-SVN: r76649
      Fariborz Jahanian committed
    • Do not assign long long argument to memory in prologue if loaded in register. · 6e290f11
      OKed by Richard Henderson.
      
      From-SVN: r76648
      Fariborz Jahanian committed
    • 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