mirror of git://gcc.gnu.org/git/gcc.git
1112 lines
42 KiB
Plaintext
1112 lines
42 KiB
Plaintext
2015-07-16 Release Manager
|
|
|
|
* GCC 5.2.0 released.
|
|
|
|
2015-06-24 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/66549
|
|
* resolve.c (resolve_global_procedure): Don't save and restore
|
|
OpenMP state around the call to gfc_resolve.
|
|
(gfc_resolve): Save OpenMP state on entry and restore it on return.
|
|
|
|
2015-06-14 Thomas Koenig <tkoenig@gcc.gnu.org>
|
|
|
|
PR fortran/66385
|
|
Backport from trunk
|
|
* frontend-passes.c (combine_array_constructor): Return early if
|
|
inside a FORALL loop.
|
|
|
|
2015-06-14 Thomas Koenig <tkoenig@gcc.gnu.org>
|
|
|
|
* intrinsic.texi: Change \leq to < in descrition of imaginary
|
|
part in argument to log.
|
|
|
|
2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
|
|
|
|
* f95-lang.c (gfc_create_decls): Register the main translation unit
|
|
through the new debug hook.
|
|
|
|
2015-06-08 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66245
|
|
* match.c (gfc_match_type_is, gfc_match_class_is): Check if the
|
|
return type spec or derived type spec is validate.
|
|
|
|
2015-06-05 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66347
|
|
* resolve.c (apply_default_init_local): Do not dereference a NULL
|
|
pointer.
|
|
|
|
2015-06-05 Russell Whitesides <russelldub@gmail.com>
|
|
Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/40958
|
|
PR fortran/60780
|
|
PR fortran/66377
|
|
* module.c (load_equiv): Add check for loading duplicate EQUIVALENCEs
|
|
from different modules. Eliminate the pruning of unused
|
|
equivalence-objects
|
|
|
|
|
|
2015-06-02 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66380
|
|
* simplify.c (gfc_simplify_reshape): Convert assert into returning
|
|
NULL, which triggers an error condition.
|
|
|
|
2015-05-29 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/66257
|
|
* resolve.c (resolve_actual_arglist): Don't throw an error
|
|
if the argument with procedure pointer component is not a variable.
|
|
|
|
2015-05-22 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
Backported from mainline
|
|
2015-05-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
PR middle-end/66199
|
|
* trans-openmp.c (gfc_trans_omp_teams): Set OMP_TEAMS_COMBINED for
|
|
combined constructs.
|
|
(gfc_trans_omp_target): Make sure BIND_EXPR has non-NULL
|
|
BIND_EXPR_BLOCK.
|
|
|
|
2015-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
PR fortran/65903
|
|
* io.c (format_lex): Change to NONSTRING when checking for
|
|
possible doubled quote.
|
|
* scanner.c (gfc_next_char_literal): Revert change from 64506
|
|
and add a check for quotes and return.
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66106
|
|
* interface.c(gfc_match_end_interface): Enforce F2008 C1202 (R1201).
|
|
* match.c(gfc_op2string): Return 'none' for INTRINSIC_NONE.
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66057
|
|
* decl.c(gfc_match_generic): Detected a malformed GENERIC statement.
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66052
|
|
* decl.c(gfc_match_protected): Prevent dereference of NULL pointer.
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66045
|
|
* expr.c (gfc_check_assign): Check for assignment of NULL() instead
|
|
of the (intended) pointer assignment.
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66044
|
|
* decl.c(gfc_match_entry): Change a gfc_internal_error() into
|
|
a gfc_error()
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66043
|
|
* check.c (gfc_check_storage_size): Prevent the direct use of NULL()
|
|
in STORAGE_SIZE() reference.
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66040
|
|
* parse.c(verify_st_order): Replace a gfc_internal_error with your
|
|
generic gfc_error.
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/66039
|
|
* io.c (match_filepos): Check for incomplete/mangled REWIND, FLUSH,
|
|
BACKSPACE, and ENDFILE statements
|
|
|
|
2015-05-19 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/64925
|
|
* symbol.c(check_conflict): Check for a conflict between a dummy
|
|
argument and an internal procedure name.
|
|
|
|
2015-05-02 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/65976
|
|
* invoke.texi: Remove 'no-' in '-fno-fixed-form'
|
|
|
|
2015-04-22 Release Manager
|
|
|
|
* GCC 5.1.0 released.
|
|
|
|
2015-04-22 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
PR fortran/65429
|
|
* decl.c (add_init_expr_to_sym): Set the length type parameter.
|
|
|
|
2015-04-10 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* trans-stmt.c (gfc_trans_lock_unlock): Implement -fcoarray=lib
|
|
version; reject not-yet-implemented variants.
|
|
* trans-types.c (gfc_get_derived_type): For lock_type with
|
|
-fcoarray=lib, use a void pointer as type.
|
|
* trans.c (gfc_allocate_using_lib, gfc_allocate_allocatable):
|
|
Handle lock_type with -fcoarray=lib.
|
|
|
|
2015-04-10 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/56674
|
|
PR fortran/58813
|
|
PR fortran/59016
|
|
PR fortran/59024
|
|
* symbol.c (save_symbol_data, gfc_save_symbol_data): Rename the
|
|
former to the latter and make it non-static. Update callers.
|
|
* gfortran.h (gfc_save_symbol_data): New prototype.
|
|
* decl.c (gfc_match_decl_type_spec): Call 'gfc_save_symbol_data'
|
|
before modifying symbols 'sym' and 'dt_sym'.
|
|
|
|
2013-04-09 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/56852
|
|
* primary.c (gfc_variable_attr): Avoid ICE on AR_UNKNOWN if any
|
|
of the index variables are untyped and errors are present.
|
|
|
|
2015-04-07 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
PR fortran/65548
|
|
* trans-stmt.c (gfc_trans_allocate): For intrinsic functions
|
|
use conv_expr_descriptor() instead of conv_expr_reference().
|
|
|
|
2015-03-30 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
PR fortran/65597
|
|
* trans-openmp.c (gfc_trans_omp_do): For !simple simd with explicit
|
|
linear clause for the iterator set OMP_CLAUSE_LINEAR_NO_COPYIN.
|
|
For implcitly added !simple OMP_CLAUSE_LINEAR set it too. Use step 1
|
|
instead of the original step on the new iterator - count.
|
|
|
|
2015-03-25 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/64952
|
|
PR fortran/65532
|
|
* gfortran.h (struct gfc_namespace): New field 'types_resolved'.
|
|
* resolve.c (resolve_types): Return early if field 'types_resolved'
|
|
is set. Set 'types_resolved' at the end.
|
|
|
|
2015-03-24 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
PR fortran/55901
|
|
* trans-expr.c (gfc_conv_structure): Fixed indendation.
|
|
Using integer_zero_node now instead of explicitly
|
|
constructing a integer constant zero node.
|
|
(gfc_conv_derived_to_class): Add handling of _len component,
|
|
i.e., when the rhs has a string_length then assign that to
|
|
class' _len, else assign 0.
|
|
(gfc_conv_intrinsic_to_class): Likewise.
|
|
|
|
2015-03-24 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
PR fortran/64787
|
|
PR fortran/57456
|
|
PR fortran/63230
|
|
* class.c (gfc_add_component_ref): Free no longer needed
|
|
ref-chains to prevent memory loss.
|
|
(find_intrinsic_vtab): For deferred length char arrays or
|
|
unlimited polymorphic objects, store the size in bytes of one
|
|
character in the size component of the vtab.
|
|
* gfortran.h: Added gfc_add_len_component () define.
|
|
* trans-array.c (gfc_trans_create_temp_array): Switched to new
|
|
function name for getting a class' vtab's field.
|
|
(build_class_array_ref): Likewise.
|
|
(gfc_array_init_size): Using the size information from allocate
|
|
more consequently now, i.e., the typespec of the entity to
|
|
allocate is no longer needed. This is to address the last open
|
|
comment in PR fortran/57456.
|
|
(gfc_array_allocate): Likewise.
|
|
(structure_alloc_comps): gfc_copy_class_to_class () needs to
|
|
know whether the class is unlimited polymorphic.
|
|
* trans-array.h: Changed interface of gfc_array_allocate () to
|
|
reflect the no longer needed typespec.
|
|
* trans-expr.c (gfc_find_and_cut_at_last_class_ref): New.
|
|
(gfc_reset_len): New.
|
|
(gfc_get_class_array_ref): Switch to new function name for
|
|
getting a class' vtab's field.
|
|
(gfc_copy_class_to_class): Added flag to know whether the class
|
|
to copy is unlimited polymorphic. Adding _len dependent code
|
|
then, which calls ->vptr->copy () with four arguments adding
|
|
the length information ->vptr->copy(from, to, from_len, to_cap).
|
|
(gfc_conv_procedure_call): Switch to new function name for
|
|
getting a class' vtab's field.
|
|
(alloc_scalar_allocatable_for_assignment): Use the string_length
|
|
as computed by gfc_conv_expr and not the statically backend_decl
|
|
which may be incorrect when ref-ing.
|
|
(gfc_trans_assignment_1): Use the string_length variable and
|
|
not the rse.string_length. The former has been computed more
|
|
generally.
|
|
* trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Switch to new
|
|
function name for getting a class' vtab's field.
|
|
(gfc_conv_intrinsic_storage_size): Likewise.
|
|
(gfc_conv_intrinsic_transfer): Likewise.
|
|
* trans-stmt.c (gfc_trans_allocate): Restructured to evaluate
|
|
source=expr3 only once before the loop over the objects to
|
|
allocate, when the objects are not arrays. Doing correct _len
|
|
initialization and calling of vptr->copy () fixing PR 64787.
|
|
(gfc_trans_deallocate): Reseting _len to 0, preventing future
|
|
errors.
|
|
* trans.c (gfc_build_array_ref): Switch to new function name
|
|
for getting a class' vtab's field.
|
|
(gfc_add_comp_finalizer_call): Likewise.
|
|
* trans.h: Define the prototypes for the gfc_class_vtab_*_get ()
|
|
and gfc_vptr_*_get () functions.
|
|
Added gfc_find_and_cut_at_last_class_ref () and
|
|
gfc_reset_len () routine prototype. Added flag to
|
|
gfc_copy_class_to_class () prototype to signal an unlimited
|
|
polymorphic entity to copy.
|
|
|
|
2015-03-24 Iain Sandoe <iain@codesourcery.com>
|
|
Tobias Burnus <burnus@net-b.de>
|
|
|
|
* gfortran.texi (_gfortran_caf_sync_memory): Improve wording.
|
|
|
|
2015-03-23 Paul Thomas <pault@gcc.gnu.org>
|
|
Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/64952
|
|
* gfortran.h (struct symbol_attribute) : New field
|
|
'array_outer_dependency'.
|
|
* trans.h (struct gfc_ss_info): New field 'array_outer_dependency'.
|
|
* module.c (enum ab_attribute): New value AB_ARRAY_OUTER_DEPENDENCY.
|
|
(attr_bits): Append same value to initializer.
|
|
(mio_symbol_attribute): Handle 'array_outer_dependency' attr
|
|
in module read and write.
|
|
* resolve.c (update_current_proc_outer_array_dependency): New function.
|
|
(resolve_function, resolve_call): Add code to update current procedure's
|
|
'array_outer_dependency' attribute.
|
|
(resolve_variable): Mark current procedure with attribute
|
|
array_outer_dependency if the variable is an array coming from outside
|
|
the current namespace.
|
|
(resolve_fl_procedure): Mark a procedure without body with attribute
|
|
'array_outer_dependency'.
|
|
* trans-array.c (gfc_conv_resolve_dependencies): If any ss is
|
|
marked as 'array_outer_dependency' generate a temporary.
|
|
(gfc_walk_function_expr): If the function may reference external arrays,
|
|
mark the head gfc_ss with flag 'array_outer_dependency'.
|
|
|
|
2015-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
PR libgfortran/59513
|
|
* gfortran.texi (Read/Write after EOF marker): New information.
|
|
|
|
2015-03-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
* gfortran.texi (_gfortran_caf_sync_memory): Put @{xxx} in one
|
|
line.
|
|
|
|
2015-03-21 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* gfortran.texi (_gfortran_caf_sync_all, _gfortran_caf_sync_images,
|
|
_gfortran_caf_sync_memory, _gfortran_caf_error_stop,
|
|
_gfortran_caf_error_stop_str, _gfortran_caf_atomic_define,
|
|
_gfortran_caf_atomic_ref, _gfortran_caf_atomic_cas,
|
|
_gfortran_caf_atomic_op): New sections.
|
|
|
|
2015-03-21 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* trans-expr.c (gfc_get_tree_for_caf_expr): Reject unimplemented
|
|
coindexed coarray accesses.
|
|
|
|
2015-03-17 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/59198
|
|
* trans-types.c (gfc_get_derived_type): If an abstract derived
|
|
type with procedure pointer components has no other type of
|
|
component, return the backend_decl. Otherwise build the
|
|
components if any of the non-procedure pointer components have
|
|
no backend_decl.
|
|
|
|
2015-03-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
PR fortran/64432
|
|
*trans-intrinisic.c (conv_intrinsic_system_clock): Check the
|
|
smallest kind passed in user arguments and hardcode tesults for
|
|
KIND=1 or KIND=2 to indicate no clock available.
|
|
|
|
2015-03-16 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
* resolve.c: Prevent segfault on illegal input.
|
|
|
|
2015-03-14 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/61138
|
|
* trans-expr.c (gfc_trans_pointer_assignment): Clear DESCRIPTOR_ONLY
|
|
field before reusing LSE.
|
|
|
|
2015-03-11 Janne Blomqvist <jb@gcc.gnu.org>
|
|
|
|
PR libfortran/65200
|
|
* gfortran.texi: Document behavior when opening files without
|
|
explicit ACTION= specifier.
|
|
|
|
2015-03-10 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/65024
|
|
* trans-expr.c (gfc_conv_component_ref): If the component
|
|
backend declaration is missing and the derived type symbol is
|
|
available in the reference, call gfc_build_derived_type.
|
|
|
|
2015-03-10 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
|
|
Tobias Burnus <burnus@net-b.de>
|
|
|
|
* trans.h (caf_sync_memory): New function decl tree.
|
|
* trans-decl.c (gfc_build_builtin_function_decls): Define it.
|
|
(create_main_function): Don't call sync_synchronize and leave
|
|
it to the CAF library.
|
|
* trans-stmt.c (gfc_trans_stop): Ditto.
|
|
(gfc_trans_sync): Ditto; add call library call for sync memory.
|
|
|
|
2015-03-08 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/60898
|
|
* resolve.c (resolve_symbol): Check that the symbol found by
|
|
name lookup really is the current symbol being resolved.
|
|
|
|
2015-03-02 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* check.c (gfc_check_atomic): Properly check for coarrayness
|
|
and for being coindexed.
|
|
|
|
2015-02-26 Martin Liska <mliska@suse.cz>
|
|
|
|
* resolve.c: Rename enum 'comparison' to 'compare_result' as
|
|
solution for -Wodr issue.
|
|
|
|
2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
|
|
|
|
PR libgomp/64625
|
|
* f95-lang.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
|
|
Remove macros.
|
|
(DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
|
|
* types.def (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
|
|
(BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
|
|
Remove function types.
|
|
(BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
|
|
(BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
|
|
(BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
|
|
New function types.
|
|
|
|
2015-02-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
|
|
|
PR fortran/64980
|
|
PR fortran/61960
|
|
* trans-expr.c (gfc_apply_interface_mapping_to_expr): Remove mapping
|
|
for component references to class objects.
|
|
(gfc_conv_procedure_call): Compare the class by name.
|
|
|
|
2015-02-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
PR fortran/64506
|
|
* scanner.c (gfc_next_char_literal): For free form source,
|
|
check for '!' and if found, clear the comment and go back
|
|
and get the next character. For fixed form source, skip the
|
|
rest of the line.
|
|
|
|
2015-02-12 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/64932
|
|
* trans-stmt.c (gfc_trans_deallocate): If a component array
|
|
expression is not a descriptor type and it is a derived type
|
|
that has allocatable components and is not finalizable, then
|
|
deallocate the allocatable components.
|
|
|
|
2015-02-08 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/63744
|
|
* module.c (check_for_ambiguous): Change argument type
|
|
from gfc_symbol to gfc_symtree. Check local (symtree) name
|
|
instead of original (symbol) name.
|
|
(read_module): Update caller.
|
|
|
|
2015-02-06 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/63205
|
|
* gfortran.h: Add 'must finalize' field to gfc_expr and
|
|
prototypes for gfc_is_alloc_class_scalar_function and for
|
|
gfc_is_alloc_class_array_function.
|
|
* expr.c (gfc_is_alloc_class_scalar_function,
|
|
gfc_is_alloc_class_array_function): New functions.
|
|
* trans-array.c (gfc_add_loop_ss_code): Do not move the
|
|
expression for allocatable class scalar functions outside the
|
|
loop.
|
|
(conv_array_index_offset): Cope with deltas being NULL_TREE.
|
|
(build_class_array_ref): Do not return with allocatable class
|
|
array functions. Add code to pick out the returned class array.
|
|
Dereference if necessary and return if not a class object.
|
|
(gfc_conv_scalarized_array_ref): Cope with offsets being NULL.
|
|
(gfc_walk_function_expr): Return an array ss for the result of
|
|
an allocatable class array function.
|
|
* trans-expr.c (gfc_conv_subref_array_arg): Remove the assert
|
|
that the argument should be a variable. If an allocatable class
|
|
array function, set the offset to zero and skip the write-out
|
|
loop in this case.
|
|
(gfc_conv_procedure_call): Add allocatable class array function
|
|
to the assert. Call gfc_conv_subref_array_arg for allocatable
|
|
class array function arguments with derived type formal arg..
|
|
Add the code for handling allocatable class functions, including
|
|
finalization calls to prevent memory leaks.
|
|
(arrayfunc_assign_needs_temporary): Return if an allocatable
|
|
class array function.
|
|
(gfc_trans_assignment_1): Set must_finalize to rhs expression
|
|
for allocatable class functions. Set scalar_to_array as needed
|
|
for scalar class allocatable functions assigned to an array.
|
|
Nullify the allocatable components corresponding the the lhs
|
|
derived type so that the finalization does not free them.
|
|
|
|
2015-01-29 Andre Vehreschild <vehre@gmx.de>
|
|
Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/60289
|
|
Initial patch by Janus Weil
|
|
* resolve.c (resolve_allocate_expr): Add check for comp. only
|
|
when target is not unlimited polymorphic.
|
|
* trans-stmt.c (gfc_trans_allocate): Assign correct value to
|
|
_len component of unlimited polymorphic entities.
|
|
|
|
2015-02-05 Tobias Burnus <burnus@net-b.de>
|
|
|
|
PR fortran/64943
|
|
* resolve.c (resolve_transfer): Also check structure
|
|
constructors.
|
|
|
|
2015-02-05 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/64757
|
|
* resolve.c (resolve_structure_cons): Obtain the rank of class
|
|
components.
|
|
* trans-expr.c (gfc_trans_alloc_subarray_assign): Do the
|
|
assignment to allocatable class array components.
|
|
(alloc_scalar_allocatable_for_subcomponent_assignment): If comp
|
|
is a class component, allocate to the _data field.
|
|
(gfc_trans_subcomponent_assign): If a class component with a
|
|
derived type expression set the _vptr field and for array
|
|
components, call gfc_trans_alloc_subarray_assign. For scalars,
|
|
the assignment is performed here.
|
|
|
|
2015-02-04 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
* options.c: Include langhooks.h.
|
|
(gfc_post_options): Change lang_hooks.name based on
|
|
selected -std= mode.
|
|
|
|
2015-02-03 Steven G. Kargl <kargl@gcc.gnu.org>
|
|
|
|
* intrinsic.texi (CO_ASSOCIATED): c_prt_1 should be c_ptr_1.
|
|
|
|
2015-01-30 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
* trans-decl.c (gfc_get_symbol_decl): Removed duplicate code.
|
|
* trans-expr.c (gfc_conv_intrinsic_to_class): Fixed indentation.
|
|
Fixed datatype of charlen to be a 32-bit int.
|
|
|
|
2015-02-01 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
* error.c (gfc_warning (const char *, ...), gfc_warning_now (const
|
|
char *, ...)): Remove functions.
|
|
* gfortran.h (gfc_warning (const char *, ...), gfc_warning_now
|
|
(const char *, ...)): Remove declarations.
|
|
* arith.c, check.c, data.c, decl.c, frontend-passes.c,
|
|
interface.c, intrinsic.c, io.c, matchexp.c, module.c, openmp.c,
|
|
options.c, parse.c, primary.c, resolve.c, scanner.c, symbol.c,
|
|
trans-common.c, trans-const.c, trans-stmt.c: All callers of
|
|
gfc_warning and gfc_warning_now changed to pass 0 or option number
|
|
as first argument.
|
|
|
|
2015-01-30 Joseph Myers <joseph@codesourcery.com>
|
|
|
|
* f95-lang.c, gfortranspec.c, trans-const.c, trans-expr.c: All
|
|
callers of fatal_error changed to pass input_location as first
|
|
argument.
|
|
|
|
2015-01-28 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* intrinsic.texi (CO_BROADCAST): Correct argument description.
|
|
|
|
2015-01-27 Tobias Burnus <burnus@net-b.de>
|
|
|
|
PR fortran/63861
|
|
* trans-openmp.c (gfc_has_alloc_comps, gfc_trans_omp_clauses):
|
|
Fix handling for scalar coarrays.
|
|
* trans-types.c (gfc_get_element_type): Add comment.
|
|
|
|
2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
|
|
|
PR fortran/64771
|
|
* interface.c: Remove <algorithm>.
|
|
(check_dummy_characteristics): Use MAX instead of std::max.
|
|
|
|
2015-01-26 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/62044
|
|
* resolve.c (resolve_allocate_expr): If the default initializer
|
|
is NULL, keep the original MOLD expression so that the correct
|
|
typespec is available.
|
|
|
|
2015-01-26 Tobias Burnus <burnus@net-b.de>
|
|
|
|
PR fortran/64771
|
|
* interface.c (check_dummy_characteristics): Fix coarray handling.
|
|
|
|
2015-01-26 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* io.c (gfc_match_inquire): Replace "-1" by a defined constant.
|
|
|
|
2015-01-26 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/64230
|
|
* class.c (finalize_component): New argument 'sub_ns'. Insert code to
|
|
check if 'expr' is associated.
|
|
(generate_finalization_wrapper): Rename 'ptr' symbols to 'ptr1' and
|
|
'ptr2'. Pass 'sub_ns' to finalize_component.
|
|
|
|
2015-01-25 Mikael Morin <mikael@gcc.gnu.org>
|
|
|
|
PR fortran/62044
|
|
* decl.c (gfc_match_derived_decl): Don't insert a new symtree element.
|
|
* module.c (MOD_VERSION): Bump.
|
|
(write_module): Don't write list of extensions.
|
|
(read_module): Don't jump over list of extensions;
|
|
don't load list of extensions.
|
|
(load_derived_extensions, write_dt_extensions,
|
|
write_derived_extensions): Remove.
|
|
|
|
2015-01-24 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* parse.c (gfc_parse_file): Fix two-location gfc_error call.
|
|
|
|
2015-01-23 Martin Liska <mliska@suse.cz>
|
|
|
|
* decl.c (attr_decl1): Workaround -Wmaybe-uninitialized
|
|
false positive during profiledbootstrap by initializing them.
|
|
* matchexp.c (match_mult_operand): Likewise.
|
|
* module.c (write_atom): Likewise.
|
|
(read_module): Likewise.
|
|
|
|
2015-01-23 Tom de Vries <tom@codesourcery.com>
|
|
|
|
PR libgomp/64672
|
|
* lang.opt (fopenacc): Mark as LTO option.
|
|
|
|
2015-01-23 Tom de Vries <tom@codesourcery.com>
|
|
|
|
PR libgomp/64707
|
|
* lang.opt (fopenmp): Mark as LTO option.
|
|
|
|
2015-01-23 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
* trans-decl.c (gfc_finish_var_decl): Fixed moved comment.
|
|
* trans-stmt.c (gfc_trans_allocate): Fixed indentation.
|
|
|
|
2015-01-23 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
* gfc-diagnostic.def (DK_ICE_NOBT): New kind.
|
|
|
|
2015-01-23 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/60922
|
|
* class.c (finalize_component): Apply the check for 'fini_coarray' only
|
|
to coarray components.
|
|
|
|
2015-01-23 Tobias Burnus <burnus@net-b.de>
|
|
|
|
PR fortran/64726
|
|
* trans-openmp.c (gfc_trans_oacc_combined_directive): Fix
|
|
loop generation.
|
|
|
|
2015-01-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
PR fortran/61933
|
|
* libgfortran.h:
|
|
* trans-io.c (set_parameter_value): Delete use of has_iostat.
|
|
Redefine to not generate any runtime error check calls.
|
|
(set_parameter_value_chk): Rename of the former
|
|
set_parameter_value with the runtime error checks and fix
|
|
whitespace. (set_parameter_value_inquire): New function that
|
|
builds a runtime conditional block to set the INQUIRE
|
|
common parameter block unit number to -2 when unit numbers
|
|
exceed positive KIND=4 limits. (gfc_trans_open): Whitespace.
|
|
For unit, use the renamed set_parameter_value_chk.
|
|
(gfc_trans_close): Likewise use renamed function.
|
|
(build_filepos): Whitespace and use renamed function.
|
|
(gfc_trans_inquire): Whitespace and for unit use
|
|
set_parameter_value and set_parameter_value_inquire.
|
|
(gfc_trans_wait): Remove p->iostat from call to
|
|
set_parameter_value. Use new set_parameter_value_chk for unit.
|
|
(build_dt): Use the new set_parameter_value without p->iostat
|
|
and fix whitespace. Use set_parameter_value_chk for unit.
|
|
|
|
2015-01-21 Thomas Koenig <tkoenig@netcologne.de>
|
|
|
|
PR fortran/57023
|
|
* dependency.c (callback_dummy_intent_not_int): New function.
|
|
(dummy_intent_not_in): New function.
|
|
(gfc_full_array_ref_p): Use dummy_intent_not_in.
|
|
|
|
2015-01-18 Andre Vehreschild <vehre@gmx.de>
|
|
Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/60255
|
|
* class.c (gfc_get_len_component): New.
|
|
(gfc_build_class_symbol): Add _len component to unlimited
|
|
polymorphic entities.
|
|
(find_intrinsic_vtab): Removed emitting of error message.
|
|
* gfortran.h: Added prototype for gfc_get_len_component.
|
|
* simplify.c (gfc_simplify_len): Use _len component where
|
|
available.
|
|
* trans-expr.c (gfc_class_len_get): New.
|
|
(gfc_conv_intrinsic_to_class): Add handling for deferred
|
|
character arrays.
|
|
(gfc_conv_structure): Treat _len component correctly.
|
|
(gfc_conv_expr): Prevent bind_c handling when not required.
|
|
(gfc_trans_pointer_assignment): Propagate _len component.
|
|
* trans-stmt.c (class_has_len_component): New.
|
|
(trans_associate_var): _len component treatment for associate
|
|
context.
|
|
(gfc_trans_allocate): Same as for trans_associate_var()
|
|
* trans.h: Added prototype for gfc_class_len_get.
|
|
|
|
2015-01-18 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/57959
|
|
* trans-expr.c (gfc_trans_subcomponent_assign): Use a deep copy
|
|
for allocatable components, where the source is a variable.
|
|
|
|
2015-01-18 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/55901
|
|
* primary.c (gfc_match_varspec): Exclude dangling associate-
|
|
names with dimension 0 from being counted as arrays.
|
|
* resolve.c (resolve_assoc_var): Sub-strings are permissible
|
|
for associate-names, so exclude characters from the test for
|
|
misuse as arrays.
|
|
* trans-decl.c (gfc_get_symbol_decl): Associate-names can use
|
|
the hidden string length variable of their associated target.
|
|
Signal this by setting 'length' to a constant, if the decl for
|
|
the string length is a variable.
|
|
|
|
2015-01-17 Paul Thomas <pault@gcc.gnu.org>
|
|
|
|
PR fortran/64578
|
|
* trans-expr.c (gfc_trans_pointer_assignment): Make sure that
|
|
before reinitializing rse, to add the rse.pre to block before
|
|
creating 'ptrtemp'.
|
|
* trans-intrinsic.c (gfc_conv_associated): Deal with the class
|
|
data being a descriptor.
|
|
|
|
2015-01-17 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
PR fortran/60357
|
|
* primary.c (build_actual_constructor): Prevent warning.
|
|
* trans-expr.c (alloc_scalar_allocatable_for_subcomponent_
|
|
assignment): New function encapsulates treatment of allocatable
|
|
components.
|
|
(gfc_trans_subcomponent_assign): Needed to distinguish between
|
|
regular assignment and initilization.
|
|
(gfc_trans_structure_assign): Same.
|
|
(gfc_conv_structure): Same.
|
|
|
|
PR fortran/61275
|
|
* gfortran.h: deferred_parameter is not needed, because
|
|
it artificial does the trick completely.
|
|
* primary.c (build_actual_constructor): Same.
|
|
(gfc_convert_to_structure_constructor): Same.
|
|
* resolve.c (resolve_fl_derived0): Same.
|
|
* trans-expr.c (gfc_conv_component_ref): Prevent treating
|
|
allocatable deferred length char arrays here.
|
|
(gfc_trans_subcomponent_assign): Same as above.
|
|
* trans-types.c (gfc_sym_type): This is done in
|
|
gfc_get_derived_type already.
|
|
|
|
2015-01-17 Andre Vehreschild <vehre@gmx.de>
|
|
|
|
PR fortran/60334
|
|
* trans-decl.c (gfc_get_symbol_decl):Use a ref on the string
|
|
length when the symbol is declared to be a result.
|
|
* trans-expr.c (gfc_conv_procedure_call): Strip deref on the
|
|
string length when functions are nested and the string length
|
|
is a reference already.
|
|
|
|
2015-01-16 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/45290
|
|
* decl.c (match_pointer_init): Error out if resolution of init expr
|
|
failed.
|
|
|
|
2015-01-15 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* openmp.c (check_symbol_not_pointer, resolve_oacc_data_clauses,
|
|
resolve_oacc_deviceptr_clause, resolve_omp_clauses,
|
|
gfc_resolve_oacc_declare): Replace '%s' by %qs.
|
|
|
|
2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
|
|
Cesar Philippidis <cesar@codesourcery.com>
|
|
James Norris <jnorris@codesourcery.com>
|
|
Ilmir Usmanov <i.usmanov@samsung.com>
|
|
Tobias Burnus <burnus@net-b.de>
|
|
|
|
* lang.opt (fopenacc): New option.
|
|
* cpp.c (cpp_define_builtins): Conditionally define _OPENACC.
|
|
* dump-parse-tree.c (show_omp_node): Split part of it into...
|
|
(show_omp_clauses): ... this new function.
|
|
(show_omp_node, show_code_node): Handle EXEC_OACC_PARALLEL_LOOP,
|
|
EXEC_OACC_PARALLEL, EXEC_OACC_KERNELS_LOOP, EXEC_OACC_KERNELS,
|
|
EXEC_OACC_DATA, EXEC_OACC_HOST_DATA, EXEC_OACC_LOOP,
|
|
EXEC_OACC_UPDATE, EXEC_OACC_WAIT, EXEC_OACC_CACHE,
|
|
EXEC_OACC_ENTER_DATA, EXEC_OACC_EXIT_DATA.
|
|
(show_namespace): Update for OpenACC.
|
|
* f95-lang.c (DEF_FUNCTION_TYPE_VAR_2, DEF_FUNCTION_TYPE_VAR_8)
|
|
(DEF_FUNCTION_TYPE_VAR_12, DEF_GOACC_BUILTIN)
|
|
(DEF_GOACC_BUILTIN_COMPILER): New macros.
|
|
* types.def (BT_FN_VOID_INT_INT_VAR)
|
|
(BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
|
|
(BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
|
|
New function types.
|
|
* gfortran.h (gfc_statement): Add ST_OACC_PARALLEL_LOOP,
|
|
ST_OACC_END_PARALLEL_LOOP, ST_OACC_PARALLEL, ST_OACC_END_PARALLEL,
|
|
ST_OACC_KERNELS, ST_OACC_END_KERNELS, ST_OACC_DATA,
|
|
ST_OACC_END_DATA, ST_OACC_HOST_DATA, ST_OACC_END_HOST_DATA,
|
|
ST_OACC_LOOP, ST_OACC_END_LOOP, ST_OACC_DECLARE, ST_OACC_UPDATE,
|
|
ST_OACC_WAIT, ST_OACC_CACHE, ST_OACC_KERNELS_LOOP,
|
|
ST_OACC_END_KERNELS_LOOP, ST_OACC_ENTER_DATA, ST_OACC_EXIT_DATA,
|
|
ST_OACC_ROUTINE.
|
|
(struct gfc_expr_list): New data type.
|
|
(gfc_get_expr_list): New macro.
|
|
(gfc_omp_map_op): Add OMP_MAP_FORCE_ALLOC, OMP_MAP_FORCE_DEALLOC,
|
|
OMP_MAP_FORCE_TO, OMP_MAP_FORCE_FROM, OMP_MAP_FORCE_TOFROM,
|
|
OMP_MAP_FORCE_PRESENT, OMP_MAP_FORCE_DEVICEPTR.
|
|
(OMP_LIST_FIRST, OMP_LIST_DEVICE_RESIDENT, OMP_LIST_USE_DEVICE)
|
|
(OMP_LIST_CACHE): New enumerators.
|
|
(struct gfc_omp_clauses): Add async_expr, gang_expr, worker_expr,
|
|
vector_expr, num_gangs_expr, num_workers_expr, vector_length_expr,
|
|
wait_list, tile_list, async, gang, worker, vector, seq,
|
|
independent, wait, par_auto, gang_static, and loc members.
|
|
(struct gfc_namespace): Add oacc_declare_clauses member.
|
|
(gfc_exec_op): Add EXEC_OACC_KERNELS_LOOP,
|
|
EXEC_OACC_PARALLEL_LOOP, EXEC_OACC_PARALLEL, EXEC_OACC_KERNELS,
|
|
EXEC_OACC_DATA, EXEC_OACC_HOST_DATA, EXEC_OACC_LOOP,
|
|
EXEC_OACC_UPDATE, EXEC_OACC_WAIT, EXEC_OACC_CACHE,
|
|
EXEC_OACC_ENTER_DATA, EXEC_OACC_EXIT_DATA.
|
|
(gfc_free_expr_list, gfc_resolve_oacc_directive)
|
|
(gfc_resolve_oacc_declare, gfc_resolve_oacc_parallel_loop_blocks)
|
|
(gfc_resolve_oacc_blocks): New prototypes.
|
|
* match.c (match_exit_cycle): Handle EXEC_OACC_LOOP and
|
|
EXEC_OACC_PARALLEL_LOOP.
|
|
* match.h (gfc_match_oacc_cache, gfc_match_oacc_wait)
|
|
(gfc_match_oacc_update, gfc_match_oacc_declare)
|
|
(gfc_match_oacc_loop, gfc_match_oacc_host_data)
|
|
(gfc_match_oacc_data, gfc_match_oacc_kernels)
|
|
(gfc_match_oacc_kernels_loop, gfc_match_oacc_parallel)
|
|
(gfc_match_oacc_parallel_loop, gfc_match_oacc_enter_data)
|
|
(gfc_match_oacc_exit_data, gfc_match_oacc_routine): New
|
|
prototypes.
|
|
* openmp.c: Include "diagnostic.h" and "gomp-constants.h".
|
|
(gfc_free_omp_clauses): Update for members added to struct
|
|
gfc_omp_clauses.
|
|
(gfc_match_omp_clauses): Change mask paramter to uint64_t. Add
|
|
openacc parameter.
|
|
(resolve_omp_clauses): Add openacc parameter. Update for OpenACC.
|
|
(struct fortran_omp_context): Add is_openmp member.
|
|
(gfc_resolve_omp_parallel_blocks): Initialize it.
|
|
(gfc_resolve_do_iterator): Update for OpenACC.
|
|
(gfc_resolve_omp_directive): Call
|
|
resolve_omp_directive_inside_oacc_region.
|
|
(OMP_CLAUSE_PRIVATE, OMP_CLAUSE_FIRSTPRIVATE)
|
|
(OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_COPYPRIVATE)
|
|
(OMP_CLAUSE_SHARED, OMP_CLAUSE_COPYIN, OMP_CLAUSE_REDUCTION)
|
|
(OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE)
|
|
(OMP_CLAUSE_DEFAULT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_COLLAPSE)
|
|
(OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL, OMP_CLAUSE_MERGEABLE)
|
|
(OMP_CLAUSE_ALIGNED, OMP_CLAUSE_DEPEND, OMP_CLAUSE_INBRANCH)
|
|
(OMP_CLAUSE_LINEAR, OMP_CLAUSE_NOTINBRANCH, OMP_CLAUSE_PROC_BIND)
|
|
(OMP_CLAUSE_SAFELEN, OMP_CLAUSE_SIMDLEN, OMP_CLAUSE_UNIFORM)
|
|
(OMP_CLAUSE_DEVICE, OMP_CLAUSE_MAP, OMP_CLAUSE_TO)
|
|
(OMP_CLAUSE_FROM, OMP_CLAUSE_NUM_TEAMS, OMP_CLAUSE_THREAD_LIMIT)
|
|
(OMP_CLAUSE_DIST_SCHEDULE): Use uint64_t.
|
|
(OMP_CLAUSE_ASYNC, OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS)
|
|
(OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_COPY, OMP_CLAUSE_COPYOUT)
|
|
(OMP_CLAUSE_CREATE, OMP_CLAUSE_PRESENT)
|
|
(OMP_CLAUSE_PRESENT_OR_COPY, OMP_CLAUSE_PRESENT_OR_COPYIN)
|
|
(OMP_CLAUSE_PRESENT_OR_COPYOUT, OMP_CLAUSE_PRESENT_OR_CREATE)
|
|
(OMP_CLAUSE_DEVICEPTR, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER)
|
|
(OMP_CLAUSE_VECTOR, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT)
|
|
(OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_DEVICE_RESIDENT)
|
|
(OMP_CLAUSE_HOST_SELF, OMP_CLAUSE_OACC_DEVICE, OMP_CLAUSE_WAIT)
|
|
(OMP_CLAUSE_DELETE, OMP_CLAUSE_AUTO, OMP_CLAUSE_TILE): New macros.
|
|
(gfc_match_omp_clauses): Handle those.
|
|
(OACC_PARALLEL_CLAUSES, OACC_KERNELS_CLAUSES, OACC_DATA_CLAUSES)
|
|
(OACC_LOOP_CLAUSES, OACC_PARALLEL_LOOP_CLAUSES)
|
|
(OACC_KERNELS_LOOP_CLAUSES, OACC_HOST_DATA_CLAUSES)
|
|
(OACC_DECLARE_CLAUSES, OACC_UPDATE_CLAUSES)
|
|
(OACC_ENTER_DATA_CLAUSES, OACC_EXIT_DATA_CLAUSES)
|
|
(OACC_WAIT_CLAUSES): New macros.
|
|
(gfc_free_expr_list, match_oacc_expr_list, match_oacc_clause_gang)
|
|
(gfc_match_omp_map_clause, gfc_match_oacc_parallel_loop)
|
|
(gfc_match_oacc_parallel, gfc_match_oacc_kernels_loop)
|
|
(gfc_match_oacc_kernels, gfc_match_oacc_data)
|
|
(gfc_match_oacc_host_data, gfc_match_oacc_loop)
|
|
(gfc_match_oacc_declare, gfc_match_oacc_update)
|
|
(gfc_match_oacc_enter_data, gfc_match_oacc_exit_data)
|
|
(gfc_match_oacc_wait, gfc_match_oacc_cache)
|
|
(gfc_match_oacc_routine, oacc_is_loop)
|
|
(resolve_oacc_scalar_int_expr, resolve_oacc_positive_int_expr)
|
|
(check_symbol_not_pointer, check_array_not_assumed)
|
|
(resolve_oacc_data_clauses, resolve_oacc_deviceptr_clause)
|
|
(oacc_compatible_clauses, oacc_is_parallel, oacc_is_kernels)
|
|
(omp_code_to_statement, oacc_code_to_statement)
|
|
(resolve_oacc_directive_inside_omp_region)
|
|
(resolve_omp_directive_inside_oacc_region)
|
|
(resolve_oacc_nested_loops, resolve_oacc_params_in_parallel)
|
|
(resolve_oacc_loop_blocks, gfc_resolve_oacc_blocks)
|
|
(resolve_oacc_loop, resolve_oacc_cache, gfc_resolve_oacc_declare)
|
|
(gfc_resolve_oacc_directive): New functions.
|
|
* parse.c (next_free): Update for OpenACC. Move some code into...
|
|
(verify_token_free): ... this new function.
|
|
(next_fixed): Update for OpenACC. Move some code into...
|
|
(verify_token_fixed): ... this new function.
|
|
(case_executable): Add ST_OACC_UPDATE, ST_OACC_WAIT,
|
|
ST_OACC_CACHE, ST_OACC_ENTER_DATA, and ST_OACC_EXIT_DATA.
|
|
(case_exec_markers): Add ST_OACC_PARALLEL_LOOP, ST_OACC_PARALLEL,
|
|
ST_OACC_KERNELS, ST_OACC_DATA, ST_OACC_HOST_DATA, ST_OACC_LOOP,
|
|
ST_OACC_KERNELS_LOOP.
|
|
(case_decl): Add ST_OACC_ROUTINE.
|
|
(push_state, parse_critical_block, parse_progunit): Update for
|
|
OpenACC.
|
|
(gfc_ascii_statement): Handle ST_OACC_PARALLEL_LOOP,
|
|
ST_OACC_END_PARALLEL_LOOP, ST_OACC_PARALLEL, ST_OACC_END_PARALLEL,
|
|
ST_OACC_KERNELS, ST_OACC_END_KERNELS, ST_OACC_KERNELS_LOOP,
|
|
ST_OACC_END_KERNELS_LOOP, ST_OACC_DATA, ST_OACC_END_DATA,
|
|
ST_OACC_HOST_DATA, ST_OACC_END_HOST_DATA, ST_OACC_LOOP,
|
|
ST_OACC_END_LOOP, ST_OACC_DECLARE, ST_OACC_UPDATE, ST_OACC_WAIT,
|
|
ST_OACC_CACHE, ST_OACC_ENTER_DATA, ST_OACC_EXIT_DATA,
|
|
ST_OACC_ROUTINE.
|
|
(verify_st_order, parse_spec): Handle ST_OACC_DECLARE.
|
|
(parse_executable): Handle ST_OACC_PARALLEL_LOOP,
|
|
ST_OACC_KERNELS_LOOP, ST_OACC_LOOP, ST_OACC_PARALLEL,
|
|
ST_OACC_KERNELS, ST_OACC_DATA, ST_OACC_HOST_DATA.
|
|
(decode_oacc_directive, parse_oacc_structured_block)
|
|
(parse_oacc_loop, is_oacc): New functions.
|
|
* parse.h (struct gfc_state_data): Add oacc_declare_clauses
|
|
member.
|
|
(is_oacc): New prototype.
|
|
* resolve.c (gfc_resolve_blocks, gfc_resolve_code): Handle
|
|
EXEC_OACC_PARALLEL_LOOP, EXEC_OACC_PARALLEL,
|
|
EXEC_OACC_KERNELS_LOOP, EXEC_OACC_KERNELS, EXEC_OACC_DATA,
|
|
EXEC_OACC_HOST_DATA, EXEC_OACC_LOOP, EXEC_OACC_UPDATE,
|
|
EXEC_OACC_WAIT, EXEC_OACC_CACHE, EXEC_OACC_ENTER_DATA,
|
|
EXEC_OACC_EXIT_DATA.
|
|
(resolve_codes): Call gfc_resolve_oacc_declare.
|
|
* scanner.c (openacc_flag, openacc_locus): New variables.
|
|
(skip_free_comments): Update for OpenACC. Move some code into...
|
|
(skip_omp_attribute): ... this new function.
|
|
(skip_oacc_attribute): New function.
|
|
(skip_fixed_comments, gfc_next_char_literal): Update for OpenACC.
|
|
* st.c (gfc_free_statement): Handle EXEC_OACC_PARALLEL_LOOP,
|
|
EXEC_OACC_PARALLEL, EXEC_OACC_KERNELS_LOOP, EXEC_OACC_KERNELS,
|
|
EXEC_OACC_DATA, EXEC_OACC_HOST_DATA, EXEC_OACC_LOOP,
|
|
EXEC_OACC_UPDATE, EXEC_OACC_WAIT, EXEC_OACC_CACHE,
|
|
EXEC_OACC_ENTER_DATA, EXEC_OACC_EXIT_DATA.
|
|
* trans-decl.c (gfc_generate_function_code): Update for OpenACC.
|
|
* trans-openmp.c: Include "gomp-constants.h".
|
|
(gfc_omp_finish_clause, gfc_trans_omp_clauses): Use GOMP_MAP_*
|
|
instead of OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
|
|
(gfc_trans_omp_clauses): Handle OMP_LIST_USE_DEVICE,
|
|
OMP_LIST_DEVICE_RESIDENT, OMP_LIST_CACHE, and OMP_MAP_FORCE_ALLOC,
|
|
OMP_MAP_FORCE_DEALLOC, OMP_MAP_FORCE_TO, OMP_MAP_FORCE_FROM,
|
|
OMP_MAP_FORCE_TOFROM, OMP_MAP_FORCE_PRESENT,
|
|
OMP_MAP_FORCE_DEVICEPTR, and gfc_omp_clauses' async, seq,
|
|
independent, wait_list, num_gangs_expr, num_workers_expr,
|
|
vector_length_expr, vector, vector_expr, worker, worker_expr,
|
|
gang, gang_expr members.
|
|
(gfc_trans_omp_do): Handle EXEC_OACC_LOOP.
|
|
(gfc_convert_expr_to_tree, gfc_trans_oacc_construct)
|
|
(gfc_trans_oacc_executable_directive)
|
|
(gfc_trans_oacc_wait_directive, gfc_trans_oacc_combined_directive)
|
|
(gfc_trans_oacc_declare, gfc_trans_oacc_directive): New functions.
|
|
* trans-stmt.c (gfc_trans_block_construct): Update for OpenACC.
|
|
* trans-stmt.h (gfc_trans_oacc_directive, gfc_trans_oacc_declare):
|
|
New prototypes.
|
|
* trans.c (tranc_code): Handle EXEC_OACC_CACHE, EXEC_OACC_WAIT,
|
|
EXEC_OACC_UPDATE, EXEC_OACC_LOOP, EXEC_OACC_HOST_DATA,
|
|
EXEC_OACC_DATA, EXEC_OACC_KERNELS, EXEC_OACC_KERNELS_LOOP,
|
|
EXEC_OACC_PARALLEL, EXEC_OACC_PARALLEL_LOOP, EXEC_OACC_ENTER_DATA,
|
|
EXEC_OACC_EXIT_DATA.
|
|
* gfortran.texi: Update for OpenACC.
|
|
* intrinsic.texi: Likewise.
|
|
* invoke.texi: Likewise.
|
|
|
|
2015-01-15 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/58023
|
|
* resolve.c (resolve_fl_derived0): Continue resolving next component
|
|
after error.
|
|
|
|
2015-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
|
|
|
PR fortran/61933
|
|
* io.c (gfc_match_inquire): Generate error if unit number in
|
|
inquire statement is a constant -1. All other values allowed.
|
|
* trans-io.c (gfc_trans_inquire): Delete dummy iostat variable.
|
|
(create_dummy_iostat): Delete function no longer used.
|
|
|
|
2015-01-13 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
PR fortran/64528
|
|
* trans-decl.c (create_function_arglist): Don't set TREE_READONLY
|
|
on dummy args with VALUE attribute.
|
|
|
|
2015-01-11 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/63733
|
|
* interface.c (gfc_extend_expr): Look for type-bound operators before
|
|
non-typebound ones.
|
|
|
|
2015-01-11 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/58023
|
|
* resolve.c (resolve_fl_derived0): Set error flag if problems with the
|
|
interface of a procedure-pointer component were detected.
|
|
|
|
2015-01-11 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/64508
|
|
* interface.c (compare_parameter): Interface check for
|
|
procedure-pointer component as actual argument.
|
|
|
|
2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
|
|
|
|
* gfortran.texi: Update for libgomp being renamed from "GNU OpenMP
|
|
Runtime Library" to "GNU Offloading and Multi Processing Runtime
|
|
Library".
|
|
* intrinsic.texi: Likewise.
|
|
|
|
2015-01-10 Tobias Burnus <burnus@net-b.de>
|
|
|
|
PR fortran/64522
|
|
* invoke.texi (Wline-truncation): Document new behaviour.
|
|
* lang.opt (Wline-truncation): Add Init(-1).
|
|
* options.c (gfc_post_options): If -Wline-truncation is unset,
|
|
enable it for free-form source files; for the latter, also use
|
|
-Werror=line-truncation, unless -Wno-error has been specified.
|
|
|
|
2015-01-09 Michael Collison <michael.collison@linaro.org>
|
|
|
|
* convert.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* cpp.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* decl.c: Ditto.
|
|
* f95.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* iresolve.c: Ditto.
|
|
* match.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* module.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* options.c: Ditto.
|
|
* target-memory.c: Include hash-set.h, vec.h,
|
|
double-int.h, input.h, alias.h, symtab.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* trans-array.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* trans.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* trans-common.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* trans-const.c: Ditto.
|
|
* trans-decl.c: Ditto.
|
|
* trans-expr.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* trans-intrinsic.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, fold-const.h,
|
|
wide-int.h, inchash.h and real.h due to flattening of tree.h.
|
|
* trans-io.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, options.h, fold-const.h,
|
|
wide-int.h, and inchash.h due to flattening of tree.h.
|
|
* trans-openmp.c: Ditto.
|
|
* trans-stmt.c: Ditto.
|
|
* trans-types.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
|
|
input.h, alias.h, symtab.h, fold-const.h,
|
|
wide-int.h, inchash.h and real.h due to flattening of tree.h.
|
|
|
|
2015-01-08 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* trans-decl.c (gfc_build_qualified_array): Fix coarray tokens
|
|
for module coarrays with -fcoarray=lib.
|
|
(get_proc_pointer_decl): As module variable, make only public
|
|
when not marked as private.
|
|
|
|
2015-01-05 Thomas Koenig <tkoenig@gcc.gnu.org>
|
|
|
|
PR fortran/47674
|
|
* dependency.h: Actually commit changes.
|
|
|
|
2015-01-05 Thomas Koenig <tkoenig@gcc.gnu.org>
|
|
|
|
PR fortran/47674
|
|
* dependency.c: Update copyright years.
|
|
(gfc_discard_nops): Add prototype.
|
|
* dependency.c (discard_nops): Rename to gfc_discard_nops,
|
|
make non-static.
|
|
(gfc_discard_nops): Use gfc_discard_nops.
|
|
(gfc_dep_difference): Likewise.
|
|
* frontend-passes.c Update copyright years.
|
|
(realloc_strings): New function. Add prototype.
|
|
(gfc_run_passes): Call realloc_strings.
|
|
(realloc_string_callback): New function.
|
|
(create_var): Add prototype. Handle case of a
|
|
scalar character variable.
|
|
(optimize_trim): Do not handle allocatable variables.
|
|
|
|
2015-01-05 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.
|
|
|
|
2015-01-02 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/57562
|
|
* expr.c (find_component_ref): Deal with extended types.
|
|
|
|
2015-01-02 Tobias Burnus <burnus@net-b.de>
|
|
|
|
* trans-decl.c (gfc_build_qualified_array): Fix coarray tokens
|
|
for module coarrays with -fcoarray=lib.
|
|
|
|
2015-01-02 Janus Weil <janus@gcc.gnu.org>
|
|
|
|
PR fortran/60507
|
|
* interface.c (is_procptr_result): New function to check if an
|
|
expression is a procedure-pointer result.
|
|
(compare_actual_formal): Use it.
|
|
^L
|
|
Copyright (C) 2015 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.
|