* f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
[platform/upstream/gcc.git] / gcc / fortran / ChangeLog
1 2008-04-21  Steve Ellcey  <sje@cup.hp.com>
2
3         * f95-lang.c (gfc_init_decl_processing): use ptr_mode instead of Pmode.
4
5 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
6
7         PR fortran/35019
8         * gfortranspec.c (lookup_option): Properly handle separated arguments
9         in -J option, print missing argument message when necessary.
10
11 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
12
13         PR fortran/35882
14         * scanner.c (skip_fixed_comments): Update continue_line when comment is
15         detected. (gfc_next_char_literal): Likewise.
16
17 2008-04-19  Paul Thomas  <pault@gcc.gnu.org>
18
19         PR fortran/35944
20         PR fortran/35946
21         PR fortran/35947
22         * trans_array.c (gfc_trans_array_constructor): Temporarily
23         realign loop, if loop->from is not zero, before creating
24         the temporary array and provide an offset.
25
26         PR fortran/35959
27         * trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
28         and allow for NULL body.  Change all references from
29         init_default_dt to gfc_init_default_dt.
30         * trans.h : Add prototype for gfc_init_default_dt.
31         * trans-array.c (gfc_trans_deferred_vars): After nullification
32         call gfc_init_default_dt for derived types with allocatable
33         components.
34
35 2008-04-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
36
37         PR fortran/35892
38         * trans-common.c (create_common): Revert patch causing regression.
39
40 2008-04-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
41
42         PR fortran/35724
43         * iresolve.c (gfc_resolve_eoshift): Check for NULL symtree in test for
44         optional argument attribute.
45         
46 2008-04-16  Paul Thomas  <pault@gcc.gnu.org>
47
48         PR fortran/35932
49         * trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
50         is not used, the argument must be converted.
51
52 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
53
54         PR target/35662
55         * f95-lang.c (gfc_init_builtin_functions): Make sure
56         BUILT_IN_SINCOS{,F,L} types aren't varargs.
57
58 2008-04-15  Paul Thomas  <pault@gcc.gnu.org>
59
60         PR fortran/35864
61         * expr.c (scalarize_intrinsic_call): Reorder identification of
62         array argument so that if one is not found a segfault does not
63         occur.  Return FAILURE if all scalar arguments.
64
65 2008-04-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
66             Tobias Burnus  <burnus@net-b.de>
67
68         PR fortran/35882
69         * options.c (gfc_init_options): Set the default maximum continuation
70         lines to 255 for both free and fixed form source for warnings.
71         (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and
72         the -std=f95 free form max continuations to 39 for warnings.
73         * scanner.c (gfc_next_char_literal): Adjust the current_line number only
74         if it is less than the current locus.
75
76 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
77
78         PR fortran/25829 28655
79         * io.c (io_tag): Add new tags for decimal, encoding, asynchronous,
80         round, sign, and id. (match_open_element): Match new tags.
81         (gfc_resolve_open): Resolve new tags. (gfc_match_open): Enable encoding
82         for DEFAULT only. Update error messages. (match_dt_element): Fix match
83         tag for asynchronous. Update error messages. (gfc_free_inquire): Free
84         new expressions. (match_inquire_element): Match new tags.
85         (gfc_match_inquire): Add constraint for ID and PENDING.
86         (gfc_resolve_inquire): Resolve new tags.
87         * trans-io.c (gfc_trans_inquire): Clean up whitespace and fix setting of
88         mask for ID parameter.
89         * ioparm.def: Fix order of parameters for pending, round, and sign.
90         NOTE: These must line up with the definitions in libgfortran/io/io.h. or
91         things don't work.
92
93 2008-04-06  Paul Thomas  <pault@gcc.gnu.org>
94
95         PR fortran/35780
96         * expr.c (scalarize_intrinsic_call): Identify which argument is
97         an array and use that as the template.
98         (check_init_expr): Remove tests that first argument is an array
99         in the call to scalarize_intrinsic_call.
100
101 2008-04-06  Tobias Schlüter  <tobi@gcc.gnu.org>
102
103         PR fortran/35832
104         * io.c (io_tag): Add field 'value'.  Split 'spec' field in
105         existing io_tags.
106         (match_etag, match_vtag, match_ltag): Split parsing in two steps
107         to give better error messages.
108
109 2008-04-06  Tobias Burnus  <burnus@net-b.de>
110
111         * io.c (check_io_constraints): Add constrains. ID= requires
112         asynchronous= and asynchronous= must be init expression.
113
114 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
115
116         * f95-lang.c: Set LANG_HOOKS_NAME to "GNU Fortran".
117
118 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
119
120         * dump-parse-tree.c: Use fprintf, fputs and fputc instead of
121         gfc_status and gfc_status_char. Remove gfc_ prefix of the gfc_show_*
122         functions and make them static. Add new gfc_dump_parse_tree
123         function.
124         * gfortran.h (gfc_option_t): Rename verbose into dump_parse_tree.
125         (gfc_status, gfc_status_char): Delete prototypes.
126         * error.c (gfc_status, gfc_status_char): Remove functions.
127         * scanner.c (gfc_new_file): Use printf instead of gfc_status.
128         * options.c (gfc_init_options): Rename verbose into dump_parse_tree.
129         (gfc_handle_module_path_options): Use gfc_fatal_error instead of
130         gfc_status and exit.
131         (gfc_handle_option): Rename verbose into dump_parse_tree.
132         * parse.c (gfc_parse_file): Use gfc_dump_parse_tree.
133
134 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
135             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
136
137         PR fortran/25829 28655
138         * dump-parse-tree.c (gfc_show_code_node): Show new I/O parameters.
139         * gfortran.h (gfc_statement): Add ST_WAIT enumerator.
140         (gfc_open): Add pointers for decimal, encoding, round, sign,
141         asynchronous. (gfc_inquire): Add pointers for asynchronous, decimal,
142         encoding, pending, round, sign, size, id.
143         (gfc_wait): New typedef struct. (gfc_dt): Add pointers for id, pos,
144         asynchronous, blank, decimal, delim, pad, round, sign.
145         (gfc_exec_op): Add EXEC_WAIT enumerator. (gfc_code): Add pointer for
146         wait. (gfc_free_wait), (gfc_resolve_wait): New function prototypes.
147         * trans-stmt.h (gfc_trans_wait): New function prototype.
148         * trans.c (gfc_trans_code): Add case for EXEC_WAIT.
149         * io.c (io_tag): Add new tags for DECIMAL, ENCODING, ROUND, SIGN,
150         ASYCHRONOUS, ID. (match_open_element): Add matchers for new tags.
151         (gfc_free_open): Free new pointers. (gfc_resolve_open): Resolve new
152         tags. (gfc_resolve_open): Remove comment around check for allowed
153         values and ASYNCHRONOUS, update it.  Likewise for DECIMAL, ENCODING,
154         ROUND, and SIGN. (match_dt_element): Add matching for new tags.
155         (gfc_free_wait): New function. (gfc_resolve_wait): New function.
156         (match_wait_element): New function. (gfc_match_wait): New function.
157         * resolve.c (gfc_resolve_blocks): Add case for EXEC_WAIT.
158         (resolve_code): Add case for EXEC_WAIT. 
159         * st.c (gfc_free_statement): Add case for EXEC_WAIT.
160         * trans-io.c (ioparam_type): Add IOPARM_ptype_wait. (gfc_st_parameter):
161         Add "wait" entry. (iocall): Add IOCALL_WAIT enumerator.
162         (gfc_build_io_library_fndecls): Add function declaration for st_wait.
163         (gfc_trans_open): Add mask bits for new I/O tags.
164         (gfc_trans_inquire): Add mask bits for new I/O tags.
165         (gfc_trans_wait): New translation function.
166         (build_dt): Add mask bits for new I/O tags.
167         * match.c (gfc_match_if) Add matcher for "wait".
168         * match.h (gfc_match_wait): Prototype for new function.
169         * ioparm.def: Add new I/O parameter definitions.
170         * parse.c (decode_statement): Add match for "wait" statement.
171         (next_statement): Add case for ST_WAIT. (gfc_ascii_statement): Same.
172
173 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
174
175         PR fortran/35786
176         * openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
177         isn't a variable.
178
179 2008-04-03  Tom Tromey  <tromey@redhat.com>
180
181         * Make-lang.in (fortran_OBJS): New variable.
182
183 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
184
185         * f95-lang.c (insert_block): Kill.
186
187 2008-04-01  George Helffrich <george@gcc.gnu.org>
188
189         * trans-common.c (create_common):  Add decl to function
190         chain to preserve identifier scope in debug output.
191
192 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
193
194         * gfortran.texi: Include gpl_v3.texi instead of gpl.texi
195         * Make-lang.in (GFORTRAN_TEXI): Include gpl_v3.texi instead of
196         gpl.texi.
197
198 2008-03-30  Paul Thomas  <pault@gcc.gnu.org>
199
200         PR fortran/35740
201         * resolve.c (resolve_function, resolve_call): If the procedure
202         is elemental do not look for noncopying intrinsics.
203
204 2008-03-29  Paul Thomas  <pault@gcc.gnu.org>
205
206         PR fortran/35698
207         * trans-array.c (gfc_array_init_size): Set 'size' zero if
208         negative in one dimension.
209
210         PR fortran/35702
211         * trans-expr.c (gfc_trans_string_copy): Only assign a char
212         directly if the lhs and rhs types are the same.
213
214 2008-03-28  Daniel Franke  <franke.daniel@gmail.com>
215             Paul Richard Thomas <paul.richard.thomas@gmail.com>
216
217         PR fortran/34714
218         * primary.c (match_variable): Improved matching of function 
219         result variables.
220         * resolve.c (resolve_allocate_deallocate): Removed checks if
221         the actual argument for STAT is a variable.
222
223 2008-03-28  Tobias Burnus  <burnus@net-b.de>
224
225         * symbol.c (gfc_get_default_type): Fix error message; option
226         -fallow_leading_underscore should be -fallow-leading-underscore
227
228 2008-03-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
229
230         PR fortran/35724
231         * iresolve.c (gfc_resolve_cshift): Check for NULL symtree in test for
232         optional argument attribute.
233
234 2008-03-27  Tom Tromey  <tromey@redhat.com>
235
236         * Make-lang.in: Revert automatic dependency patch.
237
238 2008-03-25  Tom Tromey  <tromey@redhat.com>
239
240         * Make-lang.in: Remove .o targets.
241         (fortran_OBJS): New variable.
242         (fortran/gfortranspec.o): Move to fortran/.  Reduce to variable
243         setting.
244         (GFORTRAN_D_OBJS): Update.
245         (GFORTRAN_TRANS_DEPS): Remove.
246
247 2008-03-24  Paul Thomas  <pault@gcc.gnu.org>
248
249         PR fortran/34813
250         * resolve.c (resolve_structure_cons): It is an error to assign
251         NULL to anything other than a pointer or allocatable component.
252
253         PR fortran/33295
254         * resolve.c (resolve_symbol): If the symbol is a derived type,
255         resolve the derived type.  If the symbol is a derived type
256         function, ensure that the derived type is visible in the same
257         namespace as the function.
258
259 2008-03-23  Tobias Schlüter  <tobi@gcc.gnu.org>
260
261         * trans.h: Use fold_build in build1_v, build2_v and build3_v
262         macros.
263         * trans-openmp.c (gfc_trans_omp_critical, gfc_trans_omp_single):
264         Don't use build2_v macro.
265
266 2008-03-19  Daniel Franke  <franke.daniel@gmail.com>
267
268         PR fortran/35152
269         * interface.c (gfc_procedure_use): Check for keyworded arguments in
270         procedures without explicit interfaces.
271
272 2008-03-16  Paul Thomas  <pault@gcc.gnu.org>
273
274         PR fortran/35470
275         * resolve.c (check_assumed_size_reference):  Only visit the
276         first reference and look directly at the highest dimension.
277
278 2008-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
279
280         PR fortran/35184
281         * trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
282         assert.
283
284 2008-03-15  Daniel Franke  <franke.daniel@gmail.com>
285
286         PR fortran/35584
287         * resolve.c (resolve_branch): Less strict and pessimistic warning
288         message.
289
290 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
291
292         * f95-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
293         (gfc_be_parse_file): Call clear_binding_stack from here.
294         (gfc_clear_binding_stack): Rename to clear_binding_stack.
295                 
296 2008-03-09  Paul Thomas  <pault@gcc.gnu.org>
297
298         PR fortran/35474
299         * module.c (mio_symtree_ref): After providing a symbol for a
300         missing equivalence member, resolve and NULL the fixups.
301
302 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
303
304         * invoke.texi (Error and Warning Options): Document
305         -Wline-truncation.
306
307 2008-03-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
308
309         PR fortran/34956
310         * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
311         checking bounds of absent optional arguments.
312
313 2008-03-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
314
315         PR fortran/33197
316         * intrinsic.c (add_functions): Add simplification routines for
317         ERF, DERF, ERFC and DERFC.
318         * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
319         extensions into Fortran 2008 features.
320         * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
321         prototypes.
322         * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
323
324 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
325
326         PR fortran/33197
327         * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
328         ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
329         ERFC_SCALED, LOG_GAMMA and HYPOT.
330         * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
331         gfc_resolve_hypot): New prototypes.
332         * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
333         ACOSH, ASINH and ATANH available.
334         * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
335         * lang.opt: Add -std=f2008 option.
336         * libgfortran.h: Define GFC_STD_F2008.
337         * lang-specs.h: Add .f08 and .F08 file suffixes.
338         * iresolve.c (gfc_resolve_hypot): New function.
339         * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
340         * check.c (gfc_check_hypot): New function.
341         * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
342         * options.c (set_default_std_flags): Allow Fortran 2008 by default.
343         (form_from_filename): Add .f08 suffix.
344         (gfc_handle_option): Handle -std=f2008 option.
345         * simplify.c (gfc_simplify_hypot): New function.
346         * gfortran.texi: Document Fortran 2008 status and file extensions.
347         * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
348         as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
349         ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
350         * invoke.texi: Document the new -std=f2008 option.
351
352 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
353
354         * gfortranspec.c (lang_specific_driver): Update copyright notice
355         dates.
356
357 2008-02-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
358
359         PR fortran/35059
360         * expr.c (find_array_element): Modify traversing the constructor to
361         avoid trying to access NULL memory pointed to by next for the
362         last element. (find_array_section): Exit while loop if cons->next is
363         NULL.
364         * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
365         (gfc_conv_function_call): Same.
366         * decl.c (gfc_match_implicit): Same.
367         * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
368
369 2008-02-28  Daniel Franke  <franke.daniel@gmail.com>
370
371         PR fortran/31463
372         PR fortran/33950
373         PR fortran/34296
374         * lang.opt: Added -Wreturn-type.
375         * options.c (gfc_handle_option): Recognize -Wreturn-type.
376         * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
377         where the result value is not set.
378         (gfc_generate_function_code): Likewise.
379         (generate_local_decl): Emit warnings for funtions whose RESULT
380         variable is not set.
381
382 2008-02-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
383
384         PR fortran/34868
385         * trans-expr.c (gfc_conv_variable): Don't build indirect
386         references when explicit interface is mandated.
387         * resolve.c (resolve_formal_arglist): Set attr.always_explicit
388         on the result symbol as well as the procedure symbol.
389
390 2008-02-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
391
392         PR fortran/33387
393         * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
394         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
395         gfor_fndecl_math_exponent16.
396         * f95-lang.c (build_builtin_fntypes): Add new function types.
397         (gfc_init_builtin_functions): Add new builtins for nextafter,
398         frexp, ldexp, fabs, scalbn and inf.
399         * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
400         (gfc_resolve_scale): Don't convert type of second argument.
401         (gfc_resolve_set_exponent): Likewise.
402         (gfc_resolve_size): Don't add hidden arguments.
403         * trans-decl.c: Remove gfor_fndecl_math_exponent4,
404         gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
405         gfor_fndecl_math_exponent16.
406         * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
407         for scalbn, fraction, nearest, rrspacing, set_exponent and
408         spacing.
409         (gfc_conv_intrinsic_exponent): Directly call frexp.
410         (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
411         gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
412         gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
413         functions.
414         (gfc_conv_intrinsic_function): Use the new functions above.
415
416 2008-02-26  Tobias Burnus  <burnus@net-b.de>
417
418         PR fortran/35033
419         * interface.c (check_operator_interface): Show better line for error
420         messages; fix constrains for user-defined assignment operators.
421         (gfc_extend_assign): Fix constrains for user-defined assignment
422         operators.
423
424 2008-02-26  Tom Tromey  <tromey@redhat.com>
425
426         * trans-io.c (set_error_locus): Remove old location code.
427         * trans-decl.c (gfc_set_decl_location): Remove old location code.
428         * f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
429         * scanner.c (gfc_gobble_whitespace): Remove old location code.
430         (get_file): Likewise.
431         (preprocessor_line): Likewise.
432         (load_file): Likewise.
433         (gfc_new_file): Likewise.
434         * trans.c (gfc_trans_runtime_check): Remove old location code.
435         (gfc_get_backend_locus): Likewise.
436         (gfc_set_backend_locus): Likewise.
437         * data.c (gfc_assign_data_value): Remove old location code.
438         * error.c (show_locus): Remove old location code.
439         * gfortran.h (gfc_linebuf): Remove old location code.
440         (gfc_linebuf_linenum): Remove old-location variant.
441
442 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
443
444         PR fortran/34729
445         * trans-const.c (gfc_build_string_const): Don't call gettext.
446         (gfc_build_localized_string_const): New function.
447         * trans-const.h (gfc_build_localized_string_const): New prototype.
448         * trans.c (gfc_trans_runtime_check): Use
449         gfc_build_localized_string_const instead of gfc_build_string_const.
450         (gfc_call_malloc): Likewise.
451         (gfc_allocate_with_status): Likewise.
452         (gfc_allocate_array_with_status): Likewise.
453         (gfc_deallocate_with_status): Likewise.
454         (gfc_call_realloc): Likewise.
455         * trans-io.c (gfc_trans_io_runtime_check): Likewise.
456
457 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
458
459         * arith.c: Update copyright years.
460         * arith.h: Likewise.
461         * array.c: Likewise.
462         * bbt.c: Likewise.
463         * check.c: Likewise.
464         * data.c: Likewise.
465         * data.h: Likewise.
466         * decl.c: Likewise.
467         * dependency.c: Likewise.
468         * dependency.h: Likewise.
469         * dump-parse-tree.c: Likewise.
470         * error.c: Likewise.
471         * expr.c: Likewise.
472         * gfc-internals.texi: Likewise.
473         * gfortran.h: Likewise.
474         * gfortran.texi: Likewise.
475         * gfortranspec.c: Likewise.
476         * interface.c: Likewise.
477         * intrinsic.c: Likewise.
478         * intrinsic.h: Likewise.
479         * intrinsic.texi: Likewise.
480         * invoke.texi: Likewise.
481         * io.c: Likewise.
482         * iresolve.c: Likewise.
483         * iso-c-binding.def: Likewise.
484         * iso-fortran-env.def: Likewise.
485         * lang-specs.h: Likewise.
486         * lang.opt: Likewise.
487         * libgfortran.h: Likewise.
488         * match.c: Likewise.
489         * match.h: Likewise.
490         * matchexp.c: Likewise.
491         * misc.c: Likewise.
492         * module.c: Likewise.
493         * openmp.c: Likewise.
494         * options.c: Likewise.
495         * parse.c: Likewise.
496         * parse.h: Likewise.
497         * primary.c: Likewise.
498         * resolve.c: Likewise.
499         * scanner.c: Likewise.
500         * simplify.c: Likewise.
501         * st.c: Likewise.
502         * symbol.c: Likewise.
503         * target-memory.c: Likewise.
504         * target-memory.h: Likewise.
505         * trans-array.h: Likewise.
506         * trans-const.h: Likewise.
507         * trans-stmt.h: Likewise.
508         * trans-types.c: Likewise.
509         * trans-types.h: Likewise.
510         * types.def: Likewise.
511
512 2008-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
513
514         PR fortran/35223
515         * simplify.c (gfc_simplify_ibclr), (gfc_simplify_ibits),
516         (gfc_simplify_ibset): Remove call to range_check.
517         (simplify_cmplx), (gfc_simplify_dble), (gfc_simplify_float)
518         (gfc_simplify_real): Add call gfc_clear_ts to initialize the
519         temporary gfc_typspec variable.
520
521 2008-02-24  Tobias Schlüter  <tobi@gcc.gnu.org>
522
523         * trans-array.c (gfc_conv_descriptor_data_get,
524         gfc_conv_descriptor_data_set_internal,
525         gfc_conv_descriptor_data_addr, gfc_conv_descriptor_offset,
526         gfc_conv_descriptor_dtype, gfc_conv_descriptor_dimension,
527         gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
528         gfc_conv_descriptor_ubound, gfc_trans_create_temp_array,
529         gfc_conv_array_transpose, gfc_grow_array,
530         gfc_trans_array_constructor_subarray,
531         gfc_trans_array_constructor_value, gfc_trans_scalarized_loop_end,
532         gfc_array_init_size, gfc_array_allocate, gfc_array_deallocate,
533         gfc_conv_array_initializer, gfc_trans_array_bounds,
534         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
535         gfc_get_dataptr_offset, gfc_conv_array_parameter,
536         gfc_trans_dealloc_allocated, get_full_array_size,
537         gfc_duplicate_allocatable, structure_alloc_comps): Use fold_buildN
538         instead of buildN.
539         * trans-expr.c (gfc_conv_expr_present, gfc_conv_missing_dummy,
540         gfc_conv_component_ref, gfc_conv_cst_int_power,
541         gfc_conv_function_call, gfc_trans_structur_assign): Likewise.
542         * trans-common.c (create_common): Likewise.
543         * trans-openmp.c (gfc_trans_omp_atomic, gfc_trans_omp_do):
544         Likewise.
545         * trans-const.c (gfc_conv_constant_to_tree): Likewise.
546         * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_do,
547         gfc_trans_integer_select, gfc_trans_character_select,
548         gfc_trans_forall_loop, compute_overall_iter_number,
549         gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_allocate,
550         gfc_trans_deallocate): Likewise.
551         * trans.c (gfc_build_addr_expr, gfc_trans_runtime_check,
552         gfc_allocate_with_status, gfc_allocate_array_with_status,
553         gfc_deallocate_with_status): Likewise.
554         * f95-lang.c (gfc_truthvalue_conversion): Likewise.
555         * trans-io.c (set_parameter_const, set_parameter_value,
556         set_parameter_ref, set_string, set_internal_unit, io_result,
557         set_error_locus, nml_get_addr_expr, transfer_expr): Likewise.
558         * trans-decl.c (gfc_build_qualified_array, build_entry_thunks,
559         gfc_get_fake_result_decl, gfc_trans_auto_character_variable,
560         gfc_generate_function_code): Likewise.
561         * convert.c (convert): Likewise.
562         * trans-intrinsic.c (gfc_conv_intrinsic_conversion,
563         build_fixbound_expr, build_fix_expr, gfc_conv_intrinsic_aint,
564         gfc_conv_intrinsic_int, gfc_conv_intrinsic_imagpart,
565         gfc_conv_intrinsic_conjg, gfc_conv_intrinsic_abs,
566         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
567         gfc_conv_intrinsic_dim, gfc_conv_intrinsic_dprod,
568         gfc_conv_intrinsic_ctime, gfc_conv_intrinsic_fdate,
569         gfc_conv_intrinsic_ttynam, gfc_conv_intrinsic_minmax,
570         gfc_conv_intrinsic_minmax_char, gfc_conv_intrinsic_count,
571         gfc_conv_intrinsic_arith, gfc_conv_intrinsic_dot_product,
572         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
573         gfc_conv_intrinsic_btest, gfc_conv_intrinsic_not,
574         gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
575         gfc_conv_intrinsic_ichar, gfc_conv_intrinsic_size,
576         gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer,
577         gfc_conv_allocated, gfc_conv_associated, gfc_conv_intrinsic_trim,
578         gfc_conv_intrinsic_repeat): Likewise.
579
580 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
581
582         PR target/25477
583         * trans-expr.c (gfc_conv_power_op): Use BUILT_IN_CPOW{F,,L}.
584         * f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_CPOW{F,,L}.
585         * trans.h (gfor_fndecl_math_cpow, gfor_fndecl_math_cpowf,
586         gfor_fndecl_math_cpowl10, gfor_fndecl_math_cpowl16): Remove.
587         * trans-decl.c: Likewise.
588
589 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
590
591         PR fortran/35059
592         * expr.c (find_array_element): Modify traversing the constructor to
593         avoid trying to access NULL memory pointed to by next for the
594         last element. (find_array_section): Exit while loop if cons->next is
595         NULL.
596
597 2008-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
598
599         PR fortran/34907
600         * iresolve.c (resolve_mask_arg): Add gfc_clear_ts to initialize
601         structure.
602         (gfc_resolve_aint): Likewise.
603         (gfc_resolve_anint): Likewise.
604         (gfc_resolve_besn): Likewise.
605         (gfc_resolve_cshift): Likewise.
606         (gfc_resolve_ctime): Likewise.
607         (gfc_resolve_eoshift): Likewise.
608         (gfc_resolve_index_func): Likewise.
609         (gfc_resolve_isatty): Likewise.
610         (gfc_resolve_malloc): Likewise.
611         (gfc_resolve_rrspacing): Likewise.
612         (gfc_resolve_scale): Likewise.
613         (gfc_resolve_set_exponent): Likewise.
614         (gfc_resolve_spacing): Likewise.
615         (gfc_resolve_spacing): Likewise.
616         (gfc_resolve_fgetc): Likewise.
617         (gfc_resolve_fputc): Likewise.
618         (gfc_resolve_ftell): Likewise.
619         (gfc_resolve_ttynam): Likewise.
620         (gfc_resolve_alarm_sub): Likewise.
621         (gfc_resolve_mvbits): Likewise.
622         (gfc_resolve_getarg): Likewise.
623         (gfc_resolve_signal_sub): Likewise.
624         (gfc_resolve_exit): Likewise.
625         (gfc_resolve_flush): Likewise.
626         (gfc_resolve_free): Likewise.
627         (gfc_resolve_ctime_sub): Likewise.
628         (gfc_resolve_fgetc_sub): Likewise.
629         (gfc_resolve_fputc_sub): Likewise.
630         (gfc_resolve_fseek_sub): Likewise.
631         (gfc_resolve_ftell_sub): Likewise.
632         (gfc_resolve_ttynam_sub): Likewise.
633
634 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
635
636         * gfc-internals.texi: Fix typos and markup nits.
637         * gfortran.texi: Likewise.
638         * intrinsic.texi: Likewise.
639
640 2008-02-21  Richard Guenther  <rguenther@suse.de>
641
642         * trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
643         as unary PAREN_EXPR for real and complex typed expressions.
644         (gfc_conv_unary_op): Fold the built tree.
645
646 2008-02-20  Tobias Burnus  <burnus@net-b.de>
647
648         PR fortran/34997
649         * match.c (gfc_match_name): Improve error message for '$'.
650
651 2008-02-19  Daniel Franke  <franke.daniel@gmail.com>
652
653         PR fortran/35030
654         * expr.c (gfc_check_pointer_assign): Add type and kind information
655         to type-mismatch message.
656         (gfc_check_assign): Unify error messages.
657
658 2008-02-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
659
660         PR fortran/34952
661         * gfortran.texi: Create new section for unimplemented extensions.
662         Add "STRUCTURE and RECORD" and "ENCODE and DECODE statements".
663         Remove "smaller projects" list. Fix a few typos.
664
665 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
666
667         * intrinsic.texi: Rename INDEX node to avoid clashing with
668         index.html on case-insensitive systems.
669
670 2008-02-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
671
672         PR fortran/35150
673         * trans-expr.c (gfc_conv_function_call): Force evaluation of
674         se->expr.
675
676 2008-02-10  Daniel Franke  <franke.daniel@gmail.com>
677
678         PR fortran/35019
679         * lang.opt: Allow '-J<dir>' next to '-J <dir>', 
680         likewise '-I <dir>' and '-I<dir>'.
681
682 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
683
684         PR other/35107
685         * Make-lang.in (f951): Add $(GMPLIBS).
686
687 2008-02-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
688
689         PR fortran/35037
690         * trans-common.c (build_field): Mark fields as volatile when needed.
691
692 2008-02-05  Tobias Burnus  <burnus@net-b.de>
693
694         PR fortran/35093
695         * data.c (gfc_assign_data_value): Only free "size" if
696         it has not already been freed.
697
698 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
699
700         PR fortran/34945
701         * array.c (match_array_element_spec): Remove check for negative
702         array size.
703         (gfc_resolve_array_spec): Add check for negative size.
704
705 2008-02-05  Paul Thomas  <pault@gcc.gnu.org>
706
707         PR fortran/32315
708         * data.c (gfc_assign_data_value): Add bounds check for array
709         references.
710
711 2008-02-04  Daniel Franke  <franke.daniel@gmail.com>
712
713         * resolve.c (resolve_where): Fix typo.
714         (gfc_resolve_where_code_in_forall): Likewise.
715
716 2008-02-03  Paul Thomas  <pault@gcc.gnu.org>
717
718         PR fortran/32760
719         * resolve.c (resolve_allocate_deallocate): New function.
720         (resolve_code): Call it for allocate and deallocate.
721         * match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
722         the checking of the STAT tag and put in above new function.
723         * primary,c (match_variable): Do not fix flavor of host
724         associated symbols yet if the type is not known.
725
726 2008-01-31  Paul Thomas  <pault@gcc.gnu.org>
727
728         PR fortran/34910
729         * expr.c (gfc_check_assign): It is an error to assign
730         to a sibling procedure.
731
732 2008-01-30  Paul Thomas  <pault@gcc.gnu.org>
733
734         PR fortran/34975
735         * symbol.c (gfc_delete_symtree, gfc_undo_symbols): Rename
736         delete_symtree to gfc_delete_symtree.
737         * gfortran.h : Add prototype for gfc_delete_symtree.
738         * module.c (load_generic_interfaces): Transfer symbol to a
739         unique symtree and delete old symtree, instead of renaming.
740         (read_module): The rsym and the found symbol are the same, so
741         the found symtree can be deleted.
742
743         PR fortran/34429
744         * decl.c (match_char_spec): Remove the constraint on deferred
745         matching of functions and free the length expression.
746         delete_symtree to gfc_delete_symtree.
747         (gfc_match_type_spec): Whitespace.
748         (gfc_match_function_decl): Defer characteristic association for
749         all types except BT_UNKNOWN.
750         * parse.c (decode_specification_statement): Only derived type
751         function matching is delayed to the end of specification.
752
753 2008-01-28  Tobias Burnus  <burnus@net-b.de>
754
755         PR libfortran/34980
756         * simplify.c (gfc_simplify_shape): Simplify rank zero arrays.
757
758 2008-01-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
759
760         PR fortran/34990
761         * array.c (gfc_check_constructor_type): Revert clearing the expression.
762
763 2008-01-26  Tobias Burnus  <burnus@net-b.de>
764
765         PR fortran/34848
766         * trans-expr.c (gfc_conv_function_call): Don't call
767         gfc_add_interface_mapping if the expression is NULL.
768
769 2008-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
770
771         PR fortran/31610
772         * trans-array.c (gfc_trans_create_temp_array): Remove call to
773         gcc_assert (integer_zerop (loop->from[n])).
774
775 2008-01-25  Daniel Franke  <franke.daniel@gmail.com>
776
777         PR fortran/34661
778         * resolve.c (resolve_where): Added check if user-defined assignment 
779         operator is an elemental subroutine.
780         (gfc_resolve_where_code_in_forall): Likewise.
781
782 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
783
784         PR fortran/33375
785         PR fortran/34858
786         * gfortran.h: Revert changes from 2008-01-17.
787         * match.c: Likewise.
788         * symbol.c: Likewise.
789         (gfc_undo_symbols): Undo namespace changes related to common blocks.
790
791 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
792
793         PR fortran/34202
794         * data.c (formalize_structure_cons): Skip formalization on
795         empty structures.
796
797 2008-01-24  Daniel Franke  <franke.daniel@gmail.com>
798
799         * gfortran.texi (OpenMP): Extended existing documentation.
800         (contributors): Added major contributors of 2008 that were
801         not listed yet.
802         (proposed extensions): Removed implemented items.
803
804 2008-01-24  Paul Thomas  <pault@gcc.gnu.org>
805
806         PR fortran/34872
807         * parse.c (next_statement) : If ST_GET_FCN_CHARACTERISTICS  is
808         seen, check for a statement label and, if present, delete it
809         and set the locus to the start of the statement.
810
811 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
812
813         PR fortran/34875
814         * trans-io.c (gfc_trans_transfer): If the array reference in a
815         read has a vector subscript, use gfc_conv_subref_array_arg to
816         copy back the temporary.
817
818 2008-01-22  Tobias Burnus  <burnus@net-b.de>
819
820         PR fortran/34848
821         * interface.c (compare_actual_formal): Fix adding type
822         to missing_arg_type for absent optional arguments.
823
824 2008-01-22  Tobias Burnus  <burnus@net-b.de>
825
826         PR fortran/34907
827         * parse.c (parse_spec): Change = into ==.
828
829 2008-01-22  Daniel Franke  <franke.daniel@gmail.com>
830
831         PR fortran/34915
832         * expr.c (check_elemental): Fix check for valid data types.
833
834 2008-01-22  Tobias Burnus  <burnus@net-b.de>
835
836         PR fortran/34899
837         * scanner.c (load_line): Support <tab><digit> continuation lines.
838         * invoke.texi (-Wtabs): Document this.
839
840 2008-01-22  Paul Thomas  <pault@gcc.gnu.org>
841
842         PR fortran/34896
843         * module.c (read_module): Set use_rename attribute.
844
845 2007-01-21  Tobias Burnus  <burnus@net-b.de>
846
847         PR fortran/34901
848         * interface.c (compare_parameter): Improved error message
849         for arguments of same type and mismatched kinds.
850
851 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
852
853         PR fortran/34861
854         * resolve.c (resolve_entries): Do not do an array bounds check
855         if the result symbols are the same.
856
857         PR fortran/34854
858         * module.c (read_module) : Hide the symtree of the previous
859         version of the symbol if this symbol is renamed.
860
861 2008-01-20  Paul Thomas  <pault@gcc.gnu.org>
862
863         PR fortran/34784
864         * array.c (gfc_check_constructor_type): Clear the expression ts
865         so that the checking starts from the deepest level of array
866         constructor.
867         * primary.c (match_varspec): If an unknown type is changed to
868         default character and the attempt to match a substring fails,
869         change it back to unknown.
870
871         PR fortran/34785
872         * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is
873         NULL for an array constructor, use the cl.length expression to
874         build it.
875         (gfc_conv_array_parameter): Change call to gfc_evaluate_now to
876         a tree assignment.
877
878 2008-01-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
879
880         PR fortran/34817
881         PR fortran/34838
882         * iresolve.c (gfc_resolve_all):  Remove conversion of mask
883         argument to kind=1 by removing call to resolve_mask_arg().
884         (gfc_resolve_any):  Likewise.
885
886 2008-01-19  Tobias Burnus  <burnus@net-b.de>
887
888         PR fortran/34760
889         * primary.c (match_variable): Handle FL_UNKNOWN without
890         uneducated guessing.
891         (match_variable): Improve error message.
892
893 2008-01-18  Tobias Burnus  <burnus@net-b.de>
894
895         PR fortran/32616
896         * interface.c (get_expr_storage_size): Return storage size
897         for array element designators.
898         (compare_actual_formal): Reject unequal string sizes for
899         assumed-shape dummy arguments. And fix error message for
900         array-sections with vector subscripts.
901
902 2008-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
903
904         PR fortran/34556
905         * simplify.c (is_constant_array_expr): New static function that returns
906         true if the given expression is an array and is constant.
907         (gfc_simplify_reshape): Use new function.
908
909 2008-01-17  H.J. Lu  <hongjiu.lu@intel.com>
910
911         PR fortran/33375
912         * symbol.c (free_common_tree): Renamed to ...
913         (gfc_free_common_tree): This.  Remove static.
914         (gfc_free_namespace): Updated.
915
916         * gfortran.h (gfc_free_common_tree): New.
917
918         * match.c (gfc_match_common): Call gfc_free_common_tree () with
919         gfc_current_ns->common_root and set gfc_current_ns->common_root
920         to NULL on syntax error.
921
922 2008-01-18  Richard Sandiford  <rsandifo@nildram.co.uk>
923
924         PR fortran/34686
925         * trans-expr.c (gfc_conv_function_call): Use proper
926         type for returned character pointers.
927
928 2008-01-17  Paul Thomas  <pault@gcc.gnu.org>
929
930         PR fortran/34429
931         PR fortran/34431
932         PR fortran/34471
933         * decl.c : Remove gfc_function_kind_locus and
934         gfc_function_type_locus. Add gfc_matching_function.
935         (match_char_length): If matching a function and the length
936         does not match, return MATCH_YES and try again later.
937         (gfc_match_kind_spec): The same.
938         (match_char_kind): The same.
939         (gfc_match_type_spec): The same for numeric and derived types.
940         (match_prefix): Rename as gfc_match_prefix.
941         (gfc_match_function_decl): Except for function valued character
942         lengths, defer applying kind, type and charlen info until the
943         end of specification block.
944         gfortran.h (gfc_statement): Add ST_GET_FCN_CHARACTERISTICS.
945         parse.c (decode_specification_statement): New function.
946         (decode_statement): Call it when a function has kind = -1. Set
947         and reset gfc_matching function, as function statement is being
948         matched.
949         (match_deferred_characteristics): Simplify with a single call
950         to gfc_match_prefix. Do appropriate error handling. In any
951         case, make sure that kind = -1 is reset or corrected.
952         (parse_spec): Call above on seeing ST_GET_FCN_CHARACTERISTICS.
953         Throw an error if kind = -1 after last specification statement.
954         parse.h : Prototype for gfc_match_prefix.
955
956 2008-01-16  Tobias Burnus  <burnus@net-b.de>
957
958         PR fortran/34796
959         * interface.c (compare_parameter): Allow AS_DEFERRED array
960         elements and reject attr.pointer array elemenents.
961         (get_expr_storage_size): Return storage size of elements of
962         assumed-shape and pointer arrays.
963
964 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
965
966         * f95-lang.c (gfc_init_builtin_functions): Initialize GOMP builtins
967         for flag_tree_parallelize_loops.
968
969 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
970
971         PR libfortran/34671
972         * iresolve.c (gfc_resolve_all):  Call resolve_mask_arg.
973         (gfc_resolve_any):  Likewise.
974         (gfc_resolve_count):  Likewise.  Don't append kind of
975         argument to function name.
976
977 2008-01-13  Tobias Burnus  <burnus@net-b.de>
978
979         PR fortran/34665
980         * resolve.c (resolve_actual_arglist): For expressions,
981         also check for assume-sized arrays.
982         * interface.c (compare_parameter): Move F2003 character checks
983         here, print error messages here, reject elements of
984         assumed-shape array as argument to dummy arrays.
985         (compare_actual_formal): Update for the changes above.
986
987 2008-01-13  Tobias Burnus  <burnus@net-b.de>
988
989         PR fortran/34763
990         * decl.c (contained_procedure): Only check directly preceeding state.
991
992 2008-01-13  Tobias Burnus  <burnus@net-b.de>
993
994         PR fortran/34759
995         * check.c (gfc_check_shape): Accept array ranges of
996         assumed-size arrays.
997
998 2008-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
999
1000         PR fortran/34432
1001         * match.c (gfc_match_name): Don't error if leading character is a '(',
1002         just return MATCH_NO.
1003
1004 2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1005
1006         PR fortran/34722
1007         * trans-io.c (create_dummy_iostat): Commit the symbol.
1008
1009 2008-01-11  Paul Thomas  <pault@gcc.gnu.org>
1010
1011         PR fortran/34537
1012         * simplify.c (gfc_simplify_transfer): Return NULL if the size
1013         of the element is unavailable and only assign character length
1014         to the result, if 'mold' is constant.
1015
1016 2008-01-10  Paul Thomas  <pault@gcc.gnu.org>
1017
1018         PR fortran/34396
1019         * trans-array.c (gfc_trans_array_ctor_element):  Use gfc_trans_string_copy
1020         to assign strings and perform bounds checks on the string length.
1021         (get_array_ctor_strlen): Remove bounds checking.
1022         (gfc_trans_array_constructor): Initialize string length checking.
1023         * trans-array.h : Add prototype for gfc_trans_string_copy.
1024
1025 2008-01-08  Richard Guenther  <rguenther@suse.de>
1026
1027         PR fortran/34706
1028         PR tree-optimization/34683
1029         * trans-types.c (gfc_get_array_type_bounds): Use an array type
1030         with known size for accesses if that is known.
1031
1032 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
1033
1034         PR fortran/34476
1035         * expr.c (find_array_element): Check that the array bounds are
1036         constant before using them.  Use lower, as well as upper bound.
1037         (check_restricted): Allow implied index variable.
1038
1039 2008-01-08  Paul Thomas  <pault@gcc.gnu.org>
1040
1041         PR fortran/34681
1042         * trans_array.c (gfc_trans_deferred_array): Do not null the
1043         data pointer on entering scope, nor deallocate it on leaving
1044         scope, if the symbol has the 'save' attribute.
1045
1046         PR fortran/34704
1047         * trans_decl.c (gfc_finish_var_decl): Derived types with
1048         allocatable components and an initializer must be TREE_STATIC.
1049
1050 2008-01-07  Paul Thomas  <pault@gcc.gnu.org>
1051
1052         PR fortran/34672
1053         * module.c (write_generic): Rewrite completely.
1054         (write_module): Change call to write_generic.
1055
1056 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1057
1058         PR fortran/34659
1059         * scanner.c (load_line): Do not count ' ' as printable when checking for
1060         continuations.
1061
1062 2008-01-06  Paul Thomas  <pault@gcc.gnu.org>
1063
1064         PR fortran/34545
1065         * module.c (load_needed): If the namespace has no proc_name
1066         give it the module symbol.
1067
1068 2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1069
1070         PR fortran/34387
1071         * trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
1072         the dummy variable expression, test for NULL, and pass the variable
1073         address to the called function.
1074
1075 2007-01-06  Tobias Burnus  <burnus@net-b.de>
1076
1077         PR fortran/34658
1078         * match.c (gfc_match_common): Remove blank common in
1079         DATA BLOCK warning.
1080         * resolve.c (resolve_common_vars): New function.
1081         (resolve_common_blocks): Move checks to resolve_common_vars
1082         and invoke that function.
1083         (resolve_types): Call resolve_common_vars for blank commons.
1084
1085 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1086
1087         PR fortran/34655
1088         * resolve.c (resolve_equivalence_derived): Reject derived types with
1089         default initialization if equivalenced with COMMON variable.
1090
1091 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1092
1093         PR fortran/34654
1094         * io.c (check_io_constraints): Disallow unformatted I/O for
1095         internal units.
1096
1097 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1098
1099         PR fortran/34660
1100         * resolve.c (resolve_formal_arglist): Reject dummy procedure in
1101         ELEMENTAL functions.
1102
1103 2008-01-06  Tobias Burnus  <burnus@net-b.de>
1104
1105         PR fortran/34662
1106         * interface.c (compare_actual_formal): Reject parameter
1107         actual to intent(out) dummy.
1108
1109 2008-01-04  Tobias Burnus  <burnus@net-b.de>
1110
1111         PR fortran/34557
1112         * primary.c (match_varspec): Gobble whitespace before
1113         checking for '('.