1. 19 Jan, 2004 30 commits
    • re PR c++/13651 (double error message when using incomplete types in a struct) · be799b1e
      	PR c++/13651
      	* parser.c (cp_parser_postfix_expression): When encountering
      	incomplete type on left-hand side of "->" or ".", treat the entire
      	expression as erroneous.
      
      From-SVN: r76180
      Mark Mitchell committed
    • re PR rtl-optimization/5263 (a & b & ~a & ~b not optimized) · 9ce79a7a
      
      	PR optimization/5263
      	* simplify-rtx.c (associative_constant_p): Delete.
      	(simplify_associative_operation): Rewrite to linearize terms, and
      	attempt to simplify new term against both left and right subterms.
      	(simplify_binary_operation): Call swap_commutative_operands_p on
      	op0 and op1, not trueop0 and trueop1.  Move the initialization of
      	trueop0 and trueop1 down to where first needed.
      	(simplify_relational_operation): Likewise.
      	* rtlanal.c (commutative_operand_precedence): Also order constant
      	operands using avoid_constant_pool_reference.
      
      From-SVN: r76179
      Roger Sayle committed
    • re PR c++/13592 (C++ parser regression) · 0916f873
      	PR c++/13592
      	* g++.dg/other/error1.C (class foo): Tweak error message.
      
      From-SVN: r76177
      Mark Mitchell committed
    • re PR c++/13592 (C++ parser regression) · 9f880ef9
      	PR c++/13592
      	* call.c (build_field_call): Remove.
      	(n_build_method_call): Likewise.
      	(build_method_call): Likewise.
      	(build_new_method_call): Do not call build_field_call.
      	* class.c (n_build_method_call): Remove.
      	(print_class_statistics): Do not print it.
      	* cp-tree.h (build_method_call): Remove declaration.
      	(finish_object_call_expr): Likewise.
      	(build_new_1): Do not use build_method_call.
      	* parser.c (cp_parser_postfix_expression): Use finish_call_expr
      	when the function appearing on the right-hand-side of "." or "->"
      	is not actually a function.
      	* pt.c (tsubst_copy_and_build): Likewise.
      	* semantics.c (finish_object_call_expr): Remove.
      
      	PR c++/13592
      	* g++.dg/template/call2.C: New test.
      
      From-SVN: r76173
      Mark Mitchell committed
    • alpha.c (aligned_memory_operand): Check MEM_ALIGN, don't check memory mode. · 62e88293
              * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
              don't check memory mode.
              (unaligned_memory_operand): Likewise.
              (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
              abort for op0 not MEM.
      
              * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
              is not a reg, copy to a scratch first.
              (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
              unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
              unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
              (reload_inqi, reload_inhi): Fix mode of op0.
              (reload_inqi_help, reload_inhi_help, reload_outqi_help,
              reload_outhi_help): Likewise.  Use define_insn_and_split.
      
              * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
              as well as $29 dead.
      
      From-SVN: r76172
      Richard Henderson committed
    • fnptr-by-value-1_x.c, [...]: Guard non-C99 tests with SKIP_COMPLEX_INT,… · c9a5b624
      fnptr-by-value-1_x.c, [...]: Guard non-C99 tests with SKIP_COMPLEX_INT, SKIP_ATTRIBUTE and SKIP_ZERO_ARRAY.
      
      	* gcc.dg/compat/fnptr-by-value-1_x.c, scalar-by-value-1_y.c
      	scalar-by-value-3_x.c, scalar-by-value-3_y.c,
      	scalar-by-value-4_x.c, scalar-by-value-4_y.c,
      	scalar-return-1_x.c, scalar-return-2_y.c,
      	scalar-return-3_x.c, scalar-return-3_y.c,
      	scalar-return-4_x.c, scalar-return-4_y.c,
      	struct-align-1.h, struct-align-1_x.c,
      	struct-align-1_y.c, struct-align-2.h,
      	struct-align-2_x.c, struct-align-2_y.c,
      	struct-by-value-10_y.c, struct-by-value-11_x.c,
      	struct-by-value-11_y.c, struct-by-value-12_x.c,
      	struct-by-value-12_y.c, struct-by-value-13_x.c,
      	struct-by-value-13_y.c, struct-by-value-14_x.c,
      	struct-by-value-14_y.c, struct-by-value-15_x.c,
      	struct-by-value-15_y.c, struct-by-value-16_y.c,
      	struct-by-value-17_y.c, struct-by-value-18_y.c,
      	struct-by-value-19_y.c, struct-by-value-1_x.c,
      	struct-by-value-1_y.c, struct-by-value-20_y.c,
      	struct-by-value-2_x.c, struct-by-value-2_y.c,
      	struct-by-value-3_y.c, struct-by-value-4_x.c,
      	struct-by-value-4_y.c, struct-by-value-5_y.c,
      	struct-by-value-6_y.c, struct-by-value-7_y.c
      	struct-by-value-8_x.c, struct-by-value-8_y.c
      	struct-by-value-9_x.c, struct-by-value-9_y.c
      	struct-return-10_x.c, struct-return-10_y.c,
      	struct-return-19_x.c, struct-return-20_x.c
      	struct-return-2_x.c, struct-return-2_y.c
      	struct-return-3_x.c: Guard non-C99 tests with SKIP_COMPLEX_INT,
      	SKIP_ATTRIBUTE and SKIP_ZERO_ARRAY.  Turns SKIPVA into SKIP_VA.
      
      From-SVN: r76170
      Eric Botcazou committed
    • libtool-version: Increased `current' to 6. · ee6d1619
      2004-01-19  Matthias Klose  <doko@debian.org>
      
      	* libtool-version: Increased `current' to 6.
      
      From-SVN: r76168
      Matthias Klose committed
    • 2004-01-19 Kim Ho <kho@redhat.com> · a2708c12
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              (connectJObject): Iterate through the vbox's children to find layout.
      
      From-SVN: r76166
      Kim Ho committed
    • EventQueue.java (invokeAndWait): Use list-aware isDispatchThread method to… · 6fdab8cc
      EventQueue.java (invokeAndWait): Use list-aware isDispatchThread method to replace wrong test condition.
      
              * java/awt/EventQueue.java (invokeAndWait): Use list-aware
              isDispatchThread method to replace wrong test condition.
      
      From-SVN: r76165
      Fernando Nasser committed
    • debug.cc: Make sure all the names are prefixed with double (or single) underscore. · f18be892
      2004-01-19  Paolo Carlini  <pcarlini@suse.de>
      
      	* src/debug.cc: Make sure all the names are prefixed with
      	double (or single) underscore.
      
      From-SVN: r76163
      Paolo Carlini committed
    • EventQueue.java (pop): Prevent racing condition to add events to the queue out… · 605d10f7
      EventQueue.java (pop): Prevent racing condition to add events to the queue out of order by acquiring...
      
              * java/awt/EventQueue.java (pop): Prevent racing condition to add
              events to the queue out of order by acquiring locks in the proper
              order and not by releasing one before acquiring the other.
      
      From-SVN: r76161
      Fernando Nasser committed
    • TestAWT.java (DialogWindow): Make text not visible so that dialog can be reused. · 8f9f8d71
              * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
              visible so that dialog can be reused.
      
      From-SVN: r76160
      Fernando Nasser committed
    • alias-1.c: Add dg-warning for unsupported visibility attribute on sparc*-sun-solaris2.*. · 2194d821
      	* gcc.dg/tls/alias-1.c: Add dg-warning for unsupported visibility
      	attribute on sparc*-sun-solaris2.*.
      
      From-SVN: r76158
      Eric Botcazou committed
    • sol2.h (ASM_DECLARE_OBJECT_NAME): New. · 2f3321ca
      	* config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
      	"tls_object" for thread-local objects.
      	* config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
      	"#tls" for thread-local sections.
      	* configure.ac (thread-local checks): Specify --fatal-warnings in
      	every binutils-specific checks.  For sparc*-*-*, test whether the
      	OS is Solaris and the tools are native and act accordingly.
      	* configure: Rebuild.
      
      From-SVN: r76156
      Eric Botcazou committed
    • contrib.texi: Update Paolo Carlini's entry. · 6fe37bc4
              * contrib.texi: Update Paolo Carlini's entry.  New entries for
              Jerry Quinn and Petur Runolfsson.
      
      From-SVN: r76155
      Jeff Law committed
    • i386.md (*movhi_1, *movqi_1): When optimizing for size, don't use the larger zero-extending loads. · 68f48f39
      
      	* config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
      	size, don't use the larger zero-extending loads.
      
      From-SVN: r76152
      Roger Sayle committed
    • MAINTAINERS: Update my email address. · 7aed2ccc
      2004-01-19  Paolo Carlini  <pcarlini@suse.de>
      
      	* MAINTAINERS: Update my email address.
      
      From-SVN: r76151
      Paolo Carlini committed
    • EventQueue.java (getCurrentEvent): Consider that system events may be handled by… · aadc6da0
      EventQueue.java (getCurrentEvent): Consider that system events may be handled by any queue in the stack.
      
              * java/awt/EventQueue.java (getCurrentEvent): Consider that system
              events may be handled by any queue in the stack.
      
      From-SVN: r76150
      Fernando Nasser committed
    • GtkFramePeer.java (getMenuBarHeight): Added MenuBarPeer parameter. · 2c20a171
      2004-01-19  Kim Ho  <kho@redhat.com>
      
              * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added
              MenuBarPeer parameter.
              (removeMenuBarPeer): New native method.
              (setMenuBar): Call remove if menu bar is null. Adjust insets
              appropriately.
              (postSizeAllocateEvent): New method. Called when menu bar size is
              allocated. Adjust insets and redo layout.
              (GtkFramePeer): Set menu bar during frame creation.
              (postConfigureEvent): Adjust position and size to accomodate
              menu bar.
              * java/awt/Frame.java (setMenuBar): addNotify to create menu bar.
              * java/awt/Menu.java (addSeparator): Use peer's addSeparator.
              (addNotify): Create the peer if it doesn't exist and call addNotify
              for the menu's items.
              * java/awt/MenuBar.java (addNotify): Create this menu bar's menus.
              * java/awt/MenuItem.java (addNotify): Create the peer if it
              doesn't exist.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              (removeMenuBarPeer): New method. Remove menu bar on the current
              frame.
              (setMenuBarPeer): Add the menu bar to the current frame and the
              callback for size-allocate events on the menu bar.
              (getMenuBarHeight): Add menu bar parameter.
              (menubar_resize_cb): New callback method for postSizeAllocate events.
      
              Also: Fix indentation on last ChangeLog entry.
      
      From-SVN: r76149
      Kim Ho committed
    • 2004-01-16 Kim Ho <kho@redhat.com> · 9543baba
              * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
              (gtkWidgetGetDimensions): Remove.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              (gtkWidgetGetDimensions): Remove.
      
      From-SVN: r76148
      Kim Ho committed
    • debug.cc: Trivial formatting change. · 33d4e9b2
      2004-01-19  Paolo Carlini  <pcarlini@suse.de>
      
      	* src/debug.cc: Trivial formatting change.
      
      From-SVN: r76147
      Paolo Carlini committed
    • [multiple changes] · c01a9391
      2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
      
      	* utils.c: Update copyright notice, missed in previous change.
      
      2004-01-19  Vincent Celier  <celier@gnat.com>
      
      	* mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
      	args if Bind is True. Set First_ALI, if not already done.
      	(Build_Library): For Stand Alone Libraries, extract from one ALI file
      	an eventual --RTS switch, for gnatbind, and all backend switches +
      	--RTS, for linking.
      
      2004-01-19  Robert Dewar  <dewar@gnat.com>
      
      	* sem_attr.adb, memtrack.adb: Minor reformatting
      
      2004-01-19  Ed Schonberg  <schonberg@gnat.com>
      
      	* exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
      	that rename enumeration literals. This is properly done in sem_eval.
      
      	* sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
      	to functions that rename enumeration literals.
      
      	* sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
      	functions that rename enumeration literals.
      
      From-SVN: r76146
      Arnaud Charlet committed
    • alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs. · 5c9948f4
              * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
              * alpha.md (UNSPEC_NT_LDA): Remove.
              (UNSPEC_CVTLQ, cvtlq): New.
              (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
              (extendsidi2_fix): Remove.
              (extendsidi2 splitter): Use cvtlq.
              (extendsidi2 fp peepholes): Remove.
              (cvtql): Use SFmode instead of SImode.
              (fix_trunc?fsi): Update to match.
              (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
              (movsi): Rename from movsi_nofix, remove f alternatives.
              (movsi_nt_vms): Similarly.
              (movsi_fix, movsi_nt_vms_fix): Remove.
              (nt_lda): Remove.
              * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
      
      From-SVN: r76145
      Richard Henderson committed
    • cgraph.c (cgraph_remove_node): Fix removal from linked list. · 9b0436b7
      
      	* cgraph.c (cgraph_remove_node): Fix removal from linked list.
      	* cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
      	list.
      	(cgraph_remove_unreachable_nodes): New function
      	(cgraph_decide_inlining_of_small_function): Fix pasto.
      	(cgraph_decide_inlining_incrementally): Fix pasto.
      	(cgrpah_decide_inlining): Likewise; remove unreachable nodes.
      
      From-SVN: r76142
      Jan Hubicka committed
    • basic_string.tcc (_S_construct(size_type, _CharT, const _Alloc&)): Remove redundant try/catch. · 954b12d2
      2004-01-19  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/basic_string.tcc (_S_construct(size_type,
      	_CharT, const _Alloc&)): Remove redundant try/catch.
      	(_M_mutate(size_type, size_type, size_type)): Ditto.
      	(_M_clone(const _Alloc&, size_type)): Ditto.
      
      From-SVN: r76141
      Paolo Carlini committed
    • gengtype.c (header_file): Make it static. · 8c80adb7
      	* gengtype.c (header_file): Make it static.
      	(write_types_process_field, write_enum_defn): Minor whitespace fixes.
      	* gengtype.h (header_file): No longer extern.
      
      From-SVN: r76140
      Steven Bosscher committed
    • defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default. · 0ede749d
      	* defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
      	* expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
      	* stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
      
      From-SVN: r76138
      Kazu Hirata committed
    • Fix incorrect PR number. · 0f18efe3
      From-SVN: r76135
      Mark Mitchell committed
    • re PR c++/13635 (ICE in register_specialization for specific order of template specialization) · b830b74c
      	PR c++/13635
      	* pt.c (tsubst): Use finish_typeof.
      
      	PR c++/13635
      	* g++.dg/ext/typeof7.C: New test.
      
      From-SVN: r76131
      Mark Mitchell committed
    • Daily bump. · 60fa6554
      From-SVN: r76128
      GCC Administrator committed
  2. 18 Jan, 2004 10 commits