aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
AgeCommit message (Collapse)AuthorFilesLines
2008-12-15re PR fortran/38487 (Bogus Warning: INTENT(INOUT) actual argument might ↵Mikael Morin2-12/+30
interfere with actual argument) 2008-12-15 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38487 * gfortran.dg/elemental_dependency_2.f90: New test. 2008-12-15 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38487 * dependency.c (gfc_is_data_pointer): New function. (gfc_check_argument_var_dependency): Disable the warning in the pointer case. (gfc_check_dependency): Use gfc_is_data_pointer. From-SVN: r142766
2008-12-15re PR fortran/38113 (on warning/error: skip whitespaces, move position ↵Mikael Morin3-10/+11
marker to actual variable name) 2008-12-15 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38113 * error.c (show_locus): Start counting columns at 0. * primary.c (match_actual_arg): Eat spaces before copying the current locus. (match_variable): Copy the locus before matching. From-SVN: r142763
2008-12-14re PR fortran/35937 (Wrong type for charlength of function)Paul Thomas2-1/+7
2008-12-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/35937 * trans-expr.c (gfc_finish_interface_mapping): Fold convert the character length to gfc_charlen_type_node. 2008-12-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/35937 * gfortran.dg/char_length_14.f90: New test. From-SVN: r142750
2008-12-12re PR fortran/36355 (matmul argument-check: wrong error messages)Daniel Franke2-2/+18
gcc/fortran: 2008-12-12 Daniel Franke <franke.daniel@gmail.com> PR fortran/36355 * check.c (gfc_check_matmul): Fixed error message for invalid types to correctly identify the offending argument, added check for mismatching types. gcc/testsuite: 2008-12-12 Daniel Franke <franke.daniel@gmail.com> PR fortran/36355 * gfortran.dg/matmul_argument_types.f90: New. From-SVN: r142709
2008-12-11Make-lang.in (install-finclude-dir): Use correct mode argument for ↵Richard Guenther2-1/+6
mkinstalldirs. 2008-12-11 Richard Guenther <rguenther@suse.de> * Make-lang.in (install-finclude-dir): Use correct mode argument for mkinstalldirs. From-SVN: r142676
2008-12-09re PR fortran/36376 (-cpp -save-temps passes unknown options to f951)Daniel Franke2-10/+32
2008-12-09 Daniel Franke <franke.daniel@gmail.com> PR fortran/36376 PR fortran/37468 * lang-specs.h: Pass on -i* options to f951 to (probably) report them as unknown. Duplicate gcc.c (cpp_options), but omit -fpch-preprocess on -save-temps. From-SVN: r142608
2008-12-09re PR fortran/36457 (preprocessing: option -idirafter undefined for fortran)Daniel Franke5-1/+37
2008-12-09 Daniel Franke <franke.daniel@gmail.com> PR fortran/36457 * lang.opt: Added option idirafter. * cpp.h (gfc_cpp_add_include_path_after): New prototype. * cpp.c (gfc_cpp_handle_option): Recognize and handle OPT_dirafter. (gfc_cpp_add_include_path_after): New, adds user-defined search path after any other paths. * invoke.texi (idirafter): New. (no-range-check): Fixed entry in option-index. From-SVN: r142607
2008-12-09re PR fortran/37469 (invalid GMP usage on ↵Mikael Morin2-4/+19
gfortran.dg/parameter_array_init_3.f90) 2008-12-09 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37469 * expr.c (find_array_element): Simplify array bounds. Assert that both bounds are constant expressions. From-SVN: r142606
2008-12-09re PR fortran/35983 (C_LOC in derived type constructor gives weird result)Mikael Morin2-14/+11
2008-12-09 Mikael Morin <mikael.morin@tele2.fr> PR fortran/35983 * trans-expr.c (gfc_trans_subcomponent_assign): Add se's pre and post blocks to current block. (gfc_trans_structure_assign): Remove specific handling of C_NULL_PTR and C_NULL_FUNPTR. 2008-12-09 Mikael Morin <mikael.morin@tele2.fr> PR fortran/35983 * gfortran.dg/pr35983.f90: New test. From-SVN: r142605
2008-12-07re PR fortran/38425 (I/O: POS= compile-time diagnostics)Jerry DeLisle2-5/+19
2008-12-06 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/38425 * io.c (check_io_constraints): Check constraints on REC=, POS=, and internal unit with POS=. Fix punctuation on a few error messages. From-SVN: r142534
2008-12-06re PR fortran/38415 (procedure pointer assignment to abstract interface)Janus Weil2-1/+15
2008-12-06 Janus Weil <janus@gcc.gnu.org> PR fortran/38415 * expr.c (gfc_check_pointer_assign): Added a check for abstract interfaces in procedure pointer assignments, removed check involving gfc_compare_interfaces until PR38290 is fixed completely. 2008-12-06 Janus Weil <janus@gcc.gnu.org> PR fortran/38415 * gfortran.dg/proc_ptr_2.f90: Extended. * gfortran.dg/proc_ptr_11.f90: Modified. From-SVN: r142520
2008-12-06re PR fortran/38291 (Rejects I/O with POS= if FMT=*)Jerry DeLisle2-2/+10
2008-12-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/38291 * io.c (match_dt_element): Use dt->pos in matcher. (gfc_free_dt): Free dt->pos after use. (gfc_resolve_dt): Use dt->pos in resolution of stream position tag. 2008-12-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/38291 * io/transfer.c (data_transfer_init): Add checks for POS= valid range. Add check for unit opened with ACCESS="stream". Flush and seek if current stream position does not match. Check ENDFILE on read. From-SVN: r142515
2008-12-05Fix dates.Eric Botcazou1-1/+1
From-SVN: r142470
2008-12-05re PR bootstrap/38262 (GCC components unnecessarily link with shared gmp/mpfr)Jakub Jelinek1-0/+5
PR bootstrap/38262 Fixup ChangeLog entries. From-SVN: r142466
2008-12-05re PR bootstrap/38262 (GCC components unnecessarily link with shared gmp/mpfr)Sebastian Pop1-1/+1
2008-11-07 Sebastian Pop <sebastian.pop@amd.com> PR bootstrap/38262 * java/Make-lang.in (jc1): Add BACKENDLIBS, remove GMPLIBS. * objc/Make-lang.in (cc1obj-dummy, cc1obj): Same. * objcp/Make-lang.in (cc1objplus-dummy, cc1objplus): Same. * cp/Make-lang.in (cc1plus-dummy, cc1plus): Same. * ada/gcc-interface/Make-lang.in (gnat1): Same. * fortran/Make-lang.in (f951): Same. * Makefile.in (LIBS): Remove GMPLIBS, CLOOGLIBS and PPLLIBS. (BACKENDLIBS): New. (cc1-dummy, cc1): Add BACKENDLIBS, remove GMPLIBS. From-SVN: r142464
2008-12-02Make-lang.in (install-finclude-dir): Use mkinstalldirs and don't remove the ↵Jakub Jelinek2-3/+7
finclude directory beforehand. 2008-12-02 Jakub Jelinek <jakub@redhat.com> Diego Novillo <dnovillo@google.com> * Make-lang.in (install-finclude-dir): Use mkinstalldirs and don't remove the finclude directory beforehand. Co-Authored-By: Diego Novillo <dnovillo@google.com> From-SVN: r142365
2008-12-02re PR fortran/36704 (Procedure pointer as function result)Janus Weil7-9/+51
2008-12-02 Janus Weil <janus@gcc.gnu.org> PR fortran/36704 PR fortran/38290 * decl.c (match_result): Result may be a standard variable or a procedure pointer. * expr.c (gfc_check_pointer_assign): Additional checks for procedure pointer assignments. * primary.c (gfc_match_rvalue): Bugfix for procedure pointer assignments. * resolve.c (resolve_function): Check for attr.subroutine. * symbol.c (check_conflict): Addtional checks for RESULT statements. * trans-types.c (gfc_sym_type,gfc_get_function_type): Support procedure pointers as function result. 2008-12-02 Janus Weil <janus@gcc.gnu.org> PR fortran/36704 PR fortran/38290 * gfortran.dg/entry_7.f90: Modified. * gfortran.dg/proc_ptr_2.f90: Extended. * gfortran.dg/proc_ptr_3.f90: Modified. * gfortran.dg/proc_ptr_11.f90: New. * gfortran.dg/proc_ptr_12.f90: New. * gfortran.dg/result_1.f90: New. From-SVN: r142351
2008-12-01re PR fortran/38252 (Empty function with CONTAINS triggers Internal Error)Mikael Morin2-1/+7
2008-12-01 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38252 * parse.c (parse_spec): Skip statement order check in case of a CONTAINS statement. 2008-12-01 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38252 * gfortran.dg/empty_function_1.f90: New test. From-SVN: r142327
2008-11-30re PR fortran/37779 (Missing RECURSIVE not detected)Daniel Kraft3-44/+89
2008-11-30 Daniel Kraft <d@domob.eu> PR fortran/37779 * gfortran.h (struct gfc_entry_list): Fixed typo in comment. * resolve.c (is_illegal_recursion): New method. (resolve_procedure_expression): Use new is_illegal_recursion instead of direct check and handle function symbols correctly. (resolve_actual_arglist): Removed useless recursion check. (resolve_function): Use is_illegal_recursion instead of direct check. (resolve_call): Ditto. 2008-11-30 Daniel Kraft <d@domob.eu> PR fortran/37779 * gfortran.dg/recursive_check_1.f: Changed expected error message to the more general new one. * gfortran.dg/recursive_check_2.f90: Ditto. * gfortran.dg/entry_18.f90: Ditto. * gfortran.dg/recursive_check_4.f03: Do "the same" check also for FUNCTIONS, as this is different in details from SUBROUTINES. * gfortran.dg/recursive_check_6.f03: New test. From-SVN: r142299
2008-11-29* trans-array.c (gfc_conv_array_parameter): Guard union access.Eric Botcazou2-1/+6
From-SVN: r142283
2008-11-29re PR fortran/38289 ("procedure( ), pointer" rejected)Janus Weil3-1/+12
2008-11-29 Janus Weil <janus@gcc.gnu.org> Mikael Morin <mikael@gcc.gnu.org> PR fortran/38289 PR fortran/38290 * decl.c (match_procedure_decl): Handle whitespaces. * resolve.c (resolve_specific_s0): Bugfix in check for intrinsic interface. 2008-11-29 Janus Weil <janus@gcc.gnu.org> Tobias Burnus <burnus@gcc.gnu.org> PR fortran/38289 PR fortran/38290 * gfortran.dg/proc_decl_1.f90: Extended test case. Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org> Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org> From-SVN: r142276
2008-11-25module.c (gfc_dump_module): Report error on unlink only if errno != ENOENT.H.J. Lu2-1/+6
2008-11-25 H.J. Lu <hongjiu.lu@intel.com> * module.c (gfc_dump_module): Report error on unlink only if errno != ENOENT. From-SVN: r142192
2008-11-25re PR fortran/36463 (gfc_get_default_type(): Bad symbol)Mikael Morin2-2/+17
2008-11-25 Mikael Morin <mikael.morin@tele2.fr> PR fortran/36463 * expr.c (replace_symbol): Don't replace the symtree if the expresion is an intrinsic function. Don't create non-existent symtrees. Use symbol's name instead of symtree's, different in case of module procedure dummy arguments. 2008-11-25 Mikael Morin <mikael.morin@tele2.fr> PR fortran/36463 * gfortran.dg/proc_decl_20.f90: New test. From-SVN: r142191
2008-11-25re PR fortran/38248 (Ignored temporary module files manipulation errors)Jan Kratochvil2-3/+16
2008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com> PR fortran/38248 * module.c (gfc_dump_module): Check rename/unlink syscalls errors. From-SVN: r142190
2008-11-25re PR fortran/37319 (gfortran.dg/function_kinds_5.f90 fails)Eric Botcazou2-2/+9
PR fortran/37319 * parse.c (match_deferred_characteristics): Make sure 'name' is initialized before reading it. From-SVN: r142188
2008-11-25re PR fortran/37803 (Call mpfr_check_range after setting emin/emax)Jerry DeLisle3-0/+8
2008-11-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/37803 * arith.c (gfc_check_real_range): Add mpfr_check_range. * simplify.c (gfc_simplify_nearest): Add mpfr_check_range. From-SVN: r142187
2008-11-24re PR fortran/38184 (invariant RESHAPE not expanded if SOURCE is empty)Mikael Morin2-3/+6
2008-11-24 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38184 * simplify.c (is_constant_array_expr): Return true instead of false if the array constructor is empty. 2008-11-24 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38184 * gfortran.dg/reshape_empty_1.f03: New test. From-SVN: r142168
2008-11-24re PR fortran/37779 (Missing RECURSIVE not detected)Daniel Kraft2-3/+46
2008-11-24 Daniel Kraft <d@domob.eu> PR fortran/37779 * resolve.c (resolve_procedure_expression): New method. (resolve_variable): Call it. (resolve_actual_arglist): Call gfc_resolve_expr for procedure arguments. 2008-11-24 Daniel Kraft <d@domob.eu> PR fortran/37779 * gfortran.dg/c_funloc_tests.f03: Added missing `RECURSIVE'. * gfortran.dg/c_funloc_tests_2.f03: Ditto. * gfortran.dg/recursive_check_4.f03: New test. * gfortran.dg/recursive_check_5.f03: New test. From-SVN: r142158
2008-11-24re PR fortran/34820 (internal compiler error: in ↵Paul Thomas4-37/+118
gfc_conv_descriptor_data_get, at fortran/trans-array.c:147) 2008-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/34820 * trans-expr.c (gfc_conv_function_call): Remove all code to deallocate intent out derived types with allocatable components. (gfc_trans_assignment_1): An assignment from a scalar to an array of derived types with allocatable components, requires a deep copy to each array element and deallocation of the converted rhs expression afterwards. * trans-array.c : Minor whitespace. * trans-decl.c (init_intent_out_dt): Add code to deallocate allocatable components of derived types with intent out. (generate_local_decl): If these types are unused, set them referenced anyway but allow the uninitialized warning. PR fortran/34143 * trans-expr.c (gfc_trans_subcomponent_assign): If a conversion expression has a null data pointer argument, nullify the allocatable component. PR fortran/32795 * trans-expr.c (gfc_trans_subcomponent_assign): Only nullify the data pointer if the source is not a variable. 2008-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/34820 * gfortran.dg/alloc_comp_constructor_6.f90 : New test. * gfortran.dg/alloc_comp_basics_1.f90 : Reduce expected refs to 'builtin_free' from 24 to 18. PR fortran/34143 * gfortran.dg/alloc_comp_constructor_5.f90 : New test. PR fortran/32795 * gfortran.dg/alloc_comp_constructor_4.f90 : New test. From-SVN: r142148
2008-11-23re PR fortran/37735 (Allocatable components in vectors of derived types ↵Paul Thomas2-4/+12
cause ICE on assignment) 2008-11-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/37735 * trans-array.c (structure_alloc_comps): Do not duplicate the descriptor if this is a descriptorless array! 2008-11-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/37735 * gfortran.dg/alloc_comp_assign_7.f90: New test. From-SVN: r142142
2008-11-22re PR fortran/38160 (C Binding: Kind parameter checking too strict and too late)Tobias Burnus6-47/+29
2008-11-22 Tobias Burnus <burnus@net-b.de> PR fortran/38160 * trans-types.c (gfc_validate_c_kind): Remove function. * decl.c (gfc_match_kind_spec): Add C kind parameter check. (verify_bind_c_derived_type): Remove gfc_validate_c_kind call. (verify_c_interop_param): Update call. * gfortran.h (verify_bind_c_derived_type): Update prototype. (gfc_validate_c_kind): Remove. * symbol.c (verify_bind_c_derived_type): Update verify_c_interop * call. * resolve.c (gfc_iso_c_func_interface): Ditto. 2008-11-22 Tobias Burnus <burnus@net-b.de> PR fortran/38160 * gfortran.dg/bind_c_usage_18.f90: New test. * gfortran.dg/c_kind_tests_2.f03: Update dg-messages. * gfortran.dg/interop_params.f03: Ditto. From-SVN: r142124
2008-11-22re PR libfortran/37839 (st_parameter_dt has unwanted padding, is out of sync ↵Jakub Jelinek4-11/+25
with compiler) PR libfortran/37839 * trans-io.c (gfc_build_io_library_fndecls): Decrease pad size back to 16 pointers plus 32 integers. Don't use max integer kind alignment, only gfc_intio_kind's alignment. (gfc_trans_inquire): Only set flags2 if mask2 is non-zero. * ioparm.def: Fix order, bitmasks and types of inquire round, sign and pending fields. Move u in dt before id. * io.c (gfc_free_inquire): Free decimal and size exprs. (match_inquire_element): Match size instead of matching blank twice. (gfc_resolve_inquire): Resolve size. * gfortran.dg/f2003_inquire_1.f03: New test. * gfortran.dg/f2003_io_1.f03: Remove xfail. * gfortran.dg/f2003_io_4.f03: Likewise. * gfortran.dg/f2003_io_5.f03: Likewise. * gfortran.dg/f2003_io_6.f03: Likewise. * gfortran.dg/f2003_io_7.f03: Likewise. * io/io.h (IOPARM_INQUIRE_HAS_ROUND, IOPARM_INQUIRE_HAS_SIGN, IOPARM_INQUIRE_HAS_PENDING): Adjust values. (st_parameter_inquire): Reorder and fix types of round, sign and pending fields. (st_parameter_43, st_parameter_44): Removed. (st_parameter_dt): Put back struct definition directly to u.p declaration. Change type of u.p.size_used from gfc_offset to GFC_IO_INT. Decrease back size of u.pad to 16 pointers and 32 ints. Put id, pos, asynchronous, blank, decimal, delim, pad, round and sign fields after the union. * io/inquire.c (inquire_via_unit, inquire_via_filename): Only read flags2 if it is defined. * io/transfer.c (read_sf, read_block_form, write_block): Cast additions to size_used to GFC_IO_INT instead of gfc_offset. (data_transfer_init): Clear whole u.p struct. Adjust for moving id, pos, asynchronous, blank, decimal, delim, pad, round and sign fields from u.p directly into st_parameter_dt. (finalize_transfer): Don't cast size_used to GFC_IO_INT. * io/file_pos.c (st_endfile): Clear whole u.p struct. From-SVN: r142111
2008-11-20re PR middle-end/29215 (extra store for memcpy)Jakub Jelinek2-2/+9
PR middle-end/29215 * builtins.c (SLOW_UNALIGNED_ACCESS): Define if not defined. (fold_builtin_memory_op): Handle even the case where just one of src and dest is an address of a var decl component, using TYPE_REF_CAN_ALIAS_ALL pointers. Remove is_gimple_min_invariant and readonly_data_expr src check. * tree-ssa-sccvn.c (DFS): Use clear_and_done_ssa_iter to shut up warnings. * trans-array.c (trans_array_constructor_value, gfc_build_constant_array_constructor): Fill in TREE_PURPOSE. * gfortran.dg/array_memcpy_3.f90: Adjust pattern to match even memcpy optimized into ref-all store. * gcc.dg/pr29215.c: New test. From-SVN: r142061
2008-11-20trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use gfc_index_one_node.Jakub Jelinek2-7/+10
* trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use gfc_index_one_node. (gfc_conv_intrinsic_size): Use gfc_index_{zero,one}_node. From-SVN: r142046
2008-11-20re PR fortran/38181 (calls to SIZE not optimized out of loops)Jakub Jelinek2-5/+37
PR fortran/38181 * trans-intrinsic.c (gfc_conv_intrinsic_size): Inline 2 argument size if the second argument is not optional and one argument size for rank 1 arrays. * gfortran.dg/array_section_2.f90: Adjust pattern to match the inlined size0 instead of a size0 call. From-SVN: r142037
2008-11-19re PR fortran/38171 (equivalence and nested modules broken)Paul Thomas1-1/+1
2008-11-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/38171 * ChangeLog: Correct PR number. From-SVN: r141991
2008-11-19re PR fortran/38119 (character ICE in gfc_trans_create_temp_array)Paul Thomas2-2/+10
2008-11-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/38119 * module.c (load_equiv): Regression fix; check that equivalence members come from the same module only. 2008-11-19 Paul Thomas <pault@gcc.gnu.org> * gfortran.dg/module_equivalence_6.f90: New test. From-SVN: r141990
2008-11-16re PR fortran/35681 (wrong result for vector subscripted array expression in ↵Mikael Morin6-22/+123
MVBITS) 2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/35681 * dependency.c (gfc_check_argument_var_dependency): Add elemental check flag. Issue a warning if we find a dependency but don't generate a temporary. Add the case of an elemental function call as actual argument to an elemental procedure. Add the case of an operator expression as actual argument to an elemental procedure. (gfc_check_argument_dependency): Add elemental check flag. Update calls to gfc_check_argument_var_dependency. (gfc_check_fncall_dependency): Add elemental check flag. Update call to gfc_check_argument_dependency. * trans-stmt.c (gfc_trans_call): Make call to gfc_conv_elemental_dependency unconditional, but with a flag whether we should check dependencies between variables. (gfc_conv_elemental_dependency): Add elemental check flag. Update call to gfc_check_fncall_dependency. * trans-expr.c (gfc_trans_arrayfunc_assign): Update call to gfc_check_fncall_dependency. * resolve.c (find_noncopying_intrinsics): Update call to gfc_check_fncall_dependency. * dependency.h (enum gfc_dep_check): New enum. (gfc_check_fncall_dependency): Update prototype. 2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/35681 * gfortran.dg/elemental_dependency_1.f90: New test. From-SVN: r141931
2008-11-16re PR fortran/37992 (ICE while resolving charlen for rejected statements)Mikael Morin4-10/+38
2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37992 * gfortran.h (gfc_namespace): Added member old_cl_list, backup of cl_list. (gfc_free_charlen): Added prototype. * symbol.c (gfc_free_charlen): New function. (gfc_free_namespace): Use gfc_free_charlen. * parse.c (next_statement): Backup gfc_current_ns->cl_list. (reject_statement): Restore gfc_current_ns->cl_list. Free cl_list's elements before dropping them. 2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37992 * gfotran.dg/charlen_free_1.f90: New test. From-SVN: r141927
2008-11-16re PR fortran/38095 (character ICE)Tobias Burnus2-4/+10
2008-11-16 Tobias Burnus <burnus@net-b.de> PR fortran/38095 * trans-expr.c (gfc_map_intrinsic_function): Fix pointer access. 2008-11-16 Tobias Burnus <burnus@net-b.de> PR fortran/38095 * gfortran.dg/char_length_13.f90: New test. From-SVN: r141917
2008-11-16re PR fortran/38119 (character ICE in gfc_trans_create_temp_array)Paul Thomas2-12/+13
2008-11-16 Paul Thomas <pault@gcc.gnu.org> PR fortran/38119 * trans-array.c (gfc_trans_create_temp_array): Set the loop->from to zero and the renormalisation of loop->to for all dimensions. 2008-11-16 Paul Thomas <pault@gcc.gnu.org> PR fortran/38119 * gfortran.dg/array_temporaries_3.f90: New test. From-SVN: r141915
2008-11-16re PR fortran/37926 (Program gives wrong output (connected to char len))Paul Thomas2-1/+9
2008-11-16 Paul Thomas <pault@gcc.gnu.org> PR fortran/37926 * trans-expr.c (gfc_free_interface_mapping): Null sym->formal (gfc_add_interface_mapping): Copy the pointer to the formal arglist, rather than using copy_formal_args. From-SVN: r141914
2008-11-15re PR fortran/37926 (Program gives wrong output (connected to char len))Paul Thomas2-0/+16
2008-11-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/37926 * trans-expr.c (gfc_add_interface_mapping): Transfer the formal arglist and the always_explicit attribute if the dummy arg is a procedure. 2008-11-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/37926 * gfortran.dg/dummy_procedure_3.f90: New test. From-SVN: r141890
2008-11-15re PR fortran/37988 (Edit descriptor checking (compile time) for "<Holerith>T)")Jerry DeLisle2-8/+35
2008-11-14 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/37988 * io.c (enum format_token): For readability replace FMT_POS with FMT_T, FMT_TL, and FMT_TR. (format_lex): Use new enumerators. (check_format): Add check for missing positive integer. From-SVN: r141879
2008-11-14re PR fortran/38033 (Bounds of a pointer/allocatable array not stabilized)Paul Thomas2-4/+19
2008-10-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/38033 * trans-array.c (gfc_trans_create_temp_array): Stabilize the 'to' expression. (gfc_conv_loop_setup): Use the end expression for the loop 'to' if it is available. 2008-10-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/38033 * gfortran.dg/array_section_2.f90: New test. From-SVN: r141861
2008-11-12re PR target/35366 (gfortran.dg/equiv_7.f90 fails with -m64 -Os on ↵Jakub Jelinek3-16/+59
powerpc-apple-darwin9) PR target/35366 PR fortran/33759 * fold-const.c (native_encode_string): New function. (native_encode_expr): Use it for STRING_CST. * trans-const.c (gfc_conv_constant_to_tree): Warn when converting an integer outside of LOGICAL's range to LOGICAL. * trans-intrinsic.c (gfc_conv_intrinsic_function, gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer): Use INTEGER_TYPE instead of BOOLEAN_TYPE for TRANSFER as argument of another TRANSFER. * gfortran.dg/hollerith.f90: Don't assume a 32-bit value stored into logical variable will be preserved. * gfortran.dg/transfer_simplify_4.f90: Remove undefined cases. Run at all optimization levels. Add a couple of new tests. * gfortran.dg/hollerith5.f90: New test. * gfortran.dg/hollerith_legacy.f90: Add dg-warning. From-SVN: r141790
2008-11-12re PR fortran/38065 (private/public confusion with a contained function)Tobias Burnus2-6/+13
2008-11-12 Tobias Burnus <burnus@net-b.de> PR fortran/38065 * resolve.c (resolve_fntype): Fix private derived type checking. 2008-11-12 Tobias Burnus <burnus@net-b.de> PR fortran/38065 * gfortran.dg/private_type_11.f90: New test. * gfortran.dg/private_type_12.f90: New test. From-SVN: r141780
2008-11-09re PR fortran/37836 (ICE in gfc_trans_auto_array_allocation)Paul Thomas4-55/+141
2008-11-09 Paul Thomas <pault@gcc.gnu.org> PR fortran/37836 * intrinsic.c (add_functions): Reference gfc_simplify._minval and gfc_simplify_maxval. * intrinsic.h : Add prototypes for gfc_simplify._minval and gfc_simplify_maxval. * simplify.c (min_max_choose): New function extracted from simplify_min_max. (simplify_min_max): Call it. (simplify_minval_maxval, gfc_simplify_minval, gfc_simplify_maxval): New functions. 2008-11-09 Paul Thomas <pault@gcc.gnu.org> PR fortran/37836 * gfortran.dg/minmaxval_1.f90: New test. From-SVN: r141717
2008-11-04re PR fortran/37597 (internal procedure fails to access host-associated ↵Paul Thomas2-1/+8
module procedure) 2008-11-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/37597 * parse.c (gfc_fixup_sibling_symbols ): Fixup contained, even when symbol not found. 2008-11-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/37597 * gfortran.dg/host_assoc_call_5.f90: New test. From-SVN: r141588
2008-11-03re PR fortran/37821 (gfortran is ignoring #includes with the syntax <file.h>)Tobias Burnus7-22/+50
2008-11-03 Tobias Burnus <burnus@net-b.de> PR fortran/37821 * cpp.c (gfc_cpp_add_include_path): Use BRACKET. * scanner.c (add_path_to_list): Argument to add at head. (gfc_add_include_path): Add new argument. (gfc_add_intrinsic_modules_path) Update call. (load_file): Print filename/line in the error message. * gfortran.h (gfc_add_include_path): Update prototype. * options.c (gfc_post_options,gfc_handle_module_path_options, gfc_handle_option): Update call. * lang-spec.h (F951_OPTIONS): Don't insert include path twice. * arith.c (arith_error): Add -fno-range-error to the message. 2008-11-03 Tobias Burnus <burnus@net-b.de> PR fortran/37821 * gfortran.dg/include_4.f90: New. * gfortran.dg/include_5.f90: New. * gfortran.dg/include_4.inc: New. From-SVN: r141544