Fix name butchered in my previous check-in.
[gcc.git] / gcc / fortran / ChangeLog
1 2006-01-18 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
2
3 PR fortran/18540
4 PR fortran/18937
5 * gfortran.h (BBT_HEADER): Move definition up.
6 (gfc_st_label): Add BBT_HEADER, remove 'prev' and 'next'.
7 * io.c (format_asterisk): Adapt initializer.
8 * resolve.c (resolve_branch): Allow FORTRAN 66 cross-block GOTOs
9 as extension.
10 * symbol.c (compare_st_labels): New function.
11 (gfc_free_st_label, free_st_labels, gfc_get_st_label): Convert to
12 using balanced binary tree.
13 * decl.c (match_char_length, gfc_match_old_kind_spec): Do away
14 with 'cnt'.
15 (warn_unused_label): Adapt to binary tree.
16 * match.c (gfc_match_small_literal_int): Only set cnt if non-NULL.
17 * primary.c (match_kind_param): Do away with cnt.
18
19 2006-01-18 Paul Thomas <pault@gcc.gnu.org>
20
21 PR fortran/20869
22 PR fortran/20875
23 PR fortran/25024
24 * symbol.c (check_conflict): Add pointer valued elemental
25 functions and internal procedures with the external attribute
26 to the list of conflicts.
27 (gfc_add_attribute): New catch-all function to perform the
28 checking of symbol attributes for attribute declaration
29 statements.
30 * decl.c (attr_decl1): Call gfc_add_attribute for each of -
31 (gfc_match_external, gfc_match_intent, gfc_match_intrinsic,
32 gfc_match_pointer, gfc_match_dimension, gfc_match_target):
33 Remove spurious calls to checks in symbol.c. Set the
34 attribute directly and use the call to attr_decl() for
35 checking.
36 * gfortran.h: Add prototype for gfc_add_attribute.
37
38 PR fortran/25785
39 * resolve.c (resolve_function): Exclude PRESENT from assumed size
40 argument checking. Replace strcmp's with comparisons with generic
41 codes.
42
43 2006-01-16 Rafael \81Ávila de Esp\81índola <rafael.espindola@gmail.com>
44
45 * gfortranspec.c (lang_specific_spec_functions): Remove.
46
47 2006-01-16 Richard Guenther <rguenther@suse.de>
48
49 * trans-stmt.c (gfc_trans_if_1): Use fold_buildN and build_int_cst.
50 (gfc_trans_arithmetic_if): Likewise.
51 (gfc_trans_simple_do): Likewise.
52 (gfc_trans_do): Likewise.
53 (gfc_trans_do_while): Likewise.
54 (gfc_trans_logical_select): Likewise.
55 (gfc_trans_forall_loop): Likewise.
56 (generate_loop_for_temp_to_lhs): Likewise.
57 (generate_loop_for_rhs_to_temp): Likewise.
58 (gfc_trans_allocate): Likewise.
59 * trans.c (gfc_add_expr_to_block): Do not fold expr again.
60
61 2006-01-16 Richard Guenther <rguenther@suse.de>
62
63 * trans-expr.c (gfc_conv_function_call): Use fold_build2.
64 * trans-stmt.c (gfc_trans_goto): Likewise. Use build_int_cst.
65 * trans.c (gfc_trans_runtime_check): Don't fold the condition
66 again.
67
68 2006-01-13 Steven G. Kargl <kargls@comcast.net>
69
70 PR fortran/25756
71 * symbol.c (gfc_free_st_label): Give variable meaningful name. Remove
72 unneeded parenthesis. Fix-up the head of the list (2 lines gleaned
73 from g95).
74
75 2006-01-13 Diego Novillo <dnovillo@redhat.com>
76
77 * trans.c (gfc_add_expr_to_block): Do not fold tcc_statement
78 nodes.
79
80 2006-01-11 Tobias Schl\81üter <tobias.schlueter@physik.uni-muenchen.de>
81
82 * parse.c (next_fixed): Remove superfluous string concatenation.
83
84 2006-01-11 Bernhard Fischer <rep.nop@aon.at>
85
86 PR fortran/25486
87 * scanner.c (load_line): use maxlen to determine the line-length used
88 for padding lines in fixed form.
89
90 2005-01-11 Paul Thomas <pault@gcc.gnu.org>
91
92 PR fortran/25730
93 * trans-types.c (copy_dt_decls_ifequal): Copy backend decl for
94 character lengths.
95
96 2006-01-09 Andrew Pinski <pinskia@physics.uc.edu>
97
98 fortran/24936
99 * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Use fold_convert
100 to avoid type mismatch.
101
102 2006-01-09 Andrew Pinski <pinskia@physics.uc.edu>
103
104 PR fortran/21977
105 * trans-decl.c (gfc_generate_function_code): Move the NULLing of
106 current_fake_result_decl down to below generate_local_vars.
107
108 2006-01-09 Feng Wang <fengwang@nudt.edu.cn>
109
110 PR fortran/12456
111 * trans-expr.c (gfc_to_single_character): New function that converts
112 string to single character if its length is 1.
113 (gfc_build_compare_string):New function that compare string and handle
114 single character specially.
115 (gfc_conv_expr_op): Use gfc_build_compare_string.
116 (gfc_trans_string_copy): Use gfc_to_single_character.
117 * trans-intrinsic.c (gfc_conv_intrinsic_strcmp): Use
118 gfc_build_compare_string.
119 * trans.h (gfc_build_compare_string): Add prototype.
120
121 2006-01-09 Feng Wang <fengwang@nudt.edu.cn>
122
123 * simplify.c (gfc_simplify_char): Use UCHAR_MAX instead of literal
124 constant.
125 (gfc_simplify_ichar): Get the result from unsinged char and in the
126 range 0 to UCHAR_MAX instead of CHAR_MIN to CHAR_MAX.
127
128 2005-01-08 Erik Edelmann <eedelman@gcc.gnu.org>
129
130 PR fortran/25093
131 * resolve.c (resolve_fntype): Check that PUBLIC functions
132 aren't of PRIVATE type.
133
134 2005-01-07 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
135
136 * decl.c (gfc_match_function_decl): Correctly error out in case of
137 omitted function argument list.
138
139 2006-01-07 Paul Thomas <pault@gcc.gnu.org>
140
141 PR fortran/22146
142 * trans-array.c (gfc_reverse_ss): Remove static attribute.
143 (gfc_walk_elemental_function_args): Replace gfc_expr * argument for
144 the function call with the corresponding gfc_actual_arglist*. Change
145 code accordingly.
146 (gfc_walk_function_expr): Call to gfc_walk_elemental_function_args
147 now requires the actual argument list instead of the expression for
148 the function call.
149 * trans-array.h: Modify the prototype for gfc_walk_elemental_function_args
150 and provide a prototype for gfc_reverse_ss.
151 * trans-stmt.h (gfc_trans_call): Add the scalarization code for the case
152 where an elemental subroutine has array valued actual arguments.
153
154 PR fortran/25029
155 PR fortran/21256
156 PR fortran/20868
157 PR fortran/20870
158 * resolve.c (check_assumed_size_reference): New function to check for upper
159 bound in assumed size array references.
160 (resolve_assumed_size_actual): New function to do a very restricted scan
161 of actual argument expressions of those procedures for which incomplete
162 assumed size array references are not allowed.
163 (resolve_function, resolve_call): Switch off assumed size checking of
164 actual arguments, except for elemental procedures and intrinsic
165 inquiry functions, in some circumstances.
166 (resolve_variable): Call check_assumed_size_reference.
167
168 2006-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
169
170 PR fortran/24268
171 * io.c (next_char_not_space): New function that returns the next
172 character that is not white space.
173 (format_lex): Use the new function to skip whitespace within
174 a format string.
175
176 2006-01-05 Erik Edelmann <eedelman@gcc.gnu.org>
177
178 PR fortran/23675
179 * expr.c (gfc_expr_set_symbols_referenced): New function.
180 * gfortran.h: Add a function prototype for it.
181 * resolve.c (resolve_function): Use it for
182 use associated character functions lengths.
183 * expr.c, gfortran.h, resolve.c: Updated copyright years.
184
185 2006-01-03 Steven G. Kargl <kargls@comcast.net>
186
187 PR fortran/25101
188 * resolve.c (resolve_forall_iterators): Check for scalar variables;
189 Check stride is nonzero.
190
191 2006-01-02 Steven G. Kargl <kargls@comcast.net>
192
193 PR fortran/24640
194 * parse.c (next_free): Check for whitespace after the label.
195 * match.c (gfc_match_small_literal_int): Initialize cnt variable.
196
197 2006-01-01 Steven G. Kargl <kargls@comcast.net>
198
199 * ChangeLog: Split previous years into ...
200 * ChangeLog-2002: here.
201 * ChangeLog-2003: here.
202 * ChangeLog-2004: here.
203 * ChangeLog-2005: here.