1. 11 May, 2005 16 commits
    • resolve.c (resolve_symbol): Copy 'pointer' and 'dimension' attribute from result… · 09e7f686
      resolve.c (resolve_symbol): Copy 'pointer' and 'dimension' attribute from result symbol to function symbol.
      
      fortran/
      	* resolve.c (resolve_symbol): Copy 'pointer' and 'dimension'
      	attribute from result symbol to function symbol.
      testsuite/
      	* gfortran.dg/func_result_2.f90: New test.
      
      From-SVN: r99580
      Tobias Schlüter committed
    • re PR bootstrap/21481 (crtstuff.c should not include auto-host.h) · 9d48ad93
      	PR bootstrap/21481
      	* crtstuff.c: Include auto-host.h again, for now.
      
      From-SVN: r99579
      Nathan Sidwell committed
    • * config/mips/24k.md: Remove trailing whitespace. · 99917bc3
      From-SVN: r99578
      Richard Sandiford committed
    • mips.md (type): Add imul3. · 95177e17
      	* config/mips/mips.md (type): Add imul3.
      	(length, hazard, may_clobber_hilo): Check for imul3.
      	(mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
      	(*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
      	* config/mips/24k.md (r24k_int_mul3): Enable this reservation
      	for a 3 operand mul and its bypasses.
      	* config/mips/3000.md (r3k_imul): Add imul3 to reservations.
      	* config/mips/4000.md (r4k_imul): Likewise.
      	* config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
      	* config/mips/4130.md (vr4130_class, vr4130_mulsi)
      	(vr4130_muldi): Likewise.
      	* config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
      	* config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
      	* config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
      	* config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
      	(ir_vr54_imadd_si): Likewise.
      	* config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
      	* config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
      	(rm7_impy_di): Likewise.
      	* config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
      	* config/mips/generic.md (generic_imul): Likewise.
      	* config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
      	* config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.
      
      From-SVN: r99577
      David Ung committed
    • re PR middle-end/20371 (Some corner cases of MS bitfields don't work) · cbbaf4ae
      	PR middle-end/20371:
      	* tree.h (record_layout_info_s): New member prev_packed.
      	* stor-layout.c (update_alignment_for_field): Fix comment about
      	KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
      	we start it properly aligned.
      	(place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
      	to update_alignment_for_field, and recompute it afterwards using
      	the alignment of the record.
      	When a packed bitfield precedes an MS bitfield, don't add padding
      	at the end of the packed bitfield on behalf of the base type of
      	the packed bit field.
      	Don't adjust rli->bitpos at the end
      	of an MS bitfield run if we already adjusted bitpos/offset for an
      	alignment as large or larger than the bitfield type size.
      	Take possible record alignment > BIGGEST_ALIGNMENT into account
      	when calculating actual_align.
      	Only put packed buit fields into rli->prev_field if they end up
      	suitably aligned.
      	Also set rli->remaining_in_alignment when we re-set rli->prev_field.
      	Update rli->remaining_in_alignment when we have already started a
      	run of bit fields and we process a packed bit field.
      
      From-SVN: r99574
      J"orn Rennecke committed
    • tree-data-ref.c (find_data_references_in_loop): Give up when the body of the… · 4aad410d
      tree-data-ref.c (find_data_references_in_loop): Give up when the body of the loop contains a CALL_EXPR or an ASM_EXPR...
      
      	* tree-data-ref.c (find_data_references_in_loop): Give up when
      	the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
      	may embed arbitrary side effects.
      	Remove the assumption that GIMPLE form contains a single array
      	access per statement.
      	When the statement contains virtual operands, fail if it is not
      	a MODIFY_EXPR or a CALL_EXPR.
      	Return after the dont know node is inserted.
      
      From-SVN: r99573
      Sebastian Pop committed
    • re PR libfortran/19478 (reading back from /dev/null) · 802fc826
      	PR fortran/19478
      	* io/unix.c (fd_truncate): update positions when ftruncate
      	fails (like writing to /dev/null).
      	* gfortran.dg/dev_null.f90: New test.
      
      From-SVN: r99570
      Bud Davis committed
    • arm.md (negsf2, negdf2): Permit these expands when compiling for VFP. · 5a942c07
      	* arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
      	* gcc.dg/arm-vfp1.c: Revert last change.
      
      From-SVN: r99569
      Richard Earnshaw committed
    • re PR middle-end/19807 (fold does not fold &a[4]-1) · c5542940
      2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
      
      	PR middle-end/19807
      	PR tree-optimization/19639
      	* fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
      	and generic summands for char* as s * delta, too, folding &a[i]
      	CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
      	for comparison of steps.  Convert types for index addition.
      	(fold_binary): Adjust the callers to always dispatch to
      	try_move_mult_to_index.
      	* tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
      	expr with non-gimple ARRAY_REF offset.
      
      	* g++.dg/tree-ssa/pr19807.C: New testcase.
      
      From-SVN: r99568
      Richard Guenther committed
    • fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualifiers like const. · 8a29ce60
      2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
      
      	* fold-const.c (fold_indirect_ref_1): Avoid removing
      	NOP_EXPRs with type qualifiers like const.
      
      From-SVN: r99566
      Richard Guenther committed
    • re PR c/21502 (small data relocation mismatch) · 317a9ac3
              PR c/21502
              * c-decl.c (finish_decl): Propagate the completed array type of
              a global variable into the binding.
      
      From-SVN: r99563
      Richard Henderson committed
    • re PR libfortran/21471 ('POSITION = "APPEND"' doesn't seem to work) · da32fddc
      	PR libfortran/21471
      	* open.c (new_unit): Take care of the case where POSITION_APPEND
      	is specified (sseek to the end, and set u>-endfile).
      	* gfortran.dg/append-1.f90: New test.
      
      From-SVN: r99560
      Francois-Xavier Coudert committed
    • * Makefile.in (gtype-desc.o, build/genautomata.o) · 939176ab
      	(build/varray.o): Depend on $(VARRAY_H).
      
      From-SVN: r99559
      Matt Kraai committed
    • tree-optimize.c (init_tree_optimization_passes): Re-organize optimization passes… · 9a8cb141
      tree-optimize.c (init_tree_optimization_passes): Re-organize optimization passes to do an initial batch of scalar cleanups.
      
      
      	* tree-optimize.c (init_tree_optimization_passes): Re-organize
      	optimization passes to do an initial batch of scalar cleanups.
      
      testsuite/ChangeLog
      
      	* gcc.dg/pr18501.c: XFAIL.
      	* gcc.dg/tree-ssa/loop-4.c: Fix expected pattern.
      	* gcc.dg/tree-ssa/pr20913.c: Change to link-time test.
      	* gcc.dg/tree-ssa/ssa-ccp-2.c: Change to a .optimized scan.
      	* gcc.dg/tree-ssa/ssa-ccp-7.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-ccp-9.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-dom-ccp-1.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-pre-7.c: Change to a .fre scan.
      	* gcc.dg/tree-ssa/ssa-pre-8.c: Likewise.
      
      From-SVN: r99558
      Diego Novillo committed
    • Makefile.in: Regenerate dependencies. · bd7d50f8
      2005-05-11  Paul Brook  <paul@codesourcery.com>
      
      	* Makefile.in: Regenerate dependencies.
      
      From-SVN: r99556
      Paul Brook committed
    • Daily bump. · 579714d0
      [[Split portion of a mixed commit.]]
      
      From-SVN: r99553.2
      GCC Administrator committed
  2. 10 May, 2005 24 commits