]>
Commit | Line | Data |
---|---|---|
b49ceb45 JM |
1 | 2005-07-21 James A. Morrison <phython@gcc.gnu.org> |
2 | ||
3 | * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs. | |
4 | (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED. | |
5 | ||
30c54de9 DD |
6 | 2005-07-21 DJ Delorie <dj@redhat.com> |
7 | ||
8 | * toplev.c (warn_deprecated_use): Add warning control to warning | |
9 | call. | |
c303630a DD |
10 | * c-typeck.c (parser_build_binary_op): Likewise. |
11 | (c_finish_if_stmt): Likewise. | |
30480ec4 DD |
12 | * c-common.c (check_function_sentinel): Likewise. |
13 | (check_nonnull_arg): Likewise. | |
30c54de9 | 14 | |
95a8c155 RH |
15 | 2005-07-21 Richard Henderson <rth@redhat.com> |
16 | ||
17 | PR tree-opt/22504 | |
18 | * tree-complex.c (complex_ssa_name_components): New. | |
19 | (cvc_lookup): Allow entry not found. | |
20 | (create_components): Remove. | |
21 | (create_one_component_var, get_component_var): New. | |
22 | (get_component_ssa_name, set_component_ssa_name): New. | |
23 | (extract_component): Use get_component_ssa_name. | |
24 | (update_complex_components): Use set_component_ssa_name. | |
25 | (update_complex_components_on_edge): Likewise. | |
26 | (update_phi_components): Create new PHI nodes directly, instead | |
27 | of adding insns to edges. | |
28 | (tree_lower_complex): Allocate and free complex_variable_components | |
29 | and complex_ssa_name_components here. | |
30 | ||
c05a0766 DB |
31 | 2005-07-20 Daniel Berlin <dberlin@dberlin.org> |
32 | ||
33 | * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT, | |
34 | revert to returning false. | |
35 | ||
de343c8d UB |
36 | 2005-07-21 Uros Bizjak <uros@kss-loka.si> |
37 | ||
38 | PR target/21149 | |
39 | * config/i386/i386.md (sse_movhlps): Fix vec_select values. | |
40 | ||
5acc26ef UB |
41 | 2005-07-21 Uros Bizjak <uros@kss-loka.si> |
42 | ||
43 | PR target/22576 | |
44 | * config/i386/i386.md (cmpxf): Change operand constraints | |
45 | to "nonmemory_operand". | |
46 | ||
61cb44fe AP |
47 | 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> |
48 | ||
49 | * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2. | |
50 | ||
e2fe73f6 AP |
51 | 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> |
52 | ||
53 | PR middle-end/21180 | |
54 | * fold-const.c (fold_build1): Add checksum for the operands. | |
55 | (fold_build2): Likewise. | |
56 | (fold_build3): Likewise. | |
57 | ||
9d24eb54 AP |
58 | 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> |
59 | ||
60 | PR middle-end/19055 | |
61 | * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X". | |
62 | ||
b2e0afa0 PB |
63 | 2005-07-21 Paolo Bonzini <bonzini@gnu.org> |
64 | ||
65 | * common.opt (-fforward-propagate): Committed by mistake, | |
66 | removed. | |
67 | ||
2e48874f VR |
68 | 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
69 | ||
70 | * reg-stack.c: Fix comment typo(s). | |
71 | * tree-ssa-operands.c: Likewise. | |
72 | * tree-vectorizer: Likewise. | |
73 | ||
889d8465 NC |
74 | 2005-07-21 Nick Clifton <nickc@redhat.com> |
75 | ||
76 | * config/sh/symbian.c: Replace C++ style line comments with C | |
77 | style line comments. | |
78 | (symbian_add_attribute): Do not use a ? operator on the LHS of | |
79 | an assignment. | |
80 | (sh_symbian_handle_dll_attribute): Change the type of the | |
81 | method vector to "VEC(tree,gc)*" and use vector accessor | |
82 | macros to walk over the elements. | |
83 | (symbian_export_vtable_and_rtti_p): Likewise. | |
84 | (symbian_class_needs_attribute_p): Likewise. | |
85 | ||
2fab365e PB |
86 | 2005-07-21 Paolo Bonzini <bonzini@gnu.org> |
87 | ||
88 | PR target/22085 | |
89 | * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not | |
90 | initialize targetm.resolve_overloaded_builtin here. | |
91 | (altivec_expand_overloaded_builtin): Make it non-static. | |
92 | * config/rs6000/rs6000-protos.h | |
93 | (altivec_expand_overloaded_builtin): New prototype. | |
94 | * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize | |
95 | targetm.resolve_overloaded_builtin here. | |
96 | * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise. | |
97 | ||
f9cc1a70 PB |
98 | 2005-07-21 Paolo Bonzini <bonzini@gnu.org> |
99 | Zdenek Dvorak <dvorakz@suse.cz> | |
100 | ||
101 | PR tree-optimization/19210 | |
102 | * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations): | |
103 | New. | |
104 | * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o. | |
105 | * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations, | |
106 | rely on unproven assumptions. | |
107 | * predict.c (predict_loops): Adjust call to number_of_iterations_exit. | |
108 | * tree-flow.h (number_of_iterations_exit): Add final parameter. | |
109 | * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call | |
110 | to number_of_iterations_exit. | |
111 | * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise. | |
112 | * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise. | |
113 | * tree-ssa-loop-niter.c (find_loop_niter, | |
114 | estimate_numbers_of_iterations_loop): Likewise. | |
115 | (number_of_iterations_exit): Honor the new options. | |
116 | * doc/invoke.texi (Wunsafe-loop-optimizations, | |
117 | funsafe-loop-optimizations): Document them. | |
118 | ||
cb83c2ec RS |
119 | 2005-07-21 Richard Sandiford <richard@codesourcery.com> |
120 | ||
121 | PR rtl-optimization/22167 | |
122 | * gcse.c (hoist_code): Fix hoist_exprs[] check. | |
123 | ||
5e5cbbfb AN |
124 | 2005-07-20 Adam Nemet <anemet@lnxw.com> |
125 | ||
126 | * config/rs6000/lynx.h: Mark __do_global_ctors_aux and | |
127 | __do_global_dtors_aux longcall. | |
128 | ||
c2acaf06 KH |
129 | 2005-07-20 Kazu Hirata <kazu@cs.umass.edu> |
130 | ||
131 | * gensupport.c (old_preds): Don't reference PREDICATE_CODES. | |
132 | (old_special_pred_table): Don't reference | |
133 | SPECIAL_MODE_PREDICATES. | |
134 | * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison. | |
135 | * config/arc/arc.h: Don't mention PREDICATE_CODES. | |
136 | * config/sh/predicates.h: Don't mention | |
137 | SPECIAL_MODE_PREDICATES. | |
138 | * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): | |
139 | Remove. | |
140 | ||
38b2d076 DD |
141 | 2005-07-20 DJ Delorie <dj@redhat.com> |
142 | ||
143 | * config.gcc: Add m32c-elf support. | |
144 | ||
145 | * doc/contrib.texi: Mention m32c. | |
146 | * doc/extend.texi: Document m32c extensions. | |
147 | * doc/install.texi: Mention m32c. | |
148 | * doc/invoke.texi: Document m32c options. | |
149 | * doc/md.texi: Document m32c constraints. | |
150 | ||
151 | * config/m32c/addsub.md: New file. | |
152 | * config/m32c/bitops.md: New file. | |
153 | * config/m32c/cond.md: New file. | |
154 | * config/m32c/jump.md: New file. | |
155 | * config/m32c/m32c-lib1.S: New file. | |
156 | * config/m32c/m32c-lib2.c: New file. | |
157 | * config/m32c/m32c-modes.def: New file. | |
158 | * config/m32c/m32c-pragma.c: New file. | |
159 | * config/m32c/m32c-protos.h: New file. | |
160 | * config/m32c/m32c.abi: New file. | |
161 | * config/m32c/m32c.c: New file. | |
162 | * config/m32c/m32c.h: New file. | |
163 | * config/m32c/m32c.md: New file. | |
164 | * config/m32c/m32c.opt: New file. | |
165 | * config/m32c/minmax.md: New file. | |
166 | * config/m32c/mov.md: New file. | |
167 | * config/m32c/muldiv.md: New file. | |
168 | * config/m32c/predicates.md: New file. | |
169 | * config/m32c/prologue.md: New file. | |
170 | * config/m32c/shift.md: New file. | |
171 | * config/m32c/t-m32c: New file. | |
172 | ||
50b69666 KK |
173 | 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org> |
174 | ||
175 | * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants. | |
176 | (stack_protect_set, stack_protect_test): New expanders. | |
177 | (stack_protect_set_si, stack_protect_set_si_media, | |
178 | stack_protect_set_di_media, stack_protect_test_si, | |
179 | stack_protect_test_si_media, stack_protect_test_di_media): | |
180 | New insns. | |
181 | ||
71b50543 AP |
182 | 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu> |
183 | ||
184 | * c-typeck.c (output_init_element): Don't copy the INTEGER_CST. | |
185 | ||
4db8040c JM |
186 | 2005-07-20 James A. Morrison <phython@gcc.gnu.org> |
187 | ||
188 | * tree.h (tree_expr_nonzero_p): Export. | |
189 | * fold-const.c (tree_expr_nonzero_p): Likewise. | |
190 | Return true for CALL_EXPRs that are alloca calls. | |
191 | (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs | |
192 | against zero. | |
193 | * tree-flow.h (expr_computes_nonzero): Remove. | |
194 | * tree-vrp.c (expr_computes_nonzero): Remove. | |
195 | (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p. | |
196 | (extract_range_from_unary_expr): Likewise. | |
197 | * tree-ssa-dom.c (record_equivalences_from_stmt): Use | |
198 | tree_expr_nonzero_p. | |
199 | ||
6d459e2b BS |
200 | 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com> |
201 | ||
09350e36 BS |
202 | * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare. |
203 | * config/bfin/bfin.c (legitimize_pic_address): Now static. Take | |
204 | extra arg "picreg" and use it instead of pic_offset_table_rtx. | |
205 | All callers changed. | |
206 | (frame_related_constant_load): New arg "related" which controls | |
207 | setting of RTX_FRAME_RELATED_P. All callers changed. | |
208 | (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue. | |
209 | (bfin_expand_prologue): Add stack limit checking. | |
210 | * config/bfin/bfin.md (trapifcc): New pattern. | |
211 | ||
05905337 BS |
212 | * config/bfin/bfin.c: Include "langhooks.h". |
213 | (def_builtin): Go through lang_hooks to call builtin_function. | |
214 | ||
6d459e2b BS |
215 | * config/bfin/bfin-protos.h (bfin_longcall_p): Declare. |
216 | * config/bfin/predicates.md (symbol_ref_operand): New. | |
217 | (call_insn_operand): Delete. All callers changed to use | |
218 | register_no_elim_operand. | |
219 | * config/bfin/bfin.c (init_cumulative_args): Initialize the new | |
220 | call_cookie field. | |
221 | (function_arg): Use it to generate the call's operand 2. | |
222 | (bfin_longcall_p): New function. | |
223 | (bfin_expand_call): Extra arg "cookie". All callers and declaration | |
224 | changed. Emit extra USE in the pattern. Use bfin_longcall_p to | |
225 | determine if the address needs to be in a REG. | |
226 | (bfin_handle_longcall_attribute): New function. | |
227 | (bfin_attribute_table): Add "longcall" and "shortcall". | |
228 | * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros. | |
229 | (CUMULATIVE_ARGS): New member call_cookie. | |
230 | (PREDICATE_CODES): Add symbol_ref_operand. | |
231 | * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add | |
232 | extra USE to the pattern. | |
233 | (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol): | |
234 | New patterns, split off call_insn, sibcall_insn, call_value_insn and | |
235 | sibcall_value_insn; now the new patterns handle direct calls and the | |
236 | old ones indirect calls. | |
237 | * doc/extend.texi: Mention Blackfin in longcall/shortcall docs. | |
238 | ||
67135ef4 ZD |
239 | 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz> |
240 | ||
241 | * doc/trouble.texi: Update section on handling of empty loops. | |
242 | ||
fdda361d KH |
243 | 2005-07-20 Kazu Hirata <kazu@codesourcery.com> |
244 | ||
245 | * config.gcc: Remove support for sparc-*-openbsd*, | |
246 | i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*, | |
247 | ns32k-*-netbsd*. | |
248 | * config.host: Remove support for i860-*-sysv4* as a host. | |
249 | * config/i860/*, config/ip2k/*, config/ns32k/*, | |
250 | config/sparc/openbsd.h, config/sparc/t-openbsd: Remove. | |
251 | * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't | |
252 | mention obsolete ports. | |
253 | ||
96a2347e KK |
254 | 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org> |
255 | ||
256 | * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for | |
257 | soft frame pointer. | |
258 | (sh_expand_prologue): Use hard_frame_pointer_rtx instead | |
259 | of frame_pointer_rtx. | |
260 | (sh_expand_epilogue): Likewise. | |
261 | (sh_set_return_address): Likewise. | |
262 | (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM | |
263 | instead of FRAME_POINTER_REGNUM if needed. Add elimination | |
264 | offsets from FRAME_POINTER_REGNUM. | |
265 | * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp. | |
266 | (sh_register_names): Add initializer for sfp. | |
267 | (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM. | |
268 | (VALID_REGISTER_P): Likewise. | |
269 | (FIRST_PSEUDO_REGISTER): Update. | |
270 | (DWARF_FRAME_REGISTERS): Define. | |
271 | (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp. | |
272 | (HARD_FRAME_POINTER_REGNUM): Define. | |
273 | (FRAME_POINTER_REGNUM): Redefine. | |
274 | (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM, | |
275 | but HARD_FRAME_POINTER_REGNUM instead. Add eliminations | |
276 | from FRAME_POINTER_REGNUM. | |
277 | (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of | |
278 | FRAME_POINTER_REGNUM. | |
279 | (REG_CLASS_CONTENTS): Add sfp. | |
280 | (REG_ALLOC_ORDER): Likewise. | |
281 | (FRAME_GROWS_DOWNWARD): Set to 1. Update comment. | |
282 | (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead | |
283 | of frame_pointer_rtx. | |
284 | (LEGITIMIZE_RELOAD_ADDRESS): Likewise. | |
285 | ||
1ade5842 JM |
286 | 2005-07-19 James A. Morrison <phython@gcc.gnu.org> |
287 | ||
288 | * fold-const.c (tree_expr_nonnegative_p): Only return true for | |
289 | ABS_EXPR when flag_wrapv is false because of INT_MIN. | |
290 | (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument | |
291 | of an ABS_EXPR. | |
292 | (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into | |
293 | ABS_EXPR<x>. | |
294 | ||
4038c495 GB |
295 | 2005-07-20 Giovanni Bajo <giovannibajo@libero.it> |
296 | ||
297 | Make CONSTRUCTOR use VEC to store initializers. | |
298 | * c-common.c (complete_array_type): Update to cope with VEC in | |
299 | CONSTRUCTOR_ELTS. | |
300 | * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts. | |
301 | (pp_c_constructor_elts): New function. | |
302 | * c-pretty-print.h (pp_c_constructor_elts): Declare. | |
303 | * c-typeck.c (build_function_call, build_c_cast, digest_init, | |
304 | struct constructor_stack, struct initializer_stack, | |
305 | constructor_elements, push_init_level, pop_init_level, | |
306 | add_pending_init, find_init_member, output_init_element): Update to | |
307 | cope with VEC in CONSTRUCTOR_ELTS. | |
308 | * coverage.c (build_fn_info_value, build_ctr_info_value, | |
309 | build_gcov_info): Likewise. | |
310 | * expr.c (categorize_ctor_elements_1, store_constructor, | |
311 | expand_expr_real_1): Likewise. | |
312 | * fold-const.c (fold_ternary): Likewise. | |
313 | * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl, | |
314 | gimplify_init_constructor, gimplify_expr): Likewise. | |
315 | * tree-dump.c (dequeue_and_dump): Likewise. | |
316 | * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR | |
317 | node. | |
318 | * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in | |
319 | CONSTRUCTOR_ELTS. | |
320 | * tree-sra.c (generate_element_init_1): Likewise. | |
321 | * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise. | |
322 | * tree-ssa-operands.c (get_expr_operands): Likewise. | |
323 | * tree-vect-generic.c (expand_vector_piecewise): Likewise. | |
324 | * tree-vect-transform.c (vect_get_vec_def_for_operand): | |
325 | (get_initial_def_for_reduction): Likewise. | |
326 | * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses | |
327 | value handle in annotations. | |
328 | * tree.c (tree_node_kind, tree_code_size, make_node_stat, | |
329 | tree_node_structure): Add support for constr_kind. | |
330 | (build_vector_from_ctor, build_constructor_single, | |
331 | build_constructor_from_list): New functions. | |
332 | (build_constructor): Update to take a VEC instead of a TREE_LIST. | |
333 | (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree): | |
334 | Update to cope with VEC in CONSTRUCTOR_ELTS. | |
335 | * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node. | |
336 | * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT, | |
337 | CONSTRUCTOR_APPEND_ELT): New macros. | |
338 | (struct constructor_elt, struct tree_constructor): New data types. | |
339 | (union tree_node): Add tree_constructor field. | |
340 | * treestruct.def: Define TS_CONSTRUCTOR. | |
341 | * varasm.c (const_hash_1, compare_constant, copy_constant, | |
342 | compute_reloc_for_constant, output_addressed_constants, | |
343 | initializer_constant_valid_p, output_constant, | |
344 | array_size_for_constructor, output_constructor): Update to cope with | |
345 | VEC in CONSTRUCTOR_ELTS. | |
346 | * vec.h (VEC_empty, VEC_copy): New macros. | |
347 | ||
f37d7c60 DP |
348 | 2005-07-19 Devang Patel <dpatel@apple.com> |
349 | ||
350 | * dbxout.c (dbxout_type): Check Objective-C++ lang. | |
351 | ||
af62f6f9 RH |
352 | 2005-07-19 Richard Henderson <rth@redhat.com> |
353 | ||
354 | PR tree-opt/22278 | |
355 | * gimplify.c (gimplify_expr): Use main variant type for the temp | |
356 | destination for a discarded volatile read. | |
357 | * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide | |
358 | casts between non-void types that change volatility. | |
359 | ||
b9b8dde3 DD |
360 | 2005-07-15 DJ Delorie <dj@redhat.com> |
361 | ||
362 | * toplev.h: Add comment about the first parameter for warning(). | |
363 | * errors.h: Likewise. | |
364 | ||
365 | * c.opt (Wpragmas): New. | |
366 | * doc/invoke.texi: Document it. | |
367 | ||
368 | * function.c (do_warn_unused_parameter): Add warning control to | |
369 | warning call. | |
370 | * c-decl.c (warn_if_shadowing): Likewise. | |
371 | * c-lex.c (cb_def_pragma): Likewise. | |
372 | * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise. | |
373 | (pop_alignment): Likewise. | |
374 | (handle_pragma_pack): Likewise. | |
375 | (apply_pragma_weak): Likewise. | |
376 | (handle_pragma_weak): Likewise. | |
377 | (handle_pragma_redefine_extname): Likewise. | |
378 | (add_to_renaming_pragma_list): Likewise. | |
379 | (handle_pragma_extern_prefix): Likewise. | |
380 | (maybe_apply_renaming_pragma): Likewise. | |
381 | (handle_pragma_visibility): Likewise. | |
382 | ||
383 | * config/c4x/c4x-c.c (BAD): Likewise. | |
384 | (c4x_parse_pragma): Likewise. | |
385 | * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise. | |
386 | * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise. | |
387 | (rs6000_pragma_longcall): Likewise. | |
388 | * config/v850/v850-c.c (pop_data_area): Likewise. | |
389 | (ghs_pragma_section): Likewise. | |
390 | (ghs_pragma_section): Likewise. | |
391 | (ghs_pragma_interrupt): Likewise. | |
392 | (ghs_pragma_starttda): Likewise. | |
393 | (ghs_pragma_startsda): Likewise. | |
394 | (ghs_pragma_startzda): Likewise. | |
395 | (ghs_pragma_endtda): Likewise. | |
396 | (ghs_pragma_endsda): Likewise. | |
397 | (ghs_pragma_endzda): Likewise. | |
398 | ||
6a9a79a8 DB |
399 | 2005-07-19 Danny Berlin <dberlin@dberlin.org> |
400 | Kenneth Zadeck <zadeck@naturalbridge.com> | |
401 | ||
402 | * Makefile.in: Removed tree-promote-statics.c | |
403 | * tree-promote-statics.c: Removed. | |
404 | * common.opt: Removed flag-promote-statics. | |
405 | * opts.c: Ditto. | |
406 | * passes.c: Removed tree-promote-statics pass. | |
407 | * tree-pass.h: Ditto. | |
408 | * timevar.def: Removed TV_PROMOTE_STATICS. | |
409 | ||
410 | ||
0219cf3d GP |
411 | 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com> |
412 | ||
413 | * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8, | |
414 | and *-*-freebsd9. | |
415 | * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto. | |
416 | ||
7876a414 KG |
417 | 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
418 | ||
419 | PR c/22476 | |
420 | * c-common.c (check_function_arguments): Call | |
421 | 'check_function_format' if either -Wformat or | |
422 | -Wmissing-format-attribute are specified. | |
423 | * c-format.c (check_function_format): Check -Wformat before | |
424 | calling 'check_format_info'. | |
425 | * c-opts.c (c_common_post_options): Don't warn for | |
426 | -Wmissing-format-attribute without -Wformat. | |
427 | * c-typeck.c (convert_for_assignment): Detect additional cases for | |
428 | -Wmissing-format-attribute. | |
429 | * doc/invoke.texi (-Wmissing-format-attribute): Document new | |
430 | behavior. | |
431 | ||
98ea7437 RG |
432 | 2005-07-19 Richard Guenther <rguenther@suse.de> |
433 | ||
434 | * config/i386/i386.md (lrint<mode>2): Use temporary | |
435 | instead of clobbering non-existent memory. | |
436 | ||
89a0b917 NC |
437 | 2005-07-19 Nick Clifton <nickc@redhat.com> |
438 | ||
439 | * config/avr/avr.c (legitimate_address_p): Fix debugging print | |
440 | statement to avoid displaying ASCII control characters. | |
441 | ||
dfea6c85 BE |
442 | 2005-07-19 Ben Elliston <bje@au.ibm.com> |
443 | ||
444 | * bt-load.c (link_btr_uses): Fix uninitialised warnings. | |
445 | * cfganal.c (find_edge_index): Ditto. | |
446 | * combine.c (combine_instructions): Ditto. | |
447 | * ddg.c (create_scc): Ditto. | |
448 | (find_successors): Ditto. | |
449 | (find_predecessors): Ditto. | |
450 | (find_nodes_on_paths): Ditto. | |
451 | (longest_simple_path): Ditto. | |
452 | * flow.c (update_life_info): Ditto. | |
453 | (count_or_remove_death_notes): Ditto. | |
454 | (clear_log_links): Ditto. | |
455 | * modulo-sched.c (generate_reg_moves): Ditto. | |
456 | (find_max_asap): Ditto. | |
457 | (find_max_hv_min_mob): Ditto. | |
458 | (find_max_dv_min_mob): Ditto. | |
459 | * sbitmap.c (sbitmap_first_set_bit): Ditto. | |
460 | * sched-rgn.c (extract_edgelst): Ditto. | |
461 | * tree-into-ssa.c (prepare_names_to_update): Ditto. | |
462 | (dump_update_ssa): Ditto. | |
463 | (ssa_names_to_replace) Ditto. | |
464 | (switch_virtuals_to_full_rewrite): Ditto. | |
465 | (update_ssa): Ditto. | |
466 | * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto. | |
467 | ||
b9d33488 DB |
468 | 2005-07-18 Daniel Berlin <dberlin@dberlin.org> |
469 | ||
470 | Fix PR tree-optimization/22483 | |
471 | ||
472 | * tree-complex.c (create_components): Use | |
473 | safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE. | |
474 | * tree-flow-inline.h (fill_referenced_var_vec): New function. | |
475 | * tree-flow.h (safe_referenced_var_iterator): New structure. | |
476 | (FOR_EACH_REFERENCED_VAR_SAFE): New macro. | |
477 | * tree-ssa-alias.c (setup_pointers_and_addressables): Use | |
478 | safe_referenced_var iterator. | |
479 | (add_type_alias): Ditto. | |
480 | ||
9fa26457 SB |
481 | 2005-07-19 Steven Bosscher <stevenb@suse.de> |
482 | ||
483 | * loop-init.c (rest_of_handle_loop2): Remove. | |
484 | (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants, | |
485 | rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions. | |
486 | (pass_rtl_loop_init, pass_rtl_loop_done, | |
487 | pass_rtl_move_loop_invariants, pass_rtl_unswitch, | |
488 | pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes. | |
489 | * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done, | |
490 | pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init, | |
491 | pass_tree_loop_done, and pass_tree_unswitch. | |
492 | (gate_loop): Rename to gate_tree_loop. | |
493 | * passes.c (init_optimization_passes): Update for renamed tree | |
494 | loop passes. Add the new loop2 passes as subpasses of loop2. | |
495 | * tree-pass.h: Add extern declarations for the new loop2 subpasses. | |
496 | Update for the renamed tree loop passes. | |
497 | ||
7825308e ILT |
498 | 2005-07-18 Ian Lance Taylor <ian@airs.com> |
499 | ||
500 | PR middle-end/22057 | |
501 | * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder | |
502 | blocks when optimizing. | |
503 | ||
2928d0f8 SE |
504 | 2005-07-18 Steve Ellcey <sje@cup.hp.com> |
505 | ||
506 | * common.opt (frename-registers): Initialize to 2. | |
507 | (fweb): Ditto. | |
508 | (fgcse-after-reload): Ditto. | |
509 | * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE. | |
510 | (process_options): Only change flag_web, flag_rename_registers, | |
511 | and flag_rerun_cse_after_loop if not explicitly set by user. | |
512 | ||
28356f52 JB |
513 | 2005-07-18 Jan Beulich <jbeulich@novell.com> |
514 | ||
515 | * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc, | |
516 | ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode | |
517 | in 64-bit mode the same as DImode in 32-bit mode. | |
518 | (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr, | |
519 | ix86_split_lshr): Likewise. Rename to no longer refer to a specific | |
520 | mode. Add new mode parameter. | |
521 | * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'. | |
522 | * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3, | |
523 | x86_64_shift_adj): New expanders. | |
524 | (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1, | |
525 | *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New | |
526 | insns. | |
527 | Respective new splitters. Use renamed shift splitter helpers in 32-bit | |
528 | DImode shift splitters. | |
529 | * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr, | |
530 | ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new | |
531 | mode parameter. | |
532 | ||
422edd6f JB |
533 | 2005-07-18 Jan Beulich <jbeulich@novell.com> |
534 | ||
535 | * i386.md (movdi_extzv_1): New. | |
536 | (zero_extendhidi2): Combine alternatives and never force use of | |
537 | REX64 prefix. | |
538 | (zero_extendqidi2): Likewise. Don't restrict input selection. | |
539 | ||
c625053b DB |
540 | 2005-07-17 Daniel Berlin <dberlin@dberlin.org> |
541 | ||
542 | Fix PR tree-optimization/22531 | |
543 | * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the | |
544 | moment. | |
545 | ||
3b1355f3 DB |
546 | 2005-07-17 Daniel Berlin <dberlin@dberlin.org> |
547 | ||
548 | * tree-promote-statics.c (pass_promote_statics): Change dump file | |
549 | name. | |
550 | ||
551 | 2005-07-17 Daniel Berlin <dberlin@dberlin.org> | |
45159bf6 DB |
552 | |
553 | * tree-optimize.c (init_tree_optimization_passes): Add | |
554 | pass_eliminate_useless_stores pass. | |
555 | * tree-pass.h (pass_eliminate_useless_stores): New pass structure. | |
556 | * tree-ssa-pre.c (is_copy_stmt): New function. | |
557 | (follow_copies_till_vuse): Ditto. | |
558 | (do_eustores): Ditto. | |
559 | (gate_eustores): Ditto. | |
560 | ||
7544a87f RH |
561 | 2005-07-16 Richard Henderson <rth@redhat.com> |
562 | ||
563 | * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit. | |
564 | ||
bf0d50f1 KZ |
565 | 2005-07-16 Danny Berlin <dberlin@dberlin.org> |
566 | Kenneth Zadeck <zadeck@naturalbridge.com> | |
567 | ||
568 | * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c, | |
569 | ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c, | |
570 | ipa-type-escape.h, tree-promote-statics.c | |
571 | * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c, | |
572 | ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h, | |
573 | tree-promote-statics.c: new files. | |
574 | * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p, | |
575 | nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1, | |
576 | int nonlocal_set_p, mark_constant_function): Deleted. | |
577 | (rest_of_handle_cfg): Removed call to mark_constant_function. | |
578 | (nonoverlapping_component_refs_p): Added calls to support | |
579 | type based aliasing. | |
580 | * tree-ssa-alias.c (may_alias_p, | |
581 | compute_flow_insensitive_aliasing): Ditto. | |
582 | * calls.c (flags_from_decl_or_type): Removed reference to | |
583 | cgraph_rtl_info. | |
bf0d50f1 KZ |
584 | * c-typeck.c (convert_arguments): Make builtins tolerant of having |
585 | too many arguments. This is necessary for Spec 2000. | |
586 | * cgraph.h (const_function, pure_function): Removed. | |
587 | * common.opt: Added "fipa-pure-const", "fipa-reference", | |
588 | "fipa-type-escape", and "ftree-promote-static". | |
589 | * opts.c: Ditto. | |
590 | * passes.c: Added ipa and tree-promote-statics passes. | |
591 | * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE, | |
592 | TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS. | |
bf0d50f1 KZ |
593 | * tree-dfa.c (referenced_var_lookup_if_exists): New function. |
594 | * tree-flow.h: Added exposed sra calls and addition of | |
595 | reference_vars_info field for FUNCTION_DECLS. | |
596 | * tree-pass.h: Added passes. | |
597 | * tree-sra.c: (sra_init_cache): New function. | |
598 | (sra_insert_before, sra_insert_after) Made public. | |
599 | (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p | |
600 | and made public. | |
601 | * tree-ssa-alias.c (dump_alias_stats): Added stats for type based | |
602 | aliasing. (may_alias_p): Added code to use type escape analysis to | |
603 | improve alias sets. | |
604 | * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and | |
605 | code to prune clobbers of static variables based on information | |
606 | produced in ipa-reference pass. Changed call clobbering so that | |
607 | statics are not marked as clobbered if the call does not clobber | |
608 | them. | |
609 | ||
b6e0bdbd DB |
610 | 2005-07-16 Daniel Berlin <dberlin@dberlin.org> |
611 | ||
612 | * tree-ssa-structalias.c (need_to_solve): Need to check for preds, | |
613 | too. | |
614 | ||
2c00bd42 EB |
615 | 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr> |
616 | ||
617 | * doc/install.texi (*-*-solaris2*): Document recommended version | |
618 | of GNU binutils and mention GNU linker problem on Solaris 10. | |
619 | ||
0b359b01 JM |
620 | 2005-07-16 Joseph S. Myers <joseph@codesourcery.com> |
621 | ||
622 | PR c/22421 | |
623 | * c-decl.c (c_build_bitfield_integer_type): New function. | |
624 | (finish_struct): Call it. | |
625 | * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types. | |
626 | ||
8fcef540 KG |
627 | 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
628 | ||
629 | * c-typeck.c (digest_init): Call 'convert_for_assignment' | |
630 | before returning. | |
631 | ||
84fc24e8 JH |
632 | 2005-07-16 Jan Hubicka <jh@suse.cz> |
633 | ||
634 | * cfg.c (update_bb_profile_for_threading): Fix profile updating. | |
635 | (scale_bbs_frequencies_int): Watch roundoff errors. | |
636 | * predict.c (return_prediction): Initialize return_stmt. | |
637 | ||
3258272f JH |
638 | 2005-07-16 Jan Hubicka <jh@suse.cz> |
639 | ||
640 | * profile.c (rest_of_handle_branch_prob): Fix handling of estimation | |
641 | after RTL profiling. | |
642 | ||
01c0a9fa AP |
643 | 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu> |
644 | ||
645 | PR middle-end/22398 | |
646 | * fold-const.c (build_range_check): Convert high/low to etype | |
647 | if we are only comparing against exp. | |
648 | ||
27811bfe DB |
649 | 2005-07-13 Daniel Berlin <dberlin@dberlin.org> |
650 | ||
651 | Fix PR tree-optimization/22376 | |
652 | * tree-ssa-structalias.c (build_constraint_graph): We really meant | |
653 | special var here. | |
654 | (need_to_solve): New function. | |
655 | (compute_points_to_sets): Use it. | |
656 | ||
2b151cb2 JH |
657 | 2005-07-15 Jan Hubicka <jh@suse.cz> |
658 | ||
659 | * cfg.c (update_bb_profile_for_threading): More diagnostic. | |
660 | * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block. | |
661 | ||
0691d1d4 RG |
662 | 2005-07-15 Richard Guenther <rguenther@suse.de> |
663 | ||
664 | * c-common.c (handle_flatten_attribute): New function. | |
665 | Add flatten function attribute. | |
666 | * doc/extend.texi: Document flatten function attribute. | |
667 | * Makefile.in (ipa-inline.o): Depend on hashtab.h. | |
668 | * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node): | |
669 | New functions. | |
670 | (cgraph_decide_inlining): Handle functions with flatten | |
671 | attribute. | |
672 | ||
9f0076e5 DE |
673 | 2005-07-14 David Edelsohn <edelsohn@gnu.org> |
674 | ||
675 | * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC, | |
676 | UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG, | |
677 | UNSPEC_XCHG, UNSPEC_AND): New. | |
678 | (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, | |
679 | UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete. | |
680 | * config/rs6000/sync.md (FETCHOP): New code macro. | |
681 | (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr): | |
682 | New code attrs. | |
683 | (memory_barrier, sync_internal): Use unspec instead of unspec_volatile. | |
684 | (sync_compare_and_swap<mode>): Same. | |
685 | (sync_lock_test_and_set<mode>): Same. | |
686 | (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync | |
687 | for QImode and HImode, and not PPC405. | |
688 | (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same. | |
689 | (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same. | |
690 | (sync_<fetchop>{si,di}_internal): New. | |
691 | (sync_nand{si,di}_internal): New. | |
692 | (sync_old_<fetchop>{si,di}_internal): New. | |
693 | (sync_old_nand{si,di}_internal): New | |
694 | (sync_new_<fetchop>{si,di}_internal): New. | |
695 | (sync_new_nand{si,di}_internal): New. | |
696 | (atomic_and{si,di}): New. | |
697 | (sync_new_nand{si,di}_internal): New. | |
698 | (atomic_and{si,di}): New. | |
699 | (sync_add<mode>_internal): Delete. | |
700 | (sync_addshort_internal): Use unspec instead of unspec_volatile. | |
701 | (sync_sub<mode>_internal): Delte. | |
702 | (sync_subshort_internal): New. | |
703 | (sync_andsi_internal): Use unspec instead of unspec_volatile. | |
704 | (sync_anddi_internal): Delete. | |
705 | (sync_boolsi_internal): Use unspec instead of unspec_volatile. | |
706 | (sync_booldi_internal): Delete. | |
707 | (sync_boolc<mode>_internal): Delete. | |
708 | (sync_boolcshort_internal): Use unspec instead of unspec_volatile. | |
709 | (sync_boolc<mode>_internal2): Delete. | |
710 | (sync_boolcc<mode>_internal): Delete. | |
711 | (isync, lwsync): Use unspec instead of unspec_volatile. | |
712 | * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS. | |
713 | Revert UNSPEC_VOLATILE. | |
714 | (rs6000_split_atomic_op): New. | |
715 | * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare. | |
716 | ||
06277571 EC |
717 | 2005-07-14 Eric Christopher <echristo@redhat.com> |
718 | ||
719 | * config/mips/mips.c (mips_canonicalize_comparison): Cast | |
720 | argument of trunc_int_for_mode to unsigned HOST_WIDE_INT. | |
721 | ||
b838c72b EC |
722 | 2005-07-14 Eric Christopher <echristo@redhat.com> |
723 | ||
724 | * config/s390/t-tpf (SHLIB_MAPFILES): Remove. | |
725 | ||
3c341936 SB |
726 | 2005-07-14 Steven Bosscher <stevenb@suse.de> |
727 | ||
728 | PR tree-optimization/22230 | |
729 | * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in | |
730 | the computation of the four cross productions for "range op range". | |
731 | ||
704b6cb5 AO |
732 | 2005-07-14 Alexandre Oliva <aoliva@redhat.com> |
733 | Ulrich Weigand <uweigand@de.ibm.com> | |
734 | ||
735 | PR target/20126 | |
736 | * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV | |
737 | in some insn. | |
738 | ||
a771c4b3 UW |
739 | 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com> |
740 | ||
741 | * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition. | |
742 | ||
6f3113ed SE |
743 | 2005-07-14 Steve Ellcey <sje@cup.hp.com> |
744 | ||
745 | * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode. | |
746 | ||
cb1119b7 RG |
747 | 2005-07-14 Richard Guenther <rguenther@suse.de> |
748 | ||
749 | PR middle-end/22347 | |
750 | * config/i386/i386-protos.h (ix86_function_value): Change | |
751 | prototype to match new target hook. | |
752 | * config/i386/i386.c (ix86_value_regno): Change prototype | |
753 | to take extra type argument. | |
754 | (TARGET_FUNCTION_VALUE): Define. | |
755 | (ix86_function_ok_for_sibcall): Pass extra argument to | |
756 | ix86_value_regno, check return slot rtx for exact match. | |
757 | (ix86_function_value): Take extra parameter. Dispatch to | |
758 | ix86_value_regno with fndecl/fntype as provided. | |
759 | (ix86_value_regno): Handle extra type argument. | |
760 | * config/i386/i386.h (FUNCTION_VALUE): No longer define. | |
761 | ||
762 | * testsuite/gcc.target/i386/sseregparm-3.c: New testcase. | |
763 | * testsuite/gcc.target/i386/sseregparm-4.c: New testcase. | |
764 | * testsuite/gcc.target/i386/sseregparm-5.c: New testcase. | |
765 | * testsuite/gcc.target/i386/sseregparm-6.c: New testcase. | |
766 | * testsuite/gcc.target/i386/sseregparm-7.c: New testcase. | |
767 | ||
1d636cc6 RG |
768 | 2005-07-14 Richard Guenther <rguenther@suse.de> |
769 | ||
770 | * Makefile.in (explow.o, reg-stack.o): Depend on target.h. | |
771 | * calls.c (expand_call): Pass fntype to hard_function_value. | |
772 | (emit_library_call_value_1): Likewise. | |
773 | * explow.c: Include target.h. | |
774 | (hard_function_value): Take extra argument, the fntype. | |
775 | Use new target hook for function_value. | |
776 | * expr.h (hard_function_value): Change prototype. | |
777 | * function.c (aggregate_value_p): Pass 0 as fntype to | |
778 | hard_function_value. | |
779 | (assign_parms): Use new target hook for function_value. | |
780 | Pass 0 as fntype to hard_function_value. | |
781 | (expand_function_end): Likewise. | |
782 | * reg-stack.c: Include target.h. | |
783 | (stack_result): Use new target hook for function_value. | |
784 | * target-def.h: New target hook function_value. | |
785 | * target.h: Likewise. | |
786 | * targhooks.c (default_function_value): New function. | |
787 | * targhooks.h (default_function_value): Declare. | |
788 | ||
09d8cc0e ILT |
789 | 2005-07-13 Ian Lance Taylor <ian@airs.com> |
790 | ||
791 | * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define. | |
792 | ||
df1f6f31 JH |
793 | 2005-07-14 Jan Hubicka <jh@suse.cz> |
794 | ||
795 | * tree-dfa.c (dump_variable): Use default_def function. | |
796 | * tree-ssa-alias.c (dump_points_to_info): Likewise. | |
797 | * tree-ssa.c (verify_use): Likewise. | |
798 | * tree-ssanames.c (release_ssa_name): Likewise. | |
799 | * tree-tailcall.c (eliminate_tail_call): Likewise. | |
800 | (tree_optimize_tail_calls_1): Likewise. | |
801 | * tree-vrp.c (get_value_range): Likewise. | |
802 | ||
9ef0b1bd BE |
803 | 2005-07-14 Ben Elliston <bje@au.ibm.com> |
804 | ||
805 | * gcc.c (main): Compare language[0] with '*' when iterating over | |
806 | the infiles. | |
807 | ||
69950452 AS |
808 |