Commit Graph

74021 Commits

Author SHA1 Message Date
Steven G. Kargl
9202989a98 simplify.c (gfc_simplify_verify): Fix return when SET=''.
2006-03-06  Steven G. Kargl  <kargls@comcast.net>

        * simplify.c (gfc_simplify_verify):  Fix return when SET=''.
        * gfortran.dg/verify_2.f90:  New test.

From-SVN: r111791
2006-03-06 20:43:22 +00:00
Steven G. Kargl
8ffe548822 equiv_1.f90: Replace tab(s) with spaces.
2006-03-06  Steven G. Kargl  <kargls@comcast.net>

    * gfortran.dg/equiv_1.f90: Replace tab(s) with spaces.
    * gfortran.dg/arrayio_1.f90: Ditto. 
    * gfortran.dg/pr25603.f: Ditto.
    * gfortran.dg/assumed_dummy_2.f90: Ditto.
    * gfortran.dg/equiv_2.f90: Ditto.
    * gfortran.dg/arrayio_2.f90: Ditto.
    * gfortran.dg/namelist_14.f90: Ditto.
    * gfortran.dg/g77/cpp6.f: Ditto.
    * gfortran.dg/g77/cpp5inc.h: Ditto.
    * gfortran.dg/g77/cpp5.F: Ditto.
    * gfortran.dg/g77/cpp5.h: Ditto.
    * gfortran.dg/namelist_15.f90: Ditto.
    * gfortran.dg/badline.f: Ditto.
    * gfortran.dg/sibling_dummy_procedure_1.f90: Ditto.
    * gfortran.dg/sibling_dummy_procedure_2.f90: Ditto.
    * gfortran.dg/backspace_6.f: Ditto.
    * gfortran.dg/altreturn_1.f90: Ditto.
    * gfortran.dg/entry_4.f90: Ditto.
    * gfortran.dg/implicit_5.f90: Ditto.

From-SVN: r111790
2006-03-06 20:39:05 +00:00
Paolo Carlini
e3dfd6d555 re PR target/26532 (libmudflap failures on ia64)
2006-03-06  Paolo Carlini  <pcarlini@suse.de>

	PR target/26532
	* config/io/c_io_stdio.h (struct __ios_flags): Remove.
	* include/bits/ios_base.h: Adjust consistently.
	(ios_base::_S_local_word_size): Change to an anonymous enum.
	* src/ios.cc: Do not define static const data of __ios_flags,
	likewise for ios_base::_S_local_word_size.	
	* include/bits/locale_classes.h (locale::_S_categories_size):
	Change to an anonymous enum.
	* src/locale.cc: Don't define.

From-SVN: r111789
2006-03-06 18:06:47 +00:00
Nick Clifton
7d14f0fcec * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to flag_strength_reduce.
From-SVN: r111786
2006-03-06 11:13:25 +00:00
Volker Reichelt
a3c5267cab re PR c++/15759 (ICE with function pointers)
PR c++/15759
	* tree.c (bot_manip): Don't call mark_used.

	* g++.dg/other/default4.C: New test.

From-SVN: r111754
2006-03-06 02:01:29 +00:00
Ben Elliston
c92f986f5f * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Define.
From-SVN: r111753
2006-03-06 12:34:05 +11:00
Ben Elliston
8c82d48427 Comment tweak/update.
From-SVN: r111752
2006-03-06 12:24:20 +11:00
Ben Elliston
45b9a4e849 config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and x86_64-*-linux* configurations.
* config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
	x86_64-*-linux* configurations.

From-SVN: r111751
2006-03-06 12:23:17 +11:00
Ben Elliston
d9b9633d19 * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
From-SVN: r111750
2006-03-06 11:49:58 +11:00
GCC Administrator
150eda7050 Daily bump.
From-SVN: r111748
2006-03-06 00:19:16 +00:00
Erik Edelmann
aa08038dda re PR fortran/16136 (Conflicting attributes ALLOCATABLE, DUMMY (F2003))
fortran/
2005-03-05  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/16136
        * symbol.c (conf_std): New macro.
        (check_conflict): Use it to allow ALLOCATABLE dummy
        arguments for F2003.
        * trans-expr.c (gfc_conv_function_call): Pass the
        address of the array descriptor when dummy argument is
        ALLOCATABLE.
        * interface.c (compare_allocatable): New function.
        (compare_actual_formal): Use it.
        resolve.c (resolve_deallocate_expr,
        resolve_allocate_expr): Check that INTENT(IN) variables
        aren't (de)allocated.
        * gfortran.texi (Fortran 2003 status): List ALLOCATABLE
        dummy arguments as supported.

testsuite/
2005-03-05  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/16136
        * allocatable_dummy_1.f90: New.
        * allocatable_dummy_2.f90: New.

From-SVN: r111741
2006-03-05 19:24:48 +00:00
Jerry DeLisle
68c9b7d60a re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical variable from a string)
2006-03-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26554
	* gfortran.dg/read_logical.f90: New test.

From-SVN: r111739
2006-03-05 18:00:22 +00:00
Jerry DeLisle
03e957f8c8 re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical variable from a string)
2006-03-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26554
	* io/list_read.c (read_logical): Return the value if not in namelist
	mode.

From-SVN: r111738
2006-03-05 17:54:07 +00:00
Kazu Hirata
0bf8477d98 function.c (use_return_register): Make it static.
* function.c (use_return_register): Make it static.
	* function.h: Remove the prototype.

From-SVN: r111737
2006-03-05 17:42:47 +00:00
Kazu Hirata
a678e384b9 flow.c (recompute_reg_usage): Make it static.
* flow.c (recompute_reg_usage): Make it static.
	* rtl.h: Remove the prototype for recompute_reg_usage.

From-SVN: r111736
2006-03-05 17:41:48 +00:00
Kazu Hirata
b00bf1661f cfgloop.c (cancel_loop): Make it static.
* cfgloop.c (cancel_loop): Make it static.
	* cfgloop.h: Remove the prototype for cancel_loop.

From-SVN: r111735
2006-03-05 17:40:40 +00:00
Kazu Hirata
acfc4f0a85 tree-ssa-threadupdate.c (rediscover_loops_after_threading): Remove.
* tree-ssa-threadupdate.c (rediscover_loops_after_threading):
	Remove.
	* basic-block.h: Remove the extern for
	rediscover_loops_after_threading.

From-SVN: r111734
2006-03-05 17:31:20 +00:00
Kazu Hirata
d42ee77ad0 recog.c (volatile_mem_p, [...]): Remove.
* recog.c (volatile_mem_p, validate_change_maybe_volatile):
	Remove.
	* recog.h: Remove the prototype for
	validate_change_maybe_volatile.

From-SVN: r111731
2006-03-05 06:01:33 +00:00
Kazu Hirata
dc782dcd16 rtlanal.c (replace_reg): Remove.
* rtlanal.c (replace_reg): Remove.
	* rtl.h: Remove the prototype for replace_reg.

From-SVN: r111730
2006-03-05 05:59:55 +00:00
Kazu Hirata
3c491cab15 regclass.c (reg_scan_update): Remove.
* regclass.c (reg_scan_update): Remove.
	(reg_scan_mark_refs): Remove the last argument.
	* rtl.h: Remove the prototype for reg_scan_update.

From-SVN: r111729
2006-03-05 05:58:50 +00:00
GCC Administrator
76ddc688ca Daily bump.
From-SVN: r111727
2006-03-05 00:18:30 +00:00
Kazu Hirata
c0220ea4c5 builtins.c, [...]: Fix comment typos.
* builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
	combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
	config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
	config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
	df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
	loop-invariant.c, omp-low.c, opts.c, passes.c,
	rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
	tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
	tree-ssa-structalias.c, tree-ssa-threadedge.c,
	tree-ssa-threadupdate.c, tree-vect-patterns.c,
	tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
	unwind-dw2.c: Fix comment typos.  Follow spelling conventions.

From-SVN: r111721
2006-03-04 23:05:24 +00:00
Laurent GUERBY
8156c8b0b9 norun.lst: cdd2a03 now passes.
2006-03-04  Laurent GUERBY <laurent@guerby.net>

        * ada/acats/norun.lst: cdd2a03 now passes.

From-SVN: r111719
2006-03-04 22:26:21 +00:00
Andrew Pinski
00fee132a4 re PR testsuite/25177 (gcc.target/powerpc/pr18096-1.c fails on PPC)
2006-03-04  Andrew Pinski  <pinskia@physics.uc.edu>

        PR testsuite/25177
        * gcc.target/powerpc/pr18096-1.c: Change where the error
        would match.

From-SVN: r111717
2006-03-04 12:24:17 -08:00
Kazu Hirata
ae3b9f19a2 dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
* dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
	* dwarf2out.h: Remove the prototype for
	dwarf2out_add_library_unit_info.

From-SVN: r111716
2006-03-04 20:07:18 +00:00
Kazu Hirata
a82db0526b tree.c (add_var_to_bind_expr): Remove.
* tree.c (add_var_to_bind_expr): Remove.
	* tree.h: Remove the prototype for add_var_to_bind_expr.

From-SVN: r111715
2006-03-04 20:05:47 +00:00
Kazu Hirata
3c6c67f8d4 regclass.c (n_non_fixed_regs): Remove.
* regclass.c (n_non_fixed_regs): Remove.
	(init_reg_sets_1, globalize_reg): Remove all uses of
	n_non_fixed_regs.
	* hard-reg-set.h: Remove the extern for n_non_fixed_regs.

From-SVN: r111714
2006-03-04 20:04:23 +00:00
Kazu Hirata
22ec0cc8fe rtlanal.c (insns_safe_to_move_p): Remove.
* rtlanal.c (insns_safe_to_move_p): Remove.
	* rtl.h: Remove the prototype for insns_safe_to_move_p.

From-SVN: r111713
2006-03-04 19:45:26 +00:00
Kazu Hirata
2f8dc5bb4c expmed.c (expand_mult_add): Remove.
* expmed.c (expand_mult_add): Remove.
	* expr.h: Remove the prototype for expand_mult_add.

From-SVN: r111712
2006-03-04 19:44:17 +00:00
Eric Botcazou
936a6fa78a gigi.h (get_ada_base_type): Delete.
* gigi.h (get_ada_base_type): Delete.
	* utils2.c (get_ada_base_type): Likewise.
	* trans.c (convert_with_check): Operate in the real base type.

From-SVN: r111711
2006-03-04 18:27:08 +00:00
Jakub Jelinek
4469af7acf unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP constants.
* unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
	and REG_SAVED_VAL_EXP constants.
	* unwind-dw2.c (struct _Unwind_Context): Add by_value array.
	(_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
	Handle regs stored by value.
	(_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
	(execute_cfa_program): Handle DW_CFA_val_offset,
	DW_CFA_val_offset_sf and DW_CFA_val_expression.
	(uw_update_context_1): Handle REG_SAVED_REG with regs stored by
	value specially.  Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
	(uw_install_context_1): Handle target regs stored by value.

	* gcc.target/i386/cleanup-1.c: New test.
	* gcc.target/i386/cleanup-2.c: New test.

From-SVN: r111705
2006-03-04 08:07:12 +01:00
Roger Sayle
636ffc571b dependency.c (gfc_check_element_vs_element): Revert last change.
* dependency.c (gfc_check_element_vs_element): Revert last change.

	* gfortran.dg/dependency_9.f90: Remove for the time being.

From-SVN: r111703
2006-03-04 02:40:45 +00:00
Krister Walfridsson
32b830e773 bad-receiver-type.m: Add space before bracket in dg directive.
2006-03-04  Krister Walfridsson  <cato@df.lth.se>

	* objc.dg/bad-receiver-type.m: Add space before bracket in dg
	directive.

From-SVN: r111702
2006-03-04 01:53:22 +00:00
Jason Merrill
8a48be3a16 add comment
From-SVN: r111701
2006-03-03 20:29:35 -05:00
Richard Kenner
93f978b755 uintp.adb (Num_Bits): Handle Uint_Int_First specially.
* uintp.adb (Num_Bits): Handle Uint_Int_First specially.

From-SVN: r111700
2006-03-04 00:27:15 +00:00
GCC Administrator
b05547fe37 Daily bump.
From-SVN: r111698
2006-03-04 00:18:15 +00:00
Daniel Berlin
efdb3de915 tree-sra.c (tree_sra): Return todoflags;
2006-03-03  Daniel Berlin  <dberlin@dberlin.org>

	* tree-sra.c (tree_sra): Return todoflags;
	(generate_one_element): Set TODO_update_smt_usage if needed.
	(pass_sra): Remove TODO_update_smt_usage.
	* tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
	parameter.
	(tree_ssa_forward_propagate_single_use_vars): Return
	TODO_update_smt_usage if we need to update SMT usage.
	(pass_forwprop): Remove TODO_update_smt_usage.

From-SVN: r111692
2006-03-04 00:04:11 +00:00
Paolo Carlini
0efaed01c0 re PR libstdc++/26526 (std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined)
2006-03-03  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/26526
	* config/abi/pre/gnu.ver (__copy_streambufs, 64-bit version): Add
	@GLIBCXX_3.4.8; move existing symbols @GLIBCXX_3.4.8 to 3.4.9.
	* configure.ac (libtool_VERSION): To 6:9:0.
	* testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.9.
	* configure: Regenerate.

From-SVN: r111690
2006-03-03 23:54:21 +00:00
Mike Stump
b5abd706cd Fix formatting.
From-SVN: r111688
2006-03-03 22:38:15 +00:00
Roger Sayle
12de6bc686 dependency.c (gfc_check_element_vs_element): Consider two unordered scalar subscripts as (potentially) equal.
* dependency.c (gfc_check_element_vs_element): Consider two
	unordered scalar subscripts as (potentially) equal.

	* gfortran.dg/dependency_9.f90: New test case.

From-SVN: r111687
2006-03-03 21:47:24 +00:00
Roger Sayle
0b8f2ce42d dependency.c (gfc_check_dependency): Call gfc_dep_resolver to check whether two array references have a dependency.
* dependency.c (gfc_check_dependency): Call gfc_dep_resolver to
	check whether two array references have a dependency.
	(gfc_check_element_vs_element): Assume lref and rref must be
	REF_ARRAYs.  If gfc_dep_compare_expr returns -2, assume these
	references could potentially overlap.
	(gfc_dep_resolver): Whitespace and comment tweaks.  Assume a
	dependency if the references have different depths.  Rewrite
	final term to clarrify we only have a dependency for overlaps.

	* gfortran.dg/dependency_4.f90: New test case.
	* gfortran.dg/dependency_5.f90: New test case.
	* gfortran.dg/dependency_6.f90: New test case.
	* gfortran.dg/dependency_7.f90: New test case.
	* gfortran.dg/dependency_8.f90: New test case.

From-SVN: r111686
2006-03-03 21:43:08 +00:00
Mike Stump
67a70df65b decl2.c (import_export_decl): Remove redundant call to targetm.cxx.key_method_may_be_inline ().
* decl2.c (import_export_decl): Remove redundant call to
	targetm.cxx.key_method_may_be_inline ().

From-SVN: r111685
2006-03-03 20:37:50 +00:00
Tom Tromey
d07548f9ca * interpret.cc (do_allocate_static_fields): Added comment.
From-SVN: r111683
2006-03-03 18:32:22 +00:00
Diego Novillo
65ad7c6394 tree-ssa-operands.c: Tidy whitespace.
* tree-ssa-operands.c: Tidy whitespace.  Fix spelling.
	(correct_use_link): Remove reference to get_stmt_operands.
	(update_stmt_operands): Likewise.
	(get_modify_expr_operands): New function factored out of
	parse_ssa_operands and get_expr_operands.
	Try to create V_MUST_DEFs for LHS by default.
	(get_expr_operands) <case MODIFY_EXPR>: Call
	get_modify_expr_operands.
	<case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
	<case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
	(parse_ssa_operands) <case MODIFY_EXPR>: Call
	get_modify_expr_operands.

From-SVN: r111682
2006-03-03 13:15:58 -05:00
Paul Brook
e3860a7d0d target-supports.exp (check_profiling_available): Add m68k-*-elf.
2006-03-03  Paul Brook  <paul@codesourcery.com>

	* gcc/testsuite/lib/target-supports.exp (check_profiling_available):
	Add m68k-*-elf.

From-SVN: r111681
2006-03-03 17:42:50 +00:00
Kazu Hirata
417e90cada tree-dfa.c (referenced_var_lookup_if_exists): Remove.
* tree-dfa.c (referenced_var_lookup_if_exists): Remove.
	* tree-flow.h: Remove the prototype for
	referenced_var_lookup_if_exists.

From-SVN: r111680
2006-03-03 17:29:15 +00:00
Steve Ellcey
f6d65153a6 re PR rtl-optimization/26345 (-fmove-loop-invariants loses POINTER attribute)
PR rtl-optimization/26345
	PR target/19061
	* config/ia64/predicates.md (basereg_operand): Don't look in subregs.

From-SVN: r111678
2006-03-03 16:43:43 +00:00
Thomas Koenig
5b725b8d04 re PR fortran/25031 ([4.1 only] Allocatable array can be reallocated.)
2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/25031
	* trans-array.h:  Adjust gfc_array_allocate prototype.
	* trans-array.c (gfc_array_allocate):  Change type of
	gfc_array_allocatate to bool.  Function returns true if
	it operates on an array.  Change second argument to gfc_expr.
	Find last reference in chain.
	If the function operates on an allocatable array, emit call to
	allocate_array() or allocate64_array().
	* trans-stmt.c (gfc_trans_allocate):  Code to follow to last
	reference has been moved to gfc_array_allocate.
	* trans.h:  Add declaration for gfor_fndecl_allocate_array and
	gfor_fndecl_allocate64_array.
	(gfc_build_builtin_function_decls):  Add gfor_fndecl_allocate_array
	and gfor_fndecl_allocate64_array.

2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/25031
	* runtime/memory.c:  Adjust copyright years.
	(allocate_array):  New function.
	(allocate64_array):  New function.
	* libgfortran.h (error_codes):  Add ERROR_ALLOCATION.

2006-03-03  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/25031
	* multiple_allocation_1.f90:  New test.

From-SVN: r111677
2006-03-03 16:18:46 +00:00
Roger Sayle
9a75ede07c re PR tree-optimization/26524 (ICE when compiling with -ffast-math and -O3 clatm5.f (lapack))
PR tree-optimization/26524
	* tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
	fold_convert to create a constant of the appropriate type.

	* gfortran.dg/pr26524.f: New test case.

From-SVN: r111676
2006-03-03 14:35:23 +00:00
Richard Sandiford
3fa9c136c3 tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of SYMBOL_REF_IN_BLOCK_P.
* doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
	SYMBOL_REF_IN_BLOCK_P.
	* doc/rtl.texi: Likewise.  Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
	of SYMBOL_FLAG_IN_BLOCK.
	* gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
	instead of SYMBOL_REF_IN_BLOCK_P.
	* explow.c (use_anchored_address): Likewise.
	* rtl.c (rtx_size): Likewise.
	* varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
	instead of SYMBOL_FLAG_IN_BLOCK.
	(make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
	SYMBOL_REF_IN_BLOCK_P.
	(assemble_variable): Likewise.
	(output_constant_def_contents): Likewise.
	(output_constant_pool): Likewise.
	(default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
	instead of SYMBOL_FLAG_IN_BLOCK.
	* rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
	SYMBOL_REF_IN_BLOCK_P.
	(SYMBOL_REF_BLOCK): Likewise.
	(SYMBOL_REF_OFFSET): Likewise.
	(BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
	SYMBOL_REF_IN_BLOCK_P.
	(SYMBOL_FLAG_IN_BLOCK): Replace with...
	(SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
	(SYMBOL_REF_IN_BLOCK_P): Replace with...
	(SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.

From-SVN: r111675
2006-03-03 09:11:58 +00:00