- 29 Jan, 2012 8 commits
-
-
burnus authored
PR fortran/41600 * expr.c (gfc_default_initializer): Convert the values if the type does not match. 2012-01-29 Tobias Burnus <burnus@net-b.de> PR fortran/41600 * gfortran.dg/default_initialization_6.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183682 138bc75d-0d04-0410-961f-82ee72b054a4
-
jb authored
2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> * module.c (pointer_info): Make true_name and module pointers rather than arrays, order pointers before other fields. (free_pi_tree): free true_name and module as well. (mio_read_string): Rename to read_string. (mio_write_string): Remove. (load_commons): Use read_string. (read_module): Use read_string rather than mio_internal_string. (write_blank_common): Call write_atom directly. (write_symbol): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183681 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/51972 * trans-array.c (structure_alloc_comps): Fix assignment of polymorphic components (polymorphic deep copying). 2012-01-29 Tobias Burnus <burnus@net-b.de> PR fortran/51972 * gfortran.dg/class_allocate_12.f90: Enable disabled test. * gfortran.dg/class_48.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183680 138bc75d-0d04-0410-961f-82ee72b054a4
-
jb authored
2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/51808 * decl.c (set_binding_label): Make binding_label argument const. (curr_binding_label): Constify. * gfortran.h (gfc_symbol): Constify binding_label. (gfc_common_head): Likewise. (get_iso_c_sym): Likewise. * match.c (gfc_match_name_C): Constify buffer argument. * match.h (gfc_match_name_C): Likewise. * resolve.c (set_name_and_label): Constify binding_label argument. (gfc_iso_c_sub_interface): Constify binding_label variable. * symbol.c (get_iso_c_sym): Constify binding_label argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183679 138bc75d-0d04-0410-961f-82ee72b054a4
-
jb authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183678 138bc75d-0d04-0410-961f-82ee72b054a4
-
jb authored
2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/51808 * decl.c (set_binding_label): Move prototype from match.h to here. (curr_binding_label): Make a pointer rather than static array. (build_sym): Check sym->binding_label pointer rather than array, update set_binding_label call, handle curr_binding_label changes. (set_binding_label): Handle new curr_binding_label, dest_label double ptr, and sym->binding_label. (verify_bind_c_sym): Handle sym->binding_label being a pointer. (set_verify_bind_c_sym): Check sym->binding_label pointer rather than array, update set_binding_label call. (gfc_match_bind_c_stmt): Handle curr_binding_label change. (match_procedure_decl): Update set_binding_label call. (gfc_match_bind_c): Change binding_label to pointer, update gfc_match_name_C call. * gfortran.h (GFC_MAX_BINDING_LABEL_LEN): Remove macro. (gfc_symbol): Make binding_label a pointer. (gfc_common_head): Likewise. * match.c (gfc_match_name_C): Heap allocate bind(C) name. * match.h (gfc_match_name_C): Change prototype argument. (set_binding_label): Move prototype to decl.c. * module.c (struct pointer_info): Make binding_label a pointer. (free_pi_tree): Free unused binding_label. (mio_read_string): New function. (mio_write_string): New function. (load_commons): Redo reading of binding_label. (read_module): Likewise. (write_common_0): Change to write empty string instead of name if no binding_label. (write_blank_common): Write empty string for binding label. (write_symbol): Change to write empty string instead of name if no binding_label. * resolve.c (gfc_iso_c_func_interface): Don't set binding_label. (set_name_and_label): Make binding_label double pointer, use asprintf. (gfc_iso_c_sub_interface): Make binding_label a pointer. (resolve_bind_c_comms): Handle cases if gfc_common_head->binding_label is NULL. (gfc_verify_binding_labels): sym->binding_label is a pointer. * symbol.c (gfc_free_symbol): Free binding_label. (gfc_new_symbol): Rely on XCNEW zero init for binding_label. (gen_special_c_interop_ptr): Don't set binding label. (generate_isocbinding_symbol): Insert binding_label into symbol table. (get_iso_c_sym): Use pointer assignment instead of strcpy. * trans-common.c (gfc_sym_mangled_common_id): Handle com->binding_label being a pointer. * trans-decl.c (gfc_sym_mangled_identifier): Handle sym->binding_label being a pointer. (gfc_sym_mangled_function_id): Likewise. testsuite ChangeLog 2012-01-29 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/51808 * gfortran.dg/module_md5_1.f90: Update MD5 sum. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183677 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/52038 * resolve.c (symbol_as): Remove unused, accidentally added function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183675 138bc75d-0d04-0410-961f-82ee72b054a4
-
gccadmin authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183674 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 28 Jan, 2012 7 commits
-
-
gerald authored
(LINK_SSP_SPEC): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183670 138bc75d-0d04-0410-961f-82ee72b054a4
-
danglin authored
* config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export stubs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183669 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/51972 * trans-stmt.c (gfc_trans_allocate): Properly check whether we have a BT_CLASS which needs to be memset. 2012-01-28 Tobias Burnus <burnus@net-b.de> PR fortran/51972 * gfortran.dg/class_allocate_12.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183668 138bc75d-0d04-0410-961f-82ee72b054a4
-
ebotcazou authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183667 138bc75d-0d04-0410-961f-82ee72b054a4
-
sandra authored
gcc/ * doc/invoke.texi: Correct hyphenation of "floating point", "double precision", and related terminology throughout the file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183663 138bc75d-0d04-0410-961f-82ee72b054a4
-
jakub authored
* config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use arm_general_register_operand predicate for operand 2 instead of register_operand. * gcc.target/arm/pr52006.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183661 138bc75d-0d04-0410-961f-82ee72b054a4
-
gccadmin authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183660 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 27 Jan, 2012 25 commits
-
-
ian authored
PR go/47656 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define. * builtins.c (expand_builtin_init_trampoline): Add onstack parameter. Change caller. (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE. * tree.c (build_common_builtin_nodes): Declare __builtin_init_heap_trampoline. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183650 138bc75d-0d04-0410-961f-82ee72b054a4
-
aldyh authored
* gcc.dg/lto/trans-mem.h: New file. * gcc.dg/lto/trans-mem-2_0.c: Include it. * gcc.dg/lto/trans-mem-1_1.c: Same. * gcc.dg/lto/trans-mem-4_1.c: Same. * gcc.dg/lto/trans-mem-3_1.c: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183648 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/52022 * trans-expr.c (gfc_conv_procedure_call): Fix passing of functions, which return allocatables. 2012-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/52022 * gfortran.dg/dummy_procedure_7.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183643 138bc75d-0d04-0410-961f-82ee72b054a4
-
schwab authored
*-*-aix* alpha*-*-osf* alpha*-*-*vms*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183642 138bc75d-0d04-0410-961f-82ee72b054a4
-
gjl authored
tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global. * config/avr/avr.c: Ditto. (avr_regnames): Remove because unused. * config/avr/avr.md (*cpse.ne): New peephole. (*cpse.eq): New peephole from former cpse peepholes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183638 138bc75d-0d04-0410-961f-82ee72b054a4
-
jakub authored
* pt.c (tsubst_pack_expansion): Delete and restore local_specialization whenever need_local_specialization, not just when saved_local_specializations is non-NULL. * g++.dg/other/gc5.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183637 138bc75d-0d04-0410-961f-82ee72b054a4
-
eager authored
test after pcmp instruction. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183635 138bc75d-0d04-0410-961f-82ee72b054a4
-
jsm28 authored
* gcc.pot: Regenerate. libcpp/po: * cpplib.pot: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183634 138bc75d-0d04-0410-961f-82ee72b054a4
-
rguenth authored
PR tree-optimization/52020 * tree-sra.c (sra_modify_assign): Do not transform clobbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183633 138bc75d-0d04-0410-961f-82ee72b054a4
-
rguenth authored
* ipa-pure-const.c (check_stmt): Clobbers do not make a function non-const/pure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183632 138bc75d-0d04-0410-961f-82ee72b054a4
-
rguenth authored
PR tree-optimization/50444 * tree-sra.c (build_ref_for_offset): Properly adjust the MEM_REF type for unaligned accesses. * gcc.dg/torture/pr50444.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183630 138bc75d-0d04-0410-961f-82ee72b054a4
-
rguenth authored
PR tree-optimization/50444 * expr.c (mem_ref_refers_to_non_mem_p): New function. (expand_assignment): Use it. Properly handle misaligned bases when expanding stores to component references. (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and refactor that case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183629 138bc75d-0d04-0410-961f-82ee72b054a4
-
abel authored
* tree-parloops.c: Likewise. * sel-sched-ir.h: Likewise. * tree-data-ref.h: Likewise. * tree-predcom.c: Likewise. * Makefile.in: Likewise. * params.def: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183627 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/52016 * resolve.c (resolve_formal_arglist): Fix elemental constraint checks for polymorphic dummies also for pointers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183625 138bc75d-0d04-0410-961f-82ee72b054a4
-
abel authored
* Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H). * tree-data-ref.h (find_data_references_in_loop): Remove declaration. * tree-data-ref.c (find_data_references_in_loop): Make static. (compute_all_dependences): Change return type to bool. Bail out for too many datarefs in a loop. Move the hunk resetting the data dependences vector from ... (compute_data_dependences_for_loop): ... here. Account for compute_all_dependences returning false. (compute_data_dependences_for_bb): Likewise. * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param. * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183624 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/51970 PR fortran/51977 * primary.c (gfc_match_varspec. gfc_match_rvalue): Set handle array spec for BT_CLASS. * expr.c (gfc_get_variable_expr, gfc_lval_expr_from_sym) * frontend-passes.c (create_var): Ditto. * resolve.c (resolve_actual_arglist, resolve_assoc_var): Ditto. * trans-decl.c (gfc_trans_deferred_vars): Use class_pointer instead of attr.pointer. (gfc_generate_function_code): Use CLASS_DATA (sym) for BT_CLASS. * trans-intrinsic.c (conv_intrinsic_move_alloc): Move assert. * trans-stmt.c (trans_associate_var): Ask for the descriptor. 2012-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/51970 PR fortran/51977 * gfortran.dg/move_alloc_13.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183622 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/51953 * match.c (gfc_match_allocate): Allow more than allocate object with SOURCE=. 2012-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/51953 * gfortran.dg/allocate_alloc_opt_13.f90: New. * gfortran.dg/allocate_alloc_opt_4.f90: Add -std=f2003 and change dg-error string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183621 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
PR fortran/52016 * resolve.c (resolve_formal_arglist): Fix elemental constraint checks for polymorphic dummies. 2012-01-27 Tobias Burnus <burnus@net-b.de> PR fortran/52016 * gfortran.dg/elemental_args_check_5.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183620 138bc75d-0d04-0410-961f-82ee72b054a4
-
rguenth authored
PR middle-end/51959 * expr.c (store_field): Use the alias-set of the scratch memory for storing to it. * g++.dg/torture/pr51959.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183616 138bc75d-0d04-0410-961f-82ee72b054a4
-
vries authored
PR tree-optimization/51990 * gcc.dg/pr51990.c: New test. * gcc.dg/pr51990-2.c: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183615 138bc75d-0d04-0410-961f-82ee72b054a4
-
vries authored
PR tree-optimization/51990 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle WITH_SIZE_EXPR. * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183614 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
Tobias Burnus <burnus@gcc.gnu.org> PR fortran/48705 PR fortran/51870 PR fortran/51943 PR fortran/51946 * trans-array.c (gfc_array_init_size): Add two extra arguments to convey the dynamic element size of a calls object and to return the number of elements that have been allocated. (gfc_array_allocate): Add the same arguments and use them to call gfc_array_init_size. Before the allocation dereference the data pointer, if necessary. Set the allocated array to zero if the class element size or expr3 are non-null. * trans-expr.c (gfc_conv_class_to_class): Give this function global scope. (get_class_array_ref): New function. (gfc_copy_class_to_class): New function. * trans-array.h : Update prototype for gfc_array_allocate. * trans-stmt.c (gfc_trans_allocate): For non-variable class STATUS expressions extract the class object and the dynamic element size. Use the latter to call gfc_array_allocate and the former for setting the vptr and, via gfc_copy_class_to_clasfc_cs, to copy to the allocated data. * trans.h : Prototypes for gfc_get_class_array_ref, gfc_copy_class_to_class and gfc_conv_class_to_class. 2012-01-27 Paul Thomas <pault@gcc.gnu.org> Tobias Burnus <burnus@gcc.gnu.org> PR fortran/48705 * gfortran.dg/class_allocate_11.f03: New. PR fortran/51870 PR fortran/51943 PR fortran/51946 * gfortran.dg/class_allocate_7.f03: New. * gfortran.dg/class_allocate_8.f03: New. * gfortran.dg/class_allocate_9.f03: New. * gfortran.dg/class_allocate_10.f03: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183613 138bc75d-0d04-0410-961f-82ee72b054a4
-
ebotcazou authored
an alignment on fields of the RETURN type built for the CICO mechanism. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183611 138bc75d-0d04-0410-961f-82ee72b054a4
-
ebotcazou authored
a call to a function that returns an unconstrained type with default discriminant. Similarly, avoid doing the conversion to the nominal git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183610 138bc75d-0d04-0410-961f-82ee72b054a4
-
ebotcazou authored
* gcc-interface/decl.c (is_variable_size): Rename to... (type_has_variable_size): ...this. (adjust_packed): Adjust to above renaming. (gnat_to_gnu_field): Set DECL_ALIASED_P on the field. (field_is_artificial): New predicate. (field_is_aliased): Likewise. (field_has_self_size): Likewise. (field_has_variable_size): Likewise. (components_to_record): Record information for the final layout during the first pass on fields. If there is an aliased field placed after a field whose length depends on discriminants, put all the fields of the latter sort, last. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183609 138bc75d-0d04-0410-961f-82ee72b054a4
-