OSDN Git Service

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