OSDN Git Service

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