1 2008-05-13 Tom Tromey <tromey@redhat.com>
4 * doc/cpp.texi (Top): Update menu.
5 (Alternatives to Wrapper #ifndef): New node.
6 (Other Directives): Document deprecation.
7 (Obsolete Features): Remove menu.
8 (Assertions): Merge node into Obsolete Features.
9 (Obsolete once-only headers): Move earlier; rename to Alternatives
11 * doc/cppopts.texi: Update.
12 * c.opt (Wdeprecated): Enable for C and ObjC.
13 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
14 (C++ Dialect Options): Move -Wno-deprecated from here to...
15 (Warning Options): ... here.
17 2008-05-13 Richard Guenther <rguenther@suse.de>
20 * fold-const.c (fold_sign_changed_comparison): Do not allow
21 changes in pointer-ness.
23 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
26 * config/sh/sh.c (sh_expand_prologue): Don't clear
27 RTX_FRAME_RELATED_P for push insns.
29 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
31 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
33 2008-05-12 Anatoly Sokolov <aesok@post.ru>
35 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
36 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
37 Use 'machine->is_leaf' instead of 'leaf_func_p'.
39 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
41 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
42 (*vec_concatv4sf_sse): This.
43 (*sse2_concatv2si): Renamed to ...
44 (*vec_concatv2si_sse2): This.
45 (*sse1_concatv2si): Renamed to ...
46 (*vec_concatv2si_sse): This.
47 (*vec_concatv2di_rex): Renamed to ...
48 (*vec_concatv2di_rex64): This.
49 (*vec_concatv2si_sse4_1): New.
50 (*vec_concatv2di_rex64_sse4_1): Likewise.
52 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
54 PR rtl-optimization/36111
55 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
56 that was created for swappable operands.
58 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
61 * Makefile.in: Substitute GNATMAKE and GNATBIND.
62 * configure.ac: Add call to ACX_PROG_GNAT.
64 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
66 * optc-gen.awk: Fix comment typo.
68 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
70 * pretty-print.c (pp_integer_with_precision): Use
71 HOST_LONG_LONG_FORMAT.
73 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
75 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
77 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
79 * config/i386/i386.c (bdesc_ptest): Removed.
80 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
81 (bdesc_args): Add __builtin_ia32_ptestz128,
82 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
83 (ix86_init_mmx_sse_builtins): Updated.
84 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
85 (ix86_expand_builtin): Updated.
87 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
89 * tree-cfg.c (valid_fixed_convert_types_p): New function.
90 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
92 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
94 * value-prof.c (interesting_stringop_to_profile): Do not
95 return early for BUILT_IN_MEMPCPY.
97 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
99 * calls.c (expand_call): Don't use callgraph to increase
100 preferred_stack_boundary.
102 * cgraph.h (cgraph_rtl_info): Use unsigned on
103 preferred_incoming_stack_boundary.
105 * final.c (rest_of_clean_state): Use unsigned on
106 preferred_stack_boundary.
108 2008-05-09 Tom Tromey <tromey@redhat.com>
110 PR preprocessor/22231:
111 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
114 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
116 PR tree-optimization/36129
117 * tree-ssa-ccp.c: Include value-prof.h.
118 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
119 built-in function was folded to a constant.
120 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
122 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
123 Sebastian Pop <sebastian.pop@amd.com>
125 * tree-scalar-evolution.c: Document instantiate_scev.
126 (instantiate_parameters_1): Renamed instantiate_scev_1.
127 Don't use the same loop for instantiation_loop and evolution_loop.
128 (instantiate_scev): New.
129 (instantiate_parameters): Moved...
130 (resolve_mixers): Update call to instantiate_scev_1 to pass the
131 same loop twice. Maintains the semantics for this function.
132 * tree-scalar-evolution.h (instantiate_scev): Declare.
133 (instantiate_parameters): ...here. Now static inline.
134 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
135 instead of resolve_mixers.
137 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
139 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
141 2008-05-09 Tomas Bily <tbily@suse.cz>
143 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
144 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
145 * tree-ssa-structalias.c (get_constraint_for): Likewise.
146 * c-common.c (c_common_truthvalue_conversion): Likewise.
147 * tree-object-size.c (compute_object_offset): Likewise.
148 * tree-inline.c (estimate_num_insns_1): Likewise.
149 * varasm.c (const_hash_1, compare_constant, copy_constant)
150 (compute_reloc_for_constant, output_addressed_constants)
151 (initializer_constant_valid_p): Likewise.
152 * c-omp.c (check_omp_for_incr_expr): Likewise.
153 * gimplify.c (gimplify_expr): Likewise.
154 * c-typeck.c (c_finish_return): Likewise.
155 * tree-vectorizer.c (supportable_widening_operation)
156 (supportable_narrowing_operation): Likewise.
157 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
158 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
159 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
160 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
161 (descr_info_loc): Likewise.
162 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
163 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
164 (fold_unary): Likewise.
165 * builtins.c (get_pointer_alignment): Likewise.
166 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
167 (instantiate_parameters_1): Likewise.
168 * tree.c (expr_align, stabilize_reference): Likewise.
169 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
170 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
171 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
172 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
173 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
174 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
176 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
177 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
178 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
179 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
180 (forward_propagate_comparison)
181 (tree_ssa_forward_propagate_single_use_vars): Likewise.
182 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
183 * emit-rtl.c (component_ref_for_mem_expr)
184 (set_mem_attributes_minus_bitpos): Likewise.
185 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
186 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
188 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
189 (build_function_call, pointer_diff, build_compound_expr)
190 (c_finish_return): Likewise.
191 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
192 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
194 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
195 * expr.c (is_aligning_offset): Likewise.
196 * tree-ssa-alias.c (is_escape_site): Likewise.
197 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
198 (check_all_va_list_escapes): Likewise.
199 * tree-ssa-loop-ivopts.c (determine_base_object)
200 (determine_common_wider_type): Likewise.
201 * dojump.c (do_jump): Likewise.
202 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
203 * tree-gimple.c (is_gimple_cast): Likewise.
204 * fold-const.c (decode_field_reference, )
205 (fold_sign_changed_comparison, fold_unary, fold_comparison)
206 (fold_binary): Likewise.
207 * tree-ssa-alias-warnings.c (find_alias_site_helper)
208 (already_warned_in_frontend_p): Likewise.
209 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
210 * tree.c (really_constant_p, get_unwidened): Likewise.
211 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
212 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
213 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
215 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
217 (CONVERT_EXPR_P): Define.
218 (CASE_CONVERT): Define.
220 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
223 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
224 (delete_unmarked_insns): When deleting a call, call
225 delete_unreachable_blocks.
226 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
227 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
229 2008-05-08 Richard Guenther <rguenther@suse.de>
231 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
232 (-ftree-salias): Likewise.
233 (salias-max-implicit-fields): Remove param documentation.
234 (salias-max-array-elements): Likewise.
235 * tree-pass.h (pass_create_structure_vars): Remove.
236 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
237 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
238 * tree-ssa-alias.c (create_structure_vars): Remove.
239 (gate_structure_vars): Likewise.
240 (pass_create_structure_vars): Likewise.
241 (gate_build_alias): Likewise.
242 (pass_build_alias): Adjust to run always and dump the function.
243 * common.opt (ftree-salias): Hide.
244 * passes.c (init_optimization_passes): Remove
245 pass_create_structure_vars, adjust comment.
246 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
247 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
248 * opts.c (decode_options): Do not set flag_tree_salias.
249 (common_handle_option): Add OPT_ftree_salias to the backward
250 compatibility section.
252 2008-05-08 Richard Guenther <rguenther@suse.de>
254 * tree-flow-inline.h (var_can_have_subvars): Move ...
255 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
256 * tree-flow.h (var_can_have_subvars): Remove.
257 (push_fields_onto_fieldstack): Remove.
258 (sort_fieldstack): Likewise.
259 (struct fieldoff): Move ...
260 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
261 alias_set and base_for_components fields.
262 (sort_fieldstack): Make static.
263 (push_fields_onto_fieldstack): Likewise. Remove code that
264 handles anything but RECORD_TYPEs. Remove alias_set and
265 base_for_components handling.
266 (create_variable_info_for): Adjust.
268 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
270 * common.opt (Wframe-larger-than=): Shorten the help message
272 * doc/invoke.texi (Wframe-larger-than=): Add more description.
274 2008-05-08 Rafael Espindola <espindola@google.com>
276 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
278 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
279 trap and that both operands are gimple values.
280 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
281 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
284 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
286 * read-rtl.c (join_c_conditions): Return the first string if the
287 two strings are equal.
289 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
291 * gensupport.h (pred_data): Add a "num_codes" field.
292 (add_predicate_code): Declare.
293 * gensupport.c (add_predicate_code): New function.
294 (std_pred_table): Add an "allows_const_p" field.
295 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
296 Remove the (incomplete) list of such codes from the codes field.
297 (init_predicate_table): Use add_predicate_code. Add all
298 RTX_CONST_OBJs if allows_const_p is true.
299 * genrecog.c (process_define_predicate): Use add_predicate_code.
301 2008-05-08 David Daney <ddaney@avtrex.com>
302 Richard Sandiford <rsandifo@nildram.co.uk>
304 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
305 special case of constant zero operands.
306 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
307 old and new values. Special case constant zero values.
308 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
310 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
311 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
313 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
316 * simplify-rtx.c (simplify_plus_minus): Create CONST of
317 similar RTX_CONST_OBJ before CONST_INT.
319 2008-05-08 Steve Ellcey <sje@cup.hp.com>
321 * stmt.c (expand_stack_restore): Change sa mode if needed.
323 2008-05-08 Richard Guenther <rguenther@suse.de>
325 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
327 (ix86_sol10_return_in_memory): Likewise.
328 (ix86_i386elf_return_in_memory): Likewise.
329 (ix86_i386interix_return_in_memory): Likewise.
330 * config/i386/i386.c (ix86_return_in_memory): Likewise.
331 (ix86_sol10_return_in_memory): Likewise.
332 (ix86_i386elf_return_in_memory): Likewise.
333 (ix86_i386interix_return_in_memory): Likewise.
335 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
338 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
340 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
341 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
344 2008-05-08 Richard Guenther <rguenther@suse.de>
346 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
347 * tree-data-ref.h (struct dr_alias): Remove subvars field.
348 (DR_SUBVARS): Remove.
349 * tree-dfa.c (dump_subvars_for): Remove.
350 (debug_subvars_for): Likewise.
351 (dump_variable): Do not dump subvars.
352 (remove_referenced_var): Do not remove subvars.
353 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
354 (lookup_subvars_for_var): Remove.
355 (get_subvars_for_var): Likewise.
356 (get_subvars_at): Likewise.
357 (get_first_overlapping_subvar): Likewise.
358 (overlap_subvar): Likewise.
359 * tree-flow.h (subvar_t): Remove.
360 (struct var_ann_d): Remove subvars field.
361 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
362 argument. Remove special handling of SFTs.
363 (compute_tag_properties): Likewise.
364 (set_initial_properties): Likewise.
365 (compute_call_clobbered): Likewise.
366 (count_mem_refs): Likewise.
367 (compute_memory_partitions): Likewise.
368 (compute_flow_insensitive_aliasing): Likewise.
369 (setup_pointers_and_addressables): Likewise.
370 (new_type_alias): Likewise.
371 (struct used_part): Remove.
372 (used_portions): Likewise.
373 (struct used_part_map): Likewise.
374 (used_part_map_eq): Likewise.
375 (used_part_map_hash): Likewise.
376 (free_used_part_map): Likewise.
377 (up_lookup): Likewise.
378 (up_insert): Likewise.
379 (get_or_create_used_part_for): Likewise.
380 (create_sft): Likewise.
381 (create_overlap_variables_for): Likewise.
382 (find_used_portions): Likewise.
383 (create_structure_vars): Likewise.
384 * tree.def (STRUCT_FIELD_TAG): Remove.
385 * tree.h (MTAG_P): Adjust.
386 (struct tree_memory_tag): Remove base_for_components and
387 unpartitionable flags.
388 (struct tree_struct_field_tag): Remove.
389 (SFT_PARENT_VAR): Likewise.
390 (SFT_OFFSET): Likewise.
391 (SFT_SIZE): Likewise.
392 (SFT_NONADDRESSABLE_P): Likewise.
393 (SFT_ALIAS_SET): Likewise.
394 (SFT_UNPARTITIONABLE_P): Likewise.
395 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
396 (union tree_node): Remove sft field.
397 * alias.c (get_alias_set): Remove special handling of SFTs.
398 * print-tree.c (print_node): Remove handling of SFTs.
399 * tree-dump.c (dequeue_and_dump): Likewise.
400 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
401 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
402 * tree-predcom.c (set_alias_info): Do not set subvars.
403 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
404 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
405 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
406 (add_vars_for_offset): Remove.
407 (add_virtual_operand): Remove special handling of SFTs.
408 (add_call_clobber_ops): Likewise.
409 (add_call_read_ops): Likewise.
410 (get_asm_expr_operands): Likewise.
411 (get_modify_stmt_operands): Likewise.
412 (get_expr_operands): Likewise.
413 (add_to_addressable_set): Likewise.
414 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
415 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
416 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
417 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
418 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
419 (tree_node_structure): Likewise.
420 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
422 (find_what_p_points_to): Likewise.
424 2008-05-08 Sa Liu <saliu@de.ibm.com>
426 * config/spu/spu.md: Fixed subti3 pattern.
428 2008-05-08 Richard Guenther <rguenther@suse.de>
431 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
432 sure to create a representative for trailing arrays for PTA.
434 2008-05-08 Richard Guenther <rguenther@suse.de>
437 * fold-const.c (operand_equal_p): Two objects which types
438 differ in pointerness are not equal.
440 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
442 * calls.c (compute_argument_block_size): Add argument tree fndecl.
443 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
444 (emit_library_call_value_1): Add new variable fndecl initialized by
445 NULL_TREE. It should be the decl type of orgfun, but this information
446 seems not to be available here, so it uses the default calling abi.
447 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
448 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
449 by TARGET_RETURN_IN_MEMORY.
450 * config/i386/i386-interix.h: Likewise.
451 * config/i386/i386.h: Likewise.
452 * config/i386/i386elf.h: Likewise.
453 * config/i386/ptx4-i.h: Likewise.
454 * config/i386/sol2-10.h: Likewise.
455 * config/i386/sysv4.h: Likewise.
456 * config/i386/vx-common.h: Likewise.
457 * config/cris/cris.h: Removed #if 0 clause.
458 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
459 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
461 (ix86_sol10_return_in_memory): Likewise.
462 (ix86_i386elf_return_in_memory): New.
463 (ix86_i386interix_return_in_memory): New.
464 * config/mt/mt-protos.h (mt_return_in_memory): New.
465 * config/mt/mt.c: Likewise.
466 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
467 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
468 * config/bfin/bfin.h: Likewise.
469 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
471 * config/bfin/bfin.c: Likewise.
472 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
473 * config/alpha/unicosmk.h: Likewise.
474 * config/i386/cygming.h: Likewise.
475 * config/iq2000/iq2000.h: Likewise.
476 * config/mips/mips.h: Likewise.
477 * config/mn10300/mn10300.h: Likewise.
478 * config/rs6000/rs6000.h: Likewise.
479 * config/score/score.h: Likewise.
480 * config/spu/spu.h: Likewise.
481 * config/v850/v850.h: Likewise.
482 * defaults.h: Likewise.
483 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
484 * expr.c (emit_block_move): Adjust use of
485 OUTGOING_REG_PARM_STACK_SPACE.
486 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
487 OUTGOING_REG_PARM_STACK_SPACE.
488 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
490 2008-05-08 Jakub Jelinek <jakub@redhat.com>
492 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
493 on OMP_RETURN for OMP_FOR.
496 * dwarf2out.c (dw_expand_expr, common_check): Removed.
497 (fortran_common): New function.
498 (gen_variable_die): Call fortran_common instead of common_check,
499 adjust for it returning tree instead of rtx. Formatting.
501 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
505 * see.c (see_copy_insn): Copy new pure const attributes for new call.
506 * c-decl.c (merge_decls): Ditto.
507 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
508 to RTL_CONST_OR_PURE_CALL_P.
509 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
510 Initialized DECL_LOOPING_CONST_PURE.
511 (process_call_operands): Set tree_side_effects properly.
512 * tree.h (TREE_READONLY_DECL_P): Removed.
513 (DECL_IS_PURE): Renamed to DECL_PURE_P.
514 (DECL_LOOPING_OR_CONST_P): New macro.
515 (struct tree_function_decl): Added looping_const_or_pure_p.
517 (ECF_LOOPING_OR_CONST_P): New macro.
518 * rtlanal.c (pure_const_p): Removed.
519 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
520 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
522 * ipa-pure-const.c (pure_const_state_e): Added looping field.
523 (check_decl, check_tree, check_call, scan_function): Initialize
525 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
526 (static_execute): Set looping true for recursive functions.
527 Undo setting state to IPA_NEITHER for recursive functions.
529 * ifcvt.c (noce_can_store_speculate_p): Changed
530 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
531 RTL_CONST_OR_PURE_CALL_P.
532 * dse.c (scan_insn): Ditto.
533 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
534 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
535 RTL_CONST_OR_PURE_CALL_P.
536 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
537 pure_call_p to RTL_CONST_CALL_P.
538 * gimplify.c (gimplify_call_expr): Clear side effects for
539 non-looping pure and constant calls.
540 * calls.c (emit_call_1): Set rtl flags from ecf flags.
541 (flags_from_decl_or_type): Set ecf flags from decl flags.
542 (initialize_argument_information): Turn off
543 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
544 Change const to pure if callee_copies is true rather than just
546 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
547 way of marking pure calls.
548 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
549 Remove hack that was supposed to fix pr7335 and remove old
550 way of marking pure calls.
551 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
552 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
553 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
554 RTL_CONST_OR_PURE_CALL_P.
555 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
556 * loop-invariant.c (find_exits, find_invariant_bb): Changed
557 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
558 * sched-deps.c (schedule_analyze): Ditto.
559 * rtl.h (struct rtx_def): Use call field, unchanging field, and
560 return_val field of calls to represent pure and const function info.
561 (CONST_OR_PURE_CALL_P): Deleted macro.
562 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
563 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
564 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
566 * tree-optimize.c (execute_fixup_cfg): Added test for
567 ECF_LOOPING_CONST_OR_PURE.
568 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
570 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
571 effects for looping pure or const calls.
572 (verify_gimple_expr): Added verification code.
573 * config/alpha/alpha.c (alpha_legitimize_address,
574 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
576 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
577 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
578 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
579 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
580 RTL_CONST_OR_PURE_CALL_P.
581 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
582 and const calls to be deleted.
584 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
587 * config/i386/mmx.md (mmx_subv2sf3): New expander.
588 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
589 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
590 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
591 to handle nonimmediate operands.
592 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
593 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
594 to handle nonimmediate operands.
595 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
596 (mmx_pmulhrwv4hi3): New expander. Use
597 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
598 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
599 (sse2_umulv1siv1di3): New expander. Use
600 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
601 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
602 (mmx_eq<mode>3): New expander. Use
603 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
604 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
605 (mmx_uavgv8qi3): New expander. Use
606 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
607 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
608 (mmx_uavgv4hi3): New expander. Use
609 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
612 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
613 to handle nonimmediate operands.
614 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
615 to handle nonimmediate operands.
616 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
617 to handle nonimmediate operands.
618 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
619 to handle nonimmediate operands.
620 (sse2_unpckhpd_exp): New expander. Use
621 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
622 (sse2_unpcklpd_exp): New expander. Use
623 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
624 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
625 to handle nonimmediate operands.
626 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
627 to handle nonimmediate operands.
628 (*sse2_<plusminus_insn><mode>3): Rename from
629 sse2_<plusminus_insn><mode>3 insn pattern.
630 (sse2_<plusminus_insn><mode>3): New expander. Use
631 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
632 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
633 (sse2_umulv2siv2di3): New expander. Use
634 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
635 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
636 (sse4_1_mulv2siv2di3): New expander. Use
637 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
638 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
639 (sse2_pmaddwd): New expander. Use
640 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
641 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
642 (sse2_eq<mode>3): New expander. Use
643 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
644 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
645 (sse4_1_eqv2di3): New expander. Use
646 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
647 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
648 (sse2_uavgv16qi3): New expander. Use
649 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
650 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
651 (sse2_uavgv16qi3): New expander. Use
652 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
653 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
654 (sse2_uavgv8hi3): New expander. Use
655 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
656 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
657 (ssse3_pmulhrswv8hi3): New expander. Use
658 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
659 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
660 (ssse3_pmulhrswv4hi3): New expander. Use
661 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
663 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
664 (<sse>_vmmul<mode>3): Ditto.
665 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
667 (ssse3_pmaddubsw128): Use register_operand for operand 1.
668 (ssse3_pmaddubsw): Ditto.
670 * config/i386/i386.c (struct_builtin_description)
671 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
672 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
673 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
674 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
675 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
676 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
677 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
678 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
679 (ix86_fixup_binary_operands): Assert that src1
680 and src2 must have the same mode when swapped.
681 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
682 and ix86_binary_operator_ok. Do not force operands in registers
685 2008-05-07 Jan Hubicka <jh@suse.cz>
687 * cgraph.c (dump_cgraph_node): Update.
688 * cgraph.h (cgraph_local_info): Break out inline summary.
689 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
691 * ipa-inline (inline_summary): New accestor function.
692 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
693 cgraph_decide_inlining, compute_inline_parameters): Update.
694 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
696 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
698 Cleanup ColdFire scheduling support and add V4 pipeline model.
700 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
701 (define_attr cpu): Add cfv4 value.
702 (define_attr type, define_attr type1): Merge into a single 'type'
703 attribute. Update all uses.
704 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
705 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
707 (define_attr opx_mem, define_attr opy_mem): Remove.
708 (define_attr op_mem): Clean up, update comment.
709 (define_attr size): Use specific values instead of general int.
710 (define_attr guess, define_attr split): Remove. Update all uses.
711 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
712 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
713 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
714 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
715 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
716 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
717 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
718 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
719 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
720 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
721 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
722 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
723 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
724 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
725 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
726 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
727 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
728 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
729 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
730 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
731 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
732 Update or set attributes.
733 (stack_tie): New fake instruction.
735 * config/m68k/m68k.h (TUNE_CFV4): New macro.
736 (m68k_sched_attr_size): Update declaration.
737 (m68k_sched_attr_type2): Remove.
738 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
739 Declare new bypass predicates.
741 * config/m68k/m68k.c (m68k_sched_issue_rate,
742 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
744 (TARGET_SCHED_ISSUE_RATE,
745 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
746 (override_options): Handle scheduling for ColdFire V4 core.
747 (m68k_expand_prologue): Emit stack_tie.
748 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
749 'OP_TYPE_FPN'. Update all uses.
750 (sched_guess_p): Remove.
751 (sched_address_type): Handle symbolic addresses.
752 (sched_get_operand): New static function.
753 (sched_operand_type): Merge into sched_attr_op_type.
754 (sched_attr_op_type): Handle FP registers, handle quick constants,
756 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
757 (m68k_sched_attr_size): Update. Move logic to ...
758 (sched_get_attr_size_int): New static function.
759 (sched_get_opxy_mem_type): New static function.
760 (m68k_sched_attr_op_mem): Update.
761 (m68k_sched_attr_type2): Remove.
762 (sched_cfv4_bypass_data): New static variable.
763 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
764 (m68k_sched_issue_rate): Implement scheduler hook.
765 (struct _sched_ib: enabled_p): New field.
766 (m68k_sched_variable_issue): Update. Handle V4.
767 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
768 sched_dump_class_func_t, sched_dump_split_class,
769 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
770 sched_dump_dfa_class, m68k_sched_dump): Remove.
771 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
773 (m68k_sched_init_global): Remove statisctics dumping, introduce
774 sanity check that all instructions have pipeline reservations. Handle
776 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
777 Handle ColdFire V4 core.
778 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
779 New static functions.
780 (m68k_sched_address_bypass_p): New bypass predicate.
781 (sched_get_indexed_address_scale): New static function.
782 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
784 * cf.md: Update comments.
785 (define_attr type2): Remove. Use 'type' attribute instead.
787 (cf_ib): Rename to cfv123_ib. Update all uses.
788 (cf_oep): Rename to cfv123_oep. Update all uses.
789 (cf_chr): Rename to cfv123_chr. Update all uses.
790 (cf_mem): Rename to cfv123_mem. Update all uses.
791 (cf_mac): Move to more appropriate place.
792 (cfv123_guess): New automaton and cpu_unit.
793 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
794 Update uses of 'size' attribute. Handle before reload scheduling.
795 (cfv123_guess): New dummy reservation for unhandled instructions.
796 (cfv4_*): Pipeline description of ColdFire V4 core.
797 (ignore): New reservation to handle 'ignore' type.
799 2008-05-07 Ian Lance Taylor <iant@google.com>
802 * gimplify.c (find_single_pointer_decl_1): Don't look through
804 (find_single_pointer_decl): Adjust comments.
806 2008-05-07 Jakub Jelinek <jakub@redhat.com>
809 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
810 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
813 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
814 integral type rather than floating point, then VIEW_CONVERT_EXPR
815 to the floating point type.
817 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
819 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
820 TFmode op0 to register.
822 2008-05-07 Alan Modra <amodra@bigpond.net.au>
824 * c-decl.c (grokdeclarator): Comment typo.
826 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
828 * tree-flow.h: Remove prototype for computed_goto_p.
829 * tree-cfg.c (computed_goto_p): Make static.
831 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
834 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
835 (contains_aligned_value_p): This. Handle _Decimal128.
836 (ix86_function_arg_boundary): Only align _Decimal128 to its
837 natural boundary and handle it properly.
839 2008-05-06 Martin Jambor <mjambor@suse.cz>
841 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
842 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
843 (ipcp_method_set_orig_node): Removed.
844 (ipcp_cval_get_cvalue_type): Removed.
845 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
846 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
847 (ipcp_cval_set_cvalue_type): Removed.
848 (ipcp_cval_get_cvalue): Removed.
849 (ipcp_cval_set_cvalue): Removed.
850 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
851 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
852 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
853 (ipcp_cval_meet): Renamed to ipa_lattice_meet
854 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
855 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
856 (ipcp_get_ith_lattice): Changed parameters.
857 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
858 (ipcp_lattice_from_jfunc): Changed parameters.
859 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
860 (ipcp_method_cval_print): Added temporary variable info.
861 (ipcp_redirect): Removed already unused local variable caller.
862 (ipcp_redirect): New temporary variable orig_callee_info
863 (ipcp_redirect): Removed newly unused local variable callee.
864 (ipcp_redirect): Removed (a bit confusing) local variable type.
865 (ipcp_insert_stage): Added local variable info.
866 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
868 (ipcp_formal_create): Removed.
869 (ipcp_method_cval_set): Removed.
870 (ipcp_propagate_stage): Renamed lattice variables.
871 (ipcp_method_cval_set_cvalue_type): Removed.
872 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
873 (ipcp_print_all_lattices): Changed printed strings to refer to
874 lattices rather than cvals.
875 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
876 (ipcp_propagate_const): Changed formal parameters.
877 (build_const_val): Changed formal parameters.
878 (ipcp_insert_stage): Removed useless variable cvalue
879 (build_const_val): Changed formal parameters.
880 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
881 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
882 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
883 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
884 (ipcp_print_func_profile_counts): Changed string from "method" to
886 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
887 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
888 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
889 (ipcp_structures_print): Renamed to ipcp_print_all_structures
890 (ipcp_profile_print): Renamed to ipcp_print_profile_data
891 (ipcp_lat_is_const): Changed parameters and made inline.
892 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
893 (ipcp_redirect): Renamed to ipcp_need_redirect_p
894 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
895 the predicate condition directly
896 (ipcp_propagate_stage): Added local variable args. Removed local
897 variable callee. (Both are mere code simplifications.)
898 (ipcp_method_dont_insert_const): Renamed to
899 ipcp_node_not_modifiable_p.
900 (ipcp_node_not_modifiable_p): Made inline.
901 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
902 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
903 (ipcp_print_all_lattices): Removed variable cvalue
904 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
907 2008-05-06 Olivier Hainque <hainque@adacore.com>
909 * tree-sra.c (try_instantiate_multiple_fields): Early return
910 if field has POINTER_TYPE.
912 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
914 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
915 by using 'q' specifier for instruction.
916 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
918 2008-05-06 Anatoly Sokolov <aesok@post.ru>
920 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
921 Change mode of zero_extract from QImode to HImode.
922 (sign bit tests peepholes): (Ditto.).
924 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
926 * config/i386/mmx.md: Remove double backslashes from asm templates.
927 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
928 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
929 to handle nonimmediate operands.
930 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
931 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
932 to handle nonimmediate operands.
933 (*mmx_<code>v2sf3_finite): New insn pattern.
934 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
935 (mmx_<code>v2sf3): New expander. Use
936 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
937 (mmx_<plusminus_insn><mode>3): New expander. Use
938 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
939 (*mmx_<plusminus_insn><mode>3): New insn pattern.
940 (mmx_add<mode>3): Removed.
941 (mmx_ssadd<mode>3): Ditto.
942 (mmx_usadd<mode>3): Ditto.
943 (mmx_sub<mode>3): Ditto.
944 (mmx_sssub<mode>3): Ditto.
945 (mmx_ussub<mode>3): Ditto.
946 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
947 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
948 to handle nonimmediate operands.
949 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
951 (mmx_smulv4hi3_highpart): New expander. Use
952 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
953 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
955 (mmx_umulv4hi3_highpart): New expander. Use
956 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
957 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
958 (mmx_<code>v4hi3): New expander. Use
959 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
960 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
961 (mmx_<code>v8qi3): New expander. Use
962 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
963 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
964 (mmx_<code><mode>3): New expander. Use
965 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
967 2008-05-05 Jan Hubicka <jh@suse.cz>
969 PR tree-optimization/36118
970 * passes.c (pass_init_dump_file): Fix dump header.
972 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
975 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
976 VCE for function decls.
978 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
980 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
982 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
984 * config/i386/i386.md (sat_plusminus): New.
985 (plusminus_insn): Likewise.
986 (plusminus_mnemonic): Likewise.
988 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
989 (*<addsub><mode>3_cc_overflow): Renamed to ...
990 (*<plusminus_insn><mode>3_cc_overflow): This.
991 (*<addsub>si3_zext_cc_overflow): Renamed to ...
992 (*<plusminus_insn>si3_zext_cc_overflow): This.
994 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
995 (<plusminus_insn><mode>3): This.
996 (*<addsub><mode>3): Renamed to ...
997 (*<plusminus_insn><mode>3): This.
998 (<sse>_vm<addsub><mode>3): Renamed to ...
999 (<sse>_vm<plusminus_insn><mode>3): This.
1000 (sse3_h<addsub>v4sf3): Renamed to ...
1001 (sse3_h<plusminus_insn>v4sf3): This.
1002 (sse3_h<addsub>v2df3): Renamed to ...
1003 (sse3_h<plusminus_insn>v2df3): This.
1004 (<plusminus_insn><mode>3): New.
1005 (*<plusminus_insn><mode>3): Likewise.
1006 (sse2_<plusminus_insn><mode>3): Likewise.
1007 (add<mode>): Removed.
1008 (*add<mode>3): Likewise.
1009 (sse2_ssadd<mode>3): Likewise.
1010 (sse2_usadd<mode>3): Likewise.
1011 (sub<mode>3): Likewise.
1012 (*sub<mode>3): Likewise.
1013 (sse2_sssub<mode>3): Likewise.
1014 (sse2_ussub<mode>3): Likewise.
1016 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
1018 * gthr-single.h: Add in required interface elements as per gthr.h.
1019 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
1020 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
1021 Generalize UNUSED macro.
1022 (__gthread_once): Add.
1023 (__gthread_key_create): Add.
1024 (__gthread_key_delete): Add.
1025 (__gthread_getspecific): Add.
1026 (__gthread_setspecific): Add.
1028 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
1030 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1031 the same size types for the indirect reference on the rhs, then
1034 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
1036 * config/i386/i386.md
1037 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1038 one insn template instead of template series.
1039 (*xordi_1_rex64): Ditto.
1040 (*xordi_2_rex64): Ditto.
1042 2008-05-05 Ira Rosen <irar@il.ibm.com>
1044 PR tree-optimization/36119
1045 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1048 2008-06-04 Jan Hubicka <jh@suse.cz>
1050 tree-optimization/36100
1051 * tree-pass.h (pass_O0_always_inline): Declare.
1052 * ipa-inline.c (inline_transform): Remove dead code.
1053 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1054 pass_O0_always_inline): New.
1055 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1057 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
1059 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1060 mnemonic in this_param move for TARGET_64BIT.
1062 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
1064 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1065 (*strmovsi_rex_1): Ditto.
1066 (*strsetsi_1): Ditto.
1067 (*strsetsi_rex_1): Ditto.
1069 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1070 adddicc expanders using SWI mode iterator.
1072 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
1075 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1078 2008-05-04 David S. Miller <davem@davemloft.net>
1080 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1081 (sparc*-*-linux*): Use linux.h in tm_file.
1082 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1083 compiler defaulting to 32-bit.
1084 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1086 * config/sparc/linux.h: Remove definitions now obtained
1087 properly from linux.h
1088 * config/sparc/linux64.h: Likewise.
1089 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1090 don't want this setting for 32-bit builds in a biarch compiler.
1091 * doc/install.texi: Add sparc-linux to list of targets
1092 supporting --enable-targets=all.
1094 2008-05-03 Andrew Pinski <pinskia@gmail.com>
1096 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1098 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
1100 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1101 after V4SI_FTYPE_V8HI.
1102 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1103 case V4SI_FTYPE_V2DF.
1105 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1107 * doc/invoke.texi (max-flow-memory-locations): Removed.
1108 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1110 2008-05-03 Richard Guenther <rguenther@suse.de>
1113 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1115 2008-05-02 David S. Miller <davem@davemloft.net>
1117 * config.gcc (need_64bit_hwint): Document libcpp dependency.
1119 2008-05-02 Simon Baldwin <simonb@google.com>
1122 * c-common.h (warn_array_subscript_range): Removed.
1123 * c-common.c (warn_array_subscript_range): Ditto.
1124 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1125 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1127 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1129 * config/i386/i386.c (ix86_special_builtin_type): New.
1130 (bdesc_special_args): Likewise.
1131 (ix86_expand_special_args_builtin): Likewise.
1132 (ix86_init_mmx_sse_builtins): Updated.
1133 (ix86_expand_builtin): Updated.
1134 (ix86_expand_store_builtin): Removed.
1135 (ix86_expand_unop_builtin): Likewise.
1137 * config/i386/mm3dnow.h (__v2sf): Moved to ...
1138 * config/i386/mmintrin.h (__v2sf): Here.
1140 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1142 (_mm_loadl_pi): Likewise.
1143 (_mm_storeh_pi): Replace __v2si with __v2sf.
1144 (_mm_storel_pi): Likewise.
1146 * doc/extend.texi: Correct __builtin_ia32_loadhps,
1147 __builtin_ia32_loadlps, __builtin_ia32_storehps,
1148 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1149 __builtin_ia32_loadlpd.
1151 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1153 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1154 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1155 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
1156 (ix86_init_mmx_sse_builtins): Updated.
1157 (ix86_expand_args_builtin): Likewise.
1158 (ix86_expand_builtin): Likewise.
1159 (ix86_expand_unop1_builtin): Renamed to ...
1160 (ix86_expand_unop_vec_merge_builtin): This.
1162 2008-05-01 Jan Hubicka <jh@suse.cz>
1165 * ipa-inline.c (inline_generate_summary): Make static.
1166 (inline_transform): Do not call inlining at -O0; make static.
1167 * passes.c (execute_todo): Add sanity check.
1168 (execute_one_ipa_transform_pass): Execute proper flags.
1170 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1172 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1173 (DECL_NONADDRESSABLE_P): Likewise.
1174 * alias.c (record_component_aliases): Fix comment.
1176 2008-05-01 Simon Baldwin <simonb@google.com>
1178 * c-common.h (warn_array_subscript_range): New function.
1179 * c-common.c (warn_array_subscript_range): Ditto.
1180 * tree-vrp.c (check_array_ref): Corrected code to agree with
1181 comment, ignoring only arrays of size 0 or size 1.
1182 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1184 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1186 * config/i386/i386.c (ix86_builtin_type): Replace
1187 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1188 (bdesc_args): Updated.
1189 (ix86_init_mmx_sse_builtins): Likewise.
1190 (ix86_expand_args_builtin): Likewise.
1192 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1195 * doc/extend.texi: Correct __builtin_ia32_palignr.
1197 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1200 * config/i386/i386.c (bdesc_crc32): Removed.
1201 (ix86_expand_crc32): Likewise.
1202 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1203 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1204 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
1205 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1206 UINT_FTYPE_UINT_UCHAR.
1207 (bdesc_args): Updated. Add crc32 builtins.
1208 (ix86_init_mmx_sse_builtins): Updated.
1209 (ix86_expand_args_builtin): Updated to support subreg.
1211 * doc/extend.texi: Correct __builtin_ia32_crc32di.
1213 2008-05-01 Jan Hubicka <jh@suse.cz>
1215 * tree-pass.h (opt_pass): Add IPA_PASS.
1216 (varpool_node, cgraph_node): Forward declare.
1217 (ipa_opt_pass): Define.
1218 (pass_ipa_inline): Turn into ipa_opt_pass.
1219 (pass_apply_inline): Remove.
1220 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1221 (apply_inline): Turn into ....
1222 (inline_transform): ... this one.
1223 (inline_generate_summary): New function.
1224 (pass_apply_inline): Remove.
1225 * function.h (ipa_opt_pass): Forward declare structure; typedef;
1227 (struct function): Add ipa_transforms_to_apply.
1228 * passes.c (register_one_dump_file): Work on IPA_PASS.
1229 (init_optimization_passes): Remove pass_inline_parameters and
1231 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1232 (execute_one_pass) ... here; apply transforms when possible.
1233 (add_ipa_transform_pass, execute_ipa_summary_asses,
1234 execute_one_ipa_transform_pass): New.
1235 (execute_ipa_pass_list): Update for IPA_PASS type.
1237 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1239 * config/i386/i386.c (ix86_builtin_type): Add
1240 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1241 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1242 (bdesc_args): Add SSE4a builtins.
1243 (ix86_init_mmx_sse_builtins): Updated.
1244 (ix86_expand_args_builtin): Likewise.
1245 (ix86_expand_builtin): Likewise.
1247 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1249 * config/i386/i386.c (ix86_builtin_type): Add
1250 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1251 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1252 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1253 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1254 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1255 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1256 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1257 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1258 and DI_FTYPE_DI_DI_INT.
1259 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1260 (ix86_init_mmx_sse_builtins): Updated.
1261 (ix86_expand_args_builtin): Likewise.
1262 (ix86_expand_builtin): Likewise.
1263 (ix86_expand_binop_imm_builtin): Removed.
1265 * doc/extend.texi: Correct __builtin_ia32_palignr128.
1267 2008-04-30 Richard Guenther <rguenther@suse.de>
1269 PR tree-optimization/32921
1270 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1272 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
1274 * config/arm/arm.c (arm_unwind_emit): Use
1275 crtl->all_throwers_are_sibcalls instead of
1276 cfun->all_throwers_are_sibcalls.
1277 (arm_output_fn_unwind): Likewise.
1278 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1279 instead of cfun->uses_pic_offset_table.
1280 (frv_expand_prologue): Likewise.
1281 (frv_frame_pointer_required): Likewise.
1282 (frv_expand_fdpic_call): Likewise.
1283 (frv_emit_movsi): Likewise.
1284 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1285 cfun->returns_pcc_struct instead of
1286 current_function_returns_pcc_struct.
1287 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1288 instead of cfun->calls_eh_return.
1289 (m32c_pushm_popm): Likewise.
1290 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1291 "extern" declaration.
1293 2008-04-30 Richard Guenther <rguenther@suse.de>
1295 PR tree-optimization/21636
1296 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1298 (evaluate_stmt): Print the likely value.
1299 (ccp_visit_stmt): Avoid excessive vertical spacing.
1301 2008-04-30 Rafael Espindola <espindola@google.com>
1303 * builtins.c (fold_call_expr): Return realret.
1304 * tree-ssa-threadedge.c
1305 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1306 __builtin_object_size.
1308 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
1310 * gcc.c (wrapper_string): New variable.
1311 (insert_wrapper): New function.
1312 (execute): New option -wrapper.
1313 * doc/invoke.texi (Overall Options): New driver option -wrapper.
1315 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
1317 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1318 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1319 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1321 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
1322 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1323 config/rs6000/e500crtres64gprctr.asm,
1324 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1325 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1326 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1327 config/rs6000/e500crtsav64gprctr.asm,
1328 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1329 config/rs6000/e500crtsavg64gprctr.asm: New files.
1330 * config/rs6000/t-ppccomm: Add build rules for new files.
1331 (LIB2FUNCS_STATIC_EXTRA): Add new files.
1332 * config/rs6000/t-netbsd: Add build rules for new files.
1333 (LIB2FUNCS_STATIC_EXTRA): New variable.
1334 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1335 (CRTSAVRES_DEFAULT_SPEC): Likewise.
1336 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1338 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
1340 * config/i386/i386.c (ix86_builtin_type): Add
1341 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1342 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1343 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1344 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1345 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1346 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1347 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1348 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1349 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1350 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1351 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1352 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1353 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1354 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1355 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1356 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1357 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1358 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1359 V1DI_FTYPE_V2SI_V2SI.
1360 (bdesc_2arg): Moved to ...
1362 (ix86_init_mmx_sse_builtins): Updated.
1363 (ix86_expand_args_builtin): Updated. Take a pointer
1364 to const struct builtin_description. Handle comparison
1366 (ix86_expand_sse_compare): Take a new argument for swapping operands.
1367 (ix86_expand_builtin): Updated.
1369 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1370 (ssse3_pmaddubsw128): This.
1371 (ssse3_pmaddubswv4hi3): Renamed to ...
1372 (ssse3_pmaddubsw): This.
1374 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1375 (__builtin_ia32_packssdw128): Likewise.
1376 (__builtin_ia32_packuswb128): Likewise.
1377 (__builtin_ia32_pmaddubsw): Likewise.
1378 (__builtin_ia32_pmaddubsw128): Likewise.
1380 2008-04-30 Richard Guenther <rguenther@suse.de>
1382 PR tree-optimization/14847
1383 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1384 (recognize_bits_test): Use it.
1385 (recognize_single_bit_test): Likewise.
1387 2008-04-30 Martin Jambor <mjambor@suse.cz>
1389 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1390 instead of setting number of formal parameters to zero.
1391 (ipcp_init_stage): Do not set the number of actual parameters to zero
1393 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1394 which are called with variable number of arguments.
1395 (ipcp_insert_stage): Explicitely skipping all nodes which are
1396 called with variable number of arguments.
1397 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
1398 number of parameters.
1400 * ipa-prop.h (struct ipa_node_params): Added flag
1401 called_with_var_arguments
1402 (ipa_set_param_count): Added. Changed sole setter to use it.
1403 (ipa_get_param_count): Added. All readers of param_count
1404 converted to use it instead.
1405 (ipa_set_called_with_variable_arg): Added.
1406 (ipa_is_called_with_var_arguments): Added.
1407 (ipa_get_ith_param): Added. All readers of param_decls converted
1409 (ipa_set_cs_argument_count): Added, sole writer to argument_count
1411 (ipa_get_cs_argument_count): Added, all readers of argument_count
1413 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
1416 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1417 (struct ipcp_lattice): Renamed cval_type to type
1418 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1420 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1421 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1422 (ipcp_insert_stage): Changed the type of variable cvalue to tree
1423 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1424 (build_const_val): Changed the type of parameter cvalue to tree
1425 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1426 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1428 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
1431 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1432 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1433 (ipa_add_method): Renamed to ipa_push_func_to_list
1434 (ipa_remove_method): Renamed to ipa_pop_func_from_list
1435 (ipa_callsite_param_count): Removed.
1436 (ipa_callsite_param_count_set): Removed.
1437 (ipa_callsite_param): Removed.
1438 (ipa_callsite_callee): Removed.
1439 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1440 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1441 (ipa_method_formal_count): Removed.
1442 (ipa_method_formal_count_set): Removed.
1443 (ipa_method_get_tree): Removed.
1444 (ipa_method_tree_map_create): Removed.
1445 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1446 (ipa_create_param_decls_array): Creates the array itself
1447 (ipa_create_param_decls_array): Temporary variable info instead of
1449 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1450 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1451 (get_type): Removed.
1452 (ipa_jf_get_info_type): Removed.
1453 (ipa_node_create): Renamed to ipa_create_node_params
1454 (ipa_free): Renamed to ipa_free_all_node_params
1455 (ipa_nodes_create): Renamed to ipa_create_all_node_params
1456 (ipa_edges_create): Renamed to ipa_create_all_edge_args
1457 (ipa_edges_free): Renamed to ipa_free_all_edge_args
1458 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1459 (ipa_free_all_node_params): Deallocation to jump_functions moved to
1460 ipa_free_all_edge_args
1461 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1462 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1463 (ipa_create_methodlist_node): Removed.
1464 (ipa_methodlist_method): Removed.
1465 (ipa_methodlist_method_set): Removed.
1466 (ipa_methodlist_next_method): Removed.
1467 (ipa_methodlist_next_method_set): Removed.
1468 (ipa_method_is_modified): Removed.
1469 (ipa_method_modify_create): Removed.
1470 (ipa_method_modify_init): Temporary variable info instead of a few
1472 (ipa_detect_param_modifications): Temporary variable info instead of
1474 (ipa_compute_jump_functions): Temporary variable info instead of
1476 (ipa_method_modify_set): Removed.
1477 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1478 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
1479 than craph_node as the first parameter.
1480 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1481 (ipa_method_modify_init): Removed.
1482 (ipa_compute_jump_functions): Added a temp variable instead of
1483 repeatadly dereferencing the cgraph_edge.aux pointer
1484 (ipa_callsite_param_set_type): Removed.
1485 (ipa_compute_jump_functions): i renamed to index and moved to
1487 (ipa_callsite_param_set_info_type_formal): Removed.
1488 (ipa_callsite_param_set_info_type): Removed.
1489 (ipa_callsite_param_map_create): Removed.
1490 (ipa_callsite_tree): Removed.
1491 (ipa_callsite_caller): Removed.
1492 (ipa_pop_func_from_list): return_method removed to return_func
1494 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1495 prefixed all values with IPA_. Changed all users.
1496 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
1497 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
1498 and FORMAL_IPATYPE IPA_PASS_THROUGH.
1499 (union parameter_info): Renamed to jump_func_value.
1500 (union jump_func_value): Renamed value to constant
1501 (struct ipa_jump_func): Renamed info_type to value
1502 (struct ipa_node): Renamed to ipa_node_params
1503 (struct ipa_node_params): Renamed ipa_arg_num to param_count
1504 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1505 (struct ipa_node_params): Renamed ipa_mod to modified_flags
1506 (struct ipa_edge): Renamed to ipa_edge_args
1507 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1508 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
1509 (struct ipa_methodlist): Renamed to ipa_func_list
1510 (struct ipa_func_list): method_p renamed to node, next_method
1512 (ipa_methodlist_p): Removed, switched all users to struct pointer
1513 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
1515 2008-04-30 Alan Modra <amodra@bigpond.net.au>
1517 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
1518 (rs6000_emit_epilogue): Use backchain to restore only when we
1519 have a large frame. Make use of frame pointer to restore if we
1520 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
1522 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
1524 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1525 Add mode to zero_extract.
1526 (sign bit tests peepholes): (Ditto.).
1528 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
1530 * config/i386/i386.c (ix86_builtins): Replace Prescott New
1531 Instructions in comments with SSE3.
1532 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
1533 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
1534 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
1535 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
1536 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
1537 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
1538 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
1539 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
1540 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
1541 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
1542 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
1543 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
1544 (bdesc_sse_args): Renamed to ...
1545 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
1546 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
1547 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
1549 (bdesc_1arg): Moved to ...
1551 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
1552 Instructions in comments with SSE3.
1553 (ix86_expand_sse_operands_builtin): Renamed to ...
1554 (ix86_expand_args_builtin): This. Updated.
1555 (ix86_expand_unop1_builtin): Update comments.
1556 (ix86_expand_builtin): Updated.
1558 2008-04-29 Richard Guenther <rguenther@suse.de>
1560 PR tree-optimization/36078
1561 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1562 Update virtual SSA form after cleaning up the CFG.
1564 2008-04-29 Richard Guenther <rguenther@suse.de>
1567 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
1569 2008-04-29 Richard Guenther <rguenther@suse.de>
1571 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
1572 (compute_may_aliases): Do not call finalize_ref_all_pointers.
1573 (compute_flow_insensitive_aliasing): Do not treat
1574 PTR_IS_REF_ALL pointers special.
1575 (get_smt_for): Likewise.
1576 (may_alias_p): Re-structure.
1577 (is_escape_site): A ref-all pointer conversion is not an escape site.
1578 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
1579 PTR_IS_REF_ALL pointers special.
1580 * tree-ssa-structalias.h (struct alias_info): Remove
1581 ref_all_symbol_mem_tag field.
1582 (PTR_IS_REF_ALL): Remove.
1584 2008-04-29 Richard Guenther <rguenther@suse.de>
1587 * fold-const.c (extract_muldiv_1): In combining division constants
1588 make sure to never overflow.
1590 2008-04-29 Nick Clifton <nickc@redhat.com>
1592 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
1594 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1597 * optc-gen.awk: Work around HP-UX/IA awk bug.
1599 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
1601 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
1604 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
1607 * config/i386/i386.md
1608 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
1609 Change operand 1 predicate to nonimmediate_operand.
1611 2008-04-28 Jakub Jelinek <jakub@redhat.com>
1614 * dwarf2out.c (struct die_struct): Mark as chain_circular through
1616 * gengtype.c (walk_type, write_func_for_structure): Handle
1618 * doc/gty.texi: Document chain_circular.
1620 2008-04-28 Richard Guenther <rguenther@suse.de>
1622 PR tree-optimization/36066
1623 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
1626 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
1629 * config/i386/i386.md
1630 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
1631 Use match_scratch instead of match_operand for operands 3 and 4.
1633 2008-04-27 Richard Guenther <rguenther@suse.de>
1635 PR tree-optimization/18754
1636 PR tree-optimization/34223
1637 * tree-pass.h (pass_complete_unrolli): Declare.
1638 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
1639 loop size before and after unconditionally of UL_NO_GROWTH in effect.
1640 Rewrite loop into loop closed SSA form if it is not already.
1641 (tree_unroll_loops_completely): Re-structure to iterate over
1642 innermost loops with intermediate CFG cleanups.
1643 Unroll outermost loops only if requested or the code does not grow
1645 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
1646 loops are available.
1647 (tree_vectorize): Instead do so here.
1648 (tree_complete_unroll): Also unroll outermost loops.
1649 (tree_complete_unroll_inner): New function.
1650 (gate_tree_complete_unroll_inner): Likewise.
1651 (pass_complete_unrolli): New pass.
1652 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
1653 uses outside of the loop.
1654 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
1655 form if it is available.
1656 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
1657 * passes.c (init_optimization_passes): Schedule complete inner
1658 loop unrolling pass before the first CCP pass after final inlining.
1660 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
1662 * targhooks.h (default_emutls_var_fields,
1663 default_emutls_var_init): Declare.
1664 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
1665 * target.h (struct gcc_target): Add struct emutls member.
1666 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
1667 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
1668 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
1669 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
1670 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
1671 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
1672 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
1673 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
1674 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
1675 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
1676 emit debug information.
1677 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
1678 * varasm.c: Include targhooks.h.
1679 (emutls_object_section, emutls_tmpl_section): New.
1680 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
1681 (EMUTLS_SEPARATOR): New.
1683 (get_emutls_object_name): New.
1684 (default_emutls_var_fields): New, broken out of ...
1685 (get_emutls_object_type): ... here. Adjust to use target hooks.
1686 (get_emutls_init_templ_addr): Adjust to use target hooks.
1687 (emutls_decl): Adjust to use target hooks.
1688 (emutls_finish): Likewise.
1689 (default_emutls_var_init): New, broken out of ...
1690 (assemble_variable): ... here. Adjust to use target hooks.
1691 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
1693 * c-common.c (handle_section_attribute): Prevent overriding
1694 sections for emulated tls with special sections.
1695 * config/i386/i386.c (x86_64_elf_select_section): Add
1696 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
1697 (x86_64_elf_unique_section): Likewise.
1698 * config/vxworks.c: Include tree.h.
1699 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
1700 (vxworks_override_options): Set TLS scheme.
1701 * doc/tm.texi (Emulated TLS): New node.
1703 2008-04-26 Simon Baldwin <simonb@google.com>
1706 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
1707 with propagated string constants.
1709 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
1711 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
1712 constraint for operand 2 when operand 0 is memory operand.
1713 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
1714 operand 0 is memory operand.
1715 (fix_trunc<mode>_i387_with_temp): Ditto.
1716 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
1717 operand 2 when operand 1 is memory operand.
1718 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
1719 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
1720 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
1721 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
1722 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
1723 operands 2,3 and 4 when operand 1 is memory operand.
1724 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
1726 (fistdi2_floor_with_temp): Ditto.
1727 (fist<mode>2_floor_with_temp): Ditto.
1728 (fistdi2_ceil_with_temp): Ditto.
1729 (fist<mode>2_ceil_with_temp): Ditto.
1730 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
1732 2008-04-26 David Daney <ddaney@avtrex.com>
1734 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
1736 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
1737 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1738 UNSPEC_UPDATE_GOT_VERSION): Renumber.
1739 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
1740 (compare_and_swap_12): New insn.
1741 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
1742 * config/mips/mips.c (mips_force_binary): New function.
1743 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
1744 (mips_expand_compare_and_swap_12): New function.
1745 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
1747 2008-04-25 Jan Hubicka <jh@suse.cz>
1750 * cfgexpand.c (pass_expand): Turn into RTL pass.
1751 * passes.c (execute_one_pass): Do pass typechecking after execution.
1752 * tree-pass.h (pass_expand): Turn into RTL pass.
1754 * function.h (struct rtl_data): Move here fields
1755 accesses_prior_frames, calls_eh_return, saves_all_registers,
1756 has_nonlocal_goto, has_asm_statement, is_thunk,
1757 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
1758 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
1759 arg_pointer_save_area_init from struct function; turn into bool.
1760 (struct function): Move
1761 calls_eh_return, saves_all_registers, has_nonlocal_goto,
1762 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
1763 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
1764 tail_call_emit, arg_pointer_save_area_init
1765 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
1766 (current_function_returns_struct, current_function_returns_pcc_struct,
1767 current_function_calls_setjmp, current_function_calls_alloca,
1768 current_function_accesses_prior_frames,
1769 current_function_calls_eh_return, current_function_is_thunk,
1770 current_function_stdarg, current_function_profile,
1771 current_function_limit_stack, current_function_uses_pic_offset_table,
1772 current_function_uses_const_pool, current_function_has_nonlocal_label,
1773 current_function_saves_all_registers,
1774 current_function_has_nonlocal_goto,
1775 current_function_has_asm_statement): Remove accesor macros.
1776 * ra-conflict.c (global_conflicts): Update.
1777 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
1778 (suitable_for_tail_call_opt_p): Update.
1779 * builtins.c (expand_builtin_return_addr): Update.
1780 (expand_builtin_setjmp_setup): Update.
1781 (expand_builtin_nonlocal_goto): Update.
1782 * final.c (final_start_function): Update.
1783 (profile_function): Update.
1784 (leaf_function_p): Update.
1785 (only_leaf_regs_used): Update.
1786 * df-scan.c (df_get_exit_block_use_set): Update.
1787 * dojump.c (clear_pending_stack_adjust): Update.
1788 * tree-stdarg.c (gate_optimize_stdarg): Update.
1789 * gimple-low.c (lower_function_body): Update.
1790 * global.c (compute_regsets): Update.
1791 (global_alloc): Update.
1792 * dwarf2out.c (dwarf2out_begin_prologue): Update.
1793 * expr.c (expand_assignment): Update.
1794 * dse.c (dse_step0): Update.
1795 (dse_step1): Update.
1796 * c-decl.c (store_parm_decls): Update.
1797 * local-alloc.c (combine_regs): Update.
1798 (find_free_reg): Update.
1799 * function.c (assign_parms_augmented_arg_list): Update.
1800 (assign_parm_find_data_types): Update.
1801 (assign_parms): Update.
1802 (allocate_struct_function): Update.
1803 (expand_function_start): Update.
1804 (expand_function_end): Update.
1805 (get_arg_pointer_save_area): Update.
1806 (thread_prologue_and_epilogue_insns): Update.
1807 (rest_of_match_asm_constraints): Update.
1808 * stor-layout.c (variable_size): Update.
1809 * gcse.c (gcse_main): Update.
1810 (bypass_jumps): Update.
1811 * gimplify.c (gimplify_function_tree): Update.
1812 * calls.c (emit_call_1): Update.
1813 (expand_call): Update.
1814 * bt-load.c (compute_defs_uses_and_gen): Update.
1815 * except.c (sjlj_assign_call_site_values): Update.
1816 (sjlj_emit_function_enter): Update.
1817 (can_throw_external): Update.
1818 (set_nothrow_function_flags): Update.
1819 (expand_builtin_unwind_init): Update.
1820 (expand_eh_return): Update.
1821 (convert_to_eh_region_ranges): Update.
1822 (output_function_exception_table): Update.
1823 * emit-rtl.c (gen_tmp_stack_mem): Update.
1824 * cfgexpand.c (expand_used_vars): Update.
1825 (tree_expand_cfg): Update.
1826 * cfgcleanup.c (rest_of_handle_jump): Update.
1827 * explow.c (allocate_dynamic_stack_space): Update.
1828 * varasm.c (assemble_start_function): Update.
1829 (force_const_mem): Update.
1830 (mark_constant_pool): Update.
1831 * tree-optimize.c (tree_rest_of_compilation): Update.
1832 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
1833 * tree-cfg.c (notice_special_calls): Update.
1834 (is_ctrl_altering_stmt): Update.
1835 (tree_can_make_abnormal_goto): Update.
1836 (tree_purge_dead_abnormal_call_edges): Update.
1837 * config/alpha/predicates.md: Update.
1838 * config/alpha/alpha.c (alpha_sa_mask): Update.
1839 (alpha_sa_size): Update.
1840 (alpha_does_function_need_gp): Update.
1841 (alpha_expand_prologue): Update.
1842 (alpha_start_function): Update.
1843 (alpha_output_function_end_prologue): Update.
1844 (alpha_expand_epilogue): Update.
1845 * config/frv/frv.c (frv_stack_info): Update.
1846 (frv_expand_epilogue): Update.
1847 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
1848 (s390_register_info): Update.
1849 (s390_frame_info): Update.
1850 (s390_init_frame_layout): Update.
1851 (s390_can_eliminate): Update.
1852 (save_gprs): Update.
1853 * config/spu/spu.c (spu_split_immediate): Update.
1854 (need_to_save_reg): Update.
1855 (spu_expand_prologue): Update.
1856 (spu_expand_epilogue): Update.
1857 * config/sparc/sparc.md: Update.
1858 * config/sparc/sparc.c (eligible_for_return_delay): Update.
1859 (sparc_tls_got): Update.
1860 (legitimize_pic_address): Update.
1861 (sparc_emit_call_insn): Update.
1862 (sparc_expand_prologue): Update.
1863 (output_return): Update.
1864 (print_operand): Update.
1865 (sparc_function_ok_for_sibcall): Update.
1866 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
1867 * config/m32r/m32r.md: Update.
1868 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
1869 (m32r_compute_frame_size): Update.
1870 (m32r_expand_prologue): Update.
1871 (m32r_expand_epilogue): Update.
1872 (m32r_legitimize_pic_address): Update.
1873 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
1874 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1875 * config/i386/i386.c (ix86_frame_pointer_required): Update.
1877 (ix86_save_reg): Update.
1878 (ix86_compute_frame_layout): Update.
1879 (ix86_expand_prologue): Update.
1880 (ix86_expand_epilogue): Update.
1881 * config/sh/sh.c (output_stack_adjust): Update.
1882 (calc_live_regs): Update.
1883 (sh5_schedule_saves): Update.
1884 (sh_expand_prologue): Update.
1885 (sh_expand_epilogue): Update.
1886 (sh_setup_incoming_varargs): Update.
1887 (sh_allocate_initial_value): Update.
1888 (sh_get_pr_initial_val): Update.
1889 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
1890 * config/sh/sh.md (label:): Update.
1891 * config/avr/avr.c (out_movhi_mr_r): Update.
1892 * config/crx/crx.h (enum): Update.
1893 * config/xtensa/xtensa.h (along): Update.
1894 * config/stormy16/stormy16.c Update.
1895 (xstormy16_compute_stack_layout): Update.
1896 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
1897 (fr30_expand_prologue): Update.
1898 * config/cris/cris.c (cris_conditional_register_usage): Update.
1899 (cris_reg_saved_in_regsave_area): Update.
1900 (cris_initial_frame_pointer_offset): Update.
1901 (cris_simple_epilogue): Update.
1902 (cris_expand_prologue): Update.
1903 (cris_expand_epilogue): Update.
1904 (cris_expand_pic_call_address): Update.
1905 (cris_asm_output_symbol_ref): Update.
1906 (cris_asm_output_label_ref): Update.
1907 * config/cris/cris.md Update.
1908 * config/iq2000/iq2000.c (compute_frame_size): Update.
1909 (iq2000_expand_epilogue): Update.
1910 * config/mt/mt.h (save_direction): Update.
1911 * config/mn10300/mn10300.c (mn10300_function_value): Update.
1912 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1913 (ia64_secondary_reload_class): Update.
1914 * config/m68k/m68k.c (m68k_save_reg): Update.
1915 (m68k_expand_prologue): Update.
1916 (m68k_expand_epilogue): Update.
1917 (legitimize_pic_address): Update.
1918 * config/rs6000/rs6000.c (rs6000_got_register): Update.
1919 (first_reg_to_save): Update.
1920 (first_altivec_reg_to_save): Update.
1921 (compute_vrsave_mask): Update.
1922 (compute_save_world_info): Update.
1923 (rs6000_stack_info): Update.
1924 (spe_func_has_64bit_regs_p): Update.
1925 (rs6000_ra_ever_killed): Update.
1926 (rs6000_emit_eh_reg_restore): Update.
1927 (rs6000_emit_allocate_stack): Update.
1928 (rs6000_emit_prologue): Update.
1929 (rs6000_emit_epilogue): Update.
1930 (rs6000_output_function_epilogue): Update.
1931 (output_profile_hook): Update.
1932 (rs6000_elf_declare_function_name): Update.
1933 * config/rs6000/rs6000.h (rs6000_args): Update.
1934 * config/rs6000/rs6000.md: Update.
1935 * config/mcore/mcore.c (mcore_expand_prolog): Update.
1936 * config/arc/arc.c (arc_output_function_epilogue): Update.
1937 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
1938 * config/darwin.c (machopic_function_base_name): Update.
1939 * config/score/score3.c (score3_compute_frame_size): Update.
1942 (score3_epilogue): Update.
1943 * config/score/score7.c (score7_compute_frame_size): Update.
1944 (score7_prologue): Update.
1945 (score7_epilogue): Update.
1946 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
1947 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1948 * config/arm/arm.c (use_return_insn): Update.
1949 (require_pic_register): Update.
1950 (arm_load_pic_register): Update.
1951 (arm_compute_save_reg0_reg12_mask): Update.
1952 (arm_compute_save_reg_mask): Update.
1953 (thumb1_compute_save_reg_mask): Update.
1954 (output_return_instruction): Update.
1955 (arm_output_function_prologue): Update.
1956 (arm_output_epilogue): Update.
1957 (arm_get_frame_offsets): Update.
1958 (arm_expand_prologue): Update.
1959 (thumb_pushpop): Update.
1960 (thumb_exit): Update.
1961 (thumb1_expand_prologue): Update.
1962 (thumb1_expand_epilogue): Update.
1963 (arm_unwind_emit): Update.
1964 (arm_output_fn_unwind): Update.
1965 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
1966 * config/arm/arm.md: Update.
1967 * config/pa/pa.md: Update.
1968 * config/pa/pa.c (legitimize_pic_address): Update.
1969 (compute_frame_size): Update.
1970 (hppa_expand_prologue): Update.
1971 (hppa_expand_epilogue): Update.
1972 (borx_reg_operand): Update.
1973 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
1974 (HARD_REGNO_RENAME_OK): Update.
1975 * config/mips/mips.c (mips_global_pointer): Update.
1976 (mips_save_reg_p): Update.
1977 (mips_compute_frame_info): Update.
1978 (mips_frame_pointer_required): Update.
1979 (mips_expand_prologue): Update.
1980 (mips_expand_epilogue): Update.
1981 (mips_can_use_return_insn): Update.
1982 (mips_reorg_process_insns): Update.
1983 * config/v850/v850.c (compute_register_save_size): Update.
1984 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
1985 * config/mmix/mmix.c (along): Update.
1986 (mmix_expand_epilogue): Update.
1987 * config/bfin/bfin.c (legitimize_pic_address): Update.
1988 (must_save_p): Update.
1989 (stack_frame_needed_p): Update.
1990 (add_to_reg): Update.
1991 (bfin_expand_prologue): Update.
1992 * stmt.c (expand_asm_operands): Update.
1993 * reload1.c (reload): Update.
1994 (init_elim_table): Update.
1996 2008-04-25 Bob Wilson <bob.wilson@acm.org>
1998 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
2000 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
2002 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
2003 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
2004 (mov<mode>): Removed.
2005 (*movv4sf_internal): Likewise.
2006 (*movv2df_internal): Likewise.
2008 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
2010 * config.gcc (crx-*-elf): Remove deprecation.
2012 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2014 * config/i386/cygming-crtend.c (register_frame_ctor): Register
2015 __gcc_deregister_frame with atexit.
2016 (deregister_frame_dtor): Remove.
2018 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
2019 Nathan Sidwell <nathan@codesourcery.com>
2021 * config/rs6000/rs6000.opt (mspe): Remove Var property.
2023 * config/rs6000/rs6000.h (rs6000_spe): Declare.
2024 (rs6000_isel): Likewise.
2025 * config/rs6000/rs6000.c (rs6000_spe): New variable.
2026 (rs6000_isel): New variable.
2027 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2029 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2032 * c-common.c (handle_vector_size_attribute): Call
2033 lang_hooks.types.reconstruct_complex_type instead of
2034 reconstruct_complex_type.
2035 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2036 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2037 * langhooks.h (struct lang_hooks_for_types): Add
2038 reconstruct_complex_type hook.
2039 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2040 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2042 2008-04-24 Richard Guenther <rguenther@suse.de>
2044 * c-common.h (check_builtin_function_arguments): Declare.
2045 * c-common.c (validate_nargs): New function.
2046 (check_builtin_function_arguments): Likewise.
2047 * c-typeck.c (build_function_call): Call
2048 check_builtin_function_arguments.
2049 * builtins.c (fold_builtin_classify): Remove error reporting code.
2050 (fold_builtin_unordered_cmp): Likewise.
2051 (fold_builtin_1): Likewise.
2052 (fold_builtin_n): Likewise.
2054 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2056 PR tree-optimization/36008
2057 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2058 the original op1, rather than delta by step.
2060 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
2061 Sebastian Pop <sebastian.pop@amd.com>
2063 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2064 eliminate_local_variables_stmt, eliminate_local_variables,
2065 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2066 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2067 of code delimited by two edges in the CFG.
2068 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2069 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2070 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
2071 the case of parallelisation of reductions.
2072 (expr_invariant_in_region_p): New.
2074 * tree-flow.h (gather_blocks_in_sese_region): Declared.
2075 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2077 2008-04-24 Ira Rosen <irar@il.ibm.com>
2078 Richard Guenther <rguenther@suse.de>
2080 PR tree-optimization/36034
2081 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2082 incapable of dealing with loads with gaps.
2084 2008-04-24 Rafael Espindola <espindola@google.com>
2086 * tree-flow.h (vrp_evaluate_conditional): Change signature.
2087 * tree-ssa-propagate.c (fold_predicate_in): Update call to
2088 vrp_evaluate_conditional.
2089 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2090 (vrp_evaluate_conditional): Split the cond argument.
2091 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2092 (simplify_stmt_for_jump_threading): Update call to
2093 vrp_evaluate_conditional.
2095 2008-04-24 Ira Rosen <irar@il.ibm.com>
2097 PR tree-optimization/35982
2098 * tree-vect-analyze.c (vect_check_interleaving): Check that the
2099 interleaved data-refs are of the same type.
2101 2008-04-24 Danny Smith <dannysmith@users.net>
2103 * c-format.c (check_format_info_main): Use strncmp rather than a
2104 magic prefix to handle multichar length specs.
2105 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2106 Don't prefix "I64" and "I32" with '\0'.
2108 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2111 * config/i386/i386.c (init_cumulative_args): Don't pass anything
2112 in registers for -m32 only if stdarg_p (fntype).
2114 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
2116 PR rtl-optimization/36006
2117 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2118 temp to op0 in order to avoid invalid rtx sharing.
2120 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2122 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
2123 check TREE_INVARIANT.
2124 * tree-gimple.c (is_gimple_address): New.
2125 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2126 * tree-gimple.h (is_gimple_address): New.
2127 * tree.h (decl_address_invariant_p): New.
2128 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2129 (build_string): Likewise.
2130 (decl_address_invariant_p): New, from is_gimple_invariant_address.
2131 (tree_invariant_p_1): Likewise.
2132 (save_expr): Use it.
2133 (tree_invariant_p): New.
2134 (skip_simple_arithmetic): Use it.
2135 (stabilize_reference_1): Use it.
2136 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2138 (build1_stat): Drop code to compute TREE_INVARIANT.
2139 (build2_stat): Drop code to compute TREE_INVARIANT.
2140 (build3_stat): Drop code to compute TREE_INVARIANT.
2141 (build4_stat): Drop code to compute TREE_INVARIANT.
2142 (build5_stat): Drop code to compute TREE_INVARIANT.
2143 (build7_stat): Drop code to compute TREE_INVARIANT.
2144 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2145 * tree.h (struct tree_base): Remove invariant_flag.
2146 (TREE_INVARIANT): Remove.
2147 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2148 (fold_builtin_expect): Check TREE_CONSTANT.
2149 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2150 * c-tree.h (c_expr_to_decl): Drop third parameter.
2151 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2152 (build_c_cast): Don't set TREE_INVARIANT.
2153 (pop_init_level): Don't set TREE_INVARIANT.
2154 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2155 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2157 (gimplify_init_constructor): Don't set TREE_INVARIANT.
2158 (gimplify_addr_expr): Adjust comment.
2159 * tree-mudflap.c (mf_build_string):
2160 * print-tree.c (print_node): Don't print TREE_INVARIANT.
2161 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2162 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2163 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2164 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2165 * langhooks.h (struct lang_hooks): Drop third parameter from
2168 2008-04-23 Richard Guenther <rguenther@suse.de>
2170 PR tree-optimization/27799
2171 PR tree-optimization/32921
2172 PR tree-optimization/32624
2173 * tree-ssa-structalias.c (merge_smts_into): Only merge the
2174 SMTs aliases and the tag itself into the solution.
2175 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2176 merge the points-to solution back into the SMT aliases.
2177 (may_alias_p): Use alias_set_subset_of instead of
2178 aliases_conflict_p. A pointer which points to
2179 memory with alias set zero may access any variable.
2181 2008-04-23 Richard Guenther <rguenther@suse.de>
2183 * alias.c (alias_set_subset_of): Correctly handle asking
2184 if zero is a subset of an alias set with zero child.
2185 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2186 (compute_flow_insensitive_aliasing): Correctly walk all
2187 pointers. Do not unnecessarily union sets.
2189 2008-04-23 Richard Guenther <rguenther@suse.de>
2192 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2194 2008-04-22 Tomas Bily <tbily@suse.cz>
2196 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2198 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2200 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2201 * tree-ssa-structalias.c (get_constraint_for): Likewise.
2202 * tree-inline.c (estimate_num_insns_1): Likewise.
2203 * varasm.c (const_hash_1, compare_constant, copy_constant)
2204 (compute_reloc_for_constant, output_addressed_constants): Likewise.
2205 * emit-rtl.c (component_ref_for_mem_expr)
2206 (set_mem_attributes_minus_bitpos): Likewise.
2207 * expr.c (highest_pow2_factor, expand_expr_real_1, )
2208 (is_aligning_offset): Likewise.
2209 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2210 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2211 * dojump.c (do_jump): Likewise.
2212 * builtins.c (get_pointer_alignment, get_memory_rtx)
2213 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2214 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2216 2008-04-23 Jakub Jelinek <jakub@redhat.com>
2218 PR rtl-optimization/36017
2219 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2220 expanding the library call.
2222 2008-04-22 Ian Lance Taylor <iant@google.com>
2224 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2227 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
2229 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2230 of LR/CTR moves for Power6.
2232 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2235 * passes.c (init_optimization_passes): Remove
2236 pass_fast_rtl_byte_dce.
2238 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
2241 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2242 builtin functions to generate faster code.
2243 (_mm_cvtpu16_ps): Ditto.
2244 (_mm_cvtpi32x2_ps): Ditto.
2246 2008-04-22 Nick Clifton <nickc@redhat.com>
2248 * common.opt (ftree-loop-distribution): Add Optimization
2251 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2252 (frv_expand_builtin_va_start): Likewise.
2254 * config/arm/arm.c (thumb_find_work_register): Fix location of
2255 argument register count.
2257 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2259 Support scheduling for ColdFire V1 and V3 microarchitecture.
2260 Improve scheduling of multiplication instructions.
2262 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
2263 (mac): New instruction attribute.
2264 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2265 (m68k_sched_mac): New variable.
2266 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2267 Handle cfv1 and cfv3.
2268 (max_insn_size): New static variable.
2269 (struct _sched_ib): New type.
2270 (sched_ib): New static variable.
2271 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2272 to fields of 'struct _sched_ib sched_ib'. Update all uses.
2273 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2275 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2276 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
2277 new variables. Update.
2278 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2279 Add modeling of cfv3 instruction buffer. Update.
2280 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2281 * config/m68k/m68k.h (TUNE_CFV3): New macro.
2282 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2283 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2284 a particular reservation applies to.
2285 (type2): Reorganize attribute values. Rename alu to alu_reg,
2286 alu_l to alu, move_l to omove. Join move to alu. Split mul
2288 (cf_ib_*): Simplify description of instruction buffer.
2289 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2290 (cf_mem): Split into cf_mem1 and cf_mem2.
2291 (cf_v2_move_??): Rename to cfv12_alu_??.
2292 (cf_v2_move_l_??): Rename to cfv12_omove_??.
2293 (cf_v2_mul_??): Remove reservations.
2294 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2295 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2296 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2298 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2299 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2300 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2301 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2302 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2303 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2304 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2305 expansions of the above reservations for instructions of sizes
2308 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2310 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2312 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
2314 * coverage.c: Include tree-pass.h.
2315 (coverage_counter_alloc): Print da_file_name to the dump file.
2317 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
2319 * sbitmap.c (sbitmap_range_empty_p): New function.
2320 * sbitmap.h (sbitmap_range_empty_p): New function.
2321 * bitmap.h: Now includes obstack.h.
2323 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
2324 Kenneth Zadeck <zadeck@naturalbridge.com>
2326 * dbgcnt.def (ra_byte_scan): Added.
2327 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2328 when the last hit happens for a counter.
2329 * timevar.def (TV_DF_BYTE_LR): New variable.
2330 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2331 * passes.c (pass_fast_rtl_byte_dce): New pass.
2332 * fwprop.c (update_df): Added mode to call df_ref_create.
2333 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2334 DF_REF_EXTRACT_OFFSET.
2335 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
2336 DF_BYTE_LR_OUT, df_byte_lr): New macro.
2338 (df_ref_extract): Added mode field.
2339 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2340 DF_REF_EXTRACT_OFFSET.
2341 (DF_REF_EXTRACT_MODE): New macro.
2342 (df_byte_lr_bb_info): New structure.
2343 (df_print_byte_regset, df_compute_accessed_bytes,
2344 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2345 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2346 df_byte_lr_simulate_uses,
2347 df_byte_lr_simulate_artificial_refs_at_top,
2348 df_byte_lr_simulate_artificial_refs_at_end,
2349 df_compute_accessed_bytes): New function.
2350 (df_ref_create): Add parameter.
2351 (df_byte_lr_get_bb_info): New inline function.
2352 * df-scan.c (df_ref_record, df_uses_record,
2353 df_ref_create_structure): Added mode parameter.
2354 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
2355 df_defs_record, df_uses_record, df_get_conditional_uses,
2356 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2357 df_entry_block_defs_collect, df_exit_block_uses_collect):
2358 Added mode parameter to calls to df_ref_record, df_uses_record,
2359 df_ref_create_structure.
2360 (df_ref_equal_p, df_ref_compare): Added test for modes.
2361 (df_ref_create_structure): Added code to set mode. Renamed
2362 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2363 DF_REF_EXTRACT_OFFSET.
2364 * df-core.c (df_print_byte_regset): New function.
2365 * df-byte-scan.c: New file.
2366 * df-problems.c (df_rd_transfer_function): Removed unnecessary
2367 calls to BITMAP_FREE.
2368 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2369 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2370 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
2371 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
2372 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2373 df_byte_lr_local_compute, df_byte_lr_init,
2374 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2375 df_byte_lr_transfer_function, df_byte_lr_free,
2376 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2377 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
2378 df_byte_lr_simulate_uses,
2379 df_byte_lr_simulate_artificial_refs_at_top,
2380 df_byte_lr_simulate_artificial_refs_at_end): New function.
2381 * dce.c (byte_dce_process_block): New function.
2382 (dce_process_block): au is now passed in rather than computed
2383 locally. Changed loops that look at artificial defs to not look
2384 for conditional or partial ones, because there never are any.
2385 (fast_dce): Now is able to drive byte_dce_process_block or
2386 dce_process_block depending on the kind of dce being done.
2387 (rest_of_handle_fast_dce): Add parameter to fast_dce.
2388 (rest_of_handle_fast_byte_dce): New function.
2389 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2390 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2392 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
2395 * gcc.h: Added fortran options that take arguments to
2396 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2399 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2401 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2402 scalarization if on the LHS and not a full access.
2404 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2406 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2408 2008-04-18 Rafael Espindola <espindola@google.com>
2410 * tree-vrp.c (find_case_label_index): Fix the binary search.
2411 (find_case_label_range): New.
2412 (vrp_visit_switch_stmt): Use find_case_label_range.
2413 (simplify_switch_using_ranges): Use find_case_label_range.
2415 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2417 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2418 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2420 2008-04-18 Tom Tromey <tromey@redhat.com>
2423 * doc/cpp.texi (Implementation-defined behavior): Mention
2426 2008-04-18 Ian Lance Taylor <iant@google.com>
2428 * fold-const.c (pointer_may_wrap_p): New static function.
2429 (fold_comparison): Add another test for pointer overflow. Use
2430 pointer_may_wrap_p to disable some false positives.
2432 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
2434 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2435 (fname_as_string): Match updated cpp_interpret_string prototype.
2436 (fix_string_type): Support char16_t* and char32_t*.
2437 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2438 derivative) nodes. Register as builtin if C++0x.
2439 (c_parse_error): Support CPP_CHAR{16,32}.
2440 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
2441 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2442 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2443 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2444 CTI_CHAR32_ARRAY_TYPE>: New elements.
2445 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2446 char32_type_node, signed_char32_type_node, char16_array_type_node,
2447 char32_array_type_node): New defines.
2448 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2449 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2450 (lex_string): Support CPP_STRING{16,32}, match updated
2451 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2452 (lex_charconst): Support CPP_CHAR{16,32}.
2453 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2454 and CPP_STRING{16,32}.
2456 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2459 * aclocal.m4: Regenerate.
2460 * configure: Regenerate.
2462 2008-04-18 Jan Hubicka <jh@suse.cz>
2464 * except.c (dw2_size_of_call_site_table,
2465 sjlj_size_of_call_site_table): Use vector API for call_site_record.
2467 * cgraphbuild.c (build_cgraph_edges): Update.
2468 * tree-pass.h: Update comment.
2469 * final.c (leaf_function_p): Update.
2470 (leaf_renumber_regs): Update.
2471 (rest_of_clean_state): Update.
2472 * omp-low.c (expand_omp_parallel): Update.
2473 * ipa-reference.c (analyze_function): Update.
2474 * reorg.c (find_end_label): Update.
2475 (optimize_skip): Update.
2476 (fill_simple_delay_slots): Update.
2477 (fill_simple_delay_slots): Update.
2478 (make_return_insns): Update.
2479 (dbr_schedule): Update.
2480 * gimple-low.c (record_vars_into): Update.
2481 * cfgbuild.c (make_edges): Update.
2482 * function.c (assign_stack_local): Update.
2483 (assign_parm_adjust_stack_rtl): Update.
2484 (locate_and_pad_parm): Update.
2485 (allocate_struct_function): Do not initialize stack_alignment_needed
2486 and preferred_stack_boundary here.
2487 (stack_protect_prologue): Update.
2488 (stack_protect_epilogue): Update.
2489 (expand_function_start): Initialize stack_alignment_needed,
2490 preferred_stack_boundary and max_jumptable_ents.
2491 (expand_function_end): Update.
2492 (free_after_compilation): Do not NULLify epilogue_delay_list.
2493 * function.h (struct rtl_data): Add stack_protect_guard,
2494 stack_alignment_needed,
2495 preferred_stack_boundary, epilogue_delay_list.
2496 (struct function): Remove value_histograms, stack_alignment_needed,
2497 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2499 unexpanded_var_list, stack_protect_guard.
2500 (current_function_epilogue_delay_list): Remove.
2501 * ipa-type-escape.c (analyze_function): Update.
2502 * gimplify.c (pop_gimplify_context): Update comment.
2503 * calls.c (expand_call): Update.
2504 (emit_library_call_value_1): Update.
2505 * except.c (set_nothrow_function_flags): Update.
2506 * cfgexpand.c (get_decl_align_unit): Update.
2507 (create_stack_guard): Update.
2508 (estimated_stack_frame_size): Update.
2509 (expand_used_vars): Update.
2510 (tree_expand_cfg): Free histogram earliers, init expansion variables.
2511 * explow.c (allocate_dynamic_stack_space): Update.
2512 * tree-ssa-live.c (remove_unused_locals): Update.
2513 * varasm.c (mark_constant_pool): Update.
2514 * tree-inline.c (remap_decls): Update.
2515 (initialize_cfun): Update.
2516 (declare_return_variable): Update.
2517 (inline_forbidden_p): Update.
2518 (expand_call_inline): Update.
2519 (declare_inline_vars): Update.
2520 (tree_function_versioning): Update.
2521 * tree-flow.h (value_histograms): New.
2522 (VALUE_HISTOGRAMS): New macro.
2523 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
2525 * tree-cfg.c (set_bb_for_stmt): Update.
2526 (replace_by_duplicate_decl): Update.
2527 (move_block_to_fn): Update.
2528 (new_label_mapper): Update.
2529 (dump_function_to_file): Update.
2530 * ipa-struct-reorg.c (build_data_structure): Update.
2531 * cfgrtl.c (print_rtl_with_bb): Update.
2532 * reload1.c (reload): Update.
2534 * config/i386/i386.c (setup_incoming_varargs_64,
2535 ix86_compute_frame_layout): Update.
2536 * config/arc/arc.c (arc_output_function_epilogue): Update.
2538 2008-04-18 Marius Strobl <marius@FreeBSD.org>
2540 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
2541 for FreeBSD as well.
2542 * gthr-posix95.h: Likewise.
2544 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
2546 PR rtl-optimization/35838
2547 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
2548 out the byte offset of the first subreg.
2550 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
2552 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
2553 to split_ti instead of three separate calls with single member arrays.
2554 (subti3 splitter): Ditto.
2555 (adddi3 splitter): Ditto with split_di.
2556 (subdi3 splitter): Ditto.
2557 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
2558 two separate calls with single member arrays. Swap match_dup
2559 operands 1 and 2 to better fit into the array.
2560 (negdi2 splitter): Ditto with split_di.
2561 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
2562 two separate calls with single member arrays. Swap match_dup operands
2563 6 and 7 to better fit into the array.
2565 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
2567 * config/i386/i386.c (sse_builtin_type): New.
2568 (bdesc_sse_args): Likewise.
2569 (bdesc_sse_3arg): Removed.
2570 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2571 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
2572 IX86_BUILTIN_ROUNDPS.
2573 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
2574 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
2575 IX86_BUILTIN_ROUNDPS.
2576 (ix86_expand_sse_4_operands_builtin): Removed.
2577 (ix86_expand_sse_operands_builtin): New.
2578 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
2579 and CODE_FOR_sse4_1_roundps.
2580 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2581 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
2583 2008-04-17 Alan Modra <amodra@bigpond.net.au>
2586 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
2587 regs before frame pop when needed. If use_backchain_to_restore_sp
2588 then load backchain into a temp reg to restore vr and vrsave. Add
2589 code to restore vr after frame pop if possible.
2591 2008-04-17 Richard Guenther <rguenther@suse.de>
2593 * tree-vn.c (expressions_equal_p): Do not check type
2594 equality or compatibility before calling operand_equal_p.
2595 * fold-const.c (operand_equal_p): Check equivalence of
2596 integer constants before bailing out due to signedness or
2597 precision differences.
2598 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
2599 spurious differences in type qualification. Ignore types
2600 for COMPONENT_REFs at all.
2602 2008-04-17 Christian Bruel <christian.bruel@st.com>
2604 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
2605 msw_skip comparison.
2607 2008-04-16 Jakub Jelinek <jakub@redhat.com>
2610 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
2613 PR tree-optimization/35899
2614 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
2615 rather than TREE_OPERAND.
2617 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
2620 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
2621 temporary registers. Change operand predicate to general_operand.
2622 (remainderxf3): Ditto.
2624 2008-04-16 Richard Guenther <rguenther@suse.de>
2626 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
2627 * tree-affine.c (aff_combination_expand): Look through some
2630 2008-04-15 Doug Kwan <dougkwan@google.com>
2632 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
2634 * tree-pretty-print.c (dump_generic_node): Ditto.
2635 * final.c (output_addr_const): Ditto.
2636 * dwarf2out.c (output_cfi): Ditto.
2637 * c-pretty-print.c (pp_c_integer_constant): Ditto.
2638 * print-rtl.c (print_rtx): Ditto.
2639 * print-tree.c (print_node_brief, print_node): Ditto.
2640 * c-common.c (match_case_to_enum_1): Ditto.
2641 * sched-vis.c (print_value): Ditto.
2642 * config/i386/i386.c (print_operand): Cast to long unsigned int
2645 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
2646 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
2647 MS Windows VirtualProtect function.
2649 2008-04-15 Jan Hubicka <jh@suse.cz>
2651 * gengtype.c (write_root): Param_is argument is OK.
2652 * expr.c (expand_expr_real_1): Update call of get_exception_*.
2653 * function.h: Include varray.h
2654 (rtl_eh): New stucture based on except.c one.
2655 (call_site_record): New forward declaration and vector type.
2656 * calls.c (emit_call_1): Do not call
2657 note_current_region_may_contain_throw.
2658 * except.c (eh_status): Remove cur_region, try_region since they are
2660 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
2661 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
2662 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
2663 Remove call_site_data_used, call_site_data_size.
2664 Turn call_site_record into vector in function.h.
2665 (note_current_region_may_contain_throw): Remove.
2666 (get_exception_pointer, get_exception_filter): Do not take struct
2667 function argument; update.
2668 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
2669 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
2670 build_post_landing_pads, dw2_build_landing_pads,
2671 sjlj_assign_call_site_values, sjlj_mark_call_sites,
2672 sjlj_emit_function_enter, sjlj_emit_function_enter,
2673 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
2674 sjlj_build_landing_pads, finish_eh_generation,
2675 remove_exception_handler_label, remove_eh_handler,
2676 maybe_remove_eh_handler, add_reachable_handler,
2677 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
2678 add_action_record, collect_one_action_chain, add_call_site,
2679 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
2680 sjlj_output_call_site_table, output_function_exception_table,
2681 * except.h (note_current_region_may_contain_throw): Remove
2682 (get_exception_pointer, get_exception_filter): Do not take struct
2684 * Makefile.in (GTFILES): Put varargs before struct function.
2686 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2688 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
2689 punt for STRING_CST.
2690 (get_constraint_for): Deal with STRING_CST here instead.
2692 2008-04-15 Richard Guenther <rguenther@suse.de>
2694 * tree-ssa-propagate.c (substitute_and_fold): Substitute
2695 statements in a basic-block with a backward walk. Do not
2696 substitute into dead statements but instead remove those.
2698 2008-04-15 Richard Guenther <rguenther@suse.de>
2700 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
2701 to zero, thus disable creation of SFTs.
2703 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2705 * tree-predcom.c (suitable_reference_p): Return false if the
2706 reference can throw.
2708 2008-04-15 Jakub Jelinek <jakub@redhat.com>
2711 * c-decl.c (finish_decl): If extern or static var has variable
2712 size, set TREE_TYPE (decl) to error_mark_node.
2714 2008-04-15 Rafael Espindola <espindola@google.com>
2716 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
2719 2008-04-15 Richard Guenther <rguenther@suse.de>
2721 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2722 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
2723 (visit_reference_op_load): Do walk vuse-vdef chains on
2724 vn_reference_lookup.
2725 (visit_reference_op_store): But do not here.
2726 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
2727 vn_reference_lookup.
2728 (vn_lookup_with_vuses): But do so here.
2730 2008-04-14 Ian Lance Taylor <iant@google.com>
2732 * fold-const.c (fold_overflow_warning): Remove assertion.
2734 2008-04-15 Ben Elliston <bje@au.ibm.com>
2736 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
2737 temp1 local variables.
2739 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
2742 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
2743 ".text.unlikely" section as executable.
2745 2008-04-14 James E. Wilson <wilson@tuliptree.org>
2747 * config/ia64/ia64.c (rtx_needs_barrier): Handle
2748 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
2749 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
2750 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
2751 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
2752 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
2753 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
2755 2008-04-14 Ian Lance Taylor <iant@google.com>
2757 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
2758 * fold-const.c (fold_comparison): If appropriate, test
2759 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
2760 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
2761 reassociating a pointer type.
2762 * doc/invoke.texi (Optimize Options): Document that
2763 -fstrict-overflow applies to pointer wraparound.
2765 2008-04-13 Jan Hubicka <jh@suse.cz>
2767 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
2769 2008-04-12 Andrew Pinski <pinskia@gmail.com>
2771 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
2772 we are going to "save the world".
2774 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
2776 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
2777 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
2778 operand 0 constraint, not "=".
2780 2008-04-11 James E. Wilson <wilson@tuliptree.org>
2782 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
2784 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
2786 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
2787 of size of positions_needed * CHAR_BIT.
2789 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
2792 * dse.c (store_info): Change positions_needed to unsigned
2794 (lowpart_bitmask): New.
2795 (record_store): Cast to unsigned HOST_WIDE_INT for
2796 positions_needed. Assert width <= size of positions_needed *
2797 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
2798 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
2799 lowpart_bitmask to set mask.
2801 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
2803 * config/bfin/constraints.md: New file.
2804 * config/bfin/bfin.md: Include it.
2805 (adddi3): Use satisfies_constraint functions instead of the old macros.
2806 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
2807 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
2808 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
2809 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
2810 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
2811 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
2812 EXTRA_CONSTRAINT): Delete.
2813 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
2814 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
2816 * config/bfin/bfin.c: Include "tm-constrs.h".
2817 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
2818 Use satisfies_constraint functions instead of the old macros.
2819 * doc/md.texi (Blackfin Constraints): Update file name reference.
2821 2008-04-11 Richard Guenther <rguenther@suse.de>
2823 PR tree-optimization/35869
2824 * tree-vrp.c (execute_vrp): Move switch statement update after
2825 jump threading. Schedule another cfg cleanup run.
2827 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
2830 * attribs.c (decl_attributes): Return early on errorneous node.
2832 2008-04-10 Oleg Ryjkov <olegr@google.com>
2834 * tree.h (struct tree_base): Added a new flag default_def_flag.
2835 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
2837 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
2839 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
2841 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2844 * pa.md: Define mode iterator P. Define mode attribute dwc.
2845 (dcacheflush): Update pattern to use iterator P and attribute dwc.
2846 (icacheflush): Likewise.
2847 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
2848 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
2850 2008-04-11 Ben Elliston <bje@au.ibm.com>
2852 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
2854 2008-04-10 Rafael Espindola <espindola@google.com>
2856 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
2857 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
2858 (extract_range_from_expr): The same.
2860 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
2862 * config/mips/mips.md (GPR2): New mode iterator.
2864 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
2865 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
2866 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
2867 Rewrite these to take two modes, the mode of comparison and the
2868 mode of the destination.
2869 * config/mips/mips.c (mips_expand_scc): Instead of having
2870 paradoxical subreg as destination, expand "narrowing" scc if mode
2871 of comparison is SI and target is requested in DI mode.
2872 (mips_emit_int_order_test): Update comment. Make mode of
2873 comparison match CMP0 rather than TARGET. When creating inverse
2874 target use mode of TARGET.
2876 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
2878 * gcov-dump.c (tag_summary): Only print summaries for the first
2879 GCOV_COUNTERS_SUMMABLE counters.
2881 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
2883 * config/i386/i386.md (absneg): New code iterator.
2884 (absnegprefix): New code attribute.
2885 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
2886 patterns using absneg code iterator.
2887 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
2888 using absneg code iterator.
2889 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
2890 *neg<mode>2 patterns using absneg code iterator.
2891 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2892 *negextendsfdf2 patterns using absneg code iterator.
2893 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
2894 *negextendsfxf2 patterns using absneg code iterator.
2895 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2896 *negextendsfdf2 patterns using absneg code iterator.
2897 * config/i386/sse.md (<code><mode>2): Macroize expander from
2898 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
2900 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
2902 * config/s390/s390.h: Remove the remains of the recent search
2903 & replace action of current_function_outgoing_args_size.
2905 2008-04-10 Ira Rosen <irar@il.ibm.com>
2907 PR tree-optimization/35821
2908 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
2909 NEW_STMT_LIST is not NULL.
2911 2008-04-09 David Edelsohn <edelsohn@gnu.org>
2914 * toplev.c (process_options): Remove -ffunction-sections debugging
2917 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
2919 PR middle-end/PR28690
2920 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
2921 than gen_rtx_fmt_ee to perform more canonicalizations.
2923 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2926 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
2928 2008-04-09 Richard Guenther <rguenther@suse.de>
2930 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
2931 (dump_function_to_file): Dump function arguments with types.
2933 2008-04-08 Richard Guenther <rguenther@suse.de>
2935 * fold-const.c (fold_widened_comparison): Do not allow
2936 sign-changes that change the result.
2938 2008-04-08 Janis Johnson <janis187@us.ibm.com>
2941 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
2942 kinds of indirect references.
2944 2008-04-08 David Edelsohn <edelsohn@gnu.org>
2946 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
2947 GNU Fortran language string.
2949 2008-04-08 Rafael Espindola <espindola@google.com>
2951 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
2952 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
2953 * tree.h (tree_call_nonnegative_warnv_p): New.
2955 2008-04-08 Jan Hubicka <jh@suse.cz>
2957 * function.c (free_after_compilation): Clear out regno_reg_rtx
2960 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
2963 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
2965 PR middle-end/PR28690
2966 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
2967 same precedence as REG_POINTER and MEM_POINTER operands.
2969 2008-04-08 Richard Guenther <rguenther@suse.de>
2972 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
2973 for adding index to base.
2975 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
2977 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
2978 (MINGW_ENABLE_EXECUTE_STACK): New.
2979 (IN_LIBGCC2): For libgcc include windows.h file for
2980 function declarations.
2982 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
2984 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
2985 and tem2 if tem1 is not a REG or MULT.
2987 2008-04-08 Jan Hubicka <jh@suse.cz>
2989 * function.h (incomming_args): Break out of struct function.
2990 (function_subsections): Break out of struct function.
2991 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
2992 return_rtx and hard_reg_initial_vals from struct function.
2993 Kill inl_max_label_num.
2994 (current_function_pops_args, current_function_args_info,
2995 current_function_args_size, current_function_args_size,
2996 current_function_pretend_args_size,
2997 current_function_outgoing_args_size,
2998 current_function_internal_arg_pointer, current_function_return_rtx):
2999 Kill compatibility accestor macros.
3000 * builtins.c (expand_builtin_apply_args_1): Update.
3001 (expand_builtin_next_arg): Update.
3002 * df-scan.c (df_get_call_refs): Update.
3003 * dbxout.c (dbxout_function_end): Update.
3004 * dwarf2out.c (dwarf2out_switch_text_section): Update.
3005 (output_line_info): Update.
3006 (secname_for_decl): Update.
3007 (dwarf2out_var_location): Update.
3008 * function.c (free_after_compilation): Update.
3009 (assign_parm_find_stack_rtl): Update.
3010 (assign_parms): Update.
3011 (expand_dummy_function_end): Update.
3012 (expand_function_end): Update.
3013 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
3014 (expand_call): Update.
3015 (emit_library_call_value_1): Update.
3016 (store_one_arg): Update.
3017 * varasm.c (initialize_cold_section_name): Update.
3018 (unlikely_text_section): Update.
3019 (unlikely_text_section_p): Update.
3020 (assemble_start_function): Update.
3021 (assemble_end_function): Update.
3022 (default_section_type_flags): Update.
3023 (switch_to_section): Update.
3024 * integrate.c (set_decl_abstract_flags): Update.
3025 (get_hard_reg_initial_val): Update.
3026 (has_hard_reg_initial_val): Update.
3027 (allocate_initial_values): Update.
3028 * resource.c (init_resource_info): Update.
3029 * config/alpha/alpha.c (NUM_ARGS): Update.
3030 (direct_return): Update.
3031 (alpha_va_start): Update.
3032 (alpha_sa_size): Update.
3033 (alpha_initial_elimination_offset): Update.
3034 (alpha_expand_prologue): Update.
3035 (alpha_start_function): Update.
3036 (alpha_expand_epilogue): Update.
3037 (unicosmk_initial_elimination_offset):
3038 * config/alpha/alpha.md (call expander): Update.
3039 * config/s390/s390.c (s390_register_info): Update.
3040 (s390_register_info): Update.
3041 (s390_frame_info): Update.
3042 (s390_initial_elimination_offset): Update.
3043 (s390_build_builtin_va_list): Update.
3044 (s390_va_start): Update.
3045 * config/spu/spu.c (direct_return): Update.
3046 (spu_expand_prologue): Update.
3047 (spu_initial_elimination_offset): Update.
3048 (spu_build_builtin_va_list): Update.
3049 (spu_va_start): Update.
3050 * config/sparc/sparc.c (sparc_init_modes): Update.
3051 (sparc_compute_frame_size): Update.
3052 (function_value): Update.
3053 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
3054 * config/i386/i386.md (return expander): Update.
3055 * config/i386/i386.c (ix86_va_start): Update.
3056 (ix86_can_use_return_insn_p): Update.
3057 (ix86_compute_frame_layout): Update.
3058 (ix86_expand_epilogue): Update.
3059 * config/sh/sh.c (output_stack_adjust): Update.
3060 (calc_live_regs): Update.
3061 (sh_expand_prologue): Update.
3062 (sh_builtin_saveregs): Update.
3063 (sh_va_start): Update.
3064 (initial_elimination_offset): Update.
3065 (sh_allocate_initial_value): Update.
3066 (sh_function_ok_for_sibcall): Update.
3067 (sh_get_pr_initial_val): Update.
3068 * config/sh/sh.md (return expander): Update.
3069 * config/avr/avr.c (frame_pointer_required_p): UPdate.
3070 * config/crx/crx.c (crx_compute_frame): UPdate.
3071 (crx_initial_elimination_offset): UPdate.
3072 * config/xtensa/xtensa.c (compute_frame_size): Update
3073 (xtensa_builtin_saveregs): Update.
3074 (xtensa_va_start): Update.
3075 (order_regs_for_local_alloc): Update.
3076 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
3077 (xstormy16_expand_builtin_va_start): Update.
3078 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
3079 * config/m68hc11/m68hc11.md (return expanders): Update.
3080 * config/m68hc11/m68hc11.c (expand_prologue): Update.
3081 (expand_epilogue): Update.
3082 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
3083 (cris_simple_epilogue): Update.
3084 (cris_expand_prologue): Update.
3085 (cris_expand_epilogue): Update.
3086 * config/iq2000/iq2000.c (iq2000_va_start): Update.
3087 (compute_frame_size): Update.
3088 * config/mt/mt.c (mt_compute_frame_size): Update.
3089 * config/mn10300/mn10300.c (expand_prologue): Update.
3090 (expand_epilogue): Update.
3091 (initial_offset): Update.
3092 (mn10300_builtin_saveregs):
3093 * config/mn10300/mn10300.md (return expander): Update.
3094 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3095 (ia64_initial_elimination_offset): Update.
3096 (ia64_initial_elimination_offset): Update.
3097 (ia64_expand_prologue): Update.
3098 * config/m68k/m68k.md (return expander): Update.
3099 * config/rs6000/rs6000.c (rs6000_va_start): Update.
3100 (rs6000_stack_info): Update.
3101 * config/mcore/mcore.c (layout_mcore_frame): Update.
3102 (mcore_expand_prolog): Update.
3103 * config/arc/arc.c (arc_compute_frame_size): Update.
3104 * config/score/score3.c (score3_compute_frame_size): Update.
3105 * config/score/score7.c (score7_compute_frame_size): Update.
3106 * config/arm/arm.c (use_return_insn): Update.
3107 (thumb_find_work_register): Update.
3108 (arm_compute_save_reg_mask): Update.
3109 (arm_output_function_prologue): Update.
3110 (arm_output_epilogue): Update.
3111 (arm_size_return_regs): Update.
3112 (arm_get_frame_offsets): Update.
3113 (arm_expand_prologue): Update.
3114 (thumb_exit): Update.
3115 (thumb_unexpanded_epilogue): Update.
3116 (thumb1_output_function_prologue): Update.
3117 * config/pa/pa.md (return expander): Update.
3118 * config/pa/pa.c (compute_frame_size): Update.
3119 (hppa_builtin_saveregs): Update.
3120 * config/mips/mips.c (mips_va_start): Update.
3121 (mips16_build_function_stub): Update.
3122 (mips_compute_frame_info): Update.
3123 (mips_restore_gp): Update.
3124 (mips_output_function_prologue): Update.
3125 (mips_expand_prologue): Update.
3126 * config/v850/v850.c (compute_frame_size): Update.
3127 (expand_prologue): * config/mmix/mmix.c (along): update.
3128 (mmix_initial_elimination_offset): update.
3129 (mmix_reorg): update.
3130 (mmix_use_simple_return): update.
3131 (mmix_expand_prologue): update.
3132 (mmix_expand_epilogue): Update.
3133 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3134 (emit_link_insn): Update.
3136 2008-04-08 Anatoly Sokolov <aesok@post.ru>
3138 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
3139 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
3141 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
3144 2008-04-07 Jan Hubicka <jh@suse.cz>
3146 * function.h (rtl): Rename to x_rtl.
3148 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3149 frame_offset, stack_check_probe_note, arg_pointer_save_area,
3150 used_temp_slots avail_temp_slots, temp_slot_level,
3151 nonlocal_goto_handler_labels): Update accesstors.
3152 (rtl): New global variable.
3153 (struct function): Move some fileds to rtl_data.
3154 (get_arg_pointer_save_area): Update prototype.
3155 * builtins.c (expand_builtin_setjmp_receiver): Update call of
3156 get_arg_pointer_save_area.
3157 * expr.c (init_expr): Update
3158 * function.c (get_frame_size): Update
3159 (assign_stack_local): Update
3160 (expand_function_end): Update.
3161 (get_art_pointer_save_area): Update
3163 * emit-rtl.c (rtl): Declare.
3164 (regno_reg_rtx): Declare.
3165 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3167 (gen_reg_rtx): Update.
3168 * varasm.c (n_deferred_constatns): Update accestor.
3169 (init_varasm_status): Do not allocate varasm_status.
3170 (force_const_mem, get_pool_size, output_constant_pool): Update.
3171 * stmt.c (force_label_rtx): Do not use x_ prefixes.
3172 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3173 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3174 * sparc/sparc.h (INIT_EXPANDERS): Update.
3175 * ia64/ia64.h (INIT_EXPANDERS): Update.
3177 2008-04-07 James E. Wilson <wilson@tuliptree.org>
3179 * reload.c (push_secondary_reload): Add missing break to for loop.
3181 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
3183 PR middle-end/PR28690
3184 * rtlanal.c: Update copyright years.
3185 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3186 as REG_POINTER and MEM_POINTER operands.
3187 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3188 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3189 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3190 * gcse.c: Update copyright years.
3191 (pre_delete): Call gen_reg_rtx_and_attrs.
3192 (hoist_code): Likewise.
3193 (build_store_vectors): Likewise.
3194 (delete_store): Likewise.
3195 * loop-invariant.c (move_invariant_reg): Likewise.
3196 Update copyright years.
3198 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
3200 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3201 control string instead of quoted.
3203 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3205 * doc/rtl.texi: Rewrite of subreg section.
3207 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
3210 * config/i386/i386.c (legitimize_pic_address): Add treating
3211 of dllimport SYM_REF's.
3212 (legitimize_dllimport_symbol): Add prototype.
3214 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3216 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
3217 reference in constructor with non self-referential type.
3219 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3221 Removal of Return with Depressed Stack Pointer support
3222 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3223 (ECF_SP_DEPRESSED): Likewise.
3224 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3225 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3226 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3227 (expand_call): Do not test ECF_SP_DEPRESSED.
3228 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3229 * function.c (keep_stack_depressed): Delete.
3230 (handle_epilogue_set): Likewise.
3231 (update_epilogue_consts): Likewise.
3232 (emit_equiv_load): Likewise.
3233 (thread_prologue_and_epilogue_insns): Remove support for Return with
3234 Depressed Stack Pointer.
3235 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3237 2008-04-06 Richard Guenther <rguenther@suse.de>
3239 PR tree-optimization/35400
3240 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3241 information from SSA_NAMEs.
3243 2008-04-06 Anatoly Sokolov <aesok@post.ru>
3245 * config/avr/avr.h (avr_mega_p): Remove declaration.
3246 (AVR_MEGA): Remove macro.
3247 * config/avr/avr.c (avr_mega_p): Remove variable.
3248 (avr_override_options): Remove inicializion of avr_mega_p.
3249 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3250 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3251 (avr_jump_mode): (Ditto.).
3252 (avr_output_progmem_section_asm_op): (Ditto.).
3253 (avr_asm_init_sections): (Ditto.).
3254 (avr_asm_init_sections): (Ditto.).
3255 (avr_rtx_costs): (Ditto.).
3256 * config/avr/avr.md: (Ditto.).
3257 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
3260 2008-04-06 Richard Guenther <rguenther@suse.de>
3262 PR tree-optimization/35842
3263 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3264 is_gimple_invariant_address.
3266 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3268 * gcc.c (default_compilers): Sync Fortran extensions list with
3269 that in fortran/lang-specs.h.
3270 * doc/invoke.texi: Likewise.
3271 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3272 * dwarf2out.c (gen_compile_unit_die): Likewise.
3274 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
3276 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3278 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
3281 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3282 attribute is used for nested functions.
3284 2008-04-05 Jan Hubicka <jh@suse.cz>
3286 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3288 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3290 (dump_files): Update.
3291 (enable_rtl_dump_file): Do not accept letter argument.
3292 * tree-pass.h (dump_file_info): Remove letter argument.
3293 * toplev.c (decode_d_option): Update -da handling.
3294 * toplev.h (enable_rtl_dump_file): Update prototype.
3295 * passes.c (register_one_dump_file): Do not accept IPA argument; work
3296 it out based on pass type.
3297 (register_dump_files_1): Likewise.
3298 (init_optimization_passes): Update register_one_dump_file calls.
3299 (execute_one_pass): Sanity check that IPA passes are called at IPA
3300 level and RTL passes at RTL level.
3301 (execute_pass_list): IPA pass can not be after or subpass of
3303 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3304 disallov RTL subpasses of IPA subpasses.
3306 2008-04-05 Ben Elliston <bje@au.ibm.com>
3308 * tree-cfg.c (need_fake_edge_p): Return false for calls to
3309 builtins that return exactly once and do not throw. Cache call to
3312 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3314 PR rtl-optimization/34916
3316 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3317 between instruction pairs.
3319 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
3321 * doc/invoke.texi: Document -mbitops for SH.
3322 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3323 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3324 * config/sh/sh.c (print_operand): Add %t operand code.
3325 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3326 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3327 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
3328 (extendqihi2): Likewise.
3329 (movqi_i): Likewise.
3330 (insv): Use bset, bclr and bst instructions for SH2A if possible.
3331 (extv): Use bld instruction for SH2A if possible.
3333 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
3334 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
3335 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
3336 (bset.b, bclr.b): Define peepholes.
3337 * config/sh/sh.opt (mbitops): New option.
3339 2008-04-04 Janis Johnson <janis187@us.ibm.com>
3342 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
3343 and view convert expression.
3345 2008-04-04 Jakub Jelinek <jakub@redhat.com>
3348 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3350 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
3352 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
3354 * config/i386/cpuid.h (bit_AES): New.
3355 (bit_PCLMUL): Likewise.
3357 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
3358 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
3359 SSE2 if AES or PCLMUL is enabled.
3360 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
3361 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3362 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
3363 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
3364 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
3365 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
3366 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3367 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
3368 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
3369 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
3370 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
3371 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
3372 __builtin_ia32_aeskeygenassist128 and
3373 __builtin_ia32_pclmulqdq128.
3374 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
3375 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
3376 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
3378 * config/i386/i386.h (TARGET_AES): New.
3379 (TARGET_PCLMUL): Likewise.
3380 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
3382 * config/i386/i386.md (UNSPEC_AESENC): New.
3383 (UNSPEC_AESENCLAST): Likewise.
3384 (UNSPEC_AESDEC): Likewise.
3385 (UNSPEC_AESDECLAST): Likewise.
3386 (UNSPEC_AESIMC): Likewise.
3387 (UNSPEC_AESKEYGENASSIST): Likewise.
3388 (UNSPEC_PCLMUL): Likewise.
3390 * config/i386/i386.opt (maes): New.
3391 (mpclmul): Likewise.
3393 * config/i386/sse.md (aesenc): New pattern.
3394 (aesenclast): Likewise.
3396 (aesdeclast): Likewise.
3398 (aeskeygenassist): Likewise.
3399 (pclmulqdq): Likewise.
3401 * config/i386/wmmintrin.h: New.
3403 * doc/extend.texi: Document AES and PCLMUL built-in function.
3405 * doc/invoke.texi: Document -maes and -mpclmul.
3407 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
3409 * function.c (free_after_parsing): Replace with
3410 cxx_push_function_context from C++ front-end.
3411 (allocate_struct_function): Don't call langhook.
3412 * langhooks.h (struct lang_hooks_for_functions): Delete.
3413 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
3415 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
3416 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
3417 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3418 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
3419 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
3420 remove LANG_HOOKS_FUNCTION_INITIALIZER.
3421 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
3423 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
3424 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
3426 2008-04-04 Jakub Jelinek <jakub@redhat.com>
3429 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
3432 2008-04-04 Richard Guenther <rguenther@suse.de>
3435 * fold-const.c (optimize_minmax_comparison): Use the correct
3436 type for the constant in the simplified comparison.
3438 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
3440 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
3441 Pass L2 size as "--param l2-cache-size" to the compiler.
3442 (decode_l2_cache): New function to decode L2 cache parameters using
3443 0x8000006 extended cpuid function.
3444 (detect_caches_amd): Determine parameters of L2 cache using
3445 decode_l2_caches function.
3446 (decode_caches_intel): Decode L2 cache parameters.
3447 (detect_caches_intel): Determine L2 cache parameters using
3448 decode_caches_intel and decode_l2_caches functions.
3450 2008-04-03 Bob Wilson <bob.wilson@acm.org>
3452 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
3453 secondary input reload for subword loads from the constant pool.
3455 2008-04-03 Janis Johnson <janis187@us.ibm.com>
3458 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
3459 constants of the appropriate size for runtime calculations.
3462 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
3463 decimal-float literal constant zero.
3465 2008-04-03 Jakub Jelinek <jakub@redhat.com>
3468 * c-parser.c (c_parser_omp_atomic): Call
3469 default_function_array_conversion on the RHS.
3472 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
3473 call is_variable_sized if decl has incomplete type.
3475 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
3477 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
3479 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
3481 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
3483 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
3484 (sgt<u>): Merge sgt and sgtu into new expander.
3485 (sgt, sgtu): Remove expanders.
3486 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
3487 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
3488 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
3489 *sgtu_<mode>_mips16 into new pattern.
3490 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
3491 (sge<u>): Merge sge and sgeu into new expander.
3492 (sge, sgeu): Remove expanders.
3493 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
3495 (*sge_<mode>, second *sge_<mode>): Remove patterns.
3496 (slt<u>): Merge slt and sltu into new expander.
3497 (slt, sltu): Remove expanders.
3498 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
3499 (*slt_<mode>, *sltu_<mode>): Remove patterns.
3500 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
3501 *sltu_<mode>_mips16 into new pattern.
3502 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
3503 (sle<u>): Merge sle and sleu into new expander.
3504 (sle, sleu): Remove expanders.
3505 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
3506 (*sle_<mode>, *sleu_<mode>): Remove patterns.
3507 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
3508 *sleu_<mode>_mips16 into new pattern.
3509 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
3511 2008-04-03 Jan Hubicka <jh@suse.cz>
3513 PR tree-optimization/35795
3514 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
3515 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3516 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3517 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
3518 * score/score3.c (score3_output_mi_thunk): Likewise.
3519 * score/score7.c (score7_output_mi_thunk): Likewise.
3520 * mips/mips.c (mips_output_mi_thunk): Likewise.
3522 2008-04-03 Richard Guenther <rguenther@suse.de>
3524 * tree-vrp.c (extract_range_from_unary_expr): Handle all
3525 conversions. Simplify code.
3527 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
3529 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
3531 2008-04-03 Tom Tromey <tromey@redhat.com>
3532 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3534 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
3535 * config/bfin/t-bfin-linux (generated_files): Add
3536 linux-sysroot-suffix.h.
3537 * doc/install.texi (Prerequisites): Require make 3.80.
3538 * doc/sourcebuild.texi (Front End Directory): Document new
3540 * Makefile.in (generated_files): New variable.
3541 (ALL_HOST_OBJS): New variable.
3542 ($(ALL_HOST_OBJS)): New target.
3544 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3546 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
3547 (remap_block): Call id->transform_lang_insert_block instead
3549 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
3550 Set id.transform_lang_insert_block to NULL.
3551 (clone_body): Move to cp/optimize.c
3552 * tree-inline.h (struct copy_body_data): Change
3553 transform_lang_insert_block to function pointer.
3554 (copy_generic_body, copy_decl_no_change): Export.
3555 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
3556 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
3557 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
3559 * c-tree.h (insert_block): Kill.
3560 * c-decl.c (insert_block): Kill.
3562 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3564 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3565 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3566 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
3568 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
3569 argument, call {push,pop}_function_context from here.
3570 * c-parser.c: Use c_{push,pop}_function_context.
3572 * function.c (push_function_context_to): Move meat ...
3573 (push_function_context): ... here. Simplify.
3574 * function.c (pop_function_context_from): Move meat ...
3575 (pop_function_context): ... here. Simplify.
3576 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
3578 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3579 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3580 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
3581 * tree.h (push_function_context_to, pop_function_context_from): Remove.
3583 2008-04-03 Ben Elliston <bje@au.ibm.com>
3585 * expmed.c (extract_force_align_mem_bit_field): Remove.
3587 2008-04-03 Richard Guenther <rguenther@suse.de>
3590 * expr.h (try_casesi): Adjust prototype.
3591 * expr.c (try_casesi): Take fallback label as extra parameter.
3592 Use that for gen_casesi if default_label is NULL.
3593 * stmt.c (expand_case): Pass fallback label to try_casesi,
3594 make sure to fill gaps with a fallback label if default_label
3597 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
3600 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
3602 2008-04-03 Ben Elliston <bje@au.ibm.com>
3604 * expmed.c (extract_split_bit_field): Remove if (0) code.
3605 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
3606 (do_ds_constraint): Likewise.
3608 2008-04-02 Joseph Myers <joseph@codesourcery.com>
3610 * doc/cppopts.texi (-dU): Document.
3611 * c-common.h (flag_dump_macros): Update comment.
3612 * c-opts.c (handle_OPT_d): Handle -dU.
3613 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
3614 dump_queued_macros, cb_used_define, cb_used_undef): New.
3615 (init_pp_output): Handle -dU.
3616 (cb_line_change): Call dump_queued_macros.
3617 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
3619 2008-04-02 Anatoly Sokolov <aesok@post.ru>
3621 * config/avr/predicates.md (io_address_operand): New predicate.
3622 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
3623 * config/avr/avr.c (avr_io_address_p): Remove function.
3624 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
3625 'avr_io_address_p' function.
3626 (out_movhi_r_mr): (Ditto.).
3627 (out_movqi_mr_r): (Ditto.).
3628 (out_movhi_mr_r): (Ditto.).
3629 (avr_address_cost): (Ditto.).
3631 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
3633 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
3634 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
3635 in 32bit mode when XMM registers are available to avoid store
3637 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
3638 corresponding post-reload splitters.
3640 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
3642 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
3643 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
3644 __builtin_ia32_roundss.
3645 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
3646 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
3647 __builtin_ia32_roundss.
3648 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
3649 IX86_BUILTIN_SHUFPD here.
3651 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
3653 * config/i386/i386.md (plogic): New.
3654 (plogicprefix): Likewise.
3656 * config/i386/mmx.md (mmx_<code><mode>3): New.
3657 (mmx_and<mode>3): Removed.
3658 (mmx_ior<mode>3): Likewise.
3659 (mmx_xor<mode>3): Likewise.
3661 * config/i386/sse.md (<code><mode>3): New.
3662 (*<code><mode>3): Likewise.
3663 (*<code><mode>3): Likewise.
3664 (<code><mode>3): Likewise.
3665 (*sse_<code><mode>3): Likewise.
3666 (*sse2_<code><mode>3): Likewise.
3667 (<code>tf3): Likewise.
3668 (*<code>tf3): Likewise.
3669 (and<mode>3): Likewise.
3670 (*and<mode>3): Likewise.
3671 (ior<mode>3): Removed.
3672 (*ior<mode>3): Likewise.
3673 (xor<mode>3): Likewise.
3674 (*xor<mode>3): Likewise.
3675 (*and<mode>3): Likewise.
3676 (*ior<mode>3): Likewise.
3677 (*xor<mode>3): Likewise.
3678 (and<mode>3): Likewise.
3679 (*sse_and<mode>3): Likewise.
3680 (*sse2_and<mode>3): Likewise.
3682 (*andtf3): Likewise.
3683 (ior<mode>3): Likewise.
3684 (*sse_ior<mode>3): Likewise.
3685 (*sse2_ior<mode>3): Likewise.
3687 (*iortf3): Likewise.
3688 (xor<mode>3): Likewise.
3689 (*sse_xor<mode>3): Likewise.
3690 (*sse2_xor<mode>3): Likewise.
3692 (*xortf3): Likewise.
3694 2008-04-02 Richard Guenther <rguenther@suse.de>
3696 PR tree-optimization/14495
3697 PR tree-optimization/34793
3698 * tree-vrp.c (struct switch_update): New structure.
3699 (to_remove_edges, to_update_switch_stmts): New VECs.
3700 (simplify_switch_using_ranges): New function. Remove not taken
3701 case labels and edges.
3702 (simplify_stmt_using_ranges): Call it.
3703 (identify_jump_threads): Mark edges we have queued for removal
3704 so we don't thread them.
3705 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
3707 * tree-cfg.c (group_case_labels): Deal with missing default label.
3708 (tree_verify_flow_info): Allow missing default label.
3709 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
3710 (emit_case_nodes): Likewise.
3711 (expand_case): Do not rely on the default label to be present.
3712 * expr.c (try_casesi): Deal with NULL default_label.
3713 (do_tablejump): Likewise.
3715 2008-04-02 Richard Guenther <rguenther@suse.de>
3717 PR tree-optimization/14495
3718 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
3719 SWITCH_EXPR here ...
3720 (vrp_visit_switch_stmt): ... but here (new function).
3721 (find_case_label_index): New helper function.
3722 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
3724 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3726 * fwprop.c: Fix ISO-C99ism.
3728 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3731 * Makefile.in (objdir): Set it here.
3732 * configure.ac: Not here. Find dynamic linker characteristics.
3733 * exec-tool.in: Use them.
3734 * aclocal.m4: Regenerate.
3735 * configure: Regenerate.
3737 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3739 * expr.c (expand_var): Delete it.
3740 * expr.h (expand_var): Delete prototype.
3741 * function.c (expand_function_start): Use expand_decl instead.
3742 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
3745 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
3747 PR rtl-optimization/35542
3748 * fwprop.c (forward_propagate_and_simplify): Replace
3749 loc_reg_mentioned_in_p with reg_mentioned_p.
3751 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
3753 PR rtl-optimization/35281
3754 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
3755 (propagate_rtx_1): Handle PR_HANDLE_MEM.
3756 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
3757 (varying_mem_p): Move above propagate_rtx.
3758 (all_uses_available_at): Do not check MEMs.
3760 2008-04-02 Rafael Espindola <espindola@google.com>
3762 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
3763 (register_edge_assert_for_2): Split the cond argument.
3764 (register_edge_assert_for_1): Adjust for the change in
3765 register_edge_assert_for_2.
3766 (register_edge_assert_for): Split the cond argument.
3767 (find_switch_asserts): Adjust for the change in
3768 register_edge_assert_for.
3770 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
3772 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
3773 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
3774 offsets for 64-bit mingw.
3775 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
3776 abi for x86_64-pc-mingw.
3778 2008-04-02 Richard Guenther <rguenther@suse.de>
3780 * tree-vrp.c (extract_range_from_assert): Make sure to not
3781 produce range min/max with TREE_OVERFOW set.
3782 If merging a anti-range and a range keep the anti-range if
3783 the range covers all values of the type.
3784 (register_edge_assert_for_2): Only allow sign-changing
3785 conversions in detecting canonical range checks. Also
3786 register an assert for the unsigned name if useful.
3788 PR tree-optimization/35787
3789 * tree-vrp.c (vrp_val_max): New function.
3790 (vrp_val_min): Likewise.
3791 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
3792 (vrp_val_is_min): Likewise.
3793 (supports_overflow_infinity): Use vrp_val_{min,max}.
3794 (negative_overflow_infinity): Likewise.
3795 (positive_overflow_infinity): Likewise.
3796 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
3797 (is_positive_overflow_infinity): Likewise.
3798 (is_overflow_infinity): Likewise.
3799 (avoid_overflow_infinity): Use vrp_val_{min,max} and
3800 vrp_val_is_{min,max}.
3801 (set_and_canonicalize_value_range): Canonicalize anti-ranges
3802 to ranges if possible. Avoid empty ranges.
3804 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3807 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
3808 the expression is a function address.
3810 2008-04-01 George Helffrich <george@gcc.gnu.org>
3812 PR fortran/35154, fortran/23057
3813 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
3814 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
3815 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
3816 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
3818 (dbxout_syms): Check for COMMON-based symbol and wrap in
3819 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
3820 in bracket for efficiency.
3822 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
3823 using DW_TAG_common_block + member offset.
3824 (add_pubname_string): New function.
3825 (dw_expand_expr): New function to find block name and offset for
3827 (common_check): New function to check whether symbol in Fortran COMMON.
3828 (gen_variable_die): If COMMON, use DW_TAG_common_block.
3830 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
3833 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
3835 2008-04-02 Ben Elliston <bje@au.ibm.com>
3837 * config/v850/v850.md (casesi): Remove if (0) code.
3838 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3839 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
3841 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
3843 * config/i386/i386.md (rex64suffix): New mode attribute.
3844 (floathi<mode>2): Disable expander for SSE math.
3845 (*floathi<mode>2_1): New insn insn_and_split pattern.
3846 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
3847 corresponding post-reload splitters.
3848 (*floathi<mode>2_i387): New macroized insn pattern.
3849 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
3850 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
3851 insn_and_split pattern.
3852 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
3853 New macroized instruction patterns and corresponding post-reload
3855 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
3856 and corresponding post-reload splitters.
3857 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
3858 New macroized instruction patterns.
3859 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
3860 macroized instruction patterns and corresponding post-reload splitters.
3861 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
3862 corresponding post-reload splitters.
3863 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
3864 New macroized instruction patterns.
3865 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
3866 corresponding post-reload splitters.
3867 (*floatsi<mode>2_i387): New macroized instruction patterns.
3869 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
3871 * config/i386/i386.md (smaxmin): New.
3872 (umaxmin): Likewise.
3873 (maxminiprefix): Likewise.
3874 (maxminfprefix): Likewise.
3875 (<code><mode>3): Likewise.
3876 (smin<mode>3): Removed.
3877 (smax<mode>3): Likewise.
3879 * config/i386/mmx.md (mmx_<code>v2sf3): New.
3880 (mmx_<code>v4hi3): Likewise.
3881 (mmx_<code>v8qi3): Likewise.
3882 (mmx_smaxv2sf3): Removed.
3883 (mmx_sminv2sf3): Likewise.
3884 (mmx_umaxv8qi3): Likewise.
3885 (mmx_smaxv4hi3): Likewise.
3886 (mmx_uminv8qi3): Likewise.
3887 (mmx_sminv4hi3): Likewise.
3889 * config/i386/sse.md (<addsub><mode>3): New.
3890 (*<addsub><mode>3): Likewise.
3891 (<sse>_vm<addsub><mode>3): Likewise.
3892 (<maxmin><mode>3): Likewise.
3893 (*<maxmin><mode>3_finite): Likewise.
3894 (*<maxmin><mode>3): Likewise.
3895 (<sse>_vm<maxmin><mode>3): Likewise.
3896 (sse3_h<addsub>v4sf3): Likewise.
3897 (sse3_h<addsub>v2df3): Likewise.
3898 (<maxmin>v16qi3): Likewise.
3899 (*<maxmin>v16qi3): Likewise.
3900 (<maxmin>v8hi3): Likewise.
3901 (*<maxmin>v8hi3): Likewise.
3902 (*sse4_1_<maxmin><mode>3): Likewise.
3903 (*sse4_1_<maxmin><mode>3): Likewise.
3904 (add<mode>3): Removed.
3905 (*add<mode>3): Likewise.
3906 (<sse>_vmadd<mode>3): Likewise.
3907 (sub<mode>3): Likewise.
3908 (*sub<mode>3): Likewise.
3909 (<sse>_vmsub<mode>3): Likewise.
3910 (smin<mode>3): Likewise.
3911 (*smin<mode>3_finite): Likewise.
3912 (*smin<mode>3): Likewise.
3913 (<sse>_vmsmin<mode>3): Likewise.
3914 (smax<mode>3): Likewise.
3915 (*smax<mode>3_finite): Likewise.
3916 (*smax<mode>3): Likewise.
3917 (<sse>_vmsmax<mode>3): Likewise.
3918 (sse3_haddv4sf3): Likewise.
3919 (sse3_haddv2df3): Likewise.
3920 (sse3_hsubv4sf3): Likewise.
3921 (sse3_hsubv2df3): Likewise.
3922 (umaxv16qi3): Likewise.
3923 (*umaxv16qi3): Likewise.
3924 (smaxv8hi3): Likewise.
3925 (*smaxv8hi3): Likewise.
3926 (*sse4_1_smax<mode>3): Likewise.
3927 (*sse4_1_umax<mode>3): Likewise.
3928 (uminv16qi3): Likewise.
3929 (*uminv16qi3): Likewise.
3930 (sminv8hi3): Likewise.
3931 (*sminv8hi3): Likewise.
3932 (*sse4_1_smin<mode>3): Likewise.
3933 (*sse4_1_umin<mode>3): Likewise.
3935 2008-04-01 Rafael Espindola <espindola@google.com>
3937 * tree-cfg.c (verify_expr): remove in_phi.
3938 (verify_stmt): Don't call walk_tree with verify_expr. Use
3939 is_gimple_min_invariant instead of is_gimple_val.
3941 2008-04-01 Joseph Myers <joseph@codesourcery.com>
3943 * doc/include/gpl_v3.texi: Update for manpage generation.
3944 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
3946 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
3947 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
3948 gpl_v3.texi instead of gpl.texi.
3951 2008-04-01 Jakub Jelinek <jakub@redhat.com>
3954 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
3956 2008-04-01 Rafael Espindola <espindola@google.com>
3958 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
3959 (extract_code_and_val_from_cond): Use
3960 extract_code_and_val_from_cond_with_ops.
3962 2008-04-01 Jan Hubicka <jh@suse.cz>
3964 * function.c (free_after_compilation): Free epilogue_delay_list.
3965 (prepare_function_start): Assert that previous compilation was freed.
3967 2008-04-01 Jan Hubicka <jh@suse.cz>
3968 Jim Wilson <wilson@tuliptree.org>
3969 Andreas Tobler <andreast@gcc.gnu.org>
3972 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
3973 rtl.emit instead cfun->emit.
3974 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
3975 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
3977 2008-04-01 Ben Elliston <bje@au.ibm.com>
3979 * doc/c-tree.texi (Function Basics): Fix grammatical error.
3981 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
3983 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
3985 (fprofile-use): Add var flag_profile_use
3986 * coverage.c (coverage_begin_output): Do not open a gcno file for
3987 output only if -ftest-coverage is set.
3988 Do not add getpwd() to gcda file path.
3989 (build_gcov_info): Check the new flag
3990 flag_profile_datafile_relative_path.
3991 (coverage_init): Use profile_data_prefix.
3992 Read profile counter only if flag_profile_use is set.
3993 * opts.c (common_handle_option): New option fprofile-use=,
3994 fprofile-dir=, fprofile-generate=.
3995 * toplev.c (profile_data_prefix): New variable definition.
3996 * toplev.h (profile_data_prefix): New declaration.
3997 * doc/invoke.tex (Option Summary, Optimization Options):
4000 2008-03-31 James E. Wilson <wilson@tuliptree.org>
4002 * varasm.c (output_constant_pool_1): In LABEL_REF check,
4003 use tmp consistently.
4006 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
4007 * config/ia64/ia64.c (rtx_needs_barrier): Handle
4008 UNSPEC_FR_RECIP_APPROX_RES.
4009 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
4011 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
4014 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
4016 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
4019 * fold-const.c (fold_indirect_ref_1): Support accessing non first
4020 element of the vector via a pointer.
4022 2008-03-31 Ian Lance Taylor <iant@google.com>
4024 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
4026 2008-03-31 Jan Hubicka <jh@suse.cz>
4028 * builtins.c (expand_builtin_setjmp_receiver): Update call of
4029 get_arg_pointer_save_area.
4030 * expr.c (init_expr): Just clear out rtl.expr.
4031 * function.c (free_after_compilation): Clear out whole RTL structure.
4032 (get_func_frame_size): Merge into ...
4033 (get_frame_size): ... this one.
4034 (assign_stack_local_1): Merge into ...
4035 (assign_stack_local): ... this one.
4036 (expand_function_end): Update call of get_arg_pointer_save_area.
4037 (get_art_pointer_save_area): Remove cfun argument.
4038 * function.h (emit_status): regno_pointer_align does not need length
4039 attribute. Move x_regno_reg_rtx to ...
4040 (regno_reg_rtx): ... new global array.
4041 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
4042 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
4043 apply_args_value, forced_labels, stack_pointer_delta):
4045 (struct varasm_status): Move here from varasm.c
4046 (struct rtl_data): New. Move here some fields from struct function.
4047 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4048 frame_offset, stack_check_probe_note, arg_pointer_save_area,
4049 used_temp_slots avail_temp_slots, temp_slot_level,
4050 nonlocal_goto_handler_labels): Update accesstors.
4051 (rtl): New global variable.
4052 (struct function): Move some fileds to rtl_data.
4053 (get_arg_pointer_save_area): Update prototype.
4054 * emit-rtl.c (rtl): Declare.
4055 (regno_reg_rtx): Declare.
4056 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4058 (gen_reg_rtx): Update.
4059 (init_virtual_regs): Do not tate emit_status argument.
4060 (init_emit): Do not allocate emit.
4061 * varasm.c (varasm_statuc): Move to function.h.
4062 (n_deferred_constatns): Update accestor.
4063 (init_varasm_status): Do not allocate varasm_status.
4064 (force_const_mem, get_pool_size, output_constant_pool): Update.
4065 * stmt.c (force_label_rtx): Do not use x_ prefixes.
4066 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4068 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
4070 PR rtl-optimization/35729
4071 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
4074 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
4077 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
4078 load/store if memory is unaligned.
4079 (*movti_rex64): Likewise.
4081 * config/i386/predicates.md (misaligned_operand): New.
4083 2008-03-31 Andrew Pinski <pinskia@gmail.com>
4086 * tree-ssa-phiopt.c (conditional_replacement): Return early for
4089 2008-03-31 Jan Beulich <jbeulich@novell.com>
4091 * config/ia64/constraints.md: Add 'j' constraint.
4092 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
4093 (movdi_internal): Likewise.
4095 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
4098 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
4100 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
4103 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
4104 proper error message for the third argument on blendpd and
4107 * config/i386/sse.md (blendbits): New.
4108 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
4110 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
4112 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
4114 2008-03-30 Richard Guenther <rguenther@suse.de>
4117 * fold-const.c (fold_sign_changed_comparison): Do leave
4118 conversions to base-types alone.
4120 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
4122 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
4123 the link register if one altivec register is be saved.
4125 2008-03-30 Ben Elliston <bje@au.ibm.com>
4127 * final.c (final_scan_insn): Remove if (0) code.
4129 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
4131 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
4133 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
4135 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
4136 of V4SFmode to ix86_binary_operator_ok.
4138 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
4140 * config/i386/i386.c (override_options): Initialize
4141 ix86_veclib_handler to ix86_veclibabi_svml when
4142 -mveclibabi=svml is used.
4143 (ix86_veclibabi_svml): New function for SVML ABI style
4144 vectorization support.
4145 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
4147 2008-03-28 Rafael Espindola <espindola@google.com>
4149 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
4150 (tree_binary_nonnegative_warnv_p): Make it public.
4151 (tree_single_nonnegative_warnv_p): Make it public.
4152 (tree_invalid_nonnegative_warnv_p): Make it public.
4153 (tree_unary_nonzero_warnv_p): Make it public.
4154 (tree_binary_nonzero_warnv_p): Make it public
4155 (tree_single_nonzero_warnv_p): Make it public.
4156 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
4157 (extract_range_from_binary_expr): Split the expr argument.
4158 (extract_range_from_unary_expr): Split the expr argument.
4159 (extract_range_from_comparison): Split the expr argument.
4160 (extract_range_from_expr): Use the new aux functions.
4161 (vrp_evaluate_conditional_warnv): Use
4162 vrp_evaluate_conditional_warnv_with_ops.
4163 * tree.h (tree_unary_nonzero_warnv_p): Declare.
4164 (tree_binary_nonzero_warnv_p): Declare.
4165 (tree_single_nonzero_warnv_p): Declare.
4166 (tree_expr_nonzero_warnv_p): Declare.
4167 (tree_unary_nonnegative_warnv_p): Declare.
4168 (tree_binary_nonnegative_warnv_p): Declare.
4169 (tree_single_nonnegative_warnv_p): Declare.
4170 (tree_invalid_nonnegative_warnv_p): Declare.
4172 2008-03-28 Richard Guenther <rguenther@suse.de>
4174 PR tree-optimization/30317
4175 PR tree-optimization/30911
4176 PR tree-optimization/34793
4177 * tree-vrp.c (set_and_canonicalize_value_range): New function.
4178 (struct assert_locus_d): New member EXPR.
4179 (register_new_assert_for): Add EXPR parameter to support
4180 ASSERT_EXPR <name, expr OP limit>.
4181 (register_edge_assert_for_1): Adjust callers.
4182 (find_assert_locations): Likewise.
4183 (process_assert_insertions_for): Build condition from expression.
4184 (extract_range_from_assert): Handle ASSERT_EXPRs
4185 of the form ASSERT_EXPR <name, expr OP limit>.
4186 (register_edge_assert_for_2): New helper registering
4187 asserts for comparisons. Recognize range tests of the form
4188 (unsigned)i - CST1 OP CST2.
4189 (register_edge_assert_for_1): Use it.
4190 (register_edge_assert_for): Likewise.
4191 (needs_overflow_infinity): Integer sub-types
4192 do not need overflow infinities.
4193 (vrp_val_is_max): The extreme values of integer sub-types
4194 are those of the base type.
4195 (vrp_val_is_min): Likewise.
4196 * tree.def (ASSERT_EXPR): Document extra allowed conditional
4199 2008-03-28 Nick Clifton <nickc@redhat.com>
4202 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4203 Return GENERAL_REGS for stack adjustment reloads.
4205 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
4208 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
4209 const_vector when all the vectors are constant.
4211 2008-03-27 Bob Wilson <bob.wilson@acm.org>
4213 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
4215 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
4216 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
4218 (s<code>_sf): Use new scc_sf attribute for opcode names.
4220 2008-03-27 Tom Tromey <tromey@redhat.com>
4222 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
4223 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
4224 config/spu/t-spu-elf, config/i386/t-interix,
4225 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
4226 config/i386/x-darwin, config/i386/x-mingw32,
4227 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
4228 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
4229 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
4230 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
4231 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
4232 config/rs6000/x-darwin, config/rs6000/t-rs6000,
4233 config/score/t-score-elf, config/arm/t-strongarm-pe,
4234 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
4235 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
4236 Revert automatic dependency patch.
4238 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
4241 * config/i386/i386.c (ix86_function_arg_boundary): Align
4242 decimal floating point to its natural boundary.
4244 2008-03-27 Richard Guenther <rguenther@suse.de>
4247 * fold-const.c (fold_comparison): Restrict distinct decl
4248 comparison folding to VAR_DECLs and PARM_DECLs. Do not
4249 solely rely on operand_equal_p.
4251 2008-03-27 Richard Guenther <rguenther@suse.de>
4254 * c-common.c (handle_weak_attribute): Reject combination of
4257 2008-03-27 Richard Guenther <rguenther@suse.de>
4259 PR tree-optimization/32810
4260 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
4261 conversions from DECL_INITIAL.
4262 (fold_const_aggregate_ref): Likewise from constructor elements.
4264 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
4266 * tree-affine.h (aff_combination_expand): Declare.
4267 (get_inner_reference_aff): Likewise.
4268 * tree-affine.c (aff_combination_expand): Split out from
4269 tree_to_aff_combination_expand.
4270 (get_inner_reference_aff): New function.
4271 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
4272 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
4273 (struct lim_aux_data): sm_done field removed.
4274 (mem_ref_loc_p, mem_ref_locs_p): New types.
4275 (struct mem_ref): Added id, stored, accesses_in_loop,
4276 indep_loop, dep_loop, indep_ref, dep_ref fields.
4277 Removed is_stored, locs and next fields.
4278 (memory_accesses): New variable.
4279 (movement_possibility): Do not allow moving statements
4280 that store to memory.
4281 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
4283 (determine_max_movement): For statements with memory references,
4284 find the outermost loop in that the reference is independent.
4285 (move_computations_stmt): Mark the virtual operands for renaming.
4286 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
4287 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
4288 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
4289 add_vop_ref_mapping, create_vop_ref_mapping_loop,
4290 create_vop_ref_mapping, analyze_memory_references,
4291 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
4292 get_all_locs_in_loop, ref_always_accessed_p,
4293 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
4294 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
4295 store_motion_loop, store_motion): New functions.
4296 (struct vop_to_refs_elt): New type.
4297 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
4298 memref_hash, memref_eq, hoist_memory_references): Rewritten.
4299 (schedule_sm): Replaced by...
4300 (execute_sm): ... this.
4301 (determine_lsm_ref, hoist_memory_references,
4302 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
4303 find_more_ref_vops, free_mem_ref, free_mem_refs,
4304 determine_lsm_loop, determine_lsm): Removed.
4305 (tree_ssa_lim_finalize): Free data structures used by store motion.
4306 (tree_ssa_lim): Call analyze_memory_references. Use
4307 store_motion instead of determine_lsm.
4309 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
4311 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
4312 rename tmake_file to m68hc11/t-m68hc11.
4313 (mcore): Set inhibit_libc to true.
4314 * config.host (alpha*-dec-*vms*): Set extra_programs.
4315 (interix3*): Don't use host_xmake_file.
4316 * configure.ac: Let config.gcc override inhibit_libc.
4317 * configure: Regenerate.
4319 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
4320 * config/t-openbsd-thread: Remove commented out lines.
4322 * config/x-interix: Remove.
4324 * config/m68hc11/t-m68hc11-gas: Rename to...
4325 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
4327 * config/mcore/t-mcore: Remove T_CFLAGS.
4328 * config/mcore/t-mcore-pe: Likewise.
4330 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
4332 * configure.ac: Replace custom __GNU_SOURCE test with
4333 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
4334 * aclocal.m4: Regenerate.
4335 * configure: Regenerate.
4336 * config.in: Regenerate.
4338 2008-03-27 Richard Guenther <rguenther@suse.de>
4340 * fold-const.c (target.h): Include.
4341 (fold_comparison): Fold comparison of addresses of decls
4342 that bind locally or of constants. Consolidate address folding code.
4343 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
4344 results from fold_binary_to_constant.
4345 (compare_values_warnv): Likewise.
4347 2008-03-27 Andrew Pinski <pinskia@gmail.com>
4350 * fold-const.c (fold_truthop): Check for integeral types when folding
4351 a == 0 && b == 0 and a != 0 || b != 0 .
4353 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
4355 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
4357 2008-03-26 Andreas Schwab <schwab@suse.de>
4359 * doc/invoke.texi: Fix use of @item vs. @itemx.
4361 2008-03-26 Tom Tromey <tromey@redhat.com>
4363 * Makefile.in (build/gensupport.o, build/print-rtl.o,
4364 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
4365 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
4366 build/gencodes.o, build/genconditions.o, build/genconfig.o,
4367 build/genconstants.o, build/genemit.o, build/genextract.o,
4368 build/genflags.o, build/genmddeps.o, build/genopinit.o,
4369 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
4372 2008-03-26 Richard Guenther <rguenther@suse.de>
4375 2008-03-26 Richard Guenther <rguenther@suse.de>
4377 * fold-const.c (target.h): Include.
4378 (fold_comparison): Fold comparison of addresses of two decls
4379 that bind locally. Consolidate address folding code.
4381 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4383 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
4384 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
4385 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
4386 dconstsqrt2, dconstthird, dconste and/or dconst10.
4387 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
4388 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
4389 dconstsqrt2, dconste): Delete.
4390 (init_emit_once): Likewise. Simplify initializing dconstm1.
4392 * real.c (get_real_const): New.
4393 * real.h (dconst3, dconst10, dconstm2, dconstthird,
4394 dconstsqrt2, dconste): Delete.
4395 (real_value_const, get_real_const): New.
4397 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
4399 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
4401 * config/i386/i386.c (ix86_function_arg_boundary): Check
4402 BIGGEST_ALIGNMENT instead of 128.
4403 (setup_incoming_varargs_64): Likewise.
4405 2008-03-26 Tom Tromey <tromey@redhat.com>
4407 * Makefile.in (DEPFILES): Add missing '/'.
4409 2008-03-26 Richard Guenther <rguenther@suse.de>
4411 * fold-const.c (target.h): Include.
4412 (fold_comparison): Fold comparison of addresses of two decls
4413 that bind locally. Consolidate address folding code.
4415 2008-03-26 Nick Clifton <nickc@redhat.com>
4418 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
4419 not allow INT+INT as a legitimate addressing mode.
4421 2008-03-26 Richard Guenther <rguenther@suse.de>
4423 * tree-flow.h (widen_bitfield): Remove declaration.
4424 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
4425 (widen_bitfield): Remove function.
4426 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
4429 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
4432 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
4435 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
4437 PR rtl-optimization/35232
4438 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
4439 (forget_old_reloads_1, forget_marked_reloads): Don't clear
4440 reg_reloaded_call_part_clobbered here.
4441 (reload_regs_reach_end_p): New function.
4442 (reload_reg_rtx_for_input): New variable.
4443 (reload_reg_rtx_for_output): Likewise.
4444 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
4445 when reassigning a pseudo register. Load reloadreg from
4446 reload_reg_rtx_for_input, moving the mode and register
4448 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
4449 instead of the original when deciding whether an input reload
4450 would be a no-op or whether an output reload can be deleted.
4451 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
4452 when setting up new_spill_reg_store. Load it from
4453 reload_reg_rtx_for_output, moving the mode and register
4455 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
4456 instead of the original when deciding whether an output reload
4457 would be a no-op. Do the same when modifying insn notes.
4458 Use rtx_equal_p instead of == to compare the registers.
4459 (inherit_piecemeal_p): Take a mode and two register numbers
4461 (emit_reload_insns): Clear new_spill_reg_store for every hard
4462 register in the reload register. Remove spill registers
4463 from reg_reloaded_valid before considering whether to record
4464 inheritance information for them. Use reload_reg_rtx_for_output
4465 instead of reg_rtx when recording output reloads. Use
4466 reload_reg_rtx_for_input instead of reg_rtx when recording
4467 input reloads. Set or clear reg_reloaded_call_part_clobbered
4468 at the same time as setting reg_reloaded_valid.
4469 (delete_output_reload): Add a new_reload_reg parameter and use it
4470 instead of rld[j].reg_rtx.
4471 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
4474 2008-03-25 Tom Tromey <tromey@redhat.com>
4476 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
4477 (build/genattr.o): Likewise.
4478 (build/genattrtab.o): Likewise.
4479 (build/gencodes.o): Likewise.
4480 (build/genconfig.o): Likewise.
4481 (build/genconstants.o): Likewise.
4482 (build/genemit.o): Likewise.
4483 (build/genextract.o): Likewise.
4484 (build/genflags.o): Likewise.
4486 2008-03-25 Bob Wilson <bob.wilson@acm.org>
4488 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
4489 instead of size_int for integer types.
4490 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
4491 to match type of MINUS_EXPR.
4493 2008-03-25 Tom Tromey <tromey@redhat.com>
4495 * configure: Rebuilt.
4496 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
4499 2008-03-25 Tom Tromey <tromey@redhat.com>
4501 * config/x-solaris (host-solaris.o): Update.
4502 * config/x-linux (host-linux.o): Update.
4503 * config/x-hpux (host-hpux.o): Update.
4504 * config/x-darwin (host-darwin.o): Update.
4505 * config/v850/t-v850e (v850-c.o): Update.
4506 * config/v850/t-v850 (v850-c.o): Update.
4507 * config/t-vxworks (vxworks.o): Update.
4508 * config/t-sol2 (sol2-c.o, sol2.o): Update.
4509 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
4510 * config/spu/t-spu-elf (spu-c.o): Update.
4512 * config/sh/t-symbian (sh-c.o): Update.
4513 (symbian.o): Update.
4514 * config/sh/t-sh (sh-c.o): Update.
4515 * config/score/t-score-elf (score7.o, score3.o): Update.
4516 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
4517 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
4518 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
4519 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
4521 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
4522 * config/m32c/t-m32c (m32c-pragma.o): Update.
4523 * config/ia64/t-ia64 (ia64-c.o): Update.
4524 * config/i386/x-mingw32 (host-mingw32.o): Update.
4525 * config/i386/x-i386 (driver-i386.o): Update.
4526 * config/i386/x-darwin (host-i386-darwin.o): Update.
4527 * config/i386/x-cygwin (host-cygwin.o): Update.
4528 * config/i386/t-nwld (nwld.o): Update.
4529 * config/i386/t-netware (netware.o): Update.
4530 * config/i386/t-interix (winnt.o): Update.
4531 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
4532 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
4533 msformat-c.o): Update.
4534 * config/bfin/t-bfin-linux (generated_files): Add
4535 linux-sysroot-suffix.h.
4536 * config/arm/t-wince-pe (pe.o): Update.
4537 * config/arm/t-strongarm-pe (pe.o): Update.
4538 * config/arm/t-pe (pe.o): Update.
4539 * config/arm/t-arm (arm-c.o): Update.
4540 * doc/install.texi (Prerequisites): Require make 3.80.
4541 * Makefile.in: Remove .o targets.
4542 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
4543 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
4544 (simple_generated_h, simple_generated_c): Move earlier.
4545 (generated_files): New variable.
4546 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
4547 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
4548 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
4549 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
4550 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
4551 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
4552 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
4553 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
4554 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
4555 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
4556 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
4557 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
4559 (COMPILE.base, COMPILE): New variables.
4560 (%.o): New pattern rule.
4561 (ALL_HOST_OBJS): New variable.
4562 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
4563 (dummy-checksum.o, cc1-checksum.o): Remove.
4564 (DRIVER_SHLIB): New variable.
4565 (DRIVER_DEFINES): Use it.
4566 (gencondmd.c): Move out of build/.
4567 (s-conditions): Update.
4568 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
4569 (ALL_BUILD_OBJS): Likewise.
4570 (build/%.o): Use BUILDCOMPILE.
4571 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
4572 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
4573 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
4574 build/gencheck.o, build/gencodes.o, build/genconditions.o,
4575 build/genconfig.o, build/genconstants.o, build/genemit.o,
4576 build/genextract.o, build/genflags.o, build/genmddeps.o,
4577 build/genopinit.o, build/genoutput.o, build/genpeep.o,
4578 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
4579 build/gen-protos.o, build/scan.o, build/fix-header.o,
4580 build/scan-decls.o): Simplify.
4581 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
4582 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
4583 prefix.o, toplev.o): Reduce to variable setting.
4584 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
4585 ($(out_object_file), gcc-options.o): New targets.
4586 ($(ALL_HOST_OBJS)): New target. Include dependency files.
4587 * configure: Rebuilt.
4588 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
4589 * doc/sourcebuild.texi (Front End Directory): Document new variable.
4591 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
4593 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
4594 complain when we hit an error, return ERROR_MARK_NODE.
4596 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
4598 * config/sh/constraints.md (Pso, Psz): New constraints.
4599 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
4600 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
4602 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
4604 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
4605 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
4607 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
4609 * config/sh/sh.md (prefetch): Add condition for SH2A target.
4610 (prefetch_sh2a): New.
4612 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
4613 Naveen.H.S <naveen.hs@kpitcummins.com>
4615 * config/sh/constraints.md (I28): New constraint.
4616 * config/sh/sh.c (broken_move): Add support for movi20s.
4617 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
4619 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
4620 Jayant Sonar <Jayant.sonar@kpitcummins.com>
4621 Naveen.H.S <naveen.hs@kpitcummins.com>
4623 * config/sh/sh.c (SH_ATTRIBUTES): Define.
4624 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
4625 (print_operand): Handle resbank in %@ operand code.
4626 (sh_encode_section_info): New.
4627 (push_regs): Add conditions for resbank.
4628 (sh_expand_epilogue): Likewise.
4629 (sh_insert_attributes): Likewise.
4630 (sh_attribute_table): Likewise.
4631 (sh_handle_resbank_handler_attribute): New.
4632 (sh2a_handle_function_vector_handler_attribute): New.
4633 (sh2a_is_function_vector_call): New.
4634 (sh2a_get_function_vector_number): New.
4635 (sh2a_function_vector_p): New.
4636 (sh_cfun_resbank_handler_p): New.
4637 * config/sh/sh.md (calli): Emit jsr/n if possible.
4638 (calli_tbr_rel): New.
4639 (calli_pcrel): Emit jsr/n if possible.
4640 (return_i): Emit rts/n if possible.
4641 (call_valuei_tbr_rel): New.
4642 (call_valuei_pcrel): Add condition for SH2A target.
4643 (call_value): Likewise.
4644 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
4645 (sh2a_get_function_vector_number): Likewise.
4646 (sh2a_is_function_vector_call): Likewise.
4647 * doc/extend.texi: Document TBR relative addressing of SH2A.
4648 (resbank): Add description for SH2A.
4650 2008-03-24 Richard Guenther <rguenther@suse.de>
4653 * gimplify.c (gimplify_modify_expr): For frontend type-correct
4654 pointer assignments change conversions according to middle-end rules.
4655 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
4656 * configure.ac: Include type checking in yes.
4657 * configure: Regenerate.
4659 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4661 * diagnostic.c (diagnostic_count_diagnostic): Delete.
4662 (diagnostic_report_diagnostic): Update. Handle ICEs here.
4664 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
4666 * gthr-vxworks.h (UNUSED): Define.
4668 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
4670 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
4672 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
4674 * doc/extend.texi (Function Attributes): Add missing comma in the
4675 example of the "alloc_size" attribute.
4677 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
4680 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
4682 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4685 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
4688 * stor-layout.c (update_alignment_for_field): Set minimum alignment
4689 of the underlying type of a MS bitfield layout to the natural
4690 alignment of the type.
4692 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
4694 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
4695 to their natural alignment to avoid store forwarding stalls.
4697 2008-03-22 Richard Guenther <rguenther@suse.de>
4699 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
4700 For PHI nodes verify the address is invariant.
4701 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
4702 (get_symbol_constant_value): Use is_gimple_min_invariant.
4703 (maybe_fold_stmt_indirect): Likewise.
4705 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
4707 PR rtl-optimization/33927
4708 * Makefile.in (dse.o): Depend on $(TM_P_H).
4709 * expr.h (extract_low_bits): Declare.
4710 * expmed.c (extract_low_bits): New function.
4711 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
4712 * dse.c: Include tm_p.h.
4713 (find_shift_sequence): Remove the read_reg argument and return the
4714 read value. Emit the instructions instead of returning them.
4715 Iterate on new_mode rather than calculating it each time.
4716 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
4717 source to NEW_MODE and extract_low_bits to convert the shifted
4719 (replace_read): Allow the load and store to have different mode
4720 classes. Use extract_low_bits when SHIFT == 0. Create the shift
4721 or extraction instructions before trying the replacement. Update
4722 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
4724 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
4726 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
4727 to their natural alignment to avoid store forwarding stalls.
4729 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
4732 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
4733 encouraging but not allowing gprs for input;
4734 change the input constraint to !f#r.
4735 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
4737 change the output constraint to !f#r.
4739 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
4742 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
4743 corresponding post-reload splitters.
4744 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
4745 when x87 FP math is selected.
4746 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
4747 New function prototype.
4748 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
4749 unreachable function to ease macroization of insn patterns.
4751 2008-03-21 Martin Jambor <mjambor@suse.cz>
4753 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
4754 reference dumps if ddr is NULL or dependence is unknown.
4756 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
4758 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
4759 unsigned extension into account.
4760 (ATOMIC_COMPARE_AND_SWAP): Likewise.
4761 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
4762 Do computations on a scratch register.
4764 2008-03-21 Richard Guenther <rguenther@suse.de>
4766 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4767 Use is_gimple_min_invariant instead of TREE_INVARIANT.
4768 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4769 * tree-ssa-dom.c (record_equality): Likewise.
4770 * tree-inline.c (copy_body_r): Likewise.
4771 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
4774 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
4776 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
4777 as 'delete_unused' argument.
4779 2008-03-20 Richard Guenther <rguenther@suse.de>
4781 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
4782 special casing of constant qualifiers.
4783 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
4784 care about them in general.
4785 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
4786 regardless of their type.
4787 (fold_stmt_r): Forcefully fold *& if we end up with that.
4789 2008-03-20 Paul Brook <paul@codesourcery.com>
4791 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
4792 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
4794 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
4796 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
4797 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
4799 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
4801 * common.opt (Wmudflap): New option.
4802 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
4803 (mx_register_decls): Likewise.
4804 (mudflap_finish_file): Likewise.
4805 * doc/invoke.texi: Document -Wno-mudflap.
4807 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
4809 * c-format.c (replace_format_name_to_system_name): New.
4811 (convert_format_name_to_system_name): New.
4812 (decode_format_attr): Add use of convert_format_name_to_system_name.
4813 (format_types_orig): Add gnu_ prefix to names.
4814 (check_format_info_main): Special treating of \0 escaped names for
4815 supporting multi-character format specifiers as I32, I64.
4816 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
4817 (gnu_target_overrides_format_attributes): New.
4818 * c-format.h: Add structure target_ovr_attr to hold
4819 system specific formatter names.
4820 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
4821 msformat-c.o file to c_target_objs and cxx_target_objs.
4822 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
4823 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
4824 (TARGET_N_FORMAT_TYPES): New.
4825 * config/i386/msformat-c.c: New.
4826 * config/i386/t-cygming: Add build rule for msformat-c.o.
4827 * doc/extend.texi: Add new format names gnu_* and ms_* and
4829 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
4831 2008-03-20 Ira Rosen <irar@il.ibm.com>
4833 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
4834 optimizations turned on under -O3.
4835 (ftree-vectorize): Add that the flag is turned on with -O3.
4837 2008-03-20 Ben Elliston <bje@au.ibm.com>
4839 * regmove.c (try_auto_increment): Fix spelling error in comment.
4840 * final.c (final_scan_insn): Likewise.
4842 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
4845 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
4846 allocator preferences for "y" and "r" class registers.
4847 ("*mov<mode>_internal"): Ditto.
4848 ("*movv2sf_internal_rex64"): Ditto.
4849 ("*movv2sf_internal"): Ditto.
4851 2008-03-19 Michael Matz <matz@suse.de>
4854 * calls.c (expand_call): Check overlap of arguments with call
4855 address for sibcalls.
4857 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
4860 * stor-layout.c (update_alignment_for_field): Set minimum alignment
4861 of the underlying type of a MS bitfield layout to the natural
4862 alignment of the type.
4864 2008-03-19 Jan Hubicka <jh@suse.cz>
4867 * toplev.c (decode_d_option): Handle all CPP flags.
4868 * tree-vrp.c: Update tree_pass descriptors.
4869 * regrename.c: Update tree_pass descriptors.
4870 * fwprop.c: Update tree_pass descriptors.
4871 * doc/invoke.texi: Remove documentation of dropped -d? flags.
4872 * tree-into-ssa.c: Update tree_pass descriptors.
4873 * tree-dump.c: Update tree_pass descriptors.
4874 * tree-complex.c: Update tree_pass descriptors.
4875 * tree-dump.h: Update tree_pass descriptors.
4876 * see.c: Update tree_pass descriptors.
4877 * cgraphbuild.c: Update tree_pass descriptors.
4878 * tracer.c: Update tree_pass descriptors.
4879 * tree-loop-distribution.c: Update tree_pass descriptors.
4880 * cgraph.c: Update tree_pass descriptors.
4881 * postreload-gcse.c: Update tree_pass descriptors.
4882 * postreload.c: Update tree_pass descriptors.
4883 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
4884 * tree-tailcall.c: Update tree_pass descriptors.
4885 * tree-pass.h (tree_opt_pass): Rename to ...
4886 (opt_pass) ... this one; add "type" field and remove letter field.
4887 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
4888 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
4889 all_lowering_passes): Update declaration.
4890 * ipa-cp.c: Update tree_pass descriptors.
4891 * final.c: Update tree_pass descriptors.
4892 * omp-low.c: Update tree_pass descriptors.
4893 * tree-ssa-dse.c: Update tree_pass descriptors.
4894 * ipa-reference.c: Update tree_pass descriptors.
4895 * tree-ssa-uncprop.c: Update tree_pass descriptors.
4896 * auto-inc-dec.c: Update tree_pass descriptors.
4897 * reorg.c: Update tree_pass descriptors.
4898 * cgraphunit.c: Update tree_pass descriptors.
4899 * tree-ssa-copyrename.c: Update tree_pass descriptors.
4900 * tree-ssa-ccp.c: Update tree_pass descriptors.
4901 * df-core.c: Update tree_pass descriptors.
4902 * mode-switching.c: Update tree_pass descriptors.
4903 * tree-nomudflap.c: Update tree_pass descriptors.
4904 * modulo-sched.c: Update tree_pass descriptors.
4905 * ipa-pure-const.c: Update tree_pass descriptors.
4906 * cse.c: Update tree_pass descriptors.
4907 * web.c: Update tree_pass descriptors.
4908 * tree-stdarg.c: Update tree_pass descriptors.
4909 * tree-ssa-math-opts.c: Update tree_pass descriptors.
4910 * tree-ssa-dom.c: Update tree_pass descriptors.
4911 * tree-nrv.c: Update tree_pass descriptors.
4912 * tree-ssa-alias.c: Update tree_pass descriptors.
4913 * loop-init.c: Update tree_pass descriptors.
4914 * gimple-low.c: Update tree_pass descriptors.
4915 * ipa-inline.c: Update tree_pass descriptors.
4916 * tree-ssa-sink.c: Update tree_pass descriptors.
4917 * global.c: Update tree_pass descriptors.
4918 * ifcvt.c: Update tree_pass descriptors.
4919 * jump.c: Update tree_pass descriptors.
4920 * predict.c: Update tree_pass descriptors.
4921 * tree-ssa-loop.c: Update tree_pass descriptors.
4922 * recog.c: Update tree_pass descriptors.
4923 * dse.c: Update tree_pass descriptors.
4924 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
4925 * tree-eh.c: Update tree_pass descriptors.
4926 * regmove.c: Update tree_pass descriptors.
4928 * function.c: Update tree_pass descriptors.
4929 * tree-vectorizer.c: Update tree_pass descriptors.
4930 * gcse.c: Update tree_pass descriptors.
4931 * ipa-type-escape.c: Update tree_pass descriptors.
4932 * tree-if-conv.c: Update tree_pass descriptors.
4933 * init-regs.c: Update tree_pass descriptors.
4934 * ipa.c: Update tree_pass descriptors.
4935 * tree-ssa-phiopt.c: Update tree_pass descriptors.
4936 * rtl-factoring.c: Update tree_pass descriptors.
4937 * lower-subreg.c: Update tree_pass descriptors.
4938 * bt-load.c: Update tree_pass descriptors.
4939 * tree-dfa.c: Update tree_pass descriptors.
4940 * except.c: Update tree_pass descriptors.
4941 * emit-rtl.c: Update tree_pass descriptors.
4942 * cfgexpand.c: Update tree_pass descriptors.
4943 * tree-cfgcleanup.c: Update tree_pass descriptors.
4944 * cfgcleanup.c: Update tree_pass descriptors.
4945 * tree-ssa-pre.c: Update tree_pass descriptors.
4946 * tree-sra.c: Update tree_pass descriptors.
4947 * tree-mudflap.c: Update tree_pass descriptors.
4948 * tree-ssa-copy.c: Update tree_pass descriptors.
4949 * cfglayout.c: Update tree_pass descriptors.
4950 * tree-ssa-forwprop.c: Update tree_pass descriptors.
4951 * tree-ssa-dce.c: Update tree_pass descriptors.
4952 * tree-ssa.c: Update tree_pass descriptors.
4953 * regclass.c: Update tree_pass descriptors.
4954 * integrate.c: Update tree_pass descriptors.
4955 * tree-optimize.c: Update tree_pass descriptors.
4956 * tree-ssa-phiprop.c: Update tree_pass descriptors.
4957 * tree-object-size.c: Update tree_pass descriptors.
4958 * combine.c: Update tree_pass descriptors.
4959 * tree-outof-ssa.c: Update tree_pass descriptors.
4960 * bb-reorder.c: Update tree_pass descriptors.
4961 * stack-ptr-mod.c: Update tree_pass descriptors.
4962 * var-tracking.c: Update tree_pass descriptors.
4963 * tree-profile.c: Update tree_pass descriptors.
4964 * tree-vect-generic.c: Update tree_pass descriptors.
4965 * reg-stack.c: Update tree_pass descriptors.
4966 * sched-rgn.c: Update tree_pass descriptors.
4967 * tree-ssa-structalias.c: Update tree_pass descriptors.
4968 * tree-cfg.c: Update tree_pass descriptors.
4969 * passes.c (current_pass): Update declaration.
4970 (finish_optimization_passes): Update.
4971 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
4972 (register_one_dump_file, register_dump_files_1, next_pass_1):
4974 (init_optimization_passes): Update handling of new types.
4975 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
4976 * ipa-struct-reorg.c: Update tree_pass descriptors.
4977 * tree-ssa-reassoc.c: Update tree_pass descriptors.
4978 * combine-stack-adj.c: Update tree_pass descriptors.
4979 * cfgrtl.c: Update tree_pass descriptors.
4980 * dce.c: Update tree_pass descriptors.
4981 * tree-ssanames.c: Update tree_pass descriptors.
4983 2008-03-19 Richard Guenther <rguenther@suse.de>
4986 * tree-ssa.c (walk_data): New structure.
4987 (warn_uninitialized_var): If not always_executed warn with "maybe"
4989 (execute_early_warn_uninitialized): Compute post-dominators.
4990 Initialize always_executed before processing each basic block.
4992 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
4995 * config/i386/i386.c (x86_this_parameter): Calculate correct location
4996 of "this" pointer when "regparm = N" or "fastcall" is in effect.
4998 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5000 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
5002 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
5004 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
5006 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
5007 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
5008 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
5009 target after ignore has been set, and move there also the commputation
5010 of subtarget and original_target.
5011 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5012 (LANG_HOOKS_INITIALIZER): Remove it.
5013 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
5015 2008-03-18 Richard Guenther <rguenther@suse.de>
5017 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
5018 found an expression with constants, note that in the VN for the lhs.
5019 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
5020 fold them to constants if possible. Run cleanup_cfg if done so.
5021 (execute_pre): Return todo.
5023 (execute_fre): Likewise.
5024 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
5026 (get_prop_source_stmt): Look through pointer conversions.
5028 2008-03-18 Jan Hubicka <jh@suse.cz>
5030 * tree-pretty-print.c: Include predict.h.
5031 (dump_generic_node): Dump predictor.
5032 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
5033 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
5034 * gimple-low.c (lower_stmt): Likewise.
5035 * expr.c (expand_expr_real): Likewise.
5036 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
5038 (build_predict_expr, build_predict_expr): New.
5039 * predict.h (predictor_name, build_predict_expr): Update.
5040 * c-typeck.c (c_finish_bc_stmt): Add prediction.
5041 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
5042 * predict.def (PRED_CONTINUE): Update hitrate.
5043 * tree.def (PREDICT_EXPR): Define.
5044 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
5045 do not handle BIND_EXPR.
5046 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
5047 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
5048 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
5051 2008-03-18 Michael Matz <matz@suse.de>
5053 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
5055 2008-03-18 Richard Guenther <rguenther@suse.de>
5057 * tree-gimple.h (is_gimple_invariant_address): Declare.
5058 (is_gimple_constant): Likewise.
5059 * tree-gimple.c (is_gimple_constant): New function.
5060 (is_gimple_invariant_address): Likewise.
5061 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
5062 and is_gimple_invariant_address.
5063 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
5065 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
5066 an addressable base.
5068 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5071 * gimplify.c (gimplify_expr): Gimplify second operand of
5074 2008-03-17 Richard Guenther <rguenther@suse.de>
5076 PR tree-optimization/19637
5077 * fold-const.c (fold_unary): Remove restrictions of removing
5078 intermediate pointer-conversions (P2)(P1)P0.
5079 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
5080 conversion to void pointer.
5081 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
5083 2008-03-16 James E. Wilson <wilson@tuliptree.org>
5086 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
5087 emulated thread local variables.
5089 2008-03-16 Richard Guenther <rguenther@suse.de>
5092 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5093 expand TREE_INVARIANT operations that are not gimple invariant.
5095 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
5097 * doc/extend.texi (Alignment): Say that the ABI controls
5098 the __alignof__ for non-strict-alignment targets rather
5099 than being a recommendation.
5101 2008-03-15 Paul Brook <paul@codesourcery.com>
5103 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
5105 (arm_output_fn_unwind): Mark functions that can not be unwound.
5107 2008-03-15 Paul Brook <paul@codesourcery.com>
5109 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
5110 extension instructions.
5112 2008-03-15 Richard Guenther <rguenther@suse.de>
5114 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
5115 and fold constant aggregate refs.
5116 (fold_const_aggregate_ref): Handle string constants
5117 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
5118 (evaluate_stmt): Simplify now that ccp_fold folds constant
5121 2008-03-15 Paul Brook <paul@codesourcery.com>
5123 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
5124 (extzv): Use gen_extzv_t2.
5125 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
5127 2008-03-15 Richard Guenther <rguenther@suse.de>
5129 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
5130 (fold_const_aggregate_ref): Likewise.
5131 (get_value): Return NULL if we don't have any values.
5132 (ccp_finalize): Set const_val to NULL after freeing it.
5133 * tree-flow.h (get_symbol_constant_value): Declare.
5134 (fold_const_aggregate_ref): Likewise.
5135 * tree-ssa-sccvn.c (try_to_simplify): Use them.
5137 2008-03-15 Richard Guenther <rguenther@suse.de>
5140 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
5141 to not produce negative array indices if not allowed. Add
5142 parameter to indicate that.
5143 (maybe_fold_offset_to_component_ref): Allow negative array
5144 indices only for the first member of a structure.
5145 (maybe_fold_offset_to_reference): Allow negative array indices.
5146 (maybe_fold_stmt_addition): Likewise.
5148 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
5149 Anatoly Sokolov <aesok@post.ru>
5151 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
5152 (avr_arch): Add ARCH_AVR6.
5153 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
5154 (initial_elimination_offset): Initialize and use 'avr_pc_size'
5155 instead of fixed value 2.
5156 (print_operand_address): Use gs() asm specifier instead of pm().
5157 (avr_assemble_integer): (Ditto.).
5158 (avr_output_addr_vec_elt): (Ditto.).
5159 (print_operand): Handle "!" code.
5160 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
5161 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
5162 (AVR_HAVE_EIJMP_EICALL): Define.
5163 (AVR_3_BYTE_PC): Redefine.
5164 (AVR_2_BYTE_PC): (Ditto.).
5165 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
5166 (LINK_SPEC): Add atmega2560 and atmega2561.
5167 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
5169 * config/avr/avr.md (call_insn): Use eicall instead of icall
5170 for 3 byte PC devices.
5171 (call_value_insn): (Ditto.).
5172 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
5173 (indirect_jump): Use only for for 2 byte PC devices.
5174 (*tablejump): (Ditto.).
5175 (*indirect_jump_avr6): Add insn.
5176 (*tablejump_rjmp): Don't use for 3 byte PC devices.
5177 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
5178 instead of ijmp for 3 byte PC devices.
5179 (__tablejump2__): (Ditto.).
5180 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
5181 (MULITLIB_DIRNAMES): (Ditto.).
5182 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
5184 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
5186 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
5187 "sse2_umulsidi3". Use V1DI mode for operand 0.
5188 ("mmx_psadbw"): Use V1DI mode for operand 0.
5189 * config/i386/i386-modes.def (V1SI): New vector mode.
5190 * config/i386/i386.c (struct builtin_description)
5191 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
5192 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
5193 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
5194 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
5195 v1di_ftype_v8qi_v8qi type.
5196 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
5198 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
5199 __builtin_ia32_pmuludq]: Fix the mode of return value.
5201 2008-03-15 Richard Guenther <rguenther@suse.de>
5204 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
5207 2008-03-14 Bob Wilson <bob.wilson@acm.org>
5209 * doc/invoke.texi (Option Summary, Xtensa Options): Document
5210 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
5211 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
5212 unless TARGET_SERIALIZE_VOLATILE is enabled.
5213 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
5214 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
5215 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
5217 2008-03-14 Richard Guenther <rguenther@suse.de>
5219 PR tree-optimization/34172
5220 * tree-flow.h (refs_may_alias_p): Declare.
5221 (get_single_def_stmt): Likewise.
5222 (get_single_def_stmt_from_phi): Likewise.
5223 (get_single_def_stmt_with_phi): Likewise.
5224 * tree-dfa.c (refs_may_alias_p): New function.
5225 (get_single_def_stmt): Likewise.
5226 (get_single_def_stmt_from_phi): Likewise.
5227 (get_single_def_stmt_with_phi): Likewise.
5228 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
5229 (vn_reference_lookup_1): New helper function.
5230 (vn_reference_lookup): Walk the virtual use-def chain to
5231 continue searching for a match if the def does not alias the
5232 reference we are looking for.
5234 2008-03-14 David Edelsohn <edelsohn@gnu.org>
5236 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
5237 archive and Perzl. Update The Written Word listing.
5239 2008-03-14 Richard Guenther <rguenther@suse.de>
5241 PR tree-optimization/34043
5242 PR tree-optimization/33989
5243 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
5245 (bitmap_find_leader): Use extra argument to verify dominance
5246 relationship inside a basic-block.
5247 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
5248 (find_leader_in_sets): Adjust.
5249 (create_component_ref_by_pieces): Take extra argument for
5250 dominance check, handle lookup failures.
5251 (find_or_generate_expression): Likewise.
5252 (create_expression_by_pieces): Likewise.
5253 (insert_into_preds_of_block): Adjust.
5254 (create_value_expr_from): If asked for, verify all operands
5255 are in the blocks AVAIL_OUT set.
5256 (make_values_for_stmt): Check for SSA_NAMEs that are life
5257 over an abnormal edge.
5258 (compute_avail): Remove such check.
5259 (do_SCCVN_insertion): New function.
5260 (eliminate): If we do not find a leader suitable for replacement
5261 insert a replacement expression from SCCVN if available.
5262 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
5263 (struct vn_ssa_aux): Add needs_insertion flag.
5264 * tree-ssa-sccvn.c (may_insert): New global flag.
5265 (copy_reference_ops_from_ref): Value-number union member access
5266 based on its size, not type and member if insertion is allowed.
5267 (visit_reference_op_load): For a weak match from union type
5268 punning lookup a view-converted value and insert a SSA_NAME
5269 for that value if that is not found.
5270 (visit_use): Make dumps shorter. Do not disallow value numbering
5271 SSA_NAMEs that are life over an abnormal edge to constants.
5272 (free_scc_vn): Release inserted SSA_NAMEs.
5273 (run_scc_vn): New flag to specify whether insertion is allowed.
5274 Process SSA_NAMEs in forward order.
5275 * tree-ssa-loop-im.c (for_each_index): Handle invariant
5276 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
5277 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
5278 pointer type to/from integral types that do not change the
5279 precision to regular conversions.
5281 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
5283 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5284 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5285 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
5286 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
5287 input arguments and the mode of return value. Built-in functions
5288 that operate on whole 64-bit MMX register now use V1DI mode.
5290 2008-03-13 Alon Dayan <alond@il.ibm.com>
5291 Olga Golovanevsky <olga@il.ibm.com>
5293 PR tree-optimization/35041
5294 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
5295 to locate the right position in a statement.
5297 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
5301 * config/i386/xmmintrin.h: Change all static inline functions to
5302 extern inline and add __gnu_inline__ attribute.
5303 * config/i386/bmintrin.h: Ditto.
5304 * config/i386/smmintrin.h: Ditto.
5305 * config/i386/tmmintrin.h: Ditto.
5306 * config/i386/mmintrin-common.h: Ditto.
5307 * config/i386/ammintrin.h: Ditto.
5308 * config/i386/emmintrin.h: Ditto.
5309 * config/i386/pmmintrin.h: Ditto.
5310 * config/i386/mmintrin.h: Ditto.
5311 * config/i386/mm3dnow.h: Ditto.
5313 2008-03-13 Jakub Jelinek <jakub@redhat.com>
5316 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
5317 (lower_omp_2): New function.
5318 (lower_omp_1, lower_omp): Rewritten.
5320 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
5323 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
5324 with the phrase "Microsoft Windows compilers".
5325 (Push/Pop Macro Pragmas): New subsection. Document
5326 #pragma push_macro and pragma pop_macro.
5328 2008-03-12 Paul Brook <paul@codesourcery.com>
5330 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
5332 2008-03-12 Paul Brook <paul@codesourcery.com>
5334 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
5335 (thumb2_alusi3_short): Exclude PLUS and MINUS.
5336 (thumb2_addsi_shortim): Rename ...
5337 (thumb2_addsi_short): ... to this. Allow register operands.
5338 (thumb2_subsi_short): New pattern.
5339 (thumb2_one_cmplsi2_short,
5340 thumb2_negsi2_short): New patterns and peepholes.
5342 2008-03-12 Paul Brook <paul@codesourcery.com>
5344 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
5346 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
5348 * config/i386/i386.md (int_cond): New code iterator.
5350 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
5351 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
5352 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
5353 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
5354 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
5355 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
5356 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
5357 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
5359 2008-03-12 Paul Brook <paul@codesourcery.com>
5361 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
5362 instead of {arm,thumb}_compute_save_reg_mask.
5363 (output_return_instruction): Ditto.
5364 (thumb_unexpanded_epilogue): Ditto.
5365 (thumb1_expand_prologue): Ditto.
5366 (thumb1_output_function_prologue): Ditto.
5367 (arm_set_return_address): Ditto.
5368 (thumb_set_return_address): Ditto.
5369 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
5370 regs to achieve stack alignment.
5371 (thumb1_compute_save_reg_mask): Fix compiler warning.
5372 (arm_output_epilogue): Use offsets->saved_regs_mask.
5373 Adjust stack pointer by poping call clobered registers.
5374 (arm_expand_prologue): Use offsets->saved_regs_mask.
5375 Adjust stack pointer by pushing extra registers.
5376 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
5378 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
5381 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
5382 conversion to the operands of a multiplication.
5384 2008-03-12 Richard Guenther <rguenther@suse.de>
5386 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
5387 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
5388 * timevar.def (TV_TREE_PHIPROP): Add.
5389 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
5390 pass description. Use TV_TREE_PHIPROP.
5391 * tree-ssa-forwprop.c: Remove phiprop code.
5393 2008-03-12 Jakub Jelinek <jakub@redhat.com>
5396 * omp-low.c (maybe_lookup_decl): Constify first argument.
5397 (use_pointer_for_field): Change last argument from bool to
5398 omp_context *. Disallow shared copy-in/out in nested
5399 parallel if decl is shared in outer parallel too.
5400 (build_outer_var_ref, scan_sharing_clauses,
5401 lower_rec_input_clauses, lower_copyprivate_clauses,
5402 lower_send_clauses, lower_send_shared_vars): Adjust callers.
5404 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
5405 Ira Rosen <irar@il.ibm.com>
5407 * tree-vectorizer.c (free_stmt_vec_info): New function.
5408 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
5409 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
5410 * tree-vectorizer.h (free_stmt_vec_info): Declare.
5411 * tree-vect-transform.c (vectorizable_conversion): Free
5412 vec_oprnds0 if it was allocated.
5413 (vect_permute_store_chain): Remove unused VECs.
5414 (vectorizable_store): Free VECs that are allocated in the..
5416 (vect_transform_strided_load, vectorizable_load): Likewise.
5417 (vect_remove_stores): Simplify the code.
5418 (vect_transform_loop): Move code to vect_remove_stores().
5419 Call vect_remove_stores() and free_stmt_vec_info().
5421 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5423 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
5424 TARGET_HPUX. Revise comment.
5425 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
5426 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
5427 Use sr4 variant of `be' instruction when not generating PIC code.
5428 (attr_length_call): Adjust for above change.
5430 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
5432 * ipa-reference.c (static_execute): Remove module_statics_const and
5433 associated setting code.
5435 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
5438 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
5439 predicate for operand 1.
5440 (paritysi2_cmp): Use register_operand predicate for operand 2.
5441 Use earlyclobber modifier for operand 1. Remove support for
5443 (paritydi2_cmp): Use register_operand predicate for operand 3.
5444 Use earlyclobber modifier for operand 1. Remove support for
5447 2008-03-11 Paul Brook <paul@codesourcery.com>
5448 Vladimir Prus <vladimir@codesourcery.com>
5450 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
5451 (arm_compute_save_reg0_reg12_mask): Always
5452 check if register 11 must be saved. Always safe hard frame pointer
5453 when frame_pointer_needeed.
5454 (arm_compute_save_reg_mask): Save IP and PC
5455 only with apcs frames.
5456 (arm_output_epilogue): Adjust Thumb2 codepath to
5457 be also invoked and work for ARM non-apcs frames.
5458 (arm_expand_prologue): Don't bother saving IP
5459 for non-apcs frame, since it's not clobbered by
5460 prologue code. Implement non-apcs frame
5463 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
5465 PR rtl-optimization/35281
5466 * expr.c (convert_move): Use a new pseudo for the intermediate
5467 from_mode->word_mode result.
5469 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
5471 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
5472 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
5473 * toplev.c (compile_file): Don't call it.
5475 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
5478 * expr.c (store_expr): Call emit_block_move if the mode
5479 of "temp" RTX is BLKmode.
5481 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
5482 Richard Guenther <rguenther@suse.de>
5484 PR tree-optimization/31358
5485 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
5486 the step with a NULL_TREE.
5487 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
5488 to sizetype if type is a pointer type.
5489 (add_candidate_1): Don't convert the base and step to
5490 the generic type if the orginal type is a pointer type.
5491 (add_iv_value_candidates): Use sizetype for the step
5492 if type is a pointer type.
5493 (cand_value_at): Likewise.
5494 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
5496 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
5497 Don't convert the tem affine to the type.
5498 (add_elt_to_tree): Use sizetype for the step if a pointer.
5499 Use POINTER_PLUS_EXPR for pointers.
5500 (aff_combination_to_tree): Use sizetype for the step if a
5503 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
5505 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
5506 Remove commutativity hint.
5508 2008-03-10 Jakub Jelinek <jakub@redhat.com>
5512 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
5513 errorneous type. Check that v is a VAR_DECL.
5516 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
5518 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
5520 PR tree-optimization/35494
5521 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
5522 may be overriden at link and run time.
5524 2008-03-10 Richard Guenther <rguenther@suse.de>
5526 PR tree-optimization/34677
5527 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
5528 (poolify_tree): Likewise.
5529 (modify_expr_template): Likewise.
5530 (poolify_modify_stmt): Likewise.
5531 (insert_fake_stores): Handle all component-ref style stores
5532 in addition to INDIRECT_REF. Also handle complex types.
5533 Do not poolify the inserted load.
5534 (realify_fake_stores): Do not rebuild the tree but only
5535 make it a SSA_NAME copy.
5536 (init_pre): Remove initialzation of modify_expr_template.
5537 Do not allocate modify_expr_node_pool.
5538 (fini_pre): Do not free modify_expr_node_pool.
5540 2008-03-10 Paul Brook <paul@codesourcery.com>
5542 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
5545 2008-03-10 Paul Brook <paul@codesourcery.com>
5546 Mark Shinwell <shinwell@codesourcery.com>
5548 * config/arm/cortex-r4.md: New.
5549 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
5551 * config/arm/arm.md: Include cortex-r4.md.
5552 (insn): Add smmls, sdiv and udiv values.
5553 (generic_sched): Don't use generic scheduling for Cortex-R4.
5554 (arm_issue_rate): New function.
5555 (TARGET_SCHED_ISSUE_RATE): Define.
5557 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
5559 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
5561 2008-03-10 Richard Guenther <rguenther@suse.de>
5563 * tree-ssa-pre.c (get_sccvn_value): Simplify.
5564 (compute_avail): Do not add stmt uses to AVAIL_OUT.
5566 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
5568 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
5569 Set default to true.
5571 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5573 * c.opt (Wsynth): Deprecate.
5574 * doc/invoke.texi (Option Summary, Warning Options): Document
5575 -Wno-format-contains-nul.
5577 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
5580 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
5581 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
5583 2008-03-09 Ira Rosen <irar@il.ibm.com>
5585 * config/rs6000/rs6000.c (builtin_description): Rename vector
5586 left shift operations.
5587 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
5588 (altivec_vsl<VI_char>): Rename to ...
5589 (ashl<mode>3): ... new name.
5590 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
5592 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
5594 2008-03-08 Richard Guenther <rguenther@suse.de>
5596 * coverage.h (tree_coverage_counter_addr): Declare.
5597 * coverage.c (tree_coverage_counter_addr): New function.
5598 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
5600 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
5601 (tree_gen_one_value_profiler): Likewise.
5602 (tree_gen_ic_profiler): Likewise.
5603 (tree_gen_average_profiler): Likewise.
5604 (tree_gen_ior_profiler): Likewise.
5606 2008-03-08 Richard Guenther <rguenther@suse.de>
5608 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
5609 (vn_binary_op_insert): Likewise.
5610 (vn_unary_op_lookup): Likewise.
5611 (vn_unary_op_insert): Likewise.
5612 (vn_nary_op_lookup): Declare.
5613 (vn_nary_op_insert): Likewise.
5614 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
5615 and binary hashes, use a single obstack for unary_op_pool
5617 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
5618 a single struct vn_nary_op_s. Store tree code length and
5619 a variable number of operands.
5620 (struct vn_reference_op_struct): Remove unused op2.
5621 (vn_reference_op_eq): Do not compare op2.
5622 (vn_reference_op_compute_hash): Do not compute hash of op2.
5623 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
5624 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
5625 with vn_nary_op_compute_hash.
5626 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
5627 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
5629 (vn_unary_op_insert, vn_binary_op_insert): Replace with
5631 (visit_unary_op): Call nary functions.
5632 (visit_binary_op): Likewise.
5633 (process_scc): Adjust for struct vn_tables_s changes.
5634 (allocate_vn_table): Likewise.
5635 (free_vn_table): Likewise.
5636 * tree-vn.c (vn_add): Call nary functions.
5637 (vn_lookup): Likewise.
5639 2008-03-08 Jakub Jelinek <jakub@redhat.com>
5642 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
5643 wdst back after sync_compare_and_swapqhi_internal.
5645 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
5648 * config/i386/i386-modes.def (V1DI): New vector mode.
5649 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
5650 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
5651 (MMXMODE248): Ditto.
5652 (MMXMODE): Add V1DI mode.
5653 (mmxvecsize): Change DI mode to V1DI mode.
5654 ("mov<mode>): Use MMXMODEI8 mode iterator.
5655 ("*mov<mode>_internal_rex64"): Ditto.
5656 ("*mov<mode>_internal"): Ditto.
5657 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
5658 ("mmx_sub<mode>3"): Ditto.
5659 ("mmx_adddi3"): Remove insn pattern.
5660 ("mmx_subdi3"): Ditto.
5661 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
5662 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
5663 ("mmx_ashl<mode>3"): Ditto.
5664 ("mmx_lshrdi3"): Remove insn pattern.
5665 ("mmx_ashldi3"): Ditto.
5666 * config/i386/i386.c (classify_argument): Handle V1DImode.
5667 (function_arg_advance_32): Ditto.
5668 (function_arg_32): Ditto.
5669 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
5670 mmx_addv1di3 insn pattern.
5671 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
5672 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
5673 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
5674 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
5675 Remove definitions of built-in functions.
5676 (V1DI_type_node): New node.
5677 (v1di_ftype_v1di_int): Ditto.
5678 (v1di_ftype_v1di_v1di): Ditto.
5679 (v2si_ftype_v2si_si): Ditto.
5680 (v4hi_ftype_v4hi_di): Remove node.
5681 (v2si_ftype_v2si_di): Ditto.
5682 (ix86_init_mmx_sse_builtins): Handle V1DImode.
5683 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
5684 Redefine builtins using def_builtin_const with *_ftype_*_int node.
5685 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
5686 Add new builtins using def_builtin_const.
5687 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
5688 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
5689 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
5690 * config/i386/mmintrin.h (__v1di): New typedef.
5691 (_mm_add_si64): Cast arguments to __v1di type.
5692 (_mm_sub_si64): Ditto.
5693 (_mm_sll_pi16): Cast __count to __v4hi type.
5694 (_mm_sll_pi32): Cast __count to __v2si type.
5695 (_mm_sll_si64): Cast arguments to __v1di type.
5696 (_mm_srl_pi16): Cast __count to __v4hi type.
5697 (_mm_srl_pi32): Cast __count to __v2si type.
5698 (_mm_srl_si64): Cast arguments to __v1di type.
5699 (_mm_sra_pi16): Cast __count to __v4hi type.
5700 (_mm_sra_pi32): Cast __count to __v2si type.
5701 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
5702 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
5703 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
5704 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
5705 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
5706 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
5707 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
5708 (_mm_srai_pi32): Use __builtin_ia32_psradi.
5709 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
5710 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5711 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5712 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
5714 2008-03-07 Joseph Myers <joseph@codesourcery.com>
5716 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
5718 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
5721 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
5722 reg+const addressing for Altivec modes. Don't generate reg+reg
5723 addressing for TFmode or TDmode quantities.
5725 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
5727 * c-common.c (vector_types_convertible_p): Call langhook
5728 instead of comptypes.
5730 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
5733 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
5734 integral and scalar float variables which have a
5737 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
5739 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
5740 dwarf_register_span hook when emitting unwind information for
5741 register-to-memory saves.
5742 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
5743 (rs6000_frame_related): Remove call to spe_synthesize_frame.
5745 2008-03-06 Jakub Jelinek <jakub@redhat.com>
5747 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
5748 for the same VAR_DECL.
5750 2008-03-06 Tom Tromey <tromey@redhat.com>
5753 * doc/standards.texi (Standards): Don't mention treelang.
5754 * doc/invoke.texi (Overall Options): Don't mention treelang.
5755 * doc/install.texi (Prerequisites): Don't mention bison or
5757 (Configuration): Don't mention treelang.
5758 (Building): Likewise.
5759 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
5761 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
5763 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
5764 word-extractions out of a multi-word object.
5766 2008-03-06 Richard Guenther <rguenther@suse.de>
5768 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
5769 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
5770 result type and precision.
5771 * expr.c (get_inner_reference): Set unsignedp based on the result
5772 type of BIT_FIELD_REF.
5773 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
5774 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
5775 (try_instantiate_multiple_fields): Likewise. Use the correct type
5777 (sra_build_assignment): Likewise.
5778 (sra_build_elt_assignment): Likewise.
5779 (sra_explode_bitfield_assignment): Likewise.
5780 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
5781 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
5782 set BIT_FIELD_REF_UNSIGNED.
5783 (vectorizable_load): Likewise.
5785 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
5787 * cse.c (cse_extended_basic_block): Invalidate artificial defs
5790 2008-03-06 Richard Guenther <rguenther@suse.de>
5792 * alias.c (struct alias_set_entry): Move has_zero_child field
5793 to pack with alias_set.
5795 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
5797 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5800 2008-03-05 Ian Lance Taylor <iant@google.com>
5802 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
5804 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5806 * fwprop.c (update_df): Support width and offset parameters of
5808 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
5809 global_conflicts): Change DF_REF_EXTRACT to either
5810 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
5811 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5812 * df-scan.c (df_ref_record, df_defs_record,
5813 df_ref_create_structure, df_def_record_1, df_uses_record,
5814 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
5815 df_bb_refs_collect, df_entry_block_defs_collect,
5816 df_exit_block_uses_collect): Support new width and offset fields.
5817 (ref_extract_pool): New storage pool.
5818 (df_free_ref): New function.
5819 (df_reg_chain_unlink, df_free_collection_rec,
5820 df_sort_and_compress_refs): Call df_free_ref.
5821 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
5823 (df_ref_create_structure): Allocate df_ref_extract if offset and
5824 width fields are used.
5825 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
5826 (df_uses_record): Get offset and width from ZERO_EXTRACT
5828 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
5829 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
5830 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5831 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
5832 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
5833 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5834 (df_ref_extract): New structure.
5835 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
5836 (df_ref_create): Add width and offset parameters.
5838 2008-03-05 Richard Guenther <rguenther@suse.de>
5840 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5841 Use ranges_overlap_p.
5842 (offset_overlaps_with_access): Rename
5843 to ranges_overlap_p and move ...
5844 * tree-flow-inline.h (ranges_overlap_p): ... here.
5846 * tree.h (get_inner_reference, handled_component_p): Update
5849 * tree.h (record_component_aliases, get_alias_set,
5850 alias_sets_conflict_p, alias_sets_must_conflict_p,
5851 objects_must_conflict_p): Move declarations ...
5852 * alias.h (record_component_aliases, get_alias_set,
5853 alias_sets_conflict_p, alias_sets_must_conflict_p,
5854 objects_must_conflict_p): ... here.
5855 Include coretypes.h.
5856 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
5858 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
5860 * cfg.c: Include tree-flow.h.
5861 (remove_edge_raw): Call redirect_edge_var_map_clear.
5862 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
5863 * tree-flow-inline.h (redirect_edge_var_map_def): New.
5864 (redirect_edge_var_map_result): New.
5865 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
5866 PENDING_STMT use with redirect_edge_var_map_*.
5867 * tree-ssa.c (edge_var_maps): New definition.
5868 (redirect_edge_var_map_add): New.
5869 (redirect_edge_var_map_clear): New.
5870 (redirect_edge_var_map_dup): New.
5871 (redirect_edge_var_map_vector): New.
5872 (redirect_edge_var_map_destroy): New.
5873 (ssa_redirect_edge): Replace PENDING_STMT use with
5874 redirect_edge_var_map_*.
5875 (flush_pending_stmts): Same.
5876 (delete_tree_ssa): Destroy edge var map.
5877 * tree-flow.h (struct _edge_var_map): New.
5878 Define edge_var_map vector type.
5879 Declare redirect_edge_var_map_* prototypes.
5880 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
5881 * tree-cfg.c (reinstall_phi_args): Replace
5882 PENDING_STMT use with redirect_edge_var_map_*.
5884 2008-03-05 Richard Guenther <rguenther@suse.de>
5886 PR tree-optimization/35472
5887 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
5888 whose single use_stmt has a overlapping set of loaded and
5889 stored symbols as that use_stmt might be a noop assignment then.
5891 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
5893 * gthr-rtems.h: Implement __gthread_mutex_destroy.
5895 2008-03-05 Richard Guenther <rguenther@suse.de>
5898 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
5899 should be constants.
5900 * tree-cfg.c (verify_expr): Verify it.
5901 * fold-const.c (fold_truthop): Remove code generating
5902 BIT_FIELD_REFs of structure bases.
5903 (fold_binary): Likewise.
5904 (fold_ternary): Position and size of BIT_FIELD_REFs are
5905 always host integers.
5906 (make_bit_field_ref): Remove.
5907 (optimize_bit_field_compare): Remove.
5908 (all_ones_mask_p): Remove.
5910 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
5913 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
5914 (split_block_and_df_analyze): New. Split basic block and rebuild
5916 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
5918 (split_pattern_seq): Likewise.
5919 (erase_matching_seqs): Likewise.
5920 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
5922 2008-03-04 Geoff Keating <geoffk@apple.com>
5924 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
5925 declaration and code.
5926 (tree_invalid_nonnegative_warnv_p): Likewise.
5928 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
5930 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
5931 examples. Truncate option-names then causing overfull hbox.
5933 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5936 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
5938 * configure: Rebuilt.
5940 2008-03-04 Rafael Espindola <espindola@google.com>
5942 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
5943 (tree_unary_nonnegative_warnv_p): New.
5944 (tree_binary_nonnegative_warnv_p): New.
5945 (tree_single_nonnegative_warnv_p): New.
5946 (tree_invalid_nonnegative_warnv_p): New.
5947 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
5949 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5952 * opts.c (handle_option): Postpone 'unknown option' errors only for
5955 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
5958 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
5961 2008-03-04 Rafael Espindola <espindola@google.com>
5963 * fold-const.c (tree_unary_nonzero_warnv_p): New.
5964 (tree_binary_nonzero_warnv_p): New.
5965 (tree_single_nonzero_warnv_p): New.
5966 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
5968 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
5971 * fold-const.c (fold_cond_expr_with_comparison): Prevent
5972 transformations for modes that have signed zeros.
5973 * ifcvt.c (noce_try_abs): Ditto.
5975 2008-03-04 Joseph Myers <joseph@codesourcery.com>
5977 * config/i386/i386.c (override_options): Force
5978 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
5980 2008-03-04 Jan Hubicka <jh@suse.cz>
5983 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
5986 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
5988 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
5989 label to probe the stack.
5991 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
5993 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
5994 (__gthr_win32_mutex_destroy): Declare.
5995 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
5996 __gthr_win32_mutex_destroy.
5997 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
5999 2008-03-03 Jan Hubicka <jh@suse.cz>
6002 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
6003 aggressive on inlining cold calls.
6005 2008-03-03 Richard Guenther <rguenther@suse.de>
6007 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
6008 struct copies into the expression table.
6009 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
6010 (try_to_simplify): Likewise.
6011 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
6012 integral and pointer arguments which do not change the
6013 precision to NOP_EXPRs.
6014 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
6015 VIEW_CONVERT_EXPR case.
6017 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
6019 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
6020 defined in a loop at depth 0 is invariant.
6021 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
6022 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
6023 be called at loop depth 0.
6025 2008-03-02 Jakub Jelinek <jakub@redhat.com>
6028 * gcc.c (process_command): Update copyright notice dates.
6029 * gcov.c (print_version): Likewise.
6030 * gcov-dump.c (print_version): Likewise.
6031 * mips-tfile.c (main): Likewise.
6032 * mips-tdump.c (main): Likewise.
6034 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6037 * c-common.c (flag_permissive): Delete.
6038 (constant_expression_warnings): Check flags first.
6039 (constant_expression_error): New.
6040 * c-common.h (flag_permissive): Delete.
6041 (constant_expression_error): Declare.
6042 * flags.h (flag_permissive): Declare. Update description.
6043 * diagnostic.c (pedwarn): Update.
6045 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
6046 (permissive_error_kind): New.
6047 * toplev.c (flag_permissive): Define. Update description.
6048 * toplev.h (permissive_error_kind): Declare.
6049 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
6050 (pedwarn_c90): Use pedantic_warning_kind.
6051 * c-opts.c (c_common_post_options): flag_permissive does not affect
6052 flag_pedantic_errors.
6054 2008-03-02 Joseph Myers <joseph@codesourcery.com>
6056 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
6057 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
6058 __absvsi2, __absvDI2): Use unsigned arithmetic.
6060 2008-03-02 Andi Kleen <ak@suse.de>
6061 Richard Guenther <rguenther@suse.de>
6063 * struct-equiv.c: Remove file.
6064 * cfg_cleanup.c (condjump_equiv_p): Remove.
6065 * Makefile.in (OBJS-common): Remove struct-equiv.o.
6066 (struct-equiv.o): Remove rule.
6067 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
6068 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
6069 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
6071 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6073 * ifcvt.c (noce_process_if_block): Try to handle only the then
6074 block if the else block exists but isn't suitable.
6076 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
6079 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
6080 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
6081 regression from previous patch.
6083 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
6086 * gthr.h: Add __gthread_mutex_destroy as a function that must be
6088 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
6089 * gthr-single.h (__gthread_mutex_destroy): Likewise.
6090 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
6091 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
6092 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
6093 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
6094 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
6095 (__gthread_mutex_destroy_function): Rename to
6096 __gthread_mutex_destroy.
6097 * gthr-dce.h (__gthread_mutex_destroy): Call
6098 pthread_mutex_destroy.
6099 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
6100 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
6101 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
6103 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6105 * df-scan.c (df_ref_chain_change_bb): Simplify.
6106 (df_insn_change_bb): Add new_bb argument. Simplify. Call
6107 set_block_for_insn if there's any change.
6108 * df.h ((df_insn_change_bb): Fix prototype.
6109 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
6110 df_insn_change_bb, don't call set_block_for_insn.
6111 * emit-rtl.c (reorder_insns): Likewise.
6112 * haifa-sched.c (move_insn): Likewise.
6114 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6116 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
6118 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6120 * tree-flow-inline.h (next_readonly_imm_use): Return
6121 NULL_USE_OPERAND_P after the end.
6123 2008-03-01 Richard Guenther <rguenther@suse.de>
6125 PR tree-optimization/35411
6126 * tree-sra.c (sra_build_assignment): Split conversion to
6127 final type to a separate statement if we are not assigning
6130 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6132 * fold-const.c (fold_convertible_p): Correct the logic to follow
6133 that in fold_convert().
6135 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
6138 * tree-inline.c (build_duplicate_type): When we make a
6139 duplicate type, make it unique in the canonical types system.
6141 2008-02-29 Tom Tromey <tromey@redhat.com>
6143 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
6144 input_file_stack_history, input_file_stack_restored): Remove.
6145 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6146 * input.h (struct file_stack): Remove.
6147 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6148 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
6150 * diagnostic.h (struct diagnostic_context) <last_module>: Change
6152 (diagnostic_last_module_changed): Add 'map' argument.
6153 (diagnostic_set_last_function): Likewise.
6154 * diagnostic.c (undiagnostic_report_current_module): Iterate using
6155 line map, not input_file_stack.
6156 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
6158 2008-02-29 Paul Brook <paul@codesourcery.com>
6160 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
6162 2008-02-29 Paul Brook <paul@codesourcery.com>
6164 * config/arm/ieee754-df.S (muldf3): Use RET macros.
6166 2008-02-29 Richard Guenther <rguenther@suse.de>
6168 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
6170 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
6171 value for comparing for a store match.
6172 (simplify_unary_expression): Do nothing for SSA_NAMEs.
6173 (try_to_simplify): Do not do a full-blown reference lookup.
6175 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
6177 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
6178 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6180 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
6182 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
6184 * tree-loop-linear.c (try_interchange_loops): Compare memory access
6185 strides against cache sizes.
6187 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
6189 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
6192 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
6194 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
6195 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
6196 is smaller than the original promoted value.
6197 (simplify_subreg): If OP is a SUBREG, try to preserve its
6198 SUBREG_PROMOTED_VAR_P information.
6200 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
6202 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
6203 (VN_INFO_GET): Allocate new objects on the obstack.
6204 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
6205 for rpo_numbers_temp, for consistency.
6206 (free_scc_vn): Free the obstack.
6208 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
6210 * doc/invoke.texi: Document -ftree-loop-distribution.
6211 * tree-loop-distribution.c: New.
6212 * tree-pass.h (pass_loop_distribution): New.
6213 * graphds.h (struct graph): Add htab_t indices.
6214 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6215 * tree-vectorizer.c (rename_variables_in_loop): Extern.
6216 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
6217 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6218 * tree-data-ref.c (debug_data_dependence_relations): New.
6219 (dump_data_dependence_relation): Also print data references.
6220 (free_data_ref): Extern.
6221 (same_access_functions): Moved...
6222 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6223 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6224 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6225 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
6226 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
6227 (stmts_from_loop): Skip LABEL_EXPR.
6228 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
6230 (build_rdg): Initialize rdg->indices htab.
6231 (free_rdg, stores_from_loop, ref_base_address,
6232 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6233 have_similar_memory_accesses_1, ref_base_address_1,
6234 remove_similar_memory_refs): New.
6235 * tree-data-ref.h: Depend on tree-chrec.h.
6236 (debug_data_dependence_relations, free_data_ref): Declared.
6237 (same_access_functions): ... here.
6238 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
6240 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
6241 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
6242 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
6243 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6244 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6245 rdg_vertex_for_stmt): Declared.
6246 (struct rdg_edge): Add level.
6248 (free_rdg, stores_from_loop, remove_similar_memory_refs,
6249 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
6251 (rdg_has_similar_memory_accesses): New.
6252 * tree-vect-analyze.c: Remove unused static decls.
6253 * lambda.h (dependence_level): New.
6254 * common.opt (ftree-loop-distribution): New.
6255 * tree-flow.h (mark_virtual_ops_in_bb,
6256 slpeel_tree_duplicate_loop_to_edge_cfg,
6257 rename_variables_in_loop): Declared.
6258 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
6259 (OBJS-common): Add tree-loop-distribution.o.
6260 (tree-loop-distribution.o): New rule.
6261 * tree-cfg.c (mark_virtual_ops_in_bb): New.
6262 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6263 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
6265 2008-02-28 Joseph Myers <joseph@codesourcery.com>
6268 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
6269 other than structures and unions.
6271 2008-02-28 Richard Guenther <rguenther@suse.de>
6274 2008-02-26 Richard Guenther <rguenther@suse.de>
6276 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6277 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6278 (lookup_decl_from_uid): Declare.
6279 (remove_decl_from_map): Likewise.
6280 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6281 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6282 (decl_for_uid_map): New global hashtable mapping DECL_UID
6284 (init_ttree): Allocate it.
6285 (insert_decl_to_uid_decl_map): New helper function.
6286 (make_node_stat): Insert new decls into the map.
6287 (copy_node_stat): Likewise.
6288 (lookup_decl_from_uid): New function.
6289 (remove_decl_from_map): Likewise.
6290 (print_decl_for_uid_map_statistics): New helper.
6291 (dump_tree_statistics): Call it.
6293 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6294 (referenced_var_iterator): Adjust.
6295 (FOR_EACH_REFERENCED_VAR): Adjust.
6296 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6297 (num_referenced_vars): Adjust.
6298 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6299 (first_referenced_var): Remove.
6300 (end_referenced_vars_p): Likewise.
6301 (next_referenced_var): Likewise.
6302 (referenced_var_iterator_set): New helper function.
6303 * tree-dfa.c (referenced_var_lookup): Adjust.
6304 (referenced_var_check_and_insert): Likewise.
6305 (remove_referenced_var): Likewise.
6306 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6307 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6308 (verify_call_clobbering): Likewise.
6309 (verify_memory_partitions): Likewise.
6310 (init_tree_ssa): Allocate bitmap instead of hashtable for
6312 (delete_tree_ssa): Adjust.
6313 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6314 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6315 (compute_tag_properties): Likewise.
6316 (set_initial_properties): Likewise.
6317 (find_partition_for): Likewise.
6318 (update_reference_counts): Likewise.
6319 (dump_may_aliases_for): Likewise.
6320 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6321 (add_call_clobber_ops): Likewise.
6322 (add_call_read_ops): Likewise.
6323 (get_asm_expr_operands): Likewise.
6324 * tree-into-ssa.c (dump_decl_set): Likewise.
6325 (update_ssa): Likewise.
6326 * tree-sra.c (scan_function): Likewise.
6327 (decide_instantiations): Likewise.
6328 (scalarize_parms): Likewise.
6329 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6330 (dsa_named_for): Likewise.
6331 * tree-ssa-structalias.c (update_alias_info): Likewise.
6332 (merge_smts_into): Likewise.
6334 2008-02-27 David Daney <ddaney@avtrex.com>
6337 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
6338 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
6339 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
6340 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
6341 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
6343 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
6346 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
6347 (BUILT_IN_NEXTTOWARD): Remove.
6348 (BUILT_IN_NEXTTOWARDF): Ditto.
6349 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
6350 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
6352 2008-02-27 Tom Tromey <tromey@redhat.com>
6354 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
6355 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
6357 2008-02-27 Jan Beulich <jbeulich@novell.com>
6359 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
6360 update the respective field on newdecl.
6362 2008-02-27 Revital Eres <eres@il.ibm.com>
6364 PR rtl-optimization/34999
6365 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
6366 crossing edges that ends with a call insn.
6367 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
6368 call insn and clear the EDGE_CROSSING flag of the crossing edge
6369 when fixing fallthru edges.
6371 2008-02-27 Richard Guenther <rguenther@suse.de>
6374 * fold-const.c (fold_unary): Return the correct argument,
6375 converted to the result type.
6377 2008-02-27 Richard Guenther <rguenther@suse.de>
6380 * expr.c (expand_expr_real_1): Assert on rotates that operate
6382 * fold-const.c (fold_binary): Use the types precision, not the
6383 bitsize of the mode if folding rotate expressions. Build rotates
6384 only for full modes.
6386 2008-02-27 Jakub Jelinek <jakub@redhat.com>
6388 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
6390 * c-pragma.c (pragma_ns_name): New typedef.
6391 (registered_pp_pragmas): New variable.
6392 (c_pp_lookup_pragma): New function.
6393 (c_register_pragma_1): If flag_preprocess_only, do nothing
6394 for non-expanded pragmas, for expanded ones push pragma's
6395 namespace and name into registered_pp_pragmas vector.
6396 (c_invoke_pragma_handler): Register OpenMP pragmas even when
6397 flag_preprocess_only, don't register GCC pch_preprocess
6398 pragma if flag_preprocess_only.
6399 * c-opts.c (c_common_init): Call init_pragma even if
6400 flag_preprocess_only.
6401 * c-pragma.c (c_pp_lookup_pragma): New prototype.
6402 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
6403 cpp_register_pragma if flag_preprocess_only.
6405 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6408 * c-parser.c (c_parser_translation_unit): Warn for empty
6409 translation unit, not empty source file.
6411 2008-02-26 Paul Brook <paul@codesourcery.com>
6413 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
6414 operand for Thumb-2.
6415 * config/arm/arm.h (reg_class): Add CORE_REGS.
6416 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
6417 (BASE_REG_CLASS): Use CORE_REGS.
6418 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
6419 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
6420 (REGNO_OK_FOR_INDEX_P): Exclude SP.
6421 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
6422 ARM_REGNO_OK_FOR_INDEX_P.
6423 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
6424 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
6425 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
6426 (ldm/stm peepholes): Ditto.
6427 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
6428 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
6429 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
6430 * config/arm/constraints.md: Enable "k" constraint on ARM.
6432 2008-02-27 Ben Elliston <bje@au.ibm.com>
6434 * config/rs6000/rs6000.c: Annotate cache line size field in all
6435 instances of struct processor_costs.
6437 2008-02-26 David Edelsohn <edelsohn@gnu.org>
6439 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
6440 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
6441 jump_bypass): New counters.
6442 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
6443 * dce.c (gate_ud_dce): Same.
6444 (gate_fast_dce): Same.
6445 * dse.c (gate_dse1): New function.
6446 (gate_dse2): New function.
6447 (gate_dse): Merge results of new gate functions.
6448 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
6449 (gate_handle_jump_bypass): Add dbg_cnt.
6450 (gate_handle_gcse): Add dbg_cnt.
6451 * ifcvt.c (gate_handle_if_conversion): Same.
6452 (gate_handle_if_after_combine): Same.
6453 (gate_handle_if_after_reload): Same.
6454 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
6456 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
6458 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
6460 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
6462 2008-02-26 Jason Merrill <jason@redhat.com>
6465 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
6466 alone if it's the naming decl for the type's main variant.
6468 2008-02-26 Tom Tromey <tromey@redhat.com>
6470 * system.h (USE_MAPPED_LOCATION): Poison.
6471 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
6472 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
6473 (make_goto_expr_edges): Likewise.
6474 (remove_bb): Likewise.
6475 (execute_warn_function_return): Likewise.
6476 * basic-block.h (struct edge_def) <goto_locus>: Change type to
6478 * c-common.c (fname_decl): Remove old location code.
6479 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
6481 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
6483 (ASM_INPUT_SOURCE_LOCATION): Likewise.
6484 (gen_rtx_ASM_INPUT): Likewise.
6485 (gen_rtx_ASM_INPUT_loc): Likewise.
6486 (get_rtx_asm_OPERANDS): Remove.
6487 * cfglayout.c (insn_locators_alloc): Remove old location code.
6488 (set_curr_insn_source_location): Likewise.
6489 (curr_insn_locator): Likewise.
6490 * print-tree.c (print_node): Remove old location code.
6491 * tree-mudflap.c (mf_varname_tree): Remove old location code.
6492 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
6493 * cfgexpand.c (expand_gimple_cond_expr): Don't use
6494 location_from_locus.
6495 (construct_exit_block): Remove old location code.
6496 * emit-rtl.c (force_next_line_note): Remove old location code.
6497 * profile.c (branch_prob): Remove old location code.
6498 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
6499 LOC_LINE): Remove old-location variants.
6500 * langhooks.c (lhd_print_error_function): Remove old location
6502 * configure, config.in: Rebuilt.
6503 * configure.ac (--enable-mapped-location): Remove.
6504 * c-decl.c (c_init_decl_processing): Remove old location code.
6505 (finish_function): Likewise.
6506 * recog.c (decode_asm_operands): Remove old location code.
6507 * c-pch.c (c_common_read_pch): Remove old location code.
6508 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
6510 * gimple-low.c (lower_function_body): Remove old location code.
6511 * toplev.c (unknown_location): Remove.
6512 (push_srcloc): Remove old-location variant.
6513 (process_options): Remove old location code.
6514 (lang_dependent_init): Likewise.
6515 * input.h (UNKNOWN_LOCATION): Move definition.
6516 (location_t): Undeprecate.
6517 (source_locus): Remove.
6518 (location_from_locus): Remove.
6519 (struct location_s): Remove.
6520 Remove all old-location code.
6521 (input_line, input_filename): Remove.
6522 * final.c (final_scan_insn): Remove old location code.
6523 * diagnostic.c (diagnostic_build_prefix): Remove
6524 USE_MAPPED_LOCATION test.
6525 * tree.h (gimple_stmt) <locus>: Now a location_t.
6526 (tree_exp) <locus>: Likewise.
6527 (DECL_IS_BUILTIN): Remove old-location variant.
6528 (annotate_with_file_line, annotate_with_locus): Likewise.
6529 (expr_locus, set_expr_locus): Update.
6530 * tree.c (build1_stat): Remove old location code.
6531 (last_annotated_node): Remove.
6532 (annotate_with_file_line): Remove old-location variant.
6533 (annotate_with_locus): Likewise.
6534 (expr_location): Remove old location code.
6535 (set_expr_location): Likewise.
6536 (expr_has_location): Likewise.
6537 (expr_locus): Likewise.
6538 (set_expr_locus): Likewise.
6539 (expr_filename): Don't use location_from_locus.
6540 (expr_lineno): Likewise.
6541 * rtl-error.c (location_for_asm): Remove old location code.
6542 * c-lex.c (cb_line_change): Remove old location code.
6543 (fe_file_change): Likewise.
6544 (cb_def_pragma): Likewise.
6545 (c_lex_with_flags): Likewise.
6546 * gengtype.c (do_typedef): Don't special-case location types.
6547 (define_location_structures): Remove.
6548 (main): Don't call define_location_structures.
6549 * tree-pretty-print.c (dump_implicit_edges): Remove old location
6552 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6555 * builtins.def (BUILT_IN_STDARG_START): Remove.
6556 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
6557 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6558 * tree-inline.c (inline_forbidden_p_1): Likewise.
6560 2008-02-26 Richard Guenther <rguenther@suse.de>
6562 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6563 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6564 (lookup_decl_from_uid): Declare.
6565 (remove_decl_from_map): Likewise.
6566 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6567 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6568 (decl_for_uid_map): New global hashtable mapping DECL_UID
6570 (init_ttree): Allocate it.
6571 (insert_decl_to_uid_decl_map): New helper function.
6572 (make_node_stat): Insert new decls into the map.
6573 (copy_node_stat): Likewise.
6574 (lookup_decl_from_uid): New function.
6575 (remove_decl_from_map): Likewise.
6576 (print_decl_for_uid_map_statistics): New helper.
6577 (dump_tree_statistics): Call it.
6579 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6580 (referenced_var_iterator): Adjust.
6581 (FOR_EACH_REFERENCED_VAR): Adjust.
6582 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6583 (num_referenced_vars): Adjust.
6584 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6585 (first_referenced_var): Remove.
6586 (end_referenced_vars_p): Likewise.
6587 (next_referenced_var): Likewise.
6588 (referenced_var_iterator_set): New helper function.
6589 * tree-dfa.c (referenced_var_lookup): Adjust.
6590 (referenced_var_check_and_insert): Likewise.
6591 (remove_referenced_var): Likewise.
6592 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6593 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6594 (verify_call_clobbering): Likewise.
6595 (verify_memory_partitions): Likewise.
6596 (init_tree_ssa): Allocate bitmap instead of hashtable for
6598 (delete_tree_ssa): Adjust.
6599 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6600 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6601 (compute_tag_properties): Likewise.
6602 (set_initial_properties): Likewise.
6603 (find_partition_for): Likewise.
6604 (update_reference_counts): Likewise.
6605 (dump_may_aliases_for): Likewise.
6606 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6607 (add_call_clobber_ops): Likewise.
6608 (add_call_read_ops): Likewise.
6609 (get_asm_expr_operands): Likewise.
6610 * tree-into-ssa.c (dump_decl_set): Likewise.
6611 (update_ssa): Likewise.
6612 * tree-sra.c (scan_function): Likewise.
6613 (decide_instantiations): Likewise.
6614 (scalarize_parms): Likewise.
6615 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6616 (dsa_named_for): Likewise.
6617 * tree-ssa-structalias.c (update_alias_info): Likewise.
6618 (merge_smts_into): Likewise.
6620 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6623 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
6624 * c-opts.c (c_common_handle_option): Wall enables
6625 Wvolatile-register-var.
6626 * common.opt: Move Wvolatile-register-var to...
6629 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6631 * common.opt (Wlarger-than=): New.
6632 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
6634 * opts.c (common_handle_option): Handle -Wlarger-than=.
6635 * optc-gen.awk: Likewise.
6636 * opth-gen.awk: Likewise.
6637 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
6638 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6640 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6642 * c-common.c (match_case_to_enum_1): Add appropriate
6643 OPT_W* parameter to warning.
6644 (c_do_switch_warnings): Likewise.
6645 * c-typeck.c (warning_init): Add one more parameter following
6647 (push_init_level): Update call to warning_init.
6648 (pop_init_level): Likewise.
6649 (add_pending_init): Likewise.
6650 (output_init_element: Likewise.
6652 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6655 * toplev.c (toplev_main): If there are warnings or error, print
6656 errors for ignored options.
6657 * opts.c (ignored_options): New static variable.
6658 (postpone_unknown_option_error): New.
6659 (print_ignored_options): New.
6660 (handle_option): Postpone errors for unknown -Wno-* options.
6661 * opts.h (print_ignored_options): Declare.
6663 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
6665 * config/mips/mips.md (loadgp_blockage, blockage): Change type
6668 2008-02-25 Richard Guenther <rguenther@suse.de>
6671 2008-02-25 Richard Guenther <rguenther@suse.de>
6673 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6674 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6675 (lookup_decl_from_uid): Declare.
6676 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6677 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6678 (decl_for_uid_map): New global hashtable mapping DECL_UID
6680 (init_ttree): Allocate it.
6681 (insert_decl_to_uid_decl_map): New helper function.
6682 (make_node_stat): Insert new decls into the map.
6683 (copy_node_stat): Likewise.
6684 (lookup_decl_from_uid): New function.
6685 (print_decl_for_uid_map_statistics): New helper.
6686 (dump_tree_statistics): Call it.
6688 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6689 (referenced_var_iterator): Adjust.
6690 (FOR_EACH_REFERENCED_VAR): Adjust.
6691 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6692 (num_referenced_vars): Adjust.
6693 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6694 (first_referenced_var): Remove.
6695 (end_referenced_vars_p): Likewise.
6696 (next_referenced_var): Likewise.
6697 (referenced_var_iterator_set): New helper function.
6698 * tree-dfa.c (referenced_var_lookup): Adjust.
6699 (referenced_var_check_and_insert): Likewise.
6700 (remove_referenced_var): Likewise.
6701 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6702 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6703 (verify_call_clobbering): Likewise.
6704 (verify_memory_partitions): Likewise.
6705 (init_tree_ssa): Allocate bitmap instead of hashtable for
6707 (delete_tree_ssa): Adjust.
6708 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6709 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6710 (compute_tag_properties): Likewise.
6711 (set_initial_properties): Likewise.
6712 (find_partition_for): Likewise.
6713 (update_reference_counts): Likewise.
6714 (dump_may_aliases_for): Likewise.
6715 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6716 (add_call_clobber_ops): Likewise.
6717 (add_call_read_ops): Likewise.
6718 (get_asm_expr_operands): Likewise.
6719 * tree-into-ssa.c (dump_decl_set): Likewise.
6720 (update_ssa): Likewise.
6721 * tree-sra.c (scan_function): Likewise.
6722 (decide_instantiations): Likewise.
6723 (scalarize_parms): Likewise.
6724 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6725 (dsa_named_for): Likewise.
6726 * tree-ssa-structalias.c (update_alias_info): Likewise.
6727 (merge_smts_into): Likewise.
6729 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
6732 * doc/invoke.texi (-fcx-limited-range): Document new option.
6733 * toplev.c (process_options): Handle -fcx-fortran-rules.
6734 * common.opt: Add documentation for -fcx-fortran-rules.
6736 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
6739 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
6740 actual behaviour and C99.
6742 2008-02-26 Ben Elliston <bje@au.ibm.com>
6744 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
6745 (ASM_CPU_POWER6_SPEC): Likewise.
6746 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
6747 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
6748 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
6750 2008-02-25 Richard Guenther <rguenther@suse.de>
6752 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6753 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6754 (lookup_decl_from_uid): Declare.
6755 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6756 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6757 (decl_for_uid_map): New global hashtable mapping DECL_UID
6759 (init_ttree): Allocate it.
6760 (insert_decl_to_uid_decl_map): New helper function.
6761 (make_node_stat): Insert new decls into the map.
6762 (copy_node_stat): Likewise.
6763 (lookup_decl_from_uid): New function.
6764 (print_decl_for_uid_map_statistics): New helper.
6765 (dump_tree_statistics): Call it.
6767 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6768 (referenced_var_iterator): Adjust.
6769 (FOR_EACH_REFERENCED_VAR): Adjust.
6770 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6771 (num_referenced_vars): Adjust.
6772 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6773 (first_referenced_var): Remove.
6774 (end_referenced_vars_p): Likewise.
6775 (next_referenced_var): Likewise.
6776 (referenced_var_iterator_set): New helper function.
6777 * tree-dfa.c (referenced_var_lookup): Adjust.
6778 (referenced_var_check_and_insert): Likewise.
6779 (remove_referenced_var): Likewise.
6780 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6781 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6782 (verify_call_clobbering): Likewise.
6783 (verify_memory_partitions): Likewise.
6784 (init_tree_ssa): Allocate bitmap instead of hashtable for
6786 (delete_tree_ssa): Adjust.
6787 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6788 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6789 (compute_tag_properties): Likewise.
6790 (set_initial_properties): Likewise.
6791 (find_partition_for): Likewise.
6792 (update_reference_counts): Likewise.
6793 (dump_may_aliases_for): Likewise.
6794 * tree-ssa-operands.c (add_virtual_operand): Likewise.
6795 (add_call_clobber_ops): Likewise.
6796 (add_call_read_ops): Likewise.
6797 (get_asm_expr_operands): Likewise.
6798 * tree-into-ssa.c (dump_decl_set): Likewise.
6799 (update_ssa): Likewise.
6800 * tree-sra.c (scan_function): Likewise.
6801 (decide_instantiations): Likewise.
6802 (scalarize_parms): Likewise.
6803 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6804 (dsa_named_for): Likewise.
6805 * tree-ssa-structalias.c (update_alias_info): Likewise.
6806 (merge_smts_into): Likewise.
6808 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
6811 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
6812 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
6813 * alias.h (nonoverlapping_memrefs_p): Likewise.
6815 2008-02-25 Jan Beulich <jbeulich@novell.com>
6817 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
6818 * config/i386/netware-libgcc.exp: Add __bswap?i2,
6819 __emultls_get_address, __emultls_register_common,
6820 __floatundi?f, and _Unwind_GetIPInfo.
6821 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
6822 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
6823 (gen_regparm_prefix): Likewise.
6824 (i386_nlm_encode_section_info): Sync with
6825 config/i386/winnt.c:i386_pe_encode_section_info().
6826 (i386_nlm_maybe_mangle_decl_assembler_name): New.
6827 i386_nlm_mangle_decl_assembler_name): New.
6828 (netware_override_options): New.
6829 * config/i386/netware.h (netware_override_options): Declare.
6830 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
6831 (i386_nlm_mangle_decl_assembler_name): Declare.
6832 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
6834 2008-02-25 Ben Elliston <bje@au.ibm.com>
6837 * c-decl.c (grokdeclarator): Remove unused local variables
6838 `typedef_type' and `type_as_written'.
6840 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
6841 unused local variable `has_hot_blocks'.
6842 (fix_crossing_conditional_branches): Remove unused local variable
6845 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
6848 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
6849 using DEF_C99_BUILTIN.
6850 (BUILT_IN_NANF): Ditto.
6851 (BUILT_IN_NANL): Ditto.
6853 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
6854 Revital Eres <eres@il.ibm.com>
6856 * modulo-sched.c (calculate_must_precede_follow): Address TODO
6857 regarding the order of two dependent insns in the same row.
6859 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
6861 * stor-layout.c (layout_decl): Do not bump the alignment of a
6862 bit-field to more than byte alignment if it is packed.
6864 2008-02-24 David Edelsohn <edelsohn@gnu.org>
6866 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
6869 2008-02-24 Diego Novillo <dnovillo@google.com>
6871 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
6874 * tree-vrp.c (vrp_evaluate_conditional): With
6875 -Wtype-limits, emit a warning when comparing against a
6876 constant outside the natural range of OP0's type.
6877 * c.opt (Wtype-limits): Move ...
6878 * common.opt (Wtype-limits): ... here.
6880 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
6882 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
6883 * config/rs6000/e300c2c3.md: New file.
6884 * config/rs6000/rs6000.c (processor_costs): Add new costs for
6886 (rs6000_override_options): Add e300c2 and e300c3 cases to
6887 processor_target_table. Do not allow usage of Altivec or Spe
6888 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
6889 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
6890 * config/rs6000/rs6000.h (processor_type): Add
6891 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
6892 (ASM_CPU_SPEC): Add e300c2 and e300c3.
6893 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
6894 and ppce300c3. Include e300c2c3.md.
6896 2008-02-23 David Edelsohn <edelsohn@gnu.org>
6898 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
6899 instead of TARGET_STRICT_ALIGN.
6901 2008-02-23 Joseph Myers <joseph@codesourcery.com>
6903 * explow.c (memory_address): Assert that the generated address is
6906 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6909 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
6910 * config/darwin-ppc-ldouble-patch.def: New file.
6911 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
6912 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
6913 SUBTARGET_INIT_BUILTINS if defined.
6914 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
6917 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
6920 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
6921 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
6923 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
6926 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
6927 file" warning condtional on -Winvalid-PCH.
6929 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
6931 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
6933 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
6937 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
6938 prevent reload from using MMX registers.
6939 (*mov<mode>_internal): Ditto.
6940 (*movv2sf_internal_rex64): Ditto.
6941 (*movv2sf_internal): Ditto.
6943 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6945 PR documentation/31569
6946 * doc/install.texi2html: Use makeinfo --no-number-sections.
6948 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
6950 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
6951 ensure that we can address an entire entity > 8 bytes. Don't
6952 generate reg+reg addressing for such data.
6954 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
6956 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
6957 strings when optimizing for size, unless the target cares about
6960 2008-02-22 Tom Tromey <tromey@redhat.com>
6962 * regclass.c (current_pass): Remove declaration.
6964 2008-02-22 Anatoly Sokolov <aesok@post.ru>
6966 * config/avr/libgcc.S (__RAMPZ__): Define.
6967 (__do_copy_data): Add for devices with 128KB code memory.
6969 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
6971 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
6973 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
6975 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
6977 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
6980 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6983 * c-typeck.c (build_binary_op): Warn about floating point
6984 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
6986 2008-02-21 Janis Johnson <janis187@us.ibm.com>
6989 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
6990 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
6992 (rs6000_override_options): Set altivec_abi as default, not override,
6993 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
6994 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
6995 is used; use new member spe_abi.
6996 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
6997 spe_abi and altivec_abi.
6999 2008-02-22 Tomas Bily <tbily@suse.cz>
7001 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
7003 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7006 * config.build (build_file_translate): Set to `CMD //c' only if
7008 * Makefile.in (build_file_translate): Improve comment.
7010 2008-02-21 Jan Hubicka <jh@suse.cz>
7012 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
7013 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
7014 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
7016 2008-02-21 Michael Matz <matz@suse.de>
7019 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
7021 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
7023 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
7024 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
7026 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
7027 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
7028 SSE_VEC_FLOAT_MODE_P as insn constraint.
7029 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
7030 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
7031 sse4a_movntdf using MODEF mode iterator.
7032 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
7033 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
7034 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
7035 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
7036 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
7037 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
7038 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
7040 2008-02-21 Richard Guenther <rguenther@suse.de>
7042 * tree.def (PAREN_EXPR): New tree code.
7043 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
7045 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
7046 * expr.c (expand_expr_real_1): Likewise.
7047 * tree-inline.c (estimate_num_insns_1): Likewise.
7048 * tree-complex.c (expand_complex_move): Likewise.
7049 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
7052 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
7055 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
7057 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
7060 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
7062 * config/sh/sh.c (find_barrier): Don't go past
7063 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
7065 2008-02-20 DJ Delorie <dj@redhat.com>
7067 * config/h8300/h8300.md (insv): Force source operand to be a register.
7069 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
7070 as a jump, not as a plain insn.
7072 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
7074 * doc/invoke.texi (Warning Options): Add new option
7075 -Wframe-larger-than=.
7076 (-Wframe-larger-than): Document.
7078 * flags.h (warn_frame_larger_than, frame_larger_than_size):
7079 Add declarations for new option variables.
7081 * final.c (final_start_function): Check the frame size
7082 before emission and issue a Wframe-larger-than warning.
7084 * opts.c (warn_frame_larger_than, frame_larger_than_size):
7085 Add definitions for new option variables.
7086 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
7088 * common.opt (Wframe-larger-than=): New option.
7090 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
7092 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
7093 (<sse>_div<mode>3): Ditto.
7094 (<sse>_vmdiv<mode>3): Ditto.
7095 (<sse>_vmsqrt<mode>2): Ditto.
7096 (*smax<mode>3): Ditto.
7097 (sse5_frcz<mode>2): Ditto.
7098 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
7101 2008-02-20 Richard Guenther <rguenther@suse.de>
7104 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
7105 be happy with INTEGRAL_TYPE_P.
7107 2008-02-20 Richard Guenther <rguenther@suse.de>
7109 * fold-const.c (split_tree): Associate floatig-point expressions
7110 if flag_associative_math is set.
7112 2008-02-20 Richard Guenther <rguenther@suse.de>
7114 * tree.h (fold_real_zero_addition_p): Declare.
7115 * fold-const.c (fold_real_zero_addition_p): Export.
7116 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
7117 floating-point operations with zero and one.
7119 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
7121 * doc/install.texi: Correct references to CFLAGS, replacing them
7122 with BOOT_CFLAGS. Document flags used during bootstrap for
7125 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
7127 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
7128 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
7129 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
7131 (smin<mode>3): Ditto from similar patterns.
7132 (smax<mode>3): Ditto.
7133 (*ieee_smin<mode>3): Ditto.
7134 (*ieee_smax<mode>3): Ditto.
7135 * config/i386/sse.md (sse): New mode attribute.
7136 (mov<mode>): Macroize expander from movv4sf and movv2df using
7137 SSEMODEF2P mode iterator.
7138 (<sse>_movnt<mode>): Ditto from similar patterns. Use
7139 SSE_VEC_FLOAT_MODE_P as insn constraint.
7140 (storent<mode>): Ditto.
7141 (storent<mode>): Macroize expander from storentsf and storentdf using
7142 MODEF mode iterator.
7143 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
7144 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
7145 (abs<mode>2): Ditto from similar patterns.
7146 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
7147 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
7148 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
7149 (<sse>_vmsqrt<mode>2): Ditto.
7150 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
7151 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
7152 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
7153 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
7154 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
7155 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
7156 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
7158 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
7159 iterator and SSE_FLOAT_MODE_P as insn constraint.
7160 (<sse>_ucomi): Ditto from similar patterns.
7161 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
7162 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
7163 SSE_VEC_FLOAT_MODE_P as insn constraint.
7164 (vcond<mode>): Ditto from similar patterns.
7165 (and<mode>3, *and<mode>3): Ditto.
7166 (<sse>_nand<mode>3): Ditto.
7167 (ior<mode>3, *ior<mode>3): Ditto.
7168 (xor<mode>3, *xor<mode>3): Ditto.
7169 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
7170 iterator and SSE_FLOAT_MODE_P as insn constraint.
7171 (*nand<mode>3): Ditto from similar patterns.
7172 (*ior<mode>3): Ditto.
7173 (*xor<mode>3): Ditto.
7175 2008-02-20 Ira Rosen <irar@il.ibm.com>
7177 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
7178 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
7179 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
7181 2008-02-19 Jan Hubicka <jh@suse.cz>
7183 * predict.c (tree_bb_level_predictions): Remove variable next
7184 mistakely introduced by previous commit.
7186 2008-02-19 Jan Hubicka <jh@suse.cz>
7188 * predict.c (predict_paths_leading_to): Rewrite.
7189 (predict_paths_for_bb): New.
7190 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
7192 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7195 * Makefile.in (build_file_translate): New.
7196 (gcc-vers.texi): Use it for translating $(abs_srcdir).
7197 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
7198 * configure.ac (build_file_translate): Substitute it.
7199 * configure: Regenerate.
7201 2008-02-19 Jan Hubicka <jh@suse.cz>
7203 PR rtl-optimization/34408
7204 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
7207 2008-02-19 Jan Hubicka <jh@suse.cz>
7210 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
7213 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
7216 * config/i386/i386-modes.def: Revert the last DI alignment
7217 change until Ada people can look into it.
7219 2008-02-19 Nick Clifton <nickc@redhat.com>
7221 * opts.c (print_specific_help): Fix typo in --help text.
7223 2008-02-19 Jakub Jelinek <jakub@redhat.com>
7226 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
7227 32-bit inline asm without asm alternatives for host GCC < 3.0.
7229 2008-02-19 Richard Guenther <rguenther@suse.de>
7231 PR tree-optimization/34989
7232 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
7233 Allow propagation to INDIRECT_REF if we can simplify only.
7235 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7237 * c-common.c (warn_for_collisions_1): Use appropriate option when
7240 2008-02-19 Nick Clifton <nickc@redhat.com>
7243 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
7244 (handle_options): Fix indentation.
7245 (print_filtered_help): If no language-specific options were
7246 displayed tell the user how to list all the options supported by
7247 the language's front-end.
7248 (print_specific_help): Fix indentation and remove duplicate line.
7249 (common_handle_option): Handle the -v option.
7250 For --help enable the display of undocumented options if the -v
7251 switch has been included on the command line.
7252 For --help= check for overlaps in the arguments between the option
7253 classes and the language names and issue a warning when they
7254 cannot be disambiguated.
7255 * c.opt (v): Pass on to the common option handler.
7257 2008-02-19 Revital Eres <eres@il.ibm.com>
7259 * modulo-sched.c (sms_schedule): Change dump message when
7260 create_ddg function fails.
7261 (try_scheduling_node_in_cycle): Rename row to cycle.
7262 (print_partial_schedule): Rename CYCLE to ROW.
7264 2008-02-19 Christian Bruel <christian.bruel@st.com>
7265 Zdenek Dvorak <ook@ucw.cz>
7267 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
7269 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
7272 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
7273 (*x86_movdicc_0_m1_se): Ditto.
7275 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
7277 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
7278 (CMPtype): Define as __gcc_CMPtype.
7279 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
7280 (CMPtype): Define as __gcc_CMPtype.
7282 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
7284 Support valgrind 3.3 for --enable-checking=valgrind.
7285 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
7287 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
7288 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
7289 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
7290 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
7291 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
7292 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
7293 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
7295 * ggc-zone.c: Similar.
7296 * ggc-page.c: Similar.
7298 2008-02-19 Paul Brook <paul@codesourcery.com>
7301 * config/arm/ieee754-df.S: Fix do_it typo.
7302 * config/arm/ieee754-sf.S: Fix do_it typo.
7304 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
7307 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
7308 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
7309 (OPTION_MASK_ISA_SSE_SET): Likewise.
7310 (OPTION_MASK_ISA_SSE2_SET): Likewise.
7311 (OPTION_MASK_ISA_SSE3_SET): Likewise.
7312 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
7313 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
7314 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
7315 (OPTION_MASK_ISA_SSE4_SET): Likewise.
7316 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
7317 (OPTION_MASK_ISA_SSE5_SET): Likewise.
7318 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
7319 (OPTION_MASK_ISA_MMX_UNSET): Updated.
7320 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
7321 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
7322 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
7323 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
7324 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
7325 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
7326 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
7327 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
7328 (OPTION_MASK_ISA_SSE4): Removed.
7329 (ix86_handle_option): Turn on bits in ix86_isa_flags and
7330 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
7331 (override_options): Don't turn on implied SSE/MMX bits in
7334 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
7336 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7339 2008-02-18 Joey Ye <joey.ye@intel.com>
7342 * tree-nested.c (insert_field_into_struct): Set type alignment
7343 to field alignment if the former is less than the latter.
7345 2008-02-18 Jakub Jelinek <jakub@redhat.com>
7347 * BASE-VER: Set to 4.4.0.
7349 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7351 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
7352 * doc/cfg.texi: Likewise.
7353 * doc/extend.texi: Likewise.
7354 * doc/gty.texi: Likewise.
7355 * doc/invoke.texi: Likewise.
7356 * doc/loop.texi: Likewise.
7357 * doc/md.texi: Likewise.
7358 * doc/passes.texi: Likewise.
7359 * doc/rtl.texi: Likewise.
7360 * doc/sourcebuild.texi: Likewise.
7361 * doc/tm.texi: Likewise.
7362 * doc/tree-ssa.texi: Likewise.
7364 2008-02-17 Richard Guenther <rguenther@suse.de>
7367 * tree-complex.c (init_parameter_lattice_values): Handle parameters
7368 without default definition.
7370 2008-02-17 Richard Guenther <rguenther@suse.de>
7372 PR tree-optimization/35231
7373 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
7376 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
7379 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7380 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7381 libgcc_cmp_return mode.
7383 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7386 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
7388 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
7390 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
7393 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7395 * doc/c-tree.texi: Use `@.' where appropriate.
7396 * doc/extend.texi: Likewise.
7397 * doc/install.texi: Likewise.
7398 * doc/invoke.texi: Likewise.
7399 * doc/loop.texi: Likewise.
7400 * doc/makefile.texi: Likewise.
7401 * doc/md.texi: Likewise.
7402 * doc/passes.texi: Likewise.
7403 * doc/standards.texi: Likewise.
7404 * doc/tm.texi: Likewise.
7406 2008-02-15 Jakub Jelinek <jakub@redhat.com>
7409 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
7411 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
7412 rather than in entry_bb.
7414 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7416 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7417 libgcc_cmp_return mode.
7419 2008-02-15 Jakub Jelinek <jakub@redhat.com>
7422 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
7423 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
7425 2008-02-15 Richard Guenther <rguenther@suse.de>
7426 Zdenek Dvorak <ook@ucw.cz>
7428 PR tree-optimization/35164
7429 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
7430 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
7431 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
7432 Only propagate addresses which do not have abnormal SSA_NAMEs
7435 2008-02-15 Joseph Myers <joseph@codesourcery.com>
7438 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
7440 2008-02-15 Jan Hubicka <jh@suse.cz>
7443 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
7445 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7448 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
7449 when calculating alignment_pad.
7451 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
7453 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
7454 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
7455 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
7456 and STACK_BOUNDARY define.
7458 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
7460 PR preprocessor/35061
7461 * c-pragma.c (handle_pragma_pop_macro): Check that
7462 pushed_macro_table has been allocated.
7464 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
7467 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
7468 (force_gimple_operand): Likewise.
7469 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
7470 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
7471 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
7472 (find_interesting_uses_address): Check addressability and alignment
7473 of the base expression only after substituting bases of IVs into it.
7475 2008-02-14 Michael Matz <matz@suse.de>
7478 * function.c (instantiate_virtual_regs_in_insn): Reload address
7479 before falling back to reloading the whole operand.
7481 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
7483 * config/s390/s390.c (s390_mainpool_start): Emit the pool
7484 before the first section switch note.
7486 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7488 * doc/bugreport.texi: Update copyright years.
7489 * doc/c-tree.texi: Likewise.
7490 * doc/cfg.texi: Likewise.
7491 * doc/cpp.texi: Likewise.
7492 * doc/cppinternals.texi: Likewise.
7493 * doc/fragments.texi: Likewise.
7494 * doc/frontends.texi: Likewise.
7495 * doc/gcc.texi: Likewise.
7496 * doc/gty.texi: Likewise.
7497 * doc/hostconfig.texi: Likewise.
7498 * doc/implement-c.texi: Likewise.
7499 * doc/libgcc.texi: Likewise.
7500 * doc/loop.texi: Likewise.
7501 * doc/makefile.texi: Likewise.
7502 * doc/options.texi: Likewise.
7503 * doc/passes.texi: Likewise.
7504 * doc/rtl.texi: Likewise.
7505 * doc/sourcebuild.texi: Likewise.
7506 * doc/standards.texi: Likewise.
7507 * doc/tree-ssa.texi: Likewise.
7508 * doc/trouble.texi: Likewise.
7510 * doc/extend.texi: Use @: or add comma where appropriate.
7511 * doc/invoke.texi: Likewise.
7512 * doc/tm.texi: Likewise.
7514 2008-02-14 Alan Modra <amodra@bigpond.net.au>
7517 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
7520 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
7522 * doc/md.texi (clz, ctz): Add reference.
7523 * doc/rtl.texi (clz, ctz): Likewise.
7525 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7528 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
7531 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
7533 * config/s390/s390.c (struct constant_pool): New field
7534 emit_pool_after added.
7535 (s390_mainpool_start): Set the emit_pool_after flag according
7536 to the section switch notes.
7537 (s390_mainpool_finish): Consider emit_pool_after when emitting
7538 the literal pool at the end of the function.
7539 (s390_chunkify_start): Force literal pool splits at section
7542 2008-02-13 Michael Matz <matz@suse.de>
7545 * var-tracking.c (clobber_variable_part): Correctly traverse the
7548 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7551 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
7552 Add -fdump-ipa-inline.
7553 * tree-dump.c (dump_files): Remove tree-inlined dump.
7554 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
7556 2008-02-12 Richard Guenther <rguenther@suse.de>
7558 PR tree-optimization/35171
7559 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
7562 2008-02-12 Richard Guenther <rguenther@suse.de>
7565 * fold-const.c (fold_widened_comparison): Use get_unwidened in
7566 value-preserving mode. Disallow final truncation.
7568 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
7571 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
7572 code from here to...
7573 (force_gimple_operand): ...here.
7575 2008-02-12 Jakub Jelinek <jakub@redhat.com>
7578 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
7579 non-compatible pointers.
7580 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
7581 different FIELD_DECLs, try harder by comparing field offsets, sizes
7585 * function.c (match_asm_constraints_1): Don't replace the same input
7588 2008-02-12 Anatoly Sokolov <aesok@post.ru>
7590 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
7591 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
7592 (expand_epilogue): Restore RAMPZ register.
7593 * config/avr/avr.md (RAMPZ_ADDR): New constant.
7595 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
7597 * config/i386/cygwin.asm: (__alloca): Correct calling
7598 convention and alignment.
7599 (__chkstk): Force 8 byte stack alignment.
7601 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
7602 Richard Guenther <rguenther@suse.de>
7604 PR tree-optimization/33992
7605 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
7606 the zero we compare against.
7608 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
7611 * gthr-win32.h (__gthread_mutex_destroy_function): New function
7612 to CloseHandle after unlocking to prevent accumulation of handle
7615 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7618 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
7619 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
7620 and update LABEL_NUSES during and after reload.
7622 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
7625 * combine.c (simplify_if_then_else): Make sure the comparison is
7626 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
7628 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
7631 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
7632 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
7633 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
7634 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
7635 * tree.h (get_type_static_bounds): Likewise.
7637 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7639 * doc/invoke.texi (Option Summary, C++ Dialect Options)
7640 (Objective-C and Objective-C++ Dialect Options, Warning Options):
7641 Make -Wfoo language annotations match what the compiler outputs.
7643 2008-02-08 Sa Liu <saliu@de.ibm.com>
7645 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
7646 intrinsics spu_convts, spu_convtu, spu_convtf.
7648 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
7650 * doc/extend.texi (Function Attributes) <noinline>: Mention
7651 asm ("") as method to keep calls.
7653 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7656 * doc/options.texi (Options): Replace references to opts.sh with
7658 * opts-common.c: Likewise.
7659 * optc-gen.awk: Likewise.
7661 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7663 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
7665 2008-02-07 Richard Henderson <rth@redhat.com>
7668 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
7669 EXPR_LIST for the REG_EQUAL instead of a comparison with a
7672 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
7674 PR tree-optimization/35085
7675 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
7676 for operand entry oe2 in addition to operand entry oe3 in order to
7677 expose more opportunities for vectorizer sum reduction.
7679 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7682 * Makefile.in (LIBS): Remove $(GMPLIBS).
7683 (cc1-dummy, cc1): Add $(GMPLIBS).
7685 2008-02-06 Jan Hubicka <jh@suse.cz>
7688 * i386.md (moddf_integer): Do not produce partial memory stalls for
7689 targets where it hurts.
7691 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
7694 * optabs.c (expand_float): Do not check for decimal modes when
7695 expanding unsigned integer through signed conversion.
7697 2008-02-06 Nick Clifton <nickc@redhat.com>
7699 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
7700 inside the clobber with a match_operand and duplicated operand
7701 number in the constraint.
7702 (ineqbranchsi): Delete redundant comment.
7704 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
7706 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
7707 builtin_define ("__USE_INIT_FINI__").
7708 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
7710 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
7712 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7714 PR documentation/30330
7715 * doc/invoke.texi (C++ Dialect Options)
7716 (Objective-C and Objective-C++ Dialect Options, Warning Options):
7717 For each warning option -Wfoo that allows -Wno-foo, ensure both
7718 -Wfoo and -Wno-foo are listed in the option index. Fix index
7719 entry of -Wswitch-default, index -Wnormalized= including the
7720 `=', and -Wlarger-than-@var{len} including @var{len}.
7722 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
7724 * config/i386/i386.md (floatunssisf2): Use
7725 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
7726 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
7727 Macroize expander using MODEF mode iterator.
7729 2008-02-05 Diego Novillo <dnovillo@google.com>
7731 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
7734 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
7736 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7739 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
7741 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
7744 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
7745 to indicate if a message should be generated.
7746 (init_cumulative_args): Updated.
7747 (function_value_32): Likewise.
7749 2008-02-05 Joseph Myers <joseph@codesourcery.com>
7751 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
7753 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
7756 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
7757 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
7759 2008-02-04 Diego Novillo <dnovillo@google.com>
7761 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
7764 * tree-vrp.c (vrp_evaluate_conditional): With
7765 -Wtype-limits, emit a warning when comparing against a
7766 constant outside the natural range of OP0's type.
7768 2008-02-04 Richard Guenther <rguenther@suse.de>
7771 * expr.c (count_type_elements): Give for unions instead of
7774 2008-02-04 Richard Guenther <rguenther@suse.de>
7777 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
7778 to TYPE_DOMAINs base type instead of using bitsizetype here.
7780 2008-02-03 Jason Merrill <jason@redhat.com>
7782 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
7784 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7787 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
7788 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
7789 (RS/6000 and PowerPC Options): Fix typos and markup.
7790 * doc/passes.texi (Tree-SSA passes): Likewise.
7792 2008-02-02 Michael Matz <matz@suse.de>
7795 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
7796 from record_last_reg_set_info.
7797 (record_last_reg_set_info): Take an RTX argument, iterate over all
7798 constituent hardregs.
7799 (record_last_set_info, record_opr_changes): Change calls to
7800 new signature or to record_last_reg_set_info_regno.
7802 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7804 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
7806 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
7808 PR rtl-optimization/34773
7809 * reg-notes.def (EQUAL): Mention significance of combination of
7810 REG_EQUAL and REG_RETVAL.
7811 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
7812 insn that has a REG_RETVAL.
7814 2008-02-01 Roger Sayle <roger@eyesopen.com>
7817 * configure.ac (--enable-fixed-point): Disable unless explicitly
7819 * configure: Regenerate.
7821 2008-02-01 Richard Guenther <rguenther@suse.de>
7824 * invoke.texi (-finline-limit): Remove no longer true parts
7825 of the documentation. Note that there is no default value.
7827 2008-02-01 Andrew Pinski <pinskia@gmail.com>
7828 Mark Mitchell <mark@codesourcery.com>
7829 Ben Elliston <bje@au.ibm.com>
7832 * doc/extend.texi (Other Builtins): Document.
7834 2008-01-31 Tom Browder <tom.browder@gmail.com>
7836 * doc/c-tree.texi (Types): Fix grammar.
7837 (Expression trees): Ditto.
7838 * doc/passes.texi (Tree-SSA passes): Ditto.
7840 * doc/configterms.texi (Configure Terms): Fix typo.
7841 * doc/cpp.texi (Common Predefined Macros): Ditto.
7842 * doc/md.texi (Machine Constraints): Ditto.
7844 * doc/makefile.texi (Makefile): Add comma.
7846 2008-01-31 Tom Browder <tom.browder@gmail.com>
7847 Gerald Pfeifer <gerald@pfeifer.com>
7849 * doc/sourcebuild.texi (Front End): Remove references to CVS
7850 and CVSROOT/modules.
7851 (Texinfo Manuals): Replace reference to CVS by one to SVN.
7852 (Back End): Remove reference to CVS.
7854 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
7857 * config/mips/mips.c (gen_load_const_gp): New function, taking a
7859 (mips16_gp_pseudo_reg): ...here.
7860 * config/mips/mips.md (load_const_gp): Replace with...
7861 (load_const_gp_<mode>): ...this :P-based insn.
7863 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7865 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
7866 options. Minor fixes.
7867 (-std): Move reference to standards closer to where language
7868 standards are first mentioned.
7870 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
7872 PR rtl-optimization/34995
7873 * reload.c (alternative_allows_const_pool_ref): Take an rtx
7874 parameter and return a bool. If the rtx parameter is nonnull,
7875 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
7876 (find_reloads): Update call accordingly. Pass the new operand
7877 if it needed no address reloads, otherwise pass null.
7879 2008-01-30 Richard Henderson <rth@redhat.com>
7882 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
7883 for unbounded arrays.
7885 2008-01-30 Silvius Rus <rus@google.com>
7887 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
7889 2008-01-30 Jan Hubicka <jh@suse.cz>
7892 * i386.c (init_cumulative_args): Use real function declaration when
7895 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
7897 PR rtl-optimization/34998
7898 * global.c (build_insn_chain): Treat non-subreg_lowpart
7899 SUBREGs of pseudos as clobbering all the words covered by the
7900 SUBREG, not just all the bytes.
7901 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
7902 original df_ref rather than an extract parameter.
7903 (global_conflicts): Update call accordingly.
7905 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
7907 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
7908 the overflow check to make it easier to read.
7909 (__fixtfdi): Change the type of the ll member in union
7910 long_double to UDItype_x.
7912 2008-01-30 Jakub Jelinek <jakub@redhat.com>
7915 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
7916 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
7917 * tree-inline.c (fold_marked_statements): Call
7918 cgraph_update_edges_for_call_stmt if folding a call statement.
7919 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
7920 debug_generic_stmt calls, reset it back afterwards.
7923 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
7925 * c-typeck.c (build_external_ref): Don't pedwarn about
7926 static vars in current function's scope.
7928 2008-01-29 Joseph Myers <joseph@codesourcery.com>
7930 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
7932 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
7935 * ipa-struct-reorg.c: Fix spelling.
7936 * params.def: Ditto.
7938 2008-01-29 Richard Guenther <rguenther@suse.de>
7941 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
7943 * tree-inline.c (remap_type): Increment remapping_type_depth
7944 around remapping types.
7945 (copy_body_r): Only add referenced variables if they are referenced
7946 from code, not types.
7948 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
7959 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
7960 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
7962 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
7965 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
7966 pointer for tiny stack.
7968 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
7970 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
7972 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
7974 * config/vx-common.h: Fix typo in comment.
7976 2008-01-28 Ian Lance Taylor <iant@google.com>
7980 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7981 coalesce pointers if they have different DECL_NO_TBAA_P values.
7982 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
7983 between variables with different DECL_NO_TBAA_P values.
7985 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
7988 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
7989 are not legitimate small data references on SPE targets.
7991 2008-01-28 David Daney <ddaney@avtrex.com>
7993 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
7995 2008-01-28 David Daney <ddaney@avtrex.com>
7997 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
7999 2008-01-27 Joseph Myers <joseph@codesourcery.com>
8001 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
8002 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
8003 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
8004 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
8005 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
8006 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
8007 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
8008 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
8010 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
8012 * basic-block.h (condjump_equiv_p): Fix comment.
8014 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
8016 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
8017 print_generic_stmt_indented): Fix comment.
8019 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
8021 * configure.ac (__stack_chk_fail): Add detecion for availability
8022 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
8023 * configure: Regenerate.
8025 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
8028 * final.c (output_addr_const): Handle TRUNCATE.
8030 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
8033 * tree-ssa-loop-ivopts.c (comp_cost): New type.
8034 (zero_cost, infinite_cost): New constants.
8035 (struct cost_pair): Change type of cost to comp_cost.
8036 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
8037 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
8039 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
8040 split_address_cost, ptr_difference_cost, difference_cost,
8041 get_computation_cost_at, get_computation_cost,
8042 determine_use_iv_cost_generic, determine_use_iv_cost_address,
8043 determine_use_iv_cost_condition, determine_use_iv_costs,
8044 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
8045 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
8046 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
8047 Change type of cost to comp_cost.
8048 (determine_iv_cost): Increase cost of non-original ivs, instead
8049 of decreasing the cost of original ones.
8050 (get_address_cost): Indicate the complexity of the addressing mode
8052 (try_add_cand_for): Prefer using ivs not specific to some object.
8053 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
8055 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
8056 Janis Johnson <janis187@us.ibm.com>
8059 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
8060 (TARGET_INSTANTIATE_DECLS): Likewise.
8061 * target.h (expand_to_rtl_hook): New target hook.
8062 (instantiate_decls): Likewise.
8063 * function.c (instantiate_decl): Make non-static. Rename to...
8064 (instantiate_decl_rtl): ... this.
8065 (instantiate_expr): Use instantiate_decl_rtl.
8066 (instantiate_decls_1): Likewise.
8067 (instantiate_decls): Likewise.
8068 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
8069 * function.h (instantiate_decl_rtl): Add prototype.
8070 * cfgexpand.c (target.h): New include.
8071 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
8072 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
8073 (TARGET_INSTANTIATE_DECLS): Likewise.
8074 (TARGET_INITIALIZER): New target hooks added.
8075 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
8077 * config/rs6000/rs6000.c (tree-flow.h): New include.
8078 (machine_function): Add sdmode_stack_slot field.
8079 (rs6000_alloc_sdmode_stack_slot): New function.
8080 (rs6000_instantiate_decls): Likewise.
8081 (rs6000_secondary_memory_needed_rtx): Likewise.
8082 (rs6000_check_sdmode): Likewise.
8083 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
8084 (TARGET_INSTANTIATE_DECLS): Likewise.
8085 (rs6000_hard_regno_mode_ok): Allow SDmode.
8086 (num_insns_constant): Likewise. Handle _Decimal32 constants.
8087 (rs6000_emit_move): Handle SDmode.
8088 (function_arg_advance): Likewise.
8089 (function_arg): Likewise.
8090 (rs6000_gimplify_va_arg): Likewise. Add special handling of
8091 SDmode var args for 32-bit compiles.
8092 (rs6000_secondary_reload_class): Handle SDmode.
8093 (rs6000_output_function_epilogue): Likewise.
8094 (rs6000_function_value): Simplify if statement.
8095 (rs6000_libcall_value): Likewise.
8096 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
8097 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
8098 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
8099 (movsd_hardfloat): New define_insn.
8100 (movsd_softfloat): Likewise.
8101 (movsd_store): Likewise.
8102 (movsd_load): Likewise.
8103 (extendsddd2): Likewise.
8104 (extendsdtd2): Likewise.
8105 (truncddsd2): Likewise.
8106 (movdd_hardfloat64): Fixup comment.
8107 (UNSPEC_MOVSD_LOAD): New constant.
8108 (UNSPEC_MOVSD_STORE): Likewise.
8110 2008-01-26 Jakub Jelinek <jakub@redhat.com>
8113 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
8115 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
8116 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
8117 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
8120 2008-01-26 David Edelsohn <edelsohn@gnu.org>
8123 * config.gcc: Separate AIX 5.3 from AIX 6.1.
8124 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8125 __LONGDOUBLE128 too.
8126 * config/rs6000/aix61.h: New file.
8128 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
8130 PR rtl-optimization/34959
8131 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
8132 popcount and parity rtxes the same mode as their operand.
8133 Truncate or extend the result to the return value's mode
8136 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
8139 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
8140 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
8141 to GOT_VERSION_REGNUM.
8142 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
8143 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
8144 * config/mips/mips.c (mips_emit_call_insn): New function.
8145 (mips_call_tls_get_addr): Call mips_expand_call directly.
8146 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
8148 (mips16_build_call_stub): Likewise. Return the call insn or null.
8149 (mips_expand_call): Update the call to mips16_build_call_stub
8150 accordingly and a remove redundant condition. Assert that MIPS16
8151 stubs do not use lazy binding. Use mips_emit_call_insn and return
8153 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
8155 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
8156 (mips_avoid_hazard): Remove hazard_set handling.
8157 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
8158 (UNSPEC_RESTORE_GP): ...this.
8159 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
8160 (FAKE_CALL_REGNO): Rename to...
8161 (GOT_VERSION_REGNUM): ...this.
8162 (type): Add "ghost" value. Add an associated insn reservation.
8163 (hazard_set): Remove.
8164 (exception_receiver): Rename to...
8165 (restore_gp): ...this and update the unspec identifier accordingly.
8166 (exception_receiver, nonlocal_got_receiver): New expanders.
8167 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
8168 FAKE_CALL_REGNO. Remove hazard_set attribute.
8169 (set_got_version, update_got_version): New patterns.
8171 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
8174 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
8176 2008-01-25 Joseph Myers <joseph@codesourcery.com>
8179 * doc/install.texi2html: Generate gcc-vers.texi.
8181 2008-01-25 DJ Delorie <dj@redhat.com>
8183 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8185 2008-01-25 Joseph Myers <joseph@codesourcery.com>
8187 * config/c4x: Remove directory.
8188 * config.gcc (crx-*, mt-*): Mark obsolete.
8189 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
8190 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
8191 sh-*-rtemscoff*): Remove cases.
8192 * defaults.h (C4X_FLOAT_FORMAT): Remove.
8193 * real.c (encode_c4x_single, decode_c4x_single,
8194 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
8195 c4x_extended_format): Remove.
8196 * real.h (c4x_single_format, c4x_extended_format): Remove.
8197 * doc/extend.texi (interrupt, naked): Remove mention of attributes
8199 (Pragmas): Remove comment about c4x pragmas.
8200 * doc/install.texi (c4x): Remove target-specific instructions.
8201 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
8202 * doc/md.texi (Machine Constraints): Remove C4x documentation.
8203 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
8204 refer to C4x source files as examples.
8205 (C4X_FLOAT_FORMAT): Remove documentation.
8207 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
8209 * config/bfin/bfin.c (override_options): Reorder tests so that
8210 flag_pic gets enabled for -msep-data.
8212 2008-01-25 Richard Guenther <rguenther@suse.de>
8215 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
8216 to its bitfield precision if required.
8218 2008-01-25 Jakub Jelinek <jakub@redhat.com>
8221 * tree-nested.c (walk_omp_for): New function.
8222 (convert_nonlocal_reference, convert_local_reference): Call
8223 walk_omp_for on OMP_FOR.
8224 (convert_call_expr): Call walk_body on OMP_FOR's
8225 OMP_FOR_PRE_INIT_BODY.
8227 2008-01-25 Richard Guenther <rguenther@suse.de>
8229 PR tree-optimization/34966
8230 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
8231 default defs and PHI_NODEs we have to insert after the
8234 2008-01-24 Nick Clifton <nickc@redhat.com>
8236 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
8237 Provide a default definition.
8238 (LIBGCC2_UNITS_PER_WORD): Likewise.
8240 * config/stormy16/stormy16.c: Include df.h for the prototype
8241 for df_regs_ever_live_p.
8242 (xstormy16_expand_builtin_va_start): Convert the stack offset
8243 into a component_ref and then use POINTER_PLUS_EXPR to add it
8244 to the incoming_virtual_args_rtx.
8245 (xstormy16_gimplify_va_arg_expr): Rename to
8246 xstormy16_gimplify_va_arg_expr.
8247 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
8248 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
8249 xstormy16_gimplify_va_arg_expr.
8250 Fix up some formatting issues.
8252 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
8253 Move to predicates.md.
8254 (xs_hi_general_operand): Likewise.
8255 (xs_hi_nonmemory_operand): Likewise.
8256 * config/stormy16/predicates.md:
8257 (xstormy16_carry_plus_operand): New predicate.
8258 (xs_hi_general_operand): New predicate.
8259 (xs_hi_nonmemory_operand): New predicate.
8260 * config/stormy16/stormy16-protos.h:
8261 (xstormy16_carry_plus_operand): Delete prototype.
8262 (xs_hi_general_operand): Likewise.
8263 (xs_hi_nonmemory_operand): Likewise.
8265 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
8266 modifiers as they are no longer needed and they can trigger
8267 reload spill failures.
8269 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
8270 with a match_operand in order to help reload.
8272 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
8273 constraint with 'e' for the 8th alternative as this version of
8274 the mov.w instruction only accepts the lower 8 registers.
8276 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
8279 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
8280 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
8283 2008-01-25 Jakub Jelinek <jakub@redhat.com>
8286 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
8288 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
8290 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
8292 (remove_structure): Update allocations list before removing structure.
8294 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
8296 * ipa-struct-reorg.c (is_safe_cond_expr,
8297 create_new_stmts_for_cond_expr): Use integer_zerop function,
8298 that recognize not only zero-pointer, but zero-integer too.
8300 2008-01-25 Ben Elliston <bje@au.ibm.com>
8303 * fixproto: Escape "." in sed expression that strips leading "./".
8305 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
8308 * gcc.c (SWITCH_OK): Removed.
8309 (SWITCH_LIVE): Changed to bit.
8310 (SWITCH_FALSE): Likewise.
8311 (SWITCH_IGNORE): Likewise.
8312 (switchstr): Change live_cond to unsigned int.
8313 (process_command): Replace SWITCH_OK with 0.
8314 (do_self_spec): Likewise.
8315 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
8316 (give_switch): Likewise.
8317 (used_arg): Likewise.
8318 (do_spec_1): Set the SWITCH_IGNORE bit.
8319 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
8320 bits. Set the SWITCH_LIVE bit.
8322 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
8324 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
8326 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
8328 PR tree-optimization/34472
8329 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
8330 parameter to a "bool *" and set *DATA to false if there is
8331 an unsafe access. Do not delete the structure here.
8332 (check_cond_exprs): Delete it here instead.
8333 (check_cond_exprs, exclude_cold_structs): Do not increase
8334 I when removing a structure.
8336 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
8339 * config/i386/i386.c (ix86_expand_vector_init): Consider only
8340 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
8342 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
8345 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
8346 a fixed vector for stack.
8348 2008-01-24 Ben Elliston <bje@au.ibm.com>
8351 * doc/gcc.texi (Software development): Add a direntry for g++.
8353 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
8355 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
8356 stale and straggling -fforce-addr comments above.
8358 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
8360 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
8361 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
8363 2008-01-23 Michael Matz <matz@suse.de>
8366 * dwarf2out.c (force_type_die): Use modified_type_die instead of
8369 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
8371 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
8374 2008-01-23 Anatoly Sokolov <aesok@post.ru>
8376 * config/avr/avr.c (avr_current_arch): New variable.
8377 (avr_arch_types): Add 'avr31' and 'avr51' entries.
8378 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
8379 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
8380 (avr_override_options): Init 'avr_current_arch'.
8381 (base_arch_s): Move from here...
8382 * config/avr/avr.h (base_arch_s): ... here. Add new members
8383 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
8384 'mega' to 'have_jmp_call'.
8385 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
8386 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
8388 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
8390 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8391 MULTILIB_MATCHES): (Ditto.).
8393 2008-01-23 Richard Guenther <rguenther@suse.de>
8396 * cgraphunit.c (cgraph_reset_node): Always mark the node
8397 not reachable if it is not queued already.
8399 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
8401 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
8402 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
8403 (cputype_selected): New static variable.
8404 (bfin_handle_option): Set it if -mcpu is used.
8405 (override_option): Select default set of workarounds if no cpu type
8406 selected on the command line.
8407 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
8409 From Michael Frysinger <michael.frysinger@analog.com>
8410 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
8411 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
8413 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
8414 for bf547, bf523, bf524, and bf526.
8415 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
8417 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8418 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
8419 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
8420 __ADSPBF547__ and __ADSPBF54x__ for bf547.
8421 * doc/invoke.texi (Blackfin Options): Document that
8422 -mcpu now accept bf547, bf523, bf524, and bf526.
8424 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
8426 PR rtl-optimization/34628
8427 * combine.c (try_combine): Stop and undo after the first combination
8428 if an autoincrement side-effect on the first insn has effectively
8431 2008-01-22 David Edelsohn <edelsohn@gnu.org>
8434 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
8435 Offset addresses are not valid for Altivec or paired float modes.
8437 2008-01-22 Jakub Jelinek <jakub@redhat.com>
8440 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
8441 if DECL_INITIAL (decl) is error_mark_node.
8444 * c-common.c (handle_vector_size_attribute): Only allow
8445 integral, scalar float and fixed point types. Handle OFFSET_TYPE
8446 the same way as pointer, array etc. types.
8447 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
8450 * tree.c (build_type_attribute_qual_variant): Call
8451 build_qualified_type if attributes are equal, but quals are not.
8453 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8456 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
8457 * flags.h (warn_strict_aliasing): Remove.
8458 (warn_strict_overflow): Remove.
8459 * opts.c (warn_strict_aliasing): Remove.
8460 (warn_strict_overflow): Remove.
8461 * c-opts.c (c_common_handle_option): -Wall only sets
8462 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
8463 (c_common_post_options): Give default values to -Wstrict-aliasing
8464 and -Wstrict-overflow if they are uninitialized.
8465 * common.opt (Wstrict-aliasing): Specify Var and Init.
8466 (Wstrict-overflow): Likewise.
8468 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
8470 PR rtl-optimization/26854
8471 PR rtl-optimization/34400
8472 PR rtl-optimization/34884
8473 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
8475 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
8476 (df_rd_bb_info.expanded_lr_out): Deleted
8477 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
8478 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
8479 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8480 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8481 Removed code to allocate, initialize or free expanded_lr_out.
8482 (df_rd_bb_local_compute_process_def): Restructured to make more
8484 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
8485 sets if the sets are being trimmed.
8487 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
8490 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
8491 (as_vers): Likewise.
8492 * configure: Regenerated.
8494 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8497 * tree-pass.h (pass_build_alias): New pass.
8498 * tree-ssa-alias.c (gate_build_alias): New.
8499 (pass_build_alias): New.
8500 * passes.c (init_optimization_passes): Add pass_build_alias after
8501 pass_create_structure_vars.
8503 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
8505 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
8506 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
8507 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
8508 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
8509 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
8510 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
8511 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
8512 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
8513 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
8514 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
8515 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
8516 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
8517 * config/s390/s390.md (FP_ALL): New mode iterator.
8518 (_d): New mode attribute.
8519 ("*signbit<mode>2>"): Changed mode of first operand.
8520 ("isinf<mode>2"): Changed mode of first operand.
8521 ("*TDC_insn"): Adaptation for DFP modes.
8523 2008-01-22 Ben Elliston <bje@au.ibm.com>
8525 * tree.c (check_qualified_type): Improve function description.
8527 2008-01-21 Jason Merrill <jason@redhat.com>
8530 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
8531 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
8534 2008-01-21 DJ Delorie <dj@redhat.com>
8536 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
8539 2008-01-21 Richard Guenther <rguenther@suse.de>
8542 * tree-cfg.c (verify_expr): Allow all invariant expressions
8543 instead of just constant class ones as reference argument.
8544 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
8545 like any other constant.
8546 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8548 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
8550 * regmove.c (fixup_match_1): Update call crossed frequencies.
8552 2008-01-21 Richard Guenther <rguenther@suse.de>
8555 * tree-inline.c (setup_one_parameter): Deal with mismatched
8556 types using a VIEW_CONVERT_EXPR.
8558 2008-01-21 Alon Dayan <alond@il.ibm.com>
8559 Olga Golovanevsky <olga@il.ibm.com>
8561 PR tree-optimization/34701
8562 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
8563 when the structure size is not a power of 2.
8565 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8567 * doc/install.texi: Add doc for --enable-checking=df.
8569 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
8571 PR rtl-optimization/34808
8572 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
8574 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
8576 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
8579 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
8581 PR rtl-optimization/26854
8582 PR rtl-optimization/34400
8583 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
8585 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
8586 (df_rd_bb_info.expanded_lr_out): New.
8587 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
8588 * loop_iv.c (iv_analysis_loop_init): Ditto.
8589 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8590 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8591 Added code to allocate, initialize or free expanded_lr_out.
8592 (df_rd_bb_local_compute_process_def): Restructured to make
8593 more understandable.
8594 (df_rd_confluence_n): Add code to do nothing with fake edges and
8595 code to no apply invalidate_by_call sets if the sets are being trimmed.
8596 (df_lr_local_finalize): Renamed to df_lr_finalize.
8597 (df_live_local_finalize): Renamed to df_live_finalize.
8599 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
8602 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
8603 deciding whether to use reciprocal instructions.
8605 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
8607 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
8608 dwarf2out_note_section_used if cold_text_section is NULL.
8610 2008-01-19 Jakub Jelinek <jakub@redhat.com>
8612 PR gcov-profile/34610
8613 * tree-cfg.c (make_edges): Mark both outgoing edges from
8614 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
8615 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
8616 from OMP_FOR and OMP_CONTINUE outgoing edges.
8618 * tree-profile.c (tree_profiling): Return early if
8619 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
8621 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
8622 from cfun to child_cfun.
8623 * function.h (struct function): Add after_tree_profile bit.
8625 2008-01-19 Anatoly Sokolov <aesok@post.ru>
8627 * config/avr/avr.S (_exit): Disable interrupt.
8629 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
8630 Steven Bosscher <stevenb.gcc@gmail.com>
8632 PR rtl-optimization/26854
8633 PR rtl-optimization/34400
8634 * df-problems.c (df_live_scratch): New scratch bitmap.
8635 (df_live_alloc): Allocate df_live_scratch when doing df_live.
8636 (df_live_reset): Clear the proper bitmaps.
8637 (df_live_bb_local_compute): Only process the artificial defs once
8638 since the order is not important.
8639 (df_live_init): Init the df_live sets only with the variables
8640 found live by df_lr.
8641 (df_live_transfer_function): Use the df_lr sets to prune the
8642 df_live sets as they are being computed.
8643 (df_live_free): Free df_live_scratch.
8645 2008-01-18 Ian Lance Taylor <iant@google.com>
8647 * common.opt: Add fmerge-debug-strings.
8648 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
8649 flag_merge_debug_strings rather than flag_merge_constants.
8650 * doc/invoke.texi (Option Summary): Mention
8651 -fmerge-debug-strings.
8652 (Debugging Options): Document -fmerge-debug-strings.
8654 2008-01-18 Ian Lance Taylor <iant@google.com>
8657 * tree.h (DECL_IS_OPERATOR_NEW): Define.
8658 (struct tree_function_decl): Add new field operator_new_flag.
8659 * tree-inline.c (expand_call_inline): When inlining a call to
8660 operator new, force the return value to go into a variable, and
8661 set DECL_NO_TBAA_P on that variable.
8662 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
8664 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
8667 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
8668 DWARF2_DEBUGGING_INFO.
8669 (dwarf2out_note_section_used): Ditto. Add prototype.
8670 (have_multiple_function_sections, text_section_used,
8671 cold_text_section_used, *cold_text_sections): Move declarations
8674 2008-01-17 Bob Wilson <bob.wilson@acm.org>
8676 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
8677 field and add signal_ra.
8678 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
8679 assignments to frame state pc. Move end of stack check after
8680 MD_FALLBACK_FRAME_STATE_FOR.
8681 (uw_update_context_1): Use frame state signal_regs if set, instead
8682 of checking signal_frame flag.
8683 (uw_update_context): Use frame state signal_ra if set.
8684 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
8685 * config/xtensa/linux-unwind.h: New file.
8687 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
8689 * modulo-sched.c (get_sched_window): Fix comment typo.
8691 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
8693 PR tree-optimization/34648
8694 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
8696 2008-01-17 Anatoly Sokolov <aesok@post.ru>
8698 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
8699 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
8701 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
8703 PR rtl-optimization/34400
8704 * df-core.c (df_worklist_dataflow_overeager,
8705 df_worklist_dataflow_doublequeue): New functions.
8706 (df_worklist_dataflow): Two different worklist solvers.
8707 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
8710 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8713 * doc/invoke.texi: Document the dependence on pthread for fopenmp
8714 and ftree-parallelize-loops.
8716 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
8718 PR rtl-optimization/34826
8719 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
8721 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
8723 * global.c (find_reg): Mark the eh regs as used if necessary.
8724 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
8725 * ra.h (struct allocno): no_eh_reg field added. Changed
8726 no_stack_reg type to bitfield.
8728 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
8730 * tree.c (substitute_in_expr): Add missing 'break'.
8732 2008-01-17 Richard Guenther <rguenther@suse.de>
8734 PR tree-optimization/34825
8735 * tree-ssa-math-opts.c (is_division_by): Do not recognize
8736 x / x as division to handle.
8738 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8740 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
8741 "-pthread" is specified.
8742 * pa-hpux11.h (LIB_SPEC): Likewise.
8744 2008-01-16 Janis Johnson <janis187@us.ibm.com>
8745 Peter Bergner <bergner@vnet.ibm.com>
8747 PR rtl-optimization/33796
8748 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
8750 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8752 PR libgfortran/34699
8753 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
8755 * pa-hpux10.h (LINK_SPEC): Likewise.
8756 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
8758 2008-01-16 Richard Guenther <rguenther@suse.de>
8761 * fold-const.c (fold_convert_const_int_from_int): Do not
8762 set overflow if that occured only because of a sign extension
8763 change when converting from/to a sizetype with the same
8764 precision and signedness.
8766 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
8769 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
8770 location address to the correct place. Update copyright year.
8772 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8774 * lambda-code.c (lambda_transform_legal_p): Handle the case of
8775 no dependences in the dependence_relations vector.
8777 2008-01-16 Jan Hubicka <jh@suse.cz>
8779 PR rtl-optimization/31396
8780 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
8781 * cfg.c (dump_reg_info): Print it.
8782 * regs.h (struct reg_info_t): add freq_calls_crossed.
8783 (REG_FREQ_CALLS_CROSSED): New macro.
8784 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
8785 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
8786 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
8787 regmove_optimize): Update call crossed frequencies.
8788 * local-alloc.c (struct qty): Add freq_calls_crossed.
8789 (alloc_qty): Copute freq_calls_crossed.
8790 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
8791 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
8792 * ra.h (struct allocno): Add freq_calls_crossed.
8794 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8796 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
8797 libgomp when compiling with ftree-parallelize-loops.
8798 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
8800 2008-01-16 Richard Guenther <rguenther@suse.de>
8802 PR tree-optimization/34769
8803 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
8804 * tree.c (int_cst_value): Instead make this function more
8805 permissive in what it accepts as valid input. Document this
8806 function always sign-extends the value.
8808 2008-01-16 Jakub Jelinek <jakub@redhat.com>
8809 Richard Guenther <rguenther@suse.de>
8812 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
8813 (gimple_fold_indirect_ref_rhs): ... this.
8814 (gimple_fold_indirect_ref): New function with foldings
8815 that preserve lvalueness.
8816 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
8817 * tree-flow.h (gimple_fold_indirect_ref): Declare.
8818 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
8819 to fold an INDIRECT_REF, fall back to the old use of
8820 fold_indirect_ref_1.
8822 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
8824 * tree-data-ref.c (subscript_dependence_tester_1): Call
8825 free_conflict_function.
8826 (compute_self_dependence): Same.
8828 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
8831 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
8832 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
8834 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
8835 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
8836 for DWARF2_UNWIND_INFO targets.
8838 2008-01-16 Richard Guenther <rguenther@suse.de>
8841 * c-typeck.c (common_pointer_type): Do not merge inconsistent
8842 type qualifiers for function types.
8844 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
8846 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
8847 loop_iterator li from previous commit.
8849 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
8851 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
8853 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
8855 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
8856 (parallelize_loops): Don't parallelize irreducible components.
8858 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8861 * c-opts (c_common_post_options): Do not enable CPP
8862 flag_pedantic_errors by default.
8864 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
8866 PR rtl-optimization/31944
8867 * cse.c (remove_pseudo_from_table): New function.
8868 (merge_equiv_classes): Use above function to remove pseudo-registers.
8869 (invalidate): Likewise.
8871 2008-01-13 Richard Guenther <rguenther@suse.de>
8874 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
8875 instead of TYPE_MODE to deal with calls from expand_one_error_var.
8877 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
8879 * gcse.c (cprop_jump): Call validate_unshare_change instead of
8880 validate_change to unshare the source of the PC set.
8882 2008-01-12 Jan Hubicka <jh@suse.cz>
8885 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
8886 references above array bounds. This might trigger bounds checks for
8889 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
8891 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
8892 new_replaceable_dependencies.
8894 2008-01-12 Doug Kwan <dougkwan@google.com>
8896 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
8897 instead of OPT_Wreturn_type in warning due to ignored return type
8899 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
8900 options included in -Wextra.
8901 * c.opt: New option -Wignored_qualifiers.
8902 * doc/invoke.texi (Warning Options, -Wextra): Add new option
8903 -Wignore_qualifiers.
8904 (-Wignored-qualifiers): Document.
8905 (-Wreturn-type): Remove description of functionality now handled
8906 by -Wignored-qualifiers.
8908 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8911 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
8912 NOP_EXPR if it is between integral types with the same precision.
8914 2008-01-12 Jan Hubicka <jh@suse.cz>
8917 * invoke.texi (max-inline-recursive-depth): Fix default value.
8919 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
8921 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
8924 2008-01-11 Bob Wilson <bob.wilson@acm.org>
8926 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
8928 2008-01-11 James E. Wilson <wilson@specifix.com>
8931 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
8933 2008-01-11 Anatoly Sokolov <aesok@post.ru>
8935 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
8936 save/restore frame pointer register and don't use 'call-prologues'
8937 optimization in function with "OS_task" attribute.
8939 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
8942 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
8943 when copying to memory.
8945 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
8947 PR rtl-optimization/30905
8948 * cfgcleanup.c: Include dce.h
8949 (crossjumps_occured): New global variable.
8950 (try_crossjump_bb): Exit loop after finding a fallthru edge.
8951 If something changed, set crossjumps_occured to true.
8952 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
8953 Don't add/remove fake edges to exit here...
8954 (cleanup_cfg): ...but do it here, when crossjumping.
8955 Run a fast DCE when successful crossjumps occured in the latest
8956 iteration of try_optimize_cfg.
8958 2008-01-11 Richard Guenther <rguenther@suse.de>
8960 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
8961 (struct vn_unary_op_s): Likewise.
8962 (vn_reference_insert): Free old reference on hash collision.
8964 2008-01-10 Raksit Ashok <raksit@google.com>
8966 PR rtl-optimization/27971
8967 * combine.c (find_split_point): Split PLUS expressions which are
8968 inside a MEM rtx, and whose first operand is complex.
8970 2008-01-10 DJ Delorie <dj@redhat.com>
8972 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
8973 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
8974 (m32c_hard_regno_ok): Call the underlying function.
8976 2008-01-10 Richard Guenther <rguenther@suse.de>
8979 * tree-cfg.c (tree_merge_blocks): Do not go through the
8980 full-blown folding and stmt updating path if we just deal
8981 with virtual operands.
8982 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
8983 test for abnormal SSA_NAMEs.
8985 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
8988 * reload.c (push_reload): Add assertions. All constants from
8989 reg_equiv_constant should have been used for replacing the respective
8991 (find_reloads_address): Invoke find_reloads_address_part for
8992 constant taken from the reg_equiv_constant array.
8994 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
8996 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
8997 field (valnum) the first in the struct. Replace bools with
9000 2008-01-10 Richard Guenther <rguenther@suse.de>
9002 PR tree-optimization/34651
9003 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
9004 types and ordering for masking and converting.
9006 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
9008 PR tree-optimization/34017
9009 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
9010 also for PHI_NODE expressions.
9012 2008-01-09 Jan Hubicka <jh@suse.cz>
9014 PR tree-optimization/34708
9015 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
9016 based on number of case labels.
9017 (init_inline_once): Remove switch_cost.
9018 * tree-inline.h (eni_weights_d): Remove switch_cost.
9020 2008-01-09 Richard Guenther <rguenther@suse.de>
9021 Andrew Pinski <andrew_pinski@playstation.sony.com>
9024 * gimplify.c (gimplify_cond_expr): Do not create an addressable
9025 temporary if an rvalue is ok or an lvalue is not required.
9027 2008-01-09 Richard Guenther <rguenther@suse.de>
9030 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
9033 2008-01-09 Richard Guenther <rguenther@suse.de>
9036 * tree.c (host_integerp): Check for sizetype only if the
9037 type is an integer type.
9039 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
9042 * opts.c (decode_options): Disable inlining of functions called
9043 once if not in unit-at-a-time mode.
9045 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
9047 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
9049 2008-01-08 Richard Guenther <rguenther@suse.de>
9052 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
9053 out early if the result will be unused.
9055 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
9060 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
9061 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9064 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
9066 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
9067 for vectorization tuned.
9069 2008-01-08 Richard Guenther <rguenther@suse.de>
9071 PR tree-optimization/34683
9072 * tree-ssa-operands.c (operand_build_cmp): Export.
9073 * tree-ssa-operands.h (operand_build_cmp): Declare.
9074 * tree-vn.c (vuses_compare): Remove.
9075 (sort_vuses): Use operand_build_cmp.
9076 (sort_vuses_heap): Likewise.
9077 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
9078 to re-use old VEC if available. Do not sort already sorted VUSEs.
9079 (vdefs_to_vec): Do not sort already sorted VDEFs.
9081 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9084 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
9086 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
9089 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
9090 limitations of reciprocal sequences on x86 targets.
9092 2008-01-08 Richard Guenther <rguenther@suse.de>
9094 PR tree-optimization/34683
9095 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
9097 2008-01-07 Jakub Jelinek <jakub@redhat.com>
9100 * config/darwin.c (darwin_mergeable_string_section): Don't use
9101 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
9103 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
9106 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
9107 negxf2. Macroize expander using X87MODEF mode iterator. Change
9108 predicates of op0 and op1 to register_operand.
9109 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
9110 expander using X87MODEF mode iterator. Change predicates of
9111 op0 and op1 to register_operand.
9112 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
9113 corresponding patterns and macroize using MODEF macro. Change
9114 predicates of op0 and op1 to register_operand and remove
9115 "m" constraint. Disparage "r" alternative with "!".
9116 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
9117 macroize using X87MODEF macro. Change predicates of op0 and op1
9118 to register_operand and remove "m" constraint. Disparage "r"
9119 alternative with "!".
9120 (absneg splitter with memory operands): Remove.
9121 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
9122 patterns and macroize using X87MODEF mode iterator.
9123 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
9124 Change predicate of op1 to register_operand.
9125 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
9126 for memory operands.
9128 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
9130 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
9132 2008-01-07 Richard Guenther <rguenther@suse.de>
9134 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
9137 2008-01-07 Richard Guenther <rguenther@suse.de>
9139 PR tree-optimization/34683
9140 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
9141 VOPs of the needed size to save memory. Use VEC_quick_push
9142 to save compile-time.
9143 (vdefs_to_vec): Likewise.
9145 2008-01-07 Sa Liu <saliu@de.ibm.com>
9147 * config/spu/spu.md (divdf3): Genetate inline code for double
9148 division. The implementation doesn't handle INF or NAN, therefore it
9149 only applies when -ffinite-math-only is given.
9151 2008-01-06 Paolo Carlini <pcarlini@suse.de>
9154 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
9155 * doc/cpp.texi ([Common Predefined Macros]): Document.
9157 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
9159 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
9160 order to use commutative addition instead of subtraction.
9162 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
9163 Mircea Namolaru <namolaru@il.ibm.com>
9164 Vladimir Yanovsky <yanov@il.ibm.com>
9165 Revital Eres <eres@il.ibm.com>
9167 PR tree-optimization/34263
9168 * tree-outof-ssa.c (process_single_block_loop_latch,
9169 contains_tree_r): New functions.
9170 (analyze_edges_for_bb): Call process_single_block_loop_latch
9171 function to empty single-basic-block latch block if possible.
9173 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
9175 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9177 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
9179 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
9181 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
9183 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
9185 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
9187 2008-01-05 Jakub Jelinek <jakub@redhat.com>
9189 PR tree-optimization/34618
9190 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
9193 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
9196 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
9197 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
9198 Update copyright year.
9200 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
9201 Update copyright year.
9202 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
9205 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
9207 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
9208 edge does not point to current bb before changing need_assert.
9210 2008-01-04 Richard Guenther <rguenther@suse.de>
9213 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
9214 for verifying purposes if they are is_gimple_min_invariant.
9216 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
9218 PR tree-optimization/34448
9219 PR tree-optimization/34465
9220 * gimplify.c (gimplify_init_constructor): Add new parameter
9221 notify_temp_creation. Use it.
9222 (gimplify_modify_expr_rhs): Take volatiles into account when
9223 optimizing constructors.
9224 Do not optimize constructors if gimplify_init_constructor will dump to
9226 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
9227 * gcc.c-torture/compile/pr34448.c: New.
9229 2008-01-04 Jakub Jelinek <jakub@redhat.com>
9231 PR gcov-profile/34609
9232 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
9233 return_slot if result is TREE_ADDRESSABLE.
9235 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
9237 * config/mips/mips.md (sqrt_condition): Tweak comment.
9238 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
9240 2008-01-03 Tom Tromey <tromey@redhat.com>
9243 * c-common.c (c_type_hash): Handle VLAs.
9245 2008-01-03 Jan Hubicka <jh@suse.cz>
9247 PR tree-optimization/31081
9248 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
9249 0 when inlining and not inlining to first basic block.
9250 (remap_decl): When var is initialized to 0, don't set default_def.
9251 (expand_call_inline): Set entry_bb.
9252 * tree-inline.h (copy_body_data): Add entry_bb.
9254 2008-01-03 Jakub Jelinek <jakub@redhat.com>
9257 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
9260 PR tree-optimization/29484
9261 * tree-inline.c (inline_forbidden_p_2): New function.
9262 (inline_forbidden_p): Disallow inlining if some static var
9263 has an address of a local LABEL_DECL in its initializer.
9264 * doc/extend.texi (Labels as Values): Document &&foo behaviour
9267 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
9269 PR tree-optimization/34635
9270 * tree-data-ref.c (add_other_self_distances): Make sure that the
9271 evolution step is constant.
9273 2008-01-03 Jakub Jelinek <jakub@redhat.com>
9276 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
9278 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
9280 * tree-sra.c (scalarize_init): Insert the generate_element_init
9281 statements after the generate_element_zero statements.
9283 2008-01-02 Richard Guenther <rguenther@suse.de>
9287 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
9288 for very large number of operands instead of ICEing.
9290 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
9293 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
9294 while stack probing.
9296 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
9298 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
9301 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
9304 * tree-mudflap.c (mx_register_decls): Guard warning by
9305 !DECL_ARTIFICIAL check.
9307 2008-01-01 Jakub Jelinek <jakub@redhat.com>
9309 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
9310 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
9311 sse5_perm<mode>): Fix constraints.