aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
AgeCommit message (Collapse)AuthorFilesLines
2007-04-16Indentation fix.Tobias Schlüter1-1/+1
From-SVN: r123869
2007-04-15re PR fortran/31204 (wrong host association of implied loop variable)Paul Thomas4-0/+55
2007-04-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/31204 * primary.c (check_for_implicit_index): New function to check that a host associated variable is not an undeclared implied do loop index. (gfc_match_rvalue, match_variable): Use it and reset the implied_index attribute. * gfortran.h : Add the implied_index field to symbol_attribute. * match.c (gfc_match_iterator): Mark the iterator variable with the new attribute. * decl.c (build_sym): Reset the new attribute. 2007-04-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/31204 * gfortran.dg/array_constructor_16.f90: New test. From-SVN: r123849
2007-04-15gfc-internals.texi: Fix typos.Kazu Hirata3-3/+8
* gfc-internals.texi: Fix typos. * simplify.c: Fix a comment typo. From-SVN: r123845
2007-04-14+2007-04-14 Bernhard FischerBernhard Reutner-Fischer2-2/+8
* primary.c: Commentary typo fix; Add question about redundant (?) set. * ChangeLog: Fix formatting of previous ChangeLog entry which did not obey "'name" <name@there.tdl>' convention. From-SVN: r123821
2007-04-14re PR fortran/29507 ([4.2 only] INDEX in an array initialization causes ICE)Paul Thomas2-1/+144
2007-04-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/29507 PR fortran/31404 * expr.c (scalarize_intrinsic_call): New function to scalarize elemental intrinsic functions in initialization expressions. (check_init_expr): Detect elemental intrinsic functions in initalization expressions and call previous. 2007-04-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/29507 PR fortran/31404 * gfortran.dg/initialization_6.f90: New test. From-SVN: r123815
2007-04-13re PR fortran/31559 ([4.1 only] Assigning to an EXTERNAL leads to ICE)Tobias Burnus2-19/+26
2007-04-13 Tobias Burnus <burnus@net-b.de> PR fortran/31559 * primary.c (match_variable): External functions are no variables. 2007-04-13 Tobias Burnus <burnus@net-b.de> PR fortran/31559 * gfortran.dg/func_assign.f90: New test. From-SVN: r123793
2007-04-13re PR fortran/31550 (f951: segfault in fold-const.c:1963)Paul Thomas2-1/+7
2007-04-13 Paul Thomas <pault@gcc.gnu.org> PR fortran/31550 * trans-types.c (copy_dt_decls_ifequal): Do not get pointer derived type components. 2007-04-13 Paul Thomas <pault@gcc.gnu.org> PR fortran/31550 * gfortran.dg/used_types_16.f90: New test. From-SVN: r123791
2007-04-13re PR fortran/18937 (quadratic behaviour with many label "spaghetti" code)Tobias Schlüter2-47/+100
PR fortran/18937 fortran/ * resolve.c: Include obstack.h and bitmap.h. New variable labels_obstack. (code_stack): Add tail and reachable_labels fields. (reachable_labels): New function. (resolve_branch): Rework to use new fields in code_stack. (resolve_code): Call reachable_labels. (resolve_codes): Allocate and free labels_obstack. testsuite/ * gfortran.dg/goto_2.f90: New. * gfortran.dg/goto_3.f90: New. * gfortran.dg/pr17708.f90: Rename to ... * gfortran.dg/goto_4.f90: ... this, add comment pointing to PR. From-SVN: r123789
2007-04-12re PR fortran/31250 (Initialization expr as constant character length rejected)Tobias Schlüter3-13/+24
PR fortran/31250 fortran/ * decl.c (match_char_spec): Move check for negative CHARACTER length ... * resolve.c (resolve_charlen): ... here. (resolve_types): Resolve CHARACTER lengths earlier. teststuite/ * gfortran.dg/char_length_2.f90: New. From-SVN: r123763
2007-04-12re PR fortran/31234 (Thread-safety of random_number should be documented.)Daniel Franke2-6/+71
2007-04-12 Daniel Franke <franke.daniel@gmail.com> PR fortran/31234 * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New. From-SVN: r123760
2007-04-12re PR fortran/31266 (Spurious(?) warning about character truncation)Tobias Schlüter3-3/+16
PR fortran/31266 fortran/ * primary.c (gfc_variable_attr): Don't copy string length if it doesn't make sense. * resolve.c (resolve_code): Clarify error message. testsuite/ * gfortran.dg/char_assign_1.f90: New. From-SVN: r123759
2007-04-12decl.c (gfc_match_end): Also check for construct name in END FORALL and END ↵Tobias Schlüter3-3/+19
WERE statements. fortran/31471 fortran/ * decl.c (gfc_match_end): Also check for construct name in END FORALL and END WERE statements. * match.c (match_case_eos): Use uppercase for statement name in error message. (match_elsewhere): Construct name may appear iff construct has a name. testsuite/ * gfortran.dg/block_name_1.f90: New. * gfortran.dg/block_name_2.f90: New. From-SVN: r123758
2007-04-12+ * trans-types.c: Update copyright years.Tobias Schlüter2-37/+42
+ * trans-types.c: Update copyright years. Reformat long comment + explaining array descriptor format. Remove obsolete mention of + TYPE_SET. + From-SVN: r123753
2007-04-12arith.c (gfc_arith_uplus): Rename to ...Tobias Schlüter4-4/+28
* arith.c (gfc_arith_uplus): Rename to ... (gfc_arith_identity): ... this. (gfc_parentheses): New function. (gfc_uplus): Adapt to renamed function. * arith.h (gfc_parentheses): Add prototype. * expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES. (simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from INTRINSIC_PARENTHESES. From-SVN: r123750
2007-04-12re PR fortran/31472 (gfortran does not detect the illegal use of an access ↵Tobias Burnus2-59/+105
specification in a program, subroutine, or function) 2007-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/31472 * decl.c (match_attr_spec): Allow PRIVATE/PUBLIC attribute in type definitions. (gfc_match_private): Allow PRIVATE statement only in specification part of modules. (gfc_match_public): Ditto for PUBLIC. (gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in specificification part of modules. 2007-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/31472 * gfortran.dg/access_spec_1.f90: New test. * gfortran.dg/access_spec_2.f90: New test. * gfortran.dg/non_module_public.f90: Match new error message. From-SVN: r123735
2007-04-11re PR tree-optimization/30735 (50% slow down due to mem-ssa merge)Diego Novillo1-4/+0
PR 30735 PR 31090 * doc/invoke.texi: Document --params max-aliased-vops and avg-aliased-vops. * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions, debug_memory_partitions): Move to tree-flow.h * params.h (AVG_ALIASED_VOPS): Define. * tree-ssa-alias.c (struct mp_info_def): Remove. Update all users. (mp_info_t): Likewise. (get_mem_sym_stats_for): New. (set_memory_partition): Move from tree-flow-inline.h. (mark_non_addressable): Only clear the set of symbols for the partition if it exists. (dump_memory_partitions): Move from tree-ssa-operands.c (debug_memory_partitions): Likewise. (need_to_partition_p): New. (dump_mem_ref_stats): New. (debug_mem_ref_stats): New. (dump_mem_sym_stats): New. (debug_mem_sym_stats): New. (update_mem_sym_stats_from_stmt): New. (compare_mp_info_entries): New. (mp_info_cmp): Call it. (sort_mp_info): Change argument to a list of mem_sym_stats_t objects. (get_mpt_for): Move from tree-ssa-operands.c. (find_partition_for): New. (create_partition_for): Remove. (estimate_vop_reduction): New. (update_reference_counts): New. (build_mp_info): New. (compute_memory_partitions): Refactor. Document new heuristic. Call build_mp_info, update_reference_counts, find_partition_for and estimate_vop_reduction. (compute_may_aliases): Populate virtual operands before calling debugging dumps. (delete_mem_sym_stats): New. (delete_mem_ref_stats): New. (init_mem_ref_stats): New. (init_alias_info): Call it. (maybe_create_global_var): Remove alias_info argument. Get number of call sites and number of pure/const call sites from gimple_mem_ref_stats(). (dump_alias_info): Call dump_memory_partitions first. (dump_points_to_info_for): Show how many times a pointer has been dereferenced. * opts.c (decode_options): For -O2 set --param max-aliased-vops to 500. For -O3 set --param max-aliased-vops to 1000 and --param avg-aliased-vops to 3. * fortran/options.c (gfc_init_options): Remove assignment to MAX_ALIASED_VOPS. * tree-flow-inline.h (gimple_mem_ref_stats): New. * tree-dfa.c (dump_variable): Dump memory reference statistics. Dump NO_ALIAS* settings. (referenced_var_lookup): Tidy. (mem_sym_stats): New. * tree-ssa-copy.c (may_propagate_copy): Return true if DEST and ORIG are different SSA names for a memory partition. * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats. * tree-flow.h (struct mem_sym_stats_d): Define. (mem_sym_stats_t): Define. (struct mem_ref_stats_d): Define. (struct gimple_df): Add field mem_ref_stats. (enum noalias_state): Define. (struct var_ann_d): Add bitfield noalias_state. (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats, debug_mem_ref_stats, debug_memory_partitions, debug_mem_sym_stats): Declare. * tree-ssa-structalias.c (update_alias_info): Update call sites, pure/const call sites and asm sites in structure returned by gimple_mem_ref_stats. Remove local variable IS_POTENTIAL_DEREF. Increase NUM_DEREFS if the memory expression is a potential dereference. Call update_mem_sym_stats_from_stmt. If the memory references memory, call update_mem_sym_stats_from_stmt for all the direct memory symbol references found. (intra_create_variable_infos): Set noalias_state field for pointer arguments according to the value of flag_argument_noalias. * tree-ssa-structalias.h (struct alias_info): Remove fields num_calls_found and num_pure_const_calls_found. (update_mem_sym_stats_from_stmt): Declare. * params.def (PARAM_MAX_ALIASED_VOPS): Change description. Set default value to 100. (PARAM_AVG_ALIASED_VOPS): Define. From-SVN: r123719
2007-04-07re PR fortran/31257 (ICE in gfc_conv_expr_descriptor)Paul Thomas4-1/+25
2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31257 * intrinsic.c (add_functions): Add ref. to gfc_resolve_achar. * intrinsic.h : Add prototype for gfc_resolve_achar. * iresolve.c (gfc_resolve_achar): New function. 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31257 * gfortran.dg/achar_4.f90: New test. From-SVN: r123646
2007-04-07re PR fortran/30880 (Derived types with default value -- function with ↵Paul Thomas2-3/+14
ENTRY: rejected at compile time) 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/30880 * resolve.c (resolve_fl_variable): Set flag to 2 for automatic arrays. Make condition for automatic array error explicit. If a dummy, no error on an INTENT(OUT) derived type. 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/30880 * gfortran.dg/used_dummy_types_8.f90: New test. From-SVN: r123645
2007-04-07re PR fortran/30872 (Bogus "size of variable is too large")Paul Thomas2-0/+17
2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/30872 * expr.c (find_array_element): Correct arithmetic for rank > 1. 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/30872 * gfortran.dg/parameter_array_element_1.f90: New test. From-SVN: r123644
2007-04-07re PR fortran/31222 (Rejected: implicitly-typed dummys used in ↵Paul Thomas2-0/+18
initialization expressions) 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31222 * check.c (numeric_check): If an expresson has not got a type, see if it is a symbol for which a default type applies. 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31222 * gfortran.dg/default_numeric_type_1.f90: New test. From-SVN: r123643
2007-04-07re PR fortran/31214 (User-defined operator using entry leads to ICE)Paul Thomas2-1/+8
2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31214 * trans-decl.c (gfc_get_symbol_decl): Allow unreferenced use associated symbols. 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31424 * gfortran.dg/unreferenced_use_assoc_1.f90: New test. From-SVN: r123642
2007-04-07re PR fortran/31293 (Implicit character and array returning functions)Paul Thomas4-1/+45
2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31293 * symbol.c (gfc_check_function_type): New function. * gfortran.h : Add prototype for previous. * parse.c (parse_progunit): Call it after parsing specification statements. 2007-04-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/31293 * gfortran.dg/interface_12.f90: New test. From-SVN: r123641
2007-04-05re PR fortran/31483 ([4.1/4.2 only] ICE on fortran Code)Paul Thomas2-6/+18
2007-04-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/31483 * trans-expr.c (gfc_conv_function_call): Give a dummy procedure the correct type if it has alternate returns. 2007-04-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/31483 * gfortran.dg/altreturn_5.f90: New test. From-SVN: r123518
2007-04-05re PR fortran/31292 (ICE with module procedure interface in a procedure body)Paul Thomas2-1/+16
2007-04-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/31292 * decl.c (gfc_match_modproc): Go up to the top of the namespace tree to find the module namespace for gfc_get_symbol. 2007-04-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/31292 * gfortran.dg/contained_module_proc_1.f90: New test. From-SVN: r123517
2007-04-03re PR fortran/31304 (REPEAT argument NCOPIES is not converted as it should)Francois-Xavier Coudert7-41/+174
PR fortran/31304 * fortran/gfortran.h (gfc_charlen_int_kind): New prototype. * fortran/trans-types.c (gfc_charlen_int_kind): New variable. (gfc_init_types): Define gfc_charlen_int_kind. * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype. * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete. (gfc_build_intrinsic_function_decls): Don't set gfor_fndecl_string_repeat. * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite so that we don't have to call a library function. * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary checks on the NCOPIES argument, and work with arbitrary size arguments. * intrinsics/string_intrinsics.c (string_repeat): Remove. * gfortran.dg/repeat_2.f90: New test. * gfortran.dg/repeat_3.f90: New test. * gfortran.dg/repeat_4.f90: New test. From-SVN: r123481
2007-03-31intrinsic.c (add_functions): Fix name of dummy argument for new_line and ↵Tobias Burnus2-2/+7
exit intrinsic. 2007-03-31 Tobias Burnus <burnus@net-b.de> * intrinsic.c (add_functions): Fix name of dummy argument for new_line and exit intrinsic. From-SVN: r123385
2007-03-31re PR fortran/31160 (%VAL and related features need to be documented.)Paul Thomas2-0/+45
2007-03-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/31160 * gfortran.texi: Add a section for the %VAL, %REF and %LOC extensions. From-SVN: r123383
2007-03-30typeck.c (java_signed_or_unsigned_type): Remove.Rafael Avila de Espindola4-17/+11
gcc/java/ChangeLog: * typeck.c (java_signed_or_unsigned_type): Remove. (java_signed_type): use get_signed_or_unsigned_type instead of java_signed_or_unsigned_type. (java_unsigned_type): Ditto. * lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove. * java-tree.h (java_signed_or_unsigned_type): Remove gcc/Changelog: * tree.h(get_signed_or_unsigned_type): New * fold-const.c (operand_equal_for_comparison_p): Use get_signed_or_unsigned_type instead of lang_hooks.types.signed_or_unsigned_type. * expr.c (store_expr): Ditto. * langhooks.c (get_signed_or_unsigned_type): New. (lhd_signed_or_unsigned_type): New * langhooks.h (lhd_signed_or_unsigned_type): New. * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define. gcc/treelang/ChangeLog: * treetree.c (tree_lang_signed_or_unsigned_type): Remove. (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove. gcc/ada/ChangeLog: * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type instead of gnat_signed_or_unsigned_type. * utils.c (gnat_signed_or_unsigned_type): Remove. * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove * gigi.h (gnat_signed_or_unsigned_type): Remove gcc/forrtan/trans-types.c: * trans-types.c (gfc_signed_or_unsigned_type): Remove. (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of gfc_signed_or_unsigned_type. (gfc_signed_type): Ditto. * trans-types.h (gfc_signed_or_unsigned_type): Remove. * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove. From-SVN: r123373
2007-03-30symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally descend into ↵Tobias Schlüter2-9/+13
all branches. * symbol.c (gfc_find_gsymbol): Simplify, don't unconditionally descend into all branches. From-SVN: r123355
2007-03-30intrinsic.c (conv_name): Let gfc_get_string handle the format.Tobias Schlüter2-8/+17
* intrinsic.c (conv_name): Let gfc_get_string handle the format. (find_conv): Compare pointers instead of calling strcmp. (find_sym): Likewise, but ensure that the compared pointer is in the global string table. From-SVN: r123346
2007-03-28gfc-internals.texi: Fix output filename.Tobias Schlüter2-1/+57
2007-03-28 Tobias Schlter <tobi@gcc.gnu.org> * gfc-internals.texi: Fix output filename. Merge type index into concept index. Start documentation of gfc_code structure. From-SVN: r123309
2007-03-26gfc-internals.texi: New file,Brooks Moses3-3/+395
* gfc-internals.texi: New file, * Make-lang.in: Add rules to convert it to dvi, pdf, and info. From-SVN: r123251
2007-03-26* error.c (show_locus): Remove always-false test.Brooks Moses2-6/+4
From-SVN: r123244
2007-03-26* lang.opt: Minor edits to descriptions.Brooks Moses2-2/+6
From-SVN: r123236
2007-03-25re PR fortran/30877 (Extending intrinsic operators)Francois-Xavier Coudert3-82/+124
PR fortran/30877 * fortran/interface.c (check_operator_interface): Implement the standard checks on user operators extending intrinsic operators. * fortran/resolve.c (resolve_operator): If the ranks of operators don't match, don't error out but try the user-defined ones first. * gfortran.dg/operator_1.f90: New test. * gfortran.dg/operator_2.f90: New test. From-SVN: r123196
2007-03-24re PR fortran/30655 (Undue out-of-bounds warning)Francois-Xavier Coudert2-33/+43
PR fortran/30655 * expr.c (check_dimension): Fix logic of comparisons. * gfortran.dg/bounds_check_6.f90: New test. From-SVN: r123187
2007-03-24re PR fortran/31215 (ICE on valid code with gfortran)Paul Thomas1-1/+1
2007-03-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/31215 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return int result that is non-zero if the expression is the function result. Only the characteristics of the result expression can be used in a procedure interface, so simplify LEN in situ using its character length. PR fortran/31219 PR fortran/31200 * trans-expr.c (gfc_conv_function_call): Do not use gfc_conv_expr_reference for actual pointer function with formal target because a temporary is created that does not transfer the reference correctly. Do not indirect formal pointer functions since it is the function reference that is needed. 2007-03-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/31219 * gfortran.dg/pointer_function_actual_1.f90: New test. PR fortran/31200 * gfortran.dg/pointer_function_actual_2.f90: New test. PR fortran/31215 * gfortran.dg/result_in_spec_1.f90: New test. From-SVN: r123184
2007-03-24re PR fortran/31215 (ICE on valid code with gfortran)Paul Thomas2-4/+48
2007-03-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/31215 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return int result that is non-zero if the expression is the function result. Only the characteristics of the result expression can be used in a procedure interface, so simplify LEN in situ using its character length. PR fortran/31219 PR fortran/31200 * trans-expr.c (gfc_conv_function_call): Do not use gfc_conv_expr_reference for actual pointer function with formal target because a temporary is created that does not transfer the reference correctly. Do not indirect formal pointer functions since it is the function reference that is needed. 2007-03-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/31219 * gfortran.dg/pointer_function_actual_1.f90: New test. PR fortran/31200 * gfortran.dg/pointer_function_actual_2.f90: New test. PR fortran/31215 * gfortran.dg/result_in_spec_1.f90: New test. From-SVN: r123183
2007-03-24* gfortran.h: Edit comments on GFC_STD_*.Brooks Moses2-3/+10
From-SVN: r123182
2007-03-24invoke.texi: Misc.Brooks Moses2-18/+49
* invoke.texi: Misc. small typo fixes. (-Wcharacter-truncation): Add. (-Wnonstd-intrinsics): Correct spelling. (-std=): Edit. (-fintrinsic-modules-path): Add. From-SVN: r123181
2007-03-23re PR fortran/30834 (ICE with kind=8 exponentiaton)Francois-Xavier Coudert2-56/+129
PR fortran/30834 * arith.c (complex_pow): Rewrite to handle large power. (gfc_arith_power): Handle large power in the real and integer cases. * gfortran.dg/integer_exponentiation_3.F90: New test. * gfortran.dg/integer_exponentiation_4.f90: New test. * gfortran.dg/integer_exponentiation_5.F90: New test. From-SVN: r123154
2007-03-22re PR fortran/31262 (-fno-range-check with large integer values triggers ICE)Francois-Xavier Coudert2-9/+25
PR fortran/31262 * trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants larger than twice the width of a HOST_WIDE_INT. * gfortran.dg/no_range_check_1.f90: New test. From-SVN: r123136
2007-03-22re PR fortran/31193 ([4.2 only] ICE on non-constant character tranfert)Paul Thomas2-37/+47
2006-03-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/31193 * trans-intrinsic.c (gfc_size_in_bytes): Remove function. (gfc_conv_intrinsic_array_transfer): Remove calls to previous. Explicitly extract TREE_TYPEs for source and mold. Use these to calculate length of source and mold, except for characters, where the se string_length is used. For mold, the TREE_TYPE is recalculated using gfc_get_character_type_len so that the result is correctly cast for character literals and substrings. Do not use gfc_typenode_for_spec for the final cast. 2006-03-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/31193 * gfortran.dg/transfer_array_intrinsic_3.f90: New test. From-SVN: r123131
2007-03-22re PR fortran/20897 (derived type name shall not be same as intrinsic type name)Tobias Schlüter2-2/+12
PR fortran/20897 fortran/ * decl.c (gfc_match_derived_decl): Reliably reject 'doubleprecision' and 'doublecomplex' as type names. testsuite/ * gfortran.dg/derived_name_1.f90: New. * gfortran.dg/derived_name_2.f: New. From-SVN: r123129
2007-03-19re PR fortran/31203 ([4.1/4.2 only] Character length should never be negative)Francois-Xavier Coudert2-1/+16
PR fortran/31203 * trans-expr.c (gfc_trans_init_string_length): Length should never be negative. (gfc_conv_function_call): Likewise. * gfortran.dg/string_length_1.f90: New test. From-SVN: r123051
2007-03-18re PR fortran/30531 ([4.2 only] allocatable component and intent(out) yield ↵Paul Thomas5-69/+36
ICE in fold_convert) 2007-03-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/30531 PR fortran/31086 * symbo.c : Add gfc_derived_types. (gfc_free_dt_list): Free derived type list gfc_derived_types. (gfc_free_namespace): Remove call to gfc_free_dt_list. (gfc_symbol_done_2): Call gfc_free_dt_list. * gfortran.h : Declare gfc_derived_types to be external. Remove derived types field from gfc_namespace. * resolve.c (resolve_fl_derived): Refer to gfc_derived types rather than namespace derived_types. (resolve_fntype): Remove special treatment for module derived type functions. * trans-types.c (gfc_get_derived_type): Remove search for like derived types. Finish by copying back end declaration to like derived types in the derived type list gfc_derived_types. 2007-03-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/30531 * gfortran.dg/used_types_14.f90: New test. PR fortran/31086 * gfortran.dg/used_types_15.f90: New test. From-SVN: r123037
2007-03-17re PR fortran/31120 ([4.1/4.2 only] ICE with integer_exponentiation_1.f90 ↵Francois-Xavier Coudert2-5/+23
and -ffast-math) PR fortran/31120 * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi. (gfc_conv_cst_int_power): Handle integer exponent with care, since it might be too large for us. * gfortran.dg/integer_exponentiation_2.f90: New test. From-SVN: r123028
2007-03-17re PR fortran/31184 (gfortran option description wrong)Francois-Xavier Coudert2-1/+6
PR fortran/31184 * invoke.texi: Fix typo. From-SVN: r123018
2007-03-16[multiple changes]Tobias Burnus1-1/+7
2007-03-16 Paul Thomas <pault@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/31188 * expr.c (find_array_section): Allow non-expression-constant variables. 2007-03-16 Tobias Burnus <burnus@net-b.de> PR fortran/31188 * gfortran.dg/parameter_array_dummy.f90: New test. From-SVN: r122987
2007-03-16trans-decl.c (gfc_generate_function_code): Use all arguments of set_std.Tobias Burnus2-1/+6
2007-03-16 Tobias Burnus <burnus@net-b.de> * trans-decl.c (gfc_generate_function_code): Use all arguments of set_std. From-SVN: r122981