OSDN Git Service

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