aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
AgeCommit message (Collapse)AuthorFilesLines
2013-05-22resolve.c (get_temp_from_expr): Change mangling to start always with a _.Tobias Burnus2-1/+6
2013-05-22 Tobias Burnus <burnus@net-b.de> * resolve.c (get_temp_from_expr): Change mangling to start always with a _. From-SVN: r199215
2013-05-22resolve.c (get_temp_from_expr): Fix temp var mangling.Tobias Burnus2-1/+5
2013-05-22 Tobias Burnus <burnus@net-b.de> * resolve.c (get_temp_from_expr): Fix temp var mangling. From-SVN: r199214
2013-05-22re PR fortran/57364 ([OOP] ICE gfc_enforce_clean_symbol_state)Tobias Burnus2-0/+6
2013-05-22 Tobias Burnus <burnus@net-b.de> PR fortran/57364 * resolve.c (get_temp_from_expr): Commit created sym. 2013-05-22 Tobias Burnus <burnus@net-b.de> PR fortran/57364 * gfortran.dg/defined_assignment_6.f90: New. From-SVN: r199196
2013-05-22re PR fortran/57338 (ICE with assumed rank)Tobias Burnus2-12/+38
2013-05-22 Tobias Burnus <burnus@net-b.de> PR fortran/57338 * intrinsic.c (do_check): Move some checks to ... (do_ts29113_check): ... this new function. (check_specific, gfc_intrinsic_sub_interface): Call it. 2013-05-22 Tobias Burnus <burnus@net-b.de> PR fortran/57338 * gfortran.dg/assumed_type_6.f90: New. From-SVN: r199192
2013-05-22Improve RANDOM_SEED example.Janne Blomqvist2-17/+57
2013-05-22 Janne Blomqvist <jb@gcc.gnu.org> * intrinsic.texi (RANDOM_SEED): Improve example. From-SVN: r199182
2013-05-21re PR fortran/57035 (TS29113's C535b: Wrongly accept DIMENSION(..) to TRANSFER)Tobias Burnus3-9/+74
2013-05-21 Tobias Burnus <burnus@net-b.de> PR fortran/57035 * intrinsic.c (do_check): Add contraint check for NO_ARG_CHECK, assumed rank and assumed type. * gfortran.texi (NO_ARG_CHECK): Minor wording change, allow PRESENT intrinsic. 2013-05-21 Tobias Burnus <burnus@net-b.de> PR fortran/57035 * gfortran.dg/assumed_type_5.f90: New. * gfortran.dg/assumed_rank_1.f90: Comment invalid statement. * gfortran.dg/assumed_rank_2.f90: Ditto. * gfortran.dg/assumed_type_3.f90: Update dg-error. * gfortran.dg/no_arg_check_3.f90: Ditto. From-SVN: r199158
2013-05-20re PR fortran/48858 (Incorrect error for same binding label on two generic ↵Tobias Burnus5-79/+123
interface specifics) 2013-05-20 Tobias Burnus <burnus@net-b.de> PR fortran/48858 PR fortran/55465 * decl.c (add_global_entry): Add sym_name. * parse.c (add_global_procedure): Ditto. * resolve.c (resolve_bind_c_derived_types): Handle multiple decl for a procedure. (resolve_global_procedure): Handle gsym->ns pointing to a module. * trans-decl.c (gfc_get_extern_function_decl): Ditto. 2013-05-20 Tobias Burnus <burnus@net-b.de> PR fortran/48858 PR fortran/55465 * gfortran.dg/binding_label_tests_10_main.f03: Update dg-error. * gfortran.dg/binding_label_tests_11_main.f03: Ditto. * gfortran.dg/binding_label_tests_13_main.f03: Ditto. * gfortran.dg/binding_label_tests_3.f03: Ditto. * gfortran.dg/binding_label_tests_4.f03: Ditto. * gfortran.dg/binding_label_tests_5.f03: Ditto. * gfortran.dg/binding_label_tests_6.f03: Ditto. * gfortran.dg/binding_label_tests_7.f03: Ditto. * gfortran.dg/binding_label_tests_8.f03: Ditto. * gfortran.dg/c_loc_tests_12.f03: Fix test case. * gfortran.dg/binding_label_tests_24.f90: New. * gfortran.dg/binding_label_tests_25.f90: New. From-SVN: r199120
2013-05-20re PR fortran/48858 (Incorrect error for same binding label on two generic ↵Tobias Burnus5-37/+113
interface specifics) 2013-05-20 Tobias Burnus <burnus@net-b.de> PR fortran/48858 * decl.c (add_global_entry): Use nonbinding name only for F2003 or if no binding label exists. (gfc_match_entry): Update calls. * parse.c (gfc_global_used): Improve error message. (add_global_procedure): Use nonbinding name only for F2003 or if no binding label exists. (gfc_parse_file): Update call. * resolve.c (resolve_global_procedure): Use binding name when available. * trans-decl.c (gfc_get_extern_function_decl): Ditto. 2013-05-20 Tobias Burnus <burnus@net-b.de> PR fortran/48858 * gfortran.dg/binding_label_tests_17.f90: New. * gfortran.dg/binding_label_tests_18.f90: New. * gfortran.dg/binding_label_tests_19.f90: New. * gfortran.dg/binding_label_tests_20.f90: New. * gfortran.dg/binding_label_tests_21.f90: New. * gfortran.dg/binding_label_tests_22.f90: New. * gfortran.dg/binding_label_tests_23.f90: New. From-SVN: r199119
2013-05-20re PR fortran/48858 (Incorrect error for same binding label on two generic ↵Tobias Burnus5-131/+114
interface specifics) 2013-05-20 Tobias Burnus <burnus@net-b.de> PR fortran/48858 * decl.c (gfc_match_bind_c_stmt): Add gfc_notify_std. * match.c (gfc_match_common): Don't add commons to gsym. * resolve.c (resolve_common_blocks): Add to gsym and add checks. (resolve_bind_c_comms): Remove. (resolve_types): Remove call to the latter. * trans-common.c (gfc_common_ns): Remove static var. (gfc_map_of_all_commons): Add static var. (build_common_decl): Correctly handle binding label. 2013-05-20 Tobias Burnus <burnus@net-b.de> PR fortran/48858 * gfortran.dg/test_common_binding_labels.f03: Update dg-error. * gfortran.dg/test_common_binding_labels_2_main.f03: Ditto. * gfortran.dg/test_common_binding_labels_3_main.f03: Ditto. * gfortran.dg/common_18.f90: New. * gfortran.dg/common_19.f90: New. * gfortran.dg/common_20.f90: New. * gfortran.dg/common_21.f90: New. From-SVN: r199118
2013-05-16Makefile.in (LLINKER): New variable.Jason Merrill2-1/+5
* Makefile.in (LLINKER): New variable. (mostlyclean): Remove link mutex. * configure.ac: Handle --enable-link-mutex. * lock-and-run.sh: New script. From-SVN: r198977
2013-05-05resolve.c (conformable_arrays): Avoid segfault when ar.start[i] == NULL.Tobias Burnus2-0/+8
2013-05-05 Tobias Burnus <burnus@net-b.de> * resolve.c (conformable_arrays): Avoid segfault when ar.start[i] == NULL. 2013-05-05 Tobias Burnus <burnus@net-b.de> * gfortran.dg/allocate_with_source_3.f90: New. From-SVN: r198610
2013-05-05re PR fortran/57141 (Cannot change attributes of USE-associated intrinsic)Tobias Burnus2-0/+7
2013-05-05 Tobias Burnus <burnus@net-b.de> PR fortran/57141 * decl.c (gfc_match_null): Permit use-associated NULL intrinsic. 2013-05-05 Tobias Burnus <burnus@net-b.de> PR fortran/57141 * gfortran.dg/null_8.f90: New. From-SVN: r198609
2013-05-04decl.c (gfc_verify_c_interop_param): Permit allocatable and pointer with ↵Tobias Burnus2-12/+24
-std=f2008ts. 2013-05-04 Tobias Burnus <burnus@net-b.de> * decl.c (gfc_verify_c_interop_param): Permit allocatable and pointer with -std=f2008ts. 2013-05-04 Tobias Burnus <burnus@net-b.de> * gfortran.dg/bind_c_array_params.f03: Update dg-error. * gfortran.dg/bind_c_usage_27.f90: New. * gfortran.dg/bind_c_usage_28.f90: New. From-SVN: r198597
2013-05-02re PR fortran/57142 (SIZE/SHAPE overflow despite kind=8)Tobias Burnus3-23/+62
2013-05-02 Tobias Burnus <burnus@net-b.de> PR fortran/57142 * simplify.c (gfc_simplify_size): Renamed from simplify_size; fix kind=8 handling. (gfc_simplify_size): New function. (gfc_simplify_shape): Add range check. * resolve.c (resolve_function): Fix handling for ISYM_SIZE. 2013-05-02 Tobias Burnus <burnus@net-b.de> PR fortran/57142 * gfortran.dg/size_kind_2.f90: New. * gfortran.dg/size_kind_3.f90: New. From-SVN: r198549
2013-05-01frontend-passes.c (optimize_power): Fix typo in comment.Thomas Koenig2-1/+6
2013-05-01 Thomas Koenig <tkoenig@gcc.gnu.org> * frontend-passes.c (optimize_power): Fix typo in comment. From-SVN: r198486
2013-04-30re PR fortran/57071 (Optimize (-1)**k to 1 - 2 * mod(K, 2))Thomas Koenig2-0/+24
2013-04-30 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/57071 * frontend-passes.c (optimize_power): Simplify 1**k to 1. 2013-04-30 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/57071 * gfortran.dg/power_5.f90: New test. From-SVN: r198476
2013-04-29re PR fortran/57114 (wrong information at ↵Tobias Burnus2-2/+8
http://gcc.gnu.org/onlinedocs/gfortran/RANK.html) 2013-04-28 Tobias Burnus <burnus@net-b.de> PR fortran/57114 * intrinsic.texi (RANK): Correct syntax description and expected result. From-SVN: r198429
2013-04-28re PR fortran/57093 (Seg fault on internal output to a character scalar coarray)Tobias Burnus3-5/+12
2013-04-28 Tobias Burnus <burnus@net-b.de> PR fortran/57093 * trans-types.c (gfc_get_element_type): Fix handling of scalar coarrays of type character. * intrinsic.texi (PACK): Add missing ")". 2013-04-28 Tobias Burnus <burnus@net-b.de> PR fortran/57093 * gfortran.dg/coarray_30.f90: New. From-SVN: r198379
2013-04-28re PR fortran/57071 (Optimize (-1)**k to 1 - 2 * mod(K, 2))Thomas Koenig2-0/+69
2013-04-28 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/57071 * frontend-passes (optimize_power): New function. (optimize_op): Use it. 2013-04-28 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/57071 * gfortran.dg/power_3.f90: New test. * gfortran.dg/power_4.f90: New test. From-SVN: r198369
2013-04-25PR 57028 Bootstrap regression wrt zlib.Janne Blomqvist2-1/+9
2013-04-25 Janne Blomqvist <jb@gcc.gnu.org> PR bootstrap/57028 * Make-lang.in (f951): Link in ZLIB. (CFLAGS-fortran/module.o): Add zlib include directory. From-SVN: r198318
2013-04-22re PR fortran/53685 (surprising warns about transfer with explicit character ↵Janus Weil5-47/+47
range) 2013-04-22 Janus Weil <janus@gcc.gnu.org> PR fortran/53685 PR fortran/57022 * check.c (gfc_calculate_transfer_sizes): Fix for array-valued SOURCE expressions. * simplify.c (gfc_simplify_sizeof,gfc_simplify_storage_size): Get rid of special treatment for EXPR_ARRAY. * target-memory.h (gfc_element_size): New prototype. * target-memory.c (size_array): Remove. (gfc_element_size): New function. (gfc_target_expr_size): Modified to always return the full size of the expression. 2013-04-22 Janus Weil <janus@gcc.gnu.org> PR fortran/53685 PR fortran/57022 * gfortran.dg/transfer_check_4.f90: New. From-SVN: r198155
2013-04-20re PR fortran/56907 (C_LOC shall not call internal-PACK when an array ↵Tobias Burnus2-1/+12
argument is used) 2013-04-20 Tobias Burnus <burnus@net-b.de> PR fortran/56907 * trans-intrinsic.c (conv_isocbinding_function): Don't pack * array passed to C_LOC 2013-04-20 Tobias Burnus <burnus@net-b.de> PR fortran/56907 * gfortran.dg/c_loc_test_22.f90: New. From-SVN: r198109
2013-04-19re PR fortran/56872 (Incorrect SUM evaluation, involving implied-do loop, ↵Thomas Koenig2-20/+43
with -ffrontend-optimize) 2013-04-19 Thomas Koenig <tkoenig@gcc.gnu.org> Mikael Morin <mikael@gcc.gnu.org> PR fortran/56872 * frontend-passes.c (copy_walk_reduction_arg): Change argument type to gfc_constructor. If it has an iterator, wrap the copy of its expression in an array constructor with that iterator. Don't special case function expressions. (callback_reduction): Update caller. Don't return early if there is an iterator. 2013-04-19 Thomas Koenig <tkoenig@gcc.gnu.org> Mikael Morin <mikael@gcc.gnu.org> PR fortran/56872 * gfortran.dg/array_constructor_45.f90: New test. * gfortran.dg/array_constructor_46.f90: New test. * gfortran.dg/array_constructor_47.f90: New test. * gfortran.dg/array_constructor_40.f90: Adjust number of while loops. Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org> From-SVN: r198086
2013-04-18expr.c (find_array_element): Don't copy expr.Tobias Burnus6-5/+27
2013-04-18 Tobias Burnus <burnus@net-b.de> * expr.c (find_array_element): Don't copy expr. * data.c (create_character_initializer): Free expr. * frontend-passes.c (combine_array_constructor): Ditto. * match.c (match_typebound_call, gfc_match_select_type): Ditto. * resolve.c (resolve_typebound_function): Free gfc_ref. From-SVN: r198068
2013-04-18re PR fortran/56994 (Incorrect documentation for Fortran NEAREST intrinsic ↵Tobias Burnus2-1/+6
function) 2013-04-18 Tobias Burnus <burnus@net-b.de> PR fortran/56994 * invoke.texi (NEAREST): S argument is not optional. From-SVN: r198048
2013-04-17re PR fortran/56814 (Bogus Interface mismatch in dummy procedure)Janus Weil2-2/+15
2013-04-17 Janus Weil <janus@gcc.gnu.org> PR fortran/56814 * interface.c (check_result_characteristics): Get result from interface if present. 2013-04-17 Janus Weil <janus@gcc.gnu.org> PR fortran/56814 * gfortran.dg/proc_ptr_42.f90: New. From-SVN: r198032
2013-04-17PR 40958 Compress module files with zlib.Janne Blomqvist5-95/+196
frontend ChangeLog: 2013-04-17 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/40958 * scanner.h: New file. * Make-lang.in: Dependencies on scanner.h. * scanner.c (gfc_directorylist): Move to scanner.h. * module.c: Don't include md5.h, include scanner.h and zlib.h. (MOD_VERSION): Add comment about backwards compatibility. (module_fp): Change type to gzFile. (ctx): Remove. (gzopen_included_file_1): New function. (gzopen_included_file): New function. (gzopen_intrinsic_module): New function. (write_char): Use gzputc. (read_crc32_from_module_file): New function. (read_md5_from_module_file): Remove. (gfc_dump_module): Use gz* functions instead of stdio, check gzip crc32 instead of md5. (read_module_to_tmpbuf): Use gz* functions instead of stdio. (gfc_use_module): Use gz* functions. testsuite ChangeLog: 2013-04-17 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/40958 * lib/gcc-dg.exp (scan-module): Uncompress module file before scanning. * gfortran.dg/module_md5_1.f90: Remove. From-SVN: r198023
2013-04-16re PR fortran/39505 (Consider a 'no arg check' directive)Tobias Burnus6-16/+141
2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/39505 * decl.c (ext_attr_list): Add EXT_ATTR_NO_ARG_CHECK. * gfortran.h (ext_attr_id_t): Ditto. * gfortran.texi (GNU Fortran Compiler Directives): Document it. * interface.c (compare_type_rank): Ignore rank for NO_ARG_CHECK. (compare_parameter): Ditto - and regard as unlimited polymorphic. * resolve.c (resolve_symbol, resolve_variable): Add same * constraint checks as for TYPE(*); turn dummy to TYPE(*),dimension(*). (gfc_explicit_interface_required): Require explicit interface for NO_ARG_CHECK. 2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/39505 * gfortran.dg/no_arg_check_1.f90: New. * gfortran.dg/no_arg_check_2.f90: New. * gfortran.dg/no_arg_check_3.f90: New. From-SVN: r198011
2013-04-16re PR fortran/56968 ([F03] Issue with a procedure defined with a generic ↵Janus Weil2-1/+11
name returning procedure pointer) 2013-04-16 Janus Weil <janus@gcc.gnu.org> PR fortran/56968 * expr.c (gfc_check_pointer_assign): Handle generic functions returning procedure pointers. 2013-04-16 Janus Weil <janus@gcc.gnu.org> PR fortran/56968 * gfortran.dg/proc_ptr_41.f90: New. From-SVN: r198008
2013-04-16re PR fortran/56969 (ISO_C_BINDING regression with current trunk)Tobias Burnus2-1/+9
2013-04-16 Tobias Burnus <burnus@net-b.de> PR fortran/56969 * intrinsic.c (gfc_intrinsic_func_interface): Don't set module name to "(intrinsic)" for intrinsics from intrinsic modules. 2013-04-16 Tobias Burnus <burnus@net-b.de> PR fortran/56969 * gfortran.dg/c_assoc_5.f90: New. From-SVN: r198000
2013-04-15intrinsic.texi (SYSTEM_CLOCK): Recommend kind=8.Tobias Burnus2-1/+5
2013-04-15 Tobias Burnus <burnus@net-b.de> * intrinsic.texi (SYSTEM_CLOCK): Recommend kind=8. From-SVN: r197970
2013-04-15PR 56919 Improve SYSTEM_CLOCK intrinsic on Windows.Janne Blomqvist2-19/+35
frontend ChangeLog: 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/56919 * intrinsics.texi (SYSTEM_CLOCK): Update documentation. libgfortran ChangeLog: 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/56919 * intrinsics/time_1.h: Check __CYGWIN__ in addition to __MINGW32__. * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check _POSIX_MONOTONIC_CLOCK as well. (system_clock_4): Use GetTickCount on Windows. (system_clock_8): Use QueryPerformanceCounter and QueryPerformanceCounterFrequency on Windows. From-SVN: r197968
2013-04-15class.c (gfc_find_intrinsic_vtab): Removed unused var.Tobias Burnus7-7/+16
2013-04-15 Tobias Burnus <burnus@net-b.de> * class.c (gfc_find_intrinsic_vtab): Removed unused var. * dependency.c (check_data_pointer_types): Fix check. * frontend-passes.c (check_data_pointer_types): Remove superfluous statement. * parse.c (decode_omp_directive): Add missing break. * resolve.c (resolve_typebound_subroutine: Free variable. * trans-decl.c (create_function_arglist): Correct condition. From-SVN: r197961
2013-04-14re PR fortran/56816 (ICE in delete_root)Mikael Morin3-7/+17
fortran/ PR fortran/56816 * match.c (gfc_match_select_type): Add syntax error. Move namespace allocation and cleanup... * parse.c (decode_statement): ... here. testsuite/ PR fortran/56816 * gfortran.dg/select_type_33.f03: New test. From-SVN: r197950
2013-04-13re PR fortran/55959 ([OOP] ICE in in gfc_simplify_expr, at fortran/expr.c:1920)Janus Weil2-1/+5
2013-04-13 Janus Weil <janus@gcc.gnu.org> PR fortran/55959 * expr.c (gfc_simplify_expr): Branch is not unreachable. 2013-04-13 Janus Weil <janus@gcc.gnu.org> PR fortran/55959 * gfortran.dg/typebound_proc_29.f03: New. From-SVN: r197943
2013-04-12re PR fortran/56266 ([OOP] ICE on invalid in gfc_match_varspec)Janus Weil2-4/+11
2013-04-12 Janus Weil <janus@gcc.gnu.org> PR fortran/56266 * primary.c (gfc_match_varspec): Turn gcc_assert into MATCH_ERROR. 2013-04-12 Janus Weil <janus@gcc.gnu.org> PR fortran/56266 * gfortran.dg/typebound_proc_28.f03: New. From-SVN: r197936
2013-04-12re PR fortran/56929 ([OOP] [F08] ICE on dummy argument child class with ↵Tobias Burnus2-3/+13
coarray inside parent) 2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/56929 * trans-array.c (duplicate_allocatable): Fix handling of scalar coarrays. 2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/56929 * gfortran.dg/coarray/alloc_comp_2.f90: New. From-SVN: r197930
2013-04-12re PR fortran/56261 ([OOP] seg fault call procedure pointer on polymorphic ↵Janus Weil5-150/+172
array) 2013-04-12 Janus Weil <janus@gcc.gnu.org> PR fortran/56261 * gfortran.h (gfc_explicit_interface_required): New prototype. * expr.c (gfc_check_pointer_assign): Check if an explicit interface is required in a proc-ptr assignment. * interface.c (check_result_characteristics): Extra check. * resolve.c (gfc_explicit_interface_required): New function. (resolve_global_procedure): Use new function 'gfc_explicit_interface_required'. Do a full interface check. 2013-04-12 Janus Weil <janus@gcc.gnu.org> PR fortran/56261 * gfortran.dg/auto_char_len_4.f90: Add -pedantic. Changed error. * gfortran.dg/assumed_rank_4.f90: Modified error wording. * gfortran.dg/block_11.f90: Fix invalid test case. * gfortran.dg/function_types_3.f90: Add new error message. * gfortran.dg/global_references_1.f90: Ditto. * gfortran.dg/import2.f90: Remove unneeded parts. * gfortran.dg/import6.f90: Fix invalid test case. * gfortran.dg/proc_decl_2.f90: Ditto. * gfortran.dg/proc_decl_9.f90: Ditto. * gfortran.dg/proc_decl_18.f90: Ditto. * gfortran.dg/proc_ptr_40.f90: New. * gfortran.dg/whole_file_7.f90: Modified error wording. * gfortran.dg/whole_file_16.f90: Ditto. * gfortran.dg/whole_file_17.f90: Add -pedantic. * gfortran.dg/whole_file_18.f90: Modified error wording. * gfortran.dg/whole_file_20.f03: Ditto. * gfortran.fortran-torture/execute/intrinsic_associated.f90: Fix invalid test case. From-SVN: r197922
2013-04-12re PR fortran/56845 ([OOP] _vptr not set to declared type for CLASS + SAVE)Tobias Burnus2-1/+8
2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/56845 * trans-decl.c (gfc_trans_deferred_vars): Restrict static CLASS init to SAVE and -fno-automatic. 2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/56845 * gfortran.dg/class_allocate_15.f90: New. Revert: 2013-04-12 Tobias Burnus <burnus@net-b.de> * gfortran.dg/coarray_lib_alloc_2.f90: Update scan-tree-dump-times. From-SVN: r197848
2013-04-12re PR fortran/56845 ([OOP] _vptr not set to declared type for CLASS + SAVE)Tobias Burnus4-33/+89
2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/56845 * trans-decl.c (gfc_trans_deferred_vars): Set _vptr for allocatable static BT_CLASS. * trans-expr.c (gfc_class_set_static_fields): New function. * trans.h (gfc_class_set_static_fields): New prototype. 2013-04-12 Tobias Burnus <burnus@net-b.de> PR fortran/56845 * gfortran.dg/class_allocate_14.f90: New. * gfortran.dg/coarray_lib_alloc_2.f90: Update * scan-tree-dump-times. * gfortran.dg/coarray_lib_alloc_3.f90: New. From-SVN: r197844
2013-04-11Replace enum gfc_try with bool type.Janne Blomqvist36-4989/+4849
2013-04-11 Janne Blomqvist <jb@gcc.gnu.org> * gfortran.h: Remove enum gfc_try, replace gfc_try with bool type. * arith.c: Replace gfc_try with bool type. * array.c: Likewise. * check.c: Likewise. * class.c: Likewise. * cpp.c: Likewise. * cpp.h: Likewise. * data.c: Likewise. * data.h: Likewise. * decl.c: Likewise. * error.c: Likewise. * expr.c: Likewise. * f95-lang.c: Likewise. * interface.c: Likewise. * intrinsic.c: Likewise. * intrinsic.h: Likewise. * io.c: Likewise. * match.c: Likewise. * match.h: Likewise. * module.c: Likewise. * openmp.c: Likewise. * parse.c: Likewise. * parse.h: Likewise. * primary.c: Likewise. * resolve.c: Likewise. * scanner.c: Likewise. * simplify.c: Likewise. * symbol.c: Likewise. * trans-intrinsic.c: Likewise. * trans-openmp.c: Likewise. * trans-stmt.c: Likewise. * trans-types.c: Likewise. From-SVN: r197682
2013-04-09gfortran.texi (KIND Type Parameters, [...]): Add crossrefs.Tobias Burnus2-11/+159
2013-04-09 Tobias Burnus <burnus@net-b.de> * gfortran.texi (KIND Type Parameters, Internal representation of LOGICAL variables): Add crossrefs. (Intrinsic Types): Mention issues with _Bool interop. (Naming and argument-passing conventions): New section. From-SVN: r197624
2013-04-08re PR fortran/56872 (Incorrect SUM evaluation, involving implied-do loop, ↵Thomas Koenig2-1/+13
with -ffrontend-optimize) 2013-04-08 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/56782 * frontend-passes.c (callback_reduction): Dont't do any simplification if there is only a single element which has an iterator. 2013-04-08 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/56782 * gfortran.dg/array_constructor_44.f90: New test. From-SVN: r197610
2013-04-07re PR fortran/56849 (Missing compile-time shape check for RESHAPE ↵Tobias Burnus2-4/+7
assignments with an ORDER= attribute) 2013-04-07 Tobias Burnus <burnus@net-b.de> PR fortran/56849 * iresolve.c (gfc_resolve_reshape): Set shape also with order=. 2013-04-07 Tobias Burnus <burnus@net-b.de> PR fortran/56849 * gfortran.dg/reshape_5.f90: New. From-SVN: r197550
2013-04-04re PR fortran/40881 ([F03] warn for obsolescent features)Janus Weil3-4/+10
2013-04-04 Janus Weil <janus@gcc.gnu.org> PR fortran/40881 * match.c (gfc_match_return): Remove standard notification. * primary.c (gfc_match_actual_arglist): Add standard notification. 2013-04-04 Janus Weil <janus@gcc.gnu.org> PR fortran/40881 * gfortran.dg/altreturn_1.f90: Add -std=gnu. * gfortran.dg/altreturn_4.f90: Ditto. * gfortran.dg/altreturn_3.f90: Replace -std=legacy by -std=gnu. * gfortran.dg/altreturn_5.f90: Ditto. * gfortran.dg/altreturn_6.f90: Ditto. * gfortran.dg/altreturn_7.f90: Ditto. From-SVN: r197495
2013-04-04re PR fortran/50269 (Wrongly rejects element of assumed-shape array in C_LOC)Tobias Burnus2-6/+30
2013-04-04 Tobias Burnus <burnus@net-b.de> PR fortran/50269 * gcc/fortran/check.c (is_c_interoperable, gfc_check_c_loc): Correct c_loc array checking for Fortran 2003 and Fortran 2008. 2013-04-04 Tobias Burnus <burnus@net-b.de> PR fortran/50269 * gfortran.dg/c_loc_test_21.f90: New. * gfortran.dg/c_loc_test_19.f90: Update dg-error. * gfortran.dg/c_loc_tests_10.f03: Update dg-error. * gfortran.dg/c_loc_tests_11.f03: Update dg-error. * gfortran.dg/c_loc_tests_4.f03: Update dg-error. * gfortran.dg/c_loc_tests_16.f90: Update dg-error. From-SVN: r197468
2013-04-03re PR fortran/56284 ([OOP] ICE with alternate return in type-bound procedure)Janus Weil3-1/+20
2013-04-03 Janus Weil <janus@gcc.gnu.org> PR fortran/56284 PR fortran/40881 * decl.c (gfc_match_formal_arglist): Warn about alternate-return arguments. * interface.c (check_dummy_characteristics): Return if symbols are NULL. 2013-04-03 Janus Weil <janus@gcc.gnu.org> PR fortran/56284 PR fortran/40881 * gfortran.dg/altreturn_8.f90: New. * gfortran.dg/altreturn_2.f90: Add -std=legacy. * gfortran.dg/intrinsic_actual_3.f90: Ditto. * gfortran.dg/invalid_interface_assignment.f90: Ditto. From-SVN: r197389
2013-04-01re PR fortran/56500 ([OOP] "IMPLICIT CLASS(...)" wrongly rejected)Janus Weil2-0/+10
2013-04-01 Janus Weil <janus@gcc.gnu.org> PR fortran/56500 * symbol.c (gfc_set_default_type): Build class container for IMPLICIT CLASS. 2013-04-01 Janus Weil <janus@gcc.gnu.org> PR fortran/56500 * gfortran.dg/implicit_class_1.f90: New. From-SVN: r197306
2013-03-312013-03-31 Tobias Burnus <burnus@net-b.de>Tobias Burnus4-28/+55
* class.c (finalization_scalarizer, * finalizer_insert_packed_call, generate_finalization_wrapper): Avoid segfault with absent SIZE= argment to TRANSFER and use correct result kind for SIZE. * intrinsic.c (gfc_isym_id_by_intmod): Also handle ids of nonmodules. * trans.c (gfc_build_final_call): Handle coarrays. From-SVN: r197281
2013-03-30ChangeLog: Add commit message from rev.Thomas Koenig1-0/+8
2013-03-30 Thomas Koenig <tkoenig@gcc.gnu.org> * fortran/ChangeLog: Add commit message from rev. 197261 * testsuite/ChangeLog: Likewise. From-SVN: r197262