Commit Graph

74077 Commits

Author SHA1 Message Date
Richard Sandiford
1d3dbd99b6 hooks.c (hook_bool_mode_rtx_true): New function.
* hooks.c (hook_bool_mode_rtx_true): New function.
	* hooks.h (hook_bool_mode_rtx_true): Declare.
	* toplev.c (compile_file): Call output_shared_constant_pool.
	* varasm.c (shared_constant_pool): New variable.
	(assemble_start_function, assemble_end_function): Remove arguments
	from call to output_constant_pool.
	(create_constant_pool): New function, split out from...
	(init_varasm_status): ...here.
	(force_const_mem): Choose between the shared and per-function constant
	pools.  Set current_function_uses_const_pool when reusing old entries
	as well as when creating new ones.
	(mark_constant): Ignore data argument.
	(mark_constants): Remove pool argument.
	(mark_constant_pool): Likewise.  Use current_function_uses_const_pool
	to decide whether the function uses a constant pool.
	(output_constant_pool_contents): New function, split out from...
	(output_constant_pool): ...here.
	(output_shared_constant_pool): New function.
	(init_varasm_once): Initialize shared_constant_pool.
	* output.h (output_constant_pool): Delete.
	(output_shared_constant_pool): Declare.
	* config/s390/s390-protos.h (s390_output_constant_pool): Delete.
	* config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.

From-SVN: r111804
2006-03-07 07:41:39 +00:00
Erik Edelmann
06af4f5d20 Corrected dates in recent ChangeLog entries in fortran/Changelog and
testsuite/Changelog.

From-SVN: r111803
2006-03-07 00:45:23 +00:00
GCC Administrator
e85d6e22a0 Daily bump.
From-SVN: r111801
2006-03-07 00:17:35 +00:00
Paul Thomas
42a0e16c2d trans-array.c (gfc_trans_dealloc_allocated): New function.
fortran/
2005-03-06  Paul Thomas  <pault@gcc.gnu.org>
            Erik Edelmann  <eedelman@gcc.gnu.org>

        * trans-array.c (gfc_trans_dealloc_allocated): New function.
        (gfc_trans_deferred_array): Use it, instead of inline code.
        * trans-array.h: Prototype for gfc_trans_dealloc_allocated().
        * trans-expr.c (gfc_conv_function_call): Deallocate allocated
        ALLOCATABLE, INTENT(OUT) arguments upon procedure entry.


testsuite/
2005-03-06  Paul Thomas  <pault@gcc.gnu.org>
            Erik Edelmann  <eedelman@gcc.gnu.org>

        * gfortran.dg/allocatable_dummy_1.f90: Take into account that
        INTENT(OUT) arguments shall be deallocated upon procedure entry.


Co-Authored-By: Erik Edelmann <eedelman@gcc.gnu.org>

From-SVN: r111795
2006-03-06 23:12:41 +00:00
Paul Thomas
c09a1bf1a2 Remove svn:executable from gfortran.dg/parent_result_ref_3.f90
From-SVN: r111794
2006-03-06 23:04:20 +00:00
Paul Thomas
5f20c93a30 re PR fortran/26107 (ICE after error message on invalid code)
2006-03-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/26107
	* resolve.c (resolve_function): Add name after test for pureness.

	PR fortran/19546
	* trans-expr.c (gfc_conv_variable): Detect reference to parent result,
	store current_function_decl, replace with parent, whilst calls are
	made to gfc_get_fake_result_decl, and restore afterwards. Signal this
	to gfc_get_fake_result_decl with a new argument, parent_flag.
	* trans-stmt.c (gfc_trans_return): gfc_get_fake_result_decl 2nd arg
	is set to zero.
	* trans.h: Add parent_flag to gfc_get_fake_result_decl prototype.
	* trans-decl.c (gfc_get_fake_result_decl): On parent_flag, being set,
	add decl to parent function. Replace refs to current_fake_result_decl
	with refs to this_result_decl.
	(gfc_generate_function_code): Null parent_fake_result_decl before the
	translation of code for contained procedures. Set parent_flag to zero
	in call to gfc_get_fake_result_decl.
	* trans-intrinsic.c (gfc_conv_intrinsic_len): The same.

2006-03-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/26107
	* pure_dummy_length_1.f90: New test.

	PR fortran/19546
	* gfortran.dg/parent_result_ref_1.f90: New test.
	* gfortran.dg/parent_result_ref_2.f90: New test.
	* gfortran.dg/parent_result_ref_3.f90: New test.
	* gfortran.dg/parent_result_ref_4.f90: New test.

From-SVN: r111793
2006-03-06 22:56:39 +00:00
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