1 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
3 * optc-gen.awk: Fix comment typo.
5 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7 * pretty-print.c (pp_integer_with_precision): Use
10 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
12 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
14 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
16 * config/i386/i386.c (bdesc_ptest): Removed.
17 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
18 (bdesc_args): Add __builtin_ia32_ptestz128,
19 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
20 (ix86_init_mmx_sse_builtins): Updated.
21 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
22 (ix86_expand_builtin): Updated.
24 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
26 * tree-cfg.c (valid_fixed_convert_types_p): New function.
27 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
29 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
31 * value-prof.c (interesting_stringop_to_profile): Do not
32 return early for BUILT_IN_MEMPCPY.
34 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
36 * calls.c (expand_call): Don't use callgraph to increase
37 preferred_stack_boundary.
39 * cgraph.h (cgraph_rtl_info): Use unsigned on
40 preferred_incoming_stack_boundary.
42 * final.c (rest_of_clean_state): Use unsigned on
43 preferred_stack_boundary.
45 2008-05-09 Tom Tromey <tromey@redhat.com>
47 PR preprocessor/22231:
48 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
51 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
53 PR tree-optimization/36129
54 * tree-ssa-cpp.c: Include value-prof.h.
55 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
56 built-in function was folded to a constant.
57 * Makefile.in (tree-ssa-cpp.c): Depend on value-prof.h
59 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
60 Sebastian Pop <sebastian.pop@amd.com>
62 * tree-scalar-evolution.c: Document instantiate_scev.
63 (instantiate_parameters_1): Renamed instantiate_scev_1.
64 Don't use the same loop for instantiation_loop and evolution_loop.
65 (instantiate_scev): New.
66 (instantiate_parameters): Moved...
67 (resolve_mixers): Update call to instantiate_scev_1 to pass the
68 same loop twice. Maintains the semantics for this function.
69 * tree-scalar-evolution.h (instantiate_scev): Declare.
70 (instantiate_parameters): ...here. Now static inline.
71 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
72 instead of resolve_mixers.
74 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
76 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
78 2008-05-09 Tomas Bily <tbily@suse.cz>
80 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
81 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
82 * tree-ssa-structalias.c (get_constraint_for): Likewise.
83 * c-common.c (c_common_truthvalue_conversion): Likewise.
84 * tree-object-size.c (compute_object_offset): Likewise.
85 * tree-inline.c (estimate_num_insns_1): Likewise.
86 * varasm.c (const_hash_1, compare_constant, copy_constant)
87 (compute_reloc_for_constant, output_addressed_constants)
88 (initializer_constant_valid_p): Likewise.
89 * c-omp.c (check_omp_for_incr_expr): Likewise.
90 * gimplify.c (gimplify_expr): Likewise.
91 * c-typeck.c (c_finish_return): Likewise.
92 * tree-vectorizer.c (supportable_widening_operation)
93 (supportable_narrowing_operation): Likewise.
94 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
95 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
96 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
97 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
98 (descr_info_loc): Likewise.
99 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
100 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
101 (fold_unary): Likewise.
102 * builtins.c (get_pointer_alignment): Likewise.
103 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
104 (instantiate_parameters_1): Likewise.
105 * tree.c (expr_align, stabilize_reference): Likewise.
106 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
107 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
108 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
109 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
110 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
111 * c-common.c (c_alignof_expr, check_function_arguments_recurse): Likewise.
112 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
113 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
114 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
115 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
116 (forward_propagate_comparison)
117 (tree_ssa_forward_propagate_single_use_vars): Likewise.
118 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
119 * emit-rtl.c (component_ref_for_mem_expr)
120 (set_mem_attributes_minus_bitpos): Likewise.
121 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
122 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr): Likewise.
123 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
124 (build_function_call, pointer_diff, build_compound_expr)
125 (c_finish_return): Likewise.
126 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
127 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1): Likewise.
128 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
129 * expr.c (is_aligning_offset): Likewise.
130 * tree-ssa-alias.c (is_escape_site): Likewise.
131 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
132 (check_all_va_list_escapes): Likewise.
133 * tree-ssa-loop-ivopts.c (determine_base_object)
134 (determine_common_wider_type): Likewise.
135 * dojump.c (do_jump): Likewise.
136 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
137 * tree-gimple.c (is_gimple_cast): Likewise.
138 * fold-const.c (decode_field_reference, )
139 (fold_sign_changed_comparison, fold_unary, fold_comparison)
140 (fold_binary): Likewise.
141 * tree-ssa-alias-warnings.c (find_alias_site_helper)
142 (already_warned_in_frontend_p): Likewise.
143 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
144 * tree.c (really_constant_p, get_unwidened): Likewise.
145 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
146 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
147 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1): Likewise.
148 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use CONVERT_EXPR_P.
149 (CONVERT_EXPR_P): Define.
150 (CASE_CONVERT): Define.
152 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
155 * dce.c (deletable_insn_p): Do not delete calls if
157 (delete_unmarked_insns): When deleting a call, call
158 delete_unreachable_blocks.
159 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
160 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed
163 2008-05-08 Richard Guenther <rguenther@suse.de>
165 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
166 (-ftree-salias): Likewise.
167 (salias-max-implicit-fields): Remove param documentation.
168 (salias-max-array-elements): Likewise.
169 * tree-pass.h (pass_create_structure_vars): Remove.
170 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
171 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
172 * tree-ssa-alias.c (create_structure_vars): Remove.
173 (gate_structure_vars): Likewise.
174 (pass_create_structure_vars): Likewise.
175 (gate_build_alias): Likewise.
176 (pass_build_alias): Adjust to run always and dump the function.
177 * common.opt (ftree-salias): Hide.
178 * passes.c (init_optimization_passes): Remove
179 pass_create_structure_vars, adjust comment.
180 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
181 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
182 * opts.c (decode_options): Do not set flag_tree_salias.
183 (common_handle_option): Add OPT_ftree_salias to the backward
184 compatibility section.
186 2008-05-08 Richard Guenther <rguenther@suse.de>
188 * tree-flow-inline.h (var_can_have_subvars): Move ...
189 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
190 * tree-flow.h (var_can_have_subvars): Remove.
191 (push_fields_onto_fieldstack): Remove.
192 (sort_fieldstack): Likewise.
193 (struct fieldoff): Move ...
194 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
195 alias_set and base_for_components fields.
196 (sort_fieldstack): Make static.
197 (push_fields_onto_fieldstack): Likewise. Remove code that
198 handles anything but RECORD_TYPEs. Remove alias_set and
199 base_for_components handling.
200 (create_variable_info_for): Adjust.
202 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
204 * common.opt (Wframe-larger-than=): Shorten the help message
206 * doc/invoke.texi (Wframe-larger-than=): Add more description.
208 2008-05-08 Rafael Espindola <espindola@google.com>
210 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
212 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
213 trap and that both operands are gimple values.
214 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
215 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
218 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
220 * read-rtl.c (join_c_conditions): Return the first string if the
221 two strings are equal.
223 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
225 * gensupport.h (pred_data): Add a "num_codes" field.
226 (add_predicate_code): Declare.
227 * gensupport.c (add_predicate_code): New function.
228 (std_pred_table): Add an "allows_const_p" field.
229 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
230 Remove the (incomplete) list of such codes from the codes field.
231 (init_predicate_table): Use add_predicate_code. Add all
232 RTX_CONST_OBJs if allows_const_p is true.
233 * genrecog.c (process_define_predicate): Use add_predicate_code.
235 2008-05-08 David Daney <ddaney@avtrex.com>
236 Richard Sandiford <rsandifo@nildram.co.uk>
238 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
239 special case of constant zero operands.
240 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
241 old and new values. Special case constant zero values.
242 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
244 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
245 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
247 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
250 * simplify-rtx.c (simplify_plus_minus): Create CONST of
251 similar RTX_CONST_OBJ before CONST_INT.
253 2008-05-08 Steve Ellcey <sje@cup.hp.com>
255 * stmt.c (expand_stack_restore): Change sa mode if needed.
257 2008-05-08 Richard Guenther <rguenther@suse.de>
259 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
261 (ix86_sol10_return_in_memory): Likewise.
262 (ix86_i386elf_return_in_memory): Likewise.
263 (ix86_i386interix_return_in_memory): Likewise.
264 * config/i386/i386.c (ix86_return_in_memory): Likewise.
265 (ix86_sol10_return_in_memory): Likewise.
266 (ix86_i386elf_return_in_memory): Likewise.
267 (ix86_i386interix_return_in_memory): Likewise.
269 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
272 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
274 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
275 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
278 2008-05-08 Richard Guenther <rguenther@suse.de>
280 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
281 * tree-data-ref.h (struct dr_alias): Remove subvars field.
282 (DR_SUBVARS): Remove.
283 * tree-dfa.c (dump_subvars_for): Remove.
284 (debug_subvars_for): Likewise.
285 (dump_variable): Do not dump subvars.
286 (remove_referenced_var): Do not remove subvars.
287 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
288 (lookup_subvars_for_var): Remove.
289 (get_subvars_for_var): Likewise.
290 (get_subvars_at): Likewise.
291 (get_first_overlapping_subvar): Likewise.
292 (overlap_subvar): Likewise.
293 * tree-flow.h (subvar_t): Remove.
294 (struct var_ann_d): Remove subvars field.
295 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
296 argument. Remove special handling of SFTs.
297 (compute_tag_properties): Likewise.
298 (set_initial_properties): Likewise.
299 (compute_call_clobbered): Likewise.
300 (count_mem_refs): Likewise.
301 (compute_memory_partitions): Likewise.
302 (compute_flow_insensitive_aliasing): Likewise.
303 (setup_pointers_and_addressables): Likewise.
304 (new_type_alias): Likewise.
305 (struct used_part): Remove.
306 (used_portions): Likewise.
307 (struct used_part_map): Likewise.
308 (used_part_map_eq): Likewise.
309 (used_part_map_hash): Likewise.
310 (free_used_part_map): Likewise.
311 (up_lookup): Likewise.
312 (up_insert): Likewise.
313 (get_or_create_used_part_for): Likewise.
314 (create_sft): Likewise.
315 (create_overlap_variables_for): Likewise.
316 (find_used_portions): Likewise.
317 (create_structure_vars): Likewise.
318 * tree.def (STRUCT_FIELD_TAG): Remove.
319 * tree.h (MTAG_P): Adjust.
320 (struct tree_memory_tag): Remove base_for_components and
321 unpartitionable flags.
322 (struct tree_struct_field_tag): Remove.
323 (SFT_PARENT_VAR): Likewise.
324 (SFT_OFFSET): Likewise.
325 (SFT_SIZE): Likewise.
326 (SFT_NONADDRESSABLE_P): Likewise.
327 (SFT_ALIAS_SET): Likewise.
328 (SFT_UNPARTITIONABLE_P): Likewise.
329 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
330 (union tree_node): Remove sft field.
331 * alias.c (get_alias_set): Remove special handling of SFTs.
332 * print-tree.c (print_node): Remove handling of SFTs.
333 * tree-dump.c (dequeue_and_dump): Likewise.
334 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
335 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
336 * tree-predcom.c (set_alias_info): Do not set subvars.
337 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
338 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
339 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
340 (add_vars_for_offset): Remove.
341 (add_virtual_operand): Remove special handling of SFTs.
342 (add_call_clobber_ops): Likewise.
343 (add_call_read_ops): Likewise.
344 (get_asm_expr_operands): Likewise.
345 (get_modify_stmt_operands): Likewise.
346 (get_expr_operands): Likewise.
347 (add_to_addressable_set): Likewise.
348 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
349 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
350 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not
352 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
353 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
354 (tree_node_structure): Likewise.
355 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
357 (find_what_p_points_to): Likewise.
359 2008-05-08 Sa Liu <saliu@de.ibm.com>
361 * config/spu/spu.md: Fixed subti3 pattern.
363 2008-05-08 Richard Guenther <rguenther@suse.de>
366 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
367 sure to create a representative for trailing arrays for PTA.
369 2008-05-08 Richard Guenther <rguenther@suse.de>
372 * fold-const.c (operand_equal_p): Two objects which types
373 differ in pointerness are not equal.
375 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
377 * calls.c (compute_argument_block_size): Add argument tree fndecl.
378 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
379 (emit_library_call_value_1): Add new variable fndecl initialized by
380 NULL_TREE. It should be the decl type of orgfun, but this information
381 seems not to be available here, so it uses the default calling abi.
382 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
383 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
384 by TARGET_RETURN_IN_MEMORY.
385 * config/i386/i386-interix.h: Likewise.
386 * config/i386/i386.h: Likewise.
387 * config/i386/i386elf.h: Likewise.
388 * config/i386/ptx4-i.h: Likewise.
389 * config/i386/sol2-10.h: Likewise.
390 * config/i386/sysv4.h: Likewise.
391 * config/i386/vx-common.h: Likewise.
392 * config/cris/cris.h: Removed #if 0 clause.
393 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
394 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
396 (ix86_sol10_return_in_memory): Likewise.
397 (ix86_i386elf_return_in_memory): New.
398 (ix86_i386interix_return_in_memory): New.
399 * config/mt/mt-protos.h (mt_return_in_memory): New.
400 * config/mt/mt.c: Likewise.
401 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
402 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
403 * config/bfin/bfin.h: Likewise.
404 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
406 * config/bfin/bfin.c: Likewise.
407 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
408 * config/alpha/unicosmk.h: Likewise.
409 * config/i386/cygming.h: Likewise.
410 * config/iq2000/iq2000.h: Likewise.
411 * config/mips/mips.h: Likewise.
412 * config/mn10300/mn10300.h: Likewise.
413 * config/rs6000/rs6000.h: Likewise.
414 * config/score/score.h: Likewise.
415 * config/spu/spu.h: Likewise.
416 * config/v850/v850.h: Likewise.
417 * defaults.h: Likewise.
418 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
419 * expr.c (emit_block_move): Adjust use of
420 OUTGOING_REG_PARM_STACK_SPACE.
421 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
422 OUTGOING_REG_PARM_STACK_SPACE.
423 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
425 2008-05-08 Jakub Jelinek <jakub@redhat.com>
427 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
428 on OMP_RETURN for OMP_FOR.
431 * dwarf2out.c (dw_expand_expr, common_check): Removed.
432 (fortran_common): New function.
433 (gen_variable_die): Call fortran_common instead of common_check,
434 adjust for it returning tree instead of rtx. Formatting.
436 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
440 * see.c (see_copy_insn): Copy new pure const attributes for new call.
441 * c-decl.c (merge_decls): Ditto.
442 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
443 to RTL_CONST_OR_PURE_CALL_P.
444 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
445 Initialized DECL_LOOPING_CONST_PURE.
446 (process_call_operands): Set tree_side_effects properly.
447 * tree.h (TREE_READONLY_DECL_P): Removed.
448 (DECL_IS_PURE): Renamed to DECL_PURE_P.
449 (DECL_LOOPING_OR_CONST_P): New macro.
450 (struct tree_function_decl): Added looping_const_or_pure_p.
452 (ECF_LOOPING_OR_CONST_P): New macro.
453 * rtlanal.c (pure_const_p): Removed.
454 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
455 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
457 * ipa-pure-const.c (pure_const_state_e): Added looping field.
458 (check_decl, check_tree, check_call, scan_function): Initialize
460 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
461 (static_execute): Set looping true for recursive functions.
462 Undo setting state to IPA_NEITHER for recursive functions.
464 * ifcvt.c (noce_can_store_speculate_p): Changed
465 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
466 RTL_CONST_OR_PURE_CALL_P.
467 * dse.c (scan_insn): Ditto.
468 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
469 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
470 RTL_CONST_OR_PURE_CALL_P.
471 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
472 pure_call_p to RTL_CONST_CALL_P.
473 * gimplify.c (gimplify_call_expr): Clear side effects for
474 non-looping pure and constant calls.
475 * calls.c (emit_call_1): Set rtl flags from ecf flags.
476 (flags_from_decl_or_type): Set ecf flags from decl flags.
477 (initialize_argument_information): Turn off
478 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
479 Change const to pure if callee_copies is true rather than just
481 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
482 way of marking pure calls.
483 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
484 Remove hack that was supposed to fix pr7335 and remove old
485 way of marking pure calls.
486 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
487 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
488 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
489 RTL_CONST_OR_PURE_CALL_P.
490 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
491 * loop-invariant.c (find_exits, find_invariant_bb): Changed
492 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
493 * sched-deps.c (schedule_analyze): Ditto.
494 * rtl.h (struct rtx_def): Use call field, unchanging field, and
495 return_val field of calls to represent pure and const function info.
496 (CONST_OR_PURE_CALL_P): Deleted macro.
497 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
498 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
499 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
501 * tree-optimize.c (execute_fixup_cfg): Added test for
502 ECF_LOOPING_CONST_OR_PURE.
503 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
505 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
506 effects for looping pure or const calls.
507 (verify_gimple_expr): Added verification code.
508 * config/alpha/alpha.c (alpha_legitimize_address,
509 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
511 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
512 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
513 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
514 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
515 RTL_CONST_OR_PURE_CALL_P.
516 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
517 and const calls to be deleted.
519 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
522 * config/i386/mmx.md (mmx_subv2sf3): New expander.
523 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
524 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
525 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
526 to handle nonimmediate operands.
527 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
528 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
529 to handle nonimmediate operands.
530 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
531 (mmx_pmulhrwv4hi3): New expander. Use
532 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
533 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
534 (sse2_umulv1siv1di3): New expander. Use
535 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
536 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
537 (mmx_eq<mode>3): New expander. Use
538 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
539 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
540 (mmx_uavgv8qi3): New expander. Use
541 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
542 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
543 (mmx_uavgv4hi3): New expander. Use
544 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
547 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
548 to handle nonimmediate operands.
549 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
550 to handle nonimmediate operands.
551 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
552 to handle nonimmediate operands.
553 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
554 to handle nonimmediate operands.
555 (sse2_unpckhpd_exp): New expander. Use
556 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
557 (sse2_unpcklpd_exp): New expander. Use
558 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
559 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
560 to handle nonimmediate operands.
561 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
562 to handle nonimmediate operands.
563 (*sse2_<plusminus_insn><mode>3): Rename from
564 sse2_<plusminus_insn><mode>3 insn pattern.
565 (sse2_<plusminus_insn><mode>3): New expander. Use
566 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
567 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
568 (sse2_umulv2siv2di3): New expander. Use
569 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
570 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
571 (sse4_1_mulv2siv2di3): New expander. Use
572 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
573 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
574 (sse2_pmaddwd): New expander. Use
575 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
576 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
577 (sse2_eq<mode>3): New expander. Use
578 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
579 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
580 (sse4_1_eqv2di3): New expander. Use
581 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
582 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
583 (sse2_uavgv16qi3): New expander. Use
584 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
585 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
586 (sse2_uavgv16qi3): New expander. Use
587 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
588 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
589 (sse2_uavgv8hi3): New expander. Use
590 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
591 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
592 (ssse3_pmulhrswv8hi3): New expander. Use
593 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
594 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
595 (ssse3_pmulhrswv4hi3): New expander. Use
596 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
598 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
599 (<sse>_vmmul<mode>3): Ditto.
600 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
602 (ssse3_pmaddubsw128): Use register_operand for operand 1.
603 (ssse3_pmaddubsw): Ditto.
605 * config/i386/i386.c (struct_builtin_description)
606 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
607 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
608 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
609 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
610 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
611 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
612 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
613 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
614 (ix86_fixup_binary_operands): Assert that src1
615 and src2 must have the same mode when swapped.
616 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
617 and ix86_binary_operator_ok. Do not force operands in registers
620 2008-05-07 Jan Hubicka <jh@suse.cz>
622 * cgraph.c (dump_cgraph_node): Update.
623 * cgraph.h (cgraph_local_info): Break out inline summary.
624 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
626 * ipa-inline (inline_summary): New accestor function.
627 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
628 cgraph_decide_inlining, compute_inline_parameters): Update.
629 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
631 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
633 Cleanup ColdFire scheduling support and add V4 pipeline model.
635 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
636 (define_attr cpu): Add cfv4 value.
637 (define_attr type, define_attr type1): Merge into a single 'type'
638 attribute. Update all uses.
639 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
640 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
642 (define_attr opx_mem, define_attr opy_mem): Remove.
643 (define_attr op_mem): Clean up, update comment.
644 (define_attr size): Use specific values instead of general int.
645 (define_attr guess, define_attr split): Remove. Update all uses.
646 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
647 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
648 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
649 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
650 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
651 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
652 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
653 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
654 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
655 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
656 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
657 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
658 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
659 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
660 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
661 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
662 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
663 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
664 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
665 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
666 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
667 Update or set attributes.
668 (stack_tie): New fake instruction.
670 * config/m68k/m68k.h (TUNE_CFV4): New macro.
671 (m68k_sched_attr_size): Update declaration.
672 (m68k_sched_attr_type2): Remove.
673 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
674 Declare new bypass predicates.
676 * config/m68k/m68k.c (m68k_sched_issue_rate,
677 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
679 (TARGET_SCHED_ISSUE_RATE,
680 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
681 (override_options): Handle scheduling for ColdFire V4 core.
682 (m68k_expand_prologue): Emit stack_tie.
683 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
684 'OP_TYPE_FPN'. Update all uses.
685 (sched_guess_p): Remove.
686 (sched_address_type): Handle symbolic addresses.
687 (sched_get_operand): New static function.
688 (sched_operand_type): Merge into sched_attr_op_type.
689 (sched_attr_op_type): Handle FP registers, handle quick constants,
691 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
692 (m68k_sched_attr_size): Update. Move logic to ...
693 (sched_get_attr_size_int): New static function.
694 (sched_get_opxy_mem_type): New static function.
695 (m68k_sched_attr_op_mem): Update.
696 (m68k_sched_attr_type2): Remove.
697 (sched_cfv4_bypass_data): New static variable.
698 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
699 (m68k_sched_issue_rate): Implement scheduler hook.
700 (struct _sched_ib: enabled_p): New field.
701 (m68k_sched_variable_issue): Update. Handle V4.
702 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
703 sched_dump_class_func_t, sched_dump_split_class,
704 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
705 sched_dump_dfa_class, m68k_sched_dump): Remove.
706 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
708 (m68k_sched_init_global): Remove statisctics dumping, introduce
709 sanity check that all instructions have pipeline reservations. Handle
711 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
712 Handle ColdFire V4 core.
713 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
714 New static functions.
715 (m68k_sched_address_bypass_p): New bypass predicate.
716 (sched_get_indexed_address_scale): New static function.
717 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
719 * cf.md: Update comments.
720 (define_attr type2): Remove. Use 'type' attribute instead.
722 (cf_ib): Rename to cfv123_ib. Update all uses.
723 (cf_oep): Rename to cfv123_oep. Update all uses.
724 (cf_chr): Rename to cfv123_chr. Update all uses.
725 (cf_mem): Rename to cfv123_mem. Update all uses.
726 (cf_mac): Move to more appropriate place.
727 (cfv123_guess): New automaton and cpu_unit.
728 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
729 Update uses of 'size' attribute. Handle before reload scheduling.
730 (cfv123_guess): New dummy reservation for unhandled instructions.
731 (cfv4_*): Pipeline description of ColdFire V4 core.
732 (ignore): New reservation to handle 'ignore' type.
734 2008-05-07 Ian Lance Taylor <iant@google.com>
737 * gimplify.c (find_single_pointer_decl_1): Don't look through
739 (find_single_pointer_decl): Adjust comments.
741 2008-05-07 Jakub Jelinek <jakub@redhat.com>
744 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
745 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
748 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
749 integral type rather than floating point, then VIEW_CONVERT_EXPR
750 to the floating point type.
752 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
754 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
755 TFmode op0 to register.
757 2008-05-07 Alan Modra <amodra@bigpond.net.au>
759 * c-decl.c (grokdeclarator): Comment typo.
761 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
763 * tree-flow.h: Remove prototype for computed_goto_p.
764 * tree-cfg.c (computed_goto_p): Make static.
766 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
769 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
770 (contains_aligned_value_p): This. Handle _Decimal128.
771 (ix86_function_arg_boundary): Only align _Decimal128 to its
772 natural boundary and handle it properly.
774 2008-05-06 Martin Jambor <mjambor@suse.cz>
776 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
777 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
778 (ipcp_method_set_orig_node): Removed.
779 (ipcp_cval_get_cvalue_type): Removed.
780 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
781 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
782 (ipcp_cval_set_cvalue_type): Removed.
783 (ipcp_cval_get_cvalue): Removed.
784 (ipcp_cval_set_cvalue): Removed.
785 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
786 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
787 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
788 (ipcp_cval_meet): Renamed to ipa_lattice_meet
789 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
790 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
791 (ipcp_get_ith_lattice): Changed parameters.
792 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
793 (ipcp_lattice_from_jfunc): Changed parameters.
794 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
795 (ipcp_method_cval_print): Added temporary variable info.
796 (ipcp_redirect): Removed already unused local variable caller.
797 (ipcp_redirect): New temporary variable orig_callee_info
798 (ipcp_redirect): Removed newly unused local variable callee.
799 (ipcp_redirect): Removed (a bit confusing) local variable type.
800 (ipcp_insert_stage): Added local variable info.
801 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
803 (ipcp_formal_create): Removed.
804 (ipcp_method_cval_set): Removed.
805 (ipcp_propagate_stage): Renamed lattice variables.
806 (ipcp_method_cval_set_cvalue_type): Removed.
807 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
808 (ipcp_print_all_lattices): Changed printed strings to refer to
809 lattices rather than cvals.
810 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
811 (ipcp_propagate_const): Changed formal parameters.
812 (build_const_val): Changed formal parameters.
813 (ipcp_insert_stage): Removed useless variable cvalue
814 (build_const_val): Changed formal parameters.
815 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
816 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
817 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
818 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
819 (ipcp_print_func_profile_counts): Changed string from "method" to
821 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
822 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
823 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
824 (ipcp_structures_print): Renamed to ipcp_print_all_structures
825 (ipcp_profile_print): Renamed to ipcp_print_profile_data
826 (ipcp_lat_is_const): Changed parameters and made inline.
827 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
828 (ipcp_redirect): Renamed to ipcp_need_redirect_p
829 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
830 the predicate condition directly
831 (ipcp_propagate_stage): Added local variable args. Removed local
832 variable callee. (Both are mere code simplifications.)
833 (ipcp_method_dont_insert_const): Renamed to
834 ipcp_node_not_modifiable_p.
835 (ipcp_node_not_modifiable_p): Made inline.
836 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
837 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
838 (ipcp_print_all_lattices): Removed variable cvalue
839 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
842 2008-05-06 Olivier Hainque <hainque@adacore.com>
844 * tree-sra.c (try_instantiate_multiple_fields): Early return
845 if field has POINTER_TYPE.
847 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
849 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
850 by using 'q' specifier for instruction.
851 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
853 2008-05-06 Anatoly Sokolov <aesok@post.ru>
855 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
856 Change mode of zero_extract from QImode to HImode.
857 (sign bit tests peepholes): (Ditto.).
859 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
861 * config/i386/mmx.md: Remove double backslashes from asm templates.
862 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
863 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
864 to handle nonimmediate operands.
865 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
866 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
867 to handle nonimmediate operands.
868 (*mmx_<code>v2sf3_finite): New insn pattern.
869 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
870 (mmx_<code>v2sf3): New expander. Use
871 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
872 (mmx_<plusminus_insn><mode>3): New expander. Use
873 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
874 (*mmx_<plusminus_insn><mode>3): New insn pattern.
875 (mmx_add<mode>3): Removed.
876 (mmx_ssadd<mode>3): Ditto.
877 (mmx_usadd<mode>3): Ditto.
878 (mmx_sub<mode>3): Ditto.
879 (mmx_sssub<mode>3): Ditto.
880 (mmx_ussub<mode>3): Ditto.
881 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
882 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
883 to handle nonimmediate operands.
884 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
886 (mmx_smulv4hi3_highpart): New expander. Use
887 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
888 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
890 (mmx_umulv4hi3_highpart): New expander. Use
891 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
892 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
893 (mmx_<code>v4hi3): New expander. Use
894 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
895 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
896 (mmx_<code>v8qi3): New expander. Use
897 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
898 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
899 (mmx_<code><mode>3): New expander. Use
900 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
902 2008-05-05 Jan Hubicka <jh@suse.cz>
904 PR tree-optimization/36118
905 * passes.c (pass_init_dump_file): Fix dump header.
907 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
910 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
911 VCE for function decls.
913 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
915 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
917 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
919 * config/i386/i386.md (sat_plusminus): New.
920 (plusminus_insn): Likewise.
921 (plusminus_mnemonic): Likewise.
923 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
924 (*<addsub><mode>3_cc_overflow): Renamed to ...
925 (*<plusminus_insn><mode>3_cc_overflow): This.
926 (*<addsub>si3_zext_cc_overflow): Renamed to ...
927 (*<plusminus_insn>si3_zext_cc_overflow): This.
929 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
930 (<plusminus_insn><mode>3): This.
931 (*<addsub><mode>3): Renamed to ...
932 (*<plusminus_insn><mode>3): This.
933 (<sse>_vm<addsub><mode>3): Renamed to ...
934 (<sse>_vm<plusminus_insn><mode>3): This.
935 (sse3_h<addsub>v4sf3): Renamed to ...
936 (sse3_h<plusminus_insn>v4sf3): This.
937 (sse3_h<addsub>v2df3): Renamed to ...
938 (sse3_h<plusminus_insn>v2df3): This.
939 (<plusminus_insn><mode>3): New.
940 (*<plusminus_insn><mode>3): Likewise.
941 (sse2_<plusminus_insn><mode>3): Likewise.
942 (add<mode>): Removed.
943 (*add<mode>3): Likewise.
944 (sse2_ssadd<mode>3): Likewise.
945 (sse2_usadd<mode>3): Likewise.
946 (sub<mode>3): Likewise.
947 (*sub<mode>3): Likewise.
948 (sse2_sssub<mode>3): Likewise.
949 (sse2_ussub<mode>3): Likewise.
951 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
953 * gthr-single.h: Add in required interface elements as per gthr.h.
954 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
955 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
956 Generalize UNUSED macro.
957 (__gthread_once): Add.
958 (__gthread_key_create): Add.
959 (__gthread_key_delete): Add.
960 (__gthread_getspecific): Add.
961 (__gthread_setspecific): Add.
963 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
965 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
966 the same size types for the indirect reference on the rhs, then
969 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
971 * config/i386/i386.md
972 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
973 one insn template instead of template series.
974 (*xordi_1_rex64): Ditto.
975 (*xordi_2_rex64): Ditto.
977 2008-05-05 Ira Rosen <irar@il.ibm.com>
979 PR tree-optimization/36119
980 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
983 2008-06-04 Jan Hubicka <jh@suse.cz>
985 tree-optimization/36100
986 * tree-pass.h (pass_O0_always_inline): Declare.
987 * ipa-inline.c (inline_transform): Remove dead code.
988 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
989 pass_O0_always_inline): New.
990 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
992 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
994 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
995 mnemonic in this_param move for TARGET_64BIT.
997 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
999 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1000 (*strmovsi_rex_1): Ditto.
1001 (*strsetsi_1): Ditto.
1002 (*strsetsi_rex_1): Ditto.
1004 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1005 adddicc expanders using SWI mode iterator.
1007 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
1010 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1013 2008-05-04 David S. Miller <davem@davemloft.net>
1015 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1016 (sparc*-*-linux*): Use linux.h in tm_file.
1017 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1018 compiler defaulting to 32-bit.
1019 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1021 * config/sparc/linux.h: Remove definitions now obtained
1022 properly from linux.h
1023 * config/sparc/linux64.h: Likewise.
1024 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1025 don't want this setting for 32-bit builds in a biarch compiler.
1026 * doc/install.texi: Add sparc-linux to list of targets
1027 supporting --enable-targets=all.
1029 2008-05-03 Andrew Pinski <pinskia@gmail.com>
1031 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1033 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
1035 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1036 after V4SI_FTYPE_V8HI.
1037 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1038 case V4SI_FTYPE_V2DF.
1040 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1042 * doc/invoke.texi (max-flow-memory-locations): Removed.
1043 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1045 2008-05-03 Richard Guenther <rguenther@suse.de>
1048 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1050 2008-05-02 David S. Miller <davem@davemloft.net>
1052 * config.gcc (need_64bit_hwint): Document libcpp dependency.
1054 2008-05-02 Simon Baldwin <simonb@google.com>
1057 * c-common.h (warn_array_subscript_range): Removed.
1058 * c-common.c (warn_array_subscript_range): Ditto.
1059 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1060 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1062 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1064 * config/i386/i386.c (ix86_special_builtin_type): New.
1065 (bdesc_special_args): Likewise.
1066 (ix86_expand_special_args_builtin): Likewise.
1067 (ix86_init_mmx_sse_builtins): Updated.
1068 (ix86_expand_builtin): Updated.
1069 (ix86_expand_store_builtin): Removed.
1070 (ix86_expand_unop_builtin): Likewise.
1072 * config/i386/mm3dnow.h (__v2sf): Moved to ...
1073 * config/i386/mmintrin.h (__v2sf): Here.
1075 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1077 (_mm_loadl_pi): Likewise.
1078 (_mm_storeh_pi): Replace __v2si with __v2sf.
1079 (_mm_storel_pi): Likewise.
1081 * doc/extend.texi: Correct __builtin_ia32_loadhps,
1082 __builtin_ia32_loadlps, __builtin_ia32_storehps,
1083 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1084 __builtin_ia32_loadlpd.
1086 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1088 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1089 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1090 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
1091 (ix86_init_mmx_sse_builtins): Updated.
1092 (ix86_expand_args_builtin): Likewise.
1093 (ix86_expand_builtin): Likewise.
1094 (ix86_expand_unop1_builtin): Renamed to ...
1095 (ix86_expand_unop_vec_merge_builtin): This.
1097 2008-05-01 Jan Hubicka <jh@suse.cz>
1100 * ipa-inline.c (inline_generate_summary): Make static.
1101 (inline_transform): Do not call inlining at -O0; make static.
1102 * passes.c (execute_todo): Add sanity check.
1103 (execute_one_ipa_transform_pass): Execute proper flags.
1105 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1107 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1108 (DECL_NONADDRESSABLE_P): Likewise.
1109 * alias.c (record_component_aliases): Fix comment.
1111 2008-05-01 Simon Baldwin <simonb@google.com>
1113 * c-common.h (warn_array_subscript_range): New function.
1114 * c-common.c (warn_array_subscript_range): Ditto.
1115 * tree-vrp.c (check_array_ref): Corrected code to agree with
1116 comment, ignoring only arrays of size 0 or size 1.
1117 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1119 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1121 * config/i386/i386.c (ix86_builtin_type): Replace
1122 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1123 (bdesc_args): Updated.
1124 (ix86_init_mmx_sse_builtins): Likewise.
1125 (ix86_expand_args_builtin): Likewise.
1127 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1130 * doc/extend.texi: Correct __builtin_ia32_palignr.
1132 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1135 * config/i386/i386.c (bdesc_crc32): Removed.
1136 (ix86_expand_crc32): Likewise.
1137 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1138 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1139 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
1140 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1141 UINT_FTYPE_UINT_UCHAR.
1142 (bdesc_args): Updated. Add crc32 builtins.
1143 (ix86_init_mmx_sse_builtins): Updated.
1144 (ix86_expand_args_builtin): Updated to support subreg.
1146 * doc/extend.texi: Correct __builtin_ia32_crc32di.
1148 2008-05-01 Jan Hubicka <jh@suse.cz>
1150 * tree-pass.h (opt_pass): Add IPA_PASS.
1151 (varpool_node, cgraph_node): Forward declare.
1152 (ipa_opt_pass): Define.
1153 (pass_ipa_inline): Turn into ipa_opt_pass.
1154 (pass_apply_inline): Remove.
1155 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1156 (apply_inline): Turn into ....
1157 (inline_transform): ... this one.
1158 (inline_generate_summary): New function.
1159 (pass_apply_inline): Remove.
1160 * function.h (ipa_opt_pass): Forward declare structure; typedef;
1162 (struct function): Add ipa_transforms_to_apply.
1163 * passes.c (register_one_dump_file): Work on IPA_PASS.
1164 (init_optimization_passes): Remove pass_inline_parameters and
1166 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1167 (execute_one_pass) ... here; apply transforms when possible.
1168 (add_ipa_transform_pass, execute_ipa_summary_asses,
1169 execute_one_ipa_transform_pass): New.
1170 (execute_ipa_pass_list): Update for IPA_PASS type.
1172 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1174 * config/i386/i386.c (ix86_builtin_type): Add
1175 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1176 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1177 (bdesc_args): Add SSE4a builtins.
1178 (ix86_init_mmx_sse_builtins): Updated.
1179 (ix86_expand_args_builtin): Likewise.
1180 (ix86_expand_builtin): Likewise.
1182 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1184 * config/i386/i386.c (ix86_builtin_type): Add
1185 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1186 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1187 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1188 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1189 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1190 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1191 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1192 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1193 and DI_FTYPE_DI_DI_INT.
1194 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1195 (ix86_init_mmx_sse_builtins): Updated.
1196 (ix86_expand_args_builtin): Likewise.
1197 (ix86_expand_builtin): Likewise.
1198 (ix86_expand_binop_imm_builtin): Removed.
1200 * doc/extend.texi: Correct __builtin_ia32_palignr128.
1202 2008-04-30 Richard Guenther <rguenther@suse.de>
1204 PR tree-optimization/32921
1205 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1207 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
1209 * config/arm/arm.c (arm_unwind_emit): Use
1210 crtl->all_throwers_are_sibcalls instead of
1211 cfun->all_throwers_are_sibcalls.
1212 (arm_output_fn_unwind): Likewise.
1213 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1214 instead of cfun->uses_pic_offset_table.
1215 (frv_expand_prologue): Likewise.
1216 (frv_frame_pointer_required): Likewise.
1217 (frv_expand_fdpic_call): Likewise.
1218 (frv_emit_movsi): Likewise.
1219 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1220 cfun->returns_pcc_struct instead of
1221 current_function_returns_pcc_struct.
1222 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1223 instead of cfun->calls_eh_return.
1224 (m32c_pushm_popm): Likewise.
1225 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1226 "extern" declaration.
1228 2008-04-30 Richard Guenther <rguenther@suse.de>
1230 PR tree-optimization/21636
1231 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1233 (evaluate_stmt): Print the likely value.
1234 (ccp_visit_stmt): Avoid excessive vertical spacing.
1236 2008-04-30 Rafael Espindola <espindola@google.com>
1238 * builtins.c (fold_call_expr): Return realret.
1239 * tree-ssa-threadedge.c
1240 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1241 __builtin_object_size.
1243 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
1245 * gcc.c (wrapper_string): New variable.
1246 (insert_wrapper): New function.
1247 (execute): New option -wrapper.
1248 * doc/invoke.texi (Overall Options): New driver option -wrapper.
1250 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
1252 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1253 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1254 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1256 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
1257 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1258 config/rs6000/e500crtres64gprctr.asm,
1259 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1260 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1261 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1262 config/rs6000/e500crtsav64gprctr.asm,
1263 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1264 config/rs6000/e500crtsavg64gprctr.asm: New files.
1265 * config/rs6000/t-ppccomm: Add build rules for new files.
1266 (LIB2FUNCS_STATIC_EXTRA): Add new files.
1267 * config/rs6000/t-netbsd: Add build rules for new files.
1268 (LIB2FUNCS_STATIC_EXTRA): New variable.
1269 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1270 (CRTSAVRES_DEFAULT_SPEC): Likewise.
1271 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1273 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
1275 * config/i386/i386.c (ix86_builtin_type): Add
1276 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1277 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1278 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1279 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1280 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1281 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1282 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1283 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1284 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1285 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1286 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1287 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1288 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1289 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1290 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1291 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1292 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1293 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1294 V1DI_FTYPE_V2SI_V2SI.
1295 (bdesc_2arg): Moved to ...
1297 (ix86_init_mmx_sse_builtins): Updated.
1298 (ix86_expand_args_builtin): Updated. Take a pointer
1299 to const struct builtin_description. Handle comparison
1301 (ix86_expand_sse_compare): Take a new argument for swapping operands.
1302 (ix86_expand_builtin): Updated.
1304 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1305 (ssse3_pmaddubsw128): This.
1306 (ssse3_pmaddubswv4hi3): Renamed to ...
1307 (ssse3_pmaddubsw): This.
1309 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1310 (__builtin_ia32_packssdw128): Likewise.
1311 (__builtin_ia32_packuswb128): Likewise.
1312 (__builtin_ia32_pmaddubsw): Likewise.
1313 (__builtin_ia32_pmaddubsw128): Likewise.
1315 2008-04-30 Richard Guenther <rguenther@suse.de>
1317 PR tree-optimization/14847
1318 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1319 (recognize_bits_test): Use it.
1320 (recognize_single_bit_test): Likewise.
1322 2008-04-30 Martin Jambor <mjambor@suse.cz>
1324 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1325 instead of setting number of formal parameters to zero.
1326 (ipcp_init_stage): Do not set the number of actual parameters to zero
1328 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1329 which are called with variable number of arguments.
1330 (ipcp_insert_stage): Explicitely skipping all nodes which are
1331 called with variable number of arguments.
1332 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
1333 number of parameters.
1335 * ipa-prop.h (struct ipa_node_params): Added flag
1336 called_with_var_arguments
1337 (ipa_set_param_count): Added. Changed sole setter to use it.
1338 (ipa_get_param_count): Added. All readers of param_count
1339 converted to use it instead.
1340 (ipa_set_called_with_variable_arg): Added.
1341 (ipa_is_called_with_var_arguments): Added.
1342 (ipa_get_ith_param): Added. All readers of param_decls converted
1344 (ipa_set_cs_argument_count): Added, sole writer to argument_count
1346 (ipa_get_cs_argument_count): Added, all readers of argument_count
1348 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
1351 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1352 (struct ipcp_lattice): Renamed cval_type to type
1353 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1355 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1356 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1357 (ipcp_insert_stage): Changed the type of variable cvalue to tree
1358 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1359 (build_const_val): Changed the type of parameter cvalue to tree
1360 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1361 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1363 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
1366 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1367 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1368 (ipa_add_method): Renamed to ipa_push_func_to_list
1369 (ipa_remove_method): Renamed to ipa_pop_func_from_list
1370 (ipa_callsite_param_count): Removed.
1371 (ipa_callsite_param_count_set): Removed.
1372 (ipa_callsite_param): Removed.
1373 (ipa_callsite_callee): Removed.
1374 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1375 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1376 (ipa_method_formal_count): Removed.
1377 (ipa_method_formal_count_set): Removed.
1378 (ipa_method_get_tree): Removed.
1379 (ipa_method_tree_map_create): Removed.
1380 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1381 (ipa_create_param_decls_array): Creates the array itself
1382 (ipa_create_param_decls_array): Temporary variable info instead of
1384 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1385 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1386 (get_type): Removed.
1387 (ipa_jf_get_info_type): Removed.
1388 (ipa_node_create): Renamed to ipa_create_node_params
1389 (ipa_free): Renamed to ipa_free_all_node_params
1390 (ipa_nodes_create): Renamed to ipa_create_all_node_params
1391 (ipa_edges_create): Renamed to ipa_create_all_edge_args
1392 (ipa_edges_free): Renamed to ipa_free_all_edge_args
1393 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1394 (ipa_free_all_node_params): Deallocation to jump_functions moved to
1395 ipa_free_all_edge_args
1396 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1397 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1398 (ipa_create_methodlist_node): Removed.
1399 (ipa_methodlist_method): Removed.
1400 (ipa_methodlist_method_set): Removed.
1401 (ipa_methodlist_next_method): Removed.
1402 (ipa_methodlist_next_method_set): Removed.
1403 (ipa_method_is_modified): Removed.
1404 (ipa_method_modify_create): Removed.
1405 (ipa_method_modify_init): Temporary variable info instead of a few
1407 (ipa_detect_param_modifications): Temporary variable info instead of
1409 (ipa_compute_jump_functions): Temporary variable info instead of
1411 (ipa_method_modify_set): Removed.
1412 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1413 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
1414 than craph_node as the first parameter.
1415 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1416 (ipa_method_modify_init): Removed.
1417 (ipa_compute_jump_functions): Added a temp variable instead of
1418 repeatadly dereferencing the cgraph_edge.aux pointer
1419 (ipa_callsite_param_set_type): Removed.
1420 (ipa_compute_jump_functions): i renamed to index and moved to
1422 (ipa_callsite_param_set_info_type_formal): Removed.
1423 (ipa_callsite_param_set_info_type): Removed.
1424 (ipa_callsite_param_map_create): Removed.
1425 (ipa_callsite_tree): Removed.
1426 (ipa_callsite_caller): Removed.
1427 (ipa_pop_func_from_list): return_method removed to return_func
1429 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1430 prefixed all values with IPA_. Changed all users.
1431 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
1432 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
1433 and FORMAL_IPATYPE IPA_PASS_THROUGH.
1434 (union parameter_info): Renamed to jump_func_value.
1435 (union jump_func_value): Renamed value to constant
1436 (struct ipa_jump_func): Renamed info_type to value
1437 (struct ipa_node): Renamed to ipa_node_params
1438 (struct ipa_node_params): Renamed ipa_arg_num to param_count
1439 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1440 (struct ipa_node_params): Renamed ipa_mod to modified_flags
1441 (struct ipa_edge): Renamed to ipa_edge_args
1442 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1443 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
1444 (struct ipa_methodlist): Renamed to ipa_func_list
1445 (struct ipa_func_list): method_p renamed to node, next_method
1447 (ipa_methodlist_p): Removed, switched all users to struct pointer
1448 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
1450 2008-04-30 Alan Modra <amodra@bigpond.net.au>
1452 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
1453 (rs6000_emit_epilogue): Use backchain to restore only when we
1454 have a large frame. Make use of frame pointer to restore if we
1455 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
1457 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
1459 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1460 Add mode to zero_extract.
1461 (sign bit tests peepholes): (Ditto.).
1463 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
1465 * config/i386/i386.c (ix86_builtins): Replace Prescott New
1466 Instructions in comments with SSE3.
1467 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
1468 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
1469 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
1470 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
1471 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
1472 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
1473 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
1474 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
1475 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
1476 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
1477 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
1478 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
1479 (bdesc_sse_args): Renamed to ...
1480 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
1481 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
1482 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
1484 (bdesc_1arg): Moved to ...
1486 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
1487 Instructions in comments with SSE3.
1488 (ix86_expand_sse_operands_builtin): Renamed to ...
1489 (ix86_expand_args_builtin): This. Updated.
1490 (ix86_expand_unop1_builtin): Update comments.
1491 (ix86_expand_builtin): Updated.
1493 2008-04-29 Richard Guenther <rguenther@suse.de>
1495 PR tree-optimization/36078
1496 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1497 Update virtual SSA form after cleaning up the CFG.
1499 2008-04-29 Richard Guenther <rguenther@suse.de>
1502 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
1504 2008-04-29 Richard Guenther <rguenther@suse.de>
1506 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
1507 (compute_may_aliases): Do not call finalize_ref_all_pointers.
1508 (compute_flow_insensitive_aliasing): Do not treat
1509 PTR_IS_REF_ALL pointers special.
1510 (get_smt_for): Likewise.
1511 (may_alias_p): Re-structure.
1512 (is_escape_site): A ref-all pointer conversion is not an escape site.
1513 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
1514 PTR_IS_REF_ALL pointers special.
1515 * tree-ssa-structalias.h (struct alias_info): Remove
1516 ref_all_symbol_mem_tag field.
1517 (PTR_IS_REF_ALL): Remove.
1519 2008-04-29 Richard Guenther <rguenther@suse.de>
1522 * fold-const.c (extract_muldiv_1): In combining division constants
1523 make sure to never overflow.
1525 2008-04-29 Nick Clifton <nickc@redhat.com>
1527 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
1529 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1532 * optc-gen.awk: Work around HP-UX/IA awk bug.
1534 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
1536 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
1539 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
1542 * config/i386/i386.md
1543 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
1544 Change operand 1 predicate to nonimmediate_operand.
1546 2008-04-28 Jakub Jelinek <jakub@redhat.com>
1549 * dwarf2out.c (struct die_struct): Mark as chain_circular through
1551 * gengtype.c (walk_type, write_func_for_structure): Handle
1553 * doc/gty.texi: Document chain_circular.
1555 2008-04-28 Richard Guenther <rguenther@suse.de>
1557 PR tree-optimization/36066
1558 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
1561 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
1564 * config/i386/i386.md
1565 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
1566 Use match_scratch instead of match_operand for operands 3 and 4.
1568 2008-04-27 Richard Guenther <rguenther@suse.de>
1570 PR tree-optimization/18754
1571 PR tree-optimization/34223
1572 * tree-pass.h (pass_complete_unrolli): Declare.
1573 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
1574 loop size before and after unconditionally of UL_NO_GROWTH in effect.
1575 Rewrite loop into loop closed SSA form if it is not already.
1576 (tree_unroll_loops_completely): Re-structure to iterate over
1577 innermost loops with intermediate CFG cleanups.
1578 Unroll outermost loops only if requested or the code does not grow
1580 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
1581 loops are available.
1582 (tree_vectorize): Instead do so here.
1583 (tree_complete_unroll): Also unroll outermost loops.
1584 (tree_complete_unroll_inner): New function.
1585 (gate_tree_complete_unroll_inner): Likewise.
1586 (pass_complete_unrolli): New pass.
1587 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
1588 uses outside of the loop.
1589 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
1590 form if it is available.
1591 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
1592 * passes.c (init_optimization_passes): Schedule complete inner
1593 loop unrolling pass before the first CCP pass after final inlining.
1595 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
1597 * targhooks.h (default_emutls_var_fields,
1598 default_emutls_var_init): Declare.
1599 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
1600 * target.h (struct gcc_target): Add struct emutls member.
1601 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
1602 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
1603 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
1604 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
1605 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
1606 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
1607 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
1608 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
1609 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
1610 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
1611 emit debug information.
1612 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
1613 * varasm.c: Include targhooks.h.
1614 (emutls_object_section, emutls_tmpl_section): New.
1615 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
1616 (EMUTLS_SEPARATOR): New.
1618 (get_emutls_object_name): New.
1619 (default_emutls_var_fields): New, broken out of ...
1620 (get_emutls_object_type): ... here. Adjust to use target hooks.
1621 (get_emutls_init_templ_addr): Adjust to use target hooks.
1622 (emutls_decl): Adjust to use target hooks.
1623 (emutls_finish): Likewise.
1624 (default_emutls_var_init): New, broken out of ...
1625 (assemble_variable): ... here. Adjust to use target hooks.
1626 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
1628 * c-common.c (handle_section_attribute): Prevent overriding
1629 sections for emulated tls with special sections.
1630 * config/i386/i386.c (x86_64_elf_select_section): Add
1631 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
1632 (x86_64_elf_unique_section): Likewise.
1633 * config/vxworks.c: Include tree.h.
1634 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
1635 (vxworks_override_options): Set TLS scheme.
1636 * doc/tm.texi (Emulated TLS): New node.
1638 2008-04-26 Simon Baldwin <simonb@google.com>
1641 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
1642 with propagated string constants.
1644 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
1646 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
1647 constraint for operand 2 when operand 0 is memory operand.
1648 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
1649 operand 0 is memory operand.
1650 (fix_trunc<mode>_i387_with_temp): Ditto.
1651 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
1652 operand 2 when operand 1 is memory operand.
1653 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
1654 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
1655 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
1656 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
1657 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
1658 operands 2,3 and 4 when operand 1 is memory operand.
1659 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
1661 (fistdi2_floor_with_temp): Ditto.
1662 (fist<mode>2_floor_with_temp): Ditto.
1663 (fistdi2_ceil_with_temp): Ditto.
1664 (fist<mode>2_ceil_with_temp): Ditto.
1665 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
1667 2008-04-26 David Daney <ddaney@avtrex.com>
1669 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
1671 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
1672 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1673 UNSPEC_UPDATE_GOT_VERSION): Renumber.
1674 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
1675 (compare_and_swap_12): New insn.
1676 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
1677 * config/mips/mips.c (mips_force_binary): New function.
1678 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
1679 (mips_expand_compare_and_swap_12): New function.
1680 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
1682 2008-04-25 Jan Hubicka <jh@suse.cz>
1685 * cfgexpand.c (pass_expand): Turn into RTL pass.
1686 * passes.c (execute_one_pass): Do pass typechecking after execution.
1687 * tree-pass.h (pass_expand): Turn into RTL pass.
1689 * function.h (struct rtl_data): Move here fields
1690 accesses_prior_frames, calls_eh_return, saves_all_registers,
1691 has_nonlocal_goto, has_asm_statement, is_thunk,
1692 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
1693 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
1694 arg_pointer_save_area_init from struct function; turn into bool.
1695 (struct function): Move
1696 calls_eh_return, saves_all_registers, has_nonlocal_goto,
1697 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
1698 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
1699 tail_call_emit, arg_pointer_save_area_init
1700 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
1701 (current_function_returns_struct, current_function_returns_pcc_struct,
1702 current_function_calls_setjmp, current_function_calls_alloca,
1703 current_function_accesses_prior_frames,
1704 current_function_calls_eh_return, current_function_is_thunk,
1705 current_function_stdarg, current_function_profile,
1706 current_function_limit_stack, current_function_uses_pic_offset_table,
1707 current_function_uses_const_pool, current_function_has_nonlocal_label,
1708 current_function_saves_all_registers,
1709 current_function_has_nonlocal_goto,
1710 current_function_has_asm_statement): Remove accesor macros.
1711 * ra-conflict.c (global_conflicts): Update.
1712 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
1713 (suitable_for_tail_call_opt_p): Update.
1714 * builtins.c (expand_builtin_return_addr): Update.
1715 (expand_builtin_setjmp_setup): Update.
1716 (expand_builtin_nonlocal_goto): Update.
1717 * final.c (final_start_function): Update.
1718 (profile_function): Update.
1719 (leaf_function_p): Update.
1720 (only_leaf_regs_used): Update.
1721 * df-scan.c (df_get_exit_block_use_set): Update.
1722 * dojump.c (clear_pending_stack_adjust): Update.
1723 * tree-stdarg.c (gate_optimize_stdarg): Update.
1724 * gimple-low.c (lower_function_body): Update.
1725 * global.c (compute_regsets): Update.
1726 (global_alloc): Update.
1727 * dwarf2out.c (dwarf2out_begin_prologue): Update.
1728 * expr.c (expand_assignment): Update.
1729 * dse.c (dse_step0): Update.
1730 (dse_step1): Update.
1731 * c-decl.c (store_parm_decls): Update.
1732 * local-alloc.c (combine_regs): Update.
1733 (find_free_reg): Update.
1734 * function.c (assign_parms_augmented_arg_list): Update.
1735 (assign_parm_find_data_types): Update.
1736 (assign_parms): Update.
1737 (allocate_struct_function): Update.
1738 (expand_function_start): Update.
1739 (expand_function_end): Update.
1740 (get_arg_pointer_save_area): Update.
1741 (thread_prologue_and_epilogue_insns): Update.
1742 (rest_of_match_asm_constraints): Update.
1743 * stor-layout.c (variable_size): Update.
1744 * gcse.c (gcse_main): Update.
1745 (bypass_jumps): Update.
1746 * gimplify.c (gimplify_function_tree): Update.
1747 * calls.c (emit_call_1): Update.
1748 (expand_call): Update.
1749 * bt-load.c (compute_defs_uses_and_gen): Update.
1750 * except.c (sjlj_assign_call_site_values): Update.
1751 (sjlj_emit_function_enter): Update.
1752 (can_throw_external): Update.
1753 (set_nothrow_function_flags): Update.
1754 (expand_builtin_unwind_init): Update.
1755 (expand_eh_return): Update.
1756 (convert_to_eh_region_ranges): Update.
1757 (output_function_exception_table): Update.
1758 * emit-rtl.c (gen_tmp_stack_mem): Update.
1759 * cfgexpand.c (expand_used_vars): Update.
1760 (tree_expand_cfg): Update.
1761 * cfgcleanup.c (rest_of_handle_jump): Update.
1762 * explow.c (allocate_dynamic_stack_space): Update.
1763 * varasm.c (assemble_start_function): Update.
1764 (force_const_mem): Update.
1765 (mark_constant_pool): Update.
1766 * tree-optimize.c (tree_rest_of_compilation): Update.
1767 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
1768 * tree-cfg.c (notice_special_calls): Update.
1769 (is_ctrl_altering_stmt): Update.
1770 (tree_can_make_abnormal_goto): Update.
1771 (tree_purge_dead_abnormal_call_edges): Update.
1772 * config/alpha/predicates.md: Update.
1773 * config/alpha/alpha.c (alpha_sa_mask): Update.
1774 (alpha_sa_size): Update.
1775 (alpha_does_function_need_gp): Update.
1776 (alpha_expand_prologue): Update.
1777 (alpha_start_function): Update.
1778 (alpha_output_function_end_prologue): Update.
1779 (alpha_expand_epilogue): Update.
1780 * config/frv/frv.c (frv_stack_info): Update.
1781 (frv_expand_epilogue): Update.
1782 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
1783 (s390_register_info): Update.
1784 (s390_frame_info): Update.
1785 (s390_init_frame_layout): Update.
1786 (s390_can_eliminate): Update.
1787 (save_gprs): Update.
1788 * config/spu/spu.c (spu_split_immediate): Update.
1789 (need_to_save_reg): Update.
1790 (spu_expand_prologue): Update.
1791 (spu_expand_epilogue): Update.
1792 * config/sparc/sparc.md: Update.
1793 * config/sparc/sparc.c (eligible_for_return_delay): Update.
1794 (sparc_tls_got): Update.
1795 (legitimize_pic_address): Update.
1796 (sparc_emit_call_insn): Update.
1797 (sparc_expand_prologue): Update.
1798 (output_return): Update.
1799 (print_operand): Update.
1800 (sparc_function_ok_for_sibcall): Update.
1801 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
1802 * config/m32r/m32r.md: Update.
1803 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
1804 (m32r_compute_frame_size): Update.
1805 (m32r_expand_prologue): Update.
1806 (m32r_expand_epilogue): Update.
1807 (m32r_legitimize_pic_address): Update.
1808 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
1809 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1810 * config/i386/i386.c (ix86_frame_pointer_required): Update.
1812 (ix86_save_reg): Update.
1813 (ix86_compute_frame_layout): Update.
1814 (ix86_expand_prologue): Update.
1815 (ix86_expand_epilogue): Update.
1816 * config/sh/sh.c (output_stack_adjust): Update.
1817 (calc_live_regs): Update.
1818 (sh5_schedule_saves): Update.
1819 (sh_expand_prologue): Update.
1820 (sh_expand_epilogue): Update.
1821 (sh_setup_incoming_varargs): Update.
1822 (sh_allocate_initial_value): Update.
1823 (sh_get_pr_initial_val): Update.
1824 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
1825 * config/sh/sh.md (label:): Update.
1826 * config/avr/avr.c (out_movhi_mr_r): Update.
1827 * config/crx/crx.h (enum): Update.
1828 * config/xtensa/xtensa.h (along): Update.
1829 * config/stormy16/stormy16.c Update.
1830 (xstormy16_compute_stack_layout): Update.
1831 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
1832 (fr30_expand_prologue): Update.
1833 * config/cris/cris.c (cris_conditional_register_usage): Update.
1834 (cris_reg_saved_in_regsave_area): Update.
1835 (cris_initial_frame_pointer_offset): Update.
1836 (cris_simple_epilogue): Update.
1837 (cris_expand_prologue): Update.
1838 (cris_expand_epilogue): Update.
1839 (cris_expand_pic_call_address): Update.
1840 (cris_asm_output_symbol_ref): Update.
1841 (cris_asm_output_label_ref): Update.
1842 * config/cris/cris.md Update.
1843 * config/iq2000/iq2000.c (compute_frame_size): Update.
1844 (iq2000_expand_epilogue): Update.
1845 * config/mt/mt.h (save_direction): Update.
1846 * config/mn10300/mn10300.c (mn10300_function_value): Update.
1847 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1848 (ia64_secondary_reload_class): Update.
1849 * config/m68k/m68k.c (m68k_save_reg): Update.
1850 (m68k_expand_prologue): Update.
1851 (m68k_expand_epilogue): Update.
1852 (legitimize_pic_address): Update.
1853 * config/rs6000/rs6000.c (rs6000_got_register): Update.
1854 (first_reg_to_save): Update.
1855 (first_altivec_reg_to_save): Update.
1856 (compute_vrsave_mask): Update.
1857 (compute_save_world_info): Update.
1858 (rs6000_stack_info): Update.
1859 (spe_func_has_64bit_regs_p): Update.
1860 (rs6000_ra_ever_killed): Update.
1861 (rs6000_emit_eh_reg_restore): Update.
1862 (rs6000_emit_allocate_stack): Update.
1863 (rs6000_emit_prologue): Update.
1864 (rs6000_emit_epilogue): Update.
1865 (rs6000_output_function_epilogue): Update.
1866 (output_profile_hook): Update.
1867 (rs6000_elf_declare_function_name): Update.
1868 * config/rs6000/rs6000.h (rs6000_args): Update.
1869 * config/rs6000/rs6000.md: Update.
1870 * config/mcore/mcore.c (mcore_expand_prolog): Update.
1871 * config/arc/arc.c (arc_output_function_epilogue): Update.
1872 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
1873 * config/darwin.c (machopic_function_base_name): Update.
1874 * config/score/score3.c (score3_compute_frame_size): Update.
1877 (score3_epilogue): Update.
1878 * config/score/score7.c (score7_compute_frame_size): Update.
1879 (score7_prologue): Update.
1880 (score7_epilogue): Update.
1881 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
1882 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1883 * config/arm/arm.c (use_return_insn): Update.
1884 (require_pic_register): Update.
1885 (arm_load_pic_register): Update.
1886 (arm_compute_save_reg0_reg12_mask): Update.
1887 (arm_compute_save_reg_mask): Update.
1888 (thumb1_compute_save_reg_mask): Update.
1889 (output_return_instruction): Update.
1890 (arm_output_function_prologue): Update.
1891 (arm_output_epilogue): Update.
1892 (arm_get_frame_offsets): Update.
1893 (arm_expand_prologue): Update.
1894 (thumb_pushpop): Update.
1895 (thumb_exit): Update.
1896 (thumb1_expand_prologue): Update.
1897 (thumb1_expand_epilogue): Update.
1898 (arm_unwind_emit): Update.
1899 (arm_output_fn_unwind): Update.
1900 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
1901 * config/arm/arm.md: Update.
1902 * config/pa/pa.md: Update.
1903 * config/pa/pa.c (legitimize_pic_address): Update.
1904 (compute_frame_size): Update.
1905 (hppa_expand_prologue): Update.
1906 (hppa_expand_epilogue): Update.
1907 (borx_reg_operand): Update.
1908 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
1909 (HARD_REGNO_RENAME_OK): Update.
1910 * config/mips/mips.c (mips_global_pointer): Update.
1911 (mips_save_reg_p): Update.
1912 (mips_compute_frame_info): Update.
1913 (mips_frame_pointer_required): Update.
1914 (mips_expand_prologue): Update.
1915 (mips_expand_epilogue): Update.
1916 (mips_can_use_return_insn): Update.
1917 (mips_reorg_process_insns): Update.
1918 * config/v850/v850.c (compute_register_save_size): Update.
1919 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
1920 * config/mmix/mmix.c (along): Update.
1921 (mmix_expand_epilogue): Update.
1922 * config/bfin/bfin.c (legitimize_pic_address): Update.
1923 (must_save_p): Update.
1924 (stack_frame_needed_p): Update.
1925 (add_to_reg): Update.
1926 (bfin_expand_prologue): Update.
1927 * stmt.c (expand_asm_operands): Update.
1928 * reload1.c (reload): Update.
1929 (init_elim_table): Update.
1931 2008-04-25 Bob Wilson <bob.wilson@acm.org>
1933 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
1935 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
1937 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
1938 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
1939 (mov<mode>): Removed.
1940 (*movv4sf_internal): Likewise.
1941 (*movv2df_internal): Likewise.
1943 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
1945 * config.gcc (crx-*-elf): Remove deprecation.
1947 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1949 * config/i386/cygming-crtend.c (register_frame_ctor): Register
1950 __gcc_deregister_frame with atexit.
1951 (deregister_frame_dtor): Remove.
1953 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
1954 Nathan Sidwell <nathan@codesourcery.com>
1956 * config/rs6000/rs6000.opt (mspe): Remove Var property.
1958 * config/rs6000/rs6000.h (rs6000_spe): Declare.
1959 (rs6000_isel): Likewise.
1960 * config/rs6000/rs6000.c (rs6000_spe): New variable.
1961 (rs6000_isel): New variable.
1962 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
1964 2008-04-24 Jakub Jelinek <jakub@redhat.com>
1967 * c-common.c (handle_vector_size_attribute): Call
1968 lang_hooks.types.reconstruct_complex_type instead of
1969 reconstruct_complex_type.
1970 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
1971 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
1972 * langhooks.h (struct lang_hooks_for_types): Add
1973 reconstruct_complex_type hook.
1974 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
1975 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
1977 2008-04-24 Richard Guenther <rguenther@suse.de>
1979 * c-common.h (check_builtin_function_arguments): Declare.
1980 * c-common.c (validate_nargs): New function.
1981 (check_builtin_function_arguments): Likewise.
1982 * c-typeck.c (build_function_call): Call
1983 check_builtin_function_arguments.
1984 * builtins.c (fold_builtin_classify): Remove error reporting code.
1985 (fold_builtin_unordered_cmp): Likewise.
1986 (fold_builtin_1): Likewise.
1987 (fold_builtin_n): Likewise.
1989 2008-04-24 Jakub Jelinek <jakub@redhat.com>
1991 PR tree-optimization/36008
1992 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
1993 the original op1, rather than delta by step.
1995 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
1996 Sebastian Pop <sebastian.pop@amd.com>
1998 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
1999 eliminate_local_variables_stmt, eliminate_local_variables,
2000 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2001 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2002 of code delimited by two edges in the CFG.
2003 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2004 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2005 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
2006 the case of parallelisation of reductions.
2007 (expr_invariant_in_region_p): New.
2009 * tree-flow.h (gather_blocks_in_sese_region): Declared.
2010 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2012 2008-04-24 Ira Rosen <irar@il.ibm.com>
2013 Richard Guenther <rguenther@suse.de>
2015 PR tree-optimization/36034
2016 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2017 incapable of dealing with loads with gaps.
2019 2008-04-24 Rafael Espindola <espindola@google.com>
2021 * tree-flow.h (vrp_evaluate_conditional): Change signature.
2022 * tree-ssa-propagate.c (fold_predicate_in): Update call to
2023 vrp_evaluate_conditional.
2024 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2025 (vrp_evaluate_conditional): Split the cond argument.
2026 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2027 (simplify_stmt_for_jump_threading): Update call to
2028 vrp_evaluate_conditional.
2030 2008-04-24 Ira Rosen <irar@il.ibm.com>
2032 PR tree-optimization/35982
2033 * tree-vect-analyze.c (vect_check_interleaving): Check that the
2034 interleaved data-refs are of the same type.
2036 2008-04-24 Danny Smith <dannysmith@users.net>
2038 * c-format.c (check_format_info_main): Use strncmp rather than a
2039 magic prefix to handle multichar length specs.
2040 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2041 Don't prefix "I64" and "I32" with '\0'.
2043 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2046 * config/i386/i386.c (init_cumulative_args): Don't pass anything
2047 in registers for -m32 only if stdarg_p (fntype).
2049 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
2051 PR rtl-optimization/36006
2052 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2053 temp to op0 in order to avoid invalid rtx sharing.
2055 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2057 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
2058 check TREE_INVARIANT.
2059 * tree-gimple.c (is_gimple_address): New.
2060 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2061 * tree-gimple.h (is_gimple_address): New.
2062 * tree.h (decl_address_invariant_p): New.
2063 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2064 (build_string): Likewise.
2065 (decl_address_invariant_p): New, from is_gimple_invariant_address.
2066 (tree_invariant_p_1): Likewise.
2067 (save_expr): Use it.
2068 (tree_invariant_p): New.
2069 (skip_simple_arithmetic): Use it.
2070 (stabilize_reference_1): Use it.
2071 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2073 (build1_stat): Drop code to compute TREE_INVARIANT.
2074 (build2_stat): Drop code to compute TREE_INVARIANT.
2075 (build3_stat): Drop code to compute TREE_INVARIANT.
2076 (build4_stat): Drop code to compute TREE_INVARIANT.
2077 (build5_stat): Drop code to compute TREE_INVARIANT.
2078 (build7_stat): Drop code to compute TREE_INVARIANT.
2079 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2080 * tree.h (struct tree_base): Remove invariant_flag.
2081 (TREE_INVARIANT): Remove.
2082 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2083 (fold_builtin_expect): Check TREE_CONSTANT.
2084 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2085 * c-tree.h (c_expr_to_decl): Drop third parameter.
2086 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2087 (build_c_cast): Don't set TREE_INVARIANT.
2088 (pop_init_level): Don't set TREE_INVARIANT.
2089 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2090 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2092 (gimplify_init_constructor): Don't set TREE_INVARIANT.
2093 (gimplify_addr_expr): Adjust comment.
2094 * tree-mudflap.c (mf_build_string):
2095 * print-tree.c (print_node): Don't print TREE_INVARIANT.
2096 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2097 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2098 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2099 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2100 * langhooks.h (struct lang_hooks): Drop third parameter from
2103 2008-04-23 Richard Guenther <rguenther@suse.de>
2105 PR tree-optimization/27799
2106 PR tree-optimization/32921
2107 PR tree-optimization/32624
2108 * tree-ssa-structalias.c (merge_smts_into): Only merge the
2109 SMTs aliases and the tag itself into the solution.
2110 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2111 merge the points-to solution back into the SMT aliases.
2112 (may_alias_p): Use alias_set_subset_of instead of
2113 aliases_conflict_p. A pointer which points to
2114 memory with alias set zero may access any variable.
2116 2008-04-23 Richard Guenther <rguenther@suse.de>
2118 * alias.c (alias_set_subset_of): Correctly handle asking
2119 if zero is a subset of an alias set with zero child.
2120 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2121 (compute_flow_insensitive_aliasing): Correctly walk all
2122 pointers. Do not unnecessarily union sets.
2124 2008-04-23 Richard Guenther <rguenther@suse.de>
2127 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2129 2008-04-22 Tomas Bily <tbily@suse.cz>
2131 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2133 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2135 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2136 * tree-ssa-structalias.c (get_constraint_for): Likewise.
2137 * tree-inline.c (estimate_num_insns_1): Likewise.
2138 * varasm.c (const_hash_1, compare_constant, copy_constant)
2139 (compute_reloc_for_constant, output_addressed_constants): Likewise.
2140 * emit-rtl.c (component_ref_for_mem_expr)
2141 (set_mem_attributes_minus_bitpos): Likewise.
2142 * expr.c (highest_pow2_factor, expand_expr_real_1, )
2143 (is_aligning_offset): Likewise.
2144 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2145 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2146 * dojump.c (do_jump): Likewise.
2147 * builtins.c (get_pointer_alignment, get_memory_rtx)
2148 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2149 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2151 2008-04-23 Jakub Jelinek <jakub@redhat.com>
2153 PR rtl-optimization/36017
2154 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2155 expanding the library call.
2157 2008-04-22 Ian Lance Taylor <iant@google.com>
2159 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2162 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
2164 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2165 of LR/CTR moves for Power6.
2167 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2170 * passes.c (init_optimization_passes): Remove
2171 pass_fast_rtl_byte_dce.
2173 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
2176 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2177 builtin functions to generate faster code.
2178 (_mm_cvtpu16_ps): Ditto.
2179 (_mm_cvtpi32x2_ps): Ditto.
2181 2008-04-22 Nick Clifton <nickc@redhat.com>
2183 * common.opt (ftree-loop-distribution): Add Optimization
2186 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2187 (frv_expand_builtin_va_start): Likewise.
2189 * config/arm/arm.c (thumb_find_work_register): Fix location of
2190 argument register count.
2192 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2194 Support scheduling for ColdFire V1 and V3 microarchitecture.
2195 Improve scheduling of multiplication instructions.
2197 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
2198 (mac): New instruction attribute.
2199 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2200 (m68k_sched_mac): New variable.
2201 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2202 Handle cfv1 and cfv3.
2203 (max_insn_size): New static variable.
2204 (struct _sched_ib): New type.
2205 (sched_ib): New static variable.
2206 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2207 to fields of 'struct _sched_ib sched_ib'. Update all uses.
2208 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2210 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2211 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
2212 new variables. Update.
2213 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2214 Add modeling of cfv3 instruction buffer. Update.
2215 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2216 * config/m68k/m68k.h (TUNE_CFV3): New macro.
2217 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2218 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2219 a particular reservation applies to.
2220 (type2): Reorganize attribute values. Rename alu to alu_reg,
2221 alu_l to alu, move_l to omove. Join move to alu. Split mul
2223 (cf_ib_*): Simplify description of instruction buffer.
2224 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2225 (cf_mem): Split into cf_mem1 and cf_mem2.
2226 (cf_v2_move_??): Rename to cfv12_alu_??.
2227 (cf_v2_move_l_??): Rename to cfv12_omove_??.
2228 (cf_v2_mul_??): Remove reservations.
2229 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2230 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2231 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2233 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2234 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2235 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2236 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2237 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2238 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2239 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2240 expansions of the above reservations for instructions of sizes
2243 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2245 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2247 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
2249 * coverage.c: Include tree-pass.h.
2250 (coverage_counter_alloc): Print da_file_name to the dump file.
2252 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
2254 * sbitmap.c (sbitmap_range_empty_p): New function.
2255 * sbitmap.h (sbitmap_range_empty_p): New function.
2256 * bitmap.h: Now includes obstack.h.
2258 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
2259 Kenneth Zadeck <zadeck@naturalbridge.com>
2261 * dbgcnt.def (ra_byte_scan): Added.
2262 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2263 when the last hit happens for a counter.
2264 * timevar.def (TV_DF_BYTE_LR): New variable.
2265 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2266 * passes.c (pass_fast_rtl_byte_dce): New pass.
2267 * fwprop.c (update_df): Added mode to call df_ref_create.
2268 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2269 DF_REF_EXTRACT_OFFSET.
2270 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
2271 DF_BYTE_LR_OUT, df_byte_lr): New macro.
2273 (df_ref_extract): Added mode field.
2274 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2275 DF_REF_EXTRACT_OFFSET.
2276 (DF_REF_EXTRACT_MODE): New macro.
2277 (df_byte_lr_bb_info): New structure.
2278 (df_print_byte_regset, df_compute_accessed_bytes,
2279 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2280 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2281 df_byte_lr_simulate_uses,
2282 df_byte_lr_simulate_artificial_refs_at_top,
2283 df_byte_lr_simulate_artificial_refs_at_end,
2284 df_compute_accessed_bytes): New function.
2285 (df_ref_create): Add parameter.
2286 (df_byte_lr_get_bb_info): New inline function.
2287 * df-scan.c (df_ref_record, df_uses_record,
2288 df_ref_create_structure): Added mode parameter.
2289 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
2290 df_defs_record, df_uses_record, df_get_conditional_uses,
2291 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2292 df_entry_block_defs_collect, df_exit_block_uses_collect):
2293 Added mode parameter to calls to df_ref_record, df_uses_record,
2294 df_ref_create_structure.
2295 (df_ref_equal_p, df_ref_compare): Added test for modes.
2296 (df_ref_create_structure): Added code to set mode. Renamed
2297 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2298 DF_REF_EXTRACT_OFFSET.
2299 * df-core.c (df_print_byte_regset): New function.
2300 * df-byte-scan.c: New file.
2301 * df-problems.c (df_rd_transfer_function): Removed unnecessary
2302 calls to BITMAP_FREE.
2303 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2304 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2305 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
2306 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
2307 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2308 df_byte_lr_local_compute, df_byte_lr_init,
2309 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2310 df_byte_lr_transfer_function, df_byte_lr_free,
2311 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2312 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
2313 df_byte_lr_simulate_uses,
2314 df_byte_lr_simulate_artificial_refs_at_top,
2315 df_byte_lr_simulate_artificial_refs_at_end): New function.
2316 * dce.c (byte_dce_process_block): New function.
2317 (dce_process_block): au is now passed in rather than computed
2318 locally. Changed loops that look at artificial defs to not look
2319 for conditional or partial ones, because there never are any.
2320 (fast_dce): Now is able to drive byte_dce_process_block or
2321 dce_process_block depending on the kind of dce being done.
2322 (rest_of_handle_fast_dce): Add parameter to fast_dce.
2323 (rest_of_handle_fast_byte_dce): New function.
2324 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2325 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2327 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
2330 * gcc.h: Added fortran options that take arguments to
2331 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2334 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2336 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2337 scalarization if on the LHS and not a full access.
2339 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2341 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2343 2008-04-18 Rafael Espindola <espindola@google.com>
2345 * tree-vrp.c (find_case_label_index): Fix the binary search.
2346 (find_case_label_range): New.
2347 (vrp_visit_switch_stmt): Use find_case_label_range.
2348 (simplify_switch_using_ranges): Use find_case_label_range.
2350 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2352 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2353 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2355 2008-04-18 Tom Tromey <tromey@redhat.com>
2358 * doc/cpp.texi (Implementation-defined behavior): Mention
2361 2008-04-18 Ian Lance Taylor <iant@google.com>
2363 * fold-const.c (pointer_may_wrap_p): New static function.
2364 (fold_comparison): Add another test for pointer overflow. Use
2365 pointer_may_wrap_p to disable some false positives.
2367 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
2369 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2370 (fname_as_string): Match updated cpp_interpret_string prototype.
2371 (fix_string_type): Support char16_t* and char32_t*.
2372 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2373 derivative) nodes. Register as builtin if C++0x.
2374 (c_parse_error): Support CPP_CHAR{16,32}.
2375 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
2376 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2377 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2378 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2379 CTI_CHAR32_ARRAY_TYPE>: New elements.
2380 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2381 char32_type_node, signed_char32_type_node, char16_array_type_node,
2382 char32_array_type_node): New defines.
2383 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2384 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2385 (lex_string): Support CPP_STRING{16,32}, match updated
2386 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2387 (lex_charconst): Support CPP_CHAR{16,32}.
2388 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2389 and CPP_STRING{16,32}.
2391 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2394 * aclocal.m4: Regenerate.
2395 * configure: Regenerate.
2397 2008-04-18 Jan Hubicka <jh@suse.cz>
2399 * except.c (dw2_size_of_call_site_table,
2400 sjlj_size_of_call_site_table): Use vector API for call_site_record.
2402 * cgraphbuild.c (build_cgraph_edges): Update.
2403 * tree-pass.h: Update comment.
2404 * final.c (leaf_function_p): Update.
2405 (leaf_renumber_regs): Update.
2406 (rest_of_clean_state): Update.
2407 * omp-low.c (expand_omp_parallel): Update.
2408 * ipa-reference.c (analyze_function): Update.
2409 * reorg.c (find_end_label): Update.
2410 (optimize_skip): Update.
2411 (fill_simple_delay_slots): Update.
2412 (fill_simple_delay_slots): Update.
2413 (make_return_insns): Update.
2414 (dbr_schedule): Update.
2415 * gimple-low.c (record_vars_into): Update.
2416 * cfgbuild.c (make_edges): Update.
2417 * function.c (assign_stack_local): Update.
2418 (assign_parm_adjust_stack_rtl): Update.
2419 (locate_and_pad_parm): Update.
2420 (allocate_struct_function): Do not initialize stack_alignment_needed
2421 and preferred_stack_boundary here.
2422 (stack_protect_prologue): Update.
2423 (stack_protect_epilogue): Update.
2424 (expand_function_start): Initialize stack_alignment_needed,
2425 preferred_stack_boundary and max_jumptable_ents.
2426 (expand_function_end): Update.
2427 (free_after_compilation): Do not NULLify epilogue_delay_list.
2428 * function.h (struct rtl_data): Add stack_protect_guard,
2429 stack_alignment_needed,
2430 preferred_stack_boundary, epilogue_delay_list.
2431 (struct function): Remove value_histograms, stack_alignment_needed,
2432 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2434 unexpanded_var_list, stack_protect_guard.
2435 (current_function_epilogue_delay_list): Remove.
2436 * ipa-type-escape.c (analyze_function): Update.
2437 * gimplify.c (pop_gimplify_context): Update comment.
2438 * calls.c (expand_call): Update.
2439 (emit_library_call_value_1): Update.
2440 * except.c (set_nothrow_function_flags): Update.
2441 * cfgexpand.c (get_decl_align_unit): Update.
2442 (create_stack_guard): Update.
2443 (estimated_stack_frame_size): Update.
2444 (expand_used_vars): Update.
2445 (tree_expand_cfg): Free histogram earliers, init expansion variables.
2446 * explow.c (allocate_dynamic_stack_space): Update.
2447 * tree-ssa-live.c (remove_unused_locals): Update.
2448 * varasm.c (mark_constant_pool): Update.
2449 * tree-inline.c (remap_decls): Update.
2450 (initialize_cfun): Update.
2451 (declare_return_variable): Update.
2452 (inline_forbidden_p): Update.
2453 (expand_call_inline): Update.
2454 (declare_inline_vars): Update.
2455 (tree_function_versioning): Update.
2456 * tree-flow.h (value_histograms): New.
2457 (VALUE_HISTOGRAMS): New macro.
2458 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
2460 * tree-cfg.c (set_bb_for_stmt): Update.
2461 (replace_by_duplicate_decl): Update.
2462 (move_block_to_fn): Update.
2463 (new_label_mapper): Update.
2464 (dump_function_to_file): Update.
2465 * ipa-struct-reorg.c (build_data_structure): Update.
2466 * cfgrtl.c (print_rtl_with_bb): Update.
2467 * reload1.c (reload): Update.
2469 * config/i386/i386.c (setup_incoming_varargs_64,
2470 ix86_compute_frame_layout): Update.
2471 * config/arc/arc.c (arc_output_function_epilogue): Update.
2473 2008-04-18 Marius Strobl <marius@FreeBSD.org>
2475 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
2476 for FreeBSD as well.
2477 * gthr-posix95.h: Likewise.
2479 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
2481 PR rtl-optimization/35838
2482 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
2483 out the byte offset of the first subreg.
2485 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
2487 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
2488 to split_ti instead of three separate calls with single member arrays.
2489 (subti3 splitter): Ditto.
2490 (adddi3 splitter): Ditto with split_di.
2491 (subdi3 splitter): Ditto.
2492 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
2493 two separate calls with single member arrays. Swap match_dup
2494 operands 1 and 2 to better fit into the array.
2495 (negdi2 splitter): Ditto with split_di.
2496 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
2497 two separate calls with single member arrays. Swap match_dup operands
2498 6 and 7 to better fit into the array.
2500 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
2502 * config/i386/i386.c (sse_builtin_type): New.
2503 (bdesc_sse_args): Likewise.
2504 (bdesc_sse_3arg): Removed.
2505 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2506 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
2507 IX86_BUILTIN_ROUNDPS.
2508 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
2509 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
2510 IX86_BUILTIN_ROUNDPS.
2511 (ix86_expand_sse_4_operands_builtin): Removed.
2512 (ix86_expand_sse_operands_builtin): New.
2513 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
2514 and CODE_FOR_sse4_1_roundps.
2515 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2516 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
2518 2008-04-17 Alan Modra <amodra@bigpond.net.au>
2521 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
2522 regs before frame pop when needed. If use_backchain_to_restore_sp
2523 then load backchain into a temp reg to restore vr and vrsave. Add
2524 code to restore vr after frame pop if possible.
2526 2008-04-17 Richard Guenther <rguenther@suse.de>
2528 * tree-vn.c (expressions_equal_p): Do not check type
2529 equality or compatibility before calling operand_equal_p.
2530 * fold-const.c (operand_equal_p): Check equivalence of
2531 integer constants before bailing out due to signedness or
2532 precision differences.
2533 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
2534 spurious differences in type qualification. Ignore types
2535 for COMPONENT_REFs at all.
2537 2008-04-17 Christian Bruel <christian.bruel@st.com>
2539 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
2540 msw_skip comparison.
2542 2008-04-16 Jakub Jelinek <jakub@redhat.com>
2545 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
2548 PR tree-optimization/35899
2549 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
2550 rather than TREE_OPERAND.
2552 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
2555 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
2556 temporary registers. Change operand predicate to general_operand.
2557 (remainderxf3): Ditto.
2559 2008-04-16 Richard Guenther <rguenther@suse.de>
2561 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
2562 * tree-affine.c (aff_combination_expand): Look through some
2565 2008-04-15 Doug Kwan <dougkwan@google.com>
2567 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
2569 * tree-pretty-print.c (dump_generic_node): Ditto.
2570 * final.c (output_addr_const): Ditto.
2571 * dwarf2out.c (output_cfi): Ditto.
2572 * c-pretty-print.c (pp_c_integer_constant): Ditto.
2573 * print-rtl.c (print_rtx): Ditto.
2574 * print-tree.c (print_node_brief, print_node): Ditto.
2575 * c-common.c (match_case_to_enum_1): Ditto.
2576 * sched-vis.c (print_value): Ditto.
2577 * config/i386/i386.c (print_operand): Cast to long unsigned int
2580 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
2581 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
2582 MS Windows VirtualProtect function.
2584 2008-04-15 Jan Hubicka <jh@suse.cz>
2586 * gengtype.c (write_root): Param_is argument is OK.
2587 * expr.c (expand_expr_real_1): Update call of get_exception_*.
2588 * function.h: Include varray.h
2589 (rtl_eh): New stucture based on except.c one.
2590 (call_site_record): New forward declaration and vector type.
2591 * calls.c (emit_call_1): Do not call
2592 note_current_region_may_contain_throw.
2593 * except.c (eh_status): Remove cur_region, try_region since they are
2595 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
2596 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
2597 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
2598 Remove call_site_data_used, call_site_data_size.
2599 Turn call_site_record into vector in function.h.
2600 (note_current_region_may_contain_throw): Remove.
2601 (get_exception_pointer, get_exception_filter): Do not take struct
2602 function argument; update.
2603 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
2604 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
2605 build_post_landing_pads, dw2_build_landing_pads,
2606 sjlj_assign_call_site_values, sjlj_mark_call_sites,
2607 sjlj_emit_function_enter, sjlj_emit_function_enter,
2608 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
2609 sjlj_build_landing_pads, finish_eh_generation,
2610 remove_exception_handler_label, remove_eh_handler,
2611 maybe_remove_eh_handler, add_reachable_handler,
2612 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
2613 add_action_record, collect_one_action_chain, add_call_site,
2614 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
2615 sjlj_output_call_site_table, output_function_exception_table,
2616 * except.h (note_current_region_may_contain_throw): Remove
2617 (get_exception_pointer, get_exception_filter): Do not take struct
2619 * Makefile.in (GTFILES): Put varargs before struct function.
2621 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2623 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
2624 punt for STRING_CST.
2625 (get_constraint_for): Deal with STRING_CST here instead.
2627 2008-04-15 Richard Guenther <rguenther@suse.de>
2629 * tree-ssa-propagate.c (substitute_and_fold): Substitute
2630 statements in a basic-block with a backward walk. Do not
2631 substitute into dead statements but instead remove those.
2633 2008-04-15 Richard Guenther <rguenther@suse.de>
2635 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
2636 to zero, thus disable creation of SFTs.
2638 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2640 * tree-predcom.c (suitable_reference_p): Return false if the
2641 reference can throw.
2643 2008-04-15 Jakub Jelinek <jakub@redhat.com>
2646 * c-decl.c (finish_decl): If extern or static var has variable
2647 size, set TREE_TYPE (decl) to error_mark_node.
2649 2008-04-15 Rafael Espindola <espindola@google.com>
2651 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
2654 2008-04-15 Richard Guenther <rguenther@suse.de>
2656 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2657 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
2658 (visit_reference_op_load): Do walk vuse-vdef chains on
2659 vn_reference_lookup.
2660 (visit_reference_op_store): But do not here.
2661 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
2662 vn_reference_lookup.
2663 (vn_lookup_with_vuses): But do so here.
2665 2008-04-14 Ian Lance Taylor <iant@google.com>
2667 * fold-const.c (fold_overflow_warning): Remove assertion.
2669 2008-04-15 Ben Elliston <bje@au.ibm.com>
2671 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
2672 temp1 local variables.
2674 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
2677 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
2678 ".text.unlikely" section as executable.
2680 2008-04-14 James E. Wilson <wilson@tuliptree.org>
2682 * config/ia64/ia64.c (rtx_needs_barrier): Handle
2683 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
2684 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
2685 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
2686 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
2687 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
2688 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
2690 2008-04-14 Ian Lance Taylor <iant@google.com>
2692 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
2693 * fold-const.c (fold_comparison): If appropriate, test
2694 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
2695 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
2696 reassociating a pointer type.
2697 * doc/invoke.texi (Optimize Options): Document that
2698 -fstrict-overflow applies to pointer wraparound.
2700 2008-04-13 Jan Hubicka <jh@suse.cz>
2702 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
2704 2008-04-12 Andrew Pinski <pinskia@gmail.com>
2706 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
2707 we are going to "save the world".
2709 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
2711 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
2712 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
2713 operand 0 constraint, not "=".
2715 2008-04-11 James E. Wilson <wilson@tuliptree.org>
2717 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
2719 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
2721 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
2722 of size of positions_needed * CHAR_BIT.
2724 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
2727 * dse.c (store_info): Change positions_needed to unsigned
2729 (lowpart_bitmask): New.
2730 (record_store): Cast to unsigned HOST_WIDE_INT for
2731 positions_needed. Assert width <= size of positions_needed *
2732 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
2733 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
2734 lowpart_bitmask to set mask.
2736 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
2738 * config/bfin/constraints.md: New file.
2739 * config/bfin/bfin.md: Include it.
2740 (adddi3): Use satisfies_constraint functions instead of the old macros.
2741 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
2742 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
2743 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
2744 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
2745 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
2746 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
2747 EXTRA_CONSTRAINT): Delete.
2748 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
2749 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
2751 * config/bfin/bfin.c: Include "tm-constrs.h".
2752 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
2753 Use satisfies_constraint functions instead of the old macros.
2754 * doc/md.texi (Blackfin Constraints): Update file name reference.
2756 2008-04-11 Richard Guenther <rguenther@suse.de>
2758 PR tree-optimization/35869
2759 * tree-vrp.c (execute_vrp): Move switch statement update after
2760 jump threading. Schedule another cfg cleanup run.
2762 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
2765 * attribs.c (decl_attributes): Return early on errorneous node.
2767 2008-04-10 Oleg Ryjkov <olegr@google.com>
2769 * tree.h (struct tree_base): Added a new flag default_def_flag.
2770 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
2772 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
2774 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
2776 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2779 * pa.md: Define mode iterator P. Define mode attribute dwc.
2780 (dcacheflush): Update pattern to use iterator P and attribute dwc.
2781 (icacheflush): Likewise.
2782 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
2783 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
2785 2008-04-11 Ben Elliston <bje@au.ibm.com>
2787 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
2789 2008-04-10 Rafael Espindola <espindola@google.com>
2791 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
2792 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
2793 (extract_range_from_expr): The same.
2795 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
2797 * config/mips/mips.md (GPR2): New mode iterator.
2799 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
2800 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
2801 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
2802 Rewrite these to take two modes, the mode of comparison and the
2803 mode of the destination.
2804 * config/mips/mips.c (mips_expand_scc): Instead of having
2805 paradoxical subreg as destination, expand "narrowing" scc if mode
2806 of comparison is SI and target is requested in DI mode.
2807 (mips_emit_int_order_test): Update comment. Make mode of
2808 comparison match CMP0 rather than TARGET. When creating inverse
2809 target use mode of TARGET.
2811 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
2813 * gcov-dump.c (tag_summary): Only print summaries for the first
2814 GCOV_COUNTERS_SUMMABLE counters.
2816 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
2818 * config/i386/i386.md (absneg): New code iterator.
2819 (absnegprefix): New code attribute.
2820 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
2821 patterns using absneg code iterator.
2822 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
2823 using absneg code iterator.
2824 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
2825 *neg<mode>2 patterns using absneg code iterator.
2826 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2827 *negextendsfdf2 patterns using absneg code iterator.
2828 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
2829 *negextendsfxf2 patterns using absneg code iterator.
2830 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2831 *negextendsfdf2 patterns using absneg code iterator.
2832 * config/i386/sse.md (<code><mode>2): Macroize expander from
2833 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
2835 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
2837 * config/s390/s390.h: Remove the remains of the recent search
2838 & replace action of current_function_outgoing_args_size.
2840 2008-04-10 Ira Rosen <irar@il.ibm.com>
2842 PR tree-optimization/35821
2843 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
2844 NEW_STMT_LIST is not NULL.
2846 2008-04-09 David Edelsohn <edelsohn@gnu.org>
2849 * toplev.c (process_options): Remove -ffunction-sections debugging
2852 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
2854 PR middle-end/PR28690
2855 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
2856 than gen_rtx_fmt_ee to perform more canonicalizations.
2858 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2861 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
2863 2008-04-09 Richard Guenther <rguenther@suse.de>
2865 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
2866 (dump_function_to_file): Dump function arguments with types.
2868 2008-04-08 Richard Guenther <rguenther@suse.de>
2870 * fold-const.c (fold_widened_comparison): Do not allow
2871 sign-changes that change the result.
2873 2008-04-08 Janis Johnson <janis187@us.ibm.com>
2876 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
2877 kinds of indirect references.
2879 2008-04-08 David Edelsohn <edelsohn@gnu.org>
2881 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
2882 GNU Fortran language string.
2884 2008-04-08 Rafael Espindola <espindola@google.com>
2886 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
2887 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
2888 * tree.h (tree_call_nonnegative_warnv_p): New.
2890 2008-04-08 Jan Hubicka <jh@suse.cz>
2892 * function.c (free_after_compilation): Clear out regno_reg_rtx
2895 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
2898 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
2900 PR middle-end/PR28690
2901 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
2902 same precedence as REG_POINTER and MEM_POINTER operands.
2904 2008-04-08 Richard Guenther <rguenther@suse.de>
2907 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
2908 for adding index to base.
2910 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
2912 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
2913 (MINGW_ENABLE_EXECUTE_STACK): New.
2914 (IN_LIBGCC2): For libgcc include windows.h file for
2915 function declarations.
2917 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
2919 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
2920 and tem2 if tem1 is not a REG or MULT.
2922 2008-04-08 Jan Hubicka <jh@suse.cz>
2924 * function.h (incomming_args): Break out of struct function.
2925 (function_subsections): Break out of struct function.
2926 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
2927 return_rtx and hard_reg_initial_vals from struct function.
2928 Kill inl_max_label_num.
2929 (current_function_pops_args, current_function_args_info,
2930 current_function_args_size, current_function_args_size,
2931 current_function_pretend_args_size,
2932 current_function_outgoing_args_size,
2933 current_function_internal_arg_pointer, current_function_return_rtx):
2934 Kill compatibility accestor macros.
2935 * builtins.c (expand_builtin_apply_args_1): Update.
2936 (expand_builtin_next_arg): Update.
2937 * df-scan.c (df_get_call_refs): Update.
2938 * dbxout.c (dbxout_function_end): Update.
2939 * dwarf2out.c (dwarf2out_switch_text_section): Update.
2940 (output_line_info): Update.
2941 (secname_for_decl): Update.
2942 (dwarf2out_var_location): Update.
2943 * function.c (free_after_compilation): Update.
2944 (assign_parm_find_stack_rtl): Update.
2945 (assign_parms): Update.
2946 (expand_dummy_function_end): Update.
2947 (expand_function_end): Update.
2948 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
2949 (expand_call): Update.
2950 (emit_library_call_value_1): Update.
2951 (store_one_arg): Update.
2952 * varasm.c (initialize_cold_section_name): Update.
2953 (unlikely_text_section): Update.
2954 (unlikely_text_section_p): Update.
2955 (assemble_start_function): Update.
2956 (assemble_end_function): Update.
2957 (default_section_type_flags): Update.
2958 (switch_to_section): Update.
2959 * integrate.c (set_decl_abstract_flags): Update.
2960 (get_hard_reg_initial_val): Update.
2961 (has_hard_reg_initial_val): Update.
2962 (allocate_initial_values): Update.
2963 * resource.c (init_resource_info): Update.
2964 * config/alpha/alpha.c (NUM_ARGS): Update.
2965 (direct_return): Update.
2966 (alpha_va_start): Update.
2967 (alpha_sa_size): Update.
2968 (alpha_initial_elimination_offset): Update.
2969 (alpha_expand_prologue): Update.
2970 (alpha_start_function): Update.
2971 (alpha_expand_epilogue): Update.
2972 (unicosmk_initial_elimination_offset):
2973 * config/alpha/alpha.md (call expander): Update.
2974 * config/s390/s390.c (s390_register_info): Update.
2975 (s390_register_info): Update.
2976 (s390_frame_info): Update.
2977 (s390_initial_elimination_offset): Update.
2978 (s390_build_builtin_va_list): Update.
2979 (s390_va_start): Update.
2980 * config/spu/spu.c (direct_return): Update.
2981 (spu_expand_prologue): Update.
2982 (spu_initial_elimination_offset): Update.
2983 (spu_build_builtin_va_list): Update.
2984 (spu_va_start): Update.
2985 * config/sparc/sparc.c (sparc_init_modes): Update.
2986 (sparc_compute_frame_size): Update.
2987 (function_value): Update.
2988 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
2989 * config/i386/i386.md (return expander): Update.
2990 * config/i386/i386.c (ix86_va_start): Update.
2991 (ix86_can_use_return_insn_p): Update.
2992 (ix86_compute_frame_layout): Update.
2993 (ix86_expand_epilogue): Update.
2994 * config/sh/sh.c (output_stack_adjust): Update.
2995 (calc_live_regs): Update.
2996 (sh_expand_prologue): Update.
2997 (sh_builtin_saveregs): Update.
2998 (sh_va_start): Update.
2999 (initial_elimination_offset): Update.
3000 (sh_allocate_initial_value): Update.
3001 (sh_function_ok_for_sibcall): Update.
3002 (sh_get_pr_initial_val): Update.
3003 * config/sh/sh.md (return expander): Update.
3004 * config/avr/avr.c (frame_pointer_required_p): UPdate.
3005 * config/crx/crx.c (crx_compute_frame): UPdate.
3006 (crx_initial_elimination_offset): UPdate.
3007 * config/xtensa/xtensa.c (compute_frame_size): Update
3008 (xtensa_builtin_saveregs): Update.
3009 (xtensa_va_start): Update.
3010 (order_regs_for_local_alloc): Update.
3011 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
3012 (xstormy16_expand_builtin_va_start): Update.
3013 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
3014 * config/m68hc11/m68hc11.md (return expanders): Update.
3015 * config/m68hc11/m68hc11.c (expand_prologue): Update.
3016 (expand_epilogue): Update.
3017 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
3018 (cris_simple_epilogue): Update.
3019 (cris_expand_prologue): Update.
3020 (cris_expand_epilogue): Update.
3021 * config/iq2000/iq2000.c (iq2000_va_start): Update.
3022 (compute_frame_size): Update.
3023 * config/mt/mt.c (mt_compute_frame_size): Update.
3024 * config/mn10300/mn10300.c (expand_prologue): Update.
3025 (expand_epilogue): Update.
3026 (initial_offset): Update.
3027 (mn10300_builtin_saveregs):
3028 * config/mn10300/mn10300.md (return expander): Update.
3029 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3030 (ia64_initial_elimination_offset): Update.
3031 (ia64_initial_elimination_offset): Update.
3032 (ia64_expand_prologue): Update.
3033 * config/m68k/m68k.md (return expander): Update.
3034 * config/rs6000/rs6000.c (rs6000_va_start): Update.
3035 (rs6000_stack_info): Update.
3036 * config/mcore/mcore.c (layout_mcore_frame): Update.
3037 (mcore_expand_prolog): Update.
3038 * config/arc/arc.c (arc_compute_frame_size): Update.
3039 * config/score/score3.c (score3_compute_frame_size): Update.
3040 * config/score/score7.c (score7_compute_frame_size): Update.
3041 * config/arm/arm.c (use_return_insn): Update.
3042 (thumb_find_work_register): Update.
3043 (arm_compute_save_reg_mask): Update.
3044 (arm_output_function_prologue): Update.
3045 (arm_output_epilogue): Update.
3046 (arm_size_return_regs): Update.
3047 (arm_get_frame_offsets): Update.
3048 (arm_expand_prologue): Update.
3049 (thumb_exit): Update.
3050 (thumb_unexpanded_epilogue): Update.
3051 (thumb1_output_function_prologue): Update.
3052 * config/pa/pa.md (return expander): Update.
3053 * config/pa/pa.c (compute_frame_size): Update.
3054 (hppa_builtin_saveregs): Update.
3055 * config/mips/mips.c (mips_va_start): Update.
3056 (mips16_build_function_stub): Update.
3057 (mips_compute_frame_info): Update.
3058 (mips_restore_gp): Update.
3059 (mips_output_function_prologue): Update.
3060 (mips_expand_prologue): Update.
3061 * config/v850/v850.c (compute_frame_size): Update.
3062 (expand_prologue): * config/mmix/mmix.c (along): update.
3063 (mmix_initial_elimination_offset): update.
3064 (mmix_reorg): update.
3065 (mmix_use_simple_return): update.
3066 (mmix_expand_prologue): update.
3067 (mmix_expand_epilogue): Update.
3068 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3069 (emit_link_insn): Update.
3071 2008-04-08 Anatoly Sokolov <aesok@post.ru>
3073 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
3074 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
3076 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
3079 2008-04-07 Jan Hubicka <jh@suse.cz>
3081 * function.h (rtl): Rename to x_rtl.
3083 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3084 frame_offset, stack_check_probe_note, arg_pointer_save_area,
3085 used_temp_slots avail_temp_slots, temp_slot_level,
3086 nonlocal_goto_handler_labels): Update accesstors.
3087 (rtl): New global variable.
3088 (struct function): Move some fileds to rtl_data.
3089 (get_arg_pointer_save_area): Update prototype.
3090 * builtins.c (expand_builtin_setjmp_receiver): Update call of
3091 get_arg_pointer_save_area.
3092 * expr.c (init_expr): Update
3093 * function.c (get_frame_size): Update
3094 (assign_stack_local): Update
3095 (expand_function_end): Update.
3096 (get_art_pointer_save_area): Update
3098 * emit-rtl.c (rtl): Declare.
3099 (regno_reg_rtx): Declare.
3100 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3102 (gen_reg_rtx): Update.
3103 * varasm.c (n_deferred_constatns): Update accestor.
3104 (init_varasm_status): Do not allocate varasm_status.
3105 (force_const_mem, get_pool_size, output_constant_pool): Update.
3106 * stmt.c (force_label_rtx): Do not use x_ prefixes.
3107 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3108 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3109 * sparc/sparc.h (INIT_EXPANDERS): Update.
3110 * ia64/ia64.h (INIT_EXPANDERS): Update.
3112 2008-04-07 James E. Wilson <wilson@tuliptree.org>
3114 * reload.c (push_secondary_reload): Add missing break to for loop.
3116 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
3118 PR middle-end/PR28690
3119 * rtlanal.c: Update copyright years.
3120 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3121 as REG_POINTER and MEM_POINTER operands.
3122 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3123 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3124 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3125 * gcse.c: Update copyright years.
3126 (pre_delete): Call gen_reg_rtx_and_attrs.
3127 (hoist_code): Likewise.
3128 (build_store_vectors): Likewise.
3129 (delete_store): Likewise.
3130 * loop-invariant.c (move_invariant_reg): Likewise.
3131 Update copyright years.
3133 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
3135 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3136 control string instead of quoted.
3138 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3140 * doc/rtl.texi: Rewrite of subreg section.
3142 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
3145 * config/i386/i386.c (legitimize_pic_address): Add treating
3146 of dllimport SYM_REF's.
3147 (legitimize_dllimport_symbol): Add prototype.
3149 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3151 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
3152 reference in constructor with non self-referential type.
3154 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3156 Removal of Return with Depressed Stack Pointer support
3157 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3158 (ECF_SP_DEPRESSED): Likewise.
3159 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3160 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3161 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3162 (expand_call): Do not test ECF_SP_DEPRESSED.
3163 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3164 * function.c (keep_stack_depressed): Delete.
3165 (handle_epilogue_set): Likewise.
3166 (update_epilogue_consts): Likewise.
3167 (emit_equiv_load): Likewise.
3168 (thread_prologue_and_epilogue_insns): Remove support for Return with
3169 Depressed Stack Pointer.
3170 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3172 2008-04-06 Richard Guenther <rguenther@suse.de>
3174 PR tree-optimization/35400
3175 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3176 information from SSA_NAMEs.
3178 2008-04-06 Anatoly Sokolov <aesok@post.ru>
3180 * config/avr/avr.h (avr_mega_p): Remove declaration.
3181 (AVR_MEGA): Remove macro.
3182 * config/avr/avr.c (avr_mega_p): Remove variable.
3183 (avr_override_options): Remove inicializion of avr_mega_p.
3184 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3185 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3186 (avr_jump_mode): (Ditto.).
3187 (avr_output_progmem_section_asm_op): (Ditto.).
3188 (avr_asm_init_sections): (Ditto.).
3189 (avr_asm_init_sections): (Ditto.).
3190 (avr_rtx_costs): (Ditto.).
3191 * config/avr/avr.md: (Ditto.).
3192 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
3195 2008-04-06 Richard Guenther <rguenther@suse.de>
3197 PR tree-optimization/35842
3198 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3199 is_gimple_invariant_address.
3201 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3203 * gcc.c (default_compilers): Sync Fortran extensions list with
3204 that in fortran/lang-specs.h.
3205 * doc/invoke.texi: Likewise.
3206 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3207 * dwarf2out.c (gen_compile_unit_die): Likewise.
3209 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
3211 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3213 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
3216 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3217 attribute is used for nested functions.
3219 2008-04-05 Jan Hubicka <jh@suse.cz>
3221 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3223 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3225 (dump_files): Update.
3226 (enable_rtl_dump_file): Do not accept letter argument.
3227 * tree-pass.h (dump_file_info): Remove letter argument.
3228 * toplev.c (decode_d_option): Update -da handling.
3229 * toplev.h (enable_rtl_dump_file): Update prototype.
3230 * passes.c (register_one_dump_file): Do not accept IPA argument; work
3231 it out based on pass type.
3232 (register_dump_files_1): Likewise.
3233 (init_optimization_passes): Update register_one_dump_file calls.
3234 (execute_one_pass): Sanity check that IPA passes are called at IPA
3235 level and RTL passes at RTL level.
3236 (execute_pass_list): IPA pass can not be after or subpass of
3238 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3239 disallov RTL subpasses of IPA subpasses.
3241 2008-04-05 Ben Elliston <bje@au.ibm.com>
3243 * tree-cfg.c (need_fake_edge_p): Return false for calls to
3244 builtins that return exactly once and do not throw. Cache call to
3247 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3249 PR rtl-optimization/34916
3251 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3252 between instruction pairs.
3254 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
3256 * doc/invoke.texi: Document -mbitops for SH.
3257 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3258 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3259 * config/sh/sh.c (print_operand): Add %t operand code.
3260 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3261 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3262 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
3263 (extendqihi2): Likewise.
3264 (movqi_i): Likewise.
3265 (insv): Use bset, bclr and bst instructions for SH2A if possible.
3266 (extv): Use bld instruction for SH2A if possible.
3268 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
3269 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
3270 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
3271 (bset.b, bclr.b): Define peepholes.
3272 * config/sh/sh.opt (mbitops): New option.
3274 2008-04-04 Janis Johnson <janis187@us.ibm.com>
3277 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
3278 and view convert expression.
3280 2008-04-04 Jakub Jelinek <jakub@redhat.com>
3283 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3285 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
3287 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
3289 * config/i386/cpuid.h (bit_AES): New.
3290 (bit_PCLMUL): Likewise.
3292 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
3293 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
3294 SSE2 if AES or PCLMUL is enabled.
3295 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
3296 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3297 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
3298 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
3299 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
3300 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
3301 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3302 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
3303 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
3304 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
3305 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
3306 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
3307 __builtin_ia32_aeskeygenassist128 and
3308 __builtin_ia32_pclmulqdq128.
3309 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
3310 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
3311 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
3313 * config/i386/i386.h (TARGET_AES): New.
3314 (TARGET_PCLMUL): Likewise.
3315 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
3317 * config/i386/i386.md (UNSPEC_AESENC): New.
3318 (UNSPEC_AESENCLAST): Likewise.
3319 (UNSPEC_AESDEC): Likewise.
3320 (UNSPEC_AESDECLAST): Likewise.
3321 (UNSPEC_AESIMC): Likewise.
3322 (UNSPEC_AESKEYGENASSIST): Likewise.
3323 (UNSPEC_PCLMUL): Likewise.
3325 * config/i386/i386.opt (maes): New.
3326 (mpclmul): Likewise.
3328 * config/i386/sse.md (aesenc): New pattern.
3329 (aesenclast): Likewise.
3331 (aesdeclast): Likewise.
3333 (aeskeygenassist): Likewise.
3334 (pclmulqdq): Likewise.
3336 * config/i386/wmmintrin.h: New.
3338 * doc/extend.texi: Document AES and PCLMUL built-in function.
3340 * doc/invoke.texi: Document -maes and -mpclmul.
3342 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
3344 * function.c (free_after_parsing): Replace with
3345 cxx_push_function_context from C++ front-end.
3346 (allocate_struct_function): Don't call langhook.
3347 * langhooks.h (struct lang_hooks_for_functions): Delete.
3348 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
3350 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
3351 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
3352 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3353 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
3354 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
3355 remove LANG_HOOKS_FUNCTION_INITIALIZER.
3356 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
3358 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
3359 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
3361 2008-04-04 Jakub Jelinek <jakub@redhat.com>
3364 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
3367 2008-04-04 Richard Guenther <rguenther@suse.de>
3370 * fold-const.c (optimize_minmax_comparison): Use the correct
3371 type for the constant in the simplified comparison.
3373 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
3375 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
3376 Pass L2 size as "--param l2-cache-size" to the compiler.
3377 (decode_l2_cache): New function to decode L2 cache parameters using
3378 0x8000006 extended cpuid function.
3379 (detect_caches_amd): Determine parameters of L2 cache using
3380 decode_l2_caches function.
3381 (decode_caches_intel): Decode L2 cache parameters.
3382 (detect_caches_intel): Determine L2 cache parameters using
3383 decode_caches_intel and decode_l2_caches functions.
3385 2008-04-03 Bob Wilson <bob.wilson@acm.org>
3387 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
3388 secondary input reload for subword loads from the constant pool.
3390 2008-04-03 Janis Johnson <janis187@us.ibm.com>
3393 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
3394 constants of the appropriate size for runtime calculations.
3397 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
3398 decimal-float literal constant zero.
3400 2008-04-03 Jakub Jelinek <jakub@redhat.com>
3403 * c-parser.c (c_parser_omp_atomic): Call
3404 default_function_array_conversion on the RHS.
3407 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
3408 call is_variable_sized if decl has incomplete type.
3410 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
3412 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
3414 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
3416 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
3418 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
3419 (sgt<u>): Merge sgt and sgtu into new expander.
3420 (sgt, sgtu): Remove expanders.
3421 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
3422 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
3423 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
3424 *sgtu_<mode>_mips16 into new pattern.
3425 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
3426 (sge<u>): Merge sge and sgeu into new expander.
3427 (sge, sgeu): Remove expanders.
3428 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
3430 (*sge_<mode>, second *sge_<mode>): Remove patterns.
3431 (slt<u>): Merge slt and sltu into new expander.
3432 (slt, sltu): Remove expanders.
3433 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
3434 (*slt_<mode>, *sltu_<mode>): Remove patterns.
3435 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
3436 *sltu_<mode>_mips16 into new pattern.
3437 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
3438 (sle<u>): Merge sle and sleu into new expander.
3439 (sle, sleu): Remove expanders.
3440 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
3441 (*sle_<mode>, *sleu_<mode>): Remove patterns.
3442 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
3443 *sleu_<mode>_mips16 into new pattern.
3444 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
3446 2008-04-03 Jan Hubicka <jh@suse.cz>
3448 PR tree-optimization/35795
3449 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
3450 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3451 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3452 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
3453 * score/score3.c (score3_output_mi_thunk): Likewise.
3454 * score/score7.c (score7_output_mi_thunk): Likewise.
3455 * mips/mips.c (mips_output_mi_thunk): Likewise.
3457 2008-04-03 Richard Guenther <rguenther@suse.de>
3459 * tree-vrp.c (extract_range_from_unary_expr): Handle all
3460 conversions. Simplify code.
3462 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
3464 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
3466 2008-04-03 Tom Tromey <tromey@redhat.com>
3467 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3469 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
3470 * config/bfin/t-bfin-linux (generated_files): Add
3471 linux-sysroot-suffix.h.
3472 * doc/install.texi (Prerequisites): Require make 3.80.
3473 * doc/sourcebuild.texi (Front End Directory): Document new
3475 * Makefile.in (generated_files): New variable.
3476 (ALL_HOST_OBJS): New variable.
3477 ($(ALL_HOST_OBJS)): New target.
3479 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3481 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
3482 (remap_block): Call id->transform_lang_insert_block instead
3484 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
3485 Set id.transform_lang_insert_block to NULL.
3486 (clone_body): Move to cp/optimize.c
3487 * tree-inline.h (struct copy_body_data): Change
3488 transform_lang_insert_block to function pointer.
3489 (copy_generic_body, copy_decl_no_change): Export.
3490 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
3491 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
3492 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
3494 * c-tree.h (insert_block): Kill.
3495 * c-decl.c (insert_block): Kill.
3497 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3499 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3500 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3501 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
3503 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
3504 argument, call {push,pop}_function_context from here.
3505 * c-parser.c: Use c_{push,pop}_function_context.
3507 * function.c (push_function_context_to): Move meat ...
3508 (push_function_context): ... here. Simplify.
3509 * function.c (pop_function_context_from): Move meat ...
3510 (pop_function_context): ... here. Simplify.
3511 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
3513 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3514 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3515 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
3516 * tree.h (push_function_context_to, pop_function_context_from): Remove.
3518 2008-04-03 Ben Elliston <bje@au.ibm.com>
3520 * expmed.c (extract_force_align_mem_bit_field): Remove.
3522 2008-04-03 Richard Guenther <rguenther@suse.de>
3525 * expr.h (try_casesi): Adjust prototype.
3526 * expr.c (try_casesi): Take fallback label as extra parameter.
3527 Use that for gen_casesi if default_label is NULL.
3528 * stmt.c (expand_case): Pass fallback label to try_casesi,
3529 make sure to fill gaps with a fallback label if default_label
3532 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
3535 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
3537 2008-04-03 Ben Elliston <bje@au.ibm.com>
3539 * expmed.c (extract_split_bit_field): Remove if (0) code.
3540 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
3541 (do_ds_constraint): Likewise.
3543 2008-04-02 Joseph Myers <joseph@codesourcery.com>
3545 * doc/cppopts.texi (-dU): Document.
3546 * c-common.h (flag_dump_macros): Update comment.
3547 * c-opts.c (handle_OPT_d): Handle -dU.
3548 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
3549 dump_queued_macros, cb_used_define, cb_used_undef): New.
3550 (init_pp_output): Handle -dU.
3551 (cb_line_change): Call dump_queued_macros.
3552 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
3554 2008-04-02 Anatoly Sokolov <aesok@post.ru>
3556 * config/avr/predicates.md (io_address_operand): New predicate.
3557 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
3558 * config/avr/avr.c (avr_io_address_p): Remove function.
3559 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
3560 'avr_io_address_p' function.
3561 (out_movhi_r_mr): (Ditto.).
3562 (out_movqi_mr_r): (Ditto.).
3563 (out_movhi_mr_r): (Ditto.).
3564 (avr_address_cost): (Ditto.).
3566 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
3568 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
3569 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
3570 in 32bit mode when XMM registers are available to avoid store
3572 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
3573 corresponding post-reload splitters.
3575 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
3577 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
3578 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
3579 __builtin_ia32_roundss.
3580 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
3581 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
3582 __builtin_ia32_roundss.
3583 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
3584 IX86_BUILTIN_SHUFPD here.
3586 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
3588 * config/i386/i386.md (plogic): New.
3589 (plogicprefix): Likewise.
3591 * config/i386/mmx.md (mmx_<code><mode>3): New.
3592 (mmx_and<mode>3): Removed.
3593 (mmx_ior<mode>3): Likewise.
3594 (mmx_xor<mode>3): Likewise.
3596 * config/i386/sse.md (<code><mode>3): New.
3597 (*<code><mode>3): Likewise.
3598 (*<code><mode>3): Likewise.
3599 (<code><mode>3): Likewise.
3600 (*sse_<code><mode>3): Likewise.
3601 (*sse2_<code><mode>3): Likewise.
3602 (<code>tf3): Likewise.
3603 (*<code>tf3): Likewise.
3604 (and<mode>3): Likewise.
3605 (*and<mode>3): Likewise.
3606 (ior<mode>3): Removed.
3607 (*ior<mode>3): Likewise.
3608 (xor<mode>3): Likewise.
3609 (*xor<mode>3): Likewise.
3610 (*and<mode>3): Likewise.
3611 (*ior<mode>3): Likewise.
3612 (*xor<mode>3): Likewise.
3613 (and<mode>3): Likewise.
3614 (*sse_and<mode>3): Likewise.
3615 (*sse2_and<mode>3): Likewise.
3617 (*andtf3): Likewise.
3618 (ior<mode>3): Likewise.
3619 (*sse_ior<mode>3): Likewise.
3620 (*sse2_ior<mode>3): Likewise.
3622 (*iortf3): Likewise.
3623 (xor<mode>3): Likewise.
3624 (*sse_xor<mode>3): Likewise.
3625 (*sse2_xor<mode>3): Likewise.
3627 (*xortf3): Likewise.
3629 2008-04-02 Richard Guenther <rguenther@suse.de>
3631 PR tree-optimization/14495
3632 PR tree-optimization/34793
3633 * tree-vrp.c (struct switch_update): New structure.
3634 (to_remove_edges, to_update_switch_stmts): New VECs.
3635 (simplify_switch_using_ranges): New function. Remove not taken
3636 case labels and edges.
3637 (simplify_stmt_using_ranges): Call it.
3638 (identify_jump_threads): Mark edges we have queued for removal
3639 so we don't thread them.
3640 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
3642 * tree-cfg.c (group_case_labels): Deal with missing default label.
3643 (tree_verify_flow_info): Allow missing default label.
3644 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
3645 (emit_case_nodes): Likewise.
3646 (expand_case): Do not rely on the default label to be present.
3647 * expr.c (try_casesi): Deal with NULL default_label.
3648 (do_tablejump): Likewise.
3650 2008-04-02 Richard Guenther <rguenther@suse.de>
3652 PR tree-optimization/14495
3653 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
3654 SWITCH_EXPR here ...
3655 (vrp_visit_switch_stmt): ... but here (new function).
3656 (find_case_label_index): New helper function.
3657 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
3659 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3661 * fwprop.c: Fix ISO-C99ism.
3663 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3666 * Makefile.in (objdir): Set it here.
3667 * configure.ac: Not here. Find dynamic linker characteristics.
3668 * exec-tool.in: Use them.
3669 * aclocal.m4: Regenerate.
3670 * configure: Regenerate.
3672 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3674 * expr.c (expand_var): Delete it.
3675 * expr.h (expand_var): Delete prototype.
3676 * function.c (expand_function_start): Use expand_decl instead.
3677 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
3680 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
3682 PR rtl-optimization/35542
3683 * fwprop.c (forward_propagate_and_simplify): Replace
3684 loc_reg_mentioned_in_p with reg_mentioned_p.
3686 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3688 PR rtl-optimization/35281
3689 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
3690 (propagate_rtx_1): Handle PR_HANDLE_MEM.
3691 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
3692 (varying_mem_p): Move above propagate_rtx.
3693 (all_uses_available_at): Do not check MEMs.
3695 2008-04-02 Rafael Espindola <espindola@google.com>
3697 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
3698 (register_edge_assert_for_2): Split the cond argument.
3699 (register_edge_assert_for_1): Adjust for the change in
3700 register_edge_assert_for_2.
3701 (register_edge_assert_for): Split the cond argument.
3702 (find_switch_asserts): Adjust for the change in
3703 register_edge_assert_for.
3705 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
3707 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
3708 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
3709 offsets for 64-bit mingw.
3710 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
3711 abi for x86_64-pc-mingw.
3713 2008-04-02 Richard Guenther <rguenther@suse.de>
3715 * tree-vrp.c (extract_range_from_assert): Make sure to not
3716 produce range min/max with TREE_OVERFOW set.
3717 If merging a anti-range and a range keep the anti-range if
3718 the range covers all values of the type.
3719 (register_edge_assert_for_2): Only allow sign-changing
3720 conversions in detecting canonical range checks. Also
3721 register an assert for the unsigned name if useful.
3723 PR tree-optimization/35787
3724 * tree-vrp.c (vrp_val_max): New function.
3725 (vrp_val_min): Likewise.
3726 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
3727 (vrp_val_is_min): Likewise.
3728 (supports_overflow_infinity): Use vrp_val_{min,max}.
3729 (negative_overflow_infinity): Likewise.
3730 (positive_overflow_infinity): Likewise.
3731 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
3732 (is_positive_overflow_infinity): Likewise.
3733 (is_overflow_infinity): Likewise.
3734 (avoid_overflow_infinity): Use vrp_val_{min,max} and
3735 vrp_val_is_{min,max}.
3736 (set_and_canonicalize_value_range): Canonicalize anti-ranges
3737 to ranges if possible. Avoid empty ranges.
3739 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3742 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
3743 the expression is a function address.
3745 2008-04-01 George Helffrich <george@gcc.gnu.org>
3747 PR fortran/35154, fortran/23057
3748 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
3749 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
3750 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
3751 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
3753 (dbxout_syms): Check for COMMON-based symbol and wrap in
3754 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
3755 in bracket for efficiency.
3757 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
3758 using DW_TAG_common_block + member offset.
3759 (add_pubname_string): New function.
3760 (dw_expand_expr): New function to find block name and offset for
3762 (common_check): New function to check whether symbol in Fortran COMMON.
3763 (gen_variable_die): If COMMON, use DW_TAG_common_block.
3765 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
3768 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
3770 2008-04-02 Ben Elliston <bje@au.ibm.com>
3772 * config/v850/v850.md (casesi): Remove if (0) code.
3773 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3774 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
3776 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
3778 * config/i386/i386.md (rex64suffix): New mode attribute.
3779 (floathi<mode>2): Disable expander for SSE math.
3780 (*floathi<mode>2_1): New insn insn_and_split pattern.
3781 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
3782 corresponding post-reload splitters.
3783 (*floathi<mode>2_i387): New macroized insn pattern.
3784 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
3785 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
3786 insn_and_split pattern.
3787 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
3788 New macroized instruction patterns and corresponding post-reload
3790 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
3791 and corresponding post-reload splitters.
3792 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
3793 New macroized instruction patterns.
3794 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
3795 macroized instruction patterns and corresponding post-reload splitters.
3796 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
3797 corresponding post-reload splitters.
3798 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
3799 New macroized instruction patterns.
3800 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
3801 corresponding post-reload splitters.
3802 (*floatsi<mode>2_i387): New macroized instruction patterns.
3804 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
3806 * config/i386/i386.md (smaxmin): New.
3807 (umaxmin): Likewise.
3808 (maxminiprefix): Likewise.
3809 (maxminfprefix): Likewise.
3810 (<code><mode>3): Likewise.
3811 (smin<mode>3): Removed.
3812 (smax<mode>3): Likewise.
3814 * config/i386/mmx.md (mmx_<code>v2sf3): New.
3815 (mmx_<code>v4hi3): Likewise.
3816 (mmx_<code>v8qi3): Likewise.
3817 (mmx_smaxv2sf3): Removed.
3818 (mmx_sminv2sf3): Likewise.
3819 (mmx_umaxv8qi3): Likewise.
3820 (mmx_smaxv4hi3): Likewise.
3821 (mmx_uminv8qi3): Likewise.
3822 (mmx_sminv4hi3): Likewise.
3824 * config/i386/sse.md (<addsub><mode>3): New.
3825 (*<addsub><mode>3): Likewise.
3826 (<sse>_vm<addsub><mode>3): Likewise.
3827 (<maxmin><mode>3): Likewise.
3828 (*<maxmin><mode>3_finite): Likewise.
3829 (*<maxmin><mode>3): Likewise.
3830 (<sse>_vm<maxmin><mode>3): Likewise.
3831 (sse3_h<addsub>v4sf3): Likewise.
3832 (sse3_h<addsub>v2df3): Likewise.
3833 (<maxmin>v16qi3): Likewise.
3834 (*<maxmin>v16qi3): Likewise.
3835 (<maxmin>v8hi3): Likewise.
3836 (*<maxmin>v8hi3): Likewise.
3837 (*sse4_1_<maxmin><mode>3): Likewise.
3838 (*sse4_1_<maxmin><mode>3): Likewise.
3839 (add<mode>3): Removed.
3840 (*add<mode>3): Likewise.
3841 (<sse>_vmadd<mode>3): Likewise.
3842 (sub<mode>3): Likewise.
3843 (*sub<mode>3): Likewise.
3844 (<sse>_vmsub<mode>3): Likewise.
3845 (smin<mode>3): Likewise.
3846 (*smin<mode>3_finite): Likewise.
3847 (*smin<mode>3): Likewise.
3848 (<sse>_vmsmin<mode>3): Likewise.
3849 (smax<mode>3): Likewise.
3850 (*smax<mode>3_finite): Likewise.
3851 (*smax<mode>3): Likewise.
3852 (<sse>_vmsmax<mode>3): Likewise.
3853 (sse3_haddv4sf3): Likewise.
3854 (sse3_haddv2df3): Likewise.
3855 (sse3_hsubv4sf3): Likewise.
3856 (sse3_hsubv2df3): Likewise.
3857 (umaxv16qi3): Likewise.
3858 (*umaxv16qi3): Likewise.
3859 (smaxv8hi3): Likewise.
3860 (*smaxv8hi3): Likewise.
3861 (*sse4_1_smax<mode>3): Likewise.
3862 (*sse4_1_umax<mode>3): Likewise.
3863 (uminv16qi3): Likewise.
3864 (*uminv16qi3): Likewise.
3865 (sminv8hi3): Likewise.
3866 (*sminv8hi3): Likewise.
3867 (*sse4_1_smin<mode>3): Likewise.
3868 (*sse4_1_umin<mode>3): Likewise.
3870 2008-04-01 Rafael Espindola <espindola@google.com>
3872 * tree-cfg.c (verify_expr): remove in_phi.
3873 (verify_stmt): Don't call walk_tree with verify_expr. Use
3874 is_gimple_min_invariant instead of is_gimple_val.
3876 2008-04-01 Joseph Myers <joseph@codesourcery.com>
3878 * doc/include/gpl_v3.texi: Update for manpage generation.
3879 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
3881 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
3882 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
3883 gpl_v3.texi instead of gpl.texi.
3886 2008-04-01 Jakub Jelinek <jakub@redhat.com>
3889 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
3891 2008-04-01 Rafael Espindola <espindola@google.com>
3893 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
3894 (extract_code_and_val_from_cond): Use
3895 extract_code_and_val_from_cond_with_ops.
3897 2008-04-01 Jan Hubicka <jh@suse.cz>
3899 * function.c (free_after_compilation): Free epilogue_delay_list.
3900 (prepare_function_start): Assert that previous compilation was freed.
3902 2008-04-01 Jan Hubicka <jh@suse.cz>
3903 Jim Wilson <wilson@tuliptree.org>
3904 Andreas Tobler <andreast@gcc.gnu.org>
3907 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
3908 rtl.emit instead cfun->emit.
3909 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
3910 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
3912 2008-04-01 Ben Elliston <bje@au.ibm.com>
3914 * doc/c-tree.texi (Function Basics): Fix grammatical error.
3916 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
3918 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
3920 (fprofile-use): Add var flag_profile_use
3921 * coverage.c (coverage_begin_output): Do not open a gcno file for
3922 output only if -ftest-coverage is set.
3923 Do not add getpwd() to gcda file path.
3924 (build_gcov_info): Check the new flag
3925 flag_profile_datafile_relative_path.
3926 (coverage_init): Use profile_data_prefix.
3927 Read profile counter only if flag_profile_use is set.
3928 * opts.c (common_handle_option): New option fprofile-use=,
3929 fprofile-dir=, fprofile-generate=.
3930 * toplev.c (profile_data_prefix): New variable definition.
3931 * toplev.h (profile_data_prefix): New declaration.
3932 * doc/invoke.tex (Option Summary, Optimization Options):
3935 2008-03-31 James E. Wilson <wilson@tuliptree.org>
3937 * varasm.c (output_constant_pool_1): In LABEL_REF check,
3938 use tmp consistently.
3941 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
3942 * config/ia64/ia64.c (rtx_needs_barrier): Handle
3943 UNSPEC_FR_RECIP_APPROX_RES.
3944 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
3946 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
3949 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
3951 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
3954 * fold-const.c (fold_indirect_ref_1): Support accessing non first
3955 element of the vector via a pointer.
3957 2008-03-31 Ian Lance Taylor <iant@google.com>
3959 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
3961 2008-03-31 Jan Hubicka <jh@suse.cz>
3963 * builtins.c (expand_builtin_setjmp_receiver): Update call of
3964 get_arg_pointer_save_area.
3965 * expr.c (init_expr): Just clear out rtl.expr.
3966 * function.c (free_after_compilation): Clear out whole RTL structure.
3967 (get_func_frame_size): Merge into ...
3968 (get_frame_size): ... this one.
3969 (assign_stack_local_1): Merge into ...
3970 (assign_stack_local): ... this one.
3971 (expand_function_end): Update call of get_arg_pointer_save_area.
3972 (get_art_pointer_save_area): Remove cfun argument.
3973 * function.h (emit_status): regno_pointer_align does not need length
3974 attribute. Move x_regno_reg_rtx to ...
3975 (regno_reg_rtx): ... new global array.
3976 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
3977 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
3978 apply_args_value, forced_labels, stack_pointer_delta):
3980 (struct varasm_status): Move here from varasm.c
3981 (struct rtl_data): New. Move here some fields from struct function.
3982 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3983 frame_offset, stack_check_probe_note, arg_pointer_save_area,
3984 used_temp_slots avail_temp_slots, temp_slot_level,
3985 nonlocal_goto_handler_labels): Update accesstors.
3986 (rtl): New global variable.
3987 (struct function): Move some fileds to rtl_data.
3988 (get_arg_pointer_save_area): Update prototype.
3989 * emit-rtl.c (rtl): Declare.
3990 (regno_reg_rtx): Declare.
3991 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3993 (gen_reg_rtx): Update.
3994 (init_virtual_regs): Do not tate emit_status argument.
3995 (init_emit): Do not allocate emit.
3996 * varasm.c (varasm_statuc): Move to function.h.
3997 (n_deferred_constatns): Update accestor.
3998 (init_varasm_status): Do not allocate varasm_status.
3999 (force_const_mem, get_pool_size, output_constant_pool): Update.
4000 * stmt.c (force_label_rtx): Do not use x_ prefixes.
4001 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4003 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
4005 PR rtl-optimization/35729
4006 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
4009 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
4012 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
4013 load/store if memory is unaligned.
4014 (*movti_rex64): Likewise.
4016 * config/i386/predicates.md (misaligned_operand): New.
4018 2008-03-31 Andrew Pinski <pinskia@gmail.com>
4021 * tree-ssa-phiopt.c (conditional_replacement): Return early for
4024 2008-03-31 Jan Beulich <jbeulich@novell.com>
4026 * config/ia64/constraints.md: Add 'j' constraint.
4027 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
4028 (movdi_internal): Likewise.
4030 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
4033 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
4035 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
4038 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
4039 proper error message for the third argument on blendpd and
4042 * config/i386/sse.md (blendbits): New.
4043 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
4045 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
4047 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
4049 2008-03-30 Richard Guenther <rguenther@suse.de>
4052 * fold-const.c (fold_sign_changed_comparison): Do leave
4053 conversions to base-types alone.
4055 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
4057 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
4058 the link register if one altivec register is be saved.
4060 2008-03-30 Ben Elliston <bje@au.ibm.com>
4062 * final.c (final_scan_insn): Remove if (0) code.
4064 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
4066 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
4068 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
4070 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
4071 of V4SFmode to ix86_binary_operator_ok.
4073 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
4075 * config/i386/i386.c (override_options): Initialize
4076 ix86_veclib_handler to ix86_veclibabi_svml when
4077 -mveclibabi=svml is used.
4078 (ix86_veclibabi_svml): New function for SVML ABI style
4079 vectorization support.
4080 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
4082 2008-03-28 Rafael Espindola <espindola@google.com>
4084 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
4085 (tree_binary_nonnegative_warnv_p): Make it public.
4086 (tree_single_nonnegative_warnv_p): Make it public.
4087 (tree_invalid_nonnegative_warnv_p): Make it public.
4088 (tree_unary_nonzero_warnv_p): Make it public.
4089 (tree_binary_nonzero_warnv_p): Make it public
4090 (tree_single_nonzero_warnv_p): Make it public.
4091 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
4092 (extract_range_from_binary_expr): Split the expr argument.
4093 (extract_range_from_unary_expr): Split the expr argument.
4094 (extract_range_from_comparison): Split the expr argument.
4095 (extract_range_from_expr): Use the new aux functions.
4096 (vrp_evaluate_conditional_warnv): Use
4097 vrp_evaluate_conditional_warnv_with_ops.
4098 * tree.h (tree_unary_nonzero_warnv_p): Declare.
4099 (tree_binary_nonzero_warnv_p): Declare.
4100 (tree_single_nonzero_warnv_p): Declare.
4101 (tree_expr_nonzero_warnv_p): Declare.
4102 (tree_unary_nonnegative_warnv_p): Declare.
4103 (tree_binary_nonnegative_warnv_p): Declare.
4104 (tree_single_nonnegative_warnv_p): Declare.
4105 (tree_invalid_nonnegative_warnv_p): Declare.
4107 2008-03-28 Richard Guenther <rguenther@suse.de>
4109 PR tree-optimization/30317
4110 PR tree-optimization/30911
4111 PR tree-optimization/34793
4112 * tree-vrp.c (set_and_canonicalize_value_range): New function.
4113 (struct assert_locus_d): New member EXPR.
4114 (register_new_assert_for): Add EXPR parameter to support
4115 ASSERT_EXPR <name, expr OP limit>.
4116 (register_edge_assert_for_1): Adjust callers.
4117 (find_assert_locations): Likewise.
4118 (process_assert_insertions_for): Build condition from expression.
4119 (extract_range_from_assert): Handle ASSERT_EXPRs
4120 of the form ASSERT_EXPR <name, expr OP limit>.
4121 (register_edge_assert_for_2): New helper registering
4122 asserts for comparisons. Recognize range tests of the form
4123 (unsigned)i - CST1 OP CST2.
4124 (register_edge_assert_for_1): Use it.
4125 (register_edge_assert_for): Likewise.
4126 (needs_overflow_infinity): Integer sub-types
4127 do not need overflow infinities.
4128 (vrp_val_is_max): The extreme values of integer sub-types
4129 are those of the base type.
4130 (vrp_val_is_min): Likewise.
4131 * tree.def (ASSERT_EXPR): Document extra allowed conditional
4134 2008-03-28 Nick Clifton <nickc@redhat.com>
4137 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4138 Return GENERAL_REGS for stack adjustment reloads.
4140 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
4143 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
4144 const_vector when all the vectors are constant.
4146 2008-03-27 Bob Wilson <bob.wilson@acm.org>
4148 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
4150 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
4151 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
4153 (s<code>_sf): Use new scc_sf attribute for opcode names.
4155 2008-03-27 Tom Tromey <tromey@redhat.com>
4157 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
4158 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
4159 config/spu/t-spu-elf, config/i386/t-interix,
4160 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
4161 config/i386/x-darwin, config/i386/x-mingw32,
4162 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
4163 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
4164 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
4165 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
4166 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
4167 config/rs6000/x-darwin, config/rs6000/t-rs6000,
4168 config/score/t-score-elf, config/arm/t-strongarm-pe,
4169 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
4170 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
4171 Revert automatic dependency patch.
4173 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
4176 * config/i386/i386.c (ix86_function_arg_boundary): Align
4177 decimal floating point to its natural boundary.
4179 2008-03-27 Richard Guenther <rguenther@suse.de>
4182 * fold-const.c (fold_comparison): Restrict distinct decl
4183 comparison folding to VAR_DECLs and PARM_DECLs. Do not
4184 solely rely on operand_equal_p.
4186 2008-03-27 Richard Guenther <rguenther@suse.de>
4189 * c-common.c (handle_weak_attribute): Reject combination of
4192 2008-03-27 Richard Guenther <rguenther@suse.de>
4194 PR tree-optimization/32810
4195 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
4196 conversions from DECL_INITIAL.
4197 (fold_const_aggregate_ref): Likewise from constructor elements.
4199 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
4201 * tree-affine.h (aff_combination_expand): Declare.
4202 (get_inner_reference_aff): Likewise.
4203 * tree-affine.c (aff_combination_expand): Split out from
4204 tree_to_aff_combination_expand.
4205 (get_inner_reference_aff): New function.
4206 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
4207 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
4208 (struct lim_aux_data): sm_done field removed.
4209 (mem_ref_loc_p, mem_ref_locs_p): New types.
4210 (struct mem_ref): Added id, stored, accesses_in_loop,
4211 indep_loop, dep_loop, indep_ref, dep_ref fields.
4212 Removed is_stored, locs and next fields.
4213 (memory_accesses): New variable.
4214 (movement_possibility): Do not allow moving statements
4215 that store to memory.
4216 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
4218 (determine_max_movement): For statements with memory references,
4219 find the outermost loop in that the reference is independent.
4220 (move_computations_stmt): Mark the virtual operands for renaming.
4221 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
4222 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
4223 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
4224 add_vop_ref_mapping, create_vop_ref_mapping_loop,
4225 create_vop_ref_mapping, analyze_memory_references,
4226 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
4227 get_all_locs_in_loop, ref_always_accessed_p,
4228 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
4229 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
4230 store_motion_loop, store_motion): New functions.
4231 (struct vop_to_refs_elt): New type.
4232 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
4233 memref_hash, memref_eq, hoist_memory_references): Rewritten.
4234 (schedule_sm): Replaced by...
4235 (execute_sm): ... this.
4236 (determine_lsm_ref, hoist_memory_references,
4237 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
4238 find_more_ref_vops, free_mem_ref, free_mem_refs,
4239 determine_lsm_loop, determine_lsm): Removed.
4240 (tree_ssa_lim_finalize): Free data structures used by store motion.
4241 (tree_ssa_lim): Call analyze_memory_references. Use
4242 store_motion instead of determine_lsm.
4244 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
4246 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
4247 rename tmake_file to m68hc11/t-m68hc11.
4248 (mcore): Set inhibit_libc to true.
4249 * config.host (alpha*-dec-*vms*): Set extra_programs.
4250 (interix3*): Don't use host_xmake_file.
4251 * configure.ac: Let config.gcc override inhibit_libc.
4252 * configure: Regenerate.
4254 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
4255 * config/t-openbsd-thread: Remove commented out lines.
4257 * config/x-interix: Remove.
4259 * config/m68hc11/t-m68hc11-gas: Rename to...
4260 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
4262 * config/mcore/t-mcore: Remove T_CFLAGS.
4263 * config/mcore/t-mcore-pe: Likewise.
4265 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
4267 * configure.ac: Replace custom __GNU_SOURCE test with
4268 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
4269 * aclocal.m4: Regenerate.
4270 * configure: Regenerate.
4271 * config.in: Regenerate.
4273 2008-03-27 Richard Guenther <rguenther@suse.de>
4275 * fold-const.c (target.h): Include.
4276 (fold_comparison): Fold comparison of addresses of decls
4277 that bind locally or of constants. Consolidate address folding code.
4278 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
4279 results from fold_binary_to_constant.
4280 (compare_values_warnv): Likewise.
4282 2008-03-27 Andrew Pinski <pinskia@gmail.com>
4285 * fold-const.c (fold_truthop): Check for integeral types when folding
4286 a == 0 && b == 0 and a != 0 || b != 0 .
4288 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
4290 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
4292 2008-03-26 Andreas Schwab <schwab@suse.de>
4294 * doc/invoke.texi: Fix use of @item vs. @itemx.
4296 2008-03-26 Tom Tromey <tromey@redhat.com>
4298 * Makefile.in (build/gensupport.o, build/print-rtl.o,
4299 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
4300 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
4301 build/gencodes.o, build/genconditions.o, build/genconfig.o,
4302 build/genconstants.o, build/genemit.o, build/genextract.o,
4303 build/genflags.o, build/genmddeps.o, build/genopinit.o,
4304 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
4307 2008-03-26 Richard Guenther <rguenther@suse.de>
4310 2008-03-26 Richard Guenther <rguenther@suse.de>
4312 * fold-const.c (target.h): Include.
4313 (fold_comparison): Fold comparison of addresses of two decls
4314 that bind locally. Consolidate address folding code.
4316 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4318 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
4319 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
4320 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
4321 dconstsqrt2, dconstthird, dconste and/or dconst10.
4322 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
4323 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
4324 dconstsqrt2, dconste): Delete.
4325 (init_emit_once): Likewise. Simplify initializing dconstm1.
4327 * real.c (get_real_const): New.
4328 * real.h (dconst3, dconst10, dconstm2, dconstthird,
4329 dconstsqrt2, dconste): Delete.
4330 (real_value_const, get_real_const): New.
4332 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
4334 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
4336 * config/i386/i386.c (ix86_function_arg_boundary): Check
4337 BIGGEST_ALIGNMENT instead of 128.
4338 (setup_incoming_varargs_64): Likewise.
4340 2008-03-26 Tom Tromey <tromey@redhat.com>
4342 * Makefile.in (DEPFILES): Add missing '/'.
4344 2008-03-26 Richard Guenther <rguenther@suse.de>
4346 * fold-const.c (target.h): Include.
4347 (fold_comparison): Fold comparison of addresses of two decls
4348 that bind locally. Consolidate address folding code.
4350 2008-03-26 Nick Clifton <nickc@redhat.com>
4353 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
4354 not allow INT+INT as a legitimate addressing mode.
4356 2008-03-26 Richard Guenther <rguenther@suse.de>
4358 * tree-flow.h (widen_bitfield): Remove declaration.
4359 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
4360 (widen_bitfield): Remove function.
4361 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
4364 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
4367 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
4370 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
4372 PR rtl-optimization/35232
4373 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
4374 (forget_old_reloads_1, forget_marked_reloads): Don't clear
4375 reg_reloaded_call_part_clobbered here.
4376 (reload_regs_reach_end_p): New function.
4377 (reload_reg_rtx_for_input): New variable.
4378 (reload_reg_rtx_for_output): Likewise.
4379 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
4380 when reassigning a pseudo register. Load reloadreg from
4381 reload_reg_rtx_for_input, moving the mode and register
4383 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
4384 instead of the original when deciding whether an input reload
4385 would be a no-op or whether an output reload can be deleted.
4386 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
4387 when setting up new_spill_reg_store. Load it from
4388 reload_reg_rtx_for_output, moving the mode and register
4390 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
4391 instead of the original when deciding whether an output reload
4392 would be a no-op. Do the same when modifying insn notes.
4393 Use rtx_equal_p instead of == to compare the registers.
4394 (inherit_piecemeal_p): Take a mode and two register numbers
4396 (emit_reload_insns): Clear new_spill_reg_store for every hard
4397 register in the reload register. Remove spill registers
4398 from reg_reloaded_valid before considering whether to record
4399 inheritance information for them. Use reload_reg_rtx_for_output
4400 instead of reg_rtx when recording output reloads. Use
4401 reload_reg_rtx_for_input instead of reg_rtx when recording
4402 input reloads. Set or clear reg_reloaded_call_part_clobbered
4403 at the same time as setting reg_reloaded_valid.
4404 (delete_output_reload): Add a new_reload_reg parameter and use it
4405 instead of rld[j].reg_rtx.
4406 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
4409 2008-03-25 Tom Tromey <tromey@redhat.com>
4411 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
4412 (build/genattr.o): Likewise.
4413 (build/genattrtab.o): Likewise.
4414 (build/gencodes.o): Likewise.
4415 (build/genconfig.o): Likewise.
4416 (build/genconstants.o): Likewise.
4417 (build/genemit.o): Likewise.
4418 (build/genextract.o): Likewise.
4419 (build/genflags.o): Likewise.
4421 2008-03-25 Bob Wilson <bob.wilson@acm.org>
4423 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
4424 instead of size_int for integer types.
4425 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
4426 to match type of MINUS_EXPR.
4428 2008-03-25 Tom Tromey <tromey@redhat.com>
4430 * configure: Rebuilt.
4431 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
4434 2008-03-25 Tom Tromey <tromey@redhat.com>
4436 * config/x-solaris (host-solaris.o): Update.
4437 * config/x-linux (host-linux.o): Update.
4438 * config/x-hpux (host-hpux.o): Update.
4439 * config/x-darwin (host-darwin.o): Update.
4440 * config/v850/t-v850e (v850-c.o): Update.
4441 * config/v850/t-v850 (v850-c.o): Update.
4442 * config/t-vxworks (vxworks.o): Update.
4443 * config/t-sol2 (sol2-c.o, sol2.o): Update.
4444 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
4445 * config/spu/t-spu-elf (spu-c.o): Update.
4447 * config/sh/t-symbian (sh-c.o): Update.
4448 (symbian.o): Update.
4449 * config/sh/t-sh (sh-c.o): Update.
4450 * config/score/t-score-elf (score7.o, score3.o): Update.
4451 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
4452 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
4453 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
4454 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
4456 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
4457 * config/m32c/t-m32c (m32c-pragma.o): Update.
4458 * config/ia64/t-ia64 (ia64-c.o): Update.
4459 * config/i386/x-mingw32 (host-mingw32.o): Update.
4460 * config/i386/x-i386 (driver-i386.o): Update.
4461 * config/i386/x-darwin (host-i386-darwin.o): Update.
4462 * config/i386/x-cygwin (host-cygwin.o): Update.
4463 * config/i386/t-nwld (nwld.o): Update.
4464 * config/i386/t-netware (netware.o): Update.
4465 * config/i386/t-interix (winnt.o): Update.
4466 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
4467 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
4468 msformat-c.o): Update.
4469 * config/bfin/t-bfin-linux (generated_files): Add
4470 linux-sysroot-suffix.h.
4471 * config/arm/t-wince-pe (pe.o): Update.
4472 * config/arm/t-strongarm-pe (pe.o): Update.
4473 * config/arm/t-pe (pe.o): Update.
4474 * config/arm/t-arm (arm-c.o): Update.
4475 * doc/install.texi (Prerequisites): Require make 3.80.
4476 * Makefile.in: Remove .o targets.
4477 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
4478 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
4479 (simple_generated_h, simple_generated_c): Move earlier.
4480 (generated_files): New variable.
4481 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
4482 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
4483 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
4484 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
4485 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
4486 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
4487 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
4488 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
4489 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
4490 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
4491 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
4492 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
4494 (COMPILE.base, COMPILE): New variables.
4495 (%.o): New pattern rule.
4496 (ALL_HOST_OBJS): New variable.
4497 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
4498 (dummy-checksum.o, cc1-checksum.o): Remove.
4499 (DRIVER_SHLIB): New variable.
4500 (DRIVER_DEFINES): Use it.
4501 (gencondmd.c): Move out of build/.
4502 (s-conditions): Update.
4503 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
4504 (ALL_BUILD_OBJS): Likewise.
4505 (build/%.o): Use BUILDCOMPILE.
4506 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
4507 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
4508 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
4509 build/gencheck.o, build/gencodes.o, build/genconditions.o,
4510 build/genconfig.o, build/genconstants.o, build/genemit.o,
4511 build/genextract.o, build/genflags.o, build/genmddeps.o,
4512 build/genopinit.o, build/genoutput.o, build/genpeep.o,
4513 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
4514 build/gen-protos.o, build/scan.o, build/fix-header.o,
4515 build/scan-decls.o): Simplify.
4516 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
4517 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
4518 prefix.o, toplev.o): Reduce to variable setting.
4519 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
4520 ($(out_object_file), gcc-options.o): New targets.
4521 ($(ALL_HOST_OBJS)): New target. Include dependency files.
4522 * configure: Rebuilt.
4523 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
4524 * doc/sourcebuild.texi (Front End Directory): Document new variable.
4526 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
4528 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
4529 complain when we hit an error, return ERROR_MARK_NODE.
4531 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
4533 * config/sh/constraints.md (Pso, Psz): New constraints.
4534 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
4535 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
4537 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
4539 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
4540 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
4542 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
4544 * config/sh/sh.md (prefetch): Add condition for SH2A target.
4545 (prefetch_sh2a): New.
4547 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
4548 Naveen.H.S <naveen.hs@kpitcummins.com>
4550 * config/sh/constraints.md (I28): New constraint.
4551 * config/sh/sh.c (broken_move): Add support for movi20s.
4552 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
4554 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
4555 Jayant Sonar <Jayant.sonar@kpitcummins.com>
4556 Naveen.H.S <naveen.hs@kpitcummins.com>
4558 * config/sh/sh.c (SH_ATTRIBUTES): Define.
4559 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
4560 (print_operand): Handle resbank in %@ operand code.
4561 (sh_encode_section_info): New.
4562 (push_regs): Add conditions for resbank.
4563 (sh_expand_epilogue): Likewise.
4564 (sh_insert_attributes): Likewise.
4565 (sh_attribute_table): Likewise.
4566 (sh_handle_resbank_handler_attribute): New.
4567 (sh2a_handle_function_vector_handler_attribute): New.
4568 (sh2a_is_function_vector_call): New.
4569 (sh2a_get_function_vector_number): New.
4570 (sh2a_function_vector_p): New.
4571 (sh_cfun_resbank_handler_p): New.
4572 * config/sh/sh.md (calli): Emit jsr/n if possible.
4573 (calli_tbr_rel): New.
4574 (calli_pcrel): Emit jsr/n if possible.
4575 (return_i): Emit rts/n if possible.
4576 (call_valuei_tbr_rel): New.
4577 (call_valuei_pcrel): Add condition for SH2A target.
4578 (call_value): Likewise.
4579 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
4580 (sh2a_get_function_vector_number): Likewise.
4581 (sh2a_is_function_vector_call): Likewise.
4582 * doc/extend.texi: Document TBR relative addressing of SH2A.
4583 (resbank): Add description for SH2A.
4585 2008-03-24 Richard Guenther <rguenther@suse.de>
4588 * gimplify.c (gimplify_modify_expr): For frontend type-correct
4589 pointer assignments change conversions according to middle-end rules.
4590 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
4591 * configure.ac: Include type checking in yes.
4592 * configure: Regenerate.
4594 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4596 * diagnostic.c (diagnostic_count_diagnostic): Delete.
4597 (diagnostic_report_diagnostic): Update. Handle ICEs here.
4599 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
4601 * gthr-vxworks.h (UNUSED): Define.
4603 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
4605 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
4607 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
4609 * doc/extend.texi (Function Attributes): Add missing comma in the
4610 example of the "alloc_size" attribute.
4612 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
4615 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
4617 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4620 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
4623 * stor-layout.c (update_alignment_for_field): Set minimum alignment
4624 of the underlying type of a MS bitfield layout to the natural
4625 alignment of the type.
4627 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
4629 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
4630 to their natural alignment to avoid store forwarding stalls.
4632 2008-03-22 Richard Guenther <rguenther@suse.de>
4634 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
4635 For PHI nodes verify the address is invariant.
4636 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
4637 (get_symbol_constant_value): Use is_gimple_min_invariant.
4638 (maybe_fold_stmt_indirect): Likewise.
4640 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
4642 PR rtl-optimization/33927
4643 * Makefile.in (dse.o): Depend on $(TM_P_H).
4644 * expr.h (extract_low_bits): Declare.
4645 * expmed.c (extract_low_bits): New function.
4646 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
4647 * dse.c: Include tm_p.h.
4648 (find_shift_sequence): Remove the read_reg argument and return the
4649 read value. Emit the instructions instead of returning them.
4650 Iterate on new_mode rather than calculating it each time.
4651 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
4652 source to NEW_MODE and extract_low_bits to convert the shifted
4654 (replace_read): Allow the load and store to have different mode
4655 classes. Use extract_low_bits when SHIFT == 0. Create the shift
4656 or extraction instructions before trying the replacement. Update
4657 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
4659 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
4661 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
4662 to their natural alignment to avoid store forwarding stalls.
4664 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
4667 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
4668 encouraging but not allowing gprs for input;
4669 change the input constraint to !f#r.
4670 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
4672 change the output constraint to !f#r.
4674 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
4677 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
4678 corresponding post-reload splitters.
4679 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
4680 when x87 FP math is selected.
4681 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
4682 New function prototype.
4683 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
4684 unreachable function to ease macroization of insn patterns.
4686 2008-03-21 Martin Jambor <mjambor@suse.cz>
4688 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
4689 reference dumps if ddr is NULL or dependence is unknown.
4691 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
4693 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
4694 unsigned extension into account.
4695 (ATOMIC_COMPARE_AND_SWAP): Likewise.
4696 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
4697 Do computations on a scratch register.
4699 2008-03-21 Richard Guenther <rguenther@suse.de>
4701 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4702 Use is_gimple_min_invariant instead of TREE_INVARIANT.
4703 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4704 * tree-ssa-dom.c (record_equality): Likewise.
4705 * tree-inline.c (copy_body_r): Likewise.
4706 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
4709 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
4711 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
4712 as 'delete_unused' argument.
4714 2008-03-20 Richard Guenther <rguenther@suse.de>
4716 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
4717 special casing of constant qualifiers.
4718 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
4719 care about them in general.
4720 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
4721 regardless of their type.
4722 (fold_stmt_r): Forcefully fold *& if we end up with that.
4724 2008-03-20 Paul Brook <paul@codesourcery.com>
4726 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
4727 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
4729 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
4731 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
4732 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
4734 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
4736 * common.opt (Wmudflap): New option.
4737 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
4738 (mx_register_decls): Likewise.
4739 (mudflap_finish_file): Likewise.
4740 * doc/invoke.texi: Document -Wno-mudflap.
4742 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
4744 * c-format.c (replace_format_name_to_system_name): New.
4746 (convert_format_name_to_system_name): New.
4747 (decode_format_attr): Add use of convert_format_name_to_system_name.
4748 (format_types_orig): Add gnu_ prefix to names.
4749 (check_format_info_main): Special treating of \0 escaped names for
4750 supporting multi-character format specifiers as I32, I64.
4751 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
4752 (gnu_target_overrides_format_attributes): New.
4753 * c-format.h: Add structure target_ovr_attr to hold
4754 system specific formatter names.
4755 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
4756 msformat-c.o file to c_target_objs and cxx_target_objs.
4757 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
4758 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
4759 (TARGET_N_FORMAT_TYPES): New.
4760 * config/i386/msformat-c.c: New.
4761 * config/i386/t-cygming: Add build rule for msformat-c.o.
4762 * doc/extend.texi: Add new format names gnu_* and ms_* and
4764 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
4766 2008-03-20 Ira Rosen <irar@il.ibm.com>
4768 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
4769 optimizations turned on under -O3.
4770 (ftree-vectorize): Add that the flag is turned on with -O3.
4772 2008-03-20 Ben Elliston <bje@au.ibm.com>
4774 * regmove.c (try_auto_increment): Fix spelling error in comment.
4775 * final.c (final_scan_insn): Likewise.
4777 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
4780 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
4781 allocator preferences for "y" and "r" class registers.
4782 ("*mov<mode>_internal"): Ditto.
4783 ("*movv2sf_internal_rex64"): Ditto.
4784 ("*movv2sf_internal"): Ditto.
4786 2008-03-19 Michael Matz <matz@suse.de>
4789 * calls.c (expand_call): Check overlap of arguments with call
4790 address for sibcalls.
4792 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
4795 * stor-layout.c (update_alignment_for_field): Set minimum alignment
4796 of the underlying type of a MS bitfield layout to the natural
4797 alignment of the type.
4799 2008-03-19 Jan Hubicka <jh@suse.cz>
4802 * toplev.c (decode_d_option): Handle all CPP flags.
4803 * tree-vrp.c: Update tree_pass descriptors.
4804 * regrename.c: Update tree_pass descriptors.
4805 * fwprop.c: Update tree_pass descriptors.
4806 * doc/invoke.texi: Remove documentation of dropped -d? flags.
4807 * tree-into-ssa.c: Update tree_pass descriptors.
4808 * tree-dump.c: Update tree_pass descriptors.
4809 * tree-complex.c: Update tree_pass descriptors.
4810 * tree-dump.h: Update tree_pass descriptors.
4811 * see.c: Update tree_pass descriptors.
4812 * cgraphbuild.c: Update tree_pass descriptors.
4813 * tracer.c: Update tree_pass descriptors.
4814 * tree-loop-distribution.c: Update tree_pass descriptors.
4815 * cgraph.c: Update tree_pass descriptors.
4816 * postreload-gcse.c: Update tree_pass descriptors.
4817 * postreload.c: Update tree_pass descriptors.
4818 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
4819 * tree-tailcall.c: Update tree_pass descriptors.
4820 * tree-pass.h (tree_opt_pass): Rename to ...
4821 (opt_pass) ... this one; add "type" field and remove letter field.
4822 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
4823 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
4824 all_lowering_passes): Update declaration.
4825 * ipa-cp.c: Update tree_pass descriptors.
4826 * final.c: Update tree_pass descriptors.
4827 * omp-low.c: Update tree_pass descriptors.
4828 * tree-ssa-dse.c: Update tree_pass descriptors.
4829 * ipa-reference.c: Update tree_pass descriptors.
4830 * tree-ssa-uncprop.c: Update tree_pass descriptors.
4831 * auto-inc-dec.c: Update tree_pass descriptors.
4832 * reorg.c: Update tree_pass descriptors.
4833 * cgraphunit.c: Update tree_pass descriptors.
4834 * tree-ssa-copyrename.c: Update tree_pass descriptors.
4835 * tree-ssa-ccp.c: Update tree_pass descriptors.
4836 * df-core.c: Update tree_pass descriptors.
4837 * mode-switching.c: Update tree_pass descriptors.
4838 * tree-nomudflap.c: Update tree_pass descriptors.
4839 * modulo-sched.c: Update tree_pass descriptors.
4840 * ipa-pure-const.c: Update tree_pass descriptors.
4841 * cse.c: Update tree_pass descriptors.
4842 * web.c: Update tree_pass descriptors.
4843 * tree-stdarg.c: Update tree_pass descriptors.
4844 * tree-ssa-math-opts.c: Update tree_pass descriptors.
4845 * tree-ssa-dom.c: Update tree_pass descriptors.
4846 * tree-nrv.c: Update tree_pass descriptors.
4847 * tree-ssa-alias.c: Update tree_pass descriptors.
4848 * loop-init.c: Update tree_pass descriptors.
4849 * gimple-low.c: Update tree_pass descriptors.
4850 * ipa-inline.c: Update tree_pass descriptors.
4851 * tree-ssa-sink.c: Update tree_pass descriptors.
4852 * global.c: Update tree_pass descriptors.
4853 * ifcvt.c: Update tree_pass descriptors.
4854 * jump.c: Update tree_pass descriptors.
4855 * predict.c: Update tree_pass descriptors.
4856 * tree-ssa-loop.c: Update tree_pass descriptors.
4857 * recog.c: Update tree_pass descriptors.
4858 * dse.c: Update tree_pass descriptors.
4859 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
4860 * tree-eh.c: Update tree_pass descriptors.
4861 * regmove.c: Update tree_pass descriptors.
4863 * function.c: Update tree_pass descriptors.
4864 * tree-vectorizer.c: Update tree_pass descriptors.
4865 * gcse.c: Update tree_pass descriptors.
4866 * ipa-type-escape.c: Update tree_pass descriptors.
4867 * tree-if-conv.c: Update tree_pass descriptors.
4868 * init-regs.c: Update tree_pass descriptors.
4869 * ipa.c: Update tree_pass descriptors.
4870 * tree-ssa-phiopt.c: Update tree_pass descriptors.
4871 * rtl-factoring.c: Update tree_pass descriptors.
4872 * lower-subreg.c: Update tree_pass descriptors.
4873 * bt-load.c: Update tree_pass descriptors.
4874 * tree-dfa.c: Update tree_pass descriptors.
4875 * except.c: Update tree_pass descriptors.
4876 * emit-rtl.c: Update tree_pass descriptors.
4877 * cfgexpand.c: Update tree_pass descriptors.
4878 * tree-cfgcleanup.c: Update tree_pass descriptors.
4879 * cfgcleanup.c: Update tree_pass descriptors.
4880 * tree-ssa-pre.c: Update tree_pass descriptors.
4881 * tree-sra.c: Update tree_pass descriptors.
4882 * tree-mudflap.c: Update tree_pass descriptors.
4883 * tree-ssa-copy.c: Update tree_pass descriptors.
4884 * cfglayout.c: Update tree_pass descriptors.
4885 * tree-ssa-forwprop.c: Update tree_pass descriptors.
4886 * tree-ssa-dce.c: Update tree_pass descriptors.
4887 * tree-ssa.c: Update tree_pass descriptors.
4888 * regclass.c: Update tree_pass descriptors.
4889 * integrate.c: Update tree_pass descriptors.
4890 * tree-optimize.c: Update tree_pass descriptors.
4891 * tree-ssa-phiprop.c: Update tree_pass descriptors.
4892 * tree-object-size.c: Update tree_pass descriptors.
4893 * combine.c: Update tree_pass descriptors.
4894 * tree-outof-ssa.c: Update tree_pass descriptors.
4895 * bb-reorder.c: Update tree_pass descriptors.
4896 * stack-ptr-mod.c: Update tree_pass descriptors.
4897 * var-tracking.c: Update tree_pass descriptors.
4898 * tree-profile.c: Update tree_pass descriptors.
4899 * tree-vect-generic.c: Update tree_pass descriptors.
4900 * reg-stack.c: Update tree_pass descriptors.
4901 * sched-rgn.c: Update tree_pass descriptors.
4902 * tree-ssa-structalias.c: Update tree_pass descriptors.
4903 * tree-cfg.c: Update tree_pass descriptors.
4904 * passes.c (current_pass): Update declaration.
4905 (finish_optimization_passes): Update.
4906 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
4907 (register_one_dump_file, register_dump_files_1, next_pass_1):
4909 (init_optimization_passes): Update handling of new types.
4910 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
4911 * ipa-struct-reorg.c: Update tree_pass descriptors.
4912 * tree-ssa-reassoc.c: Update tree_pass descriptors.
4913 * combine-stack-adj.c: Update tree_pass descriptors.
4914 * cfgrtl.c: Update tree_pass descriptors.
4915 * dce.c: Update tree_pass descriptors.
4916 * tree-ssanames.c: Update tree_pass descriptors.
4918 2008-03-19 Richard Guenther <rguenther@suse.de>
4921 * tree-ssa.c (walk_data): New structure.
4922 (warn_uninitialized_var): If not always_executed warn with "maybe"
4924 (execute_early_warn_uninitialized): Compute post-dominators.
4925 Initialize always_executed before processing each basic block.
4927 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
4930 * config/i386/i386.c (x86_this_parameter): Calculate correct location
4931 of "this" pointer when "regparm = N" or "fastcall" is in effect.
4933 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4935 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
4937 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
4939 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
4941 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
4942 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
4943 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
4944 target after ignore has been set, and move there also the commputation
4945 of subtarget and original_target.
4946 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4947 (LANG_HOOKS_INITIALIZER): Remove it.
4948 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
4950 2008-03-18 Richard Guenther <rguenther@suse.de>
4952 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
4953 found an expression with constants, note that in the VN for the lhs.
4954 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
4955 fold them to constants if possible. Run cleanup_cfg if done so.
4956 (execute_pre): Return todo.
4958 (execute_fre): Likewise.
4959 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
4961 (get_prop_source_stmt): Look through pointer conversions.
4963 2008-03-18 Jan Hubicka <jh@suse.cz>
4965 * tree-pretty-print.c: Include predict.h.
4966 (dump_generic_node): Dump predictor.
4967 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
4968 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
4969 * gimple-low.c (lower_stmt): Likewise.
4970 * expr.c (expand_expr_real): Likewise.
4971 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
4973 (build_predict_expr, build_predict_expr): New.
4974 * predict.h (predictor_name, build_predict_expr): Update.
4975 * c-typeck.c (c_finish_bc_stmt): Add prediction.
4976 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
4977 * predict.def (PRED_CONTINUE): Update hitrate.
4978 * tree.def (PREDICT_EXPR): Define.
4979 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
4980 do not handle BIND_EXPR.
4981 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
4982 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
4983 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
4986 2008-03-18 Michael Matz <matz@suse.de>
4988 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
4990 2008-03-18 Richard Guenther <rguenther@suse.de>
4992 * tree-gimple.h (is_gimple_invariant_address): Declare.
4993 (is_gimple_constant): Likewise.
4994 * tree-gimple.c (is_gimple_constant): New function.
4995 (is_gimple_invariant_address): Likewise.
4996 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
4997 and is_gimple_invariant_address.
4998 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
5000 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
5001 an addressable base.
5003 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5006 * gimplify.c (gimplify_expr): Gimplify second operand of
5009 2008-03-17 Richard Guenther <rguenther@suse.de>
5011 PR tree-optimization/19637
5012 * fold-const.c (fold_unary): Remove restrictions of removing
5013 intermediate pointer-conversions (P2)(P1)P0.
5014 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
5015 conversion to void pointer.
5016 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
5018 2008-03-16 James E. Wilson <wilson@tuliptree.org>
5021 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
5022 emulated thread local variables.
5024 2008-03-16 Richard Guenther <rguenther@suse.de>
5027 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5028 expand TREE_INVARIANT operations that are not gimple invariant.
5030 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
5032 * doc/extend.texi (Alignment): Say that the ABI controls
5033 the __alignof__ for non-strict-alignment targets rather
5034 than being a recommendation.
5036 2008-03-15 Paul Brook <paul@codesourcery.com>
5038 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
5040 (arm_output_fn_unwind): Mark functions that can not be unwound.
5042 2008-03-15 Paul Brook <paul@codesourcery.com>
5044 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
5045 extension instructions.
5047 2008-03-15 Richard Guenther <rguenther@suse.de>
5049 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
5050 and fold constant aggregate refs.
5051 (fold_const_aggregate_ref): Handle string constants
5052 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
5053 (evaluate_stmt): Simplify now that ccp_fold folds constant
5056 2008-03-15 Paul Brook <paul@codesourcery.com>
5058 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
5059 (extzv): Use gen_extzv_t2.
5060 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
5062 2008-03-15 Richard Guenther <rguenther@suse.de>
5064 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
5065 (fold_const_aggregate_ref): Likewise.
5066 (get_value): Return NULL if we don't have any values.
5067 (ccp_finalize): Set const_val to NULL after freeing it.
5068 * tree-flow.h (get_symbol_constant_value): Declare.
5069 (fold_const_aggregate_ref): Likewise.
5070 * tree-ssa-sccvn.c (try_to_simplify): Use them.
5072 2008-03-15 Richard Guenther <rguenther@suse.de>
5075 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
5076 to not produce negative array indices if not allowed. Add
5077 parameter to indicate that.
5078 (maybe_fold_offset_to_component_ref): Allow negative array
5079 indices only for the first member of a structure.
5080 (maybe_fold_offset_to_reference): Allow negative array indices.
5081 (maybe_fold_stmt_addition): Likewise.
5083 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
5084 Anatoly Sokolov <aesok@post.ru>
5086 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
5087 (avr_arch): Add ARCH_AVR6.
5088 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
5089 (initial_elimination_offset): Initialize and use 'avr_pc_size'
5090 instead of fixed value 2.
5091 (print_operand_address): Use gs() asm specifier instead of pm().
5092 (avr_assemble_integer): (Ditto.).
5093 (avr_output_addr_vec_elt): (Ditto.).
5094 (print_operand): Handle "!" code.
5095 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
5096 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
5097 (AVR_HAVE_EIJMP_EICALL): Define.
5098 (AVR_3_BYTE_PC): Redefine.
5099 (AVR_2_BYTE_PC): (Ditto.).
5100 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
5101 (LINK_SPEC): Add atmega2560 and atmega2561.
5102 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
5104 * config/avr/avr.md (call_insn): Use eicall instead of icall
5105 for 3 byte PC devices.
5106 (call_value_insn): (Ditto.).
5107 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
5108 (indirect_jump): Use only for for 2 byte PC devices.
5109 (*tablejump): (Ditto.).
5110 (*indirect_jump_avr6): Add insn.
5111 (*tablejump_rjmp): Don't use for 3 byte PC devices.
5112 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
5113 instead of ijmp for 3 byte PC devices.
5114 (__tablejump2__): (Ditto.).
5115 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
5116 (MULITLIB_DIRNAMES): (Ditto.).
5117 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
5119 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
5121 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
5122 "sse2_umulsidi3". Use V1DI mode for operand 0.
5123 ("mmx_psadbw"): Use V1DI mode for operand 0.
5124 * config/i386/i386-modes.def (V1SI): New vector mode.
5125 * config/i386/i386.c (struct builtin_description)
5126 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
5127 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
5128 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
5129 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
5130 v1di_ftype_v8qi_v8qi type.
5131 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
5133 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
5134 __builtin_ia32_pmuludq]: Fix the mode of return value.
5136 2008-03-15 Richard Guenther <rguenther@suse.de>
5139 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
5142 2008-03-14 Bob Wilson <bob.wilson@acm.org>
5144 * doc/invoke.texi (Option Summary, Xtensa Options): Document
5145 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
5146 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
5147 unless TARGET_SERIALIZE_VOLATILE is enabled.
5148 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
5149 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
5150 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
5152 2008-03-14 Richard Guenther <rguenther@suse.de>
5154 PR tree-optimization/34172
5155 * tree-flow.h (refs_may_alias_p): Declare.
5156 (get_single_def_stmt): Likewise.
5157 (get_single_def_stmt_from_phi): Likewise.
5158 (get_single_def_stmt_with_phi): Likewise.
5159 * tree-dfa.c (refs_may_alias_p): New function.
5160 (get_single_def_stmt): Likewise.
5161 (get_single_def_stmt_from_phi): Likewise.
5162 (get_single_def_stmt_with_phi): Likewise.
5163 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
5164 (vn_reference_lookup_1): New helper function.
5165 (vn_reference_lookup): Walk the virtual use-def chain to
5166 continue searching for a match if the def does not alias the
5167 reference we are looking for.
5169 2008-03-14 David Edelsohn <edelsohn@gnu.org>
5171 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
5172 archive and Perzl. Update The Written Word listing.
5174 2008-03-14 Richard Guenther <rguenther@suse.de>
5176 PR tree-optimization/34043
5177 PR tree-optimization/33989
5178 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
5180 (bitmap_find_leader): Use extra argument to verify dominance
5181 relationship inside a basic-block.
5182 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
5183 (find_leader_in_sets): Adjust.
5184 (create_component_ref_by_pieces): Take extra argument for
5185 dominance check, handle lookup failures.
5186 (find_or_generate_expression): Likewise.
5187 (create_expression_by_pieces): Likewise.
5188 (insert_into_preds_of_block): Adjust.
5189 (create_value_expr_from): If asked for, verify all operands
5190 are in the blocks AVAIL_OUT set.
5191 (make_values_for_stmt): Check for SSA_NAMEs that are life
5192 over an abnormal edge.
5193 (compute_avail): Remove such check.
5194 (do_SCCVN_insertion): New function.
5195 (eliminate): If we do not find a leader suitable for replacement
5196 insert a replacement expression from SCCVN if available.
5197 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
5198 (struct vn_ssa_aux): Add needs_insertion flag.
5199 * tree-ssa-sccvn.c (may_insert): New global flag.
5200 (copy_reference_ops_from_ref): Value-number union member access
5201 based on its size, not type and member if insertion is allowed.
5202 (visit_reference_op_load): For a weak match from union type
5203 punning lookup a view-converted value and insert a SSA_NAME
5204 for that value if that is not found.
5205 (visit_use): Make dumps shorter. Do not disallow value numbering
5206 SSA_NAMEs that are life over an abnormal edge to constants.
5207 (free_scc_vn): Release inserted SSA_NAMEs.
5208 (run_scc_vn): New flag to specify whether insertion is allowed.
5209 Process SSA_NAMEs in forward order.
5210 * tree-ssa-loop-im.c (for_each_index): Handle invariant
5211 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
5212 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
5213 pointer type to/from integral types that do not change the
5214 precision to regular conversions.
5216 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
5218 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5219 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5220 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
5221 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
5222 input arguments and the mode of return value. Built-in functions
5223 that operate on whole 64-bit MMX register now use V1DI mode.
5225 2008-03-13 Alon Dayan <alond@il.ibm.com>
5226 Olga Golovanevsky <olga@il.ibm.com>
5228 PR tree-optimization/35041
5229 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
5230 to locate the right position in a statement.
5232 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
5236 * config/i386/xmmintrin.h: Change all static inline functions to
5237 extern inline and add __gnu_inline__ attribute.
5238 * config/i386/bmintrin.h: Ditto.
5239 * config/i386/smmintrin.h: Ditto.
5240 * config/i386/tmmintrin.h: Ditto.
5241 * config/i386/mmintrin-common.h: Ditto.
5242 * config/i386/ammintrin.h: Ditto.
5243 * config/i386/emmintrin.h: Ditto.
5244 * config/i386/pmmintrin.h: Ditto.
5245 * config/i386/mmintrin.h: Ditto.
5246 * config/i386/mm3dnow.h: Ditto.
5248 2008-03-13 Jakub Jelinek <jakub@redhat.com>
5251 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
5252 (lower_omp_2): New function.
5253 (lower_omp_1, lower_omp): Rewritten.
5255 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
5258 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
5259 with the phrase "Microsoft Windows compilers".
5260 (Push/Pop Macro Pragmas): New subsection. Document
5261 #pragma push_macro and pragma pop_macro.
5263 2008-03-12 Paul Brook <paul@codesourcery.com>
5265 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
5267 2008-03-12 Paul Brook <paul@codesourcery.com>
5269 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
5270 (thumb2_alusi3_short): Exclude PLUS and MINUS.
5271 (thumb2_addsi_shortim): Rename ...
5272 (thumb2_addsi_short): ... to this. Allow register operands.
5273 (thumb2_subsi_short): New pattern.
5274 (thumb2_one_cmplsi2_short,
5275 thumb2_negsi2_short): New patterns and peepholes.
5277 2008-03-12 Paul Brook <paul@codesourcery.com>
5279 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
5281 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
5283 * config/i386/i386.md (int_cond): New code iterator.
5285 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
5286 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
5287 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
5288 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
5289 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
5290 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
5291 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
5292 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
5294 2008-03-12 Paul Brook <paul@codesourcery.com>
5296 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
5297 instead of {arm,thumb}_compute_save_reg_mask.
5298 (output_return_instruction): Ditto.
5299 (thumb_unexpanded_epilogue): Ditto.
5300 (thumb1_expand_prologue): Ditto.
5301 (thumb1_output_function_prologue): Ditto.
5302 (arm_set_return_address): Ditto.
5303 (thumb_set_return_address): Ditto.
5304 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
5305 regs to achieve stack alignment.
5306 (thumb1_compute_save_reg_mask): Fix compiler warning.
5307 (arm_output_epilogue): Use offsets->saved_regs_mask.
5308 Adjust stack pointer by poping call clobered registers.
5309 (arm_expand_prologue): Use offsets->saved_regs_mask.
5310 Adjust stack pointer by pushing extra registers.
5311 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
5313 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
5316 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
5317 conversion to the operands of a multiplication.
5319 2008-03-12 Richard Guenther <rguenther@suse.de>
5321 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
5322 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
5323 * timevar.def (TV_TREE_PHIPROP): Add.
5324 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
5325 pass description. Use TV_TREE_PHIPROP.
5326 * tree-ssa-forwprop.c: Remove phiprop code.
5328 2008-03-12 Jakub Jelinek <jakub@redhat.com>
5331 * omp-low.c (maybe_lookup_decl): Constify first argument.
5332 (use_pointer_for_field): Change last argument from bool to
5333 omp_context *. Disallow shared copy-in/out in nested
5334 parallel if decl is shared in outer parallel too.
5335 (build_outer_var_ref, scan_sharing_clauses,
5336 lower_rec_input_clauses, lower_copyprivate_clauses,
5337 lower_send_clauses, lower_send_shared_vars): Adjust callers.
5339 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
5340 Ira Rosen <irar@il.ibm.com>
5342 * tree-vectorizer.c (free_stmt_vec_info): New function.
5343 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
5344 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
5345 * tree-vectorizer.h (free_stmt_vec_info): Declare.
5346 * tree-vect-transform.c (vectorizable_conversion): Free
5347 vec_oprnds0 if it was allocated.
5348 (vect_permute_store_chain): Remove unused VECs.
5349 (vectorizable_store): Free VECs that are allocated in the..
5351 (vect_transform_strided_load, vectorizable_load): Likewise.
5352 (vect_remove_stores): Simplify the code.
5353 (vect_transform_loop): Move code to vect_remove_stores().
5354 Call vect_remove_stores() and free_stmt_vec_info().
5356 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5358 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
5359 TARGET_HPUX. Revise comment.
5360 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
5361 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
5362 Use sr4 variant of `be' instruction when not generating PIC code.
5363 (attr_length_call): Adjust for above change.
5365 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
5367 * ipa-reference.c (static_execute): Remove module_statics_const and
5368 associated setting code.
5370 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
5373 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
5374 predicate for operand 1.
5375 (paritysi2_cmp): Use register_operand predicate for operand 2.
5376 Use earlyclobber modifier for operand 1. Remove support for
5378 (paritydi2_cmp): Use register_operand predicate for operand 3.
5379 Use earlyclobber modifier for operand 1. Remove support for
5382 2008-03-11 Paul Brook <paul@codesourcery.com>
5383 Vladimir Prus <vladimir@codesourcery.com>
5385 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
5386 (arm_compute_save_reg0_reg12_mask): Always
5387 check if register 11 must be saved. Always safe hard frame pointer
5388 when frame_pointer_needeed.
5389 (arm_compute_save_reg_mask): Save IP and PC
5390 only with apcs frames.
5391 (arm_output_epilogue): Adjust Thumb2 codepath to
5392 be also invoked and work for ARM non-apcs frames.
5393 (arm_expand_prologue): Don't bother saving IP
5394 for non-apcs frame, since it's not clobbered by
5395 prologue code. Implement non-apcs frame
5398 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
5400 PR rtl-optimization/35281
5401 * expr.c (convert_move): Use a new pseudo for the intermediate
5402 from_mode->word_mode result.
5404 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
5406 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
5407 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
5408 * toplev.c (compile_file): Don't call it.
5410 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
5413 * expr.c (store_expr): Call emit_block_move if the mode
5414 of "temp" RTX is BLKmode.
5416 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
5417 Richard Guenther <rguenther@suse.de>
5419 PR tree-optimization/31358
5420 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
5421 the step with a NULL_TREE.
5422 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
5423 to sizetype if type is a pointer type.
5424 (add_candidate_1): Don't convert the base and step to
5425 the generic type if the orginal type is a pointer type.
5426 (add_iv_value_candidates): Use sizetype for the step
5427 if type is a pointer type.
5428 (cand_value_at): Likewise.
5429 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
5431 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
5432 Don't convert the tem affine to the type.
5433 (add_elt_to_tree): Use sizetype for the step if a pointer.
5434 Use POINTER_PLUS_EXPR for pointers.
5435 (aff_combination_to_tree): Use sizetype for the step if a
5438 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
5440 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
5441 Remove commutativity hint.
5443 2008-03-10 Jakub Jelinek <jakub@redhat.com>
5447 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
5448 errorneous type. Check that v is a VAR_DECL.
5451 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
5453 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
5455 PR tree-optimization/35494
5456 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
5457 may be overriden at link and run time.
5459 2008-03-10 Richard Guenther <rguenther@suse.de>
5461 PR tree-optimization/34677
5462 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
5463 (poolify_tree): Likewise.
5464 (modify_expr_template): Likewise.
5465 (poolify_modify_stmt): Likewise.
5466 (insert_fake_stores): Handle all component-ref style stores
5467 in addition to INDIRECT_REF. Also handle complex types.
5468 Do not poolify the inserted load.
5469 (realify_fake_stores): Do not rebuild the tree but only
5470 make it a SSA_NAME copy.
5471 (init_pre): Remove initialzation of modify_expr_template.
5472 Do not allocate modify_expr_node_pool.
5473 (fini_pre): Do not free modify_expr_node_pool.
5475 2008-03-10 Paul Brook <paul@codesourcery.com>
5477 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
5480 2008-03-10 Paul Brook <paul@codesourcery.com>
5481 Mark Shinwell <shinwell@codesourcery.com>
5483 * config/arm/cortex-r4.md: New.
5484 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
5486 * config/arm/arm.md: Include cortex-r4.md.
5487 (insn): Add smmls, sdiv and udiv values.
5488 (generic_sched): Don't use generic scheduling for Cortex-R4.
5489 (arm_issue_rate): New function.
5490 (TARGET_SCHED_ISSUE_RATE): Define.
5492 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
5494 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
5496 2008-03-10 Richard Guenther <rguenther@suse.de>
5498 * tree-ssa-pre.c (get_sccvn_value): Simplify.
5499 (compute_avail): Do not add stmt uses to AVAIL_OUT.
5501 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
5503 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
5504 Set default to true.
5506 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5508 * c.opt (Wsynth): Deprecate.
5509 * doc/invoke.texi (Option Summary, Warning Options): Document
5510 -Wno-format-contains-nul.
5512 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
5515 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
5516 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
5518 2008-03-09 Ira Rosen <irar@il.ibm.com>
5520 * config/rs6000/rs6000.c (builtin_description): Rename vector
5521 left shift operations.
5522 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
5523 (altivec_vsl<VI_char>): Rename to ...
5524 (ashl<mode>3): ... new name.
5525 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
5527 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
5529 2008-03-08 Richard Guenther <rguenther@suse.de>
5531 * coverage.h (tree_coverage_counter_addr): Declare.
5532 * coverage.c (tree_coverage_counter_addr): New function.
5533 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
5535 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
5536 (tree_gen_one_value_profiler): Likewise.
5537 (tree_gen_ic_profiler): Likewise.
5538 (tree_gen_average_profiler): Likewise.
5539 (tree_gen_ior_profiler): Likewise.
5541 2008-03-08 Richard Guenther <rguenther@suse.de>
5543 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
5544 (vn_binary_op_insert): Likewise.
5545 (vn_unary_op_lookup): Likewise.
5546 (vn_unary_op_insert): Likewise.
5547 (vn_nary_op_lookup): Declare.
5548 (vn_nary_op_insert): Likewise.
5549 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
5550 and binary hashes, use a single obstack for unary_op_pool
5552 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
5553 a single struct vn_nary_op_s. Store tree code length and
5554 a variable number of operands.
5555 (struct vn_reference_op_struct): Remove unused op2.
5556 (vn_reference_op_eq): Do not compare op2.
5557 (vn_reference_op_compute_hash): Do not compute hash of op2.
5558 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
5559 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
5560 with vn_nary_op_compute_hash.
5561 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
5562 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
5564 (vn_unary_op_insert, vn_binary_op_insert): Replace with
5566 (visit_unary_op): Call nary functions.
5567 (visit_binary_op): Likewise.
5568 (process_scc): Adjust for struct vn_tables_s changes.
5569 (allocate_vn_table): Likewise.
5570 (free_vn_table): Likewise.
5571 * tree-vn.c (vn_add): Call nary functions.
5572 (vn_lookup): Likewise.
5574 2008-03-08 Jakub Jelinek <jakub@redhat.com>
5577 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
5578 wdst back after sync_compare_and_swapqhi_internal.
5580 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
5583 * config/i386/i386-modes.def (V1DI): New vector mode.
5584 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
5585 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
5586 (MMXMODE248): Ditto.
5587 (MMXMODE): Add V1DI mode.
5588 (mmxvecsize): Change DI mode to V1DI mode.
5589 ("mov<mode>): Use MMXMODEI8 mode iterator.
5590 ("*mov<mode>_internal_rex64"): Ditto.
5591 ("*mov<mode>_internal"): Ditto.
5592 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
5593 ("mmx_sub<mode>3"): Ditto.
5594 ("mmx_adddi3"): Remove insn pattern.
5595 ("mmx_subdi3"): Ditto.
5596 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
5597 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
5598 ("mmx_ashl<mode>3"): Ditto.
5599 ("mmx_lshrdi3"): Remove insn pattern.
5600 ("mmx_ashldi3"): Ditto.
5601 * config/i386/i386.c (classify_argument): Handle V1DImode.
5602 (function_arg_advance_32): Ditto.
5603 (function_arg_32): Ditto.
5604 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
5605 mmx_addv1di3 insn pattern.
5606 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
5607 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
5608 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
5609 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
5610 Remove definitions of built-in functions.
5611 (V1DI_type_node): New node.
5612 (v1di_ftype_v1di_int): Ditto.
5613 (v1di_ftype_v1di_v1di): Ditto.
5614 (v2si_ftype_v2si_si): Ditto.
5615 (v4hi_ftype_v4hi_di): Remove node.
5616 (v2si_ftype_v2si_di): Ditto.
5617 (ix86_init_mmx_sse_builtins): Handle V1DImode.
5618 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
5619 Redefine builtins using def_builtin_const with *_ftype_*_int node.
5620 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
5621 Add new builtins using def_builtin_const.
5622 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
5623 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
5624 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
5625 * config/i386/mmintrin.h (__v1di): New typedef.
5626 (_mm_add_si64): Cast arguments to __v1di type.
5627 (_mm_sub_si64): Ditto.
5628 (_mm_sll_pi16): Cast __count to __v4hi type.
5629 (_mm_sll_pi32): Cast __count to __v2si type.
5630 (_mm_sll_si64): Cast arguments to __v1di type.
5631 (_mm_srl_pi16): Cast __count to __v4hi type.
5632 (_mm_srl_pi32): Cast __count to __v2si type.
5633 (_mm_srl_si64): Cast arguments to __v1di type.
5634 (_mm_sra_pi16): Cast __count to __v4hi type.
5635 (_mm_sra_pi32): Cast __count to __v2si type.
5636 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
5637 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
5638 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
5639 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
5640 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
5641 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
5642 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
5643 (_mm_srai_pi32): Use __builtin_ia32_psradi.
5644 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
5645 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5646 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5647 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
5649 2008-03-07 Joseph Myers <joseph@codesourcery.com>
5651 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
5653 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
5656 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
5657 reg+const addressing for Altivec modes. Don't generate reg+reg
5658 addressing for TFmode or TDmode quantities.
5660 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
5662 * c-common.c (vector_types_convertible_p): Call langhook
5663 instead of comptypes.
5665 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
5668 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
5669 integral and scalar float variables which have a
5672 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
5674 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
5675 dwarf_register_span hook when emitting unwind information for
5676 register-to-memory saves.
5677 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
5678 (rs6000_frame_related): Remove call to spe_synthesize_frame.
5680 2008-03-06 Jakub Jelinek <jakub@redhat.com>
5682 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
5683 for the same VAR_DECL.
5685 2008-03-06 Tom Tromey <tromey@redhat.com>
5688 * doc/standards.texi (Standards): Don't mention treelang.
5689 * doc/invoke.texi (Overall Options): Don't mention treelang.
5690 * doc/install.texi (Prerequisites): Don't mention bison or
5692 (Configuration): Don't mention treelang.
5693 (Building): Likewise.
5694 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
5696 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
5698 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
5699 word-extractions out of a multi-word object.
5701 2008-03-06 Richard Guenther <rguenther@suse.de>
5703 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
5704 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
5705 result type and precision.
5706 * expr.c (get_inner_reference): Set unsignedp based on the result
5707 type of BIT_FIELD_REF.
5708 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
5709 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
5710 (try_instantiate_multiple_fields): Likewise. Use the correct type
5712 (sra_build_assignment): Likewise.
5713 (sra_build_elt_assignment): Likewise.
5714 (sra_explode_bitfield_assignment): Likewise.
5715 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
5716 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
5717 set BIT_FIELD_REF_UNSIGNED.
5718 (vectorizable_load): Likewise.
5720 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
5722 * cse.c (cse_extended_basic_block): Invalidate artificial defs
5725 2008-03-06 Richard Guenther <rguenther@suse.de>
5727 * alias.c (struct alias_set_entry): Move has_zero_child field
5728 to pack with alias_set.
5730 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
5732 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5735 2008-03-05 Ian Lance Taylor <iant@google.com>
5737 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
5739 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5741 * fwprop.c (update_df): Support width and offset parameters of
5743 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
5744 global_conflicts): Change DF_REF_EXTRACT to either
5745 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
5746 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5747 * df-scan.c (df_ref_record, df_defs_record,
5748 df_ref_create_structure, df_def_record_1, df_uses_record,
5749 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
5750 df_bb_refs_collect, df_entry_block_defs_collect,
5751 df_exit_block_uses_collect): Support new width and offset fields.
5752 (ref_extract_pool): New storage pool.
5753 (df_free_ref): New function.
5754 (df_reg_chain_unlink, df_free_collection_rec,
5755 df_sort_and_compress_refs): Call df_free_ref.
5756 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
5758 (df_ref_create_structure): Allocate df_ref_extract if offset and
5759 width fields are used.
5760 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
5761 (df_uses_record): Get offset and width from ZERO_EXTRACT
5763 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
5764 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
5765 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5766 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
5767 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
5768 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5769 (df_ref_extract): New structure.
5770 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
5771 (df_ref_create): Add width and offset parameters.
5773 2008-03-05 Richard Guenther <rguenther@suse.de>
5775 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5776 Use ranges_overlap_p.
5777 (offset_overlaps_with_access): Rename
5778 to ranges_overlap_p and move ...
5779 * tree-flow-inline.h (ranges_overlap_p): ... here.
5781 * tree.h (get_inner_reference, handled_component_p): Update
5784 * tree.h (record_component_aliases, get_alias_set,
5785 alias_sets_conflict_p, alias_sets_must_conflict_p,
5786 objects_must_conflict_p): Move declarations ...
5787 * alias.h (record_component_aliases, get_alias_set,
5788 alias_sets_conflict_p, alias_sets_must_conflict_p,
5789 objects_must_conflict_p): ... here.
5790 Include coretypes.h.
5791 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
5793 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
5795 * cfg.c: Include tree-flow.h.
5796 (remove_edge_raw): Call redirect_edge_var_map_clear.
5797 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
5798 * tree-flow-inline.h (redirect_edge_var_map_def): New.
5799 (redirect_edge_var_map_result): New.
5800 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
5801 PENDING_STMT use with redirect_edge_var_map_*.
5802 * tree-ssa.c (edge_var_maps): New definition.
5803 (redirect_edge_var_map_add): New.
5804 (redirect_edge_var_map_clear): New.
5805 (redirect_edge_var_map_dup): New.
5806 (redirect_edge_var_map_vector): New.
5807 (redirect_edge_var_map_destroy): New.
5808 (ssa_redirect_edge): Replace PENDING_STMT use with
5809 redirect_edge_var_map_*.
5810 (flush_pending_stmts): Same.
5811 (delete_tree_ssa): Destroy edge var map.
5812 * tree-flow.h (struct _edge_var_map): New.
5813 Define edge_var_map vector type.
5814 Declare redirect_edge_var_map_* prototypes.
5815 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
5816 * tree-cfg.c (reinstall_phi_args): Replace
5817 PENDING_STMT use with redirect_edge_var_map_*.
5819 2008-03-05 Richard Guenther <rguenther@suse.de>
5821 PR tree-optimization/35472
5822 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
5823 whose single use_stmt has a overlapping set of loaded and
5824 stored symbols as that use_stmt might be a noop assignment then.
5826 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
5828 * gthr-rtems.h: Implement __gthread_mutex_destroy.
5830 2008-03-05 Richard Guenther <rguenther@suse.de>
5833 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
5834 should be constants.
5835 * tree-cfg.c (verify_expr): Verify it.
5836 * fold-const.c (fold_truthop): Remove code generating
5837 BIT_FIELD_REFs of structure bases.
5838 (fold_binary): Likewise.
5839 (fold_ternary): Position and size of BIT_FIELD_REFs are
5840 always host integers.
5841 (make_bit_field_ref): Remove.
5842 (optimize_bit_field_compare): Remove.
5843 (all_ones_mask_p): Remove.
5845 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
5848 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
5849 (split_block_and_df_analyze): New. Split basic block and rebuild
5851 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
5853 (split_pattern_seq): Likewise.
5854 (erase_matching_seqs): Likewise.
5855 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
5857 2008-03-04 Geoff Keating <geoffk@apple.com>
5859 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
5860 declaration and code.
5861 (tree_invalid_nonnegative_warnv_p): Likewise.
5863 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
5865 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
5866 examples. Truncate option-names then causing overfull hbox.
5868 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5871 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
5873 * configure: Rebuilt.
5875 2008-03-04 Rafael Espindola <espindola@google.com>
5877 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
5878 (tree_unary_nonnegative_warnv_p): New.
5879 (tree_binary_nonnegative_warnv_p): New.
5880 (tree_single_nonnegative_warnv_p): New.
5881 (tree_invalid_nonnegative_warnv_p): New.
5882 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
5884 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5887 * opts.c (handle_option): Postpone 'unknown option' errors only for
5890 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
5893 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
5896 2008-03-04 Rafael Espindola <espindola@google.com>
5898 * fold-const.c (tree_unary_nonzero_warnv_p): New.
5899 (tree_binary_nonzero_warnv_p): New.
5900 (tree_single_nonzero_warnv_p): New.
5901 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
5903 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
5906 * fold-const.c (fold_cond_expr_with_comparison): Prevent
5907 transformations for modes that have signed zeros.
5908 * ifcvt.c (noce_try_abs): Ditto.
5910 2008-03-04 Joseph Myers <joseph@codesourcery.com>
5912 * config/i386/i386.c (override_options): Force
5913 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
5915 2008-03-04 Jan Hubicka <jh@suse.cz>
5918 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
5921 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
5923 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
5924 label to probe the stack.
5926 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
5928 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
5929 (__gthr_win32_mutex_destroy): Declare.
5930 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
5931 __gthr_win32_mutex_destroy.
5932 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
5934 2008-03-03 Jan Hubicka <jh@suse.cz>
5937 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
5938 aggressive on inlining cold calls.
5940 2008-03-03 Richard Guenther <rguenther@suse.de>
5942 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
5943 struct copies into the expression table.
5944 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
5945 (try_to_simplify): Likewise.
5946 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
5947 integral and pointer arguments which do not change the
5948 precision to NOP_EXPRs.
5949 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
5950 VIEW_CONVERT_EXPR case.
5952 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
5954 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
5955 defined in a loop at depth 0 is invariant.
5956 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
5957 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
5958 be called at loop depth 0.
5960 2008-03-02 Jakub Jelinek <jakub@redhat.com>
5963 * gcc.c (process_command): Update copyright notice dates.
5964 * gcov.c (print_version): Likewise.
5965 * gcov-dump.c (print_version): Likewise.
5966 * mips-tfile.c (main): Likewise.
5967 * mips-tdump.c (main): Likewise.
5969 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5972 * c-common.c (flag_permissive): Delete.
5973 (constant_expression_warnings): Check flags first.
5974 (constant_expression_error): New.
5975 * c-common.h (flag_permissive): Delete.
5976 (constant_expression_error): Declare.
5977 * flags.h (flag_permissive): Declare. Update description.
5978 * diagnostic.c (pedwarn): Update.
5980 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
5981 (permissive_error_kind): New.
5982 * toplev.c (flag_permissive): Define. Update description.
5983 * toplev.h (permissive_error_kind): Declare.
5984 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
5985 (pedwarn_c90): Use pedantic_warning_kind.
5986 * c-opts.c (c_common_post_options): flag_permissive does not affect
5987 flag_pedantic_errors.
5989 2008-03-02 Joseph Myers <joseph@codesourcery.com>
5991 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
5992 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
5993 __absvsi2, __absvDI2): Use unsigned arithmetic.
5995 2008-03-02 Andi Kleen <ak@suse.de>
5996 Richard Guenther <rguenther@suse.de>
5998 * struct-equiv.c: Remove file.
5999 * cfg_cleanup.c (condjump_equiv_p): Remove.
6000 * Makefile.in (OBJS-common): Remove struct-equiv.o.
6001 (struct-equiv.o): Remove rule.
6002 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
6003 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
6004 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
6006 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6008 * ifcvt.c (noce_process_if_block): Try to handle only the then
6009 block if the else block exists but isn't suitable.
6011 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
6014 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
6015 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
6016 regression from previous patch.
6018 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
6021 * gthr.h: Add __gthread_mutex_destroy as a function that must be
6023 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
6024 * gthr-single.h (__gthread_mutex_destroy): Likewise.
6025 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
6026 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
6027 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
6028 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
6029 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
6030 (__gthread_mutex_destroy_function): Rename to
6031 __gthread_mutex_destroy.
6032 * gthr-dce.h (__gthread_mutex_destroy): Call
6033 pthread_mutex_destroy.
6034 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
6035 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
6036 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
6038 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6040 * df-scan.c (df_ref_chain_change_bb): Simplify.
6041 (df_insn_change_bb): Add new_bb argument. Simplify. Call
6042 set_block_for_insn if there's any change.
6043 * df.h ((df_insn_change_bb): Fix prototype.
6044 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
6045 df_insn_change_bb, don't call set_block_for_insn.
6046 * emit-rtl.c (reorder_insns): Likewise.
6047 * haifa-sched.c (move_insn): Likewise.
6049 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6051 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
6053 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6055 * tree-flow-inline.h (next_readonly_imm_use): Return
6056 NULL_USE_OPERAND_P after the end.
6058 2008-03-01 Richard Guenther <rguenther@suse.de>
6060 PR tree-optimization/35411
6061 * tree-sra.c (sra_build_assignment): Split conversion to
6062 final type to a separate statement if we are not assigning
6065 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6067 * fold-const.c (fold_convertible_p): Correct the logic to follow
6068 that in fold_convert().
6070 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
6073 * tree-inline.c (build_duplicate_type): When we make a
6074 duplicate type, make it unique in the canonical types system.
6076 2008-02-29 Tom Tromey <tromey@redhat.com>
6078 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
6079 input_file_stack_history, input_file_stack_restored): Remove.
6080 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6081 * input.h (struct file_stack): Remove.
6082 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6083 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
6085 * diagnostic.h (struct diagnostic_context) <last_module>: Change
6087 (diagnostic_last_module_changed): Add 'map' argument.
6088 (diagnostic_set_last_function): Likewise.
6089 * diagnostic.c (undiagnostic_report_current_module): Iterate using
6090 line map, not input_file_stack.
6091 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
6093 2008-02-29 Paul Brook <paul@codesourcery.com>
6095 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
6097 2008-02-29 Paul Brook <paul@codesourcery.com>
6099 * config/arm/ieee754-df.S (muldf3): Use RET macros.
6101 2008-02-29 Richard Guenther <rguenther@suse.de>
6103 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
6105 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
6106 value for comparing for a store match.
6107 (simplify_unary_expression): Do nothing for SSA_NAMEs.
6108 (try_to_simplify): Do not do a full-blown reference lookup.
6110 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
6112 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
6113 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6115 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
6117 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
6119 * tree-loop-linear.c (try_interchange_loops): Compare memory access
6120 strides against cache sizes.
6122 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
6124 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
6127 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
6129 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
6130 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
6131 is smaller than the original promoted value.
6132 (simplify_subreg): If OP is a SUBREG, try to preserve its
6133 SUBREG_PROMOTED_VAR_P information.
6135 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
6137 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
6138 (VN_INFO_GET): Allocate new objects on the obstack.
6139 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
6140 for rpo_numbers_temp, for consistency.
6141 (free_scc_vn): Free the obstack.
6143 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
6145 * doc/invoke.texi: Document -ftree-loop-distribution.
6146 * tree-loop-distribution.c: New.
6147 * tree-pass.h (pass_loop_distribution): New.
6148 * graphds.h (struct graph): Add htab_t indices.
6149 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6150 * tree-vectorizer.c (rename_variables_in_loop): Extern.
6151 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
6152 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6153 * tree-data-ref.c (debug_data_dependence_relations): New.
6154 (dump_data_dependence_relation): Also print data references.
6155 (free_data_ref): Extern.
6156 (same_access_functions): Moved...
6157 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6158 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6159 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6160 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
6161 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
6162 (stmts_from_loop): Skip LABEL_EXPR.
6163 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
6165 (build_rdg): Initialize rdg->indices htab.
6166 (free_rdg, stores_from_loop, ref_base_address,
6167 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6168 have_similar_memory_accesses_1, ref_base_address_1,
6169 remove_similar_memory_refs): New.
6170 * tree-data-ref.h: Depend on tree-chrec.h.
6171 (debug_data_dependence_relations, free_data_ref): Declared.
6172 (same_access_functions): ... here.
6173 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
6175 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
6176 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
6177 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
6178 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6179 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6180 rdg_vertex_for_stmt): Declared.
6181 (struct rdg_edge): Add level.
6183 (free_rdg, stores_from_loop, remove_similar_memory_refs,
6184 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
6186 (rdg_has_similar_memory_accesses): New.
6187 * tree-vect-analyze.c: Remove unused static decls.
6188 * lambda.h (dependence_level): New.
6189 * common.opt (ftree-loop-distribution): New.
6190 * tree-flow.h (mark_virtual_ops_in_bb,
6191 slpeel_tree_duplicate_loop_to_edge_cfg,
6192 rename_variables_in_loop): Declared.
6193 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
6194 (OBJS-common): Add tree-loop-distribution.o.
6195 (tree-loop-distribution.o): New rule.
6196 * tree-cfg.c (mark_virtual_ops_in_bb): New.
6197 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6198 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
6200 2008-02-28 Joseph Myers <joseph@codesourcery.com>
6203 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
6204 other than structures and unions.
6206 2008-02-28 Richard Guenther <rguenther@suse.de>
6209 2008-02-26 Richard Guenther <rguenther@suse.de>
6211 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6212 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6213 (lookup_decl_from_uid): Declare.
6214 (remove_decl_from_map): Likewise.
6215 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6216 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6217 (decl_for_uid_map): New global hashtable mapping DECL_UID
6219 (init_ttree): Allocate it.
6220 (insert_decl_to_uid_decl_map): New helper function.
6221 (make_node_stat): Insert new decls into the map.
6222 (copy_node_stat): Likewise.
6223 (lookup_decl_from_uid): New function.
6224 (remove_decl_from_map): Likewise.
6225 (print_decl_for_uid_map_statistics): New helper.
6226 (dump_tree_statistics): Call it.
6228 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6229 (referenced_var_iterator): Adjust.
6230 (FOR_EACH_REFERENCED_VAR): Adjust.
6231 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6232 (num_referenced_vars): Adjust.
6233 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6234 (first_referenced_var): Remove.
6235 (end_referenced_vars_p): Likewise.
6236 (next_referenced_var): Likewise.
6237 (referenced_var_iterator_set): New helper function.
6238 * tree-dfa.c (referenced_var_lookup): Adjust.
6239 (referenced_var_check_and_insert): Likewise.
6240 (remove_referenced_var): Likewise.
6241 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6242 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6243 (verify_call_clobbering): Likewise.
6244 (verify_memory_partitions): Likewise.
6245 (init_tree_ssa): Allocate bitmap instead of hashtable for
6247 (delete_tree_ssa): Adjust.
6248 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6249 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6250 (compute_tag_properties): Likewise.
6251 (set_initial_properties): Likewise.
6252 (find_partition_for): Likewise.
6253 (update_reference_counts): Likewise.
6254 (dump_may_aliases_for): Likewise.
6255 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6256 (add_call_clobber_ops): Likewise.
6257 (add_call_read_ops): Likewise.
6258 (get_asm_expr_operands): Likewise.
6259 * tree-into-ssa.c (dump_decl_set): Likewise.
6260 (update_ssa): Likewise.
6261 * tree-sra.c (scan_function): Likewise.
6262 (decide_instantiations): Likewise.
6263 (scalarize_parms): Likewise.
6264 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6265 (dsa_named_for): Likewise.
6266 * tree-ssa-structalias.c (update_alias_info): Likewise.
6267 (merge_smts_into): Likewise.
6269 2008-02-27 David Daney <ddaney@avtrex.com>
6272 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
6273 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
6274 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
6275 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
6276 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
6278 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
6281 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
6282 (BUILT_IN_NEXTTOWARD): Remove.
6283 (BUILT_IN_NEXTTOWARDF): Ditto.
6284 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
6285 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
6287 2008-02-27 Tom Tromey <tromey@redhat.com>
6289 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
6290 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
6292 2008-02-27 Jan Beulich <jbeulich@novell.com>
6294 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
6295 update the respective field on newdecl.
6297 2008-02-27 Revital Eres <eres@il.ibm.com>
6299 PR rtl-optimization/34999
6300 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
6301 crossing edges that ends with a call insn.
6302 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
6303 call insn and clear the EDGE_CROSSING flag of the crossing edge
6304 when fixing fallthru edges.
6306 2008-02-27 Richard Guenther <rguenther@suse.de>
6309 * fold-const.c (fold_unary): Return the correct argument,
6310 converted to the result type.
6312 2008-02-27 Richard Guenther <rguenther@suse.de>
6315 * expr.c (expand_expr_real_1): Assert on rotates that operate
6317 * fold-const.c (fold_binary): Use the types precision, not the
6318 bitsize of the mode if folding rotate expressions. Build rotates
6319 only for full modes.
6321 2008-02-27 Jakub Jelinek <jakub@redhat.com>
6323 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
6325 * c-pragma.c (pragma_ns_name): New typedef.
6326 (registered_pp_pragmas): New variable.
6327 (c_pp_lookup_pragma): New function.
6328 (c_register_pragma_1): If flag_preprocess_only, do nothing
6329 for non-expanded pragmas, for expanded ones push pragma's
6330 namespace and name into registered_pp_pragmas vector.
6331 (c_invoke_pragma_handler): Register OpenMP pragmas even when
6332 flag_preprocess_only, don't register GCC pch_preprocess
6333 pragma if flag_preprocess_only.
6334 * c-opts.c (c_common_init): Call init_pragma even if
6335 flag_preprocess_only.
6336 * c-pragma.c (c_pp_lookup_pragma): New prototype.
6337 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
6338 cpp_register_pragma if flag_preprocess_only.
6340 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6343 * c-parser.c (c_parser_translation_unit): Warn for empty
6344 translation unit, not empty source file.
6346 2008-02-26 Paul Brook <paul@codesourcery.com>
6348 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
6349 operand for Thumb-2.
6350 * config/arm/arm.h (reg_class): Add CORE_REGS.
6351 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
6352 (BASE_REG_CLASS): Use CORE_REGS.
6353 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
6354 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
6355 (REGNO_OK_FOR_INDEX_P): Exclude SP.
6356 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
6357 ARM_REGNO_OK_FOR_INDEX_P.
6358 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
6359 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
6360 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
6361 (ldm/stm peepholes): Ditto.
6362 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
6363 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
6364 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
6365 * config/arm/constraints.md: Enable "k" constraint on ARM.
6367 2008-02-27 Ben Elliston <bje@au.ibm.com>
6369 * config/rs6000/rs6000.c: Annotate cache line size field in all
6370 instances of struct processor_costs.
6372 2008-02-26 David Edelsohn <edelsohn@gnu.org>
6374 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
6375 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
6376 jump_bypass): New counters.
6377 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
6378 * dce.c (gate_ud_dce): Same.
6379 (gate_fast_dce): Same.
6380 * dse.c (gate_dse1): New function.
6381 (gate_dse2): New function.
6382 (gate_dse): Merge results of new gate functions.
6383 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
6384 (gate_handle_jump_bypass): Add dbg_cnt.
6385 (gate_handle_gcse): Add dbg_cnt.
6386 * ifcvt.c (gate_handle_if_conversion): Same.
6387 (gate_handle_if_after_combine): Same.
6388 (gate_handle_if_after_reload): Same.
6389 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
6391 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
6393 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
6395 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
6397 2008-02-26 Jason Merrill <jason@redhat.com>
6400 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
6401 alone if it's the naming decl for the type's main variant.
6403 2008-02-26 Tom Tromey <tromey@redhat.com>
6405 * system.h (USE_MAPPED_LOCATION): Poison.
6406 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
6407 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
6408 (make_goto_expr_edges): Likewise.
6409 (remove_bb): Likewise.
6410 (execute_warn_function_return): Likewise.
6411 * basic-block.h (struct edge_def) <goto_locus>: Change type to
6413 * c-common.c (fname_decl): Remove old location code.
6414 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
6416 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
6418 (ASM_INPUT_SOURCE_LOCATION): Likewise.
6419 (gen_rtx_ASM_INPUT): Likewise.
6420 (gen_rtx_ASM_INPUT_loc): Likewise.
6421 (get_rtx_asm_OPERANDS): Remove.
6422 * cfglayout.c (insn_locators_alloc): Remove old location code.
6423 (set_curr_insn_source_location): Likewise.
6424 (curr_insn_locator): Likewise.
6425 * print-tree.c (print_node): Remove old location code.
6426 * tree-mudflap.c (mf_varname_tree): Remove old location code.
6427 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
6428 * cfgexpand.c (expand_gimple_cond_expr): Don't use
6429 location_from_locus.
6430 (construct_exit_block): Remove old location code.
6431 * emit-rtl.c (force_next_line_note): Remove old location code.
6432 * profile.c (branch_prob): Remove old location code.
6433 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
6434 LOC_LINE): Remove old-location variants.
6435 * langhooks.c (lhd_print_error_function): Remove old location
6437 * configure, config.in: Rebuilt.
6438 * configure.ac (--enable-mapped-location): Remove.
6439 * c-decl.c (c_init_decl_processing): Remove old location code.
6440 (finish_function): Likewise.
6441 * recog.c (decode_asm_operands): Remove old location code.
6442 * c-pch.c (c_common_read_pch): Remove old location code.
6443 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
6445 * gimple-low.c (lower_function_body): Remove old location code.
6446 * toplev.c (unknown_location): Remove.
6447 (push_srcloc): Remove old-location variant.
6448 (process_options): Remove old location code.
6449 (lang_dependent_init): Likewise.
6450 * input.h (UNKNOWN_LOCATION): Move definition.
6451 (location_t): Undeprecate.
6452 (source_locus): Remove.
6453 (location_from_locus): Remove.
6454 (struct location_s): Remove.
6455 Remove all old-location code.
6456 (input_line, input_filename): Remove.
6457 * final.c (final_scan_insn): Remove old location code.
6458 * diagnostic.c (diagnostic_build_prefix): Remove
6459 USE_MAPPED_LOCATION test.
6460 * tree.h (gimple_stmt) <locus>: Now a location_t.
6461 (tree_exp) <locus>: Likewise.
6462 (DECL_IS_BUILTIN): Remove old-location variant.
6463 (annotate_with_file_line, annotate_with_locus): Likewise.
6464 (expr_locus, set_expr_locus): Update.
6465 * tree.c (build1_stat): Remove old location code.
6466 (last_annotated_node): Remove.
6467 (annotate_with_file_line): Remove old-location variant.
6468 (annotate_with_locus): Likewise.
6469 (expr_location): Remove old location code.
6470 (set_expr_location): Likewise.
6471 (expr_has_location): Likewise.
6472 (expr_locus): Likewise.
6473 (set_expr_locus): Likewise.
6474 (expr_filename): Don't use location_from_locus.
6475 (expr_lineno): Likewise.
6476 * rtl-error.c (location_for_asm): Remove old location code.
6477 * c-lex.c (cb_line_change): Remove old location code.
6478 (fe_file_change): Likewise.
6479 (cb_def_pragma): Likewise.
6480 (c_lex_with_flags): Likewise.
6481 * gengtype.c (do_typedef): Don't special-case location types.
6482 (define_location_structures): Remove.
6483 (main): Don't call define_location_structures.
6484 * tree-pretty-print.c (dump_implicit_edges): Remove old location
6487 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6490 * builtins.def (BUILT_IN_STDARG_START): Remove.
6491 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
6492 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6493 * tree-inline.c (inline_forbidden_p_1): Likewise.
6495 2008-02-26 Richard Guenther <rguenther@suse.de>
6497 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6498 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6499 (lookup_decl_from_uid): Declare.
6500 (remove_decl_from_map): Likewise.
6501 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6502 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6503 (decl_for_uid_map): New global hashtable mapping DECL_UID
6505 (init_ttree): Allocate it.
6506 (insert_decl_to_uid_decl_map): New helper function.
6507 (make_node_stat): Insert new decls into the map.
6508 (copy_node_stat): Likewise.
6509 (lookup_decl_from_uid): New function.
6510 (remove_decl_from_map): Likewise.
6511 (print_decl_for_uid_map_statistics): New helper.
6512 (dump_tree_statistics): Call it.
6514 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6515 (referenced_var_iterator): Adjust.
6516 (FOR_EACH_REFERENCED_VAR): Adjust.
6517 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6518 (num_referenced_vars): Adjust.
6519 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6520 (first_referenced_var): Remove.
6521 (end_referenced_vars_p): Likewise.
6522 (next_referenced_var): Likewise.
6523 (referenced_var_iterator_set): New helper function.
6524 * tree-dfa.c (referenced_var_lookup): Adjust.
6525 (referenced_var_check_and_insert): Likewise.
6526 (remove_referenced_var): Likewise.
6527 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6528 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6529 (verify_call_clobbering): Likewise.
6530 (verify_memory_partitions): Likewise.
6531 (init_tree_ssa): Allocate bitmap instead of hashtable for
6533 (delete_tree_ssa): Adjust.
6534 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6535 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6536 (compute_tag_properties): Likewise.
6537 (set_initial_properties): Likewise.
6538 (find_partition_for): Likewise.
6539 (update_reference_counts): Likewise.
6540 (dump_may_aliases_for): Likewise.
6541 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6542 (add_call_clobber_ops): Likewise.
6543 (add_call_read_ops): Likewise.
6544 (get_asm_expr_operands): Likewise.
6545 * tree-into-ssa.c (dump_decl_set): Likewise.
6546 (update_ssa): Likewise.
6547 * tree-sra.c (scan_function): Likewise.
6548 (decide_instantiations): Likewise.
6549 (scalarize_parms): Likewise.
6550 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6551 (dsa_named_for): Likewise.
6552 * tree-ssa-structalias.c (update_alias_info): Likewise.
6553 (merge_smts_into): Likewise.
6555 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6558 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
6559 * c-opts.c (c_common_handle_option): Wall enables
6560 Wvolatile-register-var.
6561 * common.opt: Move Wvolatile-register-var to...
6564 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6566 * common.opt (Wlarger-than=): New.
6567 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
6569 * opts.c (common_handle_option): Handle -Wlarger-than=.
6570 * optc-gen.awk: Likewise.
6571 * opth-gen.awk: Likewise.
6572 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
6573 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6575 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6577 * c-common.c (match_case_to_enum_1): Add appropriate
6578 OPT_W* parameter to warning.
6579 (c_do_switch_warnings): Likewise.
6580 * c-typeck.c (warning_init): Add one more parameter following
6582 (push_init_level): Update call to warning_init.
6583 (pop_init_level): Likewise.
6584 (add_pending_init): Likewise.
6585 (output_init_element: Likewise.
6587 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6590 * toplev.c (toplev_main): If there are warnings or error, print
6591 errors for ignored options.
6592 * opts.c (ignored_options): New static variable.
6593 (postpone_unknown_option_error): New.
6594 (print_ignored_options): New.
6595 (handle_option): Postpone errors for unknown -Wno-* options.
6596 * opts.h (print_ignored_options): Declare.
6598 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
6600 * config/mips/mips.md (loadgp_blockage, blockage): Change type
6603 2008-02-25 Richard Guenther <rguenther@suse.de>
6606 2008-02-25 Richard Guenther <rguenther@suse.de>
6608 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6609 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6610 (lookup_decl_from_uid): Declare.
6611 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6612 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6613 (decl_for_uid_map): New global hashtable mapping DECL_UID
6615 (init_ttree): Allocate it.
6616 (insert_decl_to_uid_decl_map): New helper function.
6617 (make_node_stat): Insert new decls into the map.
6618 (copy_node_stat): Likewise.
6619 (lookup_decl_from_uid): New function.
6620 (print_decl_for_uid_map_statistics): New helper.
6621 (dump_tree_statistics): Call it.
6623 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6624 (referenced_var_iterator): Adjust.
6625 (FOR_EACH_REFERENCED_VAR): Adjust.
6626 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6627 (num_referenced_vars): Adjust.
6628 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6629 (first_referenced_var): Remove.
6630 (end_referenced_vars_p): Likewise.
6631 (next_referenced_var): Likewise.
6632 (referenced_var_iterator_set): New helper function.
6633 * tree-dfa.c (referenced_var_lookup): Adjust.
6634 (referenced_var_check_and_insert): Likewise.
6635 (remove_referenced_var): Likewise.
6636 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6637 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6638 (verify_call_clobbering): Likewise.
6639 (verify_memory_partitions): Likewise.
6640 (init_tree_ssa): Allocate bitmap instead of hashtable for
6642 (delete_tree_ssa): Adjust.
6643 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6644 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6645 (compute_tag_properties): Likewise.
6646 (set_initial_properties): Likewise.
6647 (find_partition_for): Likewise.
6648 (update_reference_counts): Likewise.
6649 (dump_may_aliases_for): Likewise.
6650 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6651 (add_call_clobber_ops): Likewise.
6652 (add_call_read_ops): Likewise.
6653 (get_asm_expr_operands): Likewise.
6654 * tree-into-ssa.c (dump_decl_set): Likewise.
6655 (update_ssa): Likewise.
6656 * tree-sra.c (scan_function): Likewise.
6657 (decide_instantiations): Likewise.
6658 (scalarize_parms): Likewise.
6659 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6660 (dsa_named_for): Likewise.
6661 * tree-ssa-structalias.c (update_alias_info): Likewise.
6662 (merge_smts_into): Likewise.
6664 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
6667 * doc/invoke.texi (-fcx-limited-range): Document new option.
6668 * toplev.c (process_options): Handle -fcx-fortran-rules.
6669 * common.opt: Add documentation for -fcx-fortran-rules.
6671 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
6674 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
6675 actual behaviour and C99.
6677 2008-02-26 Ben Elliston <bje@au.ibm.com>
6679 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
6680 (ASM_CPU_POWER6_SPEC): Likewise.
6681 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
6682 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
6683 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
6685 2008-02-25 Richard Guenther <rguenther@suse.de>
6687 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6688 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6689 (lookup_decl_from_uid): Declare.
6690 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6691 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6692 (decl_for_uid_map): New global hashtable mapping DECL_UID
6694 (init_ttree): Allocate it.
6695 (insert_decl_to_uid_decl_map): New helper function.
6696 (make_node_stat): Insert new decls into the map.
6697 (copy_node_stat): Likewise.
6698 (lookup_decl_from_uid): New function.
6699 (print_decl_for_uid_map_statistics): New helper.
6700 (dump_tree_statistics): Call it.
6702 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6703 (referenced_var_iterator): Adjust.
6704 (FOR_EACH_REFERENCED_VAR): Adjust.
6705 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6706 (num_referenced_vars): Adjust.
6707 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6708 (first_referenced_var): Remove.
6709 (end_referenced_vars_p): Likewise.
6710 (next_referenced_var): Likewise.
6711 (referenced_var_iterator_set): New helper function.
6712 * tree-dfa.c (referenced_var_lookup): Adjust.
6713 (referenced_var_check_and_insert): Likewise.
6714 (remove_referenced_var): Likewise.
6715 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6716 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6717 (verify_call_clobbering): Likewise.
6718 (verify_memory_partitions): Likewise.
6719 (init_tree_ssa): Allocate bitmap instead of hashtable for
6721 (delete_tree_ssa): Adjust.
6722 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6723 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6724 (compute_tag_properties): Likewise.
6725 (set_initial_properties): Likewise.
6726 (find_partition_for): Likewise.
6727 (update_reference_counts): Likewise.
6728 (dump_may_aliases_for): Likewise.
6729 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6730 (add_call_clobber_ops): Likewise.
6731 (add_call_read_ops): Likewise.
6732 (get_asm_expr_operands): Likewise.
6733 * tree-into-ssa.c (dump_decl_set): Likewise.
6734 (update_ssa): Likewise.
6735 * tree-sra.c (scan_function): Likewise.
6736 (decide_instantiations): Likewise.
6737 (scalarize_parms): Likewise.
6738 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6739 (dsa_named_for): Likewise.
6740 * tree-ssa-structalias.c (update_alias_info): Likewise.
6741 (merge_smts_into): Likewise.
6743 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
6746 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
6747 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
6748 * alias.h (nonoverlapping_memrefs_p): Likewise.
6750 2008-02-25 Jan Beulich <jbeulich@novell.com>
6752 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
6753 * config/i386/netware-libgcc.exp: Add __bswap?i2,
6754 __emultls_get_address, __emultls_register_common,
6755 __floatundi?f, and _Unwind_GetIPInfo.
6756 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
6757 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
6758 (gen_regparm_prefix): Likewise.
6759 (i386_nlm_encode_section_info): Sync with
6760 config/i386/winnt.c:i386_pe_encode_section_info().
6761 (i386_nlm_maybe_mangle_decl_assembler_name): New.
6762 i386_nlm_mangle_decl_assembler_name): New.
6763 (netware_override_options): New.
6764 * config/i386/netware.h (netware_override_options): Declare.
6765 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
6766 (i386_nlm_mangle_decl_assembler_name): Declare.
6767 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
6769 2008-02-25 Ben Elliston <bje@au.ibm.com>
6772 * c-decl.c (grokdeclarator): Remove unused local variables
6773 `typedef_type' and `type_as_written'.
6775 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
6776 unused local variable `has_hot_blocks'.
6777 (fix_crossing_conditional_branches): Remove unused local variable
6780 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
6783 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
6784 using DEF_C99_BUILTIN.
6785 (BUILT_IN_NANF): Ditto.
6786 (BUILT_IN_NANL): Ditto.
6788 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
6789 Revital Eres <eres@il.ibm.com>
6791 * modulo-sched.c (calculate_must_precede_follow): Address TODO
6792 regarding the order of two dependent insns in the same row.
6794 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
6796 * stor-layout.c (layout_decl): Do not bump the alignment of a
6797 bit-field to more than byte alignment if it is packed.
6799 2008-02-24 David Edelsohn <edelsohn@gnu.org>
6801 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
6804 2008-02-24 Diego Novillo <dnovillo@google.com>
6806 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
6809 * tree-vrp.c (vrp_evaluate_conditional): With
6810 -Wtype-limits, emit a warning when comparing against a
6811 constant outside the natural range of OP0's type.
6812 * c.opt (Wtype-limits): Move ...
6813 * common.opt (Wtype-limits): ... here.
6815 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
6817 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
6818 * config/rs6000/e300c2c3.md: New file.
6819 * config/rs6000/rs6000.c (processor_costs): Add new costs for
6821 (rs6000_override_options): Add e300c2 and e300c3 cases to
6822 processor_target_table. Do not allow usage of Altivec or Spe
6823 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
6824 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
6825 * config/rs6000/rs6000.h (processor_type): Add
6826 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
6827 (ASM_CPU_SPEC): Add e300c2 and e300c3.
6828 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
6829 and ppce300c3. Include e300c2c3.md.
6831 2008-02-23 David Edelsohn <edelsohn@gnu.org>
6833 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
6834 instead of TARGET_STRICT_ALIGN.
6836 2008-02-23 Joseph Myers <joseph@codesourcery.com>
6838 * explow.c (memory_address): Assert that the generated address is
6841 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6844 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
6845 * config/darwin-ppc-ldouble-patch.def: New file.
6846 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
6847 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
6848 SUBTARGET_INIT_BUILTINS if defined.
6849 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
6852 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
6855 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
6856 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
6858 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
6861 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
6862 file" warning condtional on -Winvalid-PCH.
6864 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
6866 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
6868 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
6872 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
6873 prevent reload from using MMX registers.
6874 (*mov<mode>_internal): Ditto.
6875 (*movv2sf_internal_rex64): Ditto.
6876 (*movv2sf_internal): Ditto.
6878 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6880 PR documentation/31569
6881 * doc/install.texi2html: Use makeinfo --no-number-sections.
6883 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
6885 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
6886 ensure that we can address an entire entity > 8 bytes. Don't
6887 generate reg+reg addressing for such data.
6889 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
6891 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
6892 strings when optimizing for size, unless the target cares about
6895 2008-02-22 Tom Tromey <tromey@redhat.com>
6897 * regclass.c (current_pass): Remove declaration.
6899 2008-02-22 Anatoly Sokolov <aesok@post.ru>
6901 * config/avr/libgcc.S (__RAMPZ__): Define.
6902 (__do_copy_data): Add for devices with 128KB code memory.
6904 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
6906 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
6908 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
6910 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
6912 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
6915 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6918 * c-typeck.c (build_binary_op): Warn about floating point
6919 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
6921 2008-02-21 Janis Johnson <janis187@us.ibm.com>
6924 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
6925 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
6927 (rs6000_override_options): Set altivec_abi as default, not override,
6928 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
6929 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
6930 is used; use new member spe_abi.
6931 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
6932 spe_abi and altivec_abi.
6934 2008-02-22 Tomas Bily <tbily@suse.cz>
6936 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
6938 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6941 * config.build (build_file_translate): Set to `CMD //c' only if
6943 * Makefile.in (build_file_translate): Improve comment.
6945 2008-02-21 Jan Hubicka <jh@suse.cz>
6947 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
6948 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
6949 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
6951 2008-02-21 Michael Matz <matz@suse.de>
6954 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
6956 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
6958 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
6959 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
6961 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
6962 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
6963 SSE_VEC_FLOAT_MODE_P as insn constraint.
6964 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
6965 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
6966 sse4a_movntdf using MODEF mode iterator.
6967 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
6968 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
6969 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
6970 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
6971 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
6972 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
6973 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
6975 2008-02-21 Richard Guenther <rguenther@suse.de>
6977 * tree.def (PAREN_EXPR): New tree code.
6978 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
6980 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
6981 * expr.c (expand_expr_real_1): Likewise.
6982 * tree-inline.c (estimate_num_insns_1): Likewise.
6983 * tree-complex.c (expand_complex_move): Likewise.
6984 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
6987 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
6990 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
6992 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
6995 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
6997 * config/sh/sh.c (find_barrier): Don't go past
6998 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
7000 2008-02-20 DJ Delorie <dj@redhat.com>
7002 * config/h8300/h8300.md (insv): Force source operand to be a register.
7004 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
7005 as a jump, not as a plain insn.
7007 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
7009 * doc/invoke.texi (Warning Options): Add new option
7010 -Wframe-larger-than=.
7011 (-Wframe-larger-than): Document.
7013 * flags.h (warn_frame_larger_than, frame_larger_than_size):
7014 Add declarations for new option variables.
7016 * final.c (final_start_function): Check the frame size
7017 before emission and issue a Wframe-larger-than warning.
7019 * opts.c (warn_frame_larger_than, frame_larger_than_size):
7020 Add definitions for new option variables.
7021 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
7023 * common.opt (Wframe-larger-than=): New option.
7025 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
7027 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
7028 (<sse>_div<mode>3): Ditto.
7029 (<sse>_vmdiv<mode>3): Ditto.
7030 (<sse>_vmsqrt<mode>2): Ditto.
7031 (*smax<mode>3): Ditto.
7032 (sse5_frcz<mode>2): Ditto.
7033 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
7036 2008-02-20 Richard Guenther <rguenther@suse.de>
7039 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
7040 be happy with INTEGRAL_TYPE_P.
7042 2008-02-20 Richard Guenther <rguenther@suse.de>
7044 * fold-const.c (split_tree): Associate floatig-point expressions
7045 if flag_associative_math is set.
7047 2008-02-20 Richard Guenther <rguenther@suse.de>
7049 * tree.h (fold_real_zero_addition_p): Declare.
7050 * fold-const.c (fold_real_zero_addition_p): Export.
7051 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
7052 floating-point operations with zero and one.
7054 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
7056 * doc/install.texi: Correct references to CFLAGS, replacing them
7057 with BOOT_CFLAGS. Document flags used during bootstrap for
7060 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
7062 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
7063 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
7064 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
7066 (smin<mode>3): Ditto from similar patterns.
7067 (smax<mode>3): Ditto.
7068 (*ieee_smin<mode>3): Ditto.
7069 (*ieee_smax<mode>3): Ditto.
7070 * config/i386/sse.md (sse): New mode attribute.
7071 (mov<mode>): Macroize expander from movv4sf and movv2df using
7072 SSEMODEF2P mode iterator.
7073 (<sse>_movnt<mode>): Ditto from similar patterns. Use
7074 SSE_VEC_FLOAT_MODE_P as insn constraint.
7075 (storent<mode>): Ditto.
7076 (storent<mode>): Macroize expander from storentsf and storentdf using
7077 MODEF mode iterator.
7078 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
7079 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
7080 (abs<mode>2): Ditto from similar patterns.
7081 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
7082 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
7083 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
7084 (<sse>_vmsqrt<mode>2): Ditto.
7085 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
7086 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
7087 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
7088 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
7089 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
7090 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
7091 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
7093 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
7094 iterator and SSE_FLOAT_MODE_P as insn constraint.
7095 (<sse>_ucomi): Ditto from similar patterns.
7096 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
7097 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
7098 SSE_VEC_FLOAT_MODE_P as insn constraint.
7099 (vcond<mode>): Ditto from similar patterns.
7100 (and<mode>3, *and<mode>3): Ditto.
7101 (<sse>_nand<mode>3): Ditto.
7102 (ior<mode>3, *ior<mode>3): Ditto.
7103 (xor<mode>3, *xor<mode>3): Ditto.
7104 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
7105 iterator and SSE_FLOAT_MODE_P as insn constraint.
7106 (*nand<mode>3): Ditto from similar patterns.
7107 (*ior<mode>3): Ditto.
7108 (*xor<mode>3): Ditto.
7110 2008-02-20 Ira Rosen <irar@il.ibm.com>
7112 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
7113 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
7114 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
7116 2008-02-19 Jan Hubicka <jh@suse.cz>
7118 * predict.c (tree_bb_level_predictions): Remove variable next
7119 mistakely introduced by previous commit.
7121 2008-02-19 Jan Hubicka <jh@suse.cz>
7123 * predict.c (predict_paths_leading_to): Rewrite.
7124 (predict_paths_for_bb): New.
7125 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
7127 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7130 * Makefile.in (build_file_translate): New.
7131 (gcc-vers.texi): Use it for translating $(abs_srcdir).
7132 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
7133 * configure.ac (build_file_translate): Substitute it.
7134 * configure: Regenerate.
7136 2008-02-19 Jan Hubicka <jh@suse.cz>
7138 PR rtl-optimization/34408
7139 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
7142 2008-02-19 Jan Hubicka <jh@suse.cz>
7145 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
7148 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
7151 * config/i386/i386-modes.def: Revert the last DI alignment
7152 change until Ada people can look into it.
7154 2008-02-19 Nick Clifton <nickc@redhat.com>
7156 * opts.c (print_specific_help): Fix typo in --help text.
7158 2008-02-19 Jakub Jelinek <jakub@redhat.com>
7161 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
7162 32-bit inline asm without asm alternatives for host GCC < 3.0.
7164 2008-02-19 Richard Guenther <rguenther@suse.de>
7166 PR tree-optimization/34989
7167 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
7168 Allow propagation to INDIRECT_REF if we can simplify only.
7170 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7172 * c-common.c (warn_for_collisions_1): Use appropriate option when
7175 2008-02-19 Nick Clifton <nickc@redhat.com>
7178 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
7179 (handle_options): Fix indentation.
7180 (print_filtered_help): If no language-specific options were
7181 displayed tell the user how to list all the options supported by
7182 the language's front-end.
7183 (print_specific_help): Fix indentation and remove duplicate line.
7184 (common_handle_option): Handle the -v option.
7185 For --help enable the display of undocumented options if the -v
7186 switch has been included on the command line.
7187 For --help= check for overlaps in the arguments between the option
7188 classes and the language names and issue a warning when they
7189 cannot be disambiguated.
7190 * c.opt (v): Pass on to the common option handler.
7192 2008-02-19 Revital Eres <eres@il.ibm.com>
7194 * modulo-sched.c (sms_schedule): Change dump message when
7195 create_ddg function fails.
7196 (try_scheduling_node_in_cycle): Rename row to cycle.
7197 (print_partial_schedule): Rename CYCLE to ROW.
7199 2008-02-19 Christian Bruel <christian.bruel@st.com>
7200 Zdenek Dvorak <ook@ucw.cz>
7202 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
7204 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
7207 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
7208 (*x86_movdicc_0_m1_se): Ditto.
7210 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
7212 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
7213 (CMPtype): Define as __gcc_CMPtype.
7214 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
7215 (CMPtype): Define as __gcc_CMPtype.
7217 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
7219 Support valgrind 3.3 for --enable-checking=valgrind.
7220 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
7222 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
7223 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
7224 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
7225 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
7226 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
7227 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
7228 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
7230 * ggc-zone.c: Similar.
7231 * ggc-page.c: Similar.
7233 2008-02-19 Paul Brook <paul@codesourcery.com>
7236 * config/arm/ieee754-df.S: Fix do_it typo.
7237 * config/arm/ieee754-sf.S: Fix do_it typo.
7239 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
7242 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
7243 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
7244 (OPTION_MASK_ISA_SSE_SET): Likewise.
7245 (OPTION_MASK_ISA_SSE2_SET): Likewise.
7246 (OPTION_MASK_ISA_SSE3_SET): Likewise.
7247 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
7248 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
7249 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
7250 (OPTION_MASK_ISA_SSE4_SET): Likewise.
7251 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
7252 (OPTION_MASK_ISA_SSE5_SET): Likewise.
7253 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
7254 (OPTION_MASK_ISA_MMX_UNSET): Updated.
7255 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
7256 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
7257 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
7258 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
7259 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
7260 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
7261 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
7262 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
7263 (OPTION_MASK_ISA_SSE4): Removed.
7264 (ix86_handle_option): Turn on bits in ix86_isa_flags and
7265 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
7266 (override_options): Don't turn on implied SSE/MMX bits in
7269 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
7271 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7274 2008-02-18 Joey Ye <joey.ye@intel.com>
7277 * tree-nested.c (insert_field_into_struct): Set type alignment
7278 to field alignment if the former is less than the latter.
7280 2008-02-18 Jakub Jelinek <jakub@redhat.com>
7282 * BASE-VER: Set to 4.4.0.
7284 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7286 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
7287 * doc/cfg.texi: Likewise.
7288 * doc/extend.texi: Likewise.
7289 * doc/gty.texi: Likewise.
7290 * doc/invoke.texi: Likewise.
7291 * doc/loop.texi: Likewise.
7292 * doc/md.texi: Likewise.
7293 * doc/passes.texi: Likewise.
7294 * doc/rtl.texi: Likewise.
7295 * doc/sourcebuild.texi: Likewise.
7296 * doc/tm.texi: Likewise.
7297 * doc/tree-ssa.texi: Likewise.
7299 2008-02-17 Richard Guenther <rguenther@suse.de>
7302 * tree-complex.c (init_parameter_lattice_values): Handle parameters
7303 without default definition.
7305 2008-02-17 Richard Guenther <rguenther@suse.de>
7307 PR tree-optimization/35231
7308 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
7311 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
7314 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7315 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7316 libgcc_cmp_return mode.
7318 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7321 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
7323 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
7325 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
7328 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7330 * doc/c-tree.texi: Use `@.' where appropriate.
7331 * doc/extend.texi: Likewise.
7332 * doc/install.texi: Likewise.
7333 * doc/invoke.texi: Likewise.
7334 * doc/loop.texi: Likewise.
7335 * doc/makefile.texi: Likewise.
7336 * doc/md.texi: Likewise.
7337 * doc/passes.texi: Likewise.
7338 * doc/standards.texi: Likewise.
7339 * doc/tm.texi: Likewise.
7341 2008-02-15 Jakub Jelinek <jakub@redhat.com>
7344 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
7346 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
7347 rather than in entry_bb.
7349 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7351 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7352 libgcc_cmp_return mode.
7354 2008-02-15 Jakub Jelinek <jakub@redhat.com>
7357 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
7358 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
7360 2008-02-15 Richard Guenther <rguenther@suse.de>
7361 Zdenek Dvorak <ook@ucw.cz>
7363 PR tree-optimization/35164
7364 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
7365 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
7366 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
7367 Only propagate addresses which do not have abnormal SSA_NAMEs
7370 2008-02-15 Joseph Myers <joseph@codesourcery.com>
7373 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
7375 2008-02-15 Jan Hubicka <jh@suse.cz>
7378 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
7380 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7383 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
7384 when calculating alignment_pad.
7386 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7388 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
7389 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
7390 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
7391 and STACK_BOUNDARY define.
7393 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
7395 PR preprocessor/35061
7396 * c-pragma.c (handle_pragma_pop_macro): Check that
7397 pushed_macro_table has been allocated.
7399 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
7402 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
7403 (force_gimple_operand): Likewise.
7404 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
7405 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
7406 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
7407 (find_interesting_uses_address): Check addressability and alignment
7408 of the base expression only after substituting bases of IVs into it.
7410 2008-02-14 Michael Matz <matz@suse.de>
7413 * function.c (instantiate_virtual_regs_in_insn): Reload address
7414 before falling back to reloading the whole operand.
7416 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
7418 * config/s390/s390.c (s390_mainpool_start): Emit the pool
7419 before the first section switch note.
7421 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7423 * doc/bugreport.texi: Update copyright years.
7424 * doc/c-tree.texi: Likewise.
7425 * doc/cfg.texi: Likewise.
7426 * doc/cpp.texi: Likewise.
7427 * doc/cppinternals.texi: Likewise.
7428 * doc/fragments.texi: Likewise.
7429 * doc/frontends.texi: Likewise.
7430 * doc/gcc.texi: Likewise.
7431 * doc/gty.texi: Likewise.
7432 * doc/hostconfig.texi: Likewise.
7433 * doc/implement-c.texi: Likewise.
7434 * doc/libgcc.texi: Likewise.
7435 * doc/loop.texi: Likewise.
7436 * doc/makefile.texi: Likewise.
7437 * doc/options.texi: Likewise.
7438 * doc/passes.texi: Likewise.
7439 * doc/rtl.texi: Likewise.
7440 * doc/sourcebuild.texi: Likewise.
7441 * doc/standards.texi: Likewise.
7442 * doc/tree-ssa.texi: Likewise.
7443 * doc/trouble.texi: Likewise.
7445 * doc/extend.texi: Use @: or add comma where appropriate.
7446 * doc/invoke.texi: Likewise.
7447 * doc/tm.texi: Likewise.
7449 2008-02-14 Alan Modra <amodra@bigpond.net.au>
7452 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
7455 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
7457 * doc/md.texi (clz, ctz): Add reference.
7458 * doc/rtl.texi (clz, ctz): Likewise.
7460 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7463 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
7466 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
7468 * config/s390/s390.c (struct constant_pool): New field
7469 emit_pool_after added.
7470 (s390_mainpool_start): Set the emit_pool_after flag according
7471 to the section switch notes.
7472 (s390_mainpool_finish): Consider emit_pool_after when emitting
7473 the literal pool at the end of the function.
7474 (s390_chunkify_start): Force literal pool splits at section
7477 2008-02-13 Michael Matz <matz@suse.de>
7480 * var-tracking.c (clobber_variable_part): Correctly traverse the
7483 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7486 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
7487 Add -fdump-ipa-inline.
7488 * tree-dump.c (dump_files): Remove tree-inlined dump.
7489 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
7491 2008-02-12 Richard Guenther <rguenther@suse.de>
7493 PR tree-optimization/35171
7494 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
7497 2008-02-12 Richard Guenther <rguenther@suse.de>
7500 * fold-const.c (fold_widened_comparison): Use get_unwidened in
7501 value-preserving mode. Disallow final truncation.
7503 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
7506 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
7507 code from here to...
7508 (force_gimple_operand): ...here.
7510 2008-02-12 Jakub Jelinek <jakub@redhat.com>
7513 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
7514 non-compatible pointers.
7515 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
7516 different FIELD_DECLs, try harder by comparing field offsets, sizes
7520 * function.c (match_asm_constraints_1): Don't replace the same input
7523 2008-02-12 Anatoly Sokolov <aesok@post.ru>
7525 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
7526 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
7527 (expand_epilogue): Restore RAMPZ register.
7528 * config/avr/avr.md (RAMPZ_ADDR): New constant.
7530 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
7532 * config/i386/cygwin.asm: (__alloca): Correct calling
7533 convention and alignment.
7534 (__chkstk): Force 8 byte stack alignment.
7536 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
7537 Richard Guenther <rguenther@suse.de>
7539 PR tree-optimization/33992
7540 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
7541 the zero we compare against.
7543 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
7546 * gthr-win32.h (__gthread_mutex_destroy_function): New function
7547 to CloseHandle after unlocking to prevent accumulation of handle
7550 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7553 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
7554 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
7555 and update LABEL_NUSES during and after reload.
7557 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
7560 * combine.c (simplify_if_then_else): Make sure the comparison is
7561 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
7563 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
7566 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
7567 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
7568 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
7569 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
7570 * tree.h (get_type_static_bounds): Likewise.
7572 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7574 * doc/invoke.texi (Option Summary, C++ Dialect Options)
7575 (Objective-C and Objective-C++ Dialect Options, Warning Options):
7576 Make -Wfoo language annotations match what the compiler outputs.
7578 2008-02-08 Sa Liu <saliu@de.ibm.com>
7580 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
7581 intrinsics spu_convts, spu_convtu, spu_convtf.
7583 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
7585 * doc/extend.texi (Function Attributes) <noinline>: Mention
7586 asm ("") as method to keep calls.
7588 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7591 * doc/options.texi (Options): Replace references to opts.sh with
7593 * opts-common.c: Likewise.
7594 * optc-gen.awk: Likewise.
7596 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7598 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
7600 2008-02-07 Richard Henderson <rth@redhat.com>
7603 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
7604 EXPR_LIST for the REG_EQUAL instead of a comparison with a
7607 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
7609 PR tree-optimization/35085
7610 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
7611 for operand entry oe2 in addition to operand entry oe3 in order to
7612 expose more opportunities for vectorizer sum reduction.
7614 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7617 * Makefile.in (LIBS): Remove $(GMPLIBS).
7618 (cc1-dummy, cc1): Add $(GMPLIBS).
7620 2008-02-06 Jan Hubicka <jh@suse.cz>
7623 * i386.md (moddf_integer): Do not produce partial memory stalls for
7624 targets where it hurts.
7626 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
7629 * optabs.c (expand_float): Do not check for decimal modes when
7630 expanding unsigned integer through signed conversion.
7632 2008-02-06 Nick Clifton <nickc@redhat.com>
7634 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
7635 inside the clobber with a match_operand and duplicated operand
7636 number in the constraint.
7637 (ineqbranchsi): Delete redundant comment.
7639 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
7641 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
7642 builtin_define ("__USE_INIT_FINI__").
7643 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
7645 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
7647 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7649 PR documentation/30330
7650 * doc/invoke.texi (C++ Dialect Options)
7651 (Objective-C and Objective-C++ Dialect Options, Warning Options):
7652 For each warning option -Wfoo that allows -Wno-foo, ensure both
7653 -Wfoo and -Wno-foo are listed in the option index. Fix index
7654 entry of -Wswitch-default, index -Wnormalized= including the
7655 `=', and -Wlarger-than-@var{len} including @var{len}.
7657 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
7659 * config/i386/i386.md (floatunssisf2): Use
7660 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
7661 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
7662 Macroize expander using MODEF mode iterator.
7664 2008-02-05 Diego Novillo <dnovillo@google.com>
7666 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
7669 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
7671 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7674 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
7676 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
7679 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
7680 to indicate if a message should be generated.
7681 (init_cumulative_args): Updated.
7682 (function_value_32): Likewise.
7684 2008-02-05 Joseph Myers <joseph@codesourcery.com>
7686 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
7688 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
7691 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
7692 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
7694 2008-02-04 Diego Novillo <dnovillo@google.com>
7696 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
7699 * tree-vrp.c (vrp_evaluate_conditional): With
7700 -Wtype-limits, emit a warning when comparing against a
7701 constant outside the natural range of OP0's type.
7703 2008-02-04 Richard Guenther <rguenther@suse.de>
7706 * expr.c (count_type_elements): Give for unions instead of
7709 2008-02-04 Richard Guenther <rguenther@suse.de>
7712 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
7713 to TYPE_DOMAINs base type instead of using bitsizetype here.
7715 2008-02-03 Jason Merrill <jason@redhat.com>
7717 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
7719 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7722 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
7723 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
7724 (RS/6000 and PowerPC Options): Fix typos and markup.
7725 * doc/passes.texi (Tree-SSA passes): Likewise.
7727 2008-02-02 Michael Matz <matz@suse.de>
7730 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
7731 from record_last_reg_set_info.
7732 (record_last_reg_set_info): Take an RTX argument, iterate over all
7733 constituent hardregs.
7734 (record_last_set_info, record_opr_changes): Change calls to
7735 new signature or to record_last_reg_set_info_regno.
7737 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7739 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
7741 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
7743 PR rtl-optimization/34773
7744 * reg-notes.def (EQUAL): Mention significance of combination of
7745 REG_EQUAL and REG_RETVAL.
7746 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
7747 insn that has a REG_RETVAL.
7749 2008-02-01 Roger Sayle <roger@eyesopen.com>
7752 * configure.ac (--enable-fixed-point): Disable unless explicitly
7754 * configure: Regenerate.
7756 2008-02-01 Richard Guenther <rguenther@suse.de>
7759 * invoke.texi (-finline-limit): Remove no longer true parts
7760 of the documentation. Note that there is no default value.
7762 2008-02-01 Andrew Pinski <pinskia@gmail.com>
7763 Mark Mitchell <mark@codesourcery.com>
7764 Ben Elliston <bje@au.ibm.com>
7767 * doc/extend.texi (Other Builtins): Document.
7769 2008-01-31 Tom Browder <tom.browder@gmail.com>
7771 * doc/c-tree.texi (Types): Fix grammar.
7772 (Expression trees): Ditto.
7773 * doc/passes.texi (Tree-SSA passes): Ditto.
7775 * doc/configterms.texi (Configure Terms): Fix typo.
7776 * doc/cpp.texi (Common Predefined Macros): Ditto.
7777 * doc/md.texi (Machine Constraints): Ditto.
7779 * doc/makefile.texi (Makefile): Add comma.
7781 2008-01-31 Tom Browder <tom.browder@gmail.com>
7782 Gerald Pfeifer <gerald@pfeifer.com>
7784 * doc/sourcebuild.texi (Front End): Remove references to CVS
7785 and CVSROOT/modules.
7786 (Texinfo Manuals): Replace reference to CVS by one to SVN.
7787 (Back End): Remove reference to CVS.
7789 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
7792 * config/mips/mips.c (gen_load_const_gp): New function, taking a
7794 (mips16_gp_pseudo_reg): ...here.
7795 * config/mips/mips.md (load_const_gp): Replace with...
7796 (load_const_gp_<mode>): ...this :P-based insn.
7798 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7800 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
7801 options. Minor fixes.
7802 (-std): Move reference to standards closer to where language
7803 standards are first mentioned.
7805 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
7807 PR rtl-optimization/34995
7808 * reload.c (alternative_allows_const_pool_ref): Take an rtx
7809 parameter and return a bool. If the rtx parameter is nonnull,
7810 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
7811 (find_reloads): Update call accordingly. Pass the new operand
7812 if it needed no address reloads, otherwise pass null.
7814 2008-01-30 Richard Henderson <rth@redhat.com>
7817 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
7818 for unbounded arrays.
7820 2008-01-30 Silvius Rus <rus@google.com>
7822 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
7824 2008-01-30 Jan Hubicka <jh@suse.cz>
7827 * i386.c (init_cumulative_args): Use real function declaration when
7830 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
7832 PR rtl-optimization/34998
7833 * global.c (build_insn_chain): Treat non-subreg_lowpart
7834 SUBREGs of pseudos as clobbering all the words covered by the
7835 SUBREG, not just all the bytes.
7836 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
7837 original df_ref rather than an extract parameter.
7838 (global_conflicts): Update call accordingly.
7840 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
7842 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
7843 the overflow check to make it easier to read.
7844 (__fixtfdi): Change the type of the ll member in union
7845 long_double to UDItype_x.
7847 2008-01-30 Jakub Jelinek <jakub@redhat.com>
7850 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
7851 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
7852 * tree-inline.c (fold_marked_statements): Call
7853 cgraph_update_edges_for_call_stmt if folding a call statement.
7854 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
7855 debug_generic_stmt calls, reset it back afterwards.
7858 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
7860 * c-typeck.c (build_external_ref): Don't pedwarn about
7861 static vars in current function's scope.
7863 2008-01-29 Joseph Myers <joseph@codesourcery.com>
7865 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
7867 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
7870 * ipa-struct-reorg.c: Fix spelling.
7871 * params.def: Ditto.
7873 2008-01-29 Richard Guenther <rguenther@suse.de>
7876 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
7878 * tree-inline.c (remap_type): Increment remapping_type_depth
7879 around remapping types.
7880 (copy_body_r): Only add referenced variables if they are referenced
7881 from code, not types.
7883 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
7894 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
7895 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
7897 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
7900 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
7901 pointer for tiny stack.
7903 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
7905 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
7907 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
7909 * config/vx-common.h: Fix typo in comment.
7911 2008-01-28 Ian Lance Taylor <iant@google.com>
7915 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7916 coalesce pointers if they have different DECL_NO_TBAA_P values.
7917 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
7918 between variables with different DECL_NO_TBAA_P values.
7920 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
7923 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
7924 are not legitimate small data references on SPE targets.
7926 2008-01-28 David Daney <ddaney@avtrex.com>
7928 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
7930 2008-01-28 David Daney <ddaney@avtrex.com>
7932 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
7934 2008-01-27 Joseph Myers <joseph@codesourcery.com>
7936 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
7937 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
7938 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
7939 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
7940 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
7941 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
7942 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
7943 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
7945 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
7947 * basic-block.h (condjump_equiv_p): Fix comment.
7949 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
7951 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
7952 print_generic_stmt_indented): Fix comment.
7954 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
7956 * configure.ac (__stack_chk_fail): Add detecion for availability
7957 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
7958 * configure: Regenerate.
7960 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
7963 * final.c (output_addr_const): Handle TRUNCATE.
7965 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
7968 * tree-ssa-loop-ivopts.c (comp_cost): New type.
7969 (zero_cost, infinite_cost): New constants.
7970 (struct cost_pair): Change type of cost to comp_cost.
7971 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
7972 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
7974 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
7975 split_address_cost, ptr_difference_cost, difference_cost,
7976 get_computation_cost_at, get_computation_cost,
7977 determine_use_iv_cost_generic, determine_use_iv_cost_address,
7978 determine_use_iv_cost_condition, determine_use_iv_costs,
7979 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
7980 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
7981 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
7982 Change type of cost to comp_cost.
7983 (determine_iv_cost): Increase cost of non-original ivs, instead
7984 of decreasing the cost of original ones.
7985 (get_address_cost): Indicate the complexity of the addressing mode
7987 (try_add_cand_for): Prefer using ivs not specific to some object.
7988 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
7990 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
7991 Janis Johnson <janis187@us.ibm.com>
7994 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
7995 (TARGET_INSTANTIATE_DECLS): Likewise.
7996 * target.h (expand_to_rtl_hook): New target hook.
7997 (instantiate_decls): Likewise.
7998 * function.c (instantiate_decl): Make non-static. Rename to...
7999 (instantiate_decl_rtl): ... this.
8000 (instantiate_expr): Use instantiate_decl_rtl.
8001 (instantiate_decls_1): Likewise.
8002 (instantiate_decls): Likewise.
8003 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
8004 * function.h (instantiate_decl_rtl): Add prototype.
8005 * cfgexpand.c (target.h): New include.
8006 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
8007 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
8008 (TARGET_INSTANTIATE_DECLS): Likewise.
8009 (TARGET_INITIALIZER): New target hooks added.
8010 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
8012 * config/rs6000/rs6000.c (tree-flow.h): New include.
8013 (machine_function): Add sdmode_stack_slot field.
8014 (rs6000_alloc_sdmode_stack_slot): New function.
8015 (rs6000_instantiate_decls): Likewise.
8016 (rs6000_secondary_memory_needed_rtx): Likewise.
8017 (rs6000_check_sdmode): Likewise.
8018 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
8019 (TARGET_INSTANTIATE_DECLS): Likewise.
8020 (rs6000_hard_regno_mode_ok): Allow SDmode.
8021 (num_insns_constant): Likewise. Handle _Decimal32 constants.
8022 (rs6000_emit_move): Handle SDmode.
8023 (function_arg_advance): Likewise.
8024 (function_arg): Likewise.
8025 (rs6000_gimplify_va_arg): Likewise. Add special handling of
8026 SDmode var args for 32-bit compiles.
8027 (rs6000_secondary_reload_class): Handle SDmode.
8028 (rs6000_output_function_epilogue): Likewise.
8029 (rs6000_function_value): Simplify if statement.
8030 (rs6000_libcall_value): Likewise.
8031 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
8032 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
8033 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
8034 (movsd_hardfloat): New define_insn.
8035 (movsd_softfloat): Likewise.
8036 (movsd_store): Likewise.
8037 (movsd_load): Likewise.
8038 (extendsddd2): Likewise.
8039 (extendsdtd2): Likewise.
8040 (truncddsd2): Likewise.
8041 (movdd_hardfloat64): Fixup comment.
8042 (UNSPEC_MOVSD_LOAD): New constant.
8043 (UNSPEC_MOVSD_STORE): Likewise.
8045 2008-01-26 Jakub Jelinek <jakub@redhat.com>
8048 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
8050 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
8051 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
8052 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
8055 2008-01-26 David Edelsohn <edelsohn@gnu.org>
8058 * config.gcc: Separate AIX 5.3 from AIX 6.1.
8059 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8060 __LONGDOUBLE128 too.
8061 * config/rs6000/aix61.h: New file.
8063 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
8065 PR rtl-optimization/34959
8066 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
8067 popcount and parity rtxes the same mode as their operand.
8068 Truncate or extend the result to the return value's mode
8071 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
8074 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
8075 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
8076 to GOT_VERSION_REGNUM.
8077 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
8078 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
8079 * config/mips/mips.c (mips_emit_call_insn): New function.
8080 (mips_call_tls_get_addr): Call mips_expand_call directly.
8081 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
8083 (mips16_build_call_stub): Likewise. Return the call insn or null.
8084 (mips_expand_call): Update the call to mips16_build_call_stub
8085 accordingly and a remove redundant condition. Assert that MIPS16
8086 stubs do not use lazy binding. Use mips_emit_call_insn and return
8088 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
8090 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
8091 (mips_avoid_hazard): Remove hazard_set handling.
8092 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
8093 (UNSPEC_RESTORE_GP): ...this.
8094 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
8095 (FAKE_CALL_REGNO): Rename to...
8096 (GOT_VERSION_REGNUM): ...this.
8097 (type): Add "ghost" value. Add an associated insn reservation.
8098 (hazard_set): Remove.
8099 (exception_receiver): Rename to...
8100 (restore_gp): ...this and update the unspec identifier accordingly.
8101 (exception_receiver, nonlocal_got_receiver): New expanders.
8102 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
8103 FAKE_CALL_REGNO. Remove hazard_set attribute.
8104 (set_got_version, update_got_version): New patterns.
8106 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
8109 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
8111 2008-01-25 Joseph Myers <joseph@codesourcery.com>
8114 * doc/install.texi2html: Generate gcc-vers.texi.
8116 2008-01-25 DJ Delorie <dj@redhat.com>
8118 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8120 2008-01-25 Joseph Myers <joseph@codesourcery.com>
8122 * config/c4x: Remove directory.
8123 * config.gcc (crx-*, mt-*): Mark obsolete.
8124 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
8125 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
8126 sh-*-rtemscoff*): Remove cases.
8127 * defaults.h (C4X_FLOAT_FORMAT): Remove.
8128 * real.c (encode_c4x_single, decode_c4x_single,
8129 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
8130 c4x_extended_format): Remove.
8131 * real.h (c4x_single_format, c4x_extended_format): Remove.
8132 * doc/extend.texi (interrupt, naked): Remove mention of attributes
8134 (Pragmas): Remove comment about c4x pragmas.
8135 * doc/install.texi (c4x): Remove target-specific instructions.
8136 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
8137 * doc/md.texi (Machine Constraints): Remove C4x documentation.
8138 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
8139 refer to C4x source files as examples.
8140 (C4X_FLOAT_FORMAT): Remove documentation.
8142 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
8144 * config/bfin/bfin.c (override_options): Reorder tests so that
8145 flag_pic gets enabled for -msep-data.
8147 2008-01-25 Richard Guenther <rguenther@suse.de>
8150 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
8151 to its bitfield precision if required.
8153 2008-01-25 Jakub Jelinek <jakub@redhat.com>
8156 * tree-nested.c (walk_omp_for): New function.
8157 (convert_nonlocal_reference, convert_local_reference): Call
8158 walk_omp_for on OMP_FOR.
8159 (convert_call_expr): Call walk_body on OMP_FOR's
8160 OMP_FOR_PRE_INIT_BODY.
8162 2008-01-25 Richard Guenther <rguenther@suse.de>
8164 PR tree-optimization/34966
8165 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
8166 default defs and PHI_NODEs we have to insert after the
8169 2008-01-24 Nick Clifton <nickc@redhat.com>
8171 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
8172 Provide a default definition.
8173 (LIBGCC2_UNITS_PER_WORD): Likewise.
8175 * config/stormy16/stormy16.c: Include df.h for the prototype
8176 for df_regs_ever_live_p.
8177 (xstormy16_expand_builtin_va_start): Convert the stack offset
8178 into a component_ref and then use POINTER_PLUS_EXPR to add it
8179 to the incoming_virtual_args_rtx.
8180 (xstormy16_gimplify_va_arg_expr): Rename to
8181 xstormy16_gimplify_va_arg_expr.
8182 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
8183 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
8184 xstormy16_gimplify_va_arg_expr.
8185 Fix up some formatting issues.
8187 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
8188 Move to predicates.md.
8189 (xs_hi_general_operand): Likewise.
8190 (xs_hi_nonmemory_operand): Likewise.
8191 * config/stormy16/predicates.md:
8192 (xstormy16_carry_plus_operand): New predicate.
8193 (xs_hi_general_operand): New predicate.
8194 (xs_hi_nonmemory_operand): New predicate.
8195 * config/stormy16/stormy16-protos.h:
8196 (xstormy16_carry_plus_operand): Delete prototype.
8197 (xs_hi_general_operand): Likewise.
8198 (xs_hi_nonmemory_operand): Likewise.
8200 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
8201 modifiers as they are no longer needed and they can trigger
8202 reload spill failures.
8204 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
8205 with a match_operand in order to help reload.
8207 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
8208 constraint with 'e' for the 8th alternative as this version of
8209 the mov.w instruction only accepts the lower 8 registers.
8211 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
8214 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
8215 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
8218 2008-01-25 Jakub Jelinek <jakub@redhat.com>
8221 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
8223 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
8225 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
8227 (remove_structure): Update allocations list before removing structure.
8229 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
8231 * ipa-struct-reorg.c (is_safe_cond_expr,
8232 create_new_stmts_for_cond_expr): Use integer_zerop function,
8233 that recognize not only zero-pointer, but zero-integer too.
8235 2008-01-25 Ben Elliston <bje@au.ibm.com>
8238 * fixproto: Escape "." in sed expression that strips leading "./".
8240 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
8243 * gcc.c (SWITCH_OK): Removed.
8244 (SWITCH_LIVE): Changed to bit.
8245 (SWITCH_FALSE): Likewise.
8246 (SWITCH_IGNORE): Likewise.
8247 (switchstr): Change live_cond to unsigned int.
8248 (process_command): Replace SWITCH_OK with 0.
8249 (do_self_spec): Likewise.
8250 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
8251 (give_switch): Likewise.
8252 (used_arg): Likewise.
8253 (do_spec_1): Set the SWITCH_IGNORE bit.
8254 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
8255 bits. Set the SWITCH_LIVE bit.
8257 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
8259 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
8261 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
8263 PR tree-optimization/34472
8264 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
8265 parameter to a "bool *" and set *DATA to false if there is
8266 an unsafe access. Do not delete the structure here.
8267 (check_cond_exprs): Delete it here instead.
8268 (check_cond_exprs, exclude_cold_structs): Do not increase
8269 I when removing a structure.
8271 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
8274 * config/i386/i386.c (ix86_expand_vector_init): Consider only
8275 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
8277 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
8280 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
8281 a fixed vector for stack.
8283 2008-01-24 Ben Elliston <bje@au.ibm.com>
8286 * doc/gcc.texi (Software development): Add a direntry for g++.
8288 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
8290 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
8291 stale and straggling -fforce-addr comments above.
8293 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
8295 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
8296 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
8298 2008-01-23 Michael Matz <matz@suse.de>
8301 * dwarf2out.c (force_type_die): Use modified_type_die instead of
8304 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
8306 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
8309 2008-01-23 Anatoly Sokolov <aesok@post.ru>
8311 * config/avr/avr.c (avr_current_arch): New variable.
8312 (avr_arch_types): Add 'avr31' and 'avr51' entries.
8313 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
8314 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
8315 (avr_override_options): Init 'avr_current_arch'.
8316 (base_arch_s): Move from here...
8317 * config/avr/avr.h (base_arch_s): ... here. Add new members
8318 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
8319 'mega' to 'have_jmp_call'.
8320 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
8321 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
8323 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
8325 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8326 MULTILIB_MATCHES): (Ditto.).
8328 2008-01-23 Richard Guenther <rguenther@suse.de>
8331 * cgraphunit.c (cgraph_reset_node): Always mark the node
8332 not reachable if it is not queued already.
8334 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
8336 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
8337 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
8338 (cputype_selected): New static variable.
8339 (bfin_handle_option): Set it if -mcpu is used.
8340 (override_option): Select default set of workarounds if no cpu type
8341 selected on the command line.
8342 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
8344 From Michael Frysinger <michael.frysinger@analog.com>
8345 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
8346 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
8348 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
8349 for bf547, bf523, bf524, and bf526.
8350 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
8352 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8353 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
8354 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
8355 __ADSPBF547__ and __ADSPBF54x__ for bf547.
8356 * doc/invoke.texi (Blackfin Options): Document that
8357 -mcpu now accept bf547, bf523, bf524, and bf526.
8359 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
8361 PR rtl-optimization/34628
8362 * combine.c (try_combine): Stop and undo after the first combination
8363 if an autoincrement side-effect on the first insn has effectively
8366 2008-01-22 David Edelsohn <edelsohn@gnu.org>
8369 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
8370 Offset addresses are not valid for Altivec or paired float modes.
8372 2008-01-22 Jakub Jelinek <jakub@redhat.com>
8375 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
8376 if DECL_INITIAL (decl) is error_mark_node.
8379 * c-common.c (handle_vector_size_attribute): Only allow
8380 integral, scalar float and fixed point types. Handle OFFSET_TYPE
8381 the same way as pointer, array etc. types.
8382 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
8385 * tree.c (build_type_attribute_qual_variant): Call
8386 build_qualified_type if attributes are equal, but quals are not.
8388 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8391 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
8392 * flags.h (warn_strict_aliasing): Remove.
8393 (warn_strict_overflow): Remove.
8394 * opts.c (warn_strict_aliasing): Remove.
8395 (warn_strict_overflow): Remove.
8396 * c-opts.c (c_common_handle_option): -Wall only sets
8397 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
8398 (c_common_post_options): Give default values to -Wstrict-aliasing
8399 and -Wstrict-overflow if they are uninitialized.
8400 * common.opt (Wstrict-aliasing): Specify Var and Init.
8401 (Wstrict-overflow): Likewise.
8403 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
8405 PR rtl-optimization/26854
8406 PR rtl-optimization/34400
8407 PR rtl-optimization/34884
8408 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
8410 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
8411 (df_rd_bb_info.expanded_lr_out): Deleted
8412 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
8413 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
8414 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8415 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8416 Removed code to allocate, initialize or free expanded_lr_out.
8417 (df_rd_bb_local_compute_process_def): Restructured to make more
8419 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
8420 sets if the sets are being trimmed.
8422 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
8425 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
8426 (as_vers): Likewise.
8427 * configure: Regenerated.
8429 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8432 * tree-pass.h (pass_build_alias): New pass.
8433 * tree-ssa-alias.c (gate_build_alias): New.
8434 (pass_build_alias): New.
8435 * passes.c (init_optimization_passes): Add pass_build_alias after
8436 pass_create_structure_vars.
8438 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
8440 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
8441 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
8442 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
8443 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
8444 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
8445 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
8446 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
8447 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
8448 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
8449 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
8450 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
8451 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
8452 * config/s390/s390.md (FP_ALL): New mode iterator.
8453 (_d): New mode attribute.
8454 ("*signbit<mode>2>"): Changed mode of first operand.
8455 ("isinf<mode>2"): Changed mode of first operand.
8456 ("*TDC_insn"): Adaptation for DFP modes.
8458 2008-01-22 Ben Elliston <bje@au.ibm.com>
8460 * tree.c (check_qualified_type): Improve function description.
8462 2008-01-21 Jason Merrill <jason@redhat.com>
8465 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
8466 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
8469 2008-01-21 DJ Delorie <dj@redhat.com>
8471 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
8474 2008-01-21 Richard Guenther <rguenther@suse.de>
8477 * tree-cfg.c (verify_expr): Allow all invariant expressions
8478 instead of just constant class ones as reference argument.
8479 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
8480 like any other constant.
8481 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8483 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
8485 * regmove.c (fixup_match_1): Update call crossed frequencies.
8487 2008-01-21 Richard Guenther <rguenther@suse.de>
8490 * tree-inline.c (setup_one_parameter): Deal with mismatched
8491 types using a VIEW_CONVERT_EXPR.
8493 2008-01-21 Alon Dayan <alond@il.ibm.com>
8494 Olga Golovanevsky <olga@il.ibm.com>
8496 PR tree-optimization/34701
8497 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
8498 when the structure size is not a power of 2.
8500 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8502 * doc/install.texi: Add doc for --enable-checking=df.
8504 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
8506 PR rtl-optimization/34808
8507 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
8509 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
8511 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
8514 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
8516 PR rtl-optimization/26854
8517 PR rtl-optimization/34400
8518 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
8520 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
8521 (df_rd_bb_info.expanded_lr_out): New.
8522 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
8523 * loop_iv.c (iv_analysis_loop_init): Ditto.
8524 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8525 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8526 Added code to allocate, initialize or free expanded_lr_out.
8527 (df_rd_bb_local_compute_process_def): Restructured to make
8528 more understandable.
8529 (df_rd_confluence_n): Add code to do nothing with fake edges and
8530 code to no apply invalidate_by_call sets if the sets are being trimmed.
8531 (df_lr_local_finalize): Renamed to df_lr_finalize.
8532 (df_live_local_finalize): Renamed to df_live_finalize.
8534 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
8537 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
8538 deciding whether to use reciprocal instructions.
8540 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
8542 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
8543 dwarf2out_note_section_used if cold_text_section is NULL.
8545 2008-01-19 Jakub Jelinek <jakub@redhat.com>
8547 PR gcov-profile/34610
8548 * tree-cfg.c (make_edges): Mark both outgoing edges from
8549 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
8550 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
8551 from OMP_FOR and OMP_CONTINUE outgoing edges.
8553 * tree-profile.c (tree_profiling): Return early if
8554 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
8556 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
8557 from cfun to child_cfun.
8558 * function.h (struct function): Add after_tree_profile bit.
8560 2008-01-19 Anatoly Sokolov <aesok@post.ru>
8562 * config/avr/avr.S (_exit): Disable interrupt.
8564 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
8565 Steven Bosscher <stevenb.gcc@gmail.com>
8567 PR rtl-optimization/26854
8568 PR rtl-optimization/34400
8569 * df-problems.c (df_live_scratch): New scratch bitmap.
8570 (df_live_alloc): Allocate df_live_scratch when doing df_live.
8571 (df_live_reset): Clear the proper bitmaps.
8572 (df_live_bb_local_compute): Only process the artificial defs once
8573 since the order is not important.
8574 (df_live_init): Init the df_live sets only with the variables
8575 found live by df_lr.
8576 (df_live_transfer_function): Use the df_lr sets to prune the
8577 df_live sets as they are being computed.
8578 (df_live_free): Free df_live_scratch.
8580 2008-01-18 Ian Lance Taylor <iant@google.com>
8582 * common.opt: Add fmerge-debug-strings.
8583 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
8584 flag_merge_debug_strings rather than flag_merge_constants.
8585 * doc/invoke.texi (Option Summary): Mention
8586 -fmerge-debug-strings.
8587 (Debugging Options): Document -fmerge-debug-strings.
8589 2008-01-18 Ian Lance Taylor <iant@google.com>
8592 * tree.h (DECL_IS_OPERATOR_NEW): Define.
8593 (struct tree_function_decl): Add new field operator_new_flag.
8594 * tree-inline.c (expand_call_inline): When inlining a call to
8595 operator new, force the return value to go into a variable, and
8596 set DECL_NO_TBAA_P on that variable.
8597 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
8599 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
8602 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
8603 DWARF2_DEBUGGING_INFO.
8604 (dwarf2out_note_section_used): Ditto. Add prototype.
8605 (have_multiple_function_sections, text_section_used,
8606 cold_text_section_used, *cold_text_sections): Move declarations
8609 2008-01-17 Bob Wilson <bob.wilson@acm.org>
8611 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
8612 field and add signal_ra.
8613 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
8614 assignments to frame state pc. Move end of stack check after
8615 MD_FALLBACK_FRAME_STATE_FOR.
8616 (uw_update_context_1): Use frame state signal_regs if set, instead
8617 of checking signal_frame flag.
8618 (uw_update_context): Use frame state signal_ra if set.
8619 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
8620 * config/xtensa/linux-unwind.h: New file.
8622 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
8624 * modulo-sched.c (get_sched_window): Fix comment typo.
8626 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
8628 PR tree-optimization/34648
8629 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
8631 2008-01-17 Anatoly Sokolov <aesok@post.ru>
8633 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
8634 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
8636 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
8638 PR rtl-optimization/34400
8639 * df-core.c (df_worklist_dataflow_overeager,
8640 df_worklist_dataflow_doublequeue): New functions.
8641 (df_worklist_dataflow): Two different worklist solvers.
8642 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
8645 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8648 * doc/invoke.texi: Document the dependence on pthread for fopenmp
8649 and ftree-parallelize-loops.
8651 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
8653 PR rtl-optimization/34826
8654 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
8656 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
8658 * global.c (find_reg): Mark the eh regs as used if necessary.
8659 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
8660 * ra.h (struct allocno): no_eh_reg field added. Changed
8661 no_stack_reg type to bitfield.
8663 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
8665 * tree.c (substitute_in_expr): Add missing 'break'.
8667 2008-01-17 Richard Guenther <rguenther@suse.de>
8669 PR tree-optimization/34825
8670 * tree-ssa-math-opts.c (is_division_by): Do not recognize
8671 x / x as division to handle.
8673 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8675 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
8676 "-pthread" is specified.
8677 * pa-hpux11.h (LIB_SPEC): Likewise.
8679 2008-01-16 Janis Johnson <janis187@us.ibm.com>
8680 Peter Bergner <bergner@vnet.ibm.com>
8682 PR rtl-optimization/33796
8683 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
8685 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8687 PR libgfortran/34699
8688 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
8690 * pa-hpux10.h (LINK_SPEC): Likewise.
8691 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
8693 2008-01-16 Richard Guenther <rguenther@suse.de>
8696 * fold-const.c (fold_convert_const_int_from_int): Do not
8697 set overflow if that occured only because of a sign extension
8698 change when converting from/to a sizetype with the same
8699 precision and signedness.
8701 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
8704 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
8705 location address to the correct place. Update copyright year.
8707 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8709 * lambda-code.c (lambda_transform_legal_p): Handle the case of
8710 no dependences in the dependence_relations vector.
8712 2008-01-16 Jan Hubicka <jh@suse.cz>
8714 PR rtl-optimization/31396
8715 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
8716 * cfg.c (dump_reg_info): Print it.
8717 * regs.h (struct reg_info_t): add freq_calls_crossed.
8718 (REG_FREQ_CALLS_CROSSED): New macro.
8719 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
8720 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
8721 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
8722 regmove_optimize): Update call crossed frequencies.
8723 * local-alloc.c (struct qty): Add freq_calls_crossed.
8724 (alloc_qty): Copute freq_calls_crossed.
8725 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
8726 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
8727 * ra.h (struct allocno): Add freq_calls_crossed.
8729 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8731 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
8732 libgomp when compiling with ftree-parallelize-loops.
8733 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
8735 2008-01-16 Richard Guenther <rguenther@suse.de>
8737 PR tree-optimization/34769
8738 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
8739 * tree.c (int_cst_value): Instead make this function more
8740 permissive in what it accepts as valid input. Document this
8741 function always sign-extends the value.
8743 2008-01-16 Jakub Jelinek <jakub@redhat.com>
8744 Richard Guenther <rguenther@suse.de>
8747 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
8748 (gimple_fold_indirect_ref_rhs): ... this.
8749 (gimple_fold_indirect_ref): New function with foldings
8750 that preserve lvalueness.
8751 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
8752 * tree-flow.h (gimple_fold_indirect_ref): Declare.
8753 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
8754 to fold an INDIRECT_REF, fall back to the old use of
8755 fold_indirect_ref_1.
8757 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8759 * tree-data-ref.c (subscript_dependence_tester_1): Call
8760 free_conflict_function.
8761 (compute_self_dependence): Same.
8763 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
8766 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
8767 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
8769 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
8770 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
8771 for DWARF2_UNWIND_INFO targets.
8773 2008-01-16 Richard Guenther <rguenther@suse.de>
8776 * c-typeck.c (common_pointer_type): Do not merge inconsistent
8777 type qualifiers for function types.
8779 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
8781 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
8782 loop_iterator li from previous commit.
8784 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
8786 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
8788 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
8790 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
8791 (parallelize_loops): Don't parallelize irreducible components.
8793 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8796 * c-opts (c_common_post_options): Do not enable CPP
8797 flag_pedantic_errors by default.
8799 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
8801 PR rtl-optimization/31944
8802 * cse.c (remove_pseudo_from_table): New function.
8803 (merge_equiv_classes): Use above function to remove pseudo-registers.
8804 (invalidate): Likewise.
8806 2008-01-13 Richard Guenther <rguenther@suse.de>
8809 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
8810 instead of TYPE_MODE to deal with calls from expand_one_error_var.
8812 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
8814 * gcse.c (cprop_jump): Call validate_unshare_change instead of
8815 validate_change to unshare the source of the PC set.
8817 2008-01-12 Jan Hubicka <jh@suse.cz>
8820 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
8821 references above array bounds. This might trigger bounds checks for
8824 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
8826 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
8827 new_replaceable_dependencies.
8829 2008-01-12 Doug Kwan <dougkwan@google.com>
8831 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
8832 instead of OPT_Wreturn_type in warning due to ignored return type
8834 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
8835 options included in -Wextra.
8836 * c.opt: New option -Wignored_qualifiers.
8837 * doc/invoke.texi (Warning Options, -Wextra): Add new option
8838 -Wignore_qualifiers.
8839 (-Wignored-qualifiers): Document.
8840 (-Wreturn-type): Remove description of functionality now handled
8841 by -Wignored-qualifiers.
8843 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8846 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
8847 NOP_EXPR if it is between integral types with the same precision.
8849 2008-01-12 Jan Hubicka <jh@suse.cz>
8852 * invoke.texi (max-inline-recursive-depth): Fix default value.
8854 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
8856 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
8859 2008-01-11 Bob Wilson <bob.wilson@acm.org>
8861 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
8863 2008-01-11 James E. Wilson <wilson@specifix.com>
8866 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
8868 2008-01-11 Anatoly Sokolov <aesok@post.ru>
8870 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
8871 save/restore frame pointer register and don't use 'call-prologues'
8872 optimization in function with "OS_task" attribute.
8874 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
8877 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
8878 when copying to memory.
8880 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
8882 PR rtl-optimization/30905
8883 * cfgcleanup.c: Include dce.h
8884 (crossjumps_occured): New global variable.
8885 (try_crossjump_bb): Exit loop after finding a fallthru edge.
8886 If something changed, set crossjumps_occured to true.
8887 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
8888 Don't add/remove fake edges to exit here...
8889 (cleanup_cfg): ...but do it here, when crossjumping.
8890 Run a fast DCE when successful crossjumps occured in the latest
8891 iteration of try_optimize_cfg.
8893 2008-01-11 Richard Guenther <rguenther@suse.de>
8895 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
8896 (struct vn_unary_op_s): Likewise.
8897 (vn_reference_insert): Free old reference on hash collision.
8899 2008-01-10 Raksit Ashok <raksit@google.com>
8901 PR rtl-optimization/27971
8902 * combine.c (find_split_point): Split PLUS expressions which are
8903 inside a MEM rtx, and whose first operand is complex.
8905 2008-01-10 DJ Delorie <dj@redhat.com>
8907 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
8908 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
8909 (m32c_hard_regno_ok): Call the underlying function.
8911 2008-01-10 Richard Guenther <rguenther@suse.de>
8914 * tree-cfg.c (tree_merge_blocks): Do not go through the
8915 full-blown folding and stmt updating path if we just deal
8916 with virtual operands.
8917 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
8918 test for abnormal SSA_NAMEs.
8920 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
8923 * reload.c (push_reload): Add assertions. All constants from
8924 reg_equiv_constant should have been used for replacing the respective
8926 (find_reloads_address): Invoke find_reloads_address_part for
8927 constant taken from the reg_equiv_constant array.
8929 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
8931 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
8932 field (valnum) the first in the struct. Replace bools with
8935 2008-01-10 Richard Guenther <rguenther@suse.de>
8937 PR tree-optimization/34651
8938 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
8939 types and ordering for masking and converting.
8941 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
8943 PR tree-optimization/34017
8944 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
8945 also for PHI_NODE expressions.
8947 2008-01-09 Jan Hubicka <jh@suse.cz>
8949 PR tree-optimization/34708
8950 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
8951 based on number of case labels.
8952 (init_inline_once): Remove switch_cost.
8953 * tree-inline.h (eni_weights_d): Remove switch_cost.
8955 2008-01-09 Richard Guenther <rguenther@suse.de>
8956 Andrew Pinski <andrew_pinski@playstation.sony.com>
8959 * gimplify.c (gimplify_cond_expr): Do not create an addressable
8960 temporary if an rvalue is ok or an lvalue is not required.
8962 2008-01-09 Richard Guenther <rguenther@suse.de>
8965 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
8968 2008-01-09 Richard Guenther <rguenther@suse.de>
8971 * tree.c (host_integerp): Check for sizetype only if the
8972 type is an integer type.
8974 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
8977 * opts.c (decode_options): Disable inlining of functions called
8978 once if not in unit-at-a-time mode.
8980 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
8982 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
8984 2008-01-08 Richard Guenther <rguenther@suse.de>
8987 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
8988 out early if the result will be unused.
8990 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
8995 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
8996 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
8999 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
9001 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
9002 for vectorization tuned.
9004 2008-01-08 Richard Guenther <rguenther@suse.de>
9006 PR tree-optimization/34683
9007 * tree-ssa-operands.c (operand_build_cmp): Export.
9008 * tree-ssa-operands.h (operand_build_cmp): Declare.
9009 * tree-vn.c (vuses_compare): Remove.
9010 (sort_vuses): Use operand_build_cmp.
9011 (sort_vuses_heap): Likewise.
9012 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
9013 to re-use old VEC if available. Do not sort already sorted VUSEs.
9014 (vdefs_to_vec): Do not sort already sorted VDEFs.
9016 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9019 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
9021 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
9024 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
9025 limitations of reciprocal sequences on x86 targets.
9027 2008-01-08 Richard Guenther <rguenther@suse.de>
9029 PR tree-optimization/34683
9030 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
9032 2008-01-07 Jakub Jelinek <jakub@redhat.com>
9035 * config/darwin.c (darwin_mergeable_string_section): Don't use
9036 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
9038 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
9041 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
9042 negxf2. Macroize expander using X87MODEF mode iterator. Change
9043 predicates of op0 and op1 to register_operand.
9044 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
9045 expander using X87MODEF mode iterator. Change predicates of
9046 op0 and op1 to register_operand.
9047 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
9048 corresponding patterns and macroize using MODEF macro. Change
9049 predicates of op0 and op1 to register_operand and remove
9050 "m" constraint. Disparage "r" alternative with "!".
9051 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
9052 macroize using X87MODEF macro. Change predicates of op0 and op1
9053 to register_operand and remove "m" constraint. Disparage "r"
9054 alternative with "!".
9055 (absneg splitter with memory operands): Remove.
9056 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
9057 patterns and macroize using X87MODEF mode iterator.
9058 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
9059 Change predicate of op1 to register_operand.
9060 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
9061 for memory operands.
9063 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
9065 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
9067 2008-01-07 Richard Guenther <rguenther@suse.de>
9069 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
9072 2008-01-07 Richard Guenther <rguenther@suse.de>
9074 PR tree-optimization/34683
9075 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
9076 VOPs of the needed size to save memory. Use VEC_quick_push
9077 to save compile-time.
9078 (vdefs_to_vec): Likewise.
9080 2008-01-07 Sa Liu <saliu@de.ibm.com>
9082 * config/spu/spu.md (divdf3): Genetate inline code for double
9083 division. The implementation doesn't handle INF or NAN, therefore it
9084 only applies when -ffinite-math-only is given.
9086 2008-01-06 Paolo Carlini <pcarlini@suse.de>
9089 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
9090 * doc/cpp.texi ([Common Predefined Macros]): Document.
9092 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
9094 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
9095 order to use commutative addition instead of subtraction.
9097 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
9098 Mircea Namolaru <namolaru@il.ibm.com>
9099 Vladimir Yanovsky <yanov@il.ibm.com>
9100 Revital Eres <eres@il.ibm.com>
9102 PR tree-optimization/34263
9103 * tree-outof-ssa.c (process_single_block_loop_latch,
9104 contains_tree_r): New functions.
9105 (analyze_edges_for_bb): Call process_single_block_loop_latch
9106 function to empty single-basic-block latch block if possible.
9108 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
9110 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9112 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
9114 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
9116 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
9118 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
9120 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
9122 2008-01-05 Jakub Jelinek <jakub@redhat.com>
9124 PR tree-optimization/34618
9125 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
9128 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
9131 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
9132 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
9133 Update copyright year.
9135 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
9136 Update copyright year.
9137 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
9140 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
9142 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
9143 edge does not point to current bb before changing need_assert.
9145 2008-01-04 Richard Guenther <rguenther@suse.de>
9148 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
9149 for verifying purposes if they are is_gimple_min_invariant.
9151 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
9153 PR tree-optimization/34448
9154 PR tree-optimization/34465
9155 * gimplify.c (gimplify_init_constructor): Add new parameter
9156 notify_temp_creation. Use it.
9157 (gimplify_modify_expr_rhs): Take volatiles into account when
9158 optimizing constructors.
9159 Do not optimize constructors if gimplify_init_constructor will dump to
9161 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
9162 * gcc.c-torture/compile/pr34448.c: New.
9164 2008-01-04 Jakub Jelinek <jakub@redhat.com>
9166 PR gcov-profile/34609
9167 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
9168 return_slot if result is TREE_ADDRESSABLE.
9170 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
9172 * config/mips/mips.md (sqrt_condition): Tweak comment.
9173 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
9175 2008-01-03 Tom Tromey <tromey@redhat.com>
9178 * c-common.c (c_type_hash): Handle VLAs.
9180 2008-01-03 Jan Hubicka <jh@suse.cz>
9182 PR tree-optimization/31081
9183 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
9184 0 when inlining and not inlining to first basic block.
9185 (remap_decl): When var is initialized to 0, don't set default_def.
9186 (expand_call_inline): Set entry_bb.
9187 * tree-inline.h (copy_body_data): Add entry_bb.
9189 2008-01-03 Jakub Jelinek <jakub@redhat.com>
9192 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
9195 PR tree-optimization/29484
9196 * tree-inline.c (inline_forbidden_p_2): New function.
9197 (inline_forbidden_p): Disallow inlining if some static var
9198 has an address of a local LABEL_DECL in its initializer.
9199 * doc/extend.texi (Labels as Values): Document &&foo behaviour
9202 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
9204 PR tree-optimization/34635
9205 * tree-data-ref.c (add_other_self_distances): Make sure that the
9206 evolution step is constant.
9208 2008-01-03 Jakub Jelinek <jakub@redhat.com>
9211 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
9213 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
9215 * tree-sra.c (scalarize_init): Insert the generate_element_init
9216 statements after the generate_element_zero statements.
9218 2008-01-02 Richard Guenther <rguenther@suse.de>
9222 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
9223 for very large number of operands instead of ICEing.
9225 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
9228 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
9229 while stack probing.
9231 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
9233 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
9236 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
9239 * tree-mudflap.c (mx_register_decls): Guard warning by
9240 !DECL_ARTIFICIAL check.
9242 2008-01-01 Jakub Jelinek <jakub@redhat.com>
9244 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
9245 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
9246 sse5_perm<mode>): Fix constraints.