1. 20 Jan, 2004 32 commits
    • fold-const.c (fold_convert): Rename to fold_convert_const. · fdb33708
      
      	* fold-const.c (fold_convert): Rename to fold_convert_const.
      	(fold_convert_const): Change arguments to take a tree_code,
      	a type and the operand/expression to be converted.  Return
      	NULL_TREE if no simplification is possible.  Add support for
      	FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
      	(fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
      	Adjust call to fold_convert to match new fold_convert_const.
      	Avoid modifying the tree passed to fold in-place.
      
      From-SVN: r76237
      Roger Sayle committed
    • sysv4.h (DWARF2_FRAME_REG_OUT): Define. · 34c80057
      	* config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
      	* dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
      	* doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
      
      From-SVN: r76235
      Alan Modra committed
    • pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes. · a4295210
      	* pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
      	* pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
      	Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
      	(emit_move_sequence): Check scratch_reg first in various if statements.
      	Extend source simplification to handle all 64-bit CONST_INTs.
      	(pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
      	frame size.
      	(hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
      	frame offset calculations.
      	* pa.h (NEW_HP_ASSEMBLER): Add comment.
      	(MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
      	LEGITIMATE_64BIT_CONST_INT_P): Define.
      	(LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
      	any CONST_INT as legitimate during and after reload.
      	(VAL_32_BITS_P, INT_32_BITS): Define.
      	(LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
      
      From-SVN: r76234
      John David Anglin committed
    • emit-rtl.c (verify_rtx_sharing, [...]): Clobbers containing hard regs are shared. · 3e89ed8d
      
      	* emit-rtl.c (verify_rtx_sharing, copy_insn_1,
      	emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
      	containing hard regs are shared.
      	(gen_hard_reg_clobber): New function.
      	(hard_reg_clobbers): New array.
      	* genemit.c (gen_exp): Use gen_hard_reg_clobber.
      	(copy_rtx): Do not copy clobbers containing hard regs.
      	* rtl.h (gen_hard_reg_clobber): Declare.
      
      From-SVN: r76233
      Jan Hubicka committed
    • varray.c: Include hashtab.h · 9b57b627
      
      	* varray.c:  Include hashtab.h
      	(varray_descriptor): New structure.
      	(hash_descriptor, eq_descriptor, varray_descriptor,
      	print_statistics): New static functions
      	(varray_init, varray_grow): Update statistics
      	(dump_varray_statistics): New function.
      	* varray.h (dump_varray_statistics): Declare.
      	* toplev.c (finalize): Call it.
      	* Makefile.in (varray.o): Add dependency.
      
      From-SVN: r76232
      Jan Hubicka committed
    • Makefile.am (lib_org_w3c_dom_la_LIBADD, [...]): New. · d5d2603f
      	* Makefile.am (lib_org_w3c_dom_la_LIBADD,
      	lib_org_w3c_dom_la_LDFLAGS): New.
      	(lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
      	* Makefile.in: Rebuilt.
      
      From-SVN: r76231
      Jakub Jelinek committed
    • GtkComponentPeer.java (setBounds): Calculate proper offsets for heavyweight… · c01c1437
      GtkComponentPeer.java (setBounds): Calculate proper offsets for heavyweight components packed in lightweight...
      
      2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
      	Calculate proper offsets for heavyweight components packed in
      	lightweight containers.
      
      From-SVN: r76230
      Thomas Fitzsimmons committed
    • GtkTextFieldPeer.java, [...] (native create): Add width parameter. · 90115017
      2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
      	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
      	(native create): Add width parameter.
      	(create): Calculate text entry width based on current font's
      	metrics and number of columns.  Set TextField's font if not
      	already set.  Call native create.
      	(gtkEntryGetBorderWidth): New native method.
      	(gtkEntryGetSize): Remove method.
      	(getMinimumSize): Call minimumSize.
      	(getPreferredSize): Call preferredSize.
      	(minimumSize): Calculate minimum size based on backing
      	GtkEntry's borders, font metrics and number of columns.
      	(preferredSize): Likewise for preferred size.
      	(get_border_width): New static function.
      
      From-SVN: r76228
      Thomas Fitzsimmons committed
    • GtkFramePeer.java (setResizable): Override GtkWindowPeer's setResizable method… · cbc63517
      GtkFramePeer.java (setResizable): Override GtkWindowPeer's setResizable method to account for menu bar height when...
      
      2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
      	Override GtkWindowPeer's setResizable method to account for menu
      	bar height when setting the frame's size.
      
      From-SVN: r76227
      Thomas Fitzsimmons committed
    • cselib.c: Include alloc-pool.h · 6a59927d
      
      	* cselib.c: Include alloc-pool.h
      	(empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
      	(elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
      	(new_elt_list, new_elt_loc_list, unchain_one_elt_list,
      	unchain_one_elt_loc_list_pool, unchain_one_value,
      	new_cselib_val): Simplify using allocpool.
      	(cselib_init): Initialize allocpools.
      	(cselib_finish): Finish allocpools.
      	* Makefile.in (cselib.o): Depend on alloc-pool.h
      
      From-SVN: r76226
      Jan Hubicka committed
    • mips.c (mips_load_call_address): Make the call insn use $gp if it could be… · 3c53850d
      mips.c (mips_load_call_address): Make the call insn use $gp if it could be calling a lazy binding stub.
      
      	* config/mips/mips.c (mips_load_call_address): Make the call insn
      	use $gp if it could be calling a lazy binding stub.
      
      From-SVN: r76224
      Richard Sandiford committed
    • s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define. · 101ad855
      	* config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
      	(TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	* config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
      	(PROMOTE_FUNCTION_RETURN): Remove.
      	(STRUCT_VALUE): Remove.
      
      From-SVN: r76220
      Kazu Hirata committed
    • avr.h (BASE_REG_CLASS): Don't permit to use X register as pointer after reload. · c099ba28
      	* config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
      	register as pointer after reload.
      
      From-SVN: r76216
      Denis Chertykov committed
    • fix comment · 162f92bb
      From-SVN: r76215
      Jason Merrill committed
    • re PR rtl-optimization/12440 (gcc 3.3.1 on i386 linux 2.4.22 crashes during… · c8b6fae3
      re PR rtl-optimization/12440 (gcc 3.3.1 on i386 linux 2.4.22 crashes during compilation of quicktime4linux 2.0.0)
      
      	PR optimization/12440
      	* loop.c: Include ggc.h.
      	(loop_optimize): Run garbage collector between optimization of loops.
      	* Makefile.in (loop.o): Add GGC_H dependency.
      
      From-SVN: r76213
      Zdenek Dvorak committed
    • * gcc.dg/ppc64-abi-2.c: New test. · 04bf686d
      From-SVN: r76212
      Hartmut Penner committed
    • * gcc/config/rs6000/rs6000.c (function_arg) Handle · c72d6c26
              vector register special in function without prototype.
              (function_arg_advance): Vector parameters get always
              GPRs allocated for the linux64 target.
      
      From-SVN: r76211
      Hartmut Penner committed
    • gcconfig.h (USE_MMAP): Define for all Linux. · 1bec19cc
      2004-01-20  Andrew Haley  <aph@redhat.com>
      
              * include/private/gcconfig.h (USE_MMAP): Define for all Linux.
      
              * configure.in: Comment change.
      
      From-SVN: r76210
      Andrew Haley committed
    • It's 2004 not 2004 · 4850c982
      From-SVN: r76206
      Steven Bosscher committed
    • re PR target/13557 (deviation from the psABI for small structures) · 4043d6fb
      	PR target/13557
      	* config/sparc/sparc.c (function_arg): Reorder the cases.
      
      From-SVN: r76202
      Eric Botcazou committed
    • Fix patch oops. · 54020b29
      From-SVN: r76201
      Per Bothner committed
    • mt_allocator.h: If a thread... · cec73eb5
      
      2004-01-19  Stefan Olsson  <stefan@snon.net>
      
      	* include/ext/mt_allocator.h: If a thread, when it dies, still has
      	memory on it's freelist this memory is not returned to global
      	list. Simplification of deallocate so that memory is always
      	returned to the calling thread id's freelist instead of to
      	global. Fix typos. Add volatile where appropriate.
      
      From-SVN: r76200
      Stefan Olsson committed
    • Move cpp_reader's line_maps field to a shared global. · 50f59cd7
      	* cpphash.h (cpp_reader):  Rename line_maps field to line_table
      	and change the type to a pointer rather than a struct.
      	* cppinit.c (cpp_push_main_field):  Adjust accordingly.
      	* cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
      	Likewise.
      	* cppfiles.c (validate_pch):  Likewise.
      	* cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
      	Likewise.
      	* cpperror.c (print_location):  Likewise.
      	* cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
      	* cppinit.c (cpp_create_reader):  Handle new parameter.
      	(cpp_destroy):  Don't free line_maps - that's no longer our job.
      	* input.h (line_table):  New variable.
      	* toplev.c (line_table):  Declare variable.
      	(general_init):  Initialize line_table.
      	* c-opts.c (c_common_init_options):  Pass line_table to
      	cpp_create_reader.
      	* fix-header.c (read_scan_file):  New local variable line_table.
      	Initialize, and pass it to cpp_create_reader.
      	* Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
      	(C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
      
      From-SVN: r76198
      Per Bothner committed
    • Implement a cache for linemap_lookup. · 9132fbb7
      	* line-map.h (struct_line_maps):  Add cache field.
      	* line-map.c (linemap_init):  Zero cache field.
      	(linemap_add):  Set cache field to offset of newly allocated map.
      	(linemap_lookup):  Use and set cache field.
      
      From-SVN: r76197
      Per Bothner committed
    • re PR rtl-optimization/13567 ([sh] miscompiling calls.c) · 26d107db
      	PR optimization/13567
      	* cse.c (cse_basic_block): Call cse_insn with a non-null
      	libcall_insn for the last SET insn of a no-confilict block.
      
      From-SVN: r76195
      Kaz Kojima committed
    • treelang.exp: Fill out this file. · 9dfcd609
      2004-01-18  James A. Morrison  <ja2morri@uwaterloo.ca>
      
              * lib/treelang.exp: Fill out this file.
              * lib/treelang-dg.exp: New File.
      
      treelang:
      2004-01-18  James A. Morrison  <ja2morri@uwaterloo.ca>
      
              * compile/compile.exp: New File.
              * compile/tabs.tree: Test whether the front end
              compiles code with tabs in it.
      
      From-SVN: r76194
      James A. Morrison committed
    • Makefile.in (target_noncanonical, [...]): Use immediate define instead of deferred. · e165d61b
      gcc/
      2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Makefile.in (target_noncanonical, program_transform_name): Use
      	immediate define instead of deferred.
      	(GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
      	PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
      	GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
      	deferred backquote.
      
      gcc/cp
      2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (CXX_INSTALL_NAME, GXX_INSTALL_NAME,
      	CXX_TARGET_INSTALL_NAME, GXX_TARGET_INSTALL_NAME): Define via a
      	immediate $(shell) instead of deferred backquote.
      
      gcc/f
      2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (G77_INSTALL_NAME): Define via a immediate $(shell)
      	instead of deferred backquote.
      
      gcc/java
      2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (JAVA_INSTALL_NAME, JAVA_TARGET_INSTALL_NAME,
      	GCJH_TARGET_INSTALL_NAME): Define via a immediate $(shell)
      	instead of deferred backquote.
      
      From-SVN: r76193
      Kelley Cook committed
    • c-decl.c (c_init_decl_processing): Set pedantic_lvalues to true unconditionally. · 53cd18ec
      	* c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
      	true unconditionally.
      	* c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
      	Remove.
      	(build_unary_op, build_modify_expr): Don't handle extended
      	lvalues.
      	(build_component_ref, build_conditional_expr): Call non_lvalue
      	instead of pedantic_non_lvalue.
      	(build_c_cast): Don't condition use of non_lvalue on pedantic.
      	* fold-const.c (fold): Don't check pedantic directly for
      	COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
      	passed to pedantic_non_lvalue.
      	* doc/extend.texi: Remove documentation of extended lvalues.
      
      testsuite:
      	* gcc.c-torture/compile/981022-1.c: Remove.
      	* gcc.dg/array-5.c: Remove XFAIL.
      	* gcc.dg/sequence-pt-1.c: Remove test using extended lvalues.
      	* gcc.dg/cast-lvalue-1.c, gcc.dg/compound-lvalue-1.c,
      	gcc.dg/cond-lvalue-1.c: Update.
      	* gcc.dg/cast-lvalue-2.c: New test.
      
      From-SVN: r76192
      Joseph Myers committed
    • 10063-2.cc: Treat unbuffered. · 87d11ccc
      	* testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
      	* testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
      	use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
      
      From-SVN: r76191
      Loren J. Rittle committed
    • Daily bump. · ee395405
      From-SVN: r76187
      GCC Administrator committed
  2. 19 Jan, 2004 8 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