OSDN Git Service

1c29ff473b3813d7daf7a0e48dc4e58c3839850b
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
2
3         PR fortran/42804
4         * resolve.c (extract_compcall_passed_object): Set locus for
5         passed-object argument.
6         (extract_ppc_passed_object): Set locus and correctly remove PPC
7         reference.
8
9 2010-01-19  Paul Thomas  <pault@gcc.gnu.org>
10
11         PR fortran/42783
12         * trans-decl.c (add_argument_checking): Do not use the backend
13         decl directly to test for the presence of an optional dummy
14         argument.  Use gfc_conv_expr_present, remembering to set the
15         symbol referenced.
16
17         PR fortran/42772
18         * trans-decl.c (gfc_generate_function_code): Small white space
19         changes. If 'recurcheckvar' is NULL do not try to reset it.
20
21 2010-01-19  Janus Weil  <janus@gcc.gnu.org>
22
23         PR fortran/42545
24         * resolve.c (resolve_fl_derived): Set the accessibility of the parent
25         component for extended types.
26         * symbol.c (gfc_find_component): Remove a wrongly-worded error message
27         and take care of parent component accessibility.
28
29 2010-01-17  Janus Weil  <janus@gcc.gnu.org>
30
31         PR fortran/42677
32         * gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
33         * interface.c (check_interface1): Move a warning message here from
34         resolve_fl_procedure.
35         (check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
36         * module.c (read_module): Remove call to gfc_check_interfaces, since
37         this comes too early here.
38         * resolve.c (resolve_fl_procedure): Move warning message to
39         check_interface1.
40
41 2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
42
43         PR fortran/42684
44         * interface.c (check_interface1): Pass symbol name rather than NULL to
45         gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
46         trap MULL.
47         * resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
48         than NULL to gfc_compare_interfaces.
49
50 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
51
52         PR fortran/41478
53         * trans-array.c (duplicate_allocatable):  Static version of
54         gfc_duplicate_allocatable with provision to handle scalar
55         components. New boolean argument to switch off call to malloc
56         if true.
57         (gfc_duplicate_allocatable): New function to call above with
58         new argument false.
59         (gfc_copy_allocatable_data): New function to call above with
60         new argument true.
61         (structure_alloc_comps): Do not apply indirect reference to
62         scalar pointers. Add new section to copy allocatable components
63         of arrays. Extend copying of allocatable components to include
64         scalars.
65         (gfc_copy_only_alloc_comp): New function to copy allocatable
66         component derived types, without allocating the base structure.
67         * trans-array.h : Add primitive for gfc_copy_allocatable_data.
68         Add primitive for gfc_copy_only_alloc_comp.
69         * trans-expr.c (gfc_conv_procedure_call): After calls to
70         transformational functions with results that are derived types
71         with allocatable components, copy the components in the result.
72         (gfc_trans_arrayfunc_assign): Deallocate allocatable components
73         of lhs derived types before allocation.
74         
75 2010-01-14  Paul Thomas  <pault@gcc.gnu.org>
76
77         PR fortran/42481
78         * module.c (load_generic_interfaces): If a procedure that is
79         use associated but not generic is given an interface that
80         includes itself, then make it generic.
81
82 2010-01-11  Joseph Myers  <joseph@codesourcery.com>  
83             Shujing Zhao  <pearly.zhao@oracle.com>
84
85         PR translation/42469
86         * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
87         finit-logical=, finit-real=, fmax-array-constructor=): Use tab
88         character between option name and help text.
89
90 2010-01-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
91
92         PR fortran/20923
93         PR fortran/32489
94         * trans-array.c (gfc_conv_array_initializer): Change call to
95         gfc_error_now to call to gfc_fatal_error.
96         * array.c (count_elements): Whitespace. (extract_element): Whitespace.
97         (is_constant_element): Changed name from constant_element.
98         (gfc_constant_ac): Only use expand_construuctor for expression
99         types of EXPR_ARRAY.  If expression type is EXPR_CONSTANT, no need to
100         call gfc_is_constant_expr.
101         * expr.c (gfc_reduce_init_expr): Adjust conditionals and delete error
102         message.
103         * resolve.c (gfc_is_expandable_expr): New function that determiners if
104         array expressions should have their constructors expanded.
105         (gfc_resolve_expr): Use new function to determine whether or not to call
106         gfc_expand_constructor.
107
108 2010-01-09  Tobias Burnus  <burnus@net-b.de>
109
110         PR fortran/41298
111         * trans-expr.c (gfc_trans_structure_assign): Handle
112         c_null_(fun)ptr.
113         * symbol.c (gen_special_c_interop_ptr): Add NULL_EXPR
114         to the constructor for c_null_(fun)ptr.
115         * resolve.c (resolve_structure_cons): Add special case
116         for c_null_(fun)ptr.
117
118 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
119
120         * gfortranspec.c (lang_specific_driver): Update copyright notice
121         dates.
122
123 2010-01-08  Tobias Burnus  <burnus@net-b.de>
124
125         PR/fortran 25829
126         * symbol.c (check_conflict, gfc_copy_attr): Add
127         ASYNCHRONOUS support.
128         (gfc_add_asynchronous): New function.
129         * decl.c (match_attr_spec): Add ASYNCHRONOUS support.
130         (gfc_match_asynchronous): New function.
131         * dump-parse-tree.c (show_attr): Add ASYNCHRONOUS support.
132         * gfortran.h (symbol_attribute): New ASYNCHRONOUS bit.
133         (gfc_add_asynchronous): New Prototype.
134         * module.c (ab_attribute, mio_symbol_attribute): Add
135         ASYNCHRONOUS support.
136         * resolve.c (was_declared): Ditto.
137         * match.h (gfc_match_asynchronous): New prototype.
138         * parse.c (decode_specification_statement,decode_statement):
139         Add ASYNCHRONOUS support.
140
141 2010-01-07  Tobias Burnus  <burnus@net-b.de>
142
143         PR fortran/42597
144         * trans-decl.c (get_proc_pointer_decl): Fix call to
145         gfc_conv_initializer for array-valued proc-pointer funcs.
146
147 2010-01-07  Tobias Burnus  <burnus@net-b.de>
148
149         PR fortran/41872
150         * trans-decl.c (gfc_trans_deferred_vars): Don't initialize
151         allocatable scalars with SAVE attribute.
152
153 2010-01-05  Tobias Burnus  <burnus@net-b.de>
154
155         PR fortran/42517
156         * options.c (gfc_post_options): Set -frecursion
157         when -fopenmp is used.
158
159 2010-01-05  Tobias Burnus  <burnus@net-b.de>
160
161         PR fortran/41872
162         * trans-expr.c (gfc_conv_procedure_call): Nullify
163         return value for allocatable-scalar character functions.
164
165 2010-01-04  Tobias Burnus  <burnus@net-b.de>
166
167         PR fortran/36161
168         * error.c (error_printf, gfc_warning, gfc_notify_std,
169         gfc_warning_now, gfc_error, gfc_error_now,
170         gfc_fatal_error): Change argument name from nocmsgid to
171         gmsgid to enable (x)gettext's % checking.
172
173 2010-01-04  Tobias Burnus  <burnus@net-b.de>
174         
175         * trans-decl.c (gfc_trans_deferred_vars): Fix spelling.
176
177 2010-01-04  Tobias Burnus  <burnus@net-b.de>
178
179         PR fortran/41872
180         * trans-expr.c (gfc_conv_procedure_call): Add indirect ref
181         for functions returning allocatable scalars.
182         * trans-stmt.c (gfc_trans_allocate): Emmit error when
183         reallocating an allocatable scalar.
184         * trans.c (gfc_allocate_with_status): Fix pseudocode syntax
185         in comment.
186         * trans-decl.c (gfc_trans_deferred_vars): Nullify local
187         allocatable scalars.
188         (gfc_generate_function_code): Nullify result variable for
189         allocatable scalars.
190         
191         PR fortran/40849
192         * module.c (gfc_use_module): Fix warning string to allow
193         for translation.
194
195         PR fortran/42517
196         * invoke.texi (-fcheck=recursion): Mention that the checking
197         is also disabled for -frecursive.
198         * trans-decl.c (gfc_generate_function_code): Disable
199         -fcheck=recursion when -frecursive is used.
200
201         * intrinsic.texi (iso_c_binding): Improve wording.
202
203 \f
204 Copyright (C) 2010 Free Software Foundation, Inc.
205
206 Copying and distribution of this file, with or without modification,
207 are permitted in any medium without royalty provided the copyright
208 notice and this notice are preserved.