1. 08 Jun, 2005 22 commits
  2. 07 Jun, 2005 18 commits
    • i386.h (enum ix86_entity): New. · ff680eb1
      2005-06-07  Uros Bizjak  <uros@kss-loka.si>
      
      	* config/i386/i386.h (enum ix86_entity): New.
      	(enum ix86_stack_slot): New.
      	(OPTIMIZE_MODE_SWITCHING): Redefine to use
      	ix86_optimize_mode_switching[] array.
      	(NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
      	(MODE_NEEDED): Use ix86_mode_needed() function.
      	(EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
      	function.
      	(struct machine_function): Use optimize_mode_switching[] array.
      
      	* config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
      	(ix86_mode_needed): New function.
      	(emit_i387_cw_initialization): Cleanup. Use mode to calculate
      	correct stack positions for stored control words.
      	(assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
      	(ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
      	SLOT_TEMP.
      	[IX86_BUILTIN_STMXCSR]: Same.
      
      	* config/i386/i386-protos.h (assign_stack_local): Change prototype.
      	(emit_i387_cw_initialization): Change prototype.
      	(ix86_mode_needed): New prototype.
      
      	* config/i386/i386.md (i387_cw attribute): Change order of elements.
      	(truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
      	(*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
      	(*fist<mode>2_ceil_1): Change constant in call to
      	assign_386_stack_local to SLOT_TEMP.
      	(*fix_trunc<mode>_i387_1): Change constant in call to
      	assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
      	Use new ix86_optimize_mode_switching[] array.
      	(frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
      	assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
      	Use new ix86_optimize_mode_switching[] array.
      	(frndintxf2_ceil, *fist<mode>2_ceil_1):  Change constants in call to
      	assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
      	Use new ix86_optimize_mode_switching[] array.
      	(frndintxf2_trunc): Change constants in call to
      	assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
      	Use new ix86_optimize_mode_switching[] array.
      	(frndintxf2_mask_pm): Change constants in call to
      	assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
      	Use new ix86_optimize_mode_switching[] array.
      
      	(define_peephole2): Change constant from 17 to FLAGS_REG;
      
      From-SVN: r100732
      Uros Bizjak committed
    • re PR rtl-optimization/21528 (Boost shared_ptr_test.cpp fails with -O3) · 3b009185
              PR rtl-opt/21528
              * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
      
      From-SVN: r100730
      Richard Henderson committed
    • 20050607-1.c: New. · e4cd04f4
      2005-06-07  Dale Johannesen  <dalej@apple.com>
      
              * gcc.dg/20050607-1.c:  New.
      
      From-SVN: r100729
      Dale Johannesen committed
    • tree-nested.c (finalize_nesting_tree_1): Disable warn_padded around layout_type call. · 022a8174
      2005-06-07  Dale Johannesen  <dalej@apple.com>
      
              * tree-nested.c (finalize_nesting_tree_1):  Disable
              warn_padded around layout_type call.
      
      From-SVN: r100728
      Dale Johannesen committed
    • tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression before emiting it. · e2cf9dd1
      	* tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
      	before emiting it.
      
      From-SVN: r100727
      Zdenek Dvorak committed
    • predicates.md: Revert previous patch. · e0073ed7
      2005-06-07  Eric Christopher  <echristo@redhat.com>
      
              * config/mips/predicates.md: Revert previous patch.
      
      From-SVN: r100726
      Eric Christopher committed
    • re PR middle-end/21850 (misscompiling comparision from vector to integer) · 145357a4
      	PR middle-end/21850
      	* tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
      	from vector types.
      
      	* gcc.c-torture/execute/20050607-1.c: New test.
      
      From-SVN: r100725
      Jakub Jelinek committed
    • cpplib.pot: Regenerate. · 75829da2
      	* cpplib.pot: Regenerate.
      
      	* gcc.pot: Regenerate.
      
      From-SVN: r100724
      Jakub Jelinek committed
    • archive.c, [...]: Include hash.h. · 348a3445
      2005-06-07  David Ayers  <d.ayers@inode.at>
      
      	* archive.c, init.c, selector.c: Include hash.h.
      	* archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
      	init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
      	sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
      	thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
      	thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
      	Include Objective-C headers with quotes and objc/ directory
      	prefix.
      
      From-SVN: r100723
      David Ayers committed
    • tree-ssa-threadupdate.c (struct thread_stats_d): Declare. · a4233c29
      
      	* tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
      	(thread_stats): New local variable.
      	(redirect_edges): Increment count of threaded edges.
      	(thread_through_all_blocks): Initialize thread_stats.
      	Display number of threaded jumps if TDF_STATS is enabled.
      
      From-SVN: r100722
      Diego Novillo committed
    • re PR libfortran/21926 ([4.0 only] matmul does not deal with non-packed result) · ae740cce
      2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/21926
      	* m4/matmul.m4:  Correct zeroing of result for non-packed
      	arrays with lowest stride is one.
      	* generated/matmul_c4.c:  Regenerated.
      	* generated/matmul_c8.c:  Regenerated.
      	* generated/matmul_i4.c:  Regenerated.
      	* generated/matmul_i8.c:  Regenerated.
      	* generated/matmul_r4.c:  Regenerated.
      	* generated/matmul_r8.c:  Regenerated.
      
      2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	PR libfortran/21926
      	* gfortran.fortran-torture/execute/intrinsic_matmul.f90:
      	Test case where the return array has lowest stride one,
      	but isn't packed.
      
      From-SVN: r100721
      Thomas Koenig committed
    • sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as the current bit index with no modulo. · 108267cd
      	* sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
      	the current bit index with no modulo.
      
      From-SVN: r100720
      Kazu Hirata committed
    • * 20050423-1.c: Testcase for PR tree-optimization/20742. · e699ee24
      From-SVN: r100719
      Sebastian Pop committed
    • Fixes PR 18403 and meta PR 21861. · 1e8552eb
      	* Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
      	* tree-chrec.c: Include cfgloop.h and tree-flow.h.
      	(evolution_function_is_invariant_rec_p,
      	evolution_function_is_invariant_p): New.
      	(chrec_convert): Use an extra parameter AT_STMT for refining the
      	information that is passed down to convert_step.  Integrate the
      	code that was in count_ev_in_wider_type.
      	* tree-chrec.h (count_ev_in_wider_type): Removed.
      	(chrec_convert): Modify its declaration.
      	(evolution_function_is_invariant_p): Declared.
      	(evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
      	* tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
      	(scev_probably_wraps_p): Declared.
      	* tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
      	(follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
      	Use an extra parameter AT_STMT for refining the information that is
      	passed down to convert_step.
      	(follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
      	analyze_scalar_evolution_1): Initialize AT_STMT with the current
      	analyzed statement.
      	(instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
      	* tree-ssa-loop-ivopts.c (idx_find_step): Update the use of
      	can_count_iv_in_wider_type to use convert_step.
      	* tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move
      	code that is independent of the loop over the known iteration
      	bounds to convert_step_widening, the rest is moved to
      	proved_non_wrapping_p.
      	(scev_probably_wraps_p): New.
      	(can_count_iv_in_wider_type): Renamed convert_step.
      	* tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
      	Use scev_probably_wraps_p for computing init_is_max.
      	(vrp_visit_assignment): Pass the current analyzed statement to
      	adjust_range_with_scev.
      	(execute_vrp): Call estimate_numbers_of_iterations for refining the
      	information provided by scev analyzer.
      
      testsuite:
      
      	* testsuite/gcc.dg/vect/vect-77.c: Remove xfail from lp64.
      	* testsuite/gcc.dg/vect/vect-78.c: Same.
      
      From-SVN: r100718
      Sebastian Pop committed
    • target-supports.exp (check_effective_target_sync_int_long): Add s390 and s390x targets. · 89a590b3
      2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
      
      	* lib/target-supports.exp (check_effective_target_sync_int_long):
      	Add s390 and s390x targets.
      
      From-SVN: r100717
      Adrian Straetling committed
    • predicates.md (sleu_operand): Use IN_RANGE to specify range of operand. · f11480cc
      2005-06-07  Eric Christopher  <echristo@redhat.com>
      
      	* config/mips/predicates.md (sleu_operand): Use
      	IN_RANGE to specify range of operand.
      
      From-SVN: r100716
      Eric Christopher committed
    • missed entry · ce3116ff
      missed entry
             * cp-tree.def (DEFAULT_ARG): Adjust documentation.
      	* cp-tree.h (DEFARG_INSTANTIATIONS): New.
      	(struct tree_default_arg): Add instantiations member.
      	* parser.c (cp_parser_late_parsing_default_args): Adjust to use a
      	VEC.
      	* pt.c (tsubst_arg_types): Likewise.
      
      From-SVN: r100715
      Nathan Sidwell committed
    • re PR tree-optimization/21847 (misscompiling of the following java code) · 75b80166
      	PR tree-optimization/21847
      	* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
      	-fnon-call-exceptions, also mark statements inherently
      	necessary if they may throw.
      
      From-SVN: r100714
      Steven Bosscher committed