427 lines
15 KiB
Plaintext
427 lines
15 KiB
Plaintext
2016-04-18 Michael Matz <matz@suse.de>
|
||
|
||
* trans-io.c (gfc_build_io_library_fndecls): Use SET_TYPE_ALIGN.
|
||
* trans-common.c (build_common_decl): Use SET_DECL_ALIGN.
|
||
* trans-types.c (gfc_add_field_to_struct): Use SET_DECL_ALIGN.
|
||
|
||
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
|
||
|
||
PR fortran/67039
|
||
* intrinsic.texi: Correct the documentation of pseudorandom
|
||
number intrinsics.
|
||
|
||
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
|
||
|
||
PR fortran/58000
|
||
* gfortran.texi: Document OPEN( ... NAME=) as not implemented
|
||
in GNU Fortran
|
||
|
||
2016-04-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
|
||
PR fortran/68566
|
||
* array.c (match_array_element_spec): Add check for non-integer.
|
||
* simplify.c (gfc_simplify_reshape): If source shape is NULL return.
|
||
|
||
2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
|
||
|
||
PR c/70436
|
||
* openmp.c (gfc_find_omp_udr): Add explicit braces to resolve a
|
||
future -Wparentheses warning.
|
||
|
||
2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
|
||
|
||
PR fortran/67538
|
||
* resolve.c (resolve_allocate_expr): Emit error message when no
|
||
array spec and no array valued source= expression is given in an
|
||
F2008 allocate() for an array to allocate.
|
||
|
||
2016-04-04 Andre Vehreschild <vehre@gcc.gnu.org>
|
||
|
||
PR fortran/65795
|
||
* trans-array.c (gfc_array_allocate): When the array is a coarray,
|
||
do not nullyfing its allocatable components in array_allocate, because
|
||
the nullify missed the array ref and nullifies the wrong component.
|
||
Cosmetics.
|
||
|
||
2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org>
|
||
|
||
PR fortran/70397
|
||
* trans-expr.c (gfc_class_len_or_zero_get): Add function to return a
|
||
constant zero tree, when the class to get the _len component from is
|
||
not unlimited polymorphic.
|
||
(gfc_copy_class_to_class): Use the new function.
|
||
* trans.h: Added interface of new function gfc_class_len_or_zero_get.
|
||
|
||
2016-03-28 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
|
||
|
||
* trans-decl.c (gfc_build_builtin_function_decls):
|
||
caf_stop_numeric and caf_stop_str definition.
|
||
* trans-stmt.c (gfc_trans_stop): invoke external functions
|
||
for stop and stop_str when coarrays are used.
|
||
* trans.h: extern for new functions.
|
||
|
||
2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
|
||
PR fortran/69043
|
||
* scanner.c (load_file): Update to use S_ISREG macro.
|
||
|
||
2016-03-17 Thomas Schwinge <thomas@codesourcery.com>
|
||
|
||
* gfortran.h (enum gfc_omp_map_op): Rename OMP_MAP_FORCE_DEALLOC
|
||
to OMP_MAP_DELETE. Adjust all users.
|
||
|
||
2016-03-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
Jim MacArthur <jim.macarthur@codethink.co.uk>
|
||
|
||
PR fortran/69043
|
||
* scanner.c (load_file): Check that included file is regular.
|
||
|
||
2016-03-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
Harold Anlauf <anlauf@gmx.de>
|
||
|
||
PR fortran/69520
|
||
* invoke.texi: Explain use of the 'no-' construct within the
|
||
-fcheck= option.
|
||
* options.c (gfc_handle_runtime_check_option): Enable use of
|
||
'no-' prefix for the various options with -fcheck= to allow
|
||
negating previously enabled check options.
|
||
|
||
2016-03-12 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/70031
|
||
* decl.c (gfc_match_prefix): Treat the 'module' prefix in the
|
||
same way as the others, rather than fixing it to come last.
|
||
(gfc_match_function_decl, gfc_match_subroutine): After errors
|
||
in 'copy_prefix', emit them immediately in the case of module
|
||
procedures to prevent a later ICE.
|
||
|
||
PR fortran/69524
|
||
* decl.c (gfc_match_submod_proc): Permit 'module procedure'
|
||
declarations within the contains section of modules as well as
|
||
submodules.
|
||
* resolve.c (resolve_fl_procedure): Likewise.
|
||
*trans-decl.c (build_function_decl): Change the gcc_assert to
|
||
allow all forms of module procedure declarations within module
|
||
contains sections.
|
||
|
||
2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/68147
|
||
PR fortran/47674
|
||
* frontend-passes.c (realloc_string_callback): Don't set
|
||
walk_subtrees.
|
||
|
||
2016-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
* dump-parse-tree.c (show_code_node): Print association
|
||
list of a block if present. Handle EXEC_END_BLOCK.
|
||
|
||
2016-02-28 Harald Anlauf <anlauf@gmx.de>
|
||
Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
|
||
PR fortran/56007
|
||
* match.c (gfc_match_iterator): Add diagnostic for array variable
|
||
as do loop index.
|
||
|
||
2016-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
Steven G. Kargl <kargl@gcc.gnu.org>
|
||
|
||
PR fortran/69910
|
||
* io.c (gfc_match_open): Check that open status is an expression
|
||
constant before comparing string to 'scratch' with NEWUNIT.
|
||
|
||
2016-02-27 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
|
||
|
||
* trans.c (gfc_allocate_allocatable): size conversion
|
||
from byte to number of elements for event variables.
|
||
* trans-types.c (gfc_get_derived_type): event variables
|
||
represented as a pointer (like lock variable).
|
||
|
||
2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
|
||
PR fortran/61156
|
||
* scanner.c (add_path_to_list): If include path is not a directory,
|
||
issue a fatal error.
|
||
|
||
2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org>
|
||
|
||
PR fortran/67451
|
||
* trans-array.c (gfc_array_allocate): Take the attributes from the
|
||
expression to allocate and not from the source=-expression.
|
||
|
||
2016-02-20 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/69423
|
||
* trans-decl.c (create_function_arglist): Deferred character
|
||
length functions, with and without declared results, address
|
||
the passed reference type as '.result' and the local string
|
||
length as '..result'.
|
||
(gfc_null_and_pass_deferred_len): Helper function to null and
|
||
return deferred string lengths, as needed.
|
||
(gfc_trans_deferred_vars): Call it, thereby reducing repeated
|
||
code, add call for deferred arrays and reroute pointer function
|
||
results. Avoid using 'tmp' for anything other that a temporary
|
||
tree by introducing 'type_of_array' for the arrayspec type.
|
||
|
||
2015-02-16 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/69742
|
||
* frontend-passes.c (cfe-expr_0): Don't register functions
|
||
from within an ASSOCIATE statement.
|
||
|
||
2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/60526
|
||
* decl.c (build_sym): If the name has already been defined as a
|
||
type, it has a symtree with an upper case letter at the beginning.
|
||
If such a symtree exists, issue an error and exit. Don't do
|
||
this if there is no corresponding upper case letter.
|
||
|
||
2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/60526
|
||
PR bootstrap/69816
|
||
* decl.c (build_sym): Reverted previous patch.
|
||
|
||
2016-02-14 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/60526
|
||
* decl.c (build_sym): If the name has already been defined as a
|
||
type, issue error and return false.
|
||
|
||
2016-02-12 David Malcolm <dmalcolm@redhat.com>
|
||
|
||
PR other/69554
|
||
* error.c (gfc_diagnostic_start_span): New function.
|
||
(gfc_diagnostics_init): Initialize global_dc's start_span.
|
||
|
||
2016-02-11 Andre Vehreschild <vehre@gcc.gnu.org>
|
||
|
||
PR fortran/69296
|
||
* gfortran.h: Added flag to gfc_association_list indicating that
|
||
the rank of an associate variable has been guessed only.
|
||
* parse.c (parse_associate): Set the guess flag mentioned above
|
||
when guessing the rank of an expression.
|
||
* resolve.c (resolve_assoc_var): When the rank has been guessed,
|
||
make sure, that the guess was correct else overwrite with the actual
|
||
rank.
|
||
* trans-stmt.c (trans_associate_var): For subref_array_pointers in
|
||
class objects, take the span from the _data component.
|
||
|
||
2016-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
|
||
PR fortran/50555
|
||
* primary.c (match_actual_arg): If symbol has attribute flavor of
|
||
namelist, generate an error. (gfc_match_rvalue): Likewise return
|
||
MATCH_ERROR.
|
||
* resolve.c (resolve_symbol): Scan arument list of procedures and
|
||
generate an error if a namelist is found.
|
||
|
||
2016-02-05 Mikael Morin <mikael@gcc.gnu.org>
|
||
|
||
PR fortran/66089
|
||
* trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
|
||
the former to the latter and make it non-static. Update callers.
|
||
* gfortran.h (gfc_expr_is_variable): New declaration.
|
||
(struct gfc_ss_info): Add field needs_temporary.
|
||
* trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
|
||
Tighten the condition on aggregate expressions with a check
|
||
that the expression is a variable and doesn't need a temporary.
|
||
(gfc_conv_resolve_dependency): Add intermediary reference variable.
|
||
Set the needs_temporary field.
|
||
|
||
2016-02-03 Andre Vehreschild <vehre@gcc.gnu.org>
|
||
|
||
PR fortran/67451
|
||
PR fortran/69418
|
||
* trans-expr.c (gfc_copy_class_to_class): For coarrays just the
|
||
pointer is passed. Take it as is without trying to deref the
|
||
_data component.
|
||
* trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
|
||
argument to source=-expression.
|
||
|
||
2016-02-02 Nathan Sidwell <nathan@codesourcery.com>
|
||
|
||
* lang.opt (fopenacc-dim=): New option.
|
||
|
||
2016-01-31 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/67564
|
||
* trans-expr.c (gfc_conv_procedure_call): For the vtable copy
|
||
subroutines, add a string length argument, when the actual
|
||
argument is an unlimited polymorphic class object.
|
||
|
||
2016-01-30 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/69566
|
||
* trans-expr.c (gfc_conv_procedure_call): Correct expression
|
||
for 'ulim_copy', which was missing a test for 'comp'.
|
||
|
||
2016-01-28 Andre Vehreschild <vehre@gcc.gnu.org>
|
||
|
||
PR fortran/62536
|
||
* decl.c (gfc_match_end): Only unnest and remove BLOCK namespaces
|
||
when the END encountered does not match a BLOCK's end.
|
||
|
||
2016-01-27 Janus Weil <janus@gcc.gnu.org>
|
||
|
||
PR fortran/69484
|
||
* invoke.texi: Fix documentation of -Wall with respect to -Wtabs.
|
||
|
||
2016-01-27 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/69422
|
||
* trans-expr.c (is_scalar_reallocatable_lhs): Remove the check
|
||
for allocatable components, whilst checking if the symbol is a
|
||
derived or class entity..
|
||
|
||
2016-01-26 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/69385
|
||
* trans-expr.c (gfc_trans_assignment_1): Exclude initialization
|
||
assignments from check on assignment of scalars to unassigned
|
||
arrays and correct wrong code within the corresponding block.
|
||
|
||
2016-01-26 David Malcolm <dmalcolm@redhat.com>
|
||
|
||
PR other/69006
|
||
* error.c (gfc_diagnostic_starter): Delete use of pp_newline.
|
||
|
||
2016-01-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
|
||
PR fortran/69397
|
||
PR fortran/68442
|
||
* interface.c (gfc_arglist_matches_symbol): Replace assert with
|
||
a return false if not a procedure.
|
||
* resolve.c (resolve_generic_f): Test if we are resolving an
|
||
initialization expression and adjust error message accordingly.
|
||
|
||
2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/66094
|
||
* frontend-passes.c (matmul_lhs_realloc): Add
|
||
forgotten break statement.
|
||
|
||
2016-01-24 Dominique d'Humieres <dominiq@lps.ens.fr>
|
||
|
||
PR fortran/68283
|
||
* primary.c (gfc_variable_attr): revert revision r221955,
|
||
call gfc_internal_error only if there is no error.
|
||
|
||
2016-01-24 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/66094
|
||
* frontend-passes.c (enum matrix_case): Add case A2B2T for
|
||
MATMUL(A,TRANSPoSE(B)) where A and B are rank 2.
|
||
(inline_limit_check): Also add A2B2T.
|
||
(matmul_lhs_realloc): Handle A2B2T.
|
||
(check_conjg_variable): Rename to
|
||
(check_conjg_transpose_variable): and also count TRANSPOSE.
|
||
(inline_matmul_assign): Handle A2B2T.
|
||
|
||
2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||
|
||
PR fortran/65996
|
||
* error.c (gfc_error): Save the state of abort_on_error and set
|
||
it to false for buffered errors to allow normal processing.
|
||
Restore the state before leaving.
|
||
|
||
2016-01-19 Martin Jambor <mjambor@suse.cz>
|
||
|
||
* types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
|
||
(BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
|
||
(BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
|
||
|
||
2016-01-15 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/64324
|
||
* resolve.c (check_uop_procedure): Prevent deferred length
|
||
characters from being trapped by assumed length error.
|
||
|
||
PR fortran/49630
|
||
PR fortran/54070
|
||
PR fortran/60593
|
||
PR fortran/60795
|
||
PR fortran/61147
|
||
PR fortran/64324
|
||
* trans-array.c (gfc_conv_scalarized_array_ref): Pass decl for
|
||
function as well as variable expressions.
|
||
(gfc_array_init_size): Add 'expr' as an argument. Use this to
|
||
correctly set the descriptor dtype for deferred characters.
|
||
(gfc_array_allocate): Add 'expr' to the call to
|
||
'gfc_array_init_size'.
|
||
* trans.c (gfc_build_array_ref): Expand logic for setting span
|
||
to include indirect references to character lengths.
|
||
* trans-decl.c (gfc_get_symbol_decl): Ensure that deferred
|
||
result char lengths that are PARM_DECLs are indirectly
|
||
referenced both for directly passed and by reference.
|
||
(create_function_arglist): If the length type is a pointer type
|
||
then store the length as the 'passed_length' and make the char
|
||
length an indirect reference to it.
|
||
(gfc_trans_deferred_vars): If a character length has escaped
|
||
being set as an indirect reference, return it via the 'passed
|
||
length'.
|
||
* trans-expr.c (gfc_conv_procedure_call): The length of
|
||
deferred character length results is set TREE_STATIC and set to
|
||
zero.
|
||
(gfc_trans_assignment_1): Do not fix the rse string_length if
|
||
it is a variable, a parameter or an indirect reference. Add the
|
||
code to trap assignment of scalars to unallocated arrays.
|
||
* trans-stmt.c (gfc_trans_allocate): Remove 'def_str_len' and
|
||
all references to it. Instead, replicate the code to obtain a
|
||
explicitly defined string length and provide a value before
|
||
array allocation so that the dtype is correctly set.
|
||
trans-types.c (gfc_get_character_type): If the character length
|
||
is a pointer, use the indirect reference.
|
||
|
||
2016-01-10 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||
|
||
PR fortran/69154
|
||
* frontend-passes.c (in_where): New variable.
|
||
(inline_matmul_assign): Don't try this if we are within
|
||
a WHERE statement.
|
||
(gfc_code_walker): Keep track of in_where.
|
||
|
||
2016-01-10 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/67779
|
||
* trans_array.c (gfc_conv_scalarized_array_ref): Add missing
|
||
se->use_offset from condition for calculation of 'base'.
|
||
|
||
2016-01-08 Jakub Jelinek <jakub@redhat.com>
|
||
|
||
PR fortran/69128
|
||
* trans.h (OMPWS_SCALARIZER_BODY): Define.
|
||
(OMPWS_NOWAIT): Renumber.
|
||
* trans-stmt.c (gfc_trans_where_3): Only set OMPWS_SCALARIZER_WS
|
||
if OMPWS_SCALARIZER_BODY is not set already, and set also
|
||
OMPWS_SCALARIZER_BODY until the final loop creation.
|
||
* trans-expr.c (gfc_trans_assignment_1): Likewise.
|
||
* trans-openmp.c (gfc_trans_omp_workshare): Also clear
|
||
OMPWS_SCALARIZER_BODY.
|
||
* trans-array.c (gfc_trans_scalarized_loop_end): Don't create
|
||
OMP_FOR if OMPWS_SCALARIZER_BODY is set.
|
||
|
||
2016-01-04 Jakub Jelinek <jakub@redhat.com>
|
||
|
||
Update copyright years.
|
||
|
||
* gfortranspec.c (lang_specific_driver): Update copyright notice
|
||
dates.
|
||
* gfc-internals.texi: Bump @copying's copyright year.
|
||
* gfortran.texi: Ditto.
|
||
* intrinsic.texi: Ditto.
|
||
* invoke.texi: Ditto.
|
||
|
||
2016-01-01 Paul Thomas <pault@gcc.gnu.org>
|
||
|
||
PR fortran/68864
|
||
* trans-array.c (evaluate_bound): If deferred, test that 'desc'
|
||
is an array descriptor before using gfc_conv_descriptor_xxx.
|
||
|
||
Copyright (C) 2016 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|