OSDN Git Service

a31c8ace3df4d0b01f39383ac77bc78a5c340d20
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2007-01-08  Richard Guenther  <rguenther@suse.de>
2
3         * trans-io.c (transfer_array_desc): Use build_int_cst instead
4         of build_int_cstu.
5
6 2007-01-08  Roger Sayle  <roger@eyesopen.com>
7
8         * trans-array.c (constant_array_constructor_p): New function to
9         determine whether an array constructor consists only of constant
10         elements, and if so return it's size.
11         (gfc_build_constant_array_constructor): Construct a statically
12         initialized gfortran array for a given EXPR_ARRAY.
13         (gfc_trans_constant_array_constructor): Efficiently scalarize
14         a constant array constructor.
15         (gfc_trans_array_constructor):  Tidy up use of CONST_STRING.
16         Special case scalarization of constant array constructors, all of
17         whose elements are specified, using constant_array_constructor_p 
18         and gfc_trans_constant_array_constructor.
19         (gfc_conv_scalarized_array_ref): Check whetger info->offset is zero
20         before adding it to index, to avoid creating a NON_LVALUE_EXPR.
21
22 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
23
24         gfortran.texi: Fix typos.
25
26 2007-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
27
28         * decl.c, dump-parse-tree.c, error.c, data.c, expr.c, dependency.c,
29         convert.c:  Update Copyright dates.  Fix whitespace.
30
31 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
32
33         * data.c (gfc_assign_data_value): Fix whitespace.
34
35 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
36
37         * trans-array.c (gfc_trans_create_temp_array, gfc_array_init_size):
38         Commentary typo fix.
39
40 2007-01-07  Bernhard Fischer  <aldot@gcc.gnu.org>
41
42         PR fortran/27698
43         * match.c (gfc_match_name): Print diagnostics for invalid
44         character in names.
45
46 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
47
48         * array.c: Fix whitespace in comment table.
49
50 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
51
52         * array.c, bbt.c, check.c:  Update copyright years.  Whitespace.
53
54 2007-01-06  Steven G. Kargl  <kargl@gcc.gnu.org>
55
56         * arith.c: Update copyright years.  Whitespace.
57
58 2007-01-05  Roger Sayle  <roger@eyesopen.com>
59
60         * trans-expr.c (gfc_trans_assignment_1): New subroutine to scalarize
61         array assignments split out from gfc_trans_assignment.
62         (gfc_trans_array_copy): New function to implement array to array
63         copies via calls to __builtin_memcpy.
64         (copyable_array_p): New helper function to identify an array of
65         simple/POD types, that may be copied/assigned using memcpy.
66         (gfc_trans_assignment): Use gfc_trans_array_copy to handle simple
67         whole array assignments considered suitable by copyable_array_p.
68         Invoke gfc_trans_assignment_1 to perform the fallback scalarization.
69
70 2007-01-05  Roger Sayle  <roger@eyesopen.com>
71
72         * trans-array.c (gfc_trans_array_constructor_value): Make the
73         static const "data" array as TREE_READONLY.
74         * trans-stmt.c (gfc_trans_character_select): Likewise.
75
76 2007-01-05  Roger Sayle  <roger@eyesopen.com>
77
78         * trans-array.c (gfc_conv_loop_setup):  Test whether the loop
79         stride is one, to avoid fold_build2 introducing a useless
80         NON_LVALUE_EXPR node.
81
82 2007-01-05  Tobias Burnus  <burnus@net-b.de>
83
84         * symbol.c (check_conflict): Fix error message.
85
86 2007-01-05  Paul Thomas  <pault@gcc.gnu.org>
87
88         PR fortran/23232
89         * decl.c (gfc_in_match_data, gfc_set_in_match_data): New
90         functions to signal that a DATA statement is being matched.
91         (gfc_match_data): Call gfc_set_in_match_data on entry and on
92         exit.
93         * gfortran.h : Add prototypes for above.
94         * expr.c (check_init_expr): Avoid check on parameter or
95         variable if gfc_in_match_data is true.
96         (gfc_match_init_expr): Do not call error on non-reduction of
97         expression if gfc_in_match_data is true.
98
99         PR fortran/27996
100         PR fortran/27998
101         * decl.c (gfc_set_constant_character_len): Add boolean arg to
102         flag array constructor resolution.  Warn if string is being
103         truncated.  Standard dependent error if string is padded. Set
104         new arg to false for all three calls to
105         gfc_set_constant_character_len.
106         * match.h : Add boolean arg to prototype for
107         gfc_set_constant_character_len.
108         * gfortran.h : Add warn_character_truncation to gfc_options.
109         * options.c (set_Wall): Set warn_character_truncation if -Wall
110         is set.
111         * resolve.c (resolve_code): Warn if rhs string in character
112         assignment has to be truncated.
113         * array.c (gfc_resolve_character_array_constructor): Set new
114         argument to true for call to gfc_set_constant_character_len.
115
116 2007-01-05  Tobias Burnus  <burnus@net-b.de>
117
118         PR fortran/29624
119         * interface.c (compare_parameter_intent): New function.
120           (check_intents): Support pointer intents.
121         * symbol.c (check_conflict): Support pointer intents,
122           better conflict_std message.
123         * expr.c (gfc_check_assign,gfc_check_pointer_assign):
124           Support pointer intents.
125         * resolve.c (resolve_deallocate_expr,resolve_allocate_expr):
126           Support pointer intents.
127
128 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
129
130         PR 30371
131         * check.c (gfc_check_kill_sub): Add checks for non-scalar
132         arguments.
133
134 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
135
136         * intrinsic.texi: Minor cleanup, reflowing overlong
137         paragraphs, and correcting whitespace.
138
139 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
140
141         * intrinsic.texi (LBOUND): Add documentation.
142         (LGE): Add documentation.
143         (LGT): Add documentation.
144         (LINK): Add documentation.
145         (LLE): Add documentation.
146         (LLT): Add documentation.
147         (LNBLNK): Add documentation.
148         (UBOUND): Add documentation.
149         (UNLINK): Add documentation.
150
151 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
152
153         * intrinsic.texi (IAND): Clarify argument specifications.
154         (IBCLR): Add documentation.
155         (IBITS): Add documentation.
156         (IBSET): Add documentation.
157         (IEOR): Add documentation.
158         (IERRNO): Add documentation.
159         (INDEX): Add documentation.
160         (IOR): Add documentation.
161         (ISHFT): Add documentation.
162         (ISHFTC): Add documentation.
163         (KILL): Add documentation.
164         (LEN_TRIM): Add documentation.
165
166 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
167
168         PR 30235
169         * interface.c (compare_actual_formal): check for
170         alternate returns when iterating over non-present
171         arguments.
172
173 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
174
175         * invoke.texi: Update manpage copyright to include 2007.
176
177 2007-01-04  Brooks Moses  <brooks.moses@codesourcery.com>
178
179         * gfortran.texi: Update copyright to include 2007.
180         * intrinsic.texi: Update copyright to include 2007.
181         * invoke.texi: Update copyright to include 2007.
182
183 2007-01-02  Tobias Burnus  <burnus@net-b.de>
184             Jakub Jelinek  <jakub@redhat.com>
185
186         PR fortran/30276
187         * scanner.c (open_included_file): Revert patch.
188           (gfc_open_included_file): Support absolute pathnames.
189           (gfc_open_intrinsic_module): Support absolute pathnames.
190
191 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
192
193         * gfortran.texi (GNU Fortran and GCC): Rewrite
194
195 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
196
197         * gfortran.texi (Introduction): Lower "Part I:
198         Introduction" to a chapter, renumber Parts II and III to
199         Parts I and II.
200         * intrinsic.texi (Introduction): Rename to "Introduction
201         to Intrinsics" to avoid conflict with the new chapter.
202
203 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
204
205         * intrinsic.texi (Introduction): Rewrite first paragraph.
206
207 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
208
209         * invoke.texi (OpenMP): Added index entry.
210         * gfortran.texi (title page): Removed erroneous '*'.
211
212 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
213
214         * gfortran.texi (GFORTRAN_DEFAULT_RECL): Added units
215         to description.
216         (Extensions): Miscellaneous minor rewriting and copyediting.
217         (BOZ-literal constants): Renamed from Hexadecimal constants.
218         (Hollerith constants support): Added explanation and 
219         suggestions for standard-conforming modern equivalents.
220
221 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
222
223         * intrinsic.texi: Improvements to index entries; change
224         @findex entries to @cindex entries.
225         * invoke.texi: Standardize and improve index entries.
226         * gfortran.texi: Fix @code in one index entry.
227
228 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
229
230         * invoke.texi: Change @code-type macros to appropriate
231         variants (@command, @option, etc.)
232         * gfortran.texi: Same.
233
234 2007-01-03  Brooks Moses  <brooks.moses@codesourcery.com>
235
236         * intrinsic.texi: Various minor cleanups.
237
238 2007-01-02  Steven G. Kargl  <kargls@comcast.net>
239
240         * trans-intrinsic.c (gfc_conv_intrinsic_ibits): Fix call to
241         build_int_cst.
242
243 2007-01-02  Tobias Burnus  <burnus@net-b.de>
244
245         PR fortran/30276
246         * scanner.c (open_included_file): Support full-path filenames.
247
248 2007-01-02  Paul Thomas  <pault@gcc.gnu.org>
249
250         PR fortran/20896
251         * interface.c (check_sym_interfaces): Remove call to
252         resolve_global_procedure.
253         gfortran.h : Remove prototype for resolve_global_procedure.
254         resolve.c (resolve_global_procedure): Add static attribute
255         to function declaration.
256
257 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
258
259         * ChangeLog: Copy to ...
260         * ChangeLog-2006: here.