1 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
5 (*fix_trunc<mode>_i387_1): Ditto.
6 (*floathi<mode>2_1): Ditto.
7 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
9 (*fist<mode>2_1): Ditto.
10 (frndintxf2_floor): Ditto.
11 (*fist<mode>2_floor_1): Ditto.
12 (frndintxf2_ceil): Ditto.
13 (*fist<mode>2_ceil_1): Ditto.
14 (frndintxf2_trunc): Ditto.
15 (frndintxf2_mask_pm): Ditto.
16 (fxam<mode>2_i387_with_temp): Ditto.
17 * config/i386/sse.md (mulv16qi3): Ditto.
18 (*sse2_mulv4si3): Ditto.
20 (sse4_2_pcmpestr): Ditto.
21 (sse4_2_pcmpistr): Ditto.
23 2009-07-03 Jan Hubicka <jh@suse.cz>
25 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
26 (mark_stmt_necessary): Set it.
27 (mark_operand_necessary): Set it.
28 (mark_control_dependent_edges_necessary): Set it.
29 (mark_virtual_phi_result_for_renaming): New function.
30 (get_live_post_dom): New function.
31 (forward_edge_to_pdom): New function.
32 (remove_dead_stmt): Fix handling of control dependences.
33 (tree_dce_init): Init new bitmap.
34 (tree_dce_done): Free it.
36 2009-07-02 Richard Guenther <rguenther@suse.de>
39 * tree-ssa-structalias.c (new_var_info): Initialize
42 2009-07-02 Jan Hubicka <jh@suse.cz>
44 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
47 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
49 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
50 instead of recomputing it. Adjust calls.
51 (emit_store_flag): Adjust recursive calls.
53 2009-07-02 Richard Guenther <rguenther@suse.de>
55 * tree-ssa-live.c (remove_unused_locals): Do not remove
57 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
58 of DECL_EXTERNAL for HEAP variables.
59 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
60 HEAP variables. Do not adjust RESTRICT vars.
61 (find_what_var_points_to): Nobody cares if something
64 2009-07-02 Ben Elliston <bje@au.ibm.com>
66 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
67 pc_low and pc_high declarations to the top of the function.
69 2009-07-01 DJ Delorie <dj@redhat.com>
71 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
73 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
74 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
75 unspecified accesses to control registers.
76 * config/mep/intrinsics.md: Regenerate.
77 * config/mep/intrinsics.h: Regenerate.
78 * config/mep/mep-intrin.h: Regenerate.
80 2009-07-01 Anthony Green <green@moxielogic.com>
82 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
83 instruction when possible.
84 (moxie_expand_prologue): Ditto. Also, save an instruction and
85 some complexity by popping off of $r12 instead of $sp.
86 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
89 2009-07-01 Richard Henderson <rth@redhat.com>
92 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
93 contained no insns, reposition note before last insn.
95 2009-07-01 Richard Henderson <rth@redhat.com>
98 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
99 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
101 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
104 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
105 darwin9 for printing reg addresses with %y.
107 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
109 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
110 truncation from operands in binary operations.
112 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
115 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
116 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
117 subreg of op0 to the original op0.
119 * expmed.c (store_bit_field_1): Use a temporary as the destination
120 instead of a paradoxical subreg when we need to truncate the result.
122 2009-07-01 DJ Delorie <dj@redhat.com>
124 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
125 names to VLIW variants.
126 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
127 * config/mep/intrinsics.md: Regenerate.
128 * config/mep/intrinsics.h: Regenerate.
129 * config/mep/mep-intrin.h: Regenerate.
131 2009-07-01 Jakub Jelinek <jakub@redhat.com>
134 * jump.c (returnjump_p): Revert last patch.
135 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
137 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
140 * pa.md (casesi32p): Use jump table label to determine the offset
142 (casesi64p): Likewise.
144 * pa.c (forward_branch_p): Return bool type. Use instruction
145 addresses when available. Assert that INSN has a jump label.
146 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
149 2009-07-01 Richard Guenther <rguenther@suse.de>
151 PR tree-optimization/19831
152 * tree-ssa-dce.c (propagate_necessity): Calls to functions
153 that only act as barriers do not make any previous stores necessary.
154 * tree-ssa-structalias.c (handle_lhs_call): Delay making
155 HEAP variables global, do not add a constraint from nonlocal.
156 (find_func_aliases): Handle escapes through return statements.
157 (compute_points_to_sets): Make escaped HEAP variables global.
159 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
162 * expmed.c (emit_store_flag): Perform a conversion if necessary,
163 after reducing a DImode cstore to SImode.
165 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
167 * expr.c (expand_expr_real_1): Reinstate fallthrough to
168 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
170 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
172 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
173 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
175 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
176 and umod_optab if TARGET_BSD_DIVMOD.
177 * config/vax/lib1funcs.asm: New file.
178 * config/vax/t-linux: New file.
179 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
181 2009-06-30 Jakub Jelinek <jakub@redhat.com>
184 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
185 to type arguments that have void type.
188 * dwarf2out.c (gen_formal_parameter_die): Call
189 equate_decl_number_to_die if node is different from origin.
191 2009-06-30 Anthony Green <green@moxielogic.com>
193 Clean up moxie port for --enable-build-with-cxx.
194 * config/moxie/moxie.c (moxie_function_value): First two
195 parameters are const_tree, not tree.
196 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
197 (REG_CLASS_NAMES): Ditto.
198 (REGNO_REG_CLASS): Ditto.
199 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
200 (moxie_function_value): Fix constyness of arguments.
202 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
204 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
205 finalize_size_functions before further processing.
206 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
207 (variable_size): Call self_referential_size on size expressions
208 that contain a PLACEHOLDER_EXPR.
209 (size_functions): New static variable.
210 (copy_self_referential_tree_r): New static function.
211 (self_referential_size): Likewise.
212 (finalize_size_functions): New global function.
213 * tree.c: Include tree-inline.h.
214 (push_without_duplicates): New static function.
215 (find_placeholder_in_expr): New global function.
216 (substitute_in_expr) <tcc_declaration>: Return the replacement object
218 <tcc_expression>: Likewise.
219 <tcc_vl_exp>: If the replacement object is a constant, try to inline
220 the call in the expression.
221 * tree.h (finalize_size_functions): Declare.
222 (find_placeholder_in_expr): Likewise.
223 (FIND_PLACEHOLDER_IN_EXPR): New macro.
224 (substitute_placeholder_in_expr): Update comment.
225 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
227 (copy_tree_body_r): Likewise.
228 (copy_tree_body): New static function.
229 (maybe_inline_call_in_expr): New global function.
230 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
231 (maybe_inline_call_in_expr): Declare.
232 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
233 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
236 2009-06-30 Richard Guenther <rguenther@suse.de>
238 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
240 (propagate_necessity): Do not mark reaching defs of stores
243 2009-06-30 Jan Hubicka <jh@suse.cz>
245 * cfgloopanal.c (check_irred): Move into ...
246 (mark_irreducible_loops): ... here; return true if ireducible
248 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
249 (analyze_function): Try to prove loop finiteness.
250 * cfgloop.h (mark_irreducible_loops): Update prototype.
251 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
253 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
255 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
257 2009-06-30 Ira Rosen <irar@il.ibm.com>
259 PR tree-optimization/40542
260 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
263 2009-06-30 Martin Jambor <mjambor@suse.cz>
265 PR tree-optimization/40582
266 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
267 than useless_type_conversion_p.
268 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
271 2009-06-30 Martin Jambor <mjambor@suse.cz>
274 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
276 2009-06-30 Richard Guenther <rguenther@suse.de>
278 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
279 use ao_ref references.
280 (walk_aliased_vdefs): Likewise.
281 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
282 * tree-ssa-dce.c (struct ref_data): Remove.
283 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
284 (mark_aliased_reaching_defs_necessary): Adjust.
285 (mark_all_reaching_defs_necessary_1): Likewise.
287 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
290 * expmed.c (emit_cstore): New name of emit_store_flag_1.
291 (emit_store_flag_1): Extract from emit_store_flag, adjust
292 calls to (what now is) emit_cstore.
293 (emit_store_flag): Call emit_store_flag_1 and also use it
294 for what used to be recursive calls.
296 2009-06-30 Wei Guozhi <carrot@google.com>
299 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
300 if the target bb post dominates from bb.
301 * config/i386/i386.c (memory_address_length): Check existence of base
302 register before using it.
304 2009-06-29 DJ Delorie <dj@redhat.com>
306 * doc/install.texi (mep-x-elf): Correct chip's full name.
308 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
310 * doc/extend.texi: Fix typo.
312 2009-06-29 Tom Tromey <tromey@redhat.com>
315 * Makefile.in (DWARF2_H): New variable.
317 (dwarf2out.o): Likewise.
318 (dwarf2asm.o): Likewise.
319 * config/i386/t-i386: Use DWARF2_H.
320 * except.c: Include elf/dwarf2.h.
321 * unwind-dw2.c: Include elf/dwarf2.h.
322 * dwarf2out.c: Include elf/dwarf2.h.
323 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
325 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
326 (size_of_loc_descr): Likewise.
327 (output_loc_operands_raw): Likewise.
328 (output_loc_operands): Handle new dtprel field.
329 (loc_checksum): Update.
330 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
331 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
332 * unwind-dw2-fde.c: Include elf/dwarf2.h.
333 * dwarf2asm.c: Include elf/dwarf2.h.
334 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
335 * config/mmix/mmix.c: Include elf/dwarf2.h.
336 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
337 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
338 * config/sh/sh.c: Include elf/dwarf2.h.
339 * config/i386/i386.c: Include elf/dwarf2.h.
341 2009-06-29 DJ Delorie <dj@redhat.com>
343 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
345 * doc/extend.texi: Add MeP attributes and pragmas.
346 * doc/invoke.text: Add MeP Options.
347 * doc/contrib.texi: Add MeP contribution.
348 * doc/md.texi: Add MeP constraints.
349 * doc/install.texi: Add MeP target.
351 2009-06-30 Anatoly Sokolov <aesok@post.ru>
353 * target.h (struct gcc_target): Add frame_pointer_required field.
354 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
355 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
356 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
358 * reload1.c (update_eliminables): (Ditto.).
359 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
360 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
361 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
363 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
365 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
366 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
367 (arm_frame_pointer_required): New function.
369 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
370 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
371 (avr_frame_pointer_required_p): Declare as static.
372 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
374 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
375 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
376 (bfin_frame_pointer_required): Make as static, change return type
378 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
380 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
381 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
382 (cris_frame_pointer_required): New function.
384 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
386 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
387 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
388 (fr30_frame_pointer_required): New function.
390 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
391 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
392 (frv_frame_pointer_required): Make as static, change return type
394 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
396 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
397 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
398 (ix86_frame_pointer_required): Make as static, change return type to
400 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
402 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
403 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
405 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
407 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
409 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
411 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
412 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
413 (mips_frame_pointer_required): Make as static.
414 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
416 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
417 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
418 (mmix_frame_pointer_required): Mew function.
420 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
421 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
423 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
425 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
427 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
429 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
430 (CAN_ELIMINATE): Redefine.
431 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
432 (sparc_frame_pointer_required): New function.
433 (sparc_can_eliminate): New function.
434 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
436 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
437 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
439 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
440 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
441 (xtensa_frame_pointer_required): Make as static, change return type
443 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
446 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
448 * doc/plugins.texi: Document PLUGIN_START_UNIT.
449 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
450 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
451 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
452 (register_callback): Handle PLUGIN_START_UNIT.
453 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
455 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
457 * tree.c (process_call_operands): Propagate TREE_READONLY from the
459 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
460 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
462 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
464 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
467 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
469 * doc/extend.texi (Additional Floating Types): __float128 is also
470 supported on i386 targets.
472 2009-06-29 Richard Guenther <rguenther@suse.de>
475 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
477 (pt_solutions_same_restrict_base): Declare.
478 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
480 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
481 (make_constraint_from, make_copy_constraint): Move earlier.
482 (make_constraint_from_heapvar): New function.
483 (make_constraint_from_restrict): Likewise.
484 (handle_lhs_call): Use it.
485 (find_func_aliases): Use it to track conversions to restrict
487 (struct fieldoff): Add only_restrict_pointers flag.
488 (push_fields_onto_fieldstack): Initialize it.
489 (create_variable_info_for): Track global restrict qualified pointers.
490 (intra_create_variable_infos): Use make_constraint_from_heapvar.
491 Track restrict qualified pointer arguments.
492 (set_uids_in_ptset): Use varinfo is_global_var flag.
493 (find_what_var_points_to): Set the vars_contains_restrict flag.
494 Always create the points-to solution for sets including restrict tags.
495 (pt_solutions_same_restrict_base): New function.
496 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
497 qualified pointers use pt_solutions_same_restrict_base as
498 additional source for disambiguation.
500 2009-06-29 Richard Guenther <rguenther@suse.de>
503 * alias.c (find_base_decl): Remove.
504 (get_deref_alias_set_1): Remove restrict handling.
505 * c-common.c (c_apply_type_quals_to_decl): Do not set
506 DECL_POINTER_ALIAS_SET.
507 * gimplify.c (find_single_pointer_decl_1): Remove.
508 (find_single_pointer_decl): Likewise.
509 (internal_get_tmp_var): Remove restrict handling.
510 (gimple_regimplify_operands): Likewise.
511 * omp-low.c (expand_omp_atomic_pipeline): Do not set
512 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
513 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
514 * tree.c (restrict_base_for_decl): Remove.
515 (init_ttree): Do not allocate it.
516 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
517 LABEL_DECL_UID for label decls.
518 (copy_node_stat): Do not copy restrict information.
519 (decl_restrict_base_lookup): Remove.
520 (decl_restrict_base_insert): Likewise.
521 (print_restrict_base_statistics): Likewise.
522 (dump_tree_statistics): Do not call print_restrict_base_statistics.
523 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
524 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
525 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
526 (LABEL_DECL_UID): Adjust.
527 (DECL_BASED_ON_RESTRICT_P): Remove.
528 (DECL_GET_RESTRICT_BASE): Likewise.
529 (SET_DECL_RESTRICT_BASE): Likewise.
530 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
532 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
533 instead of DECL_POINTER_ALIAS_SET.
534 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
535 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
536 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
538 2009-06-29 Richard Guenther <rguenther@suse.de>
540 PR tree-optimization/40579
541 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
542 the IL to simplify has constants that overflowed.
544 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
546 PR tree-optimization/40550
547 * tree-vect-generic.c (expand_vector_operations_1): Compute in
548 vector_compute_type only when the size of vector_compute_type is
549 less than the size of type.
551 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
553 * fold-const.c (contains_label_1): Fix comments.
554 (contains_label_p): Do not walk trees multiple time.
556 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
558 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
559 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
560 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
561 ix86_fp_comparison_operator.
562 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
563 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
564 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
565 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
566 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
567 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
568 (related splits): Change predicate to ix86_fp_comparison_operator.
569 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
570 instead of ix86_fp_comparison_codes.
571 (ix86_trivial_fp_comparison_operator,
572 ix86_fp_comparison_operator): New.
573 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
574 (ix86_expand_compare): Eliminate last two parameters.
575 (ix86_fp_jump_nontrivial_p): Kill.
576 * config/i386/i386.c (put_condition_code): Eliminate call to
577 ix86_fp_comparison_codes and subsequent assertion.
578 (ix86_fp_comparison_codes): Eliminate.
579 (ix86_fp_swap_condition): New.
580 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
581 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
582 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
583 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
584 and ix86_fp_swap_condition.
585 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
586 Use ix86_fp_comparison_strategy.
587 (ix86_expand_compare): Likewise. Eliminate last two arguments.
588 (ix86_fp_jump_nontrivial_p): Eliminate.
589 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
590 call to ix86_expand_compare.
591 (ix86_split_fp_branch, ix86_expand_setcc,
592 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
593 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
595 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
597 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
598 related to jump_clobbers.
599 * config/arm/arm.md (conds): Remove jump_clob case.
600 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
601 splits): Change comparison_operator to arm_comparison_operator.
602 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
605 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
607 * dojump.c (do_compare_rtx_and_jump): Try swapping the
608 condition for floating point modes.
609 * expmed.c (emit_store_flag_1): Move here a bigger part
611 (emit_store_flag): Try swapping the condition for floating point
613 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
615 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
617 * expr.c (expand_expr_real_1): Just use do_store_flag.
618 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
619 emit_store_flag_force.
620 * expmed.c (emit_store_flag_force): Copy here trick
621 previously in expand_expr_real_1. Try reversing the comparison.
622 (emit_store_flag_1): Work if target is NULL.
623 (emit_store_flag): Work if target is NULL, using the result mode
624 from the comparison. Use split_comparison, restructure final part
625 to simplify conditionals.
627 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
629 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
630 * dojump.c (do_jump): Change handling of floating-point
631 ops to use just do_compare_and_jump.
632 (split_comparison): New.
633 (do_compare_rtx_and_jump): Add here logic coming previously
634 in do_jump, using split_comparison.
636 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
639 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
641 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
643 * tree-ssa-alias.c: Fix unintentional commit.
645 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
647 * passes.c (execute_one_pass): Fix unintentional commit.
649 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
651 * df-problems.c (df_set_seen, df_unset_seen): Delete.
652 (df_rd_local_compute, df_md_local_compute): Inline them.
654 (df_md_scratch): New.
655 (df_md_alloc, df_md_free): Allocate/free it.
656 (df_md_local_compute): Only include live registers in init.
657 (df_md_transfer_function): Prune the in-set computed by
658 the confluence function, and the gen-set too.
660 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
662 PR rtl-optimization/26854
663 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
664 * df-problems.c (df_rd_add_problem): Fix comment.
665 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
666 df_md_simulate_artificial_defs_at_top,
667 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
668 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
669 df_md_transfer_function, df_md_init, df_md_confluence_0,
670 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
671 problem_MD, df_md_add_problem): New.
672 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
673 df_md_get_bb_info): New.
674 (DF_LAST_PROBLEM_PLUS1): Adjust.
676 * Makefile.in (fwprop.o): Include domwalk.h.
677 * fwprop.c: Include domwalk.h.
678 (reg_defs, reg_defs_stack): New.
679 (bitmap_only_bit_between): Remove.
681 (process_uses): Use reg_defs and local_md instead of
682 bitmap_only_bit_between and local_rd.
683 (single_def_use_enter_block): New, from build_single_def_use_links.
684 (single_def_use_leave_block): New.
685 (build_single_def_use_links): Remove code moved to
686 single_def_use_enter_block, invoke domwalk.
687 (use_killed_between): Adjust comment.
689 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
691 * bitmap.h (bitmap_ior_and_into): New.
692 * bitmap.c (bitmap_ior_and_into): New.
694 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
696 * domwalk.h (struct dom_walk_data): Remove all callbacks except
697 before_dom_children_before_stmts and after_dom_children_after_stmts.
698 Rename the two remaining callbacks to just before_dom_children and
699 after_dom_children. Remove other GIMPLE statement walking bits.
700 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
701 * graphite.c: Do not include domwalk.h.
702 * tree-into-ssa.c (interesting_blocks): New global.
703 (struct mark_def_sites_global_data): Remove it and names_to_rename.
704 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
705 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
706 now that they're not domwalk callbacks.
707 (rewrite_initialize_block): Rename to...
708 (rewrite_enter_block): ... this, place after called functions. Test
709 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
710 (rewrite_finalize_block): Rename to...
711 (rewrite_leave_block): ... this, place after called functions.
712 (rewrite_update_init_block): Rename to...
713 (rewrite_update_enter_block): ... this, place after called functions.
714 Test interesting_blocks, call rewrite_update_stmt and
715 rewrite_update_phi_arguments.
716 (rewrite_update_fini_block): Rename to...
717 (rewrite_leave_block): ... this, place after called functions.
718 (rewrite_blocks): Remove last argument, simplify initialization of
720 (mark_def_sites_initialize_block): Rename to...
721 (mark_def_sites_block): ... this, call mark_def_sites.
722 (mark_def_sites_blocks): Remove argument, simplify initialization of
724 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
725 (update_ssa): Likewise.
726 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
728 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
729 (dom_opt_initialize_block): Rename to...
730 (dom_opt_enter_block): ... this, place after called functions. Walk
731 statements here, inline propagate_to_outgoing_edges.
732 (dom_opt_finalize_block): Rename to...
733 (dom_opt_leave_block): ... this, place after called functions.
734 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
736 (dse_enter_block, dse_record_phi): New.
737 (dse_record_phis): Delete.
738 (dse_finalize_block): Rename to...
739 (dse_leave_block): ... this.
740 (tree_ssa_dse): Simplify initialization of walk_data.
741 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
742 Adjust initialization of walk_data.
743 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
744 * tree-ssa-loop-phiopt.c (get_non_trapping):
745 Adjust initialization of walk_data.
746 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
747 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
748 it's not a domwalk callback.
749 (uncprop_initialize_block): Rename to...
750 (dse_enter_block): ... this, call uncprop_into_successor_phis.
751 (dse_finalize_block): Rename to...
752 (dse_leave_block): ... this.
753 (tree_ssa_uncprop): Simplify initialization of walk_data.
754 * Makefile.in: Adjust dependencies.
756 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
758 * arm.md (casesi): Fix test for Thumb1.
759 (thumb1_casesi_internal_pic): Likewise.
760 (thumb1_casesi_dispatch): Likewise.
762 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
764 * config/arm/arm-cores.def: Added core cortex-m0.
765 * config/arm/arm-tune.md: Regenerated.
766 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
768 2009-06-26 DJ Delorie <dj@redhat.com>
770 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
772 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
773 the scheduler doesn't tag jump insns.
775 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
777 * c-decl.c (merge_decls): Re-indent.
779 2009-06-26 Janis Johnson <janis187@us.ibm.com>
782 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
783 Special-case decimal float constants.
785 2009-06-26 Richard Henderson <rth@redhat.com>
787 * function.h (struct function): Add cannot_be_copied_reason,
788 and cannot_be_copied_set.
789 * tree-inline.c (has_label_address_in_static_1): Rename from
790 inline_forbidden_p_2; don't set inline_forbidden_reason here.
791 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
792 don't set inline_forbidden_reason.
793 (copy_forbidden): New function, split out of inline_forbidden_p.
794 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
795 (inline_forbidden_p): Use copy_forbidden.
796 (tree_versionable_function_p): Likewise.
797 (inlinable_function_p): Merge into tree_inlinable_function_p.
798 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
799 * ipa-cp.c (ipcp_versionable_function_p): New function.
800 (ipcp_cloning_candidate_p): Use it.
801 (ipcp_node_modifiable_p): Likewise.
803 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
805 * builtins.c (expand_builtin_alloca): Handle builtin alloca
806 that is marked not to be inlined. Remove flag_mudflap use.
807 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
808 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
810 2009-06-26 Steve Ellcey <sje@cup.hp.com>
813 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
814 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
816 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
818 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
820 (__mingwthr_remove_key_dtor): Likewise.
822 2009-06-26 Richard Guenther <rguenther@suse.de>
824 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
826 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
829 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
830 try the non-cond_exec path also.
832 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
835 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
836 (output_cbranch): Use new functions.
837 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
840 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
841 Pat Haugen <pthaugen@us.ibm.com>
842 Revital Eres <ERES@il.ibm.com>
844 * config/rs6000/rs6000.c (print_operand): Correct lossage message
845 for %c error. Add %x support to print VSX registers as a unified
846 register set, instead of separate float and altivec registers.
847 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
848 %y case, and add support for VSX pre-modify addresses.
849 (output_toc): Add assert for CONST containing an integer constant
851 (rs6000_adjust_cost): Add POWER7 support.
852 (insn_must_be_first_in_group): Ditto.
853 (insn_must_be_last_in_group): Ditto.
854 (rs6000_emit_popcount): Ditto.
855 (rs6000_vector_mode_supported_p): Ditto.
857 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
858 Change some of the functions called by macros to being called
859 through a pointer, so debug functions can be inserted if
860 -mdebug=addr or -mdebug=cost.
861 (rs6000_preferred_reload_class_ptr): Ditto.
862 (rs6000_secondary_reload_class_ptr): Ditto.
863 (rs6000_secondary_memory_needed_ptr): Ditto.
864 (rs6000_cannot_change_mode_class_ptr): Ditto.
865 (rs6000_secondary_reload_inner): Ditto.
866 (rs6000_legitimize_reload_address): Ditto.
867 (rs6000_legitimize_reload_address_ptr): Ditto.
868 (rs6000_mode_dependent_address): Ditto.
869 (rs6000_mode_dependent_address_ptr): Ditto.
871 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
872 function to return true if the mode allows reg + integer
874 (virtual_stack_registers_memory_p): New function to return true if
875 the address refers to a virtual stack register.
876 (rs6000_legitimate_offset_address_p): Move code to say whether a
877 mode supports reg+int addressing to reg_offset_addressing_ok_p and
879 (rs6000_legitimate_address_p): Add checks for modes that only can
880 do reg+reg addressing. Start adding VSX support.
881 (rs6000_legitimize_reload_address): Ditto.
882 (rs6000_legitimize_address): Ditto.
883 (rs6000_debug_legitimate_address_p): New debug functions for
884 -mdebug=addr and -mdebug=cost.
885 (rs6000_debug_rtx_costs): Ditto.
886 (rs6000_debug_address_costs): Ditto.
887 (rs6000_debug_adjust_cost): Ditto.
888 (rs6000_debug_legitimize_address): Ditto.
889 (rs6000_legitimize_reload_address_ptr): Point to call normal
890 function or debug function. Make functions called via pointer
892 (rs6000_mode_dependent_address_ptr): Ditto.
893 (rs6000_secondary_reload_class_ptr): Ditto.
894 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
895 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
896 into a friendlier error.
897 (rs6000_init_builtins): Add initial VSX support.
898 (rs6000_adjust_cost): Fix some spacing issues.
900 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
901 (REG_CLASS_NAMES): Ditto.
902 (REG_CLASS_CONTENTS): Ditto.
903 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
904 pointer, to add -mdebug=addr support.
905 (CANNOT_CHANGE_MODE_CLASS): Ditto.
906 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
907 -mdebug=addr support.
908 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
909 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
910 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
912 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
914 (bswapsi*): Set attribute types for load/store. Add combiner
915 patterns to eliminate zero extend on 64-bit.
916 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
917 stdbrx if the hardware supports those instructions.
919 2009-06-25 Ian Lance Taylor <iant@google.com>
921 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
922 (Link Options): Document -static-libstdc++.
924 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
927 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
928 DATA_ALIGNMENT instead.
930 2009-06-25 Richard Guenther <rguenther@suse.de>
932 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
933 indirect references against the callused/escaped solutions.
934 (call_may_clobber_ref_p_1): Likewise.
936 2009-06-25 Martin Jambor <mjambor@suse.cz>
938 PR tree-optimization/40493
939 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
940 (enum unscalarized_data_handling): New type.
941 (handle_unscalarized_data_in_subtree): Return what has been done.
942 (load_assign_lhs_subreplacements): Handle left flushes differently.
943 (sra_modify_assign): Use unscalarized_data_handling, simplified
944 condition determining whether to remove the statement.
946 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
948 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
949 excerpt - @ should be doubled for texinfo.
951 2009-06-24 Ian Lance Taylor <iant@google.com>
953 * config/arc/arc.c: Include "df.h".
954 (arc_attribute_table): Make static. Move higher in file.
955 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
956 (output_shift): Initialize n later to avoid warning.
957 * config/arm/arm.c (arm_attribute_table): Make static. Move
959 * config/avr/avr.c (avr_attribute_table): Make static. Move
961 (reg_class_tab): Change array type from int to enum reg_class.
962 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
964 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
965 (lshrhi3_out): Likewise.
966 (class_likely_spilled_p): Change return type to bool.
967 (avr_rtx_costs): Use local code variable with enum type.
968 * config/avr/avr.md (movmemhi): Use add_reg_note.
969 (andhi3, andsi3): Don't use AS2 with "and".
970 (iorhi3, iorsi3): Don't use AS2 with "or".
971 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
972 * config/crx/crx.c: Include "df.h".
973 (crx_attribute_table): Make static.
974 * config/m32r/m32r.c: Include "df.h".
975 (m32r_attribute_table): Make static. Move higher in file.
976 (pop): Use add_reg_note.
977 (block_move_call): Change 0 to LCT_NORMAL in function call.
978 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
979 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
980 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
981 declare, not just when TREE_CODE is defined.
982 * config/m68hc11/m68hc11.c: Include "expr.h".
983 (m68hc11_attribute_table): Make static. Move higher in file.
984 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
986 (m68hc11_register_indirect_p): Likewise.
987 (m68hc11_function_arg_padding): Change return type to enum
989 (emit_move_after_reload): Use add_reg_note.
990 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
991 (m68hc11_split_logical): Likewise.
992 (m68hc11_rtx_costs): Add local code_and outer_code variables with
994 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
995 to VOIDmode in function call.
996 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
998 (m68hc11_split_logical): Update declaration.
999 (m68hc11_function_arg_padding): Update declaration.
1000 * config/mcore/mcore.c (regno_reg_class): Change form array of int
1001 to array of enum reg_class.
1002 (mcore_attribute_table): Make static. Move higher in file.
1003 (mcore_rtx_costs): Add cast to enum type.
1004 * config/mcore/mcore.h (regno_reg_class): Update declaration.
1005 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
1006 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
1008 * config/sh/predicates.md (trapping_target_operand): Rename and to
1010 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
1012 * config/spu/spu.c (spu_attribute_table): Make static. Move
1014 * config/v850/v850.c (v850_attribute_table): Make static. Move
1016 (v850_rtx_costs): Use local code with enum type.
1017 (expand_epilogue): Add cast.
1018 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
1020 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
1023 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
1024 -m2a-single-only and -m2a-nofpu.
1025 * config/sh/sh.opt: Document m2a generates FPU code.
1027 2009-06-24 Anatoly Sokolov <aesok@post.ru>
1029 * defaults.h (CAN_ELIMINATE): Provide default.
1030 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
1031 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
1032 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
1033 * config/spu/spu.h (CAN_ELIMINATE): Delete.
1034 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
1035 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
1036 * config/cris/cris.h (CAN_ELIMINATE): Delete.
1037 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
1038 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
1039 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
1041 2009-06-24 DJ Delorie <dj@redhat.com>
1043 * mep-ext-cop.cpu: Fix copyright notice.
1044 * mep-default: Fix copyright notice.
1045 * mep-core: Fix copyright notice.
1046 * mep: Fix copyright notice.
1047 * mep-ivc2: Fix copyright notice.
1048 * mep-c5: Fix copyright notice.
1050 2009-06-24 Denis Chertykov <chertykov@gmail.com>
1052 * doc/contrib.texi (Contributors):
1054 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
1057 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
1058 src and dst operands if necessary.
1060 2009-06-23 DJ Delorie <dj@redhat.com>
1063 * config.gcc: Add mep support.
1064 * recog.c: Resurrect validate_replace_rtx_subexp().
1065 * recog.h: Likewise.
1066 * config/mep/: Add new port:
1067 * config/mep/constraints.md: New file.
1068 * config/mep/default.h: New file.
1069 * config/mep/intrinsics.h: New file.
1070 * config/mep/intrinsics.md: New file.
1071 * config/mep/ivc2-template.h: New file.
1072 * config/mep/mep-c5.cpu: New file.
1073 * config/mep/mep-core.cpu: New file.
1074 * config/mep/mep-default.cpu: New file.
1075 * config/mep/mep-ext-cop.cpu: New file.
1076 * config/mep/mep-intrin.h: New file.
1077 * config/mep/mep-ivc2.cpu: New file.
1078 * config/mep/mep-lib1.asm: New file.
1079 * config/mep/mep-lib2.c: New file.
1080 * config/mep/mep-pragma.c: New file.
1081 * config/mep/mep-protos.h: New file.
1082 * config/mep/mep-tramp.c: New file.
1083 * config/mep/mep.c: New file.
1084 * config/mep/mep.cpu: New file.
1085 * config/mep/mep.h: New file.
1086 * config/mep/mep.md: New file.
1087 * config/mep/mep.opt: New file.
1088 * config/mep/predicates.md: New file.
1089 * config/mep/t-mep: New file.
1091 2009-06-23 Ian Lance Taylor <iant@google.com>
1093 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
1094 from loose_warn into c_loose_warn and from strict_warn into
1095 c_strict_warn. Set and substitute warn_cxxflags. Check for
1096 --enable-build-with-cxx. Set and substitute
1097 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
1098 * Makefile.in (CXXFLAGS): New variable.
1099 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
1100 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
1101 the default is the same as $(STRICT_WARN).
1102 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
1103 (CXX): New variable.
1104 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
1105 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
1106 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
1107 (HOST_LIBS): New variable.
1108 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
1109 (ALL_CXXFLAGS): New variable.
1110 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
1111 * doc/install.texi (Configuration): Document
1112 --enable-build-with-cxx, --with-stage1-ldflags,
1113 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
1114 * configure: Rebuild.
1116 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1118 * config/arm/arm.c (arm_override_options): Fix braces and formatting
1119 from previous commit.
1121 2009-06-23 Ian Lance Taylor <iant@google.com>
1123 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
1125 2009-06-23 Ian Lance Taylor <iant@google.com>
1127 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
1128 with ATTRIBUTE_UNUSED.
1130 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1131 Pat Haugen <pthaugen@us.ibm.com>
1132 Revital Eres <eres@il.ibm.com>
1134 * config.in (HAVE_AS_POPCNTD): Add default definition.
1135 (HAVE_AS_LWSYNC): Ditto.
1137 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
1139 (gcc_cv_as_powerpc_cmpb): Ditto.
1140 (gcc_cv_as_powerpc_dfp): Ditto.
1141 (gcc_cv_as_powerpc_vsx): Ditto.
1142 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
1143 supporting the popcntd/lwsync instructions.
1144 (gcc_cv_as_powerpc_lwsync): Ditto.
1145 * configure: Regenerate.
1147 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
1148 -mcpu=native and -mcpu=power7.
1149 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
1151 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
1152 a variable instead of a mask to reduce the number of mask bits.
1153 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1154 (-mbit-word): Ditto.
1155 (-mregnames): Ditto.
1156 * config/rs6000/rs6000.opt (-mupdate): Ditto.
1157 (-mfused-madd): Ditto.
1159 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
1161 (-mvsx): New switch for VSX instructions.
1162 (-misel): Move from a variable to a mask to allow it to be set by
1165 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
1166 function declaration to an array declaration.
1167 (rs6000_hard_regno_nregs): New external array declaration.
1169 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
1170 files included by rs6000.md.
1172 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1173 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
1175 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
1177 (rs6000_debug_reg): New -mdebug= variables.
1178 (rs6000_debug_addr): Ditto.
1179 (rs6000_debug_cost): Ditto.
1180 (rs6000_pmode): New variable to hold Pmode.
1181 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
1182 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
1183 calculated at compiler start.
1184 (rs6000_hard_regno_nregs): Change function to an array which holds
1185 HARD_REGNO_NREGS calculated at compiler start.
1186 (rs6000_explicit_options): Delete isel field.
1187 (rs6000_vector_unit): New array to hold which vector unit
1188 supports arithmetic options for a given type.
1189 (rs6000_vector_mem): New array to hold which vector unit supports
1190 memory reference operations for a given type.
1191 (rs6000_vector_align): New array to given the alignment of each
1193 (power7_cost): New basic costs for power7.
1194 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
1195 (rs6000_hard_regno_nregs_internal): New function, moved from
1196 HARD_REGNO_NREGS, to calculate the number of registers each hard
1197 register takes for each type.
1198 (rs6000_debug_reg_print): New function for -mdebug=reg support.
1199 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
1200 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
1201 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
1202 unit information here so it is calculated once at compiler startup
1204 (rs6000_override_options): Make -misel a target mask. Add more
1205 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
1206 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
1208 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
1209 (rs6000_handle_option): Move -misel from variable to target mask.
1210 (rs6000_builtin_mask_for_load): Add VSX support.
1211 (rs6000_conditional_register_usage): Ditto.
1212 (USE_ALTIVEC_FOR_ARG_P): Ditto.
1213 (function_arg_boundary): Ditto.
1214 (rs6000_expand_builtin): Ditto.
1215 (def_builtin): Make abort message a little friendlier.
1216 (rs6000_emit_int_cmove): Add support for 64-bit isel.
1218 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
1219 assembler support the popcntd instruction instead of a vsx
1220 instruction to enable power7 support.
1221 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
1222 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
1223 option to the assembler if -mcpu=native.
1224 (ASM_CPU_NATIVE_SPEC): Ditto.
1225 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
1227 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
1228 the lwsync instruction.
1229 (enum processor_type): Add PROCESSOR_POWER7.
1230 (rs6000_debug_reg): New -mdebug= options.
1231 (rs6000_debug_addr): Ditto.
1232 (rs6000_debug_cost): Ditto.
1233 (rs6000_isel): Delete.
1234 (enum rs6000_vector): New enum to say what vector unit we have.
1235 (VECTOR_UNIT_*): New macros to say which vector unit has
1236 arithmetic operations for a given type.
1237 (VECTOR_MEM_*): New macros to say which vector unit has memory
1238 operations for a given type.
1239 (TARGET_LDBRX): Whether the machine supports the ldbrx
1241 (TARGET_ISEL): Delete, -misel moved to be a mask.
1242 (TARGET_ISEL64): New macro for 64-bit isel support.
1243 (UNITS_PER_VSX_WORD): New macro.
1244 (POINTER_SIZE): Move to be an external variable, rather than
1245 calculating whether we are generating 32 ot 64-bit code.
1247 (STACK_BOUNDARY): Add VSX support.
1248 (LOCAL_ALIGNMENT): Ditto.
1249 (SLOW_UNALIGNED_ACCESS): Ditto.
1250 (VSX_REGNO_P): New macro for VSX support.
1251 (VFLOAT_REGNO_P): Ditto.
1252 (VINT_REGNO_P): Ditto.
1253 (VLOGICAL_REGNO_P): Ditto.
1254 (VSX_VECTOR_MODE): Ditto.
1255 (VSX_SCALAR_MODE): Ditto.
1257 (VSX_MOVE_MODE): Ditto.
1258 (VSX_REG_CLASS_P): Ditto.
1259 (HARD_REGNO_NREGS): Instead of calling a function, use an array
1261 (UNITS_PER_SIMD_WORD): Add VSX support.
1262 (MODES_TIEABLE_P): Ditto.
1263 (STARTING_FRAME_OFFSET): Ditto.
1264 (STACK_DYNAMIC_OFFSET): Ditto.
1265 (EPILOGUE_USES): Ditto.
1266 (REGNO_REG_CLASS): Move to array lookup.
1267 (CLASS_MAX_NREGS): Ditto.
1268 (rs6000_vector_reg_class): Add declaration.
1269 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
1270 overlap with the floating point and Altivec registers.
1272 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
1274 * config/rs6000/driver-rs6000.c (asm_names): New static array to
1275 give the appropriate asm switches if -mcpu=native.
1276 (host_detect_local_cpu): Add support for "asm".
1277 (host_detect_local_cpu): Follow GNU code guidelines for name.
1279 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
1280 -mbit-word to a variable instead of being a target mask.
1282 * config/rs6000/sync.md (lwsync): If the assembler supports it,
1283 emit the lwsync instruction instead of emitting the instruction as
1284 an integer constant.
1286 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
1287 fixuns_trundfsi2, move expander into rs6000.md.
1289 * config/rs6000/rs6000.md (cpu): Add power7.
1290 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
1291 (logical predicate patterns): Change the single instruction
1292 primitives that set CR0 to be fast_compare instead of compare.
1294 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
1295 (popcntddi2): Ditto.
1296 (popcount<mode>): Ditto.
1297 (floating multiply/add insns): Name the floating point
1299 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
1300 (isel_unsigned_<mode>): Ditto.
1301 (fixuns_trundfsi2): Move expander here from spe.md.
1302 (smindi3): Define if we have -misel on 64-bit systems.
1307 2009-06-23 Anatoly Sokolov <aesok@post.ru>
1309 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
1311 * config/avr/avr.c (avr_current_device): New variable.
1312 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
1313 (avr_arch, mcu_type_s): Move to avr.h.
1314 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
1315 default_data_section_start fields.
1316 (avr_arch): Moved from avr.c.
1317 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
1318 library_name fields.
1319 (avr_current_device, avr_mcu_types, avr_arch_types,
1320 avr_device_to_arch, avr_device_to_data_start,
1321 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
1322 (EXTRA_SPEC_FUNCTIONS): Define.
1323 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
1324 options mapping. Use device_to_arch and device_to_data_start insted.
1325 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
1326 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
1327 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
1328 * config/avr/driver-avr.c: New file.
1329 * config/avr/avr-devices.c: New file.
1331 2009-06-23 Jakub Jelinek <jakub@redhat.com>
1333 * var-tracking.c (unshare_variable): Force initialized to
1334 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
1335 (set_variable_part): Likewise.
1336 (struct variable_union_info): Remove pos_src field.
1337 (vui_vec, vui_allocated): New variables.
1338 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
1339 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
1340 == 1 use a simpler sorting algorithm. Compute pos field right
1341 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
1342 Avoid quadratic comparison if !flag_var_tracking_uninit.
1343 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
1344 unshare_variable unconditionally.
1345 (dataflow_set_different_2): Removed.
1346 (dataflow_set_different): Don't traverse second hash table.
1347 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
1348 unconditionally to var_reg_set or var_mem_set.
1349 (emit_notes_in_bb): Likewise.
1350 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
1352 (emit_note_insn_var_location): Don't set initialized to
1353 VAR_INIT_STATUS_INITIALIZED early.
1354 (vt_finalize): Free vui_vec if needed, clear vui_vec and
1356 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
1358 * tree-object-size.c (addr_object_size): Instead of checking
1359 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
1360 are no FIELD_DECLs following it.
1362 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
1364 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
1365 order to match bswaps with signed source operands.
1367 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1369 * sdbout.c (sdbout_one_type): Fix braces in switch.
1371 2009-06-23 Richard Guenther <rguenther@suse.de>
1373 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
1375 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
1376 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
1377 var_callused, callused_tree, var_storedanything, storedanything_tree,
1378 var_integer, integer_tree): Remove global variables.
1379 (new_var_info): Do not pass new id, append the new var to the
1380 global variable vector.
1381 (do_ds_constraint): Use is_global_var member of the variable-info.
1382 (new_scalar_tmp_constraint_exp): Adjust.
1383 (create_function_info_for): Likewise.
1384 (create_variable_info_for): Likewise.
1385 (find_what_var_points_to): Remove dead code.
1386 (init_base_vars): Simplify.
1387 (compute_points_to_sets): Adjust.
1389 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
1391 * combine.c (try_combine): Dump information about the insns we're
1394 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
1396 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
1397 check when calling force_to_mode on TRUNCATE's operand.
1399 2009-06-22 Ian Lance Taylor <iant@google.com>
1401 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
1403 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
1405 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
1407 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1409 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
1410 override library linkage flags such as -static-libgcc or
1413 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1415 * config/m68k/m68k-devices.def: Add line for MCF5221x.
1417 2009-06-22 Ian Lance Taylor <iant@google.com>
1419 * config/linux.opt: Put mglibc ahead of muclibc.
1421 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
1422 for duplicate decls.
1424 2009-06-22 Matthias Klose <doko@ubuntu.com>
1426 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
1428 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
1431 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
1432 instead of NULL if a parser error occurs.
1434 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1436 * dwarf2out.c (dwarf2_debug_hooks): Initialize
1437 non-DWARF2_DEBUGGING_INFO version.
1439 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
1441 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
1442 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
1444 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
1445 (LIBGCC2_TF_CEXT): Define.
1448 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1451 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
1453 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1455 * config/arm/arm.c (arm_override_options): Disable
1456 -mcaller-super-interworking and -mcallee-super-interworking.
1457 * doc/invoke.texi (ARM Options): Document this.
1459 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
1461 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
1462 * config/arm/constraints.md (j): New constraint for movw operands.
1463 (N): Remove thumb2 meaning.
1464 * config/arm/arm.md (*arm_movw): Delete.
1465 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
1466 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
1467 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
1469 2009-06-22 Martin Jambor <mjambor@suse.cz>
1471 PR tree-optimization/40492
1472 * tree-sra.c (sra_modify_assign): Pass zero offsets to
1473 build_ref_for_offset.
1475 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
1477 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
1478 JUMP_TABLE_DATA_P predicates where applicable.
1479 * auto-inc-dec.c: Ditto.
1480 * builtins.c: Ditto.
1481 * caller-save.c: Ditto.
1483 * cfgcleanup.c: Ditto.
1484 * cfglayout.c: Ditto.
1487 * combine-stack-adj.c: Ditto.
1493 * dwarf2asm.c: Ditto.
1494 * dwarf2out.c: Ditto.
1495 * emit-rtl.c: Ditto.
1501 * function.c: Ditto.
1504 * genpreds.c: Ditto.
1505 * genrecog.c: Ditto.
1507 * ira-costs.c: Ditto.
1508 * ira-lives.c: Ditto.
1511 * lower-subreg.c: Ditto.
1512 * modulo-sched.c: Ditto.
1514 * postreload.c: Ditto.
1515 * print-rtl.c: Ditto.
1524 * sched-vis.c: Ditto.
1526 * sel-sched-ir.c: Ditto.
1527 * simplify-rtx.c: Ditto.
1528 * targhooks.c: Ditto.
1529 * var-tracking.c: Ditto.
1530 * vmsdbgout.c: Ditto.
1532 2009-06-22 Matthias Klose <doko@ubuntu.com>
1534 * Makefile.in (install-plugin): Always use DESTDIR.
1536 2009-06-22 Olivier Hainque <hainque@adacore.com>
1538 * config/pa/pa.c (output_call): Don't optimize post call jumps
1539 into return address adjustments if the call may throw.
1541 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
1543 * arm.c (thumb1_output_casesi): New function.
1544 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
1545 optimizing for size or PIC.
1546 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
1547 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
1548 (casesi): Handle Thumb-1 when optimizing for size or PIC.
1549 (thumb1_casesi_internal_pic): New expand rule.
1550 (thumb1_casesi_dispatch): New pattern.
1551 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
1553 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
1554 in the text seciton when PIC or optimizing for size.
1555 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
1556 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
1557 preservation properties of code.
1558 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
1559 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
1560 (__gnu_thumb1_case_si): New function.
1561 * t-arm (LIB1ASMSRC): Define here.
1562 (LIB1ASMFUNCS): Add some common functions.
1563 * t-arm-elf (LIB1ASMSRC): Delete.
1564 (LIB1ASMFUNCS): Append to existing set.
1565 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1566 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1567 * t-symbian (LIB1ASMFUNCS): Likewise.
1568 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1569 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1571 2009-06-21 Richard Guenther <rguenther@suse.de>
1573 PR tree-optimization/38729
1574 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
1575 to loops with a single exit if -fno-expensive-optimizations.
1577 2009-06-21 Jakub Jelinek <jakub@redhat.com>
1579 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
1580 (dataflow_set): Change vars type from htab_t to shared_hash.
1581 (shared_hash_pool, empty_shared_hash): New variables.
1582 (vars_clear): Removed.
1583 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
1584 shared_hash_find_slot_unshare, shared_hash_find_slot,
1585 shared_hash_find_slot_noinsert, shared_hash_find): New
1587 (shared_hash_unshare, shared_hash_destroy): New functions.
1588 (unshare_variable): Unshare set->vars if shared, use
1590 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
1591 (get_init_value, find_src_set_src, dump_dataflow_set,
1592 clobber_variable_part, emit_notes_for_differences): Use
1594 (dataflow_set_init): Remove second argument, set vars to
1595 empty_shared_hash instead of creating a new htab.
1596 (dataflow_set_clear): Call shared_hash_destroy and set vars
1597 to empty_shared_hash instead of calling vars_clear.
1598 (dataflow_set_copy): Don't call vars_copy, instead just share
1599 the src htab with dst.
1600 (variable_union): Use shared_hash_*, use initially NO_INSERT
1601 lookup if set->vars is shared. Don't keep slot cleared before
1602 calling unshare_variable. Unshare set->vars if needed.
1603 Even ->refcount == 1 vars must be unshared if set->vars is shared
1604 and var needs to be modified.
1605 (variable_canonicalize): New function.
1606 (dataflow_set_union): If dst->vars is empty, just share src->vars
1607 with dst->vars and traverse with variable_canonicalize to canonicalize
1608 and unshare what is needed.
1609 (dataflow_set_different): If old_set and new_set use the same shared
1610 htab, they aren't different. If number of htab elements is different,
1611 htabs are different. Use shared_hash_*.
1612 (dataflow_set_destroy): Call shared_hash_destroy instead of
1614 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
1615 second argument to dataflow_set_init.
1616 (vt_initialize): Likewise. Initialize shared_hash_pool and
1617 empty_shared_hash, move bb in/out initialization afterwards.
1618 Use variable_htab_free instead of NULL as changed_variables del hook.
1619 (variable_was_changed): Change type of second argument to pointer to
1620 dataflow_set. When inserting var into changed_variables, bump
1621 refcount. Unshare set->vars if set is shared htab and slot needs to
1623 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
1624 lookup if set->vars is shared. Unshare set->vars if needed.
1625 Even ->refcount == 1 vars must be unshared if set->vars is shared
1626 and var needs to be modified. Adjust variable_was_changed caller.
1627 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
1628 vars must be unshared if set->vars is shared and var needs to be
1629 modified. Adjust variable_was_changed caller.
1630 (emit_note_insn_var_location): Don't pool_free var.
1631 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
1633 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
1634 free_alloc_pool on shared_hash_pool.
1636 2009-06-20 Anthony Green <green@moxielogic.com>
1638 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
1639 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
1641 2009-06-20 Richard Guenther <rguenther@suse.de>
1643 * tree-ssa-structalias.c (find_func_aliases): For memset use
1644 a constraint from NULL if we memset to zero.
1645 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
1646 we explicitly handle that do not read from memory.
1647 (call_may_clobber_ref_p_1): Properly handle builtins that may
1650 2009-06-20 Richard Guenther <rguenther@suse.de>
1652 PR tree-optimization/40495
1653 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
1654 (new_scalar_tmp_constraint_exp): New function.
1655 (process_constraint): Do not create temporary decls.
1656 (process_all_all_constraints): Likewise.
1657 (handle_const_call): Likewise.
1658 (create_function_info_for): Do not set decl.
1660 2009-06-19 Ian Lance Taylor <iant@google.com>
1662 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
1663 (rs6000_attribute_table): Make static; move before use.
1665 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1667 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
1668 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
1669 Propagate the TREE_READONLY flag without overwriting it.
1670 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
1671 Propagate the TREE_READONLY flag onto the result.
1672 (process_call_operands): Move around. Use correct constant value.
1674 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1677 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
1678 * config/arm/arm.md: Likewise.
1680 2009-06-19 Ian Lance Taylor <iant@google.com>
1682 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
1683 to GIMPLE_ERROR_MARK.
1685 * c-typeck.c (build_conditional_expr): Add op1_original_type and
1686 op2_original_type parameters. Warn about using different enum types.
1687 * c-parser.c (c_parser_conditional_expression): Pass original
1688 types to build_conditional_expr.
1689 * c-tree.h (build_conditional_expr): Update declaration.
1691 2009-06-19 Ian Lance Taylor <iant@google.com>
1693 * config/i386/i386.c (ix86_function_specific_save): Test that
1694 fields match values, rather than testing the values are in a
1697 2009-06-19 Richard Guenther <rguenther@suse.de>
1699 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1701 (ptr_derefs_may_alias_p): Likewise.
1702 (ptr_deref_may_alias_ref_p_1): New function.
1703 (ptr_deref_may_alias_ref_p): Likewise.
1704 (ref_maybe_used_by_call_p_1): Handle builtins that are not
1705 covered by looking at the ESCAPED solution.
1706 (call_may_clobber_ref_p_1): Likewise.
1707 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
1708 Handle NULL_TREE offset. Do not produce redundant constraints.
1709 (process_all_all_constraints): New helper function.
1710 (do_structure_copy): Use it.
1711 (handle_lhs_call): Likewise.
1712 (find_func_aliases): Handle some builtins with pointer arguments
1713 and/or return values explicitly.
1715 2009-06-19 Ian Lance Taylor <iant@google.com>
1717 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
1719 2009-06-19 Ian Lance Taylor <iant@google.com>
1721 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
1723 2009-06-19 Ian Lance Taylor <iant@google.com>
1725 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
1726 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
1729 * c-decl.c (finish_decl): If -Wc++-compat, warn about
1730 uninitialized const.
1732 2009-06-19 Ian Lance Taylor <iant@google.com>
1734 * dse.c (struct store_info): Rename bitmap field to bmap. Change
1737 * c-decl.c (in_struct, struct_types): Remove.
1738 (struct c_binding): Add in_struct field.
1739 (c_binding_ptr): Define type, along with VEC.
1740 (struct c_struct_parse_info): Define.
1741 (struct_parse_info): New static variable.
1742 (bind): Initialize in_struct field.
1743 (start_struct): Remove enclosing_in_struct and
1744 enclosing_struct_types parameters. Add
1745 enclosing_struct_parse_info parameter. Change all callers. Set
1746 struct_parse_info rather than in_struct and struct_types.
1747 (grokfield): If -Wc++-compat and there is a symbol binding for the
1748 field name, set the in_struct flag and push it on the
1749 struct_parse_info->fields vector.
1750 (warn_cxx_compat_finish_struct): New static function.
1751 (finish_struct): Remove enclosing_in_struct and
1752 enclosing_struct_types parameters. Add
1753 enclosing_struct_parse_info parameter. Change all callers. Don't
1754 set C_TYPE_DEFINED_IN_STRUCT here. Call
1755 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
1756 parameter. Only push on struct_types if warn_cxx_compat.
1757 (finish_enum): Only push on struct_types if warn_cxx_compat.
1758 (declspecs_add_type): Add loc parameter. Change all callers.
1759 Change all error calls to error_at. Pass loc, not input_location,
1760 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
1761 defined in a struct. If -Wc++-compat and parsing a struct, record
1762 that a typedef name was used.
1763 * c-parser.c (c_parser_declspecs): Get location to pass to
1765 (c_parser_struct_or_union_specifier): Update calls to start_struct
1767 * c-tree.h (struct c_struct_parse_info): Declare.
1768 (finish_struct, start_struct): Update declarations.
1769 (declspecs_add_type): Update declaration.
1771 2009-06-19 Ian Lance Taylor <iant@google.com>
1773 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
1774 variable with an anonymous type.
1776 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
1778 * see.c: Remove for real.
1780 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
1782 * optabs.h (enum optab_index): Add new OTI_significand.
1783 (significand_optab): Define corresponding macro.
1784 * optabs.c (init_optabs): Initialize significand_optab.
1785 * genopinit.c (optabs): Implement significand_optab using
1786 significand?f2 patterns.
1787 * builtins.c (expand_builtin_mathfn): Handle
1788 BUILT_IN_SIGNIFICAND{,F,L}.
1789 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
1790 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1792 * config/i386/i386.md (significandxf2, significand<mode>2): New
1793 expanders to implement significandf, significand and significandl
1794 built-ins as inline x87 intrinsics.
1796 2009-06-18 Anatoly Sokolov <aesok@post.ru>
1798 * config/avr/avr.c (avr_override_options): Remove setting value of
1799 PARAM_INLINE_CALL_COST.
1801 2009-06-18 Richard Henderson <rth@redhat.com>
1804 * tree-pass.h (TDF_ASMNAME): New.
1805 * tree-dump.c (dump_options): Add asmname.
1806 * doc/invoke.texi: Document it.
1808 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
1809 (dump_decl_name): ...here.
1810 (dump_function_name): New flags arg; mind TDF_ASMNAME.
1811 (dump_generic_node): Update dump_function_name calls.
1812 (print_call_name): New flags arg; update all dump calls.
1813 * diagnostic.h (print_call_name): Update.
1814 * gimple-pretty-print.c (dump_gimple_call): Update.
1816 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
1819 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
1821 2009-06-18 Diego Novillo <dnovillo@google.com>
1823 * doc/plugins.texi: Document plugin_is_GPL_compatible.
1824 * plugin.c (str_license): Declare.
1825 (try_init_one_plugin): Assert that the symbol
1826 'plugin_is_GPL_compatible' exists.
1828 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
1831 * Makefile.in (OBJS-common): Remove see.o.
1833 * common.opt (fsee): Mark as preserved for backward compatibility.
1834 * opts.c (common_handle_option): Add OPT_fsee to the backward
1835 compatibility section.
1836 * passes.c (init_optimization_passes, pass_see): Remove pass.
1837 * timevar.def (TV_SEE): Remove.
1838 * tree-pass.h (pass_see): Remove declaration.
1839 * doc/invoke.texi (-fsee): Remove documentation.
1841 2009-06-18 Martin Jambor <mjambor@suse.cz>
1843 * tree-sra.c: Include statistics.h
1844 (sra_stats): New variable.
1845 (sra_initialize): Clear sra_stats.
1846 (create_access_replacement): Increment sra_stats.replacements.
1847 (get_access_replacement): Do not return twice.
1848 (analyze_all_variable_accesses): Increment statistics counter by the
1849 number of scalarized aggregates.
1850 (generate_subtree_copies): Increment sra_stats.subtree_copies.
1851 (sra_modify_expr): Increment sra_stats.exprs.
1852 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
1853 (sra_modify_assign): Increment sra_stats.exprs,
1854 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
1855 (perform_intra_sra): Update statistics counters.
1856 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
1858 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
1860 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
1861 (arm_scalar_mode_supported_p): New function.
1863 2009-06-18 Paul Brook <paul@codesourcery.com>
1864 Sandra Loosemore <sandra@codesourcery.com>
1866 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
1867 (__extendhfsf2, __truncsfhf2): Define.
1868 * config/arm/fp16.c: New file.
1869 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
1870 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
1872 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
1874 * doc/extend.texi (Half-Precision): New section.
1875 * doc/invoke.texi (Option Summary): List -mfp16-format.
1876 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
1877 * config/arm/arm.opt (mfp16-format=): New.
1878 * config/arm/arm.c: Include intl.h.
1879 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
1880 (TARGET_INVALID_RETURN_TYPE): Redefine.
1881 (TARGET_PROMOTED_TYPE): Redefine.
1882 (TARGET_CONVERT_TO_TYPE): Redefine.
1883 (arm_fp16_format): Define.
1884 (all_fpus): Add entry for neon-fp16.
1885 (fp_model_for_fpu): Likewise.
1886 (struct fp16_format): Declare.
1887 (all_fp16_formats): Define.
1888 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
1890 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
1892 (arm_legitimate_index_p): Treat HFmode like HImode.
1893 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
1894 (coproc_secondary_reload_class): Special-case HFmode.
1895 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
1896 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
1897 (arm_init_fp16_builtins): New.
1898 (arm_init_builtins): Call it.
1899 (arm_invalid_parameter_type): New.
1900 (arm_invalid_return_type): New.
1901 (arm_promoted_type): New.
1902 (arm_convert_to_type).
1903 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
1905 (arm_emit_fp16_const): New function.
1906 (arm_mangle_type): Mangle __fp16 as "Dh".
1907 * config/arm/arm.h (TARGET_VFPD32): Make it know about
1909 (TARGET_NEON_FP16): New.
1910 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
1911 (enum fputype): Add FPUTYPE_NEON_FP16.
1912 (enum arm_fp16_format_type): Declare.
1913 (arm_fp16_format): Declare.
1914 (LARGEST_EXPONENT_IS_NORMAL): Define.
1915 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
1916 * config/arm/arm-modes.def (HFmode): Define.
1917 * config/arm/vfp.md: (*movhf_vfp): New.
1920 * config/arm/arm.md: (fpu): Add neon_fp16.
1921 (floatsihf2, floatdihf2): New.
1922 (fix_trunchfsi2, fix_trunchfdi2): New.
1926 (*arm32_movhf): New.
1927 (*thumb1_movhf): New.
1928 (consttable_2): Add check for HFmode constants.
1929 (consttable_4): Handle HFmode constants.
1931 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
1933 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
1935 2009-06-17 Olivier Hainque <hainque@adacore.com>
1937 * collect2.c (main): Use CONST_CAST2 to perform char ** to
1938 const char ** conversion in AIX specific section.
1940 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1942 * config/i386/i386.c (ix86_special_builtin_type): Remove
1943 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
1944 (bdesc_special_args): Updated.
1945 (ix86_init_mmx_sse_builtins): Likewise.
1946 (ix86_expand_special_args_builtin): Likewise.
1948 2009-06-17 Richard Henderson <rth@redhat.com>
1950 * tree-pretty-print.c (maybe_dump_asm_name): New.
1951 (dump_decl_name): Use it.
1952 (PRINT_FUNCTION_NAME): Merge into...
1953 (dump_function_name): ... here. Use maybe_dump_asm_name.
1955 2009-06-17 Cary Coutant <ccoutant@google.com>
1957 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
1959 * debug.c (struct gcc_debug_hooks): Change placeholder for
1961 (debug_nothing_int_charstar_int): Replaced by...
1962 (debug_nothing_int_charstar_int_bool): ...this.
1963 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
1964 source_line prototype.
1965 (debug_nothing_int_charstar_int): Replaced by...
1966 (debug_nothing_int_charstar_int_bool): ...this.
1967 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
1968 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
1969 Output is_stmt operand when necessary.
1970 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
1971 (notice_source_line): Add is_stmt parameter.
1972 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
1973 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
1975 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
1976 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
1978 2009-06-17 Ian Lance Taylor <iant@google.com>
1980 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
1982 (struct store_by_pieces_d): Rename from store_by_pieces. Change
1985 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
1987 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
1988 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
1989 tree_strip_sign_nop_conversions and
1990 tree_ssa_strip_useless_type_conversions rather than stripping
1991 the operations here.
1992 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
1994 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
1995 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
1996 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
1997 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
2000 2009-06-17 Michael Eager <eager@eagercon.com>
2002 * config/rs6000/constraints.md (register_constraint "d"): New.
2003 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
2004 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2005 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
2006 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
2007 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2008 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
2009 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
2010 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
2011 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
2012 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
2014 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
2015 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
2016 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
2017 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
2018 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
2019 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
2020 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
2021 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
2022 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
2023 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
2024 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
2025 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
2026 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
2027 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
2029 2009-06-16 Ian Lance Taylor <iant@google.com>
2031 * profile.c (total_num_never_executed): Don't define.
2032 (compute_branch_probabilities): Don't count or print
2034 (init_branch_prob): Don't set total_num_never_executed.
2035 (end_branch_prob): Don't print total_num_never_executed.
2037 2009-06-17 David Daney <ddaney@caviumnetworks.com>
2039 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2041 2009-06-17 David Edelsohn <edelsohn@gnu.org>
2043 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
2044 (nabstd2_fpr): Same.
2046 2009-06-17 Steve Ellcey <sje@cup.hp.com>
2048 * expr.c (expand_assignment): Change complex type check.
2050 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
2052 * doc/plugins.texi (Building GCC plugins): Added new section.
2054 2009-06-17 Ian Lance Taylor <iant@google.com>
2056 * c-pch.c (get_ident): Don't set size of templ array.
2057 (pch_init): Don't set size of partial_pch array.
2059 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
2060 string constant to intialize an array whose size is the length of
2063 2009-06-17 Richard Guenther <rguenther@suse.de>
2065 PR tree-optimization/40389
2066 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
2067 to addressable types.
2068 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
2070 2009-06-17 Richard Guenther <rguenther@suse.de>
2073 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
2074 if there is no evolution of left in the loop bail out.
2075 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
2076 chrec_fold_multiply.
2078 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
2079 Janis Johnson <janis187@us.ibm.com>
2082 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
2083 for the symbol ref of a constant that is the source of a move
2084 - nor for any other not-obvious-label-ref constants.
2086 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
2088 * plugin.c (position_pass): Skip newly inserted pass during list
2089 traversal to avoid repeated insertion.
2091 2009-06-16 Ian Lance Taylor <iant@google.com>
2093 * vec.h (VEC_stack_alloc): Define different version if
2094 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
2095 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
2096 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
2097 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
2099 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
2101 * config.gcc (extra_headers): Add ia32intrin.h for x86.
2103 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
2104 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
2105 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
2106 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
2107 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
2108 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
2109 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
2110 (bdesc_special_args): Add __builtin_ia32_rdtsc and
2111 __builtin_ia32_rdtscp.
2112 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
2113 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
2114 and __builtin_ia32_rorhi.
2115 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
2116 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
2117 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
2118 (ix86_expand_args_builtin): Likewise.
2119 (ix86_expand_special_args_builtin): Likewise.
2121 * config/i386/i386.md (UNSPECV_RDTSCP): New.
2122 (UNSPECV_RDTSC): Likewise.
2123 (UNSPECV_RDPMC): Likewise.
2124 (*bsr): Renamed to ...
2126 (*bsr_rex64): Renamed to ...
2130 (*rdpmc_rex64): Likewise.
2133 (*rdtsc_rex64): Likewise.
2135 (*rdtscp): Likewise.
2136 (*rdtscp_rex64): Likewise.
2138 * config/i386/ia32intrin.h: New.
2140 * config/i386/x86intrin.h: Include <ia32intrin.h>.
2142 2009-06-16 Ian Lance Taylor <iant@google.com>
2144 * ira-build.c (copy_info_to_removed_store_destinations):
2145 Initialize parent_a.
2147 2009-06-16 Ian Lance Taylor <iant@google.com>
2149 * c-decl.c (grokdeclarator): Change size_varies to bool.
2151 2009-06-16 Ian Lance Taylor <iant@google.com>
2153 * sel-sched.c: Make forward declarations of move_op_hooks and
2154 fur_hooks explicitly extern.
2156 2009-06-16 Ian Lance Taylor <iant@google.com>
2158 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
2159 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
2161 2009-06-16 Ian Lance Taylor <iant@google.com>
2163 * resource.c (mark_referenced_resources): Change
2164 include_delayed_effects parameter to bool. Change all callers.
2165 (mark_end_of_function_resources): Likewise.
2166 * reorg.c (insn_references_resource_p): Likewise.
2167 (insn_sets_resource_p): Likewise.
2168 * resource.h (mark_referenced_resources): Update declaration.
2169 (mark_end_of_function_resources): Update declaration.
2171 2009-06-16 David Edelsohn <edelsohn@gnu.org>
2173 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
2175 2009-06-16 David Edelsohn <edelsohn@gnu.org>
2177 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
2178 GCC can bootstrap on AIX with GNU Binutils 2.20.
2180 2009-06-16 Ian Lance Taylor <iant@google.com>
2182 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
2184 2009-06-16 Ian Lance Taylor <iant@google.com>
2186 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
2187 inline, not extern inline.
2188 (exact_log2): Likewise.
2189 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
2191 (exact_log2): Likewise, but don't test CTZ_HWI.
2193 2009-06-16 Ian Lance Taylor <iant@google.com>
2195 * bitmap.c (bitmap_clear): Don't declare as inline.
2196 * gimple.c (gimplify_assign): Likewise.
2197 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2198 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
2199 (sched_scan_info): Remove duplicate definition.
2201 2009-06-16 Ian Lance Taylor <iant@google.com>
2203 * c-common.c (skip_evaluation): Don't define.
2204 (c_inhibit_evaluation_warnings): Define global variable.
2205 (overflow_warning): Check c_inhibit_evaluation_warnings rather
2206 than skip_evaluation.
2207 (convert_and_check, warn_for_div_by_zero): Likewise.
2208 * c-common.h (skip_evaluation): Don't declare.
2209 (c_inhibit_evaluation_warnings): Declare.
2210 * c-parser.c (c_parser_typeof_specifier): Set
2211 c_inhibit_evaluation_warnings rather than skip_evaluation.
2212 (c_parser_conditional_expression): Likewise.
2213 (c_parser_binary_expression): Likewise.
2214 (c_parser_sizeof_expression): Likewise.
2215 (c_parser_alignof_expression): Likewise.
2216 * c-typeck.c (build_indirect_ref): Check
2217 c_inhibit_evaluation_warnings rather than skip_evaluation.
2218 (build_conditional_expr, build_binary_op): Likewise.
2220 2009-06-16 Richard Guenther <rguenther@suse.de>
2222 * tree-ssa-alias.c (is_escape_site): Remove.
2223 * tree-ssa-alias.h (enum escape_type): Remove.
2224 (is_escape_site): Likewise.
2225 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
2226 via casts and asms without deferring to is_escape_site.
2228 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2231 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
2232 use gen_lowpart if op0 has complex mode.
2234 2009-06-16 Richard Guenther <rguenther@suse.de>
2236 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
2237 variables add them to ESCAPED.
2238 (find_func_aliases): Do not make all indirectly stored values escaped.
2240 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
2242 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
2245 2009-06-16 Martin Jambor <mjambor@suse.cz>
2247 PR tree-optimization/40432
2248 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
2249 check whether we need to force gimple register operand.
2251 2009-06-16 Martin Jambor <mjambor@suse.cz>
2253 PR tree-optimization/40413
2254 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
2255 build_ref_for_offset.
2256 (propagate_subacesses_accross_link): Fix a typo in a comment.
2258 2009-06-16 Ira Rosen <irar@il.ibm.com>
2260 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2261 with additional parameter.
2262 * tree-vectorizer.h (enum vect_def_type): Add new value
2264 (enum vect_relevant): Add comments.
2265 (vect_is_simple_reduction): Add new argument.
2266 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
2267 Detect nested cycles.
2268 (vect_is_simple_reduction): Update documentation, add an argument to
2269 distinguish inner-loop reduction from nested cycle, detect nested
2270 cycles, fix printings and indentation, don't swap operands in case
2272 (get_initial_def_for_reduction): Handle subtraction.
2273 (vect_create_epilog_for_reduction): Add new argument to specify
2275 (vect_finalize_reduction): Handle subtraction, fix comments.
2276 (vectorizable_reduction): Handle nested cycles. In case of nested
2277 cycle keep track of the reduction variable position. Call
2278 vect_is_simple_reduction with additional parameter. Use original
2279 statement code in reduction epilogue for nested cycle. Call
2280 vect_create_epilog_for_reduction with additional parameter.
2281 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
2282 inner-loop vectorization.
2283 (vect_recog_widen_sum_pattern): Likewise.
2284 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
2286 (vect_mark_stmts_to_be_vectorized): Likewise.
2287 (vect_get_vec_def_for_operand): Handle nested cycles.
2289 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2291 * doc/invoke.texi (Debugging Options): Fix option index entries
2292 for -fdump-statistics, -frandom-seed add entries for
2293 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
2294 (FRV Options): Fix entries for -mTLS, -mtls.
2295 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
2296 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
2297 (M68hc1x Options): Fix @itemx for -mnominmax.
2298 (MCore Options): Fix entry for -mno-lsim.
2299 (MMIX Options): Fix entry for -mabi=mmixware.
2300 (PDP-11 Options): Fix entry for -mbcopy-builtin.
2302 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
2304 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
2305 Mention the plugin mode of gengtype.
2306 * doc/gty.texi (Source Files Containing Type Information): Likewise.
2307 * gengtype.c: Updated copyright.
2308 (plugin_files, nb_plugin_files) Added new static variables.
2309 (measure_input_list) Care about plugin_files.
2310 (write_rtx_next): Added early return in plugin mode.
2311 (create_file): Updated copyright year in generated file. Added
2313 (oprintf): Added early return if NULL outf.
2314 (get_output_file_with_visibility): Care of plugin_files.
2315 (get_output_file_name): May return null.
2316 (write_local): Added early return.
2317 (put_mangled_filename): Ditto.
2318 (finish_root_table): Added check for base_files.
2319 (write_roots): Care about null when plugins.
2320 (main): Added plugin mode.
2322 2009-06-15 Ian Lance Taylor <iant@google.com>
2324 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
2325 * gcov.c (read_count_file): Add braces around variables declared
2328 * c.opt (Wjump-misses-init): New warning.
2329 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
2330 -Wall and -Wc++-compat if not already set.
2331 (c_common_post_options): Clear warn_jump_misses_init if it was not
2333 * c-decl.c (struct c_binding): Change type field to a union with
2334 new label field. Make it the first field in the struct. Update
2335 references to type to use u.type instead.
2336 (struct c_spot_bindings): Define.
2337 (struct c_goto_bindings): Define.
2338 (c_goto_bindings_p): Define, along with VECs.
2339 (struct c_label_vars): Define.
2340 (struct c_scope): Add has_label_bindings field.
2341 (bind_label, set_spot_bindings): New static functions.
2342 (decl_jump_unsafe, update_spot_bindings): New static functions.
2343 (update_label_decls): New static function.
2344 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
2345 Update binding u.label field to shadowed field.
2346 (c_binding_start_stmt_expr): New function.
2347 (c_binding_end_stmt_expr): New function.
2348 (pushdecl): Don't call c_begin_vm_scope.
2349 (make_label): Add defining and p_label_vars parameters. Change
2351 (lookup_label): Correct test for whether a label has not yet been
2352 defined. Call bind_label rather than bind.
2353 (warn_about_goto): New static function.
2354 (lookup_label_for_goto): New function.
2355 (declare_label): Call bind_label rather than bind.
2356 (check_earlier_gotos): New static function.
2357 (define_label): Don't give errors about jumping into statement
2358 expressions or scopes of variably modified types. Call
2359 set_spot_bindings and check_earlier_gotos. Call bind_label
2360 instead of bind. Don't set label_context_stack_se or
2361 label_context_stack_vm.
2362 (c_get_switch_bindings): New function.
2363 (c_release_switch_bindings): New function.
2364 (c_check_switch_jump_warnings): New function.
2365 (start_function): Don't set label_context_stack_se or
2366 label_context_stack_vm.
2367 (finish_function): Likewise.
2368 * c-typeck.c (label_context_stack_se): Don't define.
2369 (label_context_stack_vm): Don't define.
2370 (c_finish_goto_label): Call lookup_label_for_goto rather than
2371 lookup_label. Don't give errors about jumping into a statement
2372 expression or the scope of a variably modified type. Don't set
2373 label_context_stack_se or label_context_stack_vm.
2374 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
2375 fields. Add bindings field.
2376 (c_start_case): Don't set deleted fields. Set bindings field.
2377 (do_case): Rework order of tests. Don't check blocked_stmt_expr
2378 or blocked_vm. Call c_check_switch_jump_warnings.
2379 (c_finish_case): Don't test blocked_stmt_expr field. Call
2380 c_release_switch_bindings.
2381 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
2382 c_switch_stack. Don't walk label_context_stack_se labels. Don't
2383 set label_context_stack_se. Call c_bindings_start_stmt_expr.
2384 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
2385 c_switch_stack. Don't walk label_context_stack_se labels. Don't
2386 set label_context_stack_se. Call c_bindings_end_stmt_expr.
2387 (c_begin_vm_scope, c_end_vm_scope): Don't define.
2388 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
2389 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
2390 (C_DECL_UNJUMPABLE_VM): Don't define.
2391 (C_DECL_UNDEFINABLE_VM): Don't define.
2392 (struct c_label_list): Don't define.
2393 (struct c_label_context_se): Don't define.
2394 (struct c_label_context_vm): Don't define.
2395 (struct c_spot_bindings): Declare.
2396 (c_bindings_start_stmt_expr): Declare.
2397 (c_bindings_end_stmt_expr): Declare.
2398 (lookup_label_for_goto): Declare.
2399 (c_get_switch_bindings, c_release_switch_bindings): Declare.
2400 (c_check_switch_jump_warnings): Declare.
2401 (label_context_stack_se, label_context_stack_vm): Don't declare.
2402 (c_finish_goto_label): Update declaration.
2403 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
2404 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
2405 (Warning Options): Document -Wjump-misses-init.
2407 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2409 * tree-object-size.c (addr_object_size): Fix a pasto in the last
2412 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
2414 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
2416 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
2418 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
2420 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
2422 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
2424 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
2426 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
2427 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
2428 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
2429 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
2430 * dwarf2asm.c (dw2_force_const_mem): Update call to
2432 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
2433 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
2434 * langhooks.c (lhd_comdat_group): Remove.
2435 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
2436 * tree.h (DECL_COMDAT_GROUP): New.
2437 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
2438 (tree_decl_with_vis): Add comdat_group. Remove one_only.
2439 (make_decl_one_only): Change signature.
2440 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
2442 (make_decl_one_only): Change signature.
2443 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
2445 2009-06-15 Richard Guenther <rguenther@suse.de>
2448 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
2450 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2452 * tree-ssa-math-opts.c: Remove extra divide.
2454 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2456 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
2458 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2460 * passes.c: Add bswap pass.
2461 * tree-pass.h: Add pass_optimize_bswap declaration.
2462 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
2463 Include rtl.h, expr.h and optabs.h for optab_handler check.
2464 (struct symbolic_number, pass_optimize_bswap): New definition.
2465 (do_shift_rotate, verify_symbolic_number_p): New functions.
2466 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
2467 (gate_optimize_bswap): New function.
2468 * tree.c (widest_int_cst_value): New function.
2469 * tree.h (widest_int_cst_value): Prototype added.
2471 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
2473 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
2474 REG_EQUAL/REG_EQUIV notes.
2476 2009-06-14 Richard Guenther <rguenther@suse.de>
2479 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
2480 has its address taken if NRV was applied and it is addressable.
2481 * tree-ssa-structalias.c (get_constraint_for_address_of): New
2482 function split out from ...
2483 (get_constraint_for_1): ... here.
2484 (handle_rhs_call): Use it to mark the return slot escaped if
2485 it is addressable and NRV was applied.
2487 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
2489 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
2490 Change first argument type to location_t.
2491 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
2492 Do not set input_location.
2493 Use loc instead of input_location throughout.
2495 2009-06-13 Richard Guenther <rguenther@suse.de>
2497 PR tree-optimization/40421
2498 * tree-predcom.c (should_unroll_loop_p): Remove.
2499 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
2501 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2503 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2504 Add location argument.
2506 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
2508 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
2510 * config/s390/s390.c (s390_build_builtin_va_list): Same.
2511 (s390_gimplify_va_arg): Pass location to create_artificial_label.
2512 * config/spu/spu-protos.h: Add location to
2513 spu_resolve_overloaded_builtin.
2514 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
2515 spu_build_builtin_va_list.
2516 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
2517 argument. Pass location to build_function_call_vec.
2518 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
2520 (emit_fpu_switch): Same.
2521 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
2522 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
2523 to build_decl and create_artificial_label.
2524 (xtensa_gimplify_va_arg_expr): Same.
2525 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
2526 (xstormy16_gimplify_va_arg_expr): Same.
2527 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
2528 * config/arm/arm.c (arm_build_builtin_va_list): Same.
2529 * config/mips/mips.c (mips_build_builtin_va_list): Same.
2530 (mips16_build_function_stub): Same.
2531 (mips16_build_call_stub): Same.
2533 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
2536 * arm/constraints.md (Pa, Pb): New constraints.
2537 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
2538 split pattern to deal with them.
2540 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
2542 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
2543 fix index entry for -Xpreprocessor.
2545 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
2547 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2548 Add location argument to build_decl call.
2549 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
2550 (rs6000_init_builtins): Same.
2551 (spe_init_builtins): Same.
2552 (rs6000_gimplify_va_arg): Add location argument to
2553 create_artificial_label call.
2555 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
2557 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
2558 * combine-stack-adj.c (pass_stack_adjustments): Use it.
2559 * Makefile.in: Fix GGC dependency for gcse.o.
2561 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
2563 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
2564 * gimple-pretty-print.c (dump_gimple_stmt): Same.
2565 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
2567 * c-parser.c (c_parser_binary_expression): Use current column while
2568 building binary operations.
2569 * common.opt (fshow-column): Enable by default.
2570 * tree-vrp.c (check_array_ref): Use warning_at.
2571 (check_array_bounds): Use location from call back if expr has no
2573 * tree.h: Add location argument to maybe_fold_*.
2574 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
2575 (maybe_fold_offset_to_array_ref): Add location argument and use it.
2576 (maybe_fold_offset_to_component_ref): Same.
2577 (maybe_fold_offset_to_reference): Same.
2578 (maybe_fold_offset_to_address): Same.
2579 (maybe_fold_stmt_indirect): Same.
2580 (maybe_fold_stmt_addition): Same.
2581 (fold_stmt_r): Pass location to maybe_fold_*.
2582 (fold_gimple_assign): Same.
2583 * c-tree.h: Add location argument to finish_decl,
2584 default_function_array_conversion, store_init_value.
2585 * c-decl.c (define_label): Use error_at.
2586 (c_make_fname_decl): Pass location to finish_decl.
2587 (finish_decl): New location argument.
2588 (build_compound_literal): Pass location to store_init_value.
2589 (grokdeclarator): Pass location to finish_decl.
2591 * c-typeck.c (array_to_pointer_conversion): New location argument.
2592 (function_to_pointer_conversion): Same.
2593 (default_function_array_conversion): Same.
2594 (parser_build_unary_op): Pass location to overflow_warning.
2595 (parser_build_binary_op): Same. Use warning_at.
2596 (build_unary_op): Pass location to array_to_pointer_conversion.
2597 (build_c_cast): Pass location to digest_init.
2598 (build_modify_expr): New location argument.
2599 (convert_for_assignment): Same.
2600 (store_init_value): Same.
2601 (digest_init): Same.
2602 (output_init_element): Pass location to digest_init and
2603 array_to_pointer_conversion.
2604 (c_finish_return): Pass location to convert_for_assignment.
2605 * gimplify.c (gimplify_conversion): Pass location to
2606 maybe_fold_offset_to_address.
2607 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
2608 to maybe_fold_stmt_addition.
2609 * c-omp.c (c_finish_omp_atomic): Pass new location to
2611 (c_finish_omp_for): Same.
2612 * c-common.c (overflow_warning): New argument.
2613 * c-common.h: New argument to build_modify_expr, overflow_warning.
2614 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
2616 (c_parser_initializer): Pass location to
2617 default_function_array_conversion.
2618 (c_parser_initelt): Same.
2619 (c_parser_initval): Same.
2620 (c_parser_asm_operands): Same.
2621 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
2622 (c_parser_conditional_expression): Same.
2623 (c_parser_binary_expression): Add location info to stack. Use it.
2624 (c_parser_unary_expression): Pass location to
2625 default_function_array_conversion, parser_build_unary_op,
2626 build_indirect_ref, c_parser_postfix_expression_after_primary.
2627 (c_parser_postfix_expression_after_primary): New location argument.
2629 (c_parser_expression_conv): Pass location to
2630 default_function_array_conversion.
2631 (c_parser_expr_list): Same.
2632 (c_parser_omp_atomic): Same.
2633 (c_parser_omp_for_loop): Same.
2634 * c-tree.h: (struct c_declarator): Add comment to id_loc.
2635 (build_array_declarator): New argument.
2636 * c-decl.c (build_array_declarator): Add location argument.
2637 (grokdeclarator): Set id_loc for cdk_array.
2638 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
2639 build_array_declarator.
2640 * tree.c (build_omp_clause): Add location argument.
2641 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
2642 (OMP_CLAUSE_LOCATION): New macro.
2643 (struct tree_omp_clause): Add location field.
2644 (build_omp_clause): Add argument.
2645 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
2646 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
2648 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
2649 (cp_parser_omp_clause_collapse): Same.
2650 (cp_parser_omp_clause_default): Same.
2651 (cp_parser_omp_clause_if): Same.
2652 (cp_parser_omp_clause_nowait): Same.
2653 (cp_parser_omp_clause_num_threads): Same.
2654 (cp_parser_omp_clause_ordered): Same.
2655 (cp_parser_omp_clause_schedule): Same.
2656 (cp_parser_omp_clause_untied): Same.
2657 (cp_parser_omp_for_loop): Same.
2658 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
2659 * c-tree.h (c_start_case): Add location argument.
2660 (c_process_expr_stmt): Same.
2661 (c_finish_goto_*): Same.
2662 * tree-parloops.c (initialize_reductions): Pass location to
2664 (create_parallel_loop): Same.
2665 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
2666 (gfc_trans_omp_reduction_list): Same.
2667 (gfc_trans_omp_clauses): Same.
2668 (gfc_trans_omp_do): Same.
2669 * c-typeck.c (c_finish_goto_label): Same.
2670 (c_finish_goto_ptr): New location argument.
2671 (c_start_case): Same.
2672 (emit_side_effect_warnings): Same.
2673 (c_process_expr_stmt): Same.
2674 (c_finish_stmt_expr): Same.
2675 (c_finish_omp_clauses): Use error_at instead of error.
2676 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
2678 * c-omp.c (c_split_parallel_clauses): New location argument.
2679 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
2680 to build_omp_clause.
2681 (convert_local_reference_stmt): Same.
2682 (convert_gimple_call): Same.
2683 * c-common.h (c_split_parallel_clauses): New argument.
2684 * c-parser.c (c_parser_statement_after_labels): Pass location to
2685 c_finish_goto_label.
2686 (c_parser_switch_statement): Pass location to c_start_case.
2687 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
2688 and c_process_expr_stmt.
2689 (c_parser_omp_variable_list): Add location argument.
2690 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
2691 (c_parser_omp_clause_default): Same.
2692 (c_parser_omp_clause_if): Same.
2693 (c_parser_omp_clause_num_threads): Same.
2694 (-c_parser_omp_clause_ordered): Same.
2695 (c_parser_omp_clause_reduction): Pass location to
2696 c_parser_omp_variable_list.
2697 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
2698 (c_parser_omp_clause_untied): Same.
2699 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
2700 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
2702 * c-tree.h (check_for_loop_decls, undeclared_variable,
2703 build_component_ref, build_array_ref, build_external_ref,
2704 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
2705 build_conditional_expr, build_compound_expr, c_cast_expr,
2706 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
2707 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
2709 * c-semantics.c (build_stmt): Same.
2710 (build_case_label): Same.
2711 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
2712 (undeclared_variable): New argument.
2714 (lookup_label): Pass location on down.
2715 (define_label): Same.
2716 (finish_decl): Same.
2717 (build_compound_literal): Same.
2718 (finish_struct): Same.
2719 (finish_function): Do not set location here.
2720 (check_for_loop_decls): New argument.
2721 * tree.c (save_expr): Set location.
2722 (build_empty_stmt): New argument.
2723 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
2724 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
2725 * builtins.c (gimplify_va_arg_expr): Use locations.
2726 (expand_builtin_sync_operation): Same.
2727 * c-typeck.c (build_component_ref): New argument.
2728 (build_array_ref): Same.
2729 (build_external_ref): Same.
2730 (c_expr_sizeof_expr): Same.
2731 (c_expr_sizeof_type): Same.
2732 (parser_build_unary_op): Same.
2733 (build_conditional_expr): Same.
2734 (build_compound_expr): Pass location on down.
2735 (build_compound_expr): New argument.
2736 (build_c_cast): Same.
2737 (c_cast_expr): Same.
2738 (build_asm_expr): Same.
2739 (c_finish_return): Same.
2740 (c_process_expr_stmt): Pass location on down.
2741 (c_finish_stmt_expr): New argument.
2742 (push_clenaup): Same.
2743 (c_finish_omp_parallel): Same.
2744 (c_finish_omp_task): Same.
2745 * gimplify.c (gimplify_call_expr): Pass location on down.
2746 * c-omp.c (c_finish_omp_master): New argument.
2747 (c_finish_omp_critical): Same.
2748 (c_finish_omp_ordered): Same.
2749 (c_finish_omp_barrier): Same.
2750 (-c_finish_omp_taskwait): Same.
2751 (c_finish_omp_atomic): Same.
2752 (c_finish_omp_flush): Same.
2753 * tree-inline.c (copy_tree_body_r): Pass location on down.
2754 (inline_forbidden_p): Remove use of input_location.
2755 * c-gimplify.c (c_build_bind_expr): New argument.
2756 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
2757 (c_sizeof_or_alignof_type): New argument.
2758 (c_alignof_expr): Same.
2759 (build_va_arg): Same.
2760 (c_add_case_label): Same.
2761 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
2762 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
2763 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
2764 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
2765 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
2766 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
2768 * stub-objc.c (objc_build_selector_expr): Same.
2769 (objc_build_throw_stmt): Same.
2770 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
2771 (c_parser_initelt): Same.
2772 (c_parser_compound_statement): Same.
2773 (c_parser_compound_statement_nostart): Same.
2774 (c_parser_label): Same.
2775 (c_parser_statement_after_labels): Same.
2776 (c_parser_if_body): Same.
2777 (c_parser_else_body): Same.
2778 (c_parser_if_statement): Same.
2779 (c_parser_switch_statement): Same.
2780 (c_parser_while_statement): Same.
2781 (c_parser_do_statement): Same.
2782 (c_parser_for_statement): Same.
2783 (c_parser_asm_statement): Same.
2784 (c_parser_conditional_expression): Same.
2785 (c_parser_binary_expression): Same.
2786 (c_parser_cast_expression): Same.
2787 (c_parser_unary_expression): Same.
2788 (c_parser_sizeof_expression): Same.
2789 (c_parser_alignof_expression): Same.
2790 (c_parser_postfix_expression): Same.
2791 (c_parser_expression): Same.
2792 (c_parser_objc_receiver): Same.
2793 (c_parser_omp_variable_list): Same.
2794 (c_parser_omp_structured_block): Same.
2795 (c_parser_omp_atomic): New argument.
2796 (c_parser_omp_barrier): Same.
2797 (c_parser_omp_critical): Same.
2798 (c_parser_omp_flush): Pass location on down.
2799 (c_parser_omp_for_loop): New argument.
2800 (c_parser_omp_for): Same.
2801 (c_parser_omp_master): Same.
2802 (c_parser_omp_ordered): Same.
2803 (c_parser_omp_sections_scope): Same.
2804 (c_parser_omp_sections): Same.
2805 (c_parser_omp_parallel): Same.
2806 (c_parser_omp_single): Same.
2807 (c_parser_omp_task): Same.
2808 (c_parser_omp_taskwait): Pass location on down.
2809 (c_parser_omp_construct): Same.
2810 (c_parser_omp_threadprivate): Same.
2811 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
2812 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
2813 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
2814 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
2815 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
2816 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
2817 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
2818 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
2819 config/i386/i386.c, stmt.c:
2820 Add location argument to the following function definitions and/or
2821 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
2822 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
2823 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
2824 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
2825 do_case, c_finish_bc_stmt, build_compound_literal,
2826 build_function_call.
2827 * c-decl.c (build_compound_literal): Add location argument.
2828 Make all diagnostic calls use location.
2829 (start_struct): Same.
2830 (finish_struct): Same.
2832 (build_enumerator): Same.
2833 (start_function): Same.
2834 (grokdeclarator): Make all diagnostic calls use location.
2835 (store_parm_decls_oldstyle): Same.
2836 * c-typeck.c (build_function_call): Add location argument.
2837 Make all diagnostic calls use location.
2839 (c_finish_bc_stmt): Same.
2840 * tree-nested.c (get_trampoline_type): Add argument.
2841 Pass location to build_decl.
2842 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
2843 * rtl.h (RTL_LOCATION): New.
2844 * c-common.c (c_add_case_label): Add location argument.
2845 Make all diagnostic calls use location.
2846 * c-common.h: Add location argument to make_fname_decl, do_case,
2847 c_add_case_label, build_function_call, resolve_overloaded_builtin.
2848 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
2849 Set it appropriately for every case. Pass enum_loc to start_enum
2850 call. Pass value_loc first to build_enumerator. Pass enum_loc to
2852 (c_parser_struct_or_union_specifier): Save location. Use it for
2853 start_struct, finish_struct, and parser_xref_tag.
2855 2009-06-12 Ian Lance Taylor <iant@google.com>
2857 * fold-const.c (fold_unary): Rename local variable and to and_expr.
2859 * c-opts.c (c_common_handle_option): For -Wc++-compat set
2860 cpp_opts->warn_cxx_operator_names.
2862 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
2865 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
2866 is returns NULL and OP is a VCE, look through the VCE.
2868 2009-06-12 Ian Lance Taylor <iant@google.com>
2871 * collect2.c (main): Use CONST_CAST2 in code inside #if
2872 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
2874 2009-06-12 Joey Ye <joey.ye@intel.com>
2877 * cfgexpand.c (get_decl_align_unit): Update
2878 max_used_stack_slot_alignment with align instead of
2879 stack_alignment_needed.
2881 * function.c (assign_stack_local_1): Update
2882 max_used_stack_slot_alignment with alignment_in_bits instead
2883 of stack_alignment_needed.
2884 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
2887 2009-06-12 Jakub Jelinek <jakub@redhat.com>
2889 * dwarf2out.c (last_var_location_insn): New variable.
2890 (dwarf2out_end_epilogue): Clear last_var_location_insn.
2891 (dwarf2out_var_location): Don't record anything after last real
2892 insn. Only change labels if there were any real instructions
2893 in between last note and this one, or if changed sections.
2895 2009-06-11 Richard Henderson <rth@redhat.com>
2897 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
2898 note when storing the frame pointer in a register.
2899 (FRP): Don't redefine to nothing for epilogue.
2900 (alpha_expand_epilogue): Mark register and sp restores.
2901 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
2903 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
2904 when gen_lowpart is needed.
2906 2009-06-11 Richard Henderson <rth@redhat.com>
2908 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
2910 * dwarf2out.c (need_data_align_sf_opcode): New.
2911 (div_data_align): Move earlier.
2912 (def_cfa_1, reg_save): Use it.
2914 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
2916 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
2917 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
2918 (ix86_handle_option): Handle OPT_mcrc32.
2919 (ix86_target_string): Add -mcrc32.
2920 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
2922 * config/i386/i386.h (TARGET_CRC32): New.
2924 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
2925 (sse4_2_crc32di): Likewise.
2927 * config/i386/i386.opt (mcrc32): New.
2929 * doc/invoke.texi: Document -mcrc32.
2931 2009-06-11 Richard Henderson <rth@redhat.com>
2933 * common.opt (gdwarf-): Accept a version number.
2934 * doc/invoke.texi (gdwarf-): Update docs.
2935 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
2936 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
2937 version level, and record it.
2939 * dwarf2.h (DW_CIE_VERSION): Remove.
2940 * dwarf2out.c (DWARF_VERSION): Remove.
2941 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
2942 (output_call_frame_info): Use CIE version 3 for dwarf3,
2943 or if the return register column is out of range for version 1.
2944 (dwarf_stack_op_name): Add all dwarf3 values.
2945 (DEBUG_PUBTYPES_SECTION): New.
2946 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
2947 encoding change for dwarf3.
2948 (output_die) [dw_val_class_die_ref]: Likewise.
2949 (output_compilation_unit_header): Emit correct version for dwarf3.
2950 (output_line_info): Likewise.
2951 (output_pubnames): Update for DWARF_VERSION removal.
2952 (output_aranges): Likewise.
2953 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
2954 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
2955 (dwarf2out_finish): Likewise.
2957 2009-06-11 David Daney <ddaney@caviumnetworks.com>
2959 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
2962 2009-06-11 David Daney <ddaney@caviumnetworks.com>
2965 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
2966 * builtins.c (expand_builtin_unreachable): New function.
2967 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
2968 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
2969 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
2971 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
2972 searching for missing barriers.
2974 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2976 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
2977 when -fprofile-generate* was passed.
2978 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
2980 2009-06-11 Anthony Green <green@moxielogic.com>
2982 * config/moxie/moxie.md: Define length attribute for all instructions.
2984 (*b<cond:code>): Support limited branch ranges for new PC-relative
2985 branch instructions.
2986 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
2988 2009-06-11 Jakub Jelinek <jakub@redhat.com>
2990 * config/i386/i386.c (min_insn_size): Use get_attr_length
2991 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
2994 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
2995 instead of emit_insn_before.
2997 2009-06-10 Ian Lance Taylor <iant@google.com>
3000 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
3003 2009-06-10 Revital Eres <eres@il.ibm.com>
3005 * passes.c (init_optimization_passes): Reschedule
3006 predictive-commoning pass before complete unroll pass.
3008 2009-06-10 Martin Jambor <mjambor@suse.cz>
3010 * cgraph.c (cgraph_node_can_be_local_p): New function.
3011 (cgraph_make_node_local): New function.
3012 * cgraph.h (cgraph_node_can_be_local_p): Declare.
3013 (cgraph_make_node_local): Declare.
3015 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
3017 * tree.h (tree_base): Add packed_flag and user_align fields.
3018 Decrease size of spare field.
3019 (TYPE_USER_ALIGN): Use user_align from tree_base.
3020 (DECL_USER_ALIGN): Likewise.
3021 (TYPE_PACKED): Use packed_flag from tree_base.
3022 (DECL_PACKED): Likewise.
3023 (tree_type): Delete packed_flag and user_align fields. Widen
3024 precision field. Widen mode field and shuffle fields to align
3025 mode on an 8-bit boundary.
3026 (tree_decl_common): Delete decl_flag_1 and user_align fields.
3027 Renumber decl_flag_* fields. Fix comments. Widen
3028 decl_common_unused field.
3029 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
3030 (DECL_EXTERNAL): Likewise.
3031 (DECL_BIT_FIELD): Likewise.
3032 (DECL_NONADDRESSABLE_P): Likewise.
3033 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
3034 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
3036 2009-06-10 Ian Lance Taylor <iant@google.com>
3038 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
3039 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
3040 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
3041 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
3042 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
3043 DEF_VEC_ALLOC_FUNC_P.
3044 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
3045 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
3046 DEF_VEC_ALLOC_FUNC_O.
3047 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
3048 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
3049 DEF_VEC_ALLOC_FUNC_I.
3050 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
3051 (vec_stack_p_reserve_exact_1): Declare.
3052 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
3053 (vec_stack_free): Declare.
3054 (VEC_stack_alloc): Define.
3055 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
3056 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
3057 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
3058 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
3060 (stack_vecs): New static variable.
3061 (vec_stack_p_reserve_exact_1): New function.
3062 (vec_stack_o_reserve_1): New static function.
3063 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
3064 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
3065 (vec_stack_free): New function.
3066 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
3067 (VEC_df_ref_stack_alloc): Define.
3068 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
3069 DEF_VEC_ALLOC_P_STACK.
3070 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
3071 (struct df_collection_rec): Change _vec fields to VEC. Remove
3073 (df_free_collection_rec): Adjust for new fields.
3074 (df_insn_rescan): Use new df_collection_rec fields.
3075 (df_notes_rescan, df_canonize_collection_rec): Likewise.
3076 (df_ref_create_structure, df_ref_record): Likewise.
3077 (df_get_conditional_uses, df_get_call_refs): Likewise.
3078 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
3079 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
3080 (df_record_exit_block_uses, df_bb_verify): Likewise.
3081 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
3082 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
3083 Remove count parameter. Change return type to void. Change all
3085 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
3086 Remove count parameter. Change return type to void. Change all
3088 (df_install_refs): Change old_vec parameter to VEC. Remove count
3089 parameter. Change all callers.
3090 (df_install_mws): Change old_vec parameter to VEC. Remove count
3091 parameter. Change all callers.
3092 (df_refs_verify): Change new_rec parameter to VEC. Change call
3094 (df_mws_verify): Likewise.
3096 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
3098 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
3100 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
3102 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
3104 2009-06-10 Anthony Green <green@moxielogic.com>
3106 * config/moxie/crti.asm: New file.
3107 * config/moxie/crtn.asm: New file.
3108 * config/moxie/moxie.c: New file.
3109 * config/moxie/moxie.h: New file.
3110 * config/moxie/sfp-machine.h: New file.
3111 * config/moxie/moxie-protos.h: New file.
3112 * config/moxie/t-moxie: Created.
3113 * config/moxie/t-moxie-softfp: Created.
3114 * config/moxie/moxie.md: Created.
3115 * config/moxie/constraints.md: Created.
3116 * config.gcc: Add moxie support.
3117 * doc/md.texi (Machine Constraints): Add moxie constraints.
3118 * doc/contrib.texi (Contributors): Mention moxie port.
3119 * doc/install.texi (Specific): Mention the moxie port.
3121 2009-06-09 Ian Lance Taylor <iant@google.com>
3123 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
3125 * optabs.c (optab_table): Only use designated initializers if
3126 HAVE_DESIGNATED_INITIALIZERS is defined.
3127 (convert_optab_table): Likewise.
3128 (init_optabs): Always call init_insn_codes if
3129 HAVE_DESIGNATED_INITIALIZERS is not defined.
3131 2009-06-09 Ian Lance Taylor <iant@google.com>
3133 * targhooks.c (default_builtin_vectorized_function): Change fn
3134 parameter to unsigned int.
3135 (default_builtin_vectorized_conversion): Change code parameter to
3137 (default_builtin_reciprocal): Change fn parameter to unsigned int.
3138 * targhooks.h: Update declarations.
3139 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
3140 parameter to unsigned int.
3142 * c-typeck.c (comptypes_check_enum_int): New static function.
3143 (comptypes_internal): Add enum_and_int_p parameter. Change all
3145 (comp_target_types): Add location parameter. Change all callers.
3146 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
3148 (function_types_compatible_p, type_lists_compatible_p): Likewise.
3149 (build_conditional_expr): Add colon_loc parameter. Change all
3151 (convert_for_assignment): Add location parameter. Change all callers.
3152 * c-parser.c (c_parser_conditional_expression): Pass location of
3153 colon to build_conditional_expr.
3154 * c-tree.h (build_conditional_expr): Update declaration.
3156 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
3158 * graphite.c: Revert previous patch.
3160 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
3163 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
3165 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
3167 * tree-ssa-loop-prefetch.c
3168 (loop_prefetch_arrays): Fixed a portability problem in printf format
3171 2009-06-09 Martin Jambor <mjambor@suse.cz>
3173 PR tree-optimization/40351
3174 * tree-sra.c (propagate_subacesses_accross_link): Check that a
3175 refrence to a potential artifical subaccess can be constructed.
3177 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3179 * config/sh/sh-protos.h (sh_optimization_options): Declare.
3180 (sh_override_options): Likewise.
3181 * config/sh/sh.c: Include params.h.
3182 (sh_optimization_options): New.
3183 (sh_override_options): Likewise.
3184 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
3185 (OVERRIDE_OPTIONS): Use sh_override_options.
3187 2009-06-08 Jakub Jelinek <jakub@redhat.com>
3189 * dwarf2out.c (emit_cfa_remember): New variable.
3190 (add_fde_cfi): If emit_cfa_remember, recurse to add
3191 DW_CFA_remember_state first.
3192 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
3193 instead just set emit_cfa_remember.
3195 2009-06-08 Jan Hubicka <jh@suse.cz>
3198 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
3200 2009-06-08 Jan Hubicka <jh@suse.cz>
3203 * cgraphunit.c (save_inline_function_body): Do not copy transform
3204 hooks for saved inline bodies.
3205 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
3208 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
3210 * jump.c (returnjump_p): Handle delayed branches. Add missing
3213 2009-06-08 Jan Hubicka <jh@suse.cz>
3216 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
3217 original node might've been modified.
3218 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
3220 2009-06-08 Jakub Jelinek <jakub@redhat.com>
3222 * tree-object-size.c (addr_object_size): Add OSI argument.
3223 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
3224 (compute_builtin_object_size, expr_object_size): Adjust callers.
3225 (plus_stmt_object_size): Call addr_object_size instead of
3226 compute_builtin_object_size.
3228 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
3229 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3231 * tree-ssa-loop-prefetch.c
3232 (gather_memory_references): Introduced a counter for the number of
3234 (anything_to_prefetch_p): Introduced a counter for the number of
3236 (is_loop_prefetching_profitable): New function with a cost model
3238 (loop_prefetch_arrays): Use the new cost model to determine if
3239 prefetching is profitable.
3240 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
3241 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
3242 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
3243 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
3244 * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO,
3245 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
3247 2009-06-08 Michael Matz <matz@suse.de>
3250 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
3251 partitions use the same.
3252 (expand_one_var): Deal with DECL_RTL sometimes begin set also
3253 for basevars of SSA_NAMEs.
3254 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
3255 to not expand them twice.
3256 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
3259 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
3261 * common.opt (fcompare-debug=, fcompare-debug-second): New.
3262 (fdump-final-insns=, gtoggle): New.
3263 * doc/invoke.texi: Document them.
3264 * final.c (rest_of_clean_state): Dump final insn stream.
3265 * gcc.c (invoke_as): Hook in -fcompare-debug.
3266 (static_spec_functions): Add compare-debug-dump-opt,
3267 compare-debug-self-opt and compare-debug-auxbase-opt.
3268 (compare_debug, compare_debug_second, compare_debug_opt): New.
3269 (switches_debug_check, n_switches_debug_check): New.
3270 (debug_auxbase_opt, debug_check_temp_file): New.
3271 (process_command): Handle -fno-compare-debug, -fcompare-debug and
3273 (do_self_spec): Handle arguments after switches.
3274 (do_spec_1): Add .gk extension to temp file basenames for compare.
3275 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
3276 (cc1_options): Use it instead of normal auxbase computation for
3277 the second compare-debug compilation.
3278 (compare_files): New.
3279 (main): Set up and implement compare debug mode.
3280 (compare_debug_dump_opt_spec_function): New.
3281 (compare_debug_self_opt_spec_function): New.
3282 (compare_debug_auxbase_opt_spec_function): New.
3283 * toplev.c (process_options): Handle flag_gtoggle,
3284 flag_dump_final_insns.
3285 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
3286 during -fcompare-debug-second compilation.
3288 2009-06-07 Ian Lance Taylor <iant@google.com>
3290 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
3291 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
3293 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
3294 with no default node. Change warning with %H to warning_at.
3295 Don't clear warn_switch around case checking.
3296 * doc/invoke.texi (Warning Options): Clarify distinction between
3297 -Wswitch and -Wswitch-enum.
3299 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3301 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
3303 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3305 * gbl-ctors.h: Add header guard.
3307 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3309 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
3310 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
3311 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
3312 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
3313 prototypes for removed functions.
3314 (expressions_equal_p): Move to ...
3315 * tree-ssa-sccvn.h: ... here and ...
3316 * matrix-reorg.c: ... adjust includes.
3318 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3320 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
3322 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3324 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
3325 (finish_function): Remove erroneous whitespace.
3327 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3329 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
3330 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
3332 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3334 * errors.c (internal_error): Commentary typo fix.
3335 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
3336 * tree-ssa-pre.c: Ditto.
3338 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3340 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
3341 them is supposed to hold actual statements.
3343 2009-06-06 Ian Lance Taylor <iant@google.com>
3345 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
3346 empty statements can now have attributes.
3348 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
3350 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
3351 * config/mips/mips.md: Ditto.
3353 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
3355 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
3357 (__eabi_uconvert): Likewise.
3359 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
3361 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
3362 CFI_* definitions with IN_GCC.
3364 2009-06-05 David Edelsohn <edelsohn@gnu.org>
3366 * xcoffout.h (xcoffout_source_line): Update prototype.
3368 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3370 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
3371 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
3373 2009-06-05 Jakub Jelinek <jakub@redhat.com>
3376 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3377 inlined_function_outer_scope_p blocks for artificial inlines
3379 * tree.c (tree_nonartificial_location): Rewrite using
3380 block_nonartificial_location.
3382 2009-06-05 Revital Eres <eres@il.ibm.com>
3383 Leehod Baruch <leehod@il.ibm.com>
3385 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
3386 (expand_expr_real_1): Remove comment.
3387 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3388 Vectorize misaligned access when the target supports it.
3389 (vect_supportable_dr_alignment): Check for unaligned access support.
3390 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
3393 2009-06-05 Julian Brown <julian@codesourcery.com>
3395 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
3396 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
3398 2009-06-05 Richard Guenther <rguenther@suse.de>
3401 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
3404 2009-06-05 Jakub Jelinek <jakub@redhat.com>
3406 * config/s390/s390.c (global_not_special_regno_p): New static inline.
3407 (save_gprs): Don't tell unwinder when a global register is saved.
3408 (s390_emit_epilogue): Emit needed epilogue unwind info.
3410 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
3412 * dwarf2out.c (deferred_asm_name): New.
3413 (add_name_and_src_coords_attributes): Defer creation of
3414 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
3416 (move_linkage_attr): New.
3417 (dwarf2out_finish): Revisit deferrals and emit attributes at the
3420 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
3422 * tree-nested.c (finalize_nesting_tree_1): Declare the
3423 frame_decl in the binding tree.
3425 2009-06-04 Cary Coutant <ccoutant@google.com>
3427 * basic-block.h (struct basic_block_def): Add discriminator field.
3428 * dbxout.c (dbxout_source_line): Add new parameter. Change all
3430 * debug.c (do_nothing_debug_hooks): Add additional entry.
3431 (debug_nothing_int_charstar_int): New function.
3432 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
3433 (debug_nothing_int_charstar_int): New declaration.
3434 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
3435 discriminator value in .loc directive.
3436 * final.c (last_discriminator): New variable.
3437 (discriminator): New variable.
3438 (final_start_function): Initialize above variables, pass current
3439 discriminator to debug hook.
3440 (notice_source_line): Check for discriminator change.
3441 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
3442 * sdbout.c (sdbout_source_line): New parameter.
3443 * tree-cfg.c (struct locus_discrim_map): New structure type.
3444 (discriminator_per_locus): New hash table.
3445 (build_gimple_cfg): Allocate and free discriminator hash table.
3446 (make_edges): Call assign_discriminator.
3447 (locus_map_hash): New function.
3448 (locus_map_eq): New function.
3449 (next_discriminator_for_locus): New function.
3450 (same_line_p): New function.
3451 (assign_discriminator): New function.
3452 (make_cond_expr_edges): Call assign_discriminator.
3453 (make_gimple_switch_edges): Likewise.
3454 (first_non_label_stmt): New function.
3455 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
3457 * xcoffout.c (xcoffout_source_line): Add new parameter.
3459 * configure.ac (gcc_cv_as_discriminator): New configury check for
3460 gas support for discriminator.
3461 * configure: Regenerate.
3462 * config.in: Regenerate.
3464 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3466 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
3467 val after checking for integers.
3469 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
3471 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
3473 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
3474 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
3475 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
3476 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
3477 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
3478 X64_SSE_REGPARM_MAX.
3479 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
3480 X64_SSE_REGPARM_MAX.
3482 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
3484 * gcc.c (report_times_to_file): New.
3485 (execute): Implement it.
3486 (process_command): Support -time=.
3487 * doc/invoke.texi: Document it.
3489 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
3491 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
3492 that have value exprs.
3494 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
3496 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
3497 declarations for constants until...
3498 (dw2_output_indirect_constant_1): ... this point.
3500 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
3503 * arm.md (arm_addsi3): Don't try to split an add with an
3504 eliminable register until after reload has completed.
3506 2009-06-03 Ian Lance Taylor <iant@google.com>
3508 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
3509 * genattrtab.c (write_length_unit_log): Likewise.
3510 * genchecksum.c (dosum): Likewise.
3511 * gengtype.c (write_rtx_next): Likewise.
3512 (finish_root_table, write_roots): Likewise.
3513 * gimple.c (gimple_ops_offset_): Likewise.
3514 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
3515 * config/arc/arc.c (arc_attribute_table): Likewise.
3516 * config/arm/arm.c (arm_attribute_table): Likewise.
3517 * config/avr/avr.c (avr_attribute_table): Likewise.
3518 * config/crx/crx.c (crx_attribute_table): Likewise.
3519 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
3520 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
3521 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
3522 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
3523 * config/sh/sh.c (sh_attribute_table): Likewise.
3524 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
3525 * config/spu/spu.c (spu_attribute_table): Likewise.
3526 * config/v850/v850.c (v850_attribute_table): Likewise.
3528 * config/alpha/alpha.c (vms_attribute_table): Make static.
3529 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
3530 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
3531 * config/mips/mips.c (mips_attribute_table): Likewise.
3533 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
3535 (cc1-checksum.o): Likewise.
3537 2009-06-03 Steve Ellcey <sje@cup.hp.com>
3539 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
3541 2009-06-03 Jakub Jelinek <jakub@redhat.com>
3543 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
3544 insn if it is changing sp. Use gen_add3_insn instead of
3545 conditionally gen_addsi3 and gen_adddi3.
3546 (offset_below_red_zone_p): New static inline function.
3547 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
3548 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
3549 * config/rs6000/ppc-asm.h: Include auto-host.h.
3550 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
3551 CFI_RESTORE): Define.
3552 * config/rs6000/crtresxgpr.asm: Add unwind info.
3553 * config/rs6000/crtresxfpr.asm: Likewise.
3554 * config/rs6000/crtresgpr.asm: Likewise.
3555 * config/rs6000/crtresfpr.asm: Likewise.
3556 * config/rs6000/crtsavgpr.asm: Likewise.
3557 * config/rs6000/crtsavfpr.asm: Likewise.
3559 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
3560 argument of DWARF2_FRAME_REG_OUT macros.
3562 2009-06-03 Julian Brown <julian@codesourcery.com>
3564 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
3565 words or less (including TImode) in core registers.
3567 2009-06-03 Richard Guenther <rguenther@suse.de>
3570 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
3572 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
3574 * statistics.c (statistics_counter_event): Do not record event
3575 in pass dump if its number == -1.
3576 (curr_statistics_hash): Add assert that we never get passes
3577 with static number == -1.
3579 2009-06-03 Richard Guenther <rguenther@suse.de>
3580 Andrey Belevantsev <abel@ispras.ru>
3582 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
3583 non-BLKmode arrays addressable.
3585 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
3587 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
3588 * config/m68k/m68k.h: ... here.
3589 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
3592 2009-06-03 Martin Jambor <mjambor@suse.cz>
3594 PR tree-optimization/40323
3595 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
3598 2009-06-03 Richard Guenther <rguenther@suse.de>
3600 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
3603 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
3605 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
3606 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
3607 JUMP_TABLE_DATA_P where applicable.
3608 * config/sh/sh.c: Ditto.
3609 * config/sh/sh.h: Ditto.
3610 * config/sh/sh.md: Ditto.
3611 * config/sh/symbian.c: Ditto.
3613 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
3615 * config/i386/driver-i386.c (describe_cache): Optimize
3616 concatenation of strings. Use snprintf instead of sprintf.
3617 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
3618 target when not compiling with GCC.
3620 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3622 * config/sh/sh.c: Revert last change.
3623 (sh_expand_epilogue): Emit a blockage insn before the frame
3624 pointer adjustment unconditionally.
3626 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3628 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
3629 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
3630 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
3631 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
3632 to COLLECT_GCC_OPTIONS.
3634 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3636 * collect2.c (target_system_root): New variable.
3637 (main): Handle --sysroot=.
3638 (ignore_library): Strip the sysroot from the library path.
3640 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3642 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
3643 (collect2.o): Depend on collect2-aix.h.
3644 (collect2-aix.o): New rule.
3645 * collect2-aix.h: New file.
3646 * collect2-aix.c: Likewise.
3647 * collect2.c: Include collect2-aix.h. Don't undefine
3648 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
3649 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
3650 Use TARGET_AIX_VERSION instead of _AIX51.
3651 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
3652 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
3653 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
3654 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
3655 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
3657 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3659 * collect2.c (ignore_library): Avoid premature post-increment
3662 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3664 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
3665 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
3666 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
3667 CROSS_DIRECTORY_STRUCTURE too.
3668 (LINK_LIBG_SPEC): Likewise.
3669 (LIB_SPEC): Add %R to sysroot paths.
3670 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
3671 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
3672 * config/rs6000/aix51.h: As for aix43.h.
3673 * config/rs6000/aix52.h: Likewise.
3674 * config/rs6000/aix53.h: Likewise.
3675 * config/rs6000/aix61.h: Likewise.
3676 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
3677 to the beginning of sysroot paths.
3679 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3681 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
3682 INSN_LISTs that are out of the REG_NOTE range.
3684 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3686 * loop-unroll.c (struct iv_to_split): Add pointer to next.
3687 (struct var_to_expand): Likewise.
3688 (struct opt_info): Add head and tail for linked lists of the above.
3689 (analyze_insn_to_expand_var): Initialize next.
3690 (analyze_iv_to_split_insn): Likewise.
3691 (analyze_insns_in_loop): Create linked lists.
3692 (allocate_basic_variable): Simplify for use without hash table.
3693 (insert_var_expansion_initialization): Likewise, make it type-safer.
3694 (combine_var_copies_in_loop_exit): Likewise.
3695 (apply_opt_in_copies): Walk lists rather than hash tables.
3696 (release_var_copies): Simplified and inlined by hand into...
3697 (free_opt_info): ... this function.
3699 2009-06-02 Richard Guenther <rguenther@suse.de>
3701 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
3704 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3706 * cfgexpand.c (gimple_expand_cfg): Discard the source location
3707 only for builtins that are not overridden.
3709 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3711 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
3714 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3716 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
3718 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3720 * combine.c (move_deaths): Compare LUIDs within the same BB only.
3722 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3724 * common.opt (fdump-unnumbered-links): New.
3725 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
3726 * print-rtl.c (flag_dump_unnumbered_links): New.
3727 (print_rtx): Test it.
3729 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
3731 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
3732 push/pop multiple to 8-byte alignment.
3734 2009-06-01 Jakub Jelinek <jakub@redhat.com>
3736 * config/i386/i386.c (queued_cfa_restores): New static variable.
3737 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
3739 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
3740 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
3741 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
3742 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
3743 note unconditionally.
3744 (ix86_emit_restore_regs_using_mov): Likewise.
3745 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3746 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
3747 it through to ix86_emit_restore_reg_using_pop.
3748 (ix86_emit_leave): Add RED_OFFSET argument. Call
3749 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
3750 instead of adding REG_CFA_OFFSET note unconditionally.
3751 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
3752 the above functions. Call ix86_add_queued_cfa_restore_notes when
3755 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
3756 force output of the label even for dwarf2out_do_cfi_asm.
3757 (add_fde_cfi): If -g2 and above and cfi might change CFA,
3758 force creation of CFI label and chain DW_CFA_set_loc jumping to it
3759 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
3761 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
3762 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
3763 dwarf2out_cfi_label callers.
3764 * tree.h (dwarf2out_cfi_label): Adjust prototype.
3765 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
3766 Adjust dwarf2out_cfi_label callers.
3767 * config/vax/vax.c (vax_output_function_prologue): Likewise.
3769 * config/i386/i386.h (struct machine_cfa_state,
3770 struct machine_function): Guard with ifndef USED_FOR_TARGET
3771 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
3774 * emutls.c (__emutls_get_address): Change arr->size to mean number
3775 of allocated arr->data entries instead of # of slots + 1.
3778 * recog.c (peep2_reinit_state): New function.
3779 (peephole2_init_state): Use it at the end of a basic block and also
3780 when seeing a RTX_FRAME_RELATED_P insn.
3782 2009-06-01 Steve Ellcey <sje@cup.hp.com>
3784 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
3785 fixuns_truncrfdi2): New.
3786 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
3787 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
3788 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
3789 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
3790 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
3791 *recip_approx): Remove.
3792 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
3793 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
3794 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
3796 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
3799 2009-06-01 Ian Lance Taylor <iant@google.com>
3801 * attribs.c (register_attribute): Use CONST_CAST.
3802 * collect2.c (main): Use CONST_CAST2.
3803 (scan_prog_file): Likewise.
3804 * gcc.c (process_command, main): Likewise.
3805 * toplev.c (toplev_main): Likewise.
3807 * c-typeck.c (handle_warn_cast_qual): New static function,
3808 partially broken out of build_c_cast.
3809 (build_c_cast): Call handle_warn_cast_qual.
3810 * doc/invoke.texi (Warning Options): Document new effect of
3813 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
3815 * diagnostic.c (diagnostic_build_prefix): Always print columns.
3816 (diagnostic_report_current_module): Print columns.
3817 * common.opt (flag_show_column): Enable by default.
3819 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
3821 * alias.c (find_base_term): Check for NULL term before returning.
3823 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3825 Revert due to PR40320:
3826 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3827 * calls.c (emit_library_call_value_1): Don't force_operand for move
3830 2009-06-01 Olivier Hainque <hainque@adacore.com>
3831 Eric Botcazou <ebotcazou@adacore.com>
3833 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
3834 to be processed as a bitfield for constructor output purposes.
3835 * output.h (initializer_constant_valid_for_bitfield_p): Declare
3837 * varasm.c (oc_local_state): New type, output_constructor
3838 local state to support communication with helpers.
3839 (oc_outer_state): New type, output_constructor outer state of
3840 relevance in recursive calls.
3841 (output_constructor_array_range): New output_constructor helper,
3842 extracted code for an array range element.
3843 (output_constructor_regular_field): New output_constructor helper,
3844 extracted code for an element that is not a bitfield.
3845 (output_constructor_bitfield): New output_constructor helper,
3846 extracted code for a bitfield element. Accept an OUTER state
3847 argument for recursive processing. Recurse on record or array
3848 CONSTRUCTOR values, possibly past noop conversions.
3849 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
3850 VALUE is a valid constant-valued expression for use in a static
3851 bit-field initializer.
3852 (output_constructor): Rework to use helpers. Accept and honor an
3853 OUTER state argument for recursive calls. Return total size. Be
3854 prepared for nested constructors initializing bitfields.
3855 (output_constant): Feed OUTER in calls to output_constructor.
3857 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3859 * calls.c (emit_library_call_value_1): Don't force_operand for move
3862 2009-06-01 Nick Clifton <nickc@redhat.com>
3864 * doc/invoke.texi (IA-64 Options): Fix typo.
3866 2009-06-01 Ira Rosen <irar@il.ibm.com>
3868 PR tree-optimization/39129
3869 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
3871 (vect_do_peeling_for_loop_bound): Use
3872 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
3873 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
3874 (vect_loop_versioning): Likewise.
3875 (vect_create_cond_for_alias_checks): Fix indentation.
3876 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
3878 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
3879 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
3880 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
3881 "control flow in loop".
3882 (vect_estimate_min_profitable_iters): Use
3883 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
3884 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
3885 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
3886 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
3887 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
3888 statement belongs to a group of strided accesses with the exact code
3890 (vectorizable_load): Likewise.
3891 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
3892 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
3894 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
3896 * config/freebsd-stdint.h: New file.
3897 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
3898 Add freebsd-stdint.h to tm_file.
3900 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
3902 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
3903 (thumb2_extendhidi2): Likewise.
3905 2009-05-31 Ian Lance Taylor <iant@google.com>
3907 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
3909 2009-05-31 Ian Lance Taylor <iant@google.com>
3911 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
3912 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
3913 (ipa-reference.o): Depend upon gt-ipa-reference.h.
3915 2009-05-31 Jason Merrill <jason@redhat.com>
3917 * tree-pretty-print.c (print_call_name): Take the callee, not the
3918 call itself. Make non-static. Use dump_function_name for functions.
3919 (dump_generic_node): Adjust.
3920 * diagnostic.h: Declare print_call_name.
3921 * gimple-pretty-print.c (dump_gimple_call): Use it.
3923 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
3925 * config/sh/sh.md (ashldi3_std): New define_expand.
3928 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
3931 * config/sh/sh.c: Include debug.h.
3932 (sh_expand_epilogue): Emit a blockage insn before the frame
3933 pointer adjustment also when dwarf2out_do_frame returns true.
3935 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
3937 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
3938 (thumb2_extendqidi2): New pattern.
3940 2009-05-31 Ira Rosen <irar@il.ibm.com>
3942 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
3943 mark phis for renaming.
3944 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
3945 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
3946 Call mark_sym_for_renaming.
3947 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
3948 * tree-vect-loop.c (vect_transform_loop): Remove
3949 vect_memsyms_to_rename initialization and a call to
3950 mark_set_for_renaming.
3952 2009-05-31 Jakub Jelinek <jakub@redhat.com>
3955 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
3956 frame related even if !set_cfa && style < 0.
3958 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
3960 * config/i386/mingw-tls.c: New file.
3961 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
3962 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
3963 defining _WIN32 but not __CYGWIN__.
3965 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3967 * configure.ac: Add MPC support.
3969 * config.in, configure: Regenerate.
3971 2009-05-29 Richard Henderson <rth@redhat.com>
3973 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
3974 NOTE_INSN_BASIC_BLOCK.
3975 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
3976 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
3977 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
3979 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
3981 (add_cfi): Disable check redefining cfa away from drap.
3982 (lookup_cfa_1): Add remember argument; handle remember/restore.
3983 (lookup_cfa): Pass remember argument.
3984 (cfa_remember): New.
3985 (compute_barrier_args_size_1): Remove sibcall check.
3986 (dwarf2out_frame_debug_def_cfa): New.
3987 (dwarf2out_frame_debug_adjust_cfa): New.
3988 (dwarf2out_frame_debug_cfa_offset): New.
3989 (dwarf2out_frame_debug_cfa_register): New.
3990 (dwarf2out_frame_debug_cfa_restore): New.
3991 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
3992 (dwarf2out_begin_epilogue): New.
3993 (dwarf2out_frame_debug_restore_state): New.
3994 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
3995 DW_CFA_restore_state.
3996 (output_cfi_directive): Likewise.
3997 (convert_cfa_to_fb_loc_list): Likewise.
3998 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
3999 * dwarf2out.h: Update.
4000 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
4001 (copy_insn_1): Early out for null.
4002 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
4003 and dwarf2out_frame_debug_restore_state.
4004 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
4005 (prologue_insn_hash, epilogue_insn_hash): New.
4006 (free_after_compilation): Adjust freeing accordingly.
4007 (record_insns): Create hash table if needed; push insns into
4008 hash instead of array.
4009 (maybe_copy_epilogue_insn): New.
4010 (contains): Search hash table instead of array.
4011 (sibcall_epilogue_contains): Remove.
4012 (thread_prologue_and_epilogue_insns): Split eh_return insns
4013 and mark them as epilogues.
4014 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
4015 scanning in terms of basic blocks.
4016 * insn-notes.def (CFA_RESTORE_STATE): New.
4017 * jump.c (returnjump_p_1): Accept EH_RETURN.
4018 (eh_returnjump_p_1, eh_returnjump_p): New.
4019 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
4020 CFA_REGISTER, CFA_RESTORE): New.
4021 * rtl.def (EH_RETURN): New.
4022 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
4024 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
4025 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
4027 * config/i386/i386.c (gen_push): Update cfa state.
4028 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
4029 add a CFA_ADJUST_CFA note.
4030 (ix86_dwarf_handle_frame_unspec): Remove.
4031 (ix86_expand_prologue): Update cfa state.
4032 (ix86_emit_restore_reg_using_pop): New.
4033 (ix86_emit_restore_regs_using_pop): New.
4034 (ix86_emit_leave): New.
4035 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
4036 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
4037 * config/i386/i386.h (struct machine_cfa_state): New.
4038 (ix86_cfa_state): New.
4039 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
4040 (eh_return_internal): Merge from eh_return_<mode>,
4041 use eh_return rtx, split w/ epilogue.
4043 2009-05-29 Ian Lance Taylor <iant@google.com>
4045 * builtins.c (validate_gimple_arglist): Don't use va_arg with
4047 * calls.c (emit_library_call_value_1): Likewise.
4049 * c-typeck.c (c_build_va_arg): New function.
4050 * c-tree.h (c_build_va_arg): Declare.
4051 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
4052 instead of build_va_arg.
4054 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
4056 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
4057 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
4058 (ptr_difference_cost): Use affine combinations to compute it.
4059 (difference_cost): Likewise.
4060 (get_computation_cost_at): Compute more accurate cost for addresses
4061 if the ratio is a multiplier allowed in addresses.
4062 For non-addresses, consider that an additional offset or symbol is
4065 2009-05-29 Jakub Jelinek <jakub@redhat.com>
4067 * config/i386/i386.c (ix86_decompose_address): Avoid useless
4068 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
4070 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
4071 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
4072 (prefix_rex): For UNIT_MMX don't imply the prefix by default
4074 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
4075 to 1 for TYPE_SSE{IADD1,CVT1}.
4076 (prefix_vex_imm8): Removed.
4077 (length_vex): Only pass 1 as second argument to
4078 ix86_attr_length_vex_default if prefix_extra is 0.
4079 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
4080 (length): For prefix vex computation use length_immediate
4081 attribute instead of prefix_vex_imm8.
4082 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
4083 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
4084 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
4085 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
4086 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
4087 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
4088 a space in between the operands.
4089 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
4090 if one operand is 0xff and the other one si, di, bp or sp.
4091 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
4092 other one si, di, bp or sp.
4093 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
4094 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
4095 type and mode attributes.
4096 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
4097 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
4098 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
4099 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
4100 prefix_data16 attribute iff MODE_DF.
4101 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
4102 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
4103 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
4104 constm128_operand in length_immediate computation.
4105 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
4106 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
4107 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
4108 length_immediate attribute to 1.
4109 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
4110 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
4111 for certain alternatives.
4112 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
4113 prefix_data16 attribute if MODE_V1DF.
4114 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
4115 length_immediate to 1.
4116 (set_got_rex64, set_rip_rex64): Remove length attribute, set
4117 length_address to 4, set mode attribute to MODE_DI.
4118 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
4119 (fxam<mode>2_i387): Set length attribute to 4.
4120 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
4121 *prefetch_3dnow_rex): Override length_address attribute.
4122 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
4124 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
4125 (constm128_operand): Removed.
4126 * config/i386/i386.c (memory_address_length): For
4127 disp && !index && !base in 64-bit mode account for SIB byte if
4128 print_operand_address can't optimize disp32 into disp32(%rip)
4129 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
4130 for fs: or gs: segment.
4131 (ix86_attr_length_immediate_default): When checking if shortform
4132 is possible, truncate immediate to the length of the non-shortened
4134 (ix86_attr_length_address_default): Ignore MEM_P operands
4136 (ix86_attr_length_vex_default): Only check for DImode on
4137 GENERAL_REG_P operands.
4138 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
4139 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
4140 (sse_cvttps2pi): Clear prefix_rep attribute.
4141 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
4143 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
4144 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
4145 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
4146 iff operand 2 is const_int_operand.
4147 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
4148 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
4149 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
4151 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
4153 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
4154 prefix_data16 attribute for movlpd and movhpd instructions.
4155 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
4156 length_immediate for shufpd instruction.
4157 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
4158 (avx_cmpp<avxmodesuffixf2c><mode>3,
4159 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
4160 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
4161 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
4162 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
4163 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
4164 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
4165 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
4166 prefix_data16 attribute for the first alternative to 1.
4167 (*avx_loadlps): Override length_immediate for the first alternative.
4168 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
4169 attributes for second alternative.
4170 (*vec_concatv2sf_sse4_1): Override length_immediate and
4171 prefix_data16 attributes for second alternative.
4172 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
4173 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
4174 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
4175 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
4176 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
4177 prefix_data16 and length_immediate to 1.
4178 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
4180 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
4181 prefix_extra attribute for variants that don't have 0f prefix alone.
4182 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
4183 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
4184 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
4185 *sse4_1_pextrd): Set length_immediate to 1.
4186 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
4187 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
4189 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
4190 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
4191 length_immediate to 1 for second alternative.
4192 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
4193 prefix_extra and length_immediate attributes for the first
4195 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
4197 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
4198 to 1 for the first and third alternative.
4199 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
4201 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
4203 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
4205 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
4206 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
4207 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
4208 *avx_psign<mode>3): Set prefix_extra attribute to 1.
4209 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
4210 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
4211 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
4212 ssse3_psign<mode>3): Override prefix_rex attribute.
4213 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
4214 (ssse3_palignrti): Override length_immediate to 1.
4215 (ssse3_palignrdi): Override length_immediate to 1, override
4216 prefix_rex attribute.
4217 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
4218 (sse4a_extrqi): Override length_immediate to 2.
4219 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
4220 (sse4a_insertq): Override prefix_data16 to 0.
4221 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
4222 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
4223 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
4224 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
4225 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
4226 and length_immediate to 1.
4227 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
4228 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
4229 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
4230 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
4231 and length_immediate to 1.
4232 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
4233 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
4234 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
4235 avx_ptest256): Override prefix_extra to 1.
4236 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
4237 Override prefix_data16 and length_immediate to 1.
4238 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
4239 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
4240 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
4241 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
4242 prefix_data16 to 0 and prefix_extra to 2.
4243 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
4244 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
4246 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
4247 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
4248 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
4249 and prefix_extra to 2.
4250 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
4251 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
4252 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
4253 avx_vpermilvar<mode>3,
4254 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
4255 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
4256 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
4257 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
4258 Override prefix_extra to 1.
4259 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
4260 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
4261 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
4262 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
4263 prefix_extra and length_immediate to 1.
4264 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
4266 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
4267 to 1 for the first alternative.
4268 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
4269 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
4271 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
4272 *movv2sf_internal_avx, *movv2sf_internal): Override
4273 prefix_rep attribute for certain alternatives.
4274 (*mov<mode>_internal): Override prefix_rep or prefix_data16
4275 attributes for certain alternatives.
4276 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
4277 attributes for certain alternatives.
4278 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
4279 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
4280 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
4281 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
4282 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
4283 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
4284 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
4285 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
4286 length_immediate to 1 if operand 2 is const_int_operand.
4287 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
4288 *vec_extractv2si_1): Set length_immediate attribute to 1.
4289 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
4290 using old 3DNOW insn rather than SSE/3DNOW_A.
4291 (mmx_emms, mmx_femms): Clear modrm attribute.
4293 2009-05-29 Martin Jambor <mjambor@suse.cz>
4295 * tree-sra.c: New implementation of SRA.
4297 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
4298 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
4299 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
4300 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
4301 (SRA_MAX_STRUCTURE_COUNT): Removed.
4302 (SRA_FIELD_STRUCTURE_RATIO): Removed.
4303 * doc/invoke.texi (sra-max-structure-size): Removed.
4304 (sra-field-structure-ratio): Removed.
4306 2009-05-29 Jakub Jelinek <jakub@redhat.com>
4309 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
4312 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
4314 PR rtl-optimization/40101
4315 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
4316 seqno. Adjust comment.
4317 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
4318 inserting bookkeeping before a jump, the jump is not scheduled.
4319 When no positive seqno found, provide a value. Add comment.
4321 2009-05-29 Richard Guenther <rguenther@suse.de>
4323 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
4324 short-cutting on the first component.
4326 2009-05-29 Jakub Jelinek <jakub@redhat.com>
4329 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
4330 for trees other than decls/types.
4332 2009-05-29 Richard Guenther <rguenther@suse.de>
4334 * tree-ssa-operands.c (get_expr_operands): Do not handle
4335 INDIRECT_REFs in the handled-component case. Remove
4336 unused get_ref_base_and_extent case.
4337 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
4338 tree_low_cst and host_integerp where possible.
4339 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
4340 codes for equivalence.
4341 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
4343 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
4345 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
4346 to tmake_file for i[34567]86-*-cygwin*.
4348 2009-05-29 Jakub Jelinek <jakub@redhat.com>
4351 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
4352 (altivec_categorize_keyword, init_vector_keywords,
4353 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
4356 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
4358 * tree.c (handle_dll_attribute): Check if node is
4359 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
4361 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
4363 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
4365 (thumb2_zero_extendqidi2): Likewise.
4367 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
4369 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
4370 instead of gen_movrt.
4371 * config/sh/sh.md (movrt): Remove.
4373 2009-05-28 Steve Ellcey <sje@cup.hp.com>
4375 * doc/invoke.texi (IA-64 Options):
4376 Add -msdata, -mfused-madd, -mno-inline-float-divide,
4377 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
4378 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
4379 -msched-prefer-non-control-spec-insns,
4380 -msched-stop-bits-after-every-cycle,
4381 -msched-count-spec-in-critical-path,
4382 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
4383 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
4384 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
4385 and -msched-spec-verbose.
4387 2009-05-28 Joseph Myers <joseph@codesourcery.com>
4389 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
4390 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
4392 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
4394 2009-05-28 Richard Guenther <rguenther@suse.de>
4396 * tree-ssa-alias.c (ao_ref_init): New function.
4397 (ao_ref_base): Likewise.
4398 (ao_ref_base_alias_set): Likewise.
4399 (ao_ref_alias_set): Likewise.
4400 (refs_may_alias_p_1): Change signature.
4401 (refs_may_alias_p): Adjust.
4402 (refs_anti_dependent_p): Likewise.
4403 (refs_output_dependent_p): Likewise.
4404 (call_may_clobber_ref_p_1): Change signature.
4405 (call_may_clobber_ref_p): Adjust.
4406 (stmt_may_clobber_ref_p_1): New function split out from ...
4407 (stmt_may_clobber_ref_p): ... here.
4408 (maybe_skip_until): Adjust signature.
4409 (get_continuation_for_phi): Likewise.
4410 (walk_non_aliased_vuses): Likewise.
4411 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
4412 (ao_ref_init): Declare.
4413 (ao_ref_base): Likewise.
4414 (ao_ref_alias_set): Likewise.
4415 (stmt_may_clobber_ref_p_1): Likewise.
4416 (walk_non_aliased_vuses): Adjust.
4417 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
4418 (get_ref_from_reference_ops): remove.
4419 (vn_reference_lookup_2): Adjust signature.
4420 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
4421 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
4422 (vn_reference_lookup): Adjust.
4423 (vn_reference_insert): Likewise.
4424 (vn_reference_insert_pieces): Adjust signature.
4425 (visit_reference_op_call): Adjust.
4426 * tree-ssa-pre.c (get_expr_type): Simplify.
4427 (phi_translate_1): Adjust.
4428 (compute_avail): Likewise.
4429 (translate_vuse_through_block): Do not re-build trees.
4430 (value_dies_in_block_x): Likewise.
4431 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
4433 (vn_reference_lookup_pieces): Adjust declaration.
4434 (vn_reference_insert_pieces): Likewise.
4436 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
4438 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
4439 with checking disabled.
4441 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
4445 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
4446 macro definition for support of three-operand format aligned
4447 .comm directive in assembler on cygwin/pe/mingw target OS.
4448 * configure: Regenerate.
4449 * config.h: Regenerate.
4451 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
4452 aligned form of .comm directive if -mpe-aligned-commons is in effect.
4453 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
4455 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
4456 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
4458 2009-05-28 Ira Rosen <irar@il.ibm.com>
4460 PR tree-optimization/40254
4461 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
4462 in analysis of basic blocks.
4464 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
4467 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
4468 * target-def.h (TARGET_CONST_ANCHOR): New macro.
4469 (TARGET_INITIALIZER): Use it.
4470 * cse.c (CHEAPER): Move it up to the other macros.
4471 (insert): Rename this ...
4472 (insert_with_costs): ... to this. Add cost parameters. Update
4474 (insert): New function. Call insert_with_costs.
4475 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
4476 find_reg_offset_for_const, try_const_anchors): New functions.
4477 (cse_insn): Call try_const_anchors. Adjust cost of src_related
4478 when using a const-anchor. Call insert_const_anchors.
4479 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
4480 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
4482 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
4484 * tree-inline.c (remap_decls): Enable nonlocalized variables
4485 when not optimizing.
4487 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
4489 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
4490 Simplify other tests involving optimize.
4492 2009-05-27 Tom Tromey <tromey@redhat.com>
4494 * unwind-dw2.c (_Unwind_DebugHook): New function.
4495 (uw_install_context): Call _Unwind_DebugHook.
4497 2009-05-27 Tom Tromey <tromey@redhat.com>
4499 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
4501 2009-05-27 Ian Lance Taylor <iant@google.com>
4503 * Makefile.in (LINKER, LINKER_FLAGS): Define.
4504 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
4505 (ALL_LINKERFLAGS): Define.
4506 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
4507 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
4508 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
4509 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
4510 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
4511 $(LINKER_FOR_BUILD).
4512 (build/gcov-iov$(build_exeext)): Likewise.
4514 2009-05-27 Julian Brown <julian@codesourcery.com>
4516 * gcse.c (target.h): Include.
4517 (can_assign_to_reg_without_clobbers_p): Check that the target allows
4518 copy of argument to a pseudo register.
4520 2009-05-27 Diego Novillo <dnovillo@google.com>
4522 * tree-ssa-live.c (dump_scope_block): Document arguments.
4523 (dump_scope_blocks): Document.
4524 (debug_scope_blocks): New.
4525 * tree-flow.h (debug_scope_blocks): Declare.
4527 2009-05-21 Denis Chertykov <denisc@overta.ru>
4529 * doc/contrib.texi (Contributors): Add myself to the list.
4531 2009-05-27 Olivier Hainque <hainque@adacore.com>
4533 * expr.c (target_align): New function. Alignment the TARGET of an
4534 assignment may be assume to have.
4535 (highest_pow2_factor_for_target): Use it instead of relying on
4536 immediate tree attributes of TARGET, not necessarily honored when
4537 intermediate bitfields are involved.
4539 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
4542 * config/i386/driver-i386.c (host_detect_local_cpu): Support
4543 AVX, SSE4, AES, PCLMUL and POPCNT.
4545 2009-05-27 Diego Novillo <dnovillo@google.com>
4547 * tree-pretty-print.c (dump_location): New.
4548 (dump_generic_node): Call it.
4549 Factor code to handle BLOCK nodes ...
4550 (dump_block_node): ... here.
4552 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
4554 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
4556 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
4558 * gcc-plugin.h: Include config.h and system.h.
4559 (IN_GCC): Define if not defined.
4561 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
4564 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
4567 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
4569 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
4571 * config/m32r/m32r.h: Ditto.
4572 * config/m32r/m32r.md: Ditto.
4573 * config/m32r/predicates.md: Ditto.
4575 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
4577 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
4579 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
4582 (Loading plugins): typo.
4583 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
4584 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
4585 (Interacting with the GCC Garbage Collector): Added new section.
4586 (Giving information about a plugin): Added new section for
4588 * ggc.h (ggc_register_root_tab): Added declaration.
4589 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
4590 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
4591 (register_callback): Improved comment in declaration.
4592 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
4593 (extra_root_vec) Added static variable for dynamic roots registration.
4594 (ggc_register_root_tab) Added new routine.
4595 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
4596 PLUGIN_GGC_MARKING event.
4597 * ggc-zone.c: Include plugin.h.
4598 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
4599 * ggc-page.c: Include plugin.h.
4600 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
4601 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
4602 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
4603 (register_callback): check lack of callbacks for
4604 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
4605 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
4606 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
4607 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
4608 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
4609 dependency on plugin.h.
4610 (plugin.o): Added dependency on ggc.h...
4612 2009-05-26 Richard Guenther <rguenther@suse.de>
4616 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
4617 with mismatched comparison modes.
4619 * expr.c (expand_expr_real_1): Expand the operand of a
4620 VIEW_CONVERT_EXPR in its natural mode.
4622 2009-05-26 Ian Lance Taylor <iant@google.com>
4624 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
4625 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
4626 (ALL_COMPILERFLAGS): Define.
4627 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
4628 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
4629 (collect2$(exeext), collect2.o): Likewise.
4630 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
4631 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
4632 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
4633 (libbackend.o, intl.o, cppdefault.o): Likewise.
4634 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
4635 (build/%.o): Use $(COMPILER_FOR_BUILD).
4636 (build/gen%$(build_exeext)): Likewise.
4637 (build/gcov-iov$(build_exeext)): LIkewise.
4638 * config/t-darwin (darwin.o): Use $(COMPILER).
4639 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
4640 * config/t-sol2 (sol2-c.o): Likewise.
4642 * config/t-vxworks (vxworks.o): Likewise.
4643 * config/x-darwin (host-darwin.o): Likewise.
4644 * config/x-hpux (host-hpux.o): Likewise.
4645 * config/x-linux (host-linux.o): Likewise.
4646 * config/x-solaris (host-solaris.o): Likewise.
4647 * config/alpha/x-alpha (driver-alpha.o): Likewise.
4648 * config/arm/t-arm (arm-c.o): Likewise.
4649 * config/arm/t-pe (pe.o): Likewise.
4650 * config/arm/t-wince-pe (pe.o): Likewise.
4651 * config/i386/t-cygming (winnt.o): Likewise.
4652 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
4653 * config/i386/t-cygwin (cygwin1.o): Likewise.
4654 (cygwin2.o): Likewise.
4655 * config/i386/t-i386 (i386-c.o): Likewise.
4656 * config/i386/t-interix (winnt.o): Likewise.
4657 * config/i386/t-netware (netware.o): Likewise.
4658 * config/i386/t-nwld (nwld.o): Likewise.
4659 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
4660 * config/i386/x-i386 (driver-i386.o): Likewise.
4661 * config/i386/x-cygwin (host-cygwin.o): Likewise.
4662 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
4663 * config/ia64/t-ia64 (ia64-c.o): Likewise.
4664 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
4665 * config/mips/x-native (driver-native.o): Likewise.
4666 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
4667 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
4668 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
4669 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
4670 * config/score/t-score-elf (score7.o): Likewise.
4671 (score3.o): Likewise.
4672 * config/sh/t-sh (sh-c.o): Likewise.
4673 * config/sh/t-symbian (sh-c.o): Likewise.
4674 (symbian.o): Likewise.
4675 * config/spu/t-spu-elf (spu-c.o): Likewise.
4676 * config/v850/t-v850 (v850-c.o): Likewise.
4677 * config/v850/t-v850e (v850-c.o): Likewise.
4679 2009-05-26 Richard Guenther <rguenther@suse.de>
4681 PR tree-optimization/40122
4682 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
4683 VECTOR_CSTs if possible.
4684 (fold_gimple_assign): Likewise.
4686 2009-05-26 Richard Guenther <rguenther@suse.de>
4689 * fold-const.c (fold_binary): Use the correct types for building
4692 2009-05-26 Richard Guenther <rguenther@suse.de>
4694 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
4695 redundant calls to merge_alias_info.
4696 (bump_vector_ptr): Likewise.
4697 * tree-ssa-copy.c (merge_alias_info): Remove.
4698 (replace_exp_1): Remove call to merge_alias_info.
4699 (propagate_tree_value): Likewise.
4700 (fini_copy_prop): Propagate points-to info.
4701 * tree-flow.h (merge_alias_info): Remove.
4703 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
4705 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
4707 2009-05-25 Jan Hubicka <jh@suse.cz>
4709 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
4710 * cgraph.h (struct inline_summary): New filed self_wize,
4711 size_inlining_benefit, self_time and time_inlining_benefit.
4712 (struct cgraph_global_info): Replace insns by time ans size fields.
4713 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
4714 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
4715 (ipcp_update_callgraph): Do not touch function bodies.
4716 * ipa-inline.c: Include except.h
4717 (MAX_TIME): New constant.
4718 (overall_insns): Remove.
4720 (overall_size, max_benefit): New static variables.
4721 (cgraph_estimate_time_after_inlining): New function.
4722 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
4723 (cgraph_clone_inlined_nodes): Update size.
4724 (cgraph_mark_inline_edge): Update size.
4725 (cgraph_estimate_growth): Use size info.
4726 (cgraph_check_inline_limits): Check size.
4727 (cgraph_default_inline_p): Likewise.
4728 (cgraph_edge_badness): Compute badness based on benefit and size cost.
4729 (cgraph_decide_recursive_inlining): Check size.
4730 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
4732 (cgraph_decide_inlining): Likewise.
4733 (cgraph_decide_inlining_incrementally): Likewise; honor
4734 PARAM_EARLY_INLINING_INSNS.
4735 (likely_eliminated_by_inlining_p): New predicate.
4736 (estimate_function_body_sizes): New function.
4737 (compute_inline_parameters): Use it.
4738 * except.c (must_not_throw_labels): New function.
4739 * except.h (must_not_throw_labels): Declare.
4740 * tree-inline.c (init_inline_once): Kill inlining_weigths
4741 * tree-ssa-structalias.c: Avoid uninitialized warning.
4742 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
4743 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
4744 (PARAM_INLINE_CALL_COST): Remove.
4745 (PARAM_EARLY_INLINING_INSNS): New.
4747 2009-05-25 Richard Guenther <rguenther@suse.de>
4749 PR tree-optimization/36327
4750 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
4751 callback for reference translation or lookup at the point of may-defs.
4752 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
4753 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
4754 for union COMPONENT_REFs.
4755 (vn_reference_lookup_3): New callback. Lookup from memset
4756 and CONSTRUCTOR assignment, translate through struct copies.
4757 (vn_reference_lookup_pieces): Make sure to not free the
4758 passed operands array. Adjust walk_non_aliased_vuses call.
4759 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
4760 make sure we do not leak memory.
4762 2009-05-25 Richard Guenther <rguenther@suse.de>
4764 * tree-ssa-alias.h (dump_points_to_solution): Declare.
4765 * tree-inline.c (expand_call_inline): Reset the escaped and
4767 * tree-ssa-structalias.c (pass_build_ealias): New.
4768 * tree-pass.h (pass_build_ealias): Declare.
4769 * passes.c (init_optimization_passes): Add PTA during
4770 early optimizations.
4771 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
4772 and CALLUSED solutions.
4773 (dump_points_to_solution): New function, split out from ...
4774 (dump_points_to_info_for): ... here.
4775 * tree-parloops.c (parallelize_loops): Reset the escaped and
4778 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4781 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
4782 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
4784 2009-05-25 Ira Rosen <irar@il.ibm.com>
4786 PR tree-optimization/40238
4787 * tree-vect-stmts.c (vect_init_vector): Insert initialization
4788 statements after basic block's labels.
4789 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
4790 to free the allocated memory.
4792 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
4794 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
4795 return address with a USE.
4797 2009-05-24 Richard Guenther <rguenther@suse.de>
4800 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
4801 array type from the main variant of the inner type.
4803 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4805 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
4806 definition to bool (from int) to un-break build.
4807 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
4809 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
4811 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
4812 discard_stmt_changes): Delete.
4813 * tree-ssa-operands.c (scb_stack): Delete.
4814 (init_ssa_operands): Do not initialize it.
4815 (fini_ssa_operands): Do not free it.
4816 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
4818 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
4819 update_stmt, remove the others. Fix comments.
4820 * tree-dfa.c (optimize_stack_restore): Likewise.
4821 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
4822 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
4823 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
4824 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
4826 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
4827 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4828 (dom_opt_finalize_block): Likewise, adjusting access to
4830 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
4831 (stmts_to_rescan): Change item type to gimple.
4832 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
4834 2009-05-24 Ira Rosen <irar@il.ibm.com>
4836 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
4837 * tree-pass.h (pass_slp_vectorize): New pass.
4838 * params.h (SLP_MAX_INSNS_IN_BB): Define.
4839 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
4840 * tree-vectorizer.c (timevar.h): Include.
4841 (user_vect_verbosity_level): Declare.
4842 (vect_location): Fix comment.
4843 (vect_set_verbosity_level): Update user_vect_verbosity_level
4844 instead of vect_verbosity_level.
4845 (vect_set_dump_settings): Add an argument. Ignore user defined
4846 verbosity if dump flags require higher level of verbosity. Print to
4847 stderr only for loop vectorization.
4848 (vectorize_loops): Update call to vect_set_dump_settings.
4849 (execute_vect_slp): New function.
4850 (gate_vect_slp): Likewise.
4851 (struct gimple_opt_pass pass_slp_vectorize): New.
4852 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
4854 (vec_info_for_bb): New function.
4855 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
4856 (VECTORIZATION_ENABLED): New macro.
4857 (SLP_ENABLED, SLP_DISABLED): Likewise.
4858 (vect_is_simple_use): Add bb_vec_info argument.
4859 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
4860 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4861 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4862 vect_schedule_slp, vect_analyze_slp): Likewise.
4863 (vect_analyze_stmt): Add slp_tree argument.
4864 (find_bb_location): Declare.
4865 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
4866 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
4867 (vect_analyze_loop_operations, vect_analyze_loop,
4868 get_initial_def_for_induction, vect_create_epilog_for_reduction,
4869 vect_finalize_reduction, vectorizable_reduction,
4870 vectorizable_live_operation, vect_transform_loop): Likewise.
4871 * tree-data-ref.c (dr_analyze_innermost): Update comment,
4872 skip evolution analysis if analyzing a basic block.
4873 (dr_analyze_indices): Likewise.
4874 (initialize_data_dependence_relation): Skip the test whether the
4875 object is invariant for basic blocks.
4876 (compute_all_dependences): Skip dependence analysis for data
4877 references in basic blocks.
4878 (find_data_references_in_stmt): Don't fail in case of invariant
4879 access in basic block.
4880 (find_data_references_in_bb): New function.
4881 (find_data_references_in_loop): Move code to
4882 find_data_references_in_bb and add a call to it.
4883 (compute_data_dependences_for_bb): New function.
4884 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
4885 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
4887 (vect_analyze_data_ref_dependence): Check for interleaving in case of
4888 unknown dependence in basic block and fail in case of dependence in
4890 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
4891 dependence instances from either loop or basic block vectorization
4893 (vect_compute_data_ref_alignment): Check if it is loop vectorization
4894 before calling nested_in_vect_loop_p.
4895 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
4896 dependence instances from either loop or basic block vectorization
4898 (vect_verify_datarefs_alignment): Likewise.
4899 (vect_enhance_data_refs_alignment): Adjust function calls.
4900 (vect_analyze_data_refs_alignment): Likewise.
4901 (vect_analyze_group_access): Fix printing. Skip different checks if
4902 DR_STEP is 0. Keep strided stores either in loop or basic block
4903 vectorization data structure. Fix indentation.
4904 (vect_analyze_data_ref_access): Fix comments, allow zero step in
4906 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
4907 dependence instances from either loop or basic block vectorization
4909 (vect_analyze_data_refs): Update comment. Call
4910 compute_data_dependences_for_bb to analyze basic blocks.
4911 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
4912 case of loop vectorization. In case of basic block vectorization use
4913 data-ref itself as a base.
4914 (vect_create_data_ref_ptr): In case of basic block vectorization:
4915 don't advance the pointer, add new statements before the current
4916 statement. Adjust function calls.
4917 (vect_supportable_dr_alignment): Support only aligned accesses in
4918 basic block vectorization.
4919 * common.opt (ftree-slp-vectorize): New flag.
4920 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
4921 (vect_pattern_recog_1): Likewise.
4922 * tree-vect-stmts.c (process_use): Likewise.
4923 (vect_init_vector): Add new statements in the beginning of the basic
4924 block in case of basic block SLP.
4925 (vect_get_vec_def_for_operand): Adjust function calls.
4926 (vect_finish_stmt_generation): Likewise.
4927 (vectorizable_call): Add assert that it is loop vectorization, adjust
4929 (vectorizable_conversion, vectorizable_assignment): Likewise.
4930 (vectorizable_operation): In case of basic block SLP, take
4931 vectorization factor from statement's type and skip the relevance
4932 check. Adjust function calls.
4933 (vectorizable_type_demotion): Add assert that it is loop
4934 vectorization, adjust function calls.
4935 (vectorizable_type_promotion): Likewise.
4936 (vectorizable_store): Check for outer loop only in case of loop
4937 vectorization. Adjust function calls. For basic blocks, skip the
4938 relevance check and don't advance pointers.
4939 (vectorizable_load): Likewise.
4940 (vectorizable_condition): Add assert that it is loop vectorization,
4941 adjust function calls.
4942 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
4943 that it is not reduction, get vector type, call only supported
4944 functions, skip loop specific parts.
4945 (vect_transform_stmt): Check for outer loop only in case of loop
4947 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
4948 (vect_is_simple_use): Fix comment, add new argument, fix conditions
4949 for external definition.
4950 * passes.c (pass_slp_vectorize): New pass.
4951 * tree-vect-slp.c (find_bb_location): New function.
4952 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
4953 check for patterns only in loops.
4954 (vect_build_slp_tree): Add argument, adjust function calls, fail in
4955 case of multiple types in basic block SLP.
4956 (vect_mark_slp_stmts_relevant): New function.
4957 (vect_supported_load_permutation_p): Fix comment.
4958 (vect_analyze_slp_instance): Add argument. In case of basic block
4959 SLP, take vectorization factor from statement's type, check that
4960 unrolling factor is 1. Adjust function call. Save SLP instance in
4961 either loop or basic block vectorization structure. Return FALSE,
4963 (vect_analyze_slp): Add argument. Get strided stores groups from
4964 either loop or basic block vectorization structure. Return FALSE
4965 if basic block SLP failed.
4966 (new_bb_vec_info): New function.
4967 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
4968 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
4969 (vect_schedule_slp): Add argument. Get SLP instances from either
4970 loop or basic block vectorization structure. Set vectorization factor
4971 to be 1 for basic block SLP.
4972 (vect_slp_transform_bb): New function.
4973 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
4975 2009-05-23 Mark Mitchell <mark@codesourcery.com>
4977 * final.c (shorten_branches): Do not align labels for jump tables.
4978 (final_scan_insn): Use JUMP_TABLE_DATA_P.
4980 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4982 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
4983 Remove outdated reference to flow.c and fix nits.
4984 * doc/gccint.texi: Tweak RTL description.
4985 * doc/rtl.texi: Likewise.
4987 2009-05-23 Denis Chertykov <chertykov@gmail.com>
4989 * config/avr/avr.c: Change my email address.
4990 * config/avr/avr.h: Likewise.
4991 * config/avr/avr.md: Likewise.
4992 * config/avr/avr-protos.h: Likewise.
4993 * config/avr/libgcc.S: Likewise.
4995 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
4997 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
4998 (spu_split_load, spu_split_store): Change return type to int.
4999 (spu_split_convert): Declare.
5000 * config/spu/predicates.md (spu_mem_operand): Remove.
5001 (spu_mov_operand): Update.
5002 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
5003 * config/spu/spu.c (regno_aligned_for_load): Remove.
5004 (reg_aligned_for_addr, spu_expand_load): Define.
5005 (spu_expand_extv): Reimplement and handle MEM.
5006 (spu_expand_insv): Handle MEM.
5007 (spu_sched_reorder): Handle insn's with length 0.
5008 (spu_legitimate_address_p): Reimplement.
5009 (store_with_one_insn_p): Return TRUE for any mode with size
5010 larger than 16 bytes.
5011 (address_needs_split): Define.
5012 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
5014 (spu_convert_move): Define.
5015 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
5016 (spu_split_store): Change all MEM's to TImode.
5017 (spu_init_expanders): Preallocate registers that correspond to
5018 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
5020 (spu_split_convert): Define.
5021 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
5022 (_move<mode>, _movdi, _movti): Update predicate and condition.
5023 (load, store): Change to define_split.
5024 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
5026 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
5027 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
5028 define_insn_and_split of lshr<mode>3.
5029 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
5030 (<v>ashr<mode>3_imm): Define.
5031 (extv, extzv, insv): Allow MEM operands.
5032 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
5033 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
5034 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
5035 (_spu_convert2): Change to define_insn_and_split and remove the
5036 corresponding define_peephole2.
5037 (stack_protect_set, stack_protect_test, stack_protect_test_si):
5038 Change predicates to memory_operand.
5040 2009-05-22 Mark Mitchell <mark@codesourcery.com>
5042 * config/arm/thumb2.md: Add 16-bit multiply instructions.
5044 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5046 PR tree-optimization/40219
5047 * tree.c (iterative_hash_expr): Make sure the builtin function is
5048 a normal builtin function and not a front end or back end builtin
5049 before indexing into the built_in_decls array.
5051 2009-05-22 Richard Guenther <rguenther@suse.de>
5054 * alias.c (write_dependence_p): Do not use TBAA for answering
5055 anti-dependence or output-dependence.
5056 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
5057 (emit_pointer_definition): Remove.
5058 (emit_alias_warning): Likewise.
5059 (find_what_var_points_to): Remove TBAA pruning code.
5060 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
5062 (compute_points_to_sets): Remove code computing the set of
5063 dereferenced pointers.
5064 * tree-data-ref.c (dr_may_alias_p): Properly use the split
5065 oracle for querying anti and output dependencies.
5066 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
5067 if TBAA may be applied.
5068 (refs_anti_dependent_p): New function.
5069 (refs_output_dependent_p): Likewise.
5070 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
5071 (refs_output_dependent_p): Likewise.
5072 * doc/tree-ssa.texi (Memory model): New section.
5073 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
5074 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
5075 * cfgexpand.c (expand_gimple_basic_block): Do not handle
5076 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
5077 * expr.c (expand_expr_real_1): Likewise.
5078 * gimple-low.c (lower_stmt): Likewise.
5079 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
5080 (dump_gimple_cdt): Remove.
5081 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
5082 (gimple_size): Likewise.
5083 (walk_gimple_op): Likewise.
5084 (is_gimple_stmt): Likewise.
5085 (walk_stmt_load_store_addr_ops): Likewise.
5086 (gimple_build_cdt): Remove.
5087 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
5088 * gimple.h (gimple_cdt_new_type): Remove.
5089 (gimple_cdt_new_type_ptr): Likewise.
5090 (gimple_cdt_set_new_type): Likewise.
5091 (gimple_cdt_location): Likewise.
5092 (gimple_cdt_location_ptr): Likewise.
5093 (gimple_cdt_set_location): Likewise.
5094 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
5095 * tree-cfg.c (remove_useless_stmts_1): Do not handle
5096 GIMPLE_CHANGE_DYNAMIC_TYPE.
5097 (verify_types_in_gimple_stmt): Likewise.
5098 * tree-inline.c (estimate_num_insns): Likewise.
5099 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
5100 (copy_decl_to_var): Likewise.
5101 (copy_result_decl_to_var): Likewise.
5102 * tree-pretty-print.c (dump_generic_node): Do not handle
5103 CHANGE_DYNAMIC_TYPE_EXPR.
5104 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5105 * tree-ssa-operands.c (get_expr_operands): Likewise.
5106 * tree-ssa-structalias.c (struct variable_info): Remove
5107 no_tbaa_pruning member.
5108 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
5109 (unify_nodes): Do not copy it.
5110 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
5111 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
5112 (set_uids_in_ptset): Do not check it.
5113 (find_what_var_points_to): Likewise.
5114 (compute_tbaa_pruning): Remove.
5115 (compute_points_to_sets): Do not call it.
5116 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
5117 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
5118 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
5119 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
5120 (DECL_NO_TBAA_P): Likewise.
5121 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
5122 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
5123 (expand_omp_atomic_pipeline): Do not set it.
5124 * print-tree.c (print_node): Do not dump it.
5125 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
5128 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
5131 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
5134 2009-05-22 Mark Mitchell <mark@codesourcery.com>
5136 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
5139 2009-05-22 Ben Elliston <bje@au.ibm.com>
5141 * Makefile.in (bversion.h, s-bversion): New targets.
5142 (TOPLEV_H): Add bversion.h.
5143 * toplev.h: Include "bversion.h".
5144 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
5145 the __format__ attribute only if compiling with the same version
5146 of GCC as the sources (the "build version").
5148 2009-05-22 Ben Elliston <bje@au.ibm.com>
5150 * c-format.c (handle_format_attribute): Fix comment typo.
5152 2009-05-21 Steve Ellcey <sje@cup.hp.com>
5155 * config/ia64/ia64.opt (mfused-madd): New.
5156 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
5157 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
5158 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
5159 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
5160 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
5161 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
5162 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
5163 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
5164 instruction if !TARGET_FUSED_MADD.
5165 (fpma, fpms): Remove colon from name.
5167 2009-05-22 Richard Guenther <rguenther@suse.de>
5169 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
5170 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
5171 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
5173 (create_expression_by_pieces): Only convert if necessary.
5174 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
5175 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
5177 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
5179 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
5180 regular pattern from a template and rename it ...
5181 (*extzv_truncsi_exts): ... to this.
5183 2009-05-21 Richard Guenther <rguenther@suse.de>
5185 * cgraph.h (struct cgraph_node): Remove inline_decl member.
5186 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
5187 (cgraph_default_inline_p): Likewise.
5188 (cgraph_decide_inlining_incrementally): Likewise.
5190 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
5191 Uros Bizjak <ubizjak@gmail.com>
5193 * config/i386/cpuid.h (bit_MOVBE): New.
5195 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
5197 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
5198 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
5199 (ix86_handle_option): Handle OPT_mmovbe.
5200 (ix86_target_string): Add -mmovbe.
5201 (pta_flags): Add PTA_MOVBE.
5202 (processor_alias_table): Add PTA_MOVBE to "atom".
5203 (override_options): Handle PTA_MOVBE.
5205 * config/i386/i386.h (TARGET_MOVBE): New.
5207 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
5208 (*bswapsi_movbe): New.
5209 (*bswapdi_movbe): Likewise.
5210 (bswapdi2): Renamed to ...
5212 (bswapdi2): New expander.
5214 * config/i386/i386.opt (mmovbe): New.
5216 * doc/invoke.texi: Document -mmovbe.
5218 2009-05-21 Taras Glek <tglek@mozilla.com>
5220 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
5221 * gcc-plugin.h (plugin_init): Updated signature.
5222 * gcc-plugin.h (plugin_name_args): Moved to this header.
5223 * doc/plugins.texi (plugin_init): Updated documention to reflect
5225 * doc/plugins.texi (plugin_name_args): Added to documention.
5227 2009-05-21 Mark Mitchell <mark@codesourcery.com>
5229 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
5230 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
5232 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
5234 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
5235 JUMP_TABLE_DATA_P predicates where applicable.
5236 * config/i386/predicates.md: Ditto.
5237 * config/i386/sse.md: Ditto.
5239 2009-05-21 Jakub Jelinek <jakub@redhat.com>
5241 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
5242 operand2 -128 override length_immediate attribute to 1.
5243 * config/i386/predicates.md (constm128_operand): New predicate.
5245 * config/i386/i386.c (memory_address_length): Handle %r12
5246 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
5248 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
5249 mode look through optional ZERO_EXTEND and SUBREG.
5250 * config/i386/i386.md (R12_REG): New define_constant.
5251 (prefix_data16): For sse unit set also for MODE_TI insns.
5252 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
5253 insns set if operand 1 is ext_QIreg_operand.
5254 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
5255 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
5257 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
5258 mode from MODE_DI to MODE_SI.
5259 (movdi_1_rex64): Override modrm and length_immediate attributes
5260 only for movabs (TYPE_IMOV, alternative 2).
5261 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
5262 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5263 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5264 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5265 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
5266 prefix_rex attribute if DImode.
5267 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
5268 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
5269 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
5270 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
5271 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
5272 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
5273 Likewise. For TYPE_IMOV clear length_immediate attribute.
5274 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
5275 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
5276 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
5277 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
5278 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
5279 or one operand TYPE_ISHIFT.
5280 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
5281 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
5282 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
5283 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
5284 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
5285 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
5286 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
5287 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
5288 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
5289 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
5290 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
5291 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
5292 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
5293 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
5294 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
5295 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
5296 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
5297 set mode attribute, don't override length attribute.
5298 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
5300 (return_internal_long): Set length attribute to 2 instead of 1.
5301 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
5302 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
5303 prefix_rex attribute.
5304 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
5306 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
5308 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5310 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
5312 2009-05-20 Ian Lance Taylor <iant@google.com>
5314 * tree.c (build_tree_list_vec_stat): New function.
5315 (ctor_to_vec): New function.
5316 (build_nt_call_vec): New function.
5317 (build_call_array): Change args to be a const pointer.
5318 (build_call_vec): New function.
5319 * tree.h (build_nt_call_vec): Declare.
5320 (build_tree_list_vec_stat): Declare.
5321 (build_tree_list_vec): Define.
5322 (build_call_array): Update declaration.
5323 (build_call_vec): Declare.
5324 (ctor_to_vec): Declare.
5325 * c-common.c (tree_vector_cache): New static variable.
5326 (make_tree_vector): New function.
5327 (release_tree_vector): New function.
5328 (make_tree_vector_single): New function.
5329 (make_tree_vector_copy): New function.
5330 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
5331 (make_tree_vector_single, make_tree_vector_copy): Declare.
5332 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
5333 (c_parser_expr_list): Don't manage cache here, instead call
5335 (c_parser_release_expr_list): Remove static function.
5336 (c_parser_vec_to_tree_list): Remove static function.
5337 (c_parser_attributes): Call build_tree_list_vec instead of
5338 c_parser_vec_to_tree_list. Call release_tree_vector instead of
5339 c_parser_release_expr_list.
5340 (c_parser_postfix_expression_after_primary): Likewise.
5341 (c_parser_objc_keywordexpr): Likewise.
5343 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
5345 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
5346 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
5347 TARGET_CONVERT_TO_TYPE.
5348 * hooks.c (hook_tree_const_tree_null): Define.
5349 * hooks.h (hook_tree_const_tree_null): Declare.
5350 * target.h (struct gcc_target): Add invalid_parameter_type,
5351 invalid_return_type, promoted_type, and convert_to_type fields.
5352 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
5353 (TARGET_INVALID_RETURN_TYPE): Define.
5354 (TARGET_PROMOTED_TYPE): Define.
5355 (TARGET_CONVERT_TO_TYPE): Define.
5356 (TARGET_INITIALIZER): Update for new fields.
5357 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
5358 (grokparms): Check targetm.invalid_parameter_type.
5359 * c-typeck.c (default_conversion): Check targetm.promoted_type.
5360 * c-convert.c (convert): Check targetm.convert_to_type.
5362 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
5364 * config/mips/mips.md (*extenddi_truncate<mode>,
5365 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
5367 (*extendhi_truncateqi): New define_insn_and_sptit.
5369 2009-05-20 Jakub Jelinek <jakub@redhat.com>
5372 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
5373 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
5375 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
5377 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
5378 the operand of VIEW_CONVERT_EXPR.
5380 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
5382 * config/i386/driver-i386.c (host_detect_local_cpu): Check
5383 extended family and model for Intel processors. Support Intel Atom.
5385 2009-05-20 Olivier Hainque <hainque@adacore.com>
5387 * gstab.h (stab_code_type): Define, to be used instead of the
5388 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
5390 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
5391 occurrences by stab_code_type.
5392 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
5394 2009-05-20 Martin Jambor <mjambor@suse.cz>
5396 * tree-flow.h (insert_edge_copies_seq): Undeclare.
5397 (sra_insert_before): Likewise.
5398 (sra_insert_after): Likewise.
5399 (sra_init_cache): Likewise.
5400 (sra_type_can_be_decomposed_p): Likewise.
5401 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
5402 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
5403 (sra_insert_before): Likewise.
5404 (sra_insert_after): Likewise.
5405 (sra_init_cache): Likewise.
5406 (insert_edge_copies_seq): Made static and moved upwards.
5408 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
5411 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
5413 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
5414 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
5417 2009-05-20 Richard Guenther <rguenther@suse.de>
5419 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
5420 with mismatched comparison modes.
5422 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5424 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
5425 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
5426 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
5427 with shifts for Thumb2.
5428 (orsi_notsi): New for orn.
5429 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
5430 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
5431 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
5432 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
5433 Don't invert remainder for IOR.
5435 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
5437 PR tree-optimization/40087
5438 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
5439 number_of_iterations_ne): Rename never_infinite argument.
5440 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
5441 number_of_iterations_le): Handle pointer-type ivs when
5442 exit_must_be_taken is false.
5443 (number_of_iterations_cond): Do not always assume that
5444 exit_must_be_taken if the control variable is a pointer.
5446 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
5448 * c-typeck.c (build_binary_op): Allow % on integal vectors.
5449 * doc/extend.texi (Vector Extension): Document that % is allowed too.
5451 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
5453 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
5454 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
5456 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5459 * c.opt (Wlogical-op): Disabled by default.
5460 * c-opt (c_common_post_options): Do not enable Wlogical-op with
5462 * doc/invoke.texi (Wlogical-op): Likewise.
5464 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
5466 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
5468 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
5469 Propagate the type of the first operand.
5470 <ASSERT_EXPR>: Simplify.
5471 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
5472 Rewrite using the RHS code as discriminant.
5473 <NOP_EXPR>: Turn into CASE_CONVERT.
5474 <PLUS_EXPR>: Propagate the type of the first operand.
5476 2009-05-19 Steve Ellcey <sje@cup.hp.com>
5478 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
5479 (ia64_dconst_0_375): New.
5480 * config/ia64/ia64.c (ia64_override_options): Remove
5481 -minline-sqrt-min-latency warning.
5482 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
5483 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
5484 * config/ia64/ia64.md (*sqrt_approx): Remove.
5485 (sqrtsf2): Remove #if 0.
5486 (sqrtsf2_internal_thr): Rewrite and move to div.md.
5487 (sqrtdf): Remove assert.
5488 (sqrtdf2_internal_thr): Rewrite and move to div.md.
5489 (sqrtxf2): Remove #if 0.
5490 (sqrtxf2_internal_thr): Rewrite and move to div.md.
5491 * div.md (sqrt_approx_rf): New.
5492 (sqrtsf2_internal_thr): New implementation.
5493 (sqrtsf2_internal_lat): New.
5494 (sqrtdf2_internal_thr: New implementation.
5495 (sqrtxf2_internal): New implementation.
5497 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
5498 Hans-Peter Nilsson <hp@axis.com>
5500 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
5501 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
5502 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
5503 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
5504 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
5505 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
5506 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
5507 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
5508 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
5509 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
5510 * c-common.c: ...from here.
5512 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5514 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
5516 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5518 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
5520 2009-05-19 Ben Elliston <bje@au.ibm.com>
5522 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
5523 assignments with memcpy calls.
5524 (add_fdes): Likewise.
5525 (binary_search_unencoded_fdes): Likewise.
5526 (linear_search_fdes): Eliminate type puns.
5528 2009-05-19 Richard Guenther <rguenther@suse.de>
5530 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
5531 not falsely claim to have propagated into all uses.
5533 2009-05-19 Ben Elliston <bje@au.ibm.com>
5535 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
5538 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
5540 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
5541 * config/sh/sh.c (sh_legitimate_address_p): Make static.
5542 (TARGET_LEGITIMATE_ADDRESS_P): New.
5543 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5544 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
5546 2009-05-18 Dodji Seketeli <dodji@redhat.com>
5549 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
5550 child of the containing namespace's DIE.
5552 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
5554 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
5555 *zero_extendhi_truncqi): Move after the zero_extend patterns.
5556 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
5559 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
5562 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
5563 gen_align with gen_pad.
5564 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
5565 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
5567 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
5568 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
5570 * config/i386/i386.md (align): Renamed to ...
5571 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
5572 ASM_OUTPUT_MAX_SKIP_PAD.
5574 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
5576 * config.gcc: Fix variable syntax.
5579 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
5580 before calling exact_log2.
5581 (output_iorsi3): Likewise.
5582 (output_xorsi3): Likewise.
5584 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
5586 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
5587 for the none zero constant operand except for EQ and NE
5588 comprisons even when the first operand is R0.
5590 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
5592 * config/s390/2064.md: Remove trailing whitespaces.
5593 * config/s390/2084.md: Likewise.
5594 * config/s390/constraints.md: Likewise.
5595 * config/s390/fixdfdi.h: Likewise.
5596 * config/s390/libgcc-glibc.ver: Likewise.
5597 * config/s390/s390-modes.def: Likewise.
5598 * config/s390/s390-protos.h: Likewise.
5599 * config/s390/s390.c: Likewise.
5600 * config/s390/s390.h: Likewise.
5601 * config/s390/s390.md: Likewise.
5602 * config/s390/tpf-unwind.h: Likewise.
5604 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5606 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
5608 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5611 * configure.ac (m68k-*-*): Check if binutils support TLS.
5612 * configure: Regenerate.
5613 * config/m68k/predicates.md (symbolic_operand): Extend comment.
5614 * config/m68k/constraints.md (Cu): New constraint.
5615 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
5616 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
5617 (movsi): Handle TLS symbols.
5618 (addsi3_5200): Handle XTLS symbols, indent.
5619 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
5620 (m68k_tls_reference_p): Declare.
5621 (m68k_legitimize_address): Declare.
5622 (m68k_unwrap_symbol): Declare.
5623 * config/m68k/m68k.opt (mxtls): New option.
5624 * config/m68k/m68k.c (ggc.h): Include.
5625 (m68k_output_dwarf_dtprel): Implement hook.
5626 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
5627 (m68k_expand_prologue): Load GOT pointer when function needs it.
5628 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
5629 (m68k_legitimate_constant_address_p): Same.
5630 (m68k_decompose_address): Handle TLS references.
5631 (m68k_get_gp): New static function.
5632 (enum m68k_reloc): New contants.
5633 (TLS_RELOC_P): New macro.
5634 (m68k_wrap_symbol): New static function.
5635 (m68k_unwrap_symbol): New function.
5636 (m68k_final_prescan_insn_1): New static function.
5637 (m68k_final_prescan_insn): New function.
5638 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
5640 (legitimize_pic_address): Handle TLS references..
5641 (m68k_tls_get_addr, m68k_get_tls_get_addr)
5642 (m68k_libcall_value_in_a0_p)
5643 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
5644 (m68k_call_m68k_read_tp): Helper variables and functions for ...
5645 (m68k_legitimize_tls_address): Handle TLS references.
5646 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
5648 (m68k_legitimize_address): Handle TLS symbols.
5649 (m68k_get_reloc_decoration): New static function.
5650 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
5652 (m68k_output_dwarf_dtprel): Implement hook.
5653 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
5654 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
5655 m68k_call_* routines.
5656 (sched_attr_op_type): Handle TLS symbols.
5657 (gt-m68k.h): Include.
5658 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
5659 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
5661 2009-05-18 Martin Jambor <mjambor@suse.cz>
5663 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
5664 (visit_store_addr_for_mod_analysis): New function.
5665 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
5666 (determine_cst_member_ptr): Use gimple_assign_single_p.
5667 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
5668 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
5669 operands. Don't check number of operands of a NOP_EXPR.
5671 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
5673 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
5675 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5678 * c-common.c (warn_logical_operator): Don't warn if one of
5679 expression isn't always true or false.
5681 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
5683 * config/i386/biarch32.h: New file.
5684 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
5686 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
5688 * config/mips/mips.md (*zero_extend<mode>_trunchi,
5689 *zero_extend<mode>_truncqi): Merge these into ...
5690 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
5691 Name the pattern following this as *zero_extendhi_truncqi.
5693 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
5696 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
5697 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
5698 (output_info): Make field HOST_WIDEST_INT.
5699 (print_statistics): Use HOST_WIDEST_INT_PRINT.
5700 (dump_bitmat_statistics): Same.
5702 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
5704 * config.gcc (use_gcc_stdint): Set to wrap.
5705 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
5706 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
5707 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5708 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5709 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5710 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5711 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5712 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
5714 2009-05-16 Joseph Myers <joseph@codesourcery.com>
5716 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
5718 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
5719 Move definitions earlier.
5720 (OPT_ARCH64, OPT_ARCH32): Define.
5721 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
5724 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
5727 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
5730 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
5732 * arm.md (movdi2): Copy non-reg values to DImode registers.
5734 2009-05-16 Jakub Jelinek <jakub@redhat.com>
5737 * final.c (label_to_max_skip): New function.
5738 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
5739 CODE_LABEL_NUMBER <= max_labelno.
5740 * output.h (label_to_max_skip): New prototype.
5741 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
5742 (ix86_avoid_jump_mispredicts): ... this. Don't define if
5743 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
5744 Handle CODE_LABELs with >= 16 byte alignment or with
5745 max_skip == (1 << align) - 1.
5746 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
5747 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
5750 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
5751 .p2align 3 if MAX_SKIP is smaller than 7.
5752 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
5754 2009-05-15 Ian Lance Taylor <iant@google.com>
5756 * alias.c (struct alias_set_entry_d): Rename from struct
5757 alias_set_entry. Change all uses.
5758 * except.c (struct call_site_record_d): Rename from struct
5759 call_site_record. Change all uses.
5760 * except.h (struct eh_region_d): Rename from struct eh_region.
5762 * gcse.c (struct hash_table_d): Rename from struct hash_table.
5764 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
5765 ivtype_map_elt. Change all uses.
5766 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
5768 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
5769 * graphite.h (struct name_tree_d): Rename from struct name_tree.
5771 (struct sese_d): Rename from struct sese. Change all uses.
5772 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
5773 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
5774 * optabs.h (struct optab_d): Rename from struct optab. Change all
5776 (struct convert_optab_d): Rename from struct convert_optab.
5778 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
5779 ipa_opt_pass. Change all uses.
5780 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
5783 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
5784 defined as a typedef.
5785 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
5788 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5791 * fold-const.c (make_range,build_range_check,merge_ranges): Move
5793 (merge_ranges): Returns bool.
5794 * tree.h (make_range): .. to here.
5795 (build_range_check): Likewise.
5796 (merge_ranges): Likewise. Renamed from merge_ranges.
5797 * c-typeck.c (parser_build_binary_op): Update calls to
5798 warn_logical_operator.
5799 * c-common.c (warn_logical_operator): Add new warning.
5800 * c-common.h (warn_logical_operator): Update declaration.
5802 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5804 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
5806 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5808 * doc/install.texi: Document MPC requirements, flags etc.
5810 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
5811 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
5812 Evaluate constant arguments.
5813 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
5814 (fold_builtin_1): Likewise, also evaluate constant arguments.
5815 Remove superfluous break.
5816 (do_mpc_ckconv): New.
5817 * real.h: Include mpc.h.
5818 * toplev.c (print_version): Output MPC version info if available.
5820 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
5822 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
5824 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
5826 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
5829 2009-05-15 Jan Hubicka <jh@suse.cz>
5831 * doc/invoke.texi (max-early-inliner-iterations): New flag.
5832 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
5833 (try_inline): Fix return value.
5834 (cgraph_decide_inlining_incrementally): Honor new value.
5835 (cgraph_early_inlining): Handle indirect inlining.
5836 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
5838 2009-05-15 Jan Hubicka <jh@suse.cz>
5840 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
5841 * cgraphunit.c (cgraph_finalize_function): Set it.
5842 (cgraph_expand_function): Use it.
5844 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
5846 * real.c (encode_ieee_half): Define.
5847 (decode_ieee_half): Define.
5848 (ieee_half_format): Define.
5849 (arm_half_format): Define.
5850 * real.h (ieee_half_format): Declare.
5851 (arm_half_format): Declare.
5853 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
5855 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
5856 swapped, and reversed optabs exist before trying to use them.
5858 2009-05-15 Paul Brook <paul@codesourcery.com>
5859 Sandra Loosemore <sandra@codesourcery.com>
5861 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
5862 loads. Allow PRE_DEC.
5863 (output_move_neon): Handle PRE_DEC.
5864 (arm_print_operand): Add 'A' for neon structure loads.
5865 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
5866 * config/arm/neon.md (neon_mov): Update comment.
5867 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
5869 (Um): New constraint.
5871 2009-05-15 Jan Hubicka <jh@suse.cz>
5873 Revert the following patch until testsuite fallout is fixed:
5874 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
5875 * cgraph.h (struct inline_summary): New filed self_wize,
5876 size_inlining_benefit, self_time and time_inlining_benefit.
5877 (struct cgraph_global_info): Replace insns by time ans size fields.
5878 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
5879 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
5880 (ipcp_update_callgraph): Do not touch function bodies.
5881 * ipa-inline.c: Include except.h
5882 (MAX_TIME): New constant.
5883 (overall_insns): Remove
5884 (overall_size, max_benefit): New static variables.
5885 (cgraph_estimate_time_after_inlining): New function.
5886 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
5887 (cgraph_clone_inlined_nodes): Update size.
5888 (cgraph_mark_inline_edge): Update size.
5889 (cgraph_estimate_growth): Use size info.
5890 (cgraph_check_inline_limits): Check size.
5891 (cgraph_default_inline_p): Likewise.
5892 (cgraph_edge_badness): Compute badness based on benefit and size cost.
5893 (cgraph_decide_recursive_inlining): Check size.
5894 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
5896 (cgraph_decide_inlining): Likewise.
5897 (cgraph_decide_inlining_incrementally): Likewise; honor
5898 PARAM_EARLY_INLINING_INSNS.
5899 (likely_eliminated_by_inlining_p): New predicate.
5900 (estimate_function_body_sizes): New function.
5901 (compute_inline_parameters): Use it.
5902 * except.c (must_not_throw_labels): New function.
5903 * except.h (must_not_throw_labels): Declare.
5904 * tree-inline.c (init_inline_once): Kill inlining_weigths
5905 * tree-ssa-structalias.c: Avoid uninitialized warning.
5906 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
5907 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
5908 (PARAM_INLINE_CALL_COST): Remove.
5909 (PARAM_EARLY_INLINING_INSNS): New.
5911 2009-05-15 Richard Guenther <rguenther@suse.de>
5913 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
5914 not TODO_update_ssa.
5916 2009-05-15 Richard Guenther <rguenther@suse.de>
5918 PR tree-optimization/39999
5919 * gimple.h (gimple_expr_type): Use the expression type looking
5920 through useless conversions.
5921 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
5922 (vn_nary_op_insert_stmt): Likewise.
5923 (simplify_binary_expression): Likewise.
5925 2009-05-15 Richard Guenther <rguenther@suse.de>
5927 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
5928 New options, enabled by default.
5929 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
5931 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
5932 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
5933 * tree-ssa-structalias.c (gate_tree_pta): New function.
5934 (pass_build_alias): Use it.
5936 2009-05-15 Joseph Myers <joseph@codesourcery.com>
5938 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
5939 recurse on an invariant address if a conversion from a pointer
5940 type to a wider integer type is involved.
5942 2009-05-15 Jan Hubicka <jh@suse.cz>
5944 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
5945 * cgraph.h (struct inline_summary): New filed self_wize,
5946 size_inlining_benefit, self_time and time_inlining_benefit.
5947 (struct cgraph_global_info): Replace insns by time ans size fields.
5948 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
5949 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
5950 (ipcp_update_callgraph): Do not touch function bodies.
5951 * ipa-inline.c: Include except.h
5952 (MAX_TIME): New constant.
5953 (overall_insns): Remove
5954 (overall_size, max_benefit): New static variables.
5955 (cgraph_estimate_time_after_inlining): New function.
5956 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
5957 (cgraph_clone_inlined_nodes): Update size.
5958 (cgraph_mark_inline_edge): Update size.
5959 (cgraph_estimate_growth): Use size info.
5960 (cgraph_check_inline_limits): Check size.
5961 (cgraph_default_inline_p): Likewise.
5962 (cgraph_edge_badness): Compute badness based on benefit and size cost.
5963 (cgraph_decide_recursive_inlining): Check size.
5964 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
5966 (cgraph_decide_inlining): Likewise.
5967 (cgraph_decide_inlining_incrementally): Likewise; honor
5968 PARAM_EARLY_INLINING_INSNS.
5969 (likely_eliminated_by_inlining_p): New predicate.
5970 (estimate_function_body_sizes): New function.
5971 (compute_inline_parameters): Use it.
5972 * except.c (must_not_throw_labels): New function.
5973 * except.h (must_not_throw_labels): Declare.
5974 * tree-inline.c (init_inline_once): Kill inlining_weigths
5975 * tree-ssa-structalias.c: Avoid uninitialized warning.
5976 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
5977 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
5978 (PARAM_INLINE_CALL_COST): Remove.
5979 (PARAM_EARLY_INLINING_INSNS): New.
5980 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
5981 (inline-call-cost): Remove.
5982 (early-inlining-insns): New.
5984 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5986 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
5988 (print_int_cst_bounds_in_octal_p): Likewise.
5989 (dbxout_type): Adjust calls to above functions. Be prepared to deal
5991 * dwarf2out.c (base_type_die): Likewise.
5992 (is_subrange_type): Delete.
5993 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
5994 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
5995 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
5996 if the destination type is boolean.
5997 (build_range_check): Do not special-case subtypes.
5998 (fold_sign_changed_comparison): Likewise.
5999 (fold_unary): Likewise.
6000 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
6001 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
6002 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
6003 * tree.c (subrange_type_for_debug_p): New predicate based on the
6004 former is_subrange_type.
6005 * tree.h (subrange_type_for_debug_p): Declare.
6006 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
6007 (convert_affine_scev): Remove call to above function.
6008 (chrec_convert_aggressive): Likewise.
6009 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
6010 false for conversions involving subtypes.
6011 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
6012 (vrp_val_min): Likewise.
6013 (needs_overflow_infinity): Likewise.
6014 (extract_range_from_unary_expr): Likewise.
6016 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
6018 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
6019 * config/frv/frv.c: Likewise.
6020 * config/s390/s390.c: Likewise.
6021 * config/sparc/sparc.h: Likewise.
6022 * config/i386/i386.h: Likewise.
6023 * config/i386/i386.c: Likewise.
6024 * config/crx/crx.c: Likewise.
6025 * config/m68hc11/m68hc11.h: Likewise.
6026 * config/iq2000/iq2000.c: Likewise.
6027 * config/mn10300/mn10300.h: Likewise.
6028 * config/mn10300/mn10300.c: Likewise.
6029 * config/m68k/m68k.c: Likewise.
6030 * config/rs6000/rs6000.c: Likewise.
6031 * config/rs6000/xcoff.h: Likewise.
6032 * config/rs6000/linux64.h: Likewise.
6033 * config/rs6000/sysv4.h: Likewise.
6034 * config/score/score3.c: Likewise.
6035 * config/score/score7.c: Likewise.
6036 * config/score/score.c: Likewise.
6037 * config/arm/arm.md: Likewise.
6038 * config/mips/mips.c: Likewise.
6039 * config/mips/mips.md: Likewise.
6040 * config/bfin/bfin.h: Likewise.
6041 * config/pa/pa.c: Likewise.
6042 * config/pa/constraints.md: Likewise.
6044 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
6045 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
6046 * config/pdp11/pdp11.h: Use memory_address_p instead.
6048 2009-05-14 Ian Lance Taylor <iant@google.com>
6050 * passes.c (finish_optimization_passes): Change i to int.
6051 * plugin.c (plugins_active_p): Change event to int.
6052 (dump_active_plugins): Likewise.
6053 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
6055 * tree.c (tree_range_check_failed): Change c to unsigned int.
6056 (omp_clause_range_check_failed): Likewise.
6057 (build_common_builtin_nodes): Change mode to int. Add cast.
6058 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
6059 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
6061 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
6062 ++ or -- with a variable of enum type.
6064 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
6067 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
6069 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
6071 * store-motion.c: Do not include params.h
6072 * Makefile.in: Fix dependencies for various files.
6074 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
6076 * auto-inc-dec.c: Fix pass description, remove apparent
6077 accidental duplication.
6079 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
6082 * ipa-utils.h (memory_identifier_string): Moved to ...
6083 * tree.h (memory_identifier_string): Here. Add GTY(()).
6085 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
6087 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
6088 in the former documentation of...
6089 (GO_IF_LEGITIMATE_ADDRESS): ... this.
6090 * ira-conflicts.c (get_dup_num): Use address_operand.
6091 * targhooks.c (default_legitimate_address_p): New.
6092 * targhooks.h (default_legitimate_address_p): New.
6093 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
6095 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
6096 * target.h (struct target): Add legitimate_address_p.
6097 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
6098 (TARGET_INITIALIZER): Include it.
6100 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6101 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
6102 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
6103 (TARGET_LEGITIMATE_ADDRESS_P): New.
6105 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6106 (REG_OK_STRICT_P): Delete.
6107 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
6108 (frv_legitimate_address_p_1): ... this.
6109 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
6110 (frv_legitimate_address_p_1): ... the renamed old
6111 frv_legitimate_address_p.
6112 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
6113 (TARGET_LEGITIMATE_ADDRESS_P): New.
6115 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6116 * config/s390/s390-protos.h (legitimate_address_p): Remove.
6117 * config/s390/s390.c (legitimate_address_p): Rename to...
6118 (s390_legitimate_address_p): ... this, make static.
6119 (legitimize_address): Adjust call.
6120 (TARGET_LEGITIMATE_ADDRESS_P): New.
6121 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
6123 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6124 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
6125 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
6126 (TARGET_LEGITIMATE_ADDRESS_P): New.
6128 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6129 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
6130 * config/spu/spu.c (spu_legitimate_address): Rename to...
6131 (spu_legitimate_address_p): ... this, make static.
6132 (TARGET_LEGITIMATE_ADDRESS_P): New.
6134 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6135 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
6136 * config/sparc/sparc.c (legitimate_address_p): Rename to...
6137 (sparc_legitimate_address_p): ... this, make static and return bool.
6138 (legitimize_address): Adjust call.
6139 (TARGET_LEGITIMATE_ADDRESS_P): New.
6141 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6142 * config/i386/i386-protos.h (legitimate_address_p): Remove.
6143 * config/i386/i386.c (legitimate_address_p): Rename to...
6144 (ix86_legitimate_address_p): ... this, make static.
6145 (constant_address_p): Move after it, adjust call.
6146 (TARGET_LEGITIMATE_ADDRESS_P): New.
6148 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6149 * config/avr/avr-protos.h (legitimate_address_p): Remove.
6150 * config/avr/avr.c (legitimate_address_p): Rename to...
6151 (avr_legitimate_address_p): ... this, make static.
6152 (legitimize_address): Adjust call.
6153 (TARGET_LEGITIMATE_ADDRESS_P): New.
6155 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6156 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
6157 * config/crx/crx.c (crx_legitimate_address_p): Make static.
6158 (TARGET_LEGITIMATE_ADDRESS_P): New.
6160 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6161 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
6162 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
6163 (TARGET_LEGITIMATE_ADDRESS_P): New.
6165 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6166 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
6168 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
6170 (TARGET_LEGITIMATE_ADDRESS_P): New.
6172 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6173 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
6175 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
6177 (m68hc11_legitimate_address_p): ... this, make static.
6178 (go_if_legitimate_address_internal): Rename to...
6179 (m68hc11_legitimate_address_p_1): ... this.
6180 (legitimize_address): Adjust call.
6181 (TARGET_LEGITIMATE_ADDRESS_P): New.
6183 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6184 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
6185 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
6186 (TARGET_LEGITIMATE_ADDRESS_P): New.
6188 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6189 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
6190 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
6191 (mn10300_legitimate_address_p): ... this, make static.
6192 (TARGET_LEGITIMATE_ADDRESS_P): New.
6194 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6195 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
6196 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
6197 (TARGET_LEGITIMATE_ADDRESS_P): New.
6199 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6200 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
6201 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
6202 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6203 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
6204 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
6205 (rs6000_legitimate_address_p): ... this, make static.
6206 (TARGET_LEGITIMATE_ADDRESS_P): New.
6207 (REG_MODE_OK_FOR_BASE_P): Delete.
6208 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
6210 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6211 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
6213 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
6214 static, adjust types.
6215 (TARGET_LEGITIMATE_ADDRESS_P): New.
6217 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6218 * config/score/score.c (score_address_p): Rename to...
6219 (score_legitimate_address_p): ... this.
6220 (TARGET_LEGITIMATE_ADDRESS_P): New.
6221 * config/score/score3.c (score3_address_p): Rename to...
6222 (score3_legitimate_address_p): ... this.
6223 * config/score/score7.c (score7_address_p): Rename to...
6224 (score7_legitimate_address_p): ... this.
6226 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
6227 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
6228 GO_IF_LEGITIMATE_ADDRESS): Delete.
6229 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
6230 thumb2_legitimate_address_p): Delete.
6231 (arm_legitimate_address_p): Rename to...
6232 (arm_legitimate_address_outer_p): ... this.
6233 * config/arm/constraints.md ("Uq"): Adjust call.
6234 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
6235 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
6237 (arm_legitimate_address_outer_p): ... this.
6238 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
6240 (TARGET_LEGITIMATE_ADDRESS_P): New.
6242 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6243 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
6244 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
6245 (TARGET_LEGITIMATE_ADDRESS_P): New.
6247 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6248 * config/vax/vax-protos.h (legitimate_address_p): Remove.
6249 * config/vax/vax.c (legitimate_address_p): Rename to...
6250 (vax_legitimate_address_p): ... this, make static.
6251 (TARGET_LEGITIMATE_ADDRESS_P): New.
6253 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6254 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
6255 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
6256 (TARGET_LEGITIMATE_ADDRESS_P): New.
6258 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6259 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
6260 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
6261 (mmix_legitimate_address_p): ... this, make static.
6262 (TARGET_LEGITIMATE_ADDRESS_P): New.
6264 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6265 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
6266 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
6267 (TARGET_LEGITIMATE_ADDRESS_P): New.
6269 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
6271 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
6272 of MODE_COMPLEX_INT.
6274 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6276 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
6277 LCT_NORMAL in function call.
6278 * mips-tdump.c (print_file_desc): Add cast to enum type.
6279 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
6280 (mark_stabs): Add casts to enum types.
6281 (parse_stabs_common): Add casts to enum types.
6283 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
6285 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
6286 Check for invalid values of LETTER.
6288 2009-05-13 Taras Glek <tglek@mozilla.com>
6290 * attribs.c (register_attribute): moved out attribute registration
6291 into register_attribute.
6292 * doc/plugins.texi: Documented register_attribute and
6294 * gcc-plugin.h: Added forward decl for register_attribute.
6295 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
6296 * plugin.c (register_callback, invoke_plugin_callbacks): Added
6297 PLUGIN_ATTRIBUTES boilerplate.
6299 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
6301 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
6302 values even in sentinel and empty entries.
6303 (ms_printf_flag_specs): Likewise.
6304 (ms_scanf_flag_specs): Likewise.
6305 (ms_strftime_flag_specs): Likewise.
6306 (ms_print_char_table): Likewise.
6307 (ms_scan_char_table): Likewise.
6308 (ms_time_char_table): Likewise.
6310 2009-05-13 Doug Kwan <dougkwan@google.com>
6312 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
6314 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
6316 * config/mips/mips.md (store): Add attributes for QI and HI.
6318 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
6319 (truncdi<mode>2): ... this new pattern.
6321 2009-05-13 Brad Hards <bradh@kde.org>
6323 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
6325 2009-05-14 Jakub Jelinek <jakub@redhat.com>
6326 Ben Elliston <bje@au.ibm.com>
6329 * dse.c (check_mem_read_rtx): Guard against width == -1.
6331 2009-05-13 Michael Matz <matz@suse.de>
6334 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
6335 (trivially_conflicts_p): New function.
6336 (insert_backedge_copies): Use it.
6338 2009-05-13 Janis Johnson <janis187@us.ibm.com>
6340 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
6341 (handle_stdc_pragma): Use new enum constant names.
6342 (handle_pragma_float_const_decimal64): Ditto.
6344 2009-05-13 Ian Lance Taylor <iant@google.com>
6346 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
6349 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
6351 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
6352 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
6354 * config/m68k/m68k.h (FL_UCLINUX): Define.
6356 2009-05-13 Jan Hubicka <jh@suse.cz>
6358 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
6360 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
6362 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
6363 unless -fschedule-insns is specified.
6365 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
6368 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
6369 TARGET_EXPAND_CBRANCHDI4.
6370 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
6371 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
6372 (cmpeqdi): Fix comment.
6374 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
6376 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
6377 (sh_legitimate_address_p): Likewise.
6378 * config/sh/sh.c (sh_legitimate_index_p): New.
6379 (sh_legitimate_address_p): Likewise.
6380 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
6381 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
6382 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
6383 (MAYBE_BASE_REGISTER_RTX_P): New macro.
6384 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
6385 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
6386 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
6387 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
6388 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
6390 2009-05-12 Jan Hubicka <jh@suse.cz>
6392 * tree-inline.c (estimate_operator_cost): Add operands;
6393 when division happens by constant, it is cheap.
6394 (estimate_num_insns): Loads and stores are not having cost of 0;
6395 EH magic stuff is cheap; when computing runtime cost of switch,
6396 use log2 base of amount of its cases; builtin_expect has cost of 0;
6397 compute cost for moving return value of call.
6398 (init_inline_once): Initialize time_based flags.
6399 * tree-inline.h (eni_weights_d): Add time_based flag.
6401 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
6403 * df-core.c: Update head documentation.
6405 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6408 * rs6000.c (rs6000_generate_compare): Use op1b instead of
6409 shadowing exisiting variable op1.
6411 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
6414 * config/i386/driver-i386.c (processor_signatures): New enum.
6415 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
6416 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
6417 processor signature to detect geode processor.
6419 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
6423 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
6425 * optabs.c (prepare_cmp_insn): Temporarily disable test that
6426 causes spurious differences between trunk and cond-optab branch.
6428 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
6430 * dojump.c (compare_from_rtx): Delete.
6431 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
6432 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
6433 if the comparison does not satisfy the predicate; test predicates for
6434 operands 2 and 3 of a cstore pattern. Don't try cstore optab
6435 further if one existing pattern fails.
6436 * expr.h (compare_from_rtx): Delete.
6437 (prepare_operand): Declare it.
6438 * optabs.c: Change "lib call" to "libcall" throughout.
6439 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
6440 HAVE_conditional_trap, emit_cmp_insn): Delete.
6441 (can_compare_p): Delete cmp_optab case.
6442 (prepare_float_lib_cmp): Return an rtx and a machine mode.
6443 Accept other parameters by value.
6444 (prepare_operand): Make non-static.
6445 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
6446 other parameters by value. Try to widen operands here based on
6447 an optab_methods argument and looking at cbranch_optab.
6448 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
6449 loop. Use cbranch_optab directly.
6450 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
6451 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
6453 (emit_conditional_move, emit_conditional_add): Inline what's needed
6454 of compare_from_rtx, using new prepare_cmp_insn for the rest.
6455 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
6456 with COMPARE. Move cmov_optab and cstore_optab above
6457 with cbranch_optab, move cmp_optab down with ucmp_optab,
6458 remove tst_otpab. Do not initialize trap_rtx.
6459 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
6460 for trap code. Do not check HAVE_conditional_trap. Use
6461 prepare_cmp_insn. Accept no predicate for operand 3.
6462 * optabs.h (OTI_cmp): Mark as used only for libcalls.
6463 (OTI_ctrap, ctrap_optab): New.
6464 (tst_optab): Delete.
6465 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
6466 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
6467 with lookup of ctrap_optab.
6468 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
6472 * combine.c (combine_simplify_rtx, simplify_set): Do not
6473 special case comparing against zero for cc0 machines.
6474 * simplify-rtx.c (simplify_binary_operation_1): Never remove
6475 COMPARE on cc0 machines.
6476 (simplify_relational_operation): Return a new expression when
6477 a COMPARE could be removed.
6478 * final.c (final_scan_insn): Compare cc_status values
6479 against LHS of a (compare FOO (const_int 0)) cc0 source.
6480 Also check if cc_status.value is the full compare.
6482 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
6483 (cstoreMM4): Document.
6484 (conditional_trap): Document ctrapMM4 instead.
6485 (sync_compare_and_swapMM): Refer to cbranchcc4.
6486 (Dependent Patterns): Eliminate obsolete information referring to
6487 the old jump optimization phase.
6488 (Canonicalization): Include cbranchcc4 case, omit canonicalization
6489 of compares with 0 on cc0 machines.
6490 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
6491 avoiding references to cc0. Remove text about storing operands
6493 * doc/tm.texi (Condition Codes): Include blurb on different
6494 condition code representations, separate into subsections for
6495 CC0, MODE_CC and conditional execution.
6497 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
6498 alpha_emit_setcc): Accept operands and a machine mode.
6499 * config/alpha/alpha.c (alpha_emit_conditional_branch):
6500 Get code/op0/op1 from operands, use machine mode argument
6501 instead of alpha_compare.fp_p. Emit the branch here.
6502 (alpha_emit_setcc): Likewise, and return boolean.
6503 (alpha_emit_conditional_move): Likewise. Assert that
6504 cmp_op_mode == cmp_mode, and simplify accordingly.
6505 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
6506 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
6507 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
6509 (stack probe test): Use cbranchdi4.
6510 * config/alpha/predicates.md (alpha_cbranch_operator): New.
6512 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
6513 * config/arc/arc.h (movsicc, movsfcc): Use it.
6514 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
6515 (cbranchsi4, cstoresi4): New.
6516 (cmpsi, bCC and sCC expanders): Remove.
6518 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
6519 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
6520 * config/arm/predicates.md (arm_comparison_operator): Only include
6521 floating-point operators if there is a hardware floating-point unit.
6522 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
6523 deferring to cbranch_cc and cstore_cc respectively.
6524 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
6525 cbranch_cc, cstore_cc): New.
6526 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
6528 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
6530 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
6531 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
6533 (adjust_insn_length): Adjust calls.
6534 (avr_reorg): Handle (compare (foo) (const_int 0)).
6535 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
6536 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
6537 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
6538 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
6540 (cbranchqi4, cbranchhi4, cbranchsi4): New.
6541 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
6543 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
6544 (cbranchsi4, cstorebi4, cstoresi4): New.
6545 (movbisi): This insn is duplicate, split it to zero_extend.
6546 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
6547 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
6548 (bfin_optimize_loop): Use cbranch expander.
6549 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
6550 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
6551 (bfin_bimode_comparison_operator): ... this.
6552 (bfin_direct_comparison_operator): New.
6554 * config/cris/cris.c (cris_normal_notice_update_cc): Look
6555 inside (compare FOO (const_int 0)).
6556 (cris_rtx_costs): Handle ZERO_EXTRACT.
6557 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
6558 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
6559 (*tstdi_v32): Delete.
6560 (*cmpdi_non_v32): Add M alternative for operand 1.
6561 (cmpsi, cmp<mode>): Make private.
6562 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
6564 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
6566 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
6567 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
6568 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
6569 (cc_reg_operand): New.
6571 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
6572 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
6573 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
6574 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
6575 crx_expand_scond): Delete.
6577 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
6579 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
6580 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
6582 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
6583 cstoresi4, cstoresf4, cstoredf4): New.
6584 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
6585 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
6586 Receive the entire operands array.
6587 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
6588 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
6589 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
6590 Get test/op0/op1 from the operands array.
6591 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
6593 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
6594 (h8300_expand_store): New.
6595 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
6597 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
6598 (h8300_expand_store): New.
6599 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
6600 or do not try to produce (set (cc0) REG).
6601 (peepholes): Wrap arguments with COMPARE. Add a peephole to
6602 change a compare into a move to a scratch register. Disable some
6603 peepholes when comparing with zero.
6604 (tstsi, tsthi, tstsi, cmpqi): Make private.
6607 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
6610 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
6611 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
6612 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
6613 (ix86_emit_i387_log1p): Use cbranchxf2.
6614 (ix86_expand_setcc): Return void.
6615 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
6616 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
6617 cmp<MODEF>, cmpcc): Remove.
6618 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
6619 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
6620 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
6621 (sCC and bCC expanders): Remove.
6622 (stack_protect_test): Use cbranchcc4.
6624 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
6626 (ia64_expand_compare): Accept three rtx by reference and return void.
6627 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
6628 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
6629 from *expr. Update *expr with the BImode comparison to do.
6630 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
6631 cmptf, bCC, sCC, conditional_trap): Delete.
6632 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
6633 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
6634 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
6635 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
6636 * config/ia64/predicates.md (ia64_cbranch_operator): New.
6638 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
6639 type of last argument.
6640 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
6641 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
6642 use machine mode argument instead of branch_type. Remove dead
6643 code for floating-point comparisons.
6644 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
6645 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
6647 (cbranchsi4, cstoresi4): New.
6648 * config/iq2000/predicates.md (reg_or_const_operand): New.
6650 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
6651 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
6652 (b<code>_op): Rewrite to...
6653 (bcc_op): ... this, using match_operator.
6654 (s<code>_op): Rewrite to...
6655 (scc_op): ... this, using match_operator.
6656 (s<code>_24_op): Rewrite to...
6657 (scc_op_24): ... this, using match_operator.
6658 (s<code>_<mode>): Rewrite to...
6659 (cstore<mode>4): ... this, using match_operator.
6660 (s<code>_<mode>_24): Rewrite to...
6661 (cstore<mode>4_24): ... this, using match_operator.
6662 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
6663 m32c_unpend_compare, m32c_expand_scc): Delete.
6664 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
6665 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
6666 (m32c_expand_movcc): Change NE to EQ if necessary.
6667 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
6669 * config/m32r/m32r-protos.h (gen_cond_store): New.
6670 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
6671 (gen_cond_store): New, from sCC patterns.
6672 (m32r_expand_block_move): Use cbranchsi4.
6673 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
6674 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
6675 (cbranchsi4, cstoresi4): New.
6677 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
6679 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
6680 (m68hc11_notice_update_cc): Look into a compare with 0.
6681 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
6683 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
6684 cmphi, cmpqi, bCC): Delete.
6685 (cbranchsi4, cbranchhi4, cbranchqi4): New.
6686 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
6687 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
6690 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
6691 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
6692 * config/m68k/constraints.md (H): New.
6693 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
6694 the define_insn below.
6695 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
6696 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
6697 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
6698 patterns): Wrap RHS with COMPARE.
6699 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
6700 (*cmpdi_internal): Name this pattern.
6701 (cmpdi): Change to define_insn.
6702 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
6703 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
6704 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
6706 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
6707 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
6708 (conditional_trap): Change to...
6709 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
6710 (*conditional_trap): Use the ordered_comparison_operator and
6711 const1_operand predicates.
6712 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
6713 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
6714 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
6715 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
6717 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
6718 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
6719 (mcore_gen_compare): New.
6720 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
6721 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
6722 (mcore_gen_compare): ... this.
6723 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
6724 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
6725 (stack probe pattern): Use cbranchsi4.
6727 * config/mips/predicates.md (mips_cstore_operator): New.
6728 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
6729 * config/mips/mips.md (any_cond): Delete.
6730 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
6732 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
6733 fixuns_truncsfdi2): Use cbranch patterns.
6734 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
6735 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
6736 Adjust call to mips_expand_conditional_branch.
6737 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
6739 * config/mips/mips-protos.h (mips_expand_conditional_branch,
6740 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
6741 * config/mips/mips.c (cmp_operands): Delete.
6742 (mips_emit_compare): Get comparison operands from *op0/*op1.
6743 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
6744 that it succeeds. Use op0/op1 instead of cmp_operands.
6745 (mips_expand_conditional_branch, mips_expand_conditional_move,
6746 mips_expand_conditional_trap): Likewise.
6747 (mips_block_move_loop): Use cbranch patterns.
6748 * config/mips/mips.h (cmp_operands): Delete.
6750 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
6751 (mmix_gen_compare_reg): Just return a register in the right CC mode.
6752 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
6753 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
6754 (*cmpcc_folded): Rename to...
6755 (*cmpdi_folded): this.
6756 (*cmpcc): Rename to...
6758 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
6761 (cbranchdf4): New. Handle invalid comparisons here.
6762 * config/mmix/predicates.md (float_comparison_operator): New.
6764 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
6765 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
6766 * config/mn10300/mn10300.md (tst): Delete.
6767 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
6768 Name these patterns and wrap RHS in a compare.
6769 (*cmpsi): Make this pattern private. Include tst.
6770 (*cmpsf): Make this pattern private.
6771 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
6772 (compare with zero peepholes): Likewise.
6774 (cbranchsi4, cbranchsf4): New.
6775 (casesi): Use cbranchsi4.
6777 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
6778 hppa_branch_type): Delete.
6779 (return_addr_rtx): Use cbranchsi4.
6780 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
6781 Emit CCFPmode comparison here.
6782 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
6783 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
6784 hppa_branch_type): Delete.
6785 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
6786 (movsicc, movdicc): Remove references to hppa_compare_op0,
6787 hppa_compare_op1 and compare_from_rtx.
6788 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
6789 (casesi): Use cbranchsi4.
6791 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
6792 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
6793 * config/pdp11/pdp11.md (register_or_const0_operand): New.
6794 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
6795 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
6797 (cbranchdf4, cbranchhi4, cbranchqi4): New.
6798 (*branch, *branch_inverted): New.
6800 * config/picochip/picochip.md (cbranchhi4): Use
6801 ordered_comparison_operator.
6802 (cmphi, bCC): Remove.
6804 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
6805 (trap_comparison_operator): Delete.
6806 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
6807 rs6000_emit_cbranch): Accept mode and operands.
6808 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
6809 rs6000_compare_fp_p): Delete.
6810 (rs6000_generate_compare): Accept mode and comparison. Extract code
6811 and op0/op1 from there. Replace references to rs6000_compare_op0
6812 and rs6000_compare_op1.
6813 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
6814 extract result from passed operands.
6815 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
6816 extract loc from passed operands.
6817 (rs6000_emit_cmove): Likewise.
6818 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
6819 rs6000_compare_fp_p): Delete.
6820 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
6821 (cbranch<GPR>4, cbranch<FP>4): New.
6822 (cstore<mode>4): New. Consolidate here all choices about when to use
6823 portable or specialized sCC sequences.
6824 (stack_protect_test): Use cbranchsi4.
6825 (conditional_trap): Replace with ctrap<GPR>4.
6826 (conditional trap insn): Replace trap_comparison_operator with
6827 ordered_comparison_operator.
6829 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
6830 (s390_emit_prologue): Use ctrap.
6831 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
6832 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
6833 New predicates replacing...
6834 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
6835 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
6836 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
6837 (add<mode>cc): Do not use s390_compare_op0/op1.
6838 (s<code>): Change to...
6839 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
6841 (cstorecc4): ... this. Handle EQ or NE equally.
6842 (*sne): Un-privatize for use in cstorecc4.
6843 (b<code>): Change to...
6844 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
6845 (conditional_trap): Replace with...
6846 (ctrap<GPR>4, ctrap<FP>4): ... these.
6847 (stack_protect): Use cbranchcc4.
6849 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
6850 * config/score/score-protos.h (score_gen_cmp): Delete.
6851 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
6852 (score_block_move-loop): Use cbranchsi4.
6853 * config/score/score.md (cbranchsi4): New.
6854 (cmpsi, bCC): Delete.
6855 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
6856 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
6857 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
6858 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
6859 * config/score/score3.h (score3_gen_cmp): Delete.
6860 * config/score/score7.h (score7_gen_cmp): Delete.
6862 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
6863 (sh_emit_scc_to_t): ... this. Return void.
6864 (from_compare): Rename to...
6865 (sh_emit_compare_and_branch): ... this.
6866 (sh_emit_compare_and_set): New.
6867 (sh_expand_t_scc): Accept operands.
6868 * config/sh/predicates.md (sh_float_comparison_operator): New.
6869 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
6870 (prepare_scc_operands): Rename to...
6871 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
6873 (sh_emit_cheap_store_flag): New.
6874 (sh_emit_set_t_insn): New.
6875 (from_compare): Rename to...
6876 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
6877 handling of TARGET_SH2E floating point to avoid recursive call.
6878 Generate branch here.
6879 (sh_emit_compare_and_set): New.
6880 (sh_expand_t_scc): Get op0/op1 from arguments.
6881 (sh_emit_cheap_store_flag): New.
6882 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
6884 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
6885 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
6886 (movsicc, movdicc): Do nothing when it recreated operands from
6887 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
6888 prepare_scc_operands (now sh_emit_scc_to_t).
6889 (udivdi3): Use cstoresi4.
6890 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
6891 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
6892 (cbranchint4_media, cbranchfp4_media): New.
6893 (casesi): Use cbranchdi4.
6894 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
6896 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
6897 (movnegt): Remove second operand.
6898 (cbranchsf4, cbranchdf4): New.
6899 (stack_protect): Use cbranchdi4/cbranchsi4.
6901 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
6902 (gen_compare_reg): Accept comparison, extract part of it to...
6903 (gen_compare_reg_1): ... this.
6904 (gen_compare_operator): Delete.
6905 (gen_v9_scc): Accept separate destination, comparison code and arms.
6906 Do not use sparc_compare_op0/sparc_compare_op1.
6907 (emit_scc_insn, emit_conditional_branch_insn): New.
6908 (emit_v9_brxx): Make static. Remove useless assertion.
6909 (sparc_emit_float_lib_cmp): Return RTL instead of calling
6911 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
6912 * config/sparc/sparc-protos.h (gen_compare_reg,
6913 sparc_emit_float_lib_cmp): Adjust prototype.
6914 (emit_scc_insn, emit_conditional_branch_insn): New.
6915 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
6916 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
6917 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
6918 iterators to the top.
6919 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
6920 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
6921 snedi_special_trunc): Delete.
6922 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
6923 and snedi_special_trunc.
6924 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
6925 cbranchdi4, cbranch<F:mode>4): New.
6926 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
6927 here. Use gen_compare_reg instead of gen_compare_operator.
6928 (conditional_trap): Replace with...
6929 (ctrapsi4, ctrapdi4): ... this.
6930 (stack_protect_test): Use cbranchcc4.
6932 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
6934 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
6935 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
6936 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
6937 from operands[0] or operands[3] depending on is_set.
6938 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
6939 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
6940 cmpdf, bCC), sCC: Remove.
6941 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
6942 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
6944 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
6945 spu_emit_branch_or_set.
6947 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
6949 * config/stormy16/stormy16.h (xstormy16_compare_op0,
6950 xstormy16_compare_op1): Delete.
6951 * config/stormy16/stormy16.c (xstormy16_compare_op0,
6952 xstormy16_compare_op1): Delete.
6953 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
6955 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
6956 (cmphi, cmpsi, bCC): Remove.
6958 * config/v850/v850.md (tstsi, cmpsi): Fold into...
6959 (*cmpsi): ... this one.
6960 (cbranchsi4, cstoresi4): New.
6961 (bCC expanders): Delete.
6962 (sCC insns): Fold into...
6963 (*setcc): ... this one.
6964 (casesi): Do not use gen_cmpsi and gen_bgtu.
6965 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
6966 (movsicc): Simplify.
6967 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
6969 * config/vax/vax-protos.h (cond_name): New.
6970 (vax_output_conditional_branch): Remove.
6971 * config/vax/vax.c (cond_name): New.
6972 (vax_output_conditional_branch): Remove.
6973 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
6974 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
6975 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
6976 (bit<VAXint>): Wrap source with (compare).
6977 (b<code> and following unnamed pattern): Rename to *branch and
6978 *branch_reversed. Change macroization to match_operator.
6979 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
6981 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
6982 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
6983 Change last argument to machine_mode.
6984 (xtensa_expand_scc): Add machine_mode argument.
6985 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
6986 (gen_conditional_move, xtensa_expand_conditional_branch,
6987 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
6988 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
6989 Adjust operand numbers.
6990 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
6992 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
6993 (cmpsi, cmpsf, b<code>, s<code>): Delete.
6994 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
6996 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
6998 * optabs.c (prepare_cmp_insn): Temporarily disable test that
6999 causes spurious differences between trunk and cond-optab branch.
7001 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
7004 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
7006 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
7008 * tree.c (iterative_hash_pointer): Delete.
7009 (iterative_hash_expr): Short-circuit handling of NULL pointer.
7010 Hash UIDs and versions of SSA names. Don't special-case built-in
7011 function declarations.
7013 2009-05-11 Ian Lance Taylor <iant@google.com>
7016 * graphite.c: Force -Wc++-compat to only be a warning before
7017 #including "cloog/cloog.h".
7019 2009-05-11 Martin Jambor <mjambor@suse.cz>
7021 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
7023 2009-05-11 Jan Hubicka <jh@suse.cz>
7025 * tree-ssa-loop-ivcanon.c: Include target.h
7026 (struct loop_size): new structure.
7027 (constant_after_peeling): New predicate.
7028 (tree_estimate_loop_size): New function.
7029 (estimated_unrolled_size): Rewrite for new estimates.
7030 (try_unroll_loop_completely): Use new estimates.
7031 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
7033 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
7035 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
7036 libcpp interface change.
7037 (spu_macro_to_expand): Likewise.
7039 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
7041 PR tree-optimization/40026
7042 * gimplify.c (gimplify_init_constructor): Change initial conditional
7043 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
7044 optimize_compound_literals_in_ctor.
7046 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
7048 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
7050 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
7052 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
7054 * tree-vect-data-refs.c (vect_analyze_group_access): Use
7055 HOST_WIDE_INT for gap.
7057 2009-05-11 Ira Rosen <irar@il.ibm.com>
7059 PR tree-optimization/40074
7060 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
7061 account in group size and step comparison.
7063 2009-05-11 Richard Guenther <rguenther@suse.de>
7065 * passes.c (init_optimization_passes): Strip now incorrect comment.
7066 (execute_function_todo): Do not set PROP_alias.
7067 * tree-pass.h (PROP_alias): Remove.
7068 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
7069 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
7070 * tree-nrv.c (pass_return_slot): Likewise.
7071 * tree-object-size.c (pass_object_sizes): Likewise.
7072 * tree-ssa-dom.c (pass_dominator): Likewise.
7073 (pass_phi_only_cprop): Likewise.
7074 * tree-ssa-dse.c (pass_dse): Likewise.
7075 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
7076 (pass_cselim): Likewise.
7077 * tree-ssa-pre.c (pass_pre): Likewise.
7078 (pass_fre): Likewise.
7079 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7080 * tree-ssa-sink.c (pass_sink_code): Likewise.
7081 * tree-stdarg.c (pass_stdarg): Likewise.
7082 * tree-tailcall.c (pass_tail_calls): Likewise.
7083 * tree-vrp.c (pass_vrp): Likewise.
7085 2009-05-10 Ian Lance Taylor <iant@google.com>
7087 * basic-block.h (enum profile_status): Break out of struct
7089 * cgraph.h (struct inline_summary): Break out of struct
7091 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
7092 of struct cgraph_order_sort.
7093 * combine.c (enum undo_kind): New enum, broken out of struct undo.
7094 * cse.c (struct branch_path): Break out of struct
7095 cse_basic_block_data.
7096 * except.h (enum eh_region_type): Break out of struct eh_region.
7097 * gcc.c (enum add_del): Break out of struct modify_target.
7098 * genrecog.c (enum decision_type): Break out of struct decision_test.
7099 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
7101 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
7102 * regmove.c (enum match_use): New enum, broken out of struct match.
7103 * sched-int.h (enum post_call_group): New enum, broken out of
7105 (struct deps_reg): Break out of struct deps.
7106 * target.h (struct asm_int_op): Break out of struct gcc_target.
7107 * tree-eh.c (struct goto_queue_node): Break out of struct
7109 * tree-inline.h (enum copy_body_cge_which): Break out of
7111 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
7113 * c-decl.c (in_struct, struct_types): New static variables.
7114 (pushtag): Add loc parameter. Change all callers.
7115 (lookup_tag): Add ploc parameter. Change all callers.
7116 (check_compound_literal_type): New function.
7117 (parser_xref_tag): Add loc parameter. Change all callers. If
7118 -Wc++-compat, warn about struct/union/enum types defined within a
7120 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
7121 and loc parameters. Change all callers. Change error calls to
7122 error_at, using loc. For a redefinition, if the location of the
7123 original definition is known, report it. Set in_struct and
7124 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
7125 (finish_struct): Add new parameters enclosing_in_struct and
7126 enclosing_struct_types. Change all callers. Set
7127 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
7128 in the struct. If in a struct, add this struct to struct_types.
7129 (start_enum): Add loc parameter. Change all callers. Use
7130 error_at for errors, using loc. For a redefinition, if the
7131 location of the original definition is known, report it. If in a
7132 struct, add this enum type to struct_types. If -Wc++-compat warn
7133 if in sizeof, typeof, or alignof.
7134 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
7135 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
7136 (c_parser_enum_specifier): Get enum location for start_enum.
7137 (c_parser_struct_or_union_specifier): Get struct location for
7138 start_struct. Save in_struct and struct_types status between
7139 start_struct and finish_struct.
7140 (c_parser_cast_expression): Get location of cast.
7141 (c_parser_alignof_expression): Get location of type.
7142 (c_parser_postfix_expression): Likewise.
7143 (c_parser_postfix_expression_after_paren_type): Add type_loc
7144 parameter. Change all callers. Call check_compound_literal_type.
7145 Use type_loc for error about variable size type.
7146 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
7147 of an enum constant from an enum type defined in a struct or union.
7148 (c_cast_expr): Add loc parameter. Change all callers. If
7149 -Wc++-compat, warn about defining a type in a cast.
7150 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
7151 (start_enum, start_struct, finish_struct): Update declarations.
7152 (parser_xref_tag, c_cast_expr): Update declarations.
7153 (check_compound_literal_type): Declare.
7155 2009-05-11 Ben Elliston <bje@au.ibm.com>
7157 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
7158 for recent libcpp interface change.
7159 (rs6000_macro_to_expand): Likewise.
7161 2009-05-10 Michael Matz <matz@suse.de>
7164 * config/arm/arm.c (require_pic_register): Emit on entry edge,
7165 not at entry of function.
7167 2009-05-10 Richard Guenther <rguenther@suse.de>
7169 PR tree-optimization/40081
7171 * tree-sra.c (instantiate_element): Instantiate scalar replacements
7172 using the main variant of the element type. Do not fiddle with
7173 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
7175 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
7176 structs with volatile fields.
7178 2009-05-10 Jan Hubicka <jh@suse.cz>
7180 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
7181 (estimate_move_cost): Assert that it does not get called for
7183 (estimate_num_insns): Skip VOID types in argument handling.
7184 (optimize_inline_calls): Delete unreachable blocks and verify that
7187 2009-05-10 Jan Hubicka <jh@suse.cz>
7189 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
7190 * cgraph.c (cgraph_mark_address_taken_node): New function.
7191 (dump_cgraph_node): Dump new flag.
7192 * cgraph.h (struct cgraph_node): Add address_taken.
7193 (cgraph_mark_address_taken_node): New function.
7194 * ipa.c (cgraph_postorder): Prioritize functions with address taken
7195 since new direct calls can be born.
7197 2009-05-10 Joseph Myers <joseph@codesourcery.com>
7199 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
7202 2009-05-10 Jan Hubicka <jh@suse.cz>
7205 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
7207 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
7208 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
7209 * tree-inline.c (copy_bb): Set frequency correctly.
7210 (fold_marked_statements): Update call to
7211 cgraph_update_edges_for_call_stmt.
7213 2009-05-10 Joseph Myers <joseph@codesourcery.com>
7215 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
7216 identifiers in diagnostics.
7217 * config/arm/arm.c (arm_handle_fndecl_attribute,
7218 arm_handle_isr_attribute): Likewise.
7219 * config/avr/avr.c (avr_handle_progmem_attribute,
7220 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
7221 * config/bfin/bfin.c (handle_int_attribute,
7222 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
7223 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
7224 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
7226 * config/darwin.c (darwin_handle_kext_attribute,
7227 darwin_handle_weak_import_attribute): Likewise.
7228 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
7229 h8300_handle_eightbit_data_attribute,
7230 h8300_handle_tiny_data_attribute): Likewise.
7231 * config/i386/i386.c (ix86_handle_cconv_attribute,
7232 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
7233 * config/i386/winnt.c (ix86_handle_shared_attribute,
7234 ix86_handle_selectany_attribute): Likewise.
7235 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
7236 * config/m32c/m32c.c (function_vector_handler): Likewise.
7237 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
7238 m68hc11_handle_fntype_attribute): Likewise.
7239 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
7240 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
7241 * config/mips/mips.c (mips_insert_attributes,
7242 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
7243 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
7244 rs6000_handle_struct_attribute): Likewise.
7245 * config/sh/sh.c (sh_insert_attributes,
7246 sh_handle_resbank_handler_attribute,
7247 sh_handle_interrupt_handler_attribute,
7248 sh2a_handle_function_vector_handler_attribute,
7249 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
7251 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
7252 * config/spu/spu.c (spu_handle_fndecl_attribute,
7253 spu_handle_vector_attribute): Likewise.
7254 * config/stormy16/stormy16.c
7255 (xstormy16_handle_interrupt_attribute): Likewise.
7256 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
7257 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
7259 2009-05-10 Joseph Myers <joseph@codesourcery.com>
7261 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
7262 (pp_translate_identifiers): New.
7263 (pp_identifier): Only conditionally translate identifier to locale
7265 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
7266 (pp_base_tree_identifier): Only conditionally translate identifier
7267 to locale character set.
7268 * c-pretty-print.c (M_): Define.
7269 (pp_c_type_specifier, pp_c_primary_expression): Mark English
7270 fragments for conditional translation with M_.
7271 * tree-pretty-print.c (maybe_init_pretty_print): Disable
7272 identifier translation.
7274 2009-05-10 Richard Guenther <rguenther@suse.de>
7276 PR tree-optimization/40081
7277 * tree-sra.c (instantiate_element): Instantiate scalar replacements
7278 using the main variant of the element type. Do not fiddle with
7279 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
7281 2009-05-09 Jan Hubicka <jh@suse.cz>
7284 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
7285 indirect calls; verify cgraph afterwards.
7287 2009-05-09 Jan Hubicka <jh@suse.cz>
7290 * ipa.c (update_inlined_to_pointer): New function.
7291 (cgraph_remove_unreachable_nodes): Use it.
7293 2009-05-09 Jan Hubicka <jh@suse.cz>
7295 * tree-eh.c (struct leh_state): Remove prev_try.
7296 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
7298 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
7299 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
7300 remove_eh_handler_and_replace, foreach_reachable_handler,
7301 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
7302 * except.h (struct eh_region): Remove eh_region_u_cleanup.
7303 (gen_eh_region_cleanup): Update prototype.
7305 2009-05-09 Jan Hubicka <jh@suse.cz>
7308 * except.c (copy_eh_region): Always set prev_try.
7309 (redirect_eh_edge_to_label): Find outer try.
7310 (foreach_reachable_handler): When looking for prev try
7311 handle case where previous try is not going to be taken.
7313 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7315 PR tree-optimization/40049
7316 * tree-vect-stmts.c (vectorizable_operation): If the machine has
7317 only vector/vector shifts, convert the type of the constant to the
7318 appropriate type to avoid building incorrect trees, which
7319 eventually have problems with garbage collection.
7321 2009-05-08 Joseph Myers <joseph@codesourcery.com>
7323 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
7324 -1 for complex floating-point types if honoring signed zeros.
7326 2009-05-08 Jan Hubicka <jh@suse.cz>
7328 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
7329 argument; handle correctly when profile is absent.
7330 (build_cgraph_edges): Update.
7331 (rebuild_cgraph_edges): Update.
7332 * cgraph.c: Do not include varray.h.
7333 (cgraph_set_call_stmt_including_clones): New function.
7334 (cgraph_create_edge_including_clones): Likewise
7335 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
7336 (cgraph_update_edges_for_call_stmt): Handle clones.
7337 (cgraph_remove_node): Handle clone tree.
7338 (cgraph_remove_node_and_inline_clones): New function.
7339 (dump_cgraph_node): Dump clone tree.
7340 (cgraph_clone_node): Handle clone tree.
7341 (clone_function_name): Bring here from tree-inline.c.
7342 (cgraph_create_virtual_clone): New function.
7343 * cgraph.h (ipa_replace_map): Move here from ipa.h.
7344 (cgraph_clone_info): New function.
7345 (strut cgraph_node): Add clone_info and new clone tree pointers.
7346 (cgraph_remove_node_and_inline_clones,
7347 cgraph_set_call_stmt_including_clones,
7348 cgraph_create_edge_including_clones,
7349 cgraph_create_virtual_clone): Declare.
7350 (cgraph_function_versioning): Use VEC argument.
7351 (compute_call_stmt_bb_frequency): Update prototype.
7352 (cgraph_materialize_all_clones): New function.
7353 * ipa-cp.c (ipcp_update_cloned_node): Remove.
7354 (ipcp_create_replace_map): Update to VECtors.
7355 (ipcp_update_callgraph): Use virtual clones.
7356 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
7357 (ipcp_update_profiling): Do not update local profiling.
7358 (ipcp_insert_stage): Use VECtors and virtual clones.
7359 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
7360 (clone_of_p): New function.
7361 (cgraph_preserve_function_body_p): Use clone tree.
7362 (cgraph_optimize): Materialize clones.
7363 (cgraph_function_versioning): Update for VECtors.
7364 (save_inline_function_body): Use clone tree.
7365 (cgraph_materialize_clone): New function.
7366 (cgraph_materialize_all_clones): Likewise.
7367 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
7368 * ipa.c: Include gimple.h.
7369 (cgraph_remove_unreachable_nodes): Use clone tree.
7370 * ipa-prop.c (ipa_note_param_call): Update call to
7371 compute_call_stmt_bb_frequencycall.
7372 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
7373 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
7374 (copy_bb): Handle updating of clone tree; add new edge when new call
7376 (expand_call_inline): Be strict about every call having edge.
7377 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
7378 (delete_unreachable_blocks_update_callgraph): New function.
7379 (tree_function_versioning): Use VECtors; always remove unreachable
7380 blocks and fold conditionals.
7381 * tree-inline.h: Do not include varray.h.
7382 (tree_function_versioning): Remove.
7383 * Makefile.in (GTFILES): Remove tree-inline.c
7384 * passes.c (do_per_function): Do only functions having body.
7385 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
7388 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
7389 Andrew Morrow <acm@google.com>
7392 * c-common.c (c_common_attribute_table): Permit deprecated
7393 attribute to take an optional argument.
7394 (handle_deprecated_attribute): If the optional argument to
7395 __attribute__((deprecated)) is not a string ignore the attribute
7398 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
7399 * c-typeck.c (build_component_ref): Likewise.
7400 (build_external_ref): Likewise.
7402 * toplev.c (warn_deprecated_use): Add an attribute argument.
7403 Emit the message associated with __attribute__((deprecated)).
7405 * toplev.h (warn_deprecated_use): Updated.
7407 * doc/extend.texi: Document new optional parameter to
7408 __attribute__((deprecated))
7410 2009-05-08 Michael Eager <eager@eagercon.com>
7412 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
7413 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
7415 2009-05-08 Richard Guenther <rguenther@suse.de>
7417 PR tree-optimization/40062
7418 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
7419 Avoid exponential behavior.
7421 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
7423 PR rtl-optimization/33928
7425 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
7426 process_uses, build_single_def_use_links): New.
7427 (update_df): Update use_def_ref.
7428 (forward_propagate_into): Use get_def_for_use instead of use-def
7430 (fwprop_init): Call build_single_def_use_links and let it initialize
7432 (fwprop_done): Free use_def_ref.
7433 (fwprop_addr): Eliminate duplicate call to df_set_flags.
7434 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
7435 df_rd_simulate_one_insn): New.
7436 (df_rd_bb_local_compute_process_def): Update head comment.
7437 (df_chain_create_bb): Use the new RD simulation functions.
7438 * df.h (df_rd_simulate_artificial_defs_at_top,
7439 df_rd_simulate_one_insn): New.
7440 * opts.c (decode_options): Enable fwprop at -O1.
7441 * doc/invoke.texi (-fforward-propagate): Document this.
7443 2009-05-08 Joseph Myers <joseph@codesourcery.com>
7446 * c-typeck.c (build_binary_op): Handle arithmetic between one real
7447 and one complex operand specially.
7448 * tree-complex.c (some_nonzerop): Do not identify a real value as
7449 zero if flag_signed_zeros.
7451 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
7453 PR rtl-optimization/33928
7454 * loop-invariant.c (record_use): Fix && vs. || mishap.
7456 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
7458 PR rtl-optimization/33928
7459 * loop-invariant.c (struct use): Add addr_use_p.
7460 (struct def): Add n_addr_uses.
7461 (struct invariant): Add cheap_address.
7462 (create_new_invariant): Set cheap_address.
7463 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
7464 (record_uses): Pass df_ref to record_use.
7465 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
7468 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
7470 * config/sh/sh.c: Do not include c-pragma.h.
7472 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
7474 * config/spu/spu.c: Remove include of c-common.h.
7476 2009-05-07 Janis Johnson <janis187@us.ibm.com>
7479 * c-common.h (mark_valid_location_for_stdc_pragma,
7480 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
7481 clear_float_const_decimal64, float_const_decimal64_p): New.
7482 * c.opt (Wunsuffixed-float-constants): New.
7483 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
7484 unsuffixed float constant, handle new warning.
7485 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
7486 * c-decl.c (c_scope): New flag float_const_decimal64.
7487 (set_float_const_decimal64, clear_float_const_decimal64,
7488 float_const_decimal64_p): New.
7489 (push_scope): Set new flag.
7490 * c-parser.c (c_parser_translation_unit): Mark when it's valid
7491 to use STDC pragmas.
7492 (c_parser_external_declaration): Ditto.
7493 (c_parser_compound_statement_nostart): Ditto.
7494 * c-pragma.c (valid_location_for_stdc_pragma,
7495 mark_valid_location_for_stdc_pragma,
7496 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
7497 handle_pragma_float_const_decimal64): New.
7498 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
7499 * cp/semantics.c (valid_location_for_stdc_pragma_p,
7500 set_float_const_decimal64, clear_float_const_decimal64,
7501 float_const_decimal64_p): New dummy functions.
7502 * doc/extend.texi (Decimal Float): Remove statement that the
7503 pragma, and suffix for double constants, are not supported.
7504 * doc/invoke.texi (Warning Options): List new option.
7505 (-Wunsuffixed-float-constants): New.
7507 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
7509 * config/i386/i386.c: Do not include c-common.h.
7511 2009-05-07 Mark Heffernan <meheff@google.com>
7513 * doc/invoke.texi (Debugging Options): Document change of debugging
7515 * opts.c (decode_options): Make dump_base_name relative to
7516 aux_base_name directory.
7518 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
7520 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
7521 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
7523 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
7525 * Makefile.in (install-plugin): Simplify a bit.
7527 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
7529 * Makefile.in (OBJS-common): Add regcprop.o.
7531 * timevar.def (TV_CPROP_REGISTERS): New.
7532 * regrename.c (regrename_optimize): Return 0.
7533 (rest_of_handle_regrename): Delete.
7534 (pass_rename_registers): Point to regrename_optimize.
7535 (struct value_data_entry, struct value_data,
7536 kill_value_one_regno, kill_value_regno, kill_value,
7537 set_value_regno, init_value_data, kill_clobbered_value,
7538 kill_set_value, kill_autoinc_value, copy_value,
7539 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
7540 replace_oldest_value_reg, replace_oldest_value_addr,
7541 replace_oldest_value_mem, copyprop_hardreg_forward_1,
7542 debug_value_data, validate_value_data): Move...
7543 * regcprop.c: ... here.
7544 (rest_of_handle_cprop): Delete.
7545 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
7547 2009-05-07 Jakub Jelinek <jakub@redhat.com>
7550 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
7551 GEN_INT for 1 << bitnum.
7552 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
7555 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
7557 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7558 Remove wrong description of "nand" operation.
7560 2009-05-06 Richard Guenther <rguenther@suse.de>
7561 Adam Nemet <anemet@caviumnetworks.com>
7563 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
7564 comment. Add that if LHS is not a gimple register, then RHS1 has
7565 to be a single object (GIMPLE_SINGLE_RHS).
7567 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
7569 * expr.c (get_def_for_expr): Move it up in the file.
7570 (store_field): When expanding a bit-field store, look at the
7571 defining gimple stmt for the masking conversion.
7573 2009-05-06 Janis Johnson <janis187@us.ibm.com>
7576 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
7577 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
7578 32-bit memcpy into long.
7580 2009-05-06 Jakub Jelinek <jakub@redhat.com>
7582 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
7583 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
7585 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
7586 instead of appending DW_OP_deref*.
7588 2009-05-06 Michael Matz <matz@suse.de>
7591 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
7592 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
7594 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
7596 * Makefile.in (install-plugin): Fix srcdir handling.
7598 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
7600 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
7601 when processing for not_regs_needed bitmap.
7602 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
7603 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
7604 handling it for rhs.
7606 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
7608 * config/i386/i386.md (unnamed inc/dec peephole): Use
7609 optimize_insn_for_size_p instead of optimize_size.
7610 * config/i386/predicates.md (incdec_operand): Likewise.
7611 (aligned_operand): Likewise.
7612 * config/i386/sse.md (divv8sf3): Likewise.
7613 (sqrtv8sf2): Likewise.
7615 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
7617 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
7619 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
7621 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
7623 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
7624 ssemodesuffixf2c with avxmodesuffixf2c.
7626 2009-05-06 Joseph Myers <joseph@codesourcery.com>
7629 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
7631 2009-05-05 Jakub Jelinek <jakub@redhat.com>
7633 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
7634 (struct tree_base): Adjust spacing for 8 bit boundaries.
7635 (struct tree_decl_common): Add decl_by_reference_flag bit.
7636 (DECL_BY_REFERENCE): Adjust.
7637 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
7638 print DECL_BY_REFERENCE bit.
7639 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
7640 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
7641 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
7642 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
7646 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
7647 range of the type, but default label is missing, add it with one
7648 of the existing labels instead of adding a new label for it.
7650 2009-05-05 Joseph Myers <joseph@codesourcery.com>
7654 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
7656 * Makefile.in (enable_plugin, plugin_includedir): New.
7657 (install): Depend on install-plugin.
7658 (PLUGIN_HEADERS): New.
7659 (install-plugin): New.
7660 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
7662 2009-05-05 Richard Guenther <rguenther@suse.de>
7664 PR tree-optimization/40022
7665 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
7667 (phivn_valid_p): Fix tuplification error, simplify.
7668 (phiprop_insert_phi): Add dumps.
7669 (propagate_with_phi): Simplify.
7671 2009-05-05 Richard Guenther <rguenther@suse.de>
7674 * builtins.c (gimplify_va_arg_expr): Properly build the address.
7676 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
7678 * tree.h (strip_float_extensions): Remove duplicate declaration.
7679 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
7680 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
7681 block_ultimate_origin): Rearrange the declarations line to match the
7682 comment that indicates the .c file which the functions are defined.
7683 (dwarf2out_*, set_decl_rtl): Add comment.
7684 (get_base_address): Adjust comment.
7685 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
7686 declarations line and add comment.
7687 (is_builtin_name): Add blank after function name, for clarity.
7689 2009-05-04 Joseph Myers <joseph@codesourcery.com>
7691 * attribs.c (decl_attributes): Use %qE for identifiers in
7693 * cgraphunit.c (verify_cgraph_node): Translate function names to
7694 locale character set in diagnostics.
7695 * coverage.c (get_coverage_counts): Use %qE for identifiers in
7697 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
7698 Document that functions are named in UTF-8.
7699 * expr.c (expand_expr_real_1): Translate function names to locale
7700 character set in diagnostics.
7701 * gimplify.c (omp_notice_variable, omp_is_private,
7702 gimplify_scan_omp_clauses): Use %qE for identifiers in
7704 * langhooks.c (lhd_print_error_function): Translate function names
7705 to locale character set.
7706 * langhooks.h (decl_printable_name): Document that return value is
7707 in internal character set.
7708 * stmt.c: Include pretty-print.h
7709 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
7711 (resolve_operand_name_1): Translate named operand name to locale
7713 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
7715 * toplev.c (announce_function): Translate function names to locale
7717 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
7718 (default_tree_printer): Use pp_identifier or translate identifiers
7719 to locale character set. Mark "<anonymous>" for translation.
7720 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
7721 for identifiers in diagnostics.
7722 * tree.c (handle_dll_attribute): Use %qE for identifiers in
7724 * varasm.c (output_constructor): Use %qE for identifiers in
7727 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
7729 * configure.ac: use ` ` instead of $()
7730 * configure: Regenerate.
7732 2009-05-05 Ben Elliston <bje@au.ibm.com>
7734 * config/pa/linux-atomic.c: Eliminate conditional include of
7735 errno.h on non-LP64 systems to simplify build requirements.
7737 2009-05-04 Joseph Myers <joseph@codesourcery.com>
7739 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
7741 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
7742 and pass value to identifier_to_locale.
7743 (warn_variable_length_array): Make name a tree.
7744 (grokdeclarator): Separate diagnostic texts for named and unnamed
7745 declarators. Use %qE for named declarators.
7746 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
7748 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
7749 identifiers in diagnostics.
7750 * c-typeck.c (push_member_name, start_init): Pass identifiers to
7751 identifier_to_locale. Mark "anonymous" strings for translation.
7753 2009-05-04 Michael Eager <eager@eagercon.com>
7755 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
7756 address for DImode/DFmode only if double-precision FP regs.
7758 2009-05-04 Michael Eager <eager@eagercon.com>
7760 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
7761 TARGET_SINGLE_FLOAT check.
7763 2009-05-04 Michael Eager <eager@eagercon.com>
7765 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
7767 2009-05-04 Michael Eager <eager@eagercon.com>
7769 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
7770 * config/rs6000/t-xilinx: New
7772 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
7774 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
7775 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
7776 * gcc/explow.c (memory_address): Use target hook.
7777 * gcc/targhooks.c (default_legitimize_address): New.
7778 * gcc/targhooks.h (default_legitimize_address): New.
7779 * gcc/target.h (legitimize_address): New.
7780 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
7781 (TARGET_INITIALIZER): Include it.
7782 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
7784 * config/bfin/bfin-protos.h (legitimize_address): Remove.
7785 * config/bfin/bfin.c (legitimize_address): Remove.
7786 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
7787 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
7789 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
7790 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
7792 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
7793 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
7794 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
7795 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
7796 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
7797 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
7798 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
7799 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
7800 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
7801 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
7802 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
7803 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
7804 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
7805 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
7806 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
7807 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
7808 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
7809 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
7810 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
7811 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
7812 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
7813 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
7814 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
7816 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
7817 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
7818 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
7819 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
7820 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
7821 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
7822 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
7823 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
7824 (thumb_legitimize_address): Delete.
7825 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
7826 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
7827 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
7828 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
7829 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
7830 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
7832 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
7835 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
7836 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
7837 * config/m32r/m32r.c (m32r_legitimize_address): New.
7838 * config/m68k/m68k.c (m68k_legitimize_address): New.
7839 * config/score/score.c (score_legitimize_address): Standardize.
7840 * config/score/score3.c (score3_legitimize_address): Standardize.
7841 * config/score/score3.h (score3_legitimize_address): Adjust.
7842 * config/score/score7.c (score7_legitimize_address): Standardize.
7843 * config/score/score7.h (score7_legitimize_address): Adjust.
7844 * config/sh/sh.c (sh_legitimize_address): New.
7845 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
7847 * gcc/config/s390/s390.c (legitimize_address): Rename to...
7848 (s390_legitimize_address): ... this.
7849 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
7850 (sparc_legitimize_address): ... this.
7851 * gcc/config/i386/i386.c (legitimize_address): Rename to...
7852 (ix86_legitimize_address): ... this.
7853 * gcc/config/avr/avr.c (legitimize_address): Rename to...
7854 (avr_legitimize_address): ... this.
7855 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
7856 (mn10300_legitimize_address): ... this.
7857 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
7858 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
7859 (alpha_expand_mov): Adjust call.
7861 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
7862 * config/spu/spu.c (spu_legitimize_address): Likewise.
7863 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
7864 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
7866 2009-05-04 Joseph Myers <joseph@codesourcery.com>
7868 * intl.c (locale_encoding, locale_utf8): New.
7869 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
7870 * intl.h (locale_encoding, locale_utf8): Declare.
7871 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
7872 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
7874 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
7876 (pp_tree_identifier): Define to call pp_base_tree_identifier.
7877 (pp_base_tree_identifier): Declare as function.
7878 (identifier_to_locale): Declare.
7879 * Makefile.in (pretty-print.o): Update dependencies.
7880 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
7882 2009-05-04 Richard Guenther <rguenther@suse.de>
7885 * builtins.c (fold_builtin_memory_op): Do not decay to element
7886 type if the size matches the whole array.
7888 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
7890 * expmed.c (synth_mult): When trying out a shift, pass the result
7893 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
7895 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
7896 (shiftsub1_cost): New.
7897 (init_expmed): Compute shiftsub1_cost.
7898 (synth_mult): Optimize multiplications by constants of the form
7899 -(2^^m-1) for some constant positive integer m.
7901 2009-05-03 Richard Guenther <rguenther@suse.de>
7904 * c-typeck.c (array_to_pointer_conversion): Do not built
7905 ADDR_EXPRs of arrays of pointer-to-element type.
7906 * c-gimplify.c (c_gimplify_expr): Revert change fixing
7907 up wrong ADDR_EXPRs after-the-fact.
7908 * c-common.c (strict_aliasing_warning): Strip pointer
7909 conversions for obtaining the original type.
7910 * builtins.c (fold_builtin_memset): Handle array types.
7911 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
7914 2009-05-03 Richard Guenther <rguenther@suse.de>
7917 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
7918 Do not lose casts from array types with unknown extent to array
7919 types with known extent.
7920 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
7921 alias set compatibility.
7923 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7925 * flags.h (extra_warnings): Delete.
7926 * toplev.c (process_options): Handle Wuninitialized here.
7927 * opts.c (extra_warnings): Delete.
7928 (set_Wextra): Delete.
7929 (common_handle_option): -Wextra can be handled automatically.
7930 * c-opts.c (c_common_handle_option): Delete obsolete code.
7931 (c_common_post_options): Simplify comment.
7932 * common.opt (W): Add Var.
7934 (Wuninitialized): Initialize to -1.
7936 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
7937 Richard Guenther <rguenther@suse.de>
7939 * expr.c (get_def_for_expr): New function.
7940 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
7941 SSA rather than trees.
7942 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
7943 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
7945 2009-05-03 Joseph Myers <joseph@codesourcery.com>
7947 * c-common.c (reswords): Add _Imaginary.
7948 * c-common.c (enum rid): Add RID_IMAGINARY.
7950 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
7952 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
7953 Patch by Richard Guenther.
7955 2009-05-03 Anatoly Sokolov <aesok@post.ru>
7957 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
7958 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
7959 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
7960 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
7961 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
7962 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
7963 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
7964 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
7965 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
7966 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
7967 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
7968 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
7969 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
7970 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
7971 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
7972 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
7973 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
7974 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
7976 2009-05-02 Richard Guenther <rguenther@suse.de>
7978 PR tree-optimization/39940
7979 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
7982 2009-05-02 Richard Guenther <rguenther@suse.de>
7985 * tree-ssa.c (execute_update_addresses_taken): Properly check
7986 if we can mark a variable DECL_GIMPLE_REG_P.
7987 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
7988 back to the end of the function.
7989 (is_gimple_reg_type): Remove complex type special casing.
7990 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
7993 2009-05-02 Ben Elliston <bje@au.ibm.com>
7995 * doc/collect2.texi (Collect2): Document search path behaviour
7996 when configured with --with-ld.
7998 2009-05-02 Jan Hubicka <jh@suse.cz>
8000 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
8001 parameter; update callers.
8002 (coalesce_cost_edge): EH edges are costier because they needs
8003 splitting even if not critical and even more costier when there are
8004 multiple EH predecestors.
8006 2009-05-02 Jan Hubicka <jh@suse.cz>
8008 * except.c (remove_eh_handler_and_replace): Handle updating after
8009 removing TRY blocks.
8011 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
8013 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
8015 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
8017 * varasm.c: Do not include c-pragma.h.
8018 * attribs.c: Do not incude c-common.h.
8020 2009-05-01 Michael Matz <matz@suse.de>
8022 * calls.c (initialize_argument_information): Handle SSA names like
8023 decls with a non MEM_P DECL_RTL.
8025 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
8027 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
8028 * ipa-utils.c: Likewise.
8029 * ipa-type-escape.c: Likewise.
8030 * cgraphunit.c Do not include c-common.h.
8031 * ipa-pure-const.c: Likewise.
8032 * tree-if-conv.c: Likewise.
8033 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
8034 * ipa-struct-reorg.c: Likewise.
8035 * tree-nomudflap.c: Likewise.
8036 * tree-ssa-structalias.c: Likewise.
8038 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
8040 * store-motion.c: Many cleanups to make this pass a first-class
8041 citizen instead of an appendix to gcse load motion. Add TODO list
8042 to make this pass faster/cleaner/better.
8044 (struct ls_expr): Post gcse.c-split cleanups.
8045 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
8046 "stores" field to "avail_stores".
8047 (pre_ldst_mems): Rename to store_motion_mems.
8048 (pre_ldst_table): Rename to store_motion_mems_table.
8049 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
8050 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
8051 (ldst_entry): Rename to st_expr_entry, update users.
8052 (free_ldst_entry): Rename to free_st_expr_entry, update users.
8053 (free_ldst_mems): Rename to free_store_motion_mems, update users.
8054 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
8056 (first_ls_expr): Rename to first_st_expr, update users.
8057 (next_ls_expr): Rename to next_st_expr, update users.
8058 (print_ldst_list): Rename to print_store_motion_mems. Print names of
8059 fields properly for store motion instead of names inherited from load
8061 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
8062 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
8065 (ae_kill): Rename to st_kill, update users.
8066 (ae_gen): Rename to st_avloc, update users.
8067 (transp): Rename to st_transp, update users.
8068 (pre_insert_map): Rename to st_insert_map, update users.
8069 (pre_delete_map): Rename to st_delete_map, update users.
8070 (insert_store, build_store_vectors, free_store_memory,
8071 one_store_motion_pass): Update for abovementioned changes.
8073 (gcse_subst_count, gcse_create_count): Remove.
8074 (one_store_motion_pass): New statistics counters "n_stores_deleted"
8075 and "n_stores_created", local variables.
8077 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
8080 (regvec, compute_store_table_current_insn): Remove.
8081 (reg_set_info, reg_clear_last_set): Remove.
8082 (compute_store_table): Use DF caches instead of local dataflow
8085 2009-05-01 Joseph Myers <joseph@codesourcery.com>
8087 * c-objc-common.c (c_tree_printer): Print identifiers with
8088 pp_identifier, not pp_string. Mark "({anonymous})" for
8090 * c-pretty-print.c (pp_c_ws_string): New.
8091 (pp_c_cv_qualifier, pp_c_type_specifier,
8092 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
8093 pp_c_storage_class_specifier, pp_c_function_specifier,
8094 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
8095 pp_c_primary_expression, pp_c_postfix_expression,
8096 pp_c_unary_expression, pp_c_shift_expression,
8097 pp_c_relational_expression, pp_c_equality_expression,
8098 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
8099 use pp_string and pp_c_ws_string in place of pp_identifier and
8100 pp_c_identifier for non-identifiers. Mark English strings for
8102 * c-pretty-print.h (pp_c_ws_string): Declare.
8104 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
8105 Roland McGrath <roland@redhat.com>
8107 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
8108 (ENABLE_LD_BUILDID): New configuration option.
8109 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
8110 (LINK_BUILDID_SPEC): New macro.
8111 (init_spec): If defined, prepend it between LINK_EH_SPEC and
8113 * doc/install.texi: Document --enable-linker-build-id option.
8114 * configure: Rebuild.
8115 * config.in: Rebuild.
8117 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
8119 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
8120 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
8121 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
8122 MIPS_GP_SAVE_AREA_SIZE.
8123 * config/mips/mips.c (struct mips_frame_info): Update comment
8124 before arg_pointer_offset and hard_frame_pointer_offset.
8125 (mips_compute_frame_info): Update diagram before function: to
8126 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
8127 indicate the position of frame_pointer_rtx with -fstack-protector and
8128 to show args_size. Don't allocate cprestore area for leaf functions
8129 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
8131 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
8133 2009-04-30 Michael Matz <matz@suse.de>
8135 PR tree-optimization/39955
8136 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
8138 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
8140 * ira.c (setup_cover_and_important_classes): Use safe macro
8141 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
8143 * genpreds.c (write_tm_preds_h): Output suitable definition of
8144 REG_CLASS_FOR_CONSTRAINT.
8146 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
8148 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
8150 * bitmap.c (bitmap_descriptor): Likewise.
8151 * ggc-common.c (loc_descriptor): Likewise.
8152 * varray.c (varray_descriptor): Likewise.
8153 * vec.c (vec_descriptor): Likewise.
8155 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
8157 * Makefile.in (dce.o): Add $(EXCEPT_H).
8158 * dce.c: Include except.h and delete redundant vector definitions.
8159 (deletable_insn_p): Return false for non-call insns that can throw
8162 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
8164 * gcse.c (ae_gen): Remove.
8165 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
8166 and make non-static function to make it available in store-motion.c.
8167 Update call sites with search-and-replace.
8168 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
8169 extract_mentioned_regs, extract_mentioned_regs_helper,
8170 find_moveable_store, compute_store_table, load_kills_store, find_loads,
8171 store_killed_in_insn, store_killed_after, store_killed_before,
8172 build_store_vectors, insert_insn_start_basic_block, insert-store,
8173 remove_reachable_equiv_notes, replace_store_insn, delete_store,
8174 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
8175 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
8176 * store-motion.c: ...new file. Also copy data structures from gcse.c
8177 and clean up to remove parts not used by store motion.
8178 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
8179 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
8181 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8184 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
8185 when optimizing for size.
8187 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
8189 * gcse.c (gcse_constant_p): Fix typo in last change.
8191 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
8193 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
8195 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
8197 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
8199 2009-04-29 James E. Wilson <wilson@codesourcery.com>
8201 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
8202 CONST_HIGH_PART result.
8204 2009-04-29 Anatoly Sokolov <aesok@post.ru>
8206 * config/avr/avr.c (initial_elimination_offset): Rename to
8207 avr_initial_elimination_offset.
8208 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
8209 change return type to bool.
8210 (avr_can_eliminate): New function.
8211 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
8212 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
8213 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
8214 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
8215 avr_initial_elimination_offset.
8216 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
8217 (avr_initial_elimination_offset): Define.
8219 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
8220 Steven Bosscher <steven@gcc.gnu.org>
8222 PR rtl-optimization/39938
8223 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
8224 * cfgrtl.c: Include insn-attr.h.
8225 (rest_of_pass_free_cfg): New function.
8226 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
8227 * resource.c (init_resource_info): Remove call to df_analyze.
8229 2009-04-29 Richard Guenther <rguenther@suse.de>
8232 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
8233 allow conversion to signed integers.
8235 2009-04-29 Richard Guenther <rguenther@suse.de>
8237 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
8238 shifts of floating point vectors if the shift amount is
8239 a constant multiple of the element size.
8241 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
8242 Michael Matz <matz@suse.de>
8246 * tree-outof-ssa.c (emit_partition_copy): New function.
8247 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8248 insert_part_to_rtx_on_edge): Perform the partition base var
8249 copy using emit_partition_copy.
8250 (insert_value_copy_on_edge): Convert constants to the right mode.
8251 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
8252 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
8254 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
8256 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
8257 scan backwards to try to find a constant to initialize it.
8259 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
8260 insn before the loop_end instruction, don't look past labels.
8262 2009-04-29 Richard Guenther <rguenther@suse.de>
8265 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
8266 loose type conversions.
8267 (forward_propagate_addr_expr): Fix tuplification bug. Remove
8268 stmts only if there are no uses of its definition.
8270 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
8272 * config/bfin/bfin.h (splitting_loops): Declare.
8273 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
8274 Reorder bit definitions to be ascending.
8275 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
8276 * config/bfin/bfin.c (splitting_loops): New variable.
8277 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
8278 (struct loop_info): Remove members INIT and LOOP_INIT.
8279 (bfin_optimize_loop): Don't set them. Reorder the code that generates
8280 the LSETUP sequence. Allow LC to be loaded from any register, but
8281 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
8282 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
8284 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
8285 of reload_completed.
8288 * config/bfin/bfin.md (movsi_insn): Refine constraints.
8290 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
8292 * Makefile.in (PLUGIN_VERSION_H): New.
8293 (OBJS-common): Remove plugin-version.o.
8294 (plugin.o): Depend on (PLUGIN_VERSION_H).
8295 (plugin-version.o): Remove.
8296 * configure: Regenerate
8297 * configure.ac: Create plugin-version.h.
8298 * gcc-plugin.h (plugin_gcc_version): Remove.
8299 (plugin_default_version_check): Change signature.
8300 * plugin-version.c: Remove.
8301 * plugin.c: Include plugin-version.h.
8302 (str_plugin_gcc_version_name): Remove.
8303 (try_init_one_plugin): Pass gcc version to plugin_init.
8304 (plugin_default_version_check): Both gcc and plugin versions are now
8307 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
8309 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
8310 problematic last insns. Test for TYPE_CALL rather than CALL_P.
8311 Remove special case testing for last insn of inner loops. Don't fail
8312 if the loop ends with a jump, emit an extra nop instead.
8314 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
8315 DREGS rather than comparing directly. Remove code that tries to
8316 account for latencies.
8318 2009-04-29 Richard Guenther <rguenther@suse.de>
8320 PR tree-optimization/39941
8321 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
8322 eliminating an indirect call.
8324 2009-04-29 Richard Guenther <rguenther@suse.de>
8326 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
8327 parameter. Allow invariants as base if !require_lvalue.
8328 (verify_gimple_assign_single): Adjust.
8330 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
8332 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
8333 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
8334 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
8335 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
8336 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
8338 * config/bfin/bfin.c (bfin_expand_builtin,
8339 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
8341 2009-04-28 Richard Guenther <rguenther@suse.de>
8343 * tree-vect-loop.c (get_initial_def_for_induction): Use
8344 correct types for pointer increment.
8346 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8348 * toplev.c (print_version): Update GMP version string calculation.
8350 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
8352 PR rtl-optimization/39938
8353 * resource.c (init_resource_info): Add call to df_analyze.
8355 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
8357 * config/alpha/alpha.md (usegp): Cast the result of
8358 alpha_find_lo_sum_using_gp to enum attr_usegp.
8359 * config/alpha/alpha.c (override_options): Remove end-of-structure
8360 marker element from cpu_table. Use array size of cpu_table to handle
8361 -mcpu and -mtune options.
8362 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
8364 2009-04-28 Joseph Myers <joseph@codesourcery.com>
8366 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
8367 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
8368 tune_32 and tune_64.
8369 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
8371 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
8372 * config/rs6000/option-defaults.h: ... here. New file.
8373 (OPT_64, OPT_32): Define.
8374 (MASK_64BIT): Define to 0 if not already defined.
8375 (OPT_ARCH64, OPT_ARCH32): Define.
8376 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
8379 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8381 * config/arm/arm.c (arm_override_options): Emit error on using
8384 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
8386 PR rtl-optimization/39914
8387 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
8388 registers for allocnos created from user-defined variables only
8389 when not optimizing.
8391 2009-04-28 Richard Guenther <rguenther@suse.de>
8394 * fold-const.c (fold_binary): Use distribute_real_division only
8397 2009-04-28 Steve Ellcey <sje@cup.hp.com>
8399 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
8400 add hpux-stdint.h to tm_file.
8401 (hppa[12]*-*-hpux11*): Ditto.
8402 (ia64*-*-hpux*): Ditto.
8403 * config/hpux-stdint.h: New.
8404 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
8405 __STDC_EXT__ for all compiles.
8406 * config/pa/pa-hpux.h: Ditto.
8407 * config/pa/pa-hpux10.h: Ditto.
8408 * config/pa/pa-hpux11.h: Ditto.
8410 2009-04-28 Catherine Moore <clm@codesourcery.com>
8412 * debug.h (set_name): Add comment.
8414 2009-04-28 Andrew Pinski <pinskia@gmail.com>
8417 * config/darwin.c (machopic_gen_offset): Check
8418 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
8419 * config/arm/arm.c (require_pic_register): Likewise.
8421 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
8423 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
8424 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
8425 m32c_promote_prototypes): Delete.
8427 2009-04-28 Michael Matz <matz@suse.de>
8430 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
8433 2009-04-28 Richard Guenther <rguenther@suse.de>
8435 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
8437 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8439 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
8440 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
8441 * config/arm/arm-tune.md: Regenerate.
8443 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
8445 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
8446 block if there are complex incoming edges.
8447 (sel_merge_blocks): Remove useless assert.
8448 (sel_redirect_edge_and_branch): Check that edge was redirected.
8449 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
8450 (sel_find_rgns): Delete declaration.
8451 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
8452 the region when it is not a preheader.
8454 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
8457 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
8459 2009-04-28 Richard Guenther <rguenther@suse.de>
8461 * tree.h (SSA_NAME_VALUE): Remove.
8462 (struct tree_ssa_name): Remove value_handle member.
8463 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
8464 array for jump threading.
8465 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
8467 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
8468 * tree-flow.h (threadedge_initialize_values): Declare.
8469 (threadedge_finalize_values): Likewise.
8470 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
8471 (SSA_NAME_VALUE): Define.
8472 (threadedge_initialize_values): New function.
8473 (threadedge_finalize_values): Likewise.
8474 * tree-ssa-dom.c (ssa_name_values): New global variable.
8475 (SSA_NAME_VALUE): Define.
8476 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
8478 2009-04-28 Ira Rosen <irar@il.ibm.com>
8480 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8481 Use REPORT_VECTORIZED_LOCATIONS instead
8482 REPORT_VECTORIZED_LOOPS.
8483 * tree-vectorizer.c (vect_verbosity_level): Make static.
8484 (vect_loop_location): Rename to vect_location.
8485 (vect_set_verbosity_level): Update comment.
8486 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
8488 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
8489 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
8490 instead REPORT_UNVECTORIZED_LOOPS.
8491 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
8492 and vect_loop_def to vect_external_def and vect_internal_def.
8493 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
8494 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8495 REPORT_UNVECTORIZED_LOCATIONS.
8496 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
8497 and vect_used_in_loop and to vect_unused_in_scope and
8499 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
8500 (vect_verbosity_level): Remove declaration.
8501 (vect_analyze_operations): Likewise.
8502 (vect_analyze_stmt): Declare.
8503 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
8504 REPORT_UNVECTORIZED_LOCATIONS.
8505 (vect_get_loop_niters): Fix indentation.
8506 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
8507 (vect_analyze_loop_operations): New function.
8508 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
8509 vect_analyze_operations.
8510 (vect_is_simple_reduction): Use new names.
8511 (vectorizable_live_operation, vect_transform_loop): Likewise.
8512 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
8513 to specify whether the data references can be a part of interleaving
8515 (vect_analyze_data_ref_dependence): Use new names.
8516 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
8517 (vect_create_addr_base_for_vector_ref): Remove redundant code.
8518 * tree-vect-patterns.c (widened_name_p): Use new names.
8519 (vect_recog_dot_prod_pattern): Likewise.
8520 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
8521 (process_use, vect_mark_stmts_to_be_vectorized,
8522 vect_model_simple_cost, vect_model_store_cost,
8523 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
8524 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
8525 vectorizable_operation, vectorizable_type_demotion,
8526 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
8527 vectorizable_condition): Likewise.
8528 (vect_analyze_operations): Split into vect_analyze_loop_operations
8530 (vect_analyze_stmt): ... new function.
8531 (new_stmt_vec_info): Use new names.
8532 (vect_is_simple_use): Use new names and fix comment.
8533 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
8534 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
8536 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
8539 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
8540 and integer modes for x87 operands. Do not ICE for unsupported size,
8541 generate error instead. Generate error for unsupported operand types.
8542 ['z']: Do not handle HImode memory operands specially. Warning
8543 for floating-point operands. Fallthru to 'Z' for unsupported operand
8544 types. Do not ICE for unsupported size, generate error instead.
8545 (output_387_binary_op): Use %Z to output operands.
8546 (output_fp_compare): Ditto.
8547 (output_387_reg_move): Ditto.
8549 2009-04-28 Ben Elliston <bje@au.ibm.com>
8554 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8556 * builtins.c (c_strlen): Do not warn here.
8557 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
8558 * c-common.c (pointer_int_sum): Take an explicit location.
8559 Warn about offsets out of bounds.
8560 * c-common.h (pointer_int_sum): Adjust declaration.
8562 2009-04-27 Ian Lance Taylor <iant@google.com>
8564 * collect2.c (is_ctor_dtor): Change type of ret field in struct
8566 * dce.c (run_fast_df_dce): Change type of old_flags to int.
8567 * df-core.c (df_set_flags): Change return type to int. Change
8568 type of old_flags to int.
8569 (df_clear_flags): Likewise.
8570 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
8571 (df_get_conditional_uses): Likewise.
8572 * df.h (df_set_flags, df_clear_flags): Update declarations.
8573 * dwarf2out.c (struct indirect_string_node): Change type of form
8574 field to enum dwarf_form.
8575 (AT_string_form): Change return type to enum dwarf_form.
8576 * fixed-value.c (fixed_compare): Add cast to enum type.
8577 * fwprop.c (update_df): Change 0 to VOIDmode.
8578 * gensupport.c: Change 0 to UNKNOWN.
8579 * gimple.h (gimple_cond_code): Add cast to enum type.
8580 * haifa-sched.c (reemit_notes): Add cast to enum type.
8581 * hooks.c (hook_int_void_no_regs): Remove function.
8582 * hooks.h (hook_int_void_no_regs): Remove declaration.
8583 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
8584 * predict.c (combine_predictions_for_insn): Add casts to enum type.
8585 * real.c (real_arithmetic): Add cast to enum type.
8586 (real_compare): Likewise.
8587 * target.h (struct gcc_target): Change return type of
8588 branch_target_register_class to enum reg_class.
8589 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
8590 default_branch_target_register_class.
8591 * targhooks.c (default_branch_target_register_class): New function.
8592 * targhooks.h (default_branch_target_register_class): Declare.
8593 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
8594 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
8596 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
8598 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
8599 vect_uninitialized_def. Change 0 to ERROR_MARK.
8600 * tree-vect-stmts.c (supportable_widening_operation): Don't
8601 initialize icode1 and icode2.
8602 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
8603 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
8605 (cmn_err_flag_specs): Change 0 to STD_C89.
8606 (cmn_err_char_table): Likewise.
8607 * config/arm/arm.c (get_arm_condition_code): Change type of code
8608 to enum arm_cond_code.
8609 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
8610 (IWMMXT_BUILTIN2): Likewise.
8611 (neon_builtin_type_bits): Don't define typedef.
8612 (neon_builtin_datum): Change type of bits field to int.
8613 (arm_expand_neon_args): Add cast to enum type.
8614 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
8616 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
8618 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
8620 * config/mips/mips.md (jal_macro): Return enum constant.
8621 (single_insn): Likewise.
8622 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
8624 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8626 * config/s390/s390.c (s390_tune_flags): Change type to int.
8627 (s390_arch_flags): Likewise.
8628 (s390_handle_arch_option): Change flags field of struct pta to int.
8629 * config/s390/s390.h (s390_tune_flags): Update declaration.
8630 (s390_arch_flags): Likewise.
8631 * config/sh/sh.c (prepare_move_operands): Compare
8632 tls_symbolic_operand result with enum constant.
8633 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
8634 (sh_expand_prologue): Add cast to enum type.
8635 (sh_expand_epilogue): Likewise.
8636 (tls_symbolic_operand): Change return type to enum tls_model.
8637 (fpscr_set_from_mem): Add cast to enum type.
8638 (legitimize_pic_address): Compare tls_symbolic_operand result with
8640 (sh_target_reg_class): Change return type to enum reg_class.
8641 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
8643 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
8644 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
8645 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
8646 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
8647 (delayed_branch, tls_call_delay): Likewise.
8648 (eligible_for_sibcall_delay): Likewise.
8649 (eligible_for_return_delay): Likewise.
8650 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
8651 (spu_expand_builtin_1): Likewise.
8653 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
8654 for all types of conversions.
8655 (output_init_element): Issue -Wc++-compat warning if needed when
8656 initializing a bitfield with enum type.
8657 * c-parser.c (c_parser_expression): Set original_type to
8658 original_type of right hand operand of comman operator.
8660 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8662 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
8664 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
8665 * doc/cpp.texi (Standard Predefined Macros)
8666 (Implementation-defined behavior): Likewise.
8667 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
8668 * doc/gimple.texi (GIMPLE Exception Handling)
8669 (@code{GIMPLE_ASSIGN}): Likewise.
8670 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
8671 * doc/invoke.texi (Warning Options, Optimize Options)
8672 (AVR Options, Darwin Options): Likewise.
8673 (Optimize Options): Reformulate -fwhole-program description.
8674 * doc/loop.texi (Lambda): Likewise.
8675 * doc/md.texi (Output Template, Define Constraints)
8676 (Standard Names, Insn Splitting): Likewise.
8677 * doc/options.texi (Option properties): Likewise.
8678 * doc/passes.texi (Tree-SSA passes): Likewise.
8679 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
8680 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
8681 (File Names and DBX): Likewise.
8682 * doc/trouble.texi (Incompatibilities): Likewise.
8684 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8686 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
8687 instruction is correct.
8689 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8691 Allow non-constant arguments to conversion intrinsics.
8692 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
8693 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
8694 * spu.c (print_operand): Handle 'v' and 'w'.
8695 (exp2_immediate_p, spu_gen_exp2): Define.
8696 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
8697 spu_convtf_1): Update parameter descriptions.
8698 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
8699 * constraints.md ('v', 'w'): New.
8700 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
8702 (i2f, I2F): New define_mode_attr.
8703 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
8704 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
8705 fixuns_truncv4sfv4si2): Update to use mode attribute.
8706 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
8707 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
8708 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
8709 patterns for combine.
8711 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
8713 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
8714 (cprop, hoist, pre, store_motion): New debug counters.
8715 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
8716 is not an RTL pass anymore.
8717 (pass_profiling): Remove extern decl for pass removed in 2005.
8718 (pass_gcse, pass_jump_bypass): Remove.
8719 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
8720 to 0 for clean state.
8721 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
8722 * cse.c (gate_handle_cse_after_global_opts,
8723 rest_of_handle_cse_after_global_opts): New functions.
8724 (pass_cse_after_global_opts): New pass, does local CSE.
8725 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
8726 (TV_CPROP): New timevar.
8727 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
8728 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
8729 (gcse_main, recompute_all_luids): Remove.
8730 (compute_hash_table_work): Call max_reg_num instead of reading
8732 (cprop_jump): Don't set run_jump_opt_after_gcse.
8733 (constprop_register): Always allow to alter jumps.
8734 (cprop_insn): Likewise.
8735 (do_local_cprop): Likewise.
8736 (local_cprop_pass): Likewise. Return non-zero if something changed.
8737 (cprop): Remove function, fold interesting bits into one_cprop_pass.
8738 (find_implicit_sets): Add note about missed optimization opportunity.
8739 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
8740 pass_rtl_cprop execute function.
8741 Don't bother tracking the pass number, each pass gets its own dumpfile
8743 Always allow to alter jumpsand bypass jumps.
8744 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
8745 will just find no suitable set.
8746 (pre_edge_insert): Fix dumping, this function is for PRE only.
8747 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
8748 pass_rtl_pre execute function.
8749 (hoist_code): Return non-zero if something changed. Keep track of
8750 substitutions and insertions for statistics gathering similar to PRE.
8751 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
8752 called from the pass_rtl_hoist execute function. Show pass statistics.
8753 (compute_store_table): Use max_reg_num directly instead of using the
8754 formerly global max_gcse_regno.
8755 (build_store_vectors): Likewise.
8756 (replace_store_insn): Fix dumping.
8757 (store_motion): Rename to ...
8758 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
8759 pass, called from the pass_rtl_store_motion execute function. Keep
8760 track of substitutions and insertions for statistics gathering similar
8762 (bypass_jumps): Remove, fold interesting bits into ...
8763 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
8764 from the pass_rtl_cprop execute function.
8765 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
8766 pass_jump_bypass): Remove.
8767 (gate_handle_gcse, rest_of_handle_gcse): Remove.
8768 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
8769 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
8770 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
8771 (gate_rtl_store_motion, execute_rtl_store_motion,
8772 pass_rtl_store_motion): New.
8773 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
8774 make it clear that -fcse-skip-blocks is a no-op for backward compat.
8775 * passes.c (init_optimization_passes): Remove pass_gcse and
8776 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
8777 and cse_after_global_opts in place of pass_gcse. Schedule cprop
8778 instead of pass_jump_bypass.
8780 2009-04-27 Richard Guenther <rguenther@suse.de>
8783 * gimplify.c (gimplify_expr): If we are required to create
8784 a temporary make sure it ends up as register.
8786 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
8789 * config/i386/i386.c (construct_container): Don't call
8790 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
8791 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
8793 2009-04-27 Michael Matz <matz@suse.de>
8795 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
8796 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
8797 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
8798 (dump_replaceable_exprs): Take a bitmap.
8799 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
8801 (expand_gimple_basic_block): Likewise.
8802 * tree-ssa-ter.c (struct temp_expr_table_d): Make
8803 replaceable_expressions member a bitmap.
8804 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
8805 (mark_replaceable): Likewise.
8806 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
8807 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
8809 2009-04-27 Richard Guenther <rguenther@suse.de>
8811 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
8812 (verify_stmts): Dispatch to gimple/type verification code.
8813 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
8814 issue with call argument types.
8816 2009-04-27 Michael Matz <matz@suse.de>
8818 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
8819 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
8822 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8823 Eric Botcazou <ebotcazou@adacore.com>
8825 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
8826 a label's basic block.
8827 (mark_target_live_regs): Tidy and rework obsolete comments.
8828 Change back DF problem to LIVE. If a label starts a basic block,
8829 assume that all registers that used to be live then still are.
8830 (init_resource_info): If a label starts a basic block, set its
8831 BLOCK_FOR_INSN accordingly.
8832 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
8834 2009-04-27 Richard Guenther <rguenther@suse.de>
8836 * tree-flow-inline.h (function_ann): Remove.
8837 (get_function_ann): Likewise.
8838 * tree-dfa.c (create_function_ann): Remove.
8839 * tree-flow.h (struct static_var_ann_d): Remove.
8840 (struct function_ann_d): Likewise.
8841 (union tree_ann_d): Remove fdecl member.
8842 (function_ann_t): Remove.
8843 (function_ann, get_function_ann, create_function_ann): Remove
8846 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
8848 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
8850 2009-04-27 Jan Hubicka <jh@suse.cz>
8852 * ipa-pure-const.c (struct funct_state_d): New fields
8853 state_previously_known, looping_previously_known; remove
8854 state_set_in_source.
8855 (analyze_function): Use new fields.
8856 (propagate): Avoid assumption that state_set_in_source imply
8859 * tree-ssa-loop-niter.c (finite_loop_p): New function.
8860 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
8861 * cfgloop.h (finite_loop_p): Declare.
8863 2009-04-26 Michael Matz <matz@suse.de>
8865 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
8867 2009-04-26 Michael Matz <matz@suse.de>
8869 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
8870 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
8871 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
8872 pass_mark_used_blocks): Remove.
8873 * tree-optimize.c (pass_free_datastructures,
8874 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
8875 * passes.c (init_optimization_passes): Don't call
8876 pass_mark_used_blocks, remove dead code.
8878 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
8880 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
8881 * tree-ssa-live.h (register_ssa_partition): Likewise.
8883 2009-04-26 Michael Matz <matz@suse.de>
8886 * builtins.c (fold_builtin_next_arg): Handle SSA names.
8887 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
8888 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
8890 (compare_pairs): Swap cost comparison.
8891 (coalesce_ssa_name): Don't use change_partition_var.
8892 * tree-nrv.c (struct nrv_data): Add modified member.
8893 (finalize_nrv_r): Set it.
8894 (tree_nrv): Use it to update statements.
8895 (pass_nrv): Require PROP_ssa.
8896 * tree-mudflap.c (mf_decl_cache_locals,
8897 mf_build_check_statement_for): Use make_rename_temp.
8898 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
8899 * alias.c (find_base_decl): Handle SSA names.
8900 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
8901 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
8902 * rtl.h (set_reg_attrs_for_parm): Declare.
8903 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
8904 to "optimized", remove unused locals at finish.
8905 (execute_free_datastructures): Make global, call
8906 delete_tree_cfg_annotations.
8907 (execute_free_cfg_annotations): Don't call
8908 delete_tree_cfg_annotations.
8910 * ssaexpand.h: New file.
8911 * expr.c (toplevel): Include ssaexpand.h.
8912 (expand_assignment): Handle SSA names the same as register variables.
8913 (expand_expr_real_1): Expand SSA names.
8914 * cfgexpand.c (toplevel): Include ssaexpand.h.
8915 (SA): New global variable.
8916 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
8917 (SSAVAR): New macro.
8918 (set_rtl): New helper function.
8919 (add_stack_var): Deal with SSA names, use set_rtl.
8920 (expand_one_stack_var_at): Likewise.
8921 (expand_one_stack_var): Deal with SSA names.
8922 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
8923 before unique numbers.
8924 (expand_stack_vars): Use set_rtl.
8925 (expand_one_var): Accept SSA names, add asserts for them, feed them
8926 to above subroutines.
8927 (expand_used_vars): Expand all partitions (without default defs),
8928 then only the local decls (ignoring those expanded already).
8929 (expand_gimple_cond): Remove edges when jumpif() expands an
8931 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
8932 or remove abnormal edges. Ignore insns setting the LHS of a TERed
8934 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
8935 members of SA; deal with PARM_DECL partitions here; expand
8936 all PHI nodes, free tree datastructures and SA. Commit instructions
8937 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
8938 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
8939 info and statements at start, collect garbage at finish.
8940 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
8941 (VAR_ANN_PARTITION) Remove.
8942 (change_partition_var): Don't declare.
8943 (partition_to_var): Always return SSA names.
8944 (var_to_partition): Only accept SSA names.
8945 (register_ssa_partition): Only check argument.
8946 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
8948 (delete_var_map): Don't free it.
8949 (var_union): Only accept SSA names, simplify.
8950 (partition_view_init): Mark only useful SSA names as used.
8951 (partition_view_fini): Only deal with SSA names.
8952 (change_partition_var): Remove.
8953 (dump_var_map): Use ssa_name instead of partition_to_var member.
8954 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
8956 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
8957 (struct _elim_graph): New member const_dests; nodes member vector of
8959 (set_location_for_edge): New static helper.
8960 (create_temp): Remove.
8961 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
8962 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
8963 (new_elim_graph): Allocate const_dests member.
8964 (clean_elim_graph): Truncate const_dests member.
8965 (delete_elim_graph): Free const_dests member.
8966 (elim_graph_size): Adapt to new type of nodes member.
8967 (elim_graph_add_node): Likewise.
8968 (eliminate_name): Likewise.
8969 (eliminate_build): Don't take basic block argument, deal only with
8970 partition numbers, not variables.
8971 (get_temp_reg): New static helper.
8972 (elim_create): Use it, deal with RTL temporaries instead of trees.
8973 (eliminate_phi): Adjust all calls to new signature.
8974 (assign_vars, replace_use_variable, replace_def_variable): Remove.
8975 (rewrite_trees): Only do checking.
8976 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
8977 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
8978 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
8979 contains_tree_r, MAX_STMTS_IN_LATCH,
8980 process_single_block_loop_latch, analyze_edges_for_bb,
8981 perform_edge_inserts): Remove.
8982 (expand_phi_nodes): New global function.
8983 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
8984 functions, initialize new parameter, remember partitions having a
8986 (finish_out_of_ssa): New global function.
8987 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
8988 don't reset in_ssa_p here, don't disable TER when mudflap.
8989 (pass_del_ssa): Remove.
8990 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
8992 (execute_free_datastructures): Declare.
8993 * Makefile.in (SSAEXPAND_H): New variable.
8994 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
8995 * basic-block.h (commit_one_edge_insertion): Declare.
8996 * passes.c (init_optimization_passes): Move pass_nrv and
8997 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
8998 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
8999 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
9000 (redirect_branch_edge): Deal with super block when expanding, split
9001 out jump patching itself into ...
9002 (patch_jump_insn): ... here, new static helper.
9004 2009-04-26 Michael Matz <matz@suse.de>
9006 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
9007 beyond num_ssa_names.
9008 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9009 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
9011 2009-04-26 Jakub Jelinek <jakub@redhat.com>
9014 * fwprop.c (forward_propagate_asm): New function.
9015 (forward_propagate_and_simplify): Propagate also into __asm, if it
9016 doesn't increase the number of referenced registers.
9019 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
9021 2009-04-26 Jakub Jelinek <jakub@redhat.com>
9023 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
9024 note_nonlocal_vla_type for nonlocal VLAs.
9025 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
9026 contains_remapped_vars, remap_vla_decls): New functions.
9027 (convert_nonlocal_reference_stmt): If not optimizing, call
9028 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
9029 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
9030 if it wasn't found in var_map.
9031 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
9032 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
9033 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
9035 * gimplify.c (nonlocal_vlas): New variable.
9036 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
9038 (gimplify_body): Create and destroy nonlocal_vlas.
9040 * dwarf2out.c (loc_descr_plus_const): New function.
9041 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
9042 mem_loc_descriptor, loc_descriptor_from_tree_1,
9043 descr_info_loc, gen_variable_die): Use it.
9045 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
9046 !TREE_STATIC VAR_DECLs.
9047 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
9048 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
9049 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
9050 DECL_BY_REFERENCE is valid.
9051 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
9052 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
9053 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
9054 Copy DECL_BY_REFERENCE.
9055 (struct nesting_copy_body_data): New type.
9056 (nesting_copy_decl): New function.
9057 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
9058 if they have variable length.
9060 2009-04-26 Michael Matz <matz@suse.de>
9062 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
9063 mark new temporaries for renaming.
9065 2009-04-26 Joseph Myers <joseph@codesourcery.com>
9068 * c-decl.c (global_bindings_p): Return negative value.
9069 (c_variable_size): New. Based on variable_size from
9071 (grokdeclarator): Call c_variable_size not variable_size.
9073 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
9075 * config/i386/i386.c (print_operand) ['z']: Fix typo.
9077 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
9079 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
9080 Redefine it to just use mingw/include.
9081 (ASM_SPEC): Rules for -m32 and -m64.
9082 (LINK_SPEC): Use Likewise.
9083 (SPEC_32): New define.
9084 (SPEC_64): Likewise.
9085 (SUB_LINK_SPEC): Likewise.
9086 (MULTILIB_DEFAULTS): New define.
9087 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
9088 Add multilib options.
9089 (MULTILIB_DIRNAMES): Likewise.
9090 (MULTILIB_OSDIRNAMES): Likewise.
9092 (INSTALL_LIBGCC): Likewise.
9094 2009-04-26 Joseph Myers <joseph@codesourcery.com>
9097 * c-tree.h (enum c_inline_static_type): New.
9098 (record_inline_static): Declare.
9099 * c-decl.c (struct c_inline_static, c_inline_statics,
9100 record_inline_static, check_inline_statics): New.
9101 (pop_file_scope): Call check_inline_statics.
9102 (start_decl): Call record_inline_static instead of pedwarning
9103 directly for static in inline function.
9104 * c-typeck.c (build_external_ref): Call record_inline_static
9105 instead of pedwarning directly for static referenced in inline
9108 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
9110 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
9111 not new but only being rescanned.
9112 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
9113 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
9114 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
9115 record_set_info, compute_set, grealloc): Remove.
9116 (recompute_all_luids): New function.
9117 (gcse_main): Don't compute sets, and don't do related memory
9118 allocations/free-ing. If something changed before the end of the
9119 pass, update LUIDs using recompute_all_luids.
9120 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
9121 (free_gcse_mem): Don't free it either.
9122 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
9123 Use the df insn LUIDs.
9124 (load_killed_in_block): Likewise.
9125 (compute_hash_table_work): Don't compute reg_set_in_block.
9126 (compute_transp): Use DF_REG_DEF_CHAINs.
9127 (local_cprop_pass): Don't use compute_sets and related functions.
9128 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
9129 Use get_max_uid() instead of max_cuid.
9130 (insert_insn_end_basic_block, pre_insert_copy_insn,
9131 update_ld_motion_stores): Don't try to
9132 keep reg_set tables up to date.
9133 (pre_insert_copies): Use df insn LUIDs.
9134 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
9135 (reg_set_info): Don't use extra bitmap argument.
9136 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
9137 information to compute regs_set_in_block.
9138 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
9139 (bypass_jumps): Don't use compute_sets and friends.
9141 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9144 * opts.c (undocumented_msg): Do not leave blank even with
9147 2009-04-25 Joseph Myers <joseph@codesourcery.com>
9149 * c-decl.c (build_enumerator): Allow values folding to integer
9150 constants but not integer constant expressions with a pedwarn if
9153 2009-04-25 Joseph Myers <joseph@codesourcery.com>
9156 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
9157 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
9158 type is an integer constant.
9160 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
9163 * config/i386/i386.c (print_operand) ['z']: Revert handling of
9166 2009-04-25 Joseph Myers <joseph@codesourcery.com>
9169 * c-decl.c (grokdeclarator): Diagnose declarations of functions
9170 with variably modified return type and no storage class
9171 specifiers, except for the case of nested functions. Distinguish
9172 extern declarations of functions with variably modified return
9173 types from those of objects with variably modified types.
9175 2009-04-25 Jan Hubicka <jh@suse.cz>
9177 * tree.c (list_equal_p): New function.
9178 * tree.h (list_equal_p): Declare.
9179 * coretypes.h (edge_def, edge, const_edge, basic_block_def
9180 basic_block_def, basic_block, const_basic_block): New.
9181 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
9182 (redirect_eh_edge): New function.
9183 (make_eh_edge_update_phi): EH edges are not abnormal.
9184 * except.c: Include tree-flow.h.
9185 (list_match): New function.
9186 (eh_region_replaceable_by_p): New function.
9187 (replace_region): New function.
9188 (hash_type_list): New function.
9189 (hash_eh_region): New function.
9190 (eh_regions_equal_p): New function.
9191 (merge_peers): New function.
9192 (remove_unreachable_regions): Verify EH tree when checking;
9194 (copy_eh_region_1): New function.
9195 (copy_eh_region): New function.
9196 (push_reachable_handler): New function.
9197 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
9198 regions without label but with live RESX.
9199 * except.h (redirect_eh_edge_to_label): New.
9200 * tree-flow.h (redirect_eh_edge): New.
9201 * coretypes.h (edge_def, edge, const_edge, basic_block_def
9202 basic_block_def, basic_block, const_basic_block): Remove.
9203 * Makefile.in (except.o): Add dependency on tree-flow.h
9204 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
9205 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
9208 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
9211 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
9212 on the destination of memcpy.
9214 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
9216 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
9217 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
9218 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
9220 2009-04-25 Jan Hubicka <jh@suse.cz>
9222 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
9223 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
9224 to be reached by different label than left.
9225 (update_eh_edges): Update comment; remove edge_to_remove if possible
9226 and return true if suceeded.
9227 (cleanup_empty_eh): Accept sharing map; handle shared regions.
9228 (cleanup_eh): Compute sharing map.
9229 * except.c (remove_eh_handler_and_replace): Add argument if we should
9231 (remove_unreachable_regions): Update for label sharing.
9232 (label_to_region_map): Likewise.
9233 (get_next_region_sharing_label): New function.
9234 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
9236 (remove_eh_handler): Update.
9237 (remove_eh_region_and_replace_by_outer_of): New function.
9238 * except.h (struct eh_region): Add next_region_sharing_label.
9239 (remove_eh_region_and_replace_by_outer_of,
9240 get_next_region_sharing_label): Declare.
9241 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
9243 2009-04-25 Jan Hubicka <jh@suse.cz>
9245 * tree-cfg.c (split_critical_edges): Split also edges where we can't
9246 insert code even if they are not critical.
9248 2009-04-25 Jan Hubicka <jh@suse.cz>
9250 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
9251 (gimple_can_remove_branch_p): EH edges won't remove branch by
9253 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
9254 updating of non-abnormal EH edges.
9255 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
9256 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
9257 (split_critical_edges): Split also edges where emitting code on them
9258 will lead to splitting later.
9260 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
9261 H.J. Lu <hongjiu.lu@intel.com>
9264 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
9265 the configured assembler supports fildq and fistpq mnemonics.
9266 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
9267 * configure: Regenerated.
9270 * config/i386/i386.c (print_operand): Handle 'Z'.
9271 ['z']: Remove handling of special fild/fist suffixes.
9272 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
9273 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
9274 suffix of fild insn.
9275 (*floatsi<mode>2_vector_mixed): Ditto.
9276 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
9277 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
9278 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9279 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
9280 * config/i386/gas.h (GAS_MNEMONICS): Remove.
9282 2009-04-25 Ben Elliston <bje@au.ibm.com>
9284 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
9285 the source of a set operation.
9287 2009-04-25 Anatoly Sokolov <aesok@post.ru>
9289 * target.h (struct gcc_target): Add case_values_threshold field.
9290 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
9291 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
9292 * targhooks.c (default_case_values_threshold): New function.
9293 * targhooks.h (default_case_values_threshold): Declare function.
9294 * stmt.c (expand_case): Use case_values_threshold target hook.
9295 * expr.h (case_values_threshold): Remove declartation.
9296 * expr.c (case_values_threshold): Remove function.
9297 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
9299 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
9300 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
9301 (avr_case_values_threshold): Declare as static.
9302 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
9304 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
9305 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
9306 (mn10300_case_values_threshold): New function.
9308 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
9310 * ira.c (setup_cover_and_important_classes): Add enum cast.
9312 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
9314 * genpreds.c (write_enum_constraint_num): Output definition of
9315 CONSTRAINT_NUM_DEFINED_P macro.
9316 * ira.c (setup_cover_and_important_classes): Use
9317 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
9319 2009-04-24 DJ Delorie <dj@redhat.com>
9321 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
9322 __SH2A_SINGLE_ONLY__ also.
9324 2009-04-24 Steve Ellcey <sje@cup.hp.com>
9326 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
9327 (movdf_internal): Ditto.
9328 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
9329 SFmode and DFmode constants.
9330 (ia64_print_operand): Add 'G' format for printing
9331 floating point constants.
9333 2009-04-24 Richard Guenther <rguenther@suse.de>
9335 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
9336 from unsigned additions.
9338 2009-04-24 Joseph Myers <joseph@codesourcery.com>
9340 * c-typeck.c (set_init_index): Allow array designators that are
9341 not integer constant expressions with a pedwarn if pedantic.
9343 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
9345 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
9346 zero if no overlap in nonzero bits between the operands.
9348 2009-04-24 Ian Lance Taylor <iant@google.com>
9350 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
9351 (record_dead_and_set_regs): Likewise.
9352 * df.h (struct df_mw_hardreg): Change flags field to int.
9353 (struct df_base_ref): Likewise.
9354 (struct df): Change changeable_flags field to int.
9355 * df-scan.c (df_defs_record): Change clobber_flags to int.
9356 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
9357 constants rather than #define macros.
9358 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
9359 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
9360 (enum dwarf_calling_convention): Likewise.
9361 (enum dwarf_line_number_x_ops): Likewise.
9362 (enum dwarf_call_frame_info): Likewise.
9363 (enum dwarf_source_language): Likewise.
9364 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
9365 (add_calling_convention_attribute): Likewise.
9366 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
9367 (combine_comparisons): Change compcode to int. Add cast to enum type.
9368 * genrecog.c (maybe_both_true_2): Change c to int.
9369 (write_switch): Likewise. Add cast to enum type.
9370 * gimplify.c (gimplify_omp_for): Handle return values from
9371 gimplify_expr using MIN rather than bitwise or.
9372 (gimplify_expr): Add cast to enum type.
9373 * ipa-prop.c (update_jump_functions_after_inlining): Change
9374 IPA_BOTTOM to IPA_JF_UNKNOWN.
9375 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
9376 Add casts to enum type.
9377 (setup_cover_and_important_classes): Change cl to int. Add casts
9379 (setup_class_translate): Change cl and mode to int.
9380 (ira_init_once): Change mode to int.
9381 (free_register_move_costs): Likewise.
9382 (setup_prohibited_mode_move_regs): Add casts to enum type.
9383 * langhooks.c (add_builtin_function_common): Rework assertion that
9384 value fits bitfield.
9385 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
9386 * omega.c (omega_do_elimination): Avoid math on enum types.
9387 * optabs.c (expand_vec_shift_expr): Remove casts to int.
9388 * opts.c (set_debug_level): Change 2 to enum constant. Use new
9389 int local to handle integral_argment value.
9390 * regmove.c (try_auto_increment): Change PUT_MODE to
9392 * reload.c (push_secondary_reload): Add casts to enum type.
9393 (secondary_reload_class, find_valid_class): Likewise.
9394 * reload1.c (emit_input_reload_insns): Likewise.
9395 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
9396 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
9397 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
9399 * tree.c (build_common_builtin_nodes): Add casts to enum type.
9400 * tree-complex.c (complex_lattice_t): Typedef to int rather than
9402 (expand_complex_libcall): Add casts to enum type.
9403 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
9404 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
9405 with ERROR_MARK, not NUM_TREE_CODES.
9406 (vect_create_epilog_for_reduction): Likewise.
9407 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
9408 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
9409 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
9411 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
9412 vect_unused_in_loop. Change 0 to loop_vect.
9413 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
9414 * var-tracking.c (get_init_value): Change return type to enum
9416 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
9417 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
9419 (arm_override_options): Add casts to enum type.
9420 (arm_emit_tls_decoration): Likewise.
9421 * config/i386/i386.c (ix86_function_specific_restore): Add casts
9423 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
9424 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
9425 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
9427 * config/s390/s390.c (code_for_builtin_64): Change to array of
9429 (code_for_builtin_31): Likewise.
9430 (s390_expand_builtin): Change code_for_builtin to enum insn_code
9432 * config/sparc/sparc.c (sparc_override_options): Change value
9433 field in struct code_model to enum cmodel. In initializer change
9434 0 to NULL and add cast to enum type.
9436 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
9437 Change all callers. Issue a -Wc++-compat warning using
9438 lhs_origtype if necessary.
9439 (convert_for_assignment): Issue -Wc++-compat warnings about
9440 invalid conversions to enum type on assignment.
9441 * c-common.h (build_modify_expr): Update declaration.
9443 2009-04-24 Nick Clifton <nickc@redhat.com>
9445 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
9446 (function_arg_advance): Likewise.
9447 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
9450 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
9452 * config/s390/constraints.md ('I', 'J'): Fix condition.
9454 2009-04-24 Diego Novillo <dnovillo@google.com>
9456 * gengtype-parse.c (parse_error): Add newline after message.
9458 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
9460 * config/i386/sse.md (avxmodesuffixs): Removed.
9461 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
9462 (*avx_pinsr<ssevecsize>): This.
9464 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
9466 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
9467 follow chains of regs with a single definition, and allow expressions
9468 that are function_invariant_p.
9469 (simple_rhs_p): Allow expressions that are function_invariant_p.
9471 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
9474 * fold-const.c (fold_cond_expr_with_comparison): When folding
9475 > and >= to MAX, make sure the MAX uses the same type as the
9476 comparison's operands.
9478 2009-04-24 Nick Clifton <nickc@redhat.com>
9480 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
9481 addressing for DImode accesses.
9482 (frv_print_operand_address): Handle PLUS case.
9483 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
9485 2009-04-24 Jakub Jelinek <jakub@redhat.com>
9487 PR rtl-optimization/39794
9488 * alias.c (canon_true_dependence): Add x_addr argument.
9489 * rtl.h (canon_true_dependence): Adjust prototype.
9490 * cse.c (check_dependence): Adjust canon_true_dependence callers.
9491 * cselib.c (cselib_invalidate_mem): Likewise.
9492 * gcse.c (compute_transp): Likewise.
9493 * dse.c (scan_reads_nospill): Likewise.
9494 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
9495 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
9496 canon_base_addr of the group, plus optional offset.
9497 (struct group_info): Rename canon_base_mem to
9499 (get_group_info): Set canon_base_addr to canon_rtx of base, not
9500 canon_rtx of base_mem.
9502 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
9504 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9505 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
9507 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9509 * config/spu/spu-builtins.h: Delete file.
9511 * config/spu/spu.h (enum spu_builtin_type): Move here from
9513 (struct spu_builtin_description): Likewise. Add GTY marker.
9514 Do not use enum spu_function_code or enum insn_code.
9515 (spu_builtins): Add extern declaration.
9517 * config/spu/spu.c: Do not include "spu-builtins.h".
9518 (enum spu_function_code, enum spu_builtin_type_index,
9519 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
9520 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
9521 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
9522 unsigned_V2DI_type_node): Move here from spu-builtins.h.
9523 (spu_builtin_types): Make static. Add GTY marker.
9524 (spu_builtins): Add extern declaration with GTY marker.
9527 * config/spu/spu-c.c: Do not include "spu-builtins.h".
9528 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
9529 Check programmatically whether all parameters are scalar.
9531 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
9533 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
9535 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
9536 assignment from the constructor either if the target is volatile.
9538 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
9540 * config/arm/arm.md (insv): Do not share operands[0].
9542 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
9544 * config/vxlib-tls.c (active_tls_threads): Delete.
9545 (delete_hook_installed): New.
9546 (tls_delete_hook): Don't delete the delete hook.
9547 (tls_destructor): Delete it here.
9548 (__gthread_set_specific): Adjust installing the delete hook.
9549 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
9550 __gthread_leave_tsd_dtor_context.
9552 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
9554 * c-format.c (gcc_tdiag_char_table): Add support for %E.
9556 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
9558 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
9560 (alpha_rtx_costs): Ditto.
9561 (emit_unlikely_jump): Use add_reg_note.
9562 (emit_frame_store_1): Ditto.
9563 (alpha_expand_prologue): Ditto.
9564 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
9565 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
9567 2009-04-23 Nick Clifton <nickc@redhat.com>
9569 * config/v850/v850.md (epilogue): Remove suppressed code.
9570 (return): Rename to return_simple and remove test of frame size.
9571 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
9572 to gen_return_simple.
9574 2009-04-22 Jing Yu <jingyu@google.com>
9577 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
9579 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
9582 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
9583 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
9584 value is a VECTOR_CST, the element type is the element type of the
9587 2009-04-22 DJ Delorie <dj@redhat.com>
9589 * config/m32c/m32c.h: Update GTY annotations to new syntax.
9591 2009-04-22 Jakub Jelinek <jakub@redhat.com>
9593 * alias.c (find_base_term): Move around LO_SUM case, so that
9594 CONST falls through into PLUS/MINUS handling.
9597 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
9598 into 0, use omit_one_operand.
9600 2009-04-23 Ben Elliston <bje@au.ibm.com>
9602 * config/rs6000/linux-unwind.h (get_regs): Remove type
9603 puns. Change the type of `pc' to an array of unsigned ints and
9604 update all users. Constify frame24.
9606 2009-04-22 DJ Delorie <dj@redhat.com>
9608 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
9609 declarations before code.
9610 (current_function_special_page_vector): Likewise.
9611 (m32c_expand_insv): Silence a warning.
9613 2009-04-21 Taras Glek <tglek@mozilla.com>
9615 * alias.c: Update GTY annotations to new syntax.
9616 * basic-block.h: Likewise.
9617 * bitmap.h: Likewise.
9618 * c-common.h: Likewise.
9619 * c-decl.c: Likewise.
9620 * c-parser.c: Likewise.
9621 * c-pragma.c: Likewise.
9622 * c-tree.h: Likewise.
9623 * cfgloop.h: Likewise.
9624 * cgraph.h: Likewise.
9625 * config/alpha/alpha.c: Likewise.
9626 * config/arm/arm.h: Likewise.
9627 * config/avr/avr.h: Likewise.
9628 * config/bfin/bfin.c: Likewise.
9629 * config/cris/cris.c: Likewise.
9630 * config/darwin.c: Likewise.
9631 * config/frv/frv.c: Likewise.
9632 * config/i386/i386.c: Likewise.
9633 * config/i386/i386.h: Likewise.
9634 * config/i386/winnt.c: Likewise.
9635 * config/ia64/ia64.h: Likewise.
9636 * config/iq2000/iq2000.c: Likewise.
9637 * config/mips/mips.c: Likewise.
9638 * config/mmix/mmix.h: Likewise.
9639 * config/pa/pa.c: Likewise.
9640 * config/pa/pa.h: Likewise.
9641 * config/rs6000/rs6000.c: Likewise.
9642 * config/s390/s390.c: Likewise.
9643 * config/sparc/sparc.c: Likewise.
9644 * config/xtensa/xtensa.c: Likewise.
9645 * cselib.h: Likewise.
9646 * dbxout.c: Likewise.
9647 * dwarf2out.c: Likewise.
9648 * except.c: Likewise.
9649 * except.h: Likewise.
9650 * fixed-value.h: Likewise.
9651 * function.c: Likewise.
9652 * function.h: Likewise.
9653 * gimple.h: Likewise.
9654 * integrate.c: Likewise.
9655 * optabs.c: Likewise.
9656 * output.h: Likewise.
9659 * stringpool.c: Likewise.
9660 * tree-data-ref.c: Likewise.
9661 * tree-flow.h: Likewise.
9662 * tree-scalar-evolution.c: Likewise.
9663 * tree-ssa-address.c: Likewise.
9664 * tree-ssa-alias.h: Likewise.
9665 * tree-ssa-operands.h: Likewise.
9668 * varasm.c: Likewise.
9669 * varray.h: Likewise.
9671 * coretypes.h: Do not define GTY macro if it is already defined.
9672 * doc/gty.texi: Update GTY documentation to new syntax.
9673 * gengtype-lex.l: Enforce attribute-like syntax for GTY
9674 annotations on structs.
9675 * gengtype-parse.c: Likewise.
9677 2009-04-22 Mark Heffernan <meheff@google.com>
9679 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
9681 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
9683 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
9686 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
9688 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
9689 the same as a PLUS without a shift. Increase the cost of a
9692 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9694 * Makefile.in: Update dependencies.
9695 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
9696 * errors.h: Remove bogus comment about compatibility.
9697 (warning): Update declaration.
9698 * genautomata.c: Update all calls to warning.
9699 * gimple.c: Do not include errors.h. Include toplev.h.
9700 * tree-ssa-structalias.c: Do not include errors.h.
9701 * omega.c: Likewise.
9702 * tree-ssa-reassoc.c: Likewise.
9703 * config/spu/spu-c.c: Likewise.
9704 * config/spu/t-spu-elf: Update dependencies.
9706 2009-04-22 Richard Guenther <rguenther@suse.de>
9708 PR tree-optimization/39824
9709 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
9710 make sure the types are compatible.
9712 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9715 * c-common.c (c_parse_error): Take a token_flags parameter.
9716 Use token_type for the token type instead.
9717 Pass token_flags to cpp_type2name.
9718 * c-common.h (c_parse_error): Update declaration.
9719 * c-parser.c (c_parser_error): Pass 0 as token flags.
9721 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
9723 PR rtl-optimization/39580
9724 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
9726 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9728 * function.c (expand_function_end): Do not emit a jump to the "naked"
9729 return label for fall-through returns.
9730 * except.c (sjlj_emit_function_exit): Always place the call to the
9731 unregister function at the location installed by expand_function_end.
9733 2009-04-22 Richard Guenther <rguenther@suse.de>
9735 PR tree-optimization/39845
9736 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
9737 (gen_inbound_check): Likewise.
9739 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
9741 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
9743 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
9744 * config/vxlib.c (__gthread_once): Add race guard for PPC.
9746 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
9748 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
9749 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
9750 shift counts to avoid out-of-bounds array accesses.
9752 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
9754 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
9755 (Pmode): Move above.
9757 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
9759 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
9760 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
9761 GET_CODE macro. Use IN_RANGE macro where appropriate.
9762 * config/alpha/alpha.h: Ditto.
9763 * config/alpha/alpha.md: Ditto.
9764 * config/alpha/constraints.md: Ditto.
9765 * config/alpha/predicates.md: Ditto.
9767 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
9769 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
9770 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9771 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9772 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9773 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9774 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9775 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9776 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9777 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9778 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9779 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9780 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9781 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9782 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9783 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9784 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9785 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9786 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9787 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9788 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9789 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9790 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9791 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9792 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9793 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9794 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9795 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9797 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9799 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
9800 references from comments.
9801 * cfgbuild.c: (count_basic_blocks): Delete.
9802 (find_basic_blocks_1): Delete.
9803 (find_basic_blocks): Delete.
9804 * except.c (finish_eh_generation): Make static. Move comment from
9805 except.h here. Remove find_basic_blocks references from comments.
9806 * except.h (finish_eh_generation): Delete.
9807 * basic-block.h (find_basic_blocks): Delete.
9808 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
9810 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
9812 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
9813 (sdbout_parms): Likewise.
9815 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
9817 * config/sh/sh.c (prepare_cbranch_operands): Use
9818 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
9819 (expand_cbranchdi4): Likewise.
9820 (from_compare): Add cast to enum type.
9821 (expand_cbranchsi4): Use add_reg_note.
9822 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
9823 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
9824 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
9825 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
9826 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
9827 instead of CODE_FOR_nothing.
9828 (cbranchdi4): Likewise. Fix the order of arguments for
9830 (push_fpscr): Use add_reg_note.
9831 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
9832 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
9834 2009-04-21 Joseph Myers <joseph@codesourcery.com>
9836 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
9837 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
9838 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
9839 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
9840 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
9841 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
9842 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
9843 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
9844 config/alpha/x-vms, config/arc/t-arc,
9845 config/arm/README-interworking, config/arm/arm-c.c,
9846 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
9847 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
9848 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
9849 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
9850 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
9851 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
9852 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
9853 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
9854 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
9855 config/cris/t-elfmulti, config/crx/t-crx,
9856 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
9857 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
9858 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
9859 config/h8300/t-h8300, config/i386/athlon.md,
9860 config/i386/darwin-libgcc.10.4.ver,
9861 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
9862 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
9863 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
9864 config/i386/t-linux64, config/i386/t-nwld,
9865 config/i386/t-rtems-i386, config/i386/t-sol2-10,
9866 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
9867 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
9868 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
9869 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
9870 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
9871 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
9872 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
9873 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
9874 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
9875 config/m68k/t-uclinux, config/mcore/t-mcore,
9876 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
9877 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
9878 config/mips/crtn.asm, config/mips/irix-crti.asm,
9879 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
9880 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
9881 config/mips/mips-fixed.md, config/mips/sb1.md,
9882 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
9883 config/mips/t-iris6, config/mips/t-isa3264,
9884 config/mips/t-libgcc-mips16, config/mips/t-linux64,
9885 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
9886 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
9887 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
9888 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
9889 config/mn10300/t-linux, config/mn10300/t-mn10300,
9890 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
9891 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
9892 config/picochip/libgccExtras/clzsi2.asm,
9893 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
9894 config/rs6000/darwin-libgcc.10.4.ver,
9895 config/rs6000/darwin-libgcc.10.5.ver,
9896 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
9897 config/rs6000/t-aix43, config/rs6000/t-aix52,
9898 config/rs6000/t-darwin, config/rs6000/t-fprules,
9899 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
9900 config/rs6000/t-lynx, config/rs6000/t-netbsd,
9901 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
9902 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
9903 config/rs6000/t-rtems, config/rs6000/t-spe,
9904 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
9905 config/score/t-score-elf, config/sh/divcost-analysis,
9906 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
9907 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
9908 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
9909 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
9910 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
9911 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
9912 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
9913 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
9914 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
9915 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
9916 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
9917 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
9918 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
9919 limitx.h, version.c, xcoff.h: Add copyright and license notices.
9920 * config/h8300/genmova.sh: Include copyright and license notices
9921 in generated output.
9922 * config/h8300/mova.md: Regenerate.
9923 * doc/install.texi2html: Include word "Copyright" in copyright
9924 notice and use name "Free Software Foundation, Inc.".
9925 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
9926 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
9927 ChangeLog-2007, ChangeLog-2008: Correct dates.
9929 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
9931 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
9932 NE_EXPR operations as well.
9933 * c-parser.c (c_parser_condition): Do not set location information on
9935 (c_parser_conditional_expression): Likewise.
9936 (c_parser_binary_expression): Set location information on operators.
9937 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
9938 TRUTH_NOT_EXPR has been folded.
9939 * fold-const.c (fold_truth_not_expr): Copy location information from
9940 the incoming expression to the outgoing one.
9941 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
9942 recursive calls on the LHS of the operator but pass that of the
9943 operator to recursive calls on the RHS of the operator. Set it
9945 (shortcut_cond_expr): Set the locus of the operator on the second
9946 COND_EXPR and that of the expression on the first in degenerate cases.
9947 Pass the locus of the expression to calls to shortcut_cond_r.
9948 Set the locus of the 'then' block on the associated jump, if any.
9949 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
9950 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
9951 expression to call to gimplify_boolean_expr.
9953 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
9955 * config.gcc: Add additional configuration for
9956 i686-w64-mingw* and x86_64-w64-mingw* triplet.
9957 * config/i386/mingw-w64.h: New mingw-w64 specific header.
9958 (CPP_SPEC): Redefine for allowing -municode option.
9959 (STARTFILE_SPEC): Likewise.
9960 * config/i386/t-mingw-w64: New.
9961 * config/i386/mingw-w64.opt: New.
9962 (municode): Add new target option.
9963 * doc/invoke.texi (municode): Add documentation for new option.
9965 2009-04-21 Ian Lance Taylor <iant@google.com>
9967 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9968 Correct test for number of arguments.
9969 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
9971 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
9973 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
9974 argument of emit_library_call.
9976 2009-04-21 Richard Guenther <rguenther@suse.de>
9979 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
9980 inside VIEW_CONVERT_EXPRs.
9982 2009-04-21 Martin Jambor <mjambor@suse.cz>
9984 * tree-switch-conversion.c (build_constructors): Split a long line.
9985 (constructor_contains_same_values_p): New function.
9986 (build_one_array): Create assigns of constants if possible, do not
9987 call mark_sym_for_renaming, call update_stmt.
9988 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
9989 make_rename_temp. Do not call mark_symbols_for_renaming, call
9991 (gen_def_assigns): Do not call mark_symbols_for_renaming or
9992 find_new_referenced_vars, call update_stmt.
9993 (gen_inbound_check): Use create_tmp_var and create ssa names manually
9994 instead of calling make_rename_temp. Do not call
9995 find_new_referenced_vars or mark_symbols_for_renaming, call
9998 2009-04-21 Richard Guenther <rguenther@suse.de>
10000 PR tree-optimization/39827
10001 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
10002 (tree_ssa_phiprop): Pass the correct array size.
10004 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
10006 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
10008 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10011 * c-typeck.c (lvalue_p): Move declaration ...
10012 * c-common.h (lvalue_p): ... to here.
10013 * c-common.c (candidate_equal_p): New.
10014 (add_tlist): Use it.
10015 (merge_tlist): Use it.
10016 (warn_for_collisions_1): Likewise.
10017 (warning_candidate_p): Accept more candidates.
10018 (verify_tree): A warning candidate can be an expression. Use
10021 2009-04-21 Ben Elliston <bje@au.ibm.com>
10024 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
10025 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
10026 options. Remove -mcall-solaris documentation.
10028 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10031 * doc/invoke.texi (-Wlong-long): Update description.
10032 * c-lex (interpret_integer): Only warn if there was no previous
10033 overflow and -Wlong-long is enabled.
10034 * c-decl.c (declspecs_add_type): Drop redundant flags.
10035 * c.opt (Wlong-long): Init to -1.
10036 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
10037 and front-end warn_long_long. Wlong-long only depends on other
10038 flags if it is uninitialized.
10039 * c-parser.c (disable_extension_diagnostics): warn_long_long is
10040 the same for CPP and FE.
10041 (restore_extension_diagnostics): Likewise.
10043 2009-04-20 Ian Lance Taylor <iant@google.com>
10045 Fix enum conversions which are invalid in C++:
10046 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
10047 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
10048 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
10049 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
10050 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
10051 (dbxout_parms): Likewise.
10052 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
10053 (df_clear_flags): Likewise.
10054 * df-problems.c (df_rd_bb_local_compute_process_def): Change
10055 top_flag parameter to int.
10056 (df_chain_create_bb_process_use): Likewise.
10057 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
10059 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
10060 (df_ref_create_structure, df_def_record_1): Likewise.
10061 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
10062 (df_notes_rescan): Change 0 to VOIDmode in function call.
10063 (df_get_call_refs, df_insn_refs_collect): Likewise.
10064 (df_bb_regs_collect): Likewise.
10065 (df_entry_block_defs_collect): Likewise.
10066 (df_exit_block_uses_collect): Likewise.
10067 * df.h: Update declarations.
10068 * double-int.c (double_int_divmod): Add cast to enum type.
10069 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
10070 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
10071 (based_loc_descr): Likewise.
10072 (loc_descriptor_from_tree_1): Change first_op and second_op to
10073 enum dwarf_location_atom. Add cast to enum type.
10074 * expmed.c (init_expmed): Change 0 to SET in function call.
10075 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
10076 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
10077 (do_store_flag): Likewise.
10078 * fixed-value.h (struct fixed_value): Change mode to enum
10080 * function.c (assign_parms): Change 0 to VOIDmode in function call.
10081 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
10083 (insert_insn_decl, insert_decl, insert_state): Likewise.
10084 (automata_list_finish): Likewise.
10085 * genrecog.c (process_define_predicate): Add cast to enum type.
10086 * gensupport.c (init_predicate_table): Add cast to enum type.
10087 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
10089 (gimple_build_call_1, gimple_build_label): Likewise.
10090 (gimple_build_goto, gimple_build_asm_1): Likewise.
10091 (gimple_build_switch_1, gimple_build_cdt): Likewise.
10092 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
10093 (enum fallback): Rename from enum fallback_t.
10094 (fallback_t): Typedef as int.
10095 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
10096 GSI_SAME_STMT in function call.
10097 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
10099 (setup_reg_class_relations): Likewise.
10100 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
10101 (setup_prohibited_class_mode_regs): Add cast to enum type.
10102 (setup_prohibited_mode_move_regs): Likewise.
10103 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
10104 (record_address_regs): Change i to enum reg_class.
10105 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
10106 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
10107 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
10108 (GET_MODE_2XWIDER_MODE): Likewise.
10109 (GET_CLASS_NARROWEST_MODE): Likewise.
10110 * omp-low.c (expand_omp_for): Add cast to enum type.
10111 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
10112 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
10113 * postreload.c (reload_cse_simplify_operands): Change rclass local
10115 * predict.c (combine_predictions_for_insn): Change best_predictor
10116 and predictor to enum br_predictor.
10117 (combine_predictions_for_bb): Likewise.
10118 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
10119 use SET_PREDICT_EXPR_OUTCOME.
10120 * real.c (real_arithmetic): Change icode to code in function call.
10121 * reginfo.c (init_move_cost): Add casts to enum type.
10122 (init_reg_sets_1, init_fake_stack_mems): Likewise.
10123 * regmove.c (regclass_compatible_p): Change class0 and class1 to
10125 * reload.c (find_valid_class): Add casts to enum type.
10126 (push_reload): Change 0 to NO_REGS in function call.
10127 (find_reloads): Change this_alternative to array of enum
10128 reg_class. Remove some now-unnecessary casts.
10129 (make_memloc): Change 0 to VOIDmode in function call.
10130 * reload1.c (reload): Change 0 to VOIDmode in function call.
10131 (eliminate_regs_1, elimination_effects): Likewise.
10132 (eliminate_regs_in_insn): Likewise.
10133 (emit_input_reload_insns): Add cast to enum type.
10134 (delete_output_reload): Change 0 to VOIDmode in function call.
10135 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
10136 to enum type in function call.
10137 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
10138 (SET_PREDICT_EXPR_OUTCOME): Define.
10139 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
10140 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
10141 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
10142 (dump_function): Likewise.
10143 * tree-dump.h: Update declarations.
10144 * tree-pass.h: Update declarations.
10145 * varasm.c (assemble_integer): Change mclass to enum mode_class.
10146 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
10148 (arm_rtx_costs_1): Correct parenthesization.
10149 (arm_rtx_costs): Add casts to enum type.
10150 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
10151 (vfp_emit_fstmd): Use add_rg_note.
10152 (emit_multi_reg_push, emit_sfm): Likewise.
10153 (thumb_set_frame_pointer): Likewise.
10154 (arm_expand_prologue): Likewise.
10155 (arm_regno_class): Change return type to enum reg_class.
10156 (thumb1_expand_prologue): Use add_reg_note.
10157 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
10158 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
10160 * config/arm/gentune.sh: Add cast to enum type.
10161 * config/arm/arm-tune.md: Rebuild.
10162 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
10163 (ix86_split_fp_branch, predict_jump): Likewise.
10164 (ix86_expand_multi_arg_builtin): Change sub_code from enum
10165 insn_code to enum rtx_code.
10166 (ix86_builtin_vectorized_function): Add cast to enum type.
10167 * config/i386/i386.md (truncdfsf2): Change slot to enum
10169 (truncxf<mode>2, isinf<mode>2): Likewise.
10170 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
10172 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
10173 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
10174 (insert_bundle_state): Change 1 to INSERT in function call.
10175 (ia64_add_bundle_selector_before): Likewise.
10176 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
10177 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
10178 (restore_stack_nonlocal): Likewise.
10179 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
10181 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
10183 (mips_rtx_costs): Likewise.
10184 (mips_override_options): Add casts to enum type.
10185 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
10187 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
10188 (store_reg, set_reg_plus_d): Likewise.
10189 (hppa_expand_prologue, hppa_profile_hook): Likewise.
10190 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
10192 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
10194 (emit_unlikely_jump): Use add_reg_note.
10195 (rs6000_emit_allocate_stack): Likewise.
10196 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
10197 (output_toc): Change 1 to INSERT in function call.
10198 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
10199 (rs6000_initialize_trampoline): Likewise.
10200 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
10202 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
10203 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
10204 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
10205 (save_gprs): Use add_reg_note.
10206 (s390_emit_prologue): Likewise.
10207 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
10208 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
10209 (sparc_fold_builtin): Add cast to enum type.
10210 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
10212 (spu_expand_prologue): Use add_reg_note.
10213 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
10215 2009-04-20 Ian Lance Taylor <iant@google.com>
10217 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
10218 (c_parser_postfix_expression_after_primary): Get VEC for list of
10219 arguments. Get original types of arguments. Call
10220 build_function_call_vec.
10221 (cached_expr_list_1, cached_expr_list_2): New static variables.
10222 (c_parser_expr_list): Change return type to VEC *. Add
10223 p_orig_types parameter. Change all callers.
10224 (c_parser_release_expr): New static function.
10225 (c_parser_vec_to_tree_list): New static function.
10226 * c-typeck.c (build_function_call): Rewrite to build a VEC and
10227 call build_function_call_vec.
10228 (build_function_call_vec): New function, based on old
10229 build_function_call.
10230 (convert_arguments): Remove nargs and argarray parameters. Change
10231 values to a VEC. Add origtypes parameter.
10232 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
10233 (convert_for_assignment): Add origtype parameter. Change all
10234 callers. If warn_cxx_compat, check for conversion to an enum
10235 type when calling a function.
10236 (store_init_value): Add origtype parameter. Change all callers.
10237 (digest_init): Likewise.
10238 (struct init_node): Add origtype field.
10239 (add_pending_init): Add origtype parameter. Change all callers.
10240 (output_init_element): Likewise.
10241 (output_pending_init_elements): Pass origtype from init_node to
10242 output_init_element.
10243 (process_init_element): Pass origtype from c_expr to
10244 output_init_element.
10245 (c_finish_return): Add origtype parameter. Change all callers.
10246 * c-common.c (sync_resolve_size): Change params to VEC *. Change
10248 (sync_resolve_params): Likewise.
10249 (sync_resolve_return): Change params to first_param. Change caller.
10250 (resolve_overloaded_builtins): Change params to VEC *. Change
10251 callers. Save first parameter around call to build_function_call_vec.
10252 * c-decl.c (finish_decl): Add origtype parameter. Change all
10253 callers. Call build_function_call_vec rather than
10254 build_function_call for cleanup.
10255 * c-tree.h: Update declarations.
10256 * c-common.h: Update declarations.
10257 * stub-objc.c (objc_rewrite_function_call): Change parameter from
10258 params to first_param.
10259 * target.h (struct gcc_target): Change resolve_overloaded_builtin
10260 params parameter from tree to void *.
10261 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10262 Change arglist parameter to have type void *, and to be a pointer
10264 * config/rs6000/rs6000-protos.h
10265 (altivec_resolve_overloaded_builtin): Update declaration.
10266 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
10267 fnargs parameter to have type void *, and to be a pointer to a
10268 VEC. Call build_function_call_vec instead of
10269 build_function_call.
10270 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
10272 2009-04-20 Joey Ye <joey.ye@intel.com>
10273 Xuepeng Guo <xuepeng.guo@intel.com>
10274 H.J. Lu <hongjiu.lu@intel.com>
10276 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
10278 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
10279 (IX86_LEA_PRIORITY): Likewise.
10280 (distance_non_agu_define): New function.
10281 (distance_agu_use): Likewise.
10282 (ix86_lea_for_add_ok): Likewise.
10283 (ix86_dep_by_shift_count): Likewise.
10285 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
10286 should split for LEA.
10288 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
10290 (ix86_dep_by_shift_count): Likewise.
10292 2009-04-20 Richard Guenther <rguenther@suse.de>
10294 * expr.c (handled_component_p): Move ...
10295 * tree.h (handled_component_p): ... here.
10296 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
10297 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
10298 and REALPART_EXPR to be in one group.
10300 2009-04-20 Richard Guenther <rguenther@suse.de>
10302 * basic-block.h (get_all_dominated_blocks): Declare.
10303 * dominance.c (get_all_dominated_blocks): New function.
10304 * tree-cfg.c (get_all_dominated_blocks): Remove.
10305 (remove_edge_and_dominated_blocks): Adjust.
10306 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
10307 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
10308 instead of recursing.
10310 2009-04-20 Doug Kwan <dougkwan@google.com>
10312 * cgraph.h (cgraph_node_ptr): New type for vector functions.
10313 (struct cgraph_node_set_def): New type.
10314 (cgraph_node_set) New type. Also declare vector functions.
10315 (struct cgraph_node_set_element_def): New type.
10316 (cgraph_node_set_element): Ditto.
10317 (cgraph_node_set_iterator): New iterator type.
10318 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
10319 cgraph_node_set_remove, dump_cgraph_node_set,
10320 debug_cgraph_node_set): New prototypes.
10321 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
10322 cgraph_node_set_size): New inlines.
10323 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
10324 including cgraph.h.
10325 (struct ipa_opt_pass): Add struct cgraph_node_set_def
10326 argument to function 'write_summary'.
10327 * ipa.c: Include ggc.h.
10328 (hash_cgraph_node_set_element,
10329 eq_cgraph_node_set_element, cgraph_node_set_new,
10330 cgraph_node_set_add, cgraph_node_set_remove,
10331 cgraph_node_set_find, dump_cgraph_node_set,
10332 debug_cgraph_node_set): New functions.
10333 * Makefile.in (ipa.o): Add dependency on GGC_H.
10335 2009-04-20 Ira Rosen <irar@il.ibm.com>
10337 PR tree-optimization/39675
10338 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
10339 check of the return code of vect_schedule_slp. Check that
10340 stmt_vec_info still exists for the statement, before checking its
10341 vectorization type.
10343 2009-04-20 Michael Matz <matz@suse.de>
10345 * Makefile.in (generated_files): Take out $(simple_generated_c).
10347 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
10349 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
10350 (UINTPTR_TYPE): Likewise.
10352 2009-04-19 Joseph Myers <joseph@codesourcery.com>
10355 * c-typeck.c (digest_init): Check for initializing an array with a
10358 2009-04-19 Joseph Myers <joseph@codesourcery.com>
10361 * c-semantics.c (pop_stmt_list): Propagate
10362 STATEMENT_LIST_HAS_LABEL to parent statement list.
10364 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
10366 * config/mips/mips.h (mips_tune_attr): New macro.
10367 * config/mips/mips.md (cpu): Use it.
10369 2009-04-19 Joseph Myers <joseph@codesourcery.com>
10372 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
10375 2009-04-19 Diego Novillo <dnovillo@google.com>
10377 * toplev.c (compile_file): Move call to coverage_finish ...
10378 * cgraphunit.c (ipa_passes): ... here.
10379 Call cgraph_process_new_functions.
10380 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
10381 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
10383 2009-04-19 Jan Hubicka <jh@suse.cz>
10385 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
10387 (dump_cgraph_node): Dump can throw external flag.
10388 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
10390 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
10394 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
10395 * common.opt (Wlogical-op): Move from here...
10396 * c.opt (Wlogical-op): ... to here.
10397 * c-typeck.c (parser_build_binary_op): Update call to
10398 warn_logical_operator.
10399 * c-opts.c (c_common_post_options): Enable warn_logical_op with
10401 * c-common.c (warn_logical_op): Update.
10402 * c-common.h (warn_logical_op): Update declaration.
10404 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
10406 * tree.c (protected_set_expr_location): Fix formatting.
10408 2009-04-18 Joseph Myers <joseph@codesourcery.com>
10411 * c-typeck.c (readonly_warning): new.
10412 (build_unary_op, build_modify_expr): Use readonly_warning for
10413 storing into something readonly but not const-qualified.
10415 2009-04-18 Joseph Myers <joseph@codesourcery.com>
10418 * c-typeck.c (build_unary_op): Check for taking address of
10419 expression of type void.
10421 2009-04-18 Joseph Myers <joseph@codesourcery.com>
10424 * c-typeck.c (build_function_call): Check for calling a function
10425 with qualified void return types. Call require_complete_type when
10428 2009-04-18 Jan Hubicka <jh@suse.cz>
10430 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
10432 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
10433 can_throw_external flag.
10434 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
10435 * ipa-pure-const.c (ignore_edge): New function.
10436 (propagate): Compute order for NOTHROW computation; set NOTHROWs
10437 only over can_throw_external edges.
10438 (local_pure_const): Add nothrow flag.
10439 * ipa-utils.c (searchc): Add ignore_edge callback.
10440 (ipa_utils_reduced_inorder): Add ignore_edge callback.
10441 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
10442 (set_nothrow_function_flags): Update cgraph.
10443 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
10445 2009-04-18 Richard Guenther <rguenther@suse.de>
10447 PR middle-end/39804
10448 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
10449 (fold_stmt): ... this and ...
10450 (fold_stmt_inplace): ... this.
10451 (fold_stmt_1): Fold references in calls and asms.
10452 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
10454 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
10456 * tree-vrp.c (ssa_name_nonzero_p): Remove.
10457 * tree.h: Remove the prototype for ssa_name_nonzero_p.
10459 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
10461 * tree.c (function_args_count): Remove.
10462 * tree.h: Remove the prototype for function_args_count.
10464 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
10466 * tree-iterator.c (expr_only): Remove.
10467 * tree.h: Remove the prototype for expr_only.
10469 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
10471 * reginfo.c (cannot_change_mode_set_regs): Remove.
10472 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
10474 2009-04-08 Anatoly Sokolov <aesok@post.ru>
10476 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
10477 whether operands 0 and 1 overlaps.
10479 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
10481 PR middle-end/36902
10482 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
10483 pointer. Use warning_at instead of warning.
10484 (search_for_addr_array): Likewise.
10485 (check_array_bounds): Likewise.
10486 (check_all_array_refs): Check that the incoming edge is not in the
10487 list of edges to be removed.
10488 (check_all_array_refs): Avoid the temporal pointer.
10489 (vrp_visit_cond_stmt): Fix typo.
10490 (simplify_switch_using_ranges): Handle the case where the switch
10491 index is an integer constant.
10493 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
10495 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
10497 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
10499 * doc/extend.texi, doc/invoke.texi: Fix typos.
10501 2009-04-17 Cary Coutant <ccoutant@google.com>
10503 * tree-flow-inline.h (get_lineno): Fix inverted test.
10505 2009-04-17 Diego Novillo <dnovillo@google.com>
10507 * tree-ssa-pre.c (create_expression_by_pieces): Remove
10508 assertion for AVAIL_OUT.
10510 2009-04-17 Mike Frysinger <vapier@gentoo.org>
10513 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
10514 * config/sh/linux-atomic.asm: Likewise.
10516 2009-04-17 Diego Novillo <dnovillo@google.com>
10518 * except.c (debug_eh_tree): New.
10519 (struct eh_region, struct eh_status): Move ...
10520 * except.h: ... here.
10521 (add_type_for_runtime): Declare extern.
10522 (lookup_type_for_runtime): Likewise.
10523 (debug_eh_tree): Declare.
10524 * Makefile.in (GTFILES): List except.h before except.c
10526 2009-04-17 Diego Novillo <dnovillo@google.com>
10528 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
10529 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
10530 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
10531 (find_vars_r): ... here.
10532 * tree-flow.h (find_referenced_vars_in): Declare.
10533 * tree-ssa-pre.c (create_expression_by_pieces): Assert
10534 that AVAIL_OUT exists for BLOCK.
10535 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
10536 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
10537 (tree-parloops.o): Likewise.
10539 2009-04-17 Simon Baldwin <simonb@google.com>
10541 * toplev.c (default_tree_printer): Add handling for %E format.
10543 2009-04-17 Diego Novillo <dnovillo@google.com>
10545 * tree-pretty-print.c (dump_generic_node): Add break after
10546 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
10547 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
10548 FUNCTION_TYPE together. Call print_struct_decl when printing
10549 structures and TDF_SLIM is not given.
10550 (print_struct_decl): Fix logic for detecting recursion.
10552 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
10555 * gcc.c (create_at_file): New.
10556 (compile_input_file_p): New.
10557 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
10558 * main.c (main): Update call to toplev_main.
10559 * toplev.c (toplev_main): Change signature. Call expandargv.
10560 * toplev.h (toplev_main): Change signature.
10562 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
10564 * dwarf2out.c (field_byte_offset): Use the type size as the field size
10565 if the latter is not constant.
10567 2009-04-17 David Edelsohn <edelsohn@gnu.org>
10569 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
10571 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
10573 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
10574 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
10576 2009-04-17 Richard Guenther <rguenther@suse.de>
10578 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10579 Handle component references view-converting an invariant address.
10581 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
10583 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
10584 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
10585 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
10586 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
10587 Use @deftypevr rather than @deftypevar.
10589 2009-04-17 Richard Guenther <rguenther@suse.de>
10591 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
10592 (get_prop_source_stmt): Likewise.
10593 (can_propagate_from): Likewise.
10595 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
10597 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
10598 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
10599 (--with-multilib-list): Add default value.
10600 * configure: Regenerate.
10601 * Makefile.in (TM_ENDIAN_CONFIG): Define.
10602 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
10603 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
10604 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
10605 Don't add default cpu to multilib list unnecessarily, but do enable
10606 the relevant compiler option..
10607 Add support for --with-multilib-list=<blank> and
10608 --with-multilib-list=!<somelib> to supress unwanted multilibs.
10609 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
10610 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
10611 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
10612 TM_MULTILIB_CONFIG.
10613 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
10614 (MULTILIB_OSDIRNAMES): New variable.
10615 * config/sh/t-1e: Delete file.
10616 * config/sh/t-mlib-sh1: Delete file.
10617 * config/sh/t-mlib-sh2: Delete file.
10618 * config/sh/t-mlib-sh2a: Delete file.
10619 * config/sh/t-mlib-sh2a-nofpu: Delete file.
10620 * config/sh/t-mlib-sh2a-single: Delete file.
10621 * config/sh/t-mlib-sh2a-single-only: Delete file.
10622 * config/sh/t-mlib-sh2e: Delete file.
10623 * config/sh/t-mlib-sh3e: Delete file.
10624 * config/sh/t-mlib-sh4: Delete file.
10625 * config/sh/t-mlib-sh4-nofpu: Delete file.
10626 * config/sh/t-mlib-sh4-single: Delete file.
10627 * config/sh/t-mlib-sh4-single-only: Delete file.
10628 * config/sh/t-mlib-sh4a: Delete file.
10629 * config/sh/t-mlib-sh4a-nofpu: Delete file.
10630 * config/sh/t-mlib-sh4a-single: Delete file.
10631 * config/sh/t-mlib-sh4a-single-only: Delete file.
10632 * config/sh/t-mlib-sh4al: Delete file.
10633 * config/sh/t-mlib-sh5-32media: Delete file.
10634 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
10635 * config/sh/t-mlib-sh5-64media: Delete file.
10636 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
10637 * config/sh/t-mlib-sh5-compact: Delete file.
10638 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
10639 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
10640 * doc/install.texi (Options specification): Add
10641 --with-multilib-list and --with-endian.
10643 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
10645 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
10647 (OBJS-common): Add plugin-version.o.
10648 (plugin-version.o): New.
10649 * gcc-plugin.h (plugin_gcc_version): New.
10650 (plugin_default_version_check): New.
10651 (plugin_init_func, plugin_init): Add version argument.
10652 * plugin-version.c: New.
10653 * plugin.c (str_plugin_gcc_version_name): New.
10654 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
10655 pass it to the init function.
10656 (plugin_default_version_check): New.
10658 2009-04-17 Richard Guenther <rguenther@suse.de>
10660 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
10661 for decl-vs-decl disambiguation.
10663 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
10665 * config/s390/s390.h (s390_tune_attr): New macro definition.
10666 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
10668 2009-04-17 Richard Guenther <rguenther@suse.de>
10670 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
10671 (fold_stmt_r): Likewise.
10672 (maybe_fold_reference): New function.
10673 (fold_gimple_assign): Handle cases fold_stmt_r did.
10674 (fold_stmt): Do not use fold_stmt_r.
10675 (fold_stmt_inplace): Likewise.
10677 2009-04-17 Richard Guenther <rguenther@suse.de>
10679 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
10680 (record_equivalences_from_stmt): Remove useless checks and
10682 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
10683 the type is already suitable.
10685 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
10687 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
10689 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
10691 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
10692 (CMPtype): Define as __gcc_CMPtype.
10694 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
10696 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
10697 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
10699 2009-04-17 Richard Guenther <rguenther@suse.de>
10701 PR tree-optimization/39746
10702 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
10703 special-casing for builtins and static variable use/def.
10704 (call_may_clobber_ref_p_1): Likewise.
10706 2009-04-16 Ian Lance Taylor <iant@google.com>
10708 * df.h: Include "timevar.h".
10709 (struct df_problem): Change tv_id field to timevar_id_t.
10710 * tree-pass.h: Include "timevar.h".
10711 (struct opt_pass): Change tv_id field to timevar_id_t.
10712 * timevar.h (timevar_id_t): Define TV_NONE.
10713 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
10714 TV_NONE rather than tv_id != 0.
10715 (execute_one_pass): Likewise.
10716 * Makefile.in (DF_H): Add $(TIMEVAR_H).
10717 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
10718 dependencies to $(TREE_PASS_H).
10719 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
10721 (pass_branch_target_load_optimize2): Likewise.
10722 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
10723 (pass_outof_cfg_layout_mode): Likewise.
10724 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
10725 (pass_rebuild_cgraph_edges): Likewise.
10726 (pass_remove_cgraph_callee_edges): Likewise.
10727 * df-core.c (pass_df_initialize_opt): Likewise.
10728 (pass_df_initialize_no_opt): Likewise.
10729 (pass_df_finish): Likewise.
10730 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
10731 * except.c (pass_set_nothrow_function_flags): Likewise.
10732 (pass_convert_to_eh_region_ranges): Likewise.
10733 * final.c (pass_compute_alignments): Likewise.
10734 * function.c (pass_instantiate_virtual_regs): Likewise.
10735 (pass_init_function): Likewise.
10736 (pass_leaf_regs): Likewise.
10737 (pass_match_asm_constraints): Likewise.
10738 * gimple-low.c (pass_lower_cf): Likewise.
10739 (pass_mark_used_blocks): Likewise.
10740 * init-regs.c (pass_initialize_regs): Likewise.
10741 * integrate.c (pass_initial_value_sets): Likewise.
10742 * ira.c (pass_ira): Likewise.
10743 * jump.c (pass_cleanup_barriers): Likewise.
10744 * omp-low.c (pass_expand_omp): Likewise.
10745 (pass_lower_omp): Likewise.
10746 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
10747 * recog.c (pass_split_all_insns): Likewise.
10748 (pass_split_after_reload): Likewise.
10749 (pass_split_before_regstack): Likewise.
10750 (pass_split_before_sched2): Likewise.
10751 (pass_split_for_shorten_branches): Likewise.
10752 * reginfo.c (pass_reginfo_init): Likewise.
10753 (pass_subregs_of_mode_init): Likewise.
10754 (pass_subregs_of_mode_finish): Likewise.
10755 * passes.c (pass_postreload): Likewise.
10756 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
10757 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
10758 (pass_warn_function_return): Likewise.
10759 (pass_warn_function_noreturn): Likewise.
10760 * tree-complex.c (pass_lower_complex): Likewise.
10761 (pass_lower_complex_O0): Likewise.
10762 * tree-if-conv.c (pass_if_conversion): Likewise.
10763 * tree-into-ssa.c (pass_build_ssa): Likewise.
10764 * tree-mudflap.c (pass_mudflap_1): Likewise.
10765 (pass_mudflap_2): Likewise.
10766 * tree-nomudflap.c (pass_mudflap_1): Likewise.
10767 (pass_mudflap_2): Likewise.
10768 * tree-nrv.c (pass_return_slot): Likewise.
10769 * tree-object-size.c (pass_object_sizes): Likewise.
10770 * tree-optimize.c (pass_all_optimizations): Likewise.
10771 (pass_early_local_passes): Likewise.
10772 (pass_all_early_optimizations): Likewise.
10773 (pass_cleanup_cfg): Likewise.
10774 (pass_cleanup_cfg_post_optimizing): Likewise.
10775 (pass_free_datastructures): Likewise.
10776 (pass_free_cfg_annotations): Likewise.
10777 (pass_fixup_cfg): Likewise.
10778 (pass_init_datastructures): Likewise.
10779 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
10780 (pass_late_warn_uninitialized): Likewise.
10781 (pass_update_address_taken): Likewise.
10782 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
10783 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
10784 (pass_cse_sincos): Likewise.
10785 (pass_convert_to_rsqrt): Likewise.
10786 * tree-ssa-structalias.c (pass_build_alias): Likewise.
10787 * tree-stdarg.c (pass_stdarg): Likewise.
10788 * tree-tailcall.c (pass_tail_recursion): Likewise.
10789 (pass_tail_calls): Likewise.
10790 * tree-vect-generic.c (pass_lower_vector): Likewise.
10791 (pass_lower_vector_ssa): Likewise.
10792 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
10794 2009-04-16 Joseph Myers <joseph@codesourcery.com>
10796 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
10798 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
10800 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
10801 logical and signext.
10803 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
10806 * config/sh/predicates.md (arith_operand): Check if the operand
10807 of TRUNCATE is a REG.
10809 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10811 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
10812 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
10814 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10816 * tree-iterator.c (tsi_split_statement_list_after,
10817 tsi_split_statement_list_before): Remove.
10818 * tree-iterator.h: Remove the prototypes for
10819 tsi_split_statement_list_after and tsi_split_statement_list_before.
10821 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10823 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
10824 * tree-ssa-propagate.h: Remove the prototype for
10825 stmt_makes_single_load.
10827 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10829 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
10830 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
10832 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10834 * tree-iterator.c (EXPR_LAST_BODY): Remove.
10836 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10838 * except.c (eh_region_outer_p): Remove.
10839 * except.h: Remove the prototype for eh_region_outer_p.
10841 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10843 * function.c (current_function_assembler_name): Remove.
10844 * function.h: Remove the prototype for
10845 current_function_assembler_name.
10847 2009-04-16 Ian Lance Taylor <iant@google.com>
10849 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
10850 (add_reg_note): Call alloc_reg_note.
10851 * rtl.h (alloc_reg_note): Declare.
10852 * combine.c (try_combine): Use alloc_reg_note.
10853 (recog_for_combine, move_deaths): Likewise.
10854 (distribute_notes): Use alloc_reg_note and add_reg_note.
10855 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
10856 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
10857 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
10859 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
10861 PR rtl-optimization/39762
10862 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
10863 ira_may_move_out_cost): Add comments about way of their usage.
10864 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
10866 * ira-conflicts.c (process_regs_for_copy): Use function
10867 ira_get_register_move_cost instead of global
10868 ira_register_move_cost.
10870 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
10871 color_pass, move_spill_restore, update_curr_costs): Ditto.
10873 * ira-lives.c (process_single_reg_class_operands): Ditto.
10875 * ira-emit.c (emit_move_list): Ditto.
10877 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
10878 (record_reg_classes): Ditto. Use functions
10879 ira_get_register_move_cost and ira_get_may_move_cost instead of
10880 global vars ira_register_move_cost, ira_may_move_out_cost and
10881 ira_may_move_in_cost.
10882 (record_address_regs): Don't call ira_init_register_move_cost.
10883 Use function ira_get_may_move_cost instead of global
10884 ira_may_move_in_cost.
10885 (process_bb_node_for_hard_reg_moves): Use function
10886 ira_get_register_move_cost instead of global ira_register_move_cost.
10887 (ira_costs): Don't call ira_init_register_move_cost.
10889 2009-04-16 Richard Guenther <rguenther@suse.de>
10891 * tree-cfg.c (verify_gimple_assign_binary):
10892 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
10893 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
10894 (create_general_new_stmt): Note that this function is broken.
10896 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
10898 * common.opt (fhelp): Add Var(help_flag).
10899 * gcc-plugin.h (plugin_info): Add help.
10900 * plugin.c (plugin_name_args): Add help.
10901 (register_plugin_info): Set plugin->help.
10902 (print_help_one_plugin): New.
10903 (print_plugins_help): New.
10904 * plugin.h (print_plugins_help): New.
10905 * toplev.c (toplev_main): Call print_plugins_help if needed.
10907 2009-04-16 Richard Guenther <rguenther@suse.de>
10909 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
10910 (gimple_ior_addresses_taken_1): New function.
10911 (gimple_ior_addresses_taken): Likewise.
10912 * gimple.h (struct gimple_statement_with_ops_base): Remove
10913 addresses_taken member.
10914 (gimple_ior_addresses_taken): Declare.
10915 (gimple_addresses_taken, gimple_addresses_taken_ptr,
10916 gimple_set_addresses_taken): Remove.
10917 * ipa-reference.c (mark_address): New function.
10918 (scan_stmt_for_static_refs): Use it for marking addresses taken.
10919 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
10920 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
10921 (gimple_add_to_addresses_taken): Remove.
10922 (get_tmr_operands): Call mark_address_taken.
10923 (get_asm_expr_operands): Likewise.
10924 (get_expr_operands): Likewise.
10925 (build_ssa_operands): Do not clear the addresses_taken bitmap.
10926 (free_stmt_operands): Do not free it.
10927 * tree-ssa.c (delete_tree_ssa): Likewise.
10928 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
10930 2009-04-16 Richard Guenther <rguenther@suse.de>
10932 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
10933 (walk_stmt_load_store_ops): Likewise.
10934 * gimple.c (get_base_loadstore): New function.
10935 (walk_stmt_load_store_addr_ops): Likewise.
10936 (walk_stmt_load_store_ops): Likewise.
10937 * ipa-pure-const.c (check_op): Simplify.
10938 (check_load, check_store): New functions.
10939 (check_stmt): Use walk_stmt_load_store_ops.
10940 * ipa-reference.c (mark_load): Adjust signature.
10941 (mark_store): Likewise.
10942 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
10944 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
10946 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
10947 (plugin_info): New.
10948 * opts.c (common_handle_option): Don't call print_version.
10949 * plugin.c (plugin_name_args): Add version.
10950 (register_plugin_info): New.
10951 (register_callback): Handle PLUGIN_INFO.
10952 (try_init_one_plugin): New.
10953 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
10955 (finalize_one_plugin): New.
10956 (finalize_plugins): New.
10957 (print_one_plugin): New.
10958 (print_plugins_versions): New.
10959 * plugin.h (print_plugins_versions): New.
10960 (finalize_plugins): New.
10961 * toplev.c (compile_file): Don't call initialize_plugins.
10962 (print_version): Call print_plugins_versions.
10963 (toplev_main): Call initialize_plugins. Print version if needed.
10964 Call finalize_plugins.
10966 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
10968 * common.opt (fversion): New.
10969 * gcc.c (print_version): New.
10970 (process_command): Don't print the version. Just set print_version.
10971 (main): Print version. Call subprocesses if print_version and
10972 verbose_flag are set.
10973 * opts.c (common_handle_option): Handle OPT_fversion.
10975 2009-04-16 Richard Guenther <rguenther@suse.de>
10976 Ira Rosen <irar@il.ibm.com>
10978 PR tree-optimization/39698
10979 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
10980 type of the reduction variable. Only generate the def if
10983 * omp-low.c (expand_omp_for_generic): When converting to a pointer
10984 make sure to first convert to an integer of the same precision.
10985 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
10986 the type of the evolution correctly in computing the new
10987 induction variable base.
10989 2009-04-16 Richard Guenther <rguenther@suse.de>
10991 PR middle-end/39625
10992 * tree-cfg.c (make_blocks): Split statements with to-be
10993 abnormal SSA names on the lhs.
10995 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
10997 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
10998 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
10999 * c-typeck.c (really_start_incremental_init): Likewise.
11000 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
11001 (TARGET_INITIALIZER): Remove it.
11002 * target.h (struct target): Remove vector_opaque_p.
11003 * tree.c (build_opaque_vector_type): New.
11004 * tree.h (TYPE_VECTOR_OPAQUE): New.
11005 (build_opaque_vector_type): Declare.
11006 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
11007 * config/rs6000/rs6000.c (build_opaque_vector_type,
11008 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
11009 (rs6000_init_builtins): Use build_opaque_vector_type for
11010 opaque_V4SI_type_node.
11012 2009-04-15 Catherine Moore <clm@codesourcery.com>
11014 * debug.h (set_name): Declare.
11015 * dwarf2out.c (dwarf2out_set_name): Declare.
11016 (dwarf2_debug_hooks): Add set_name.
11017 (find_AT_string): New.
11018 (add_AT_string): Call find_AT_string.
11019 (dwarf2out_set_name): New.
11020 * cp/decl.c (grokdeclarator): Call set_name.
11021 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
11022 * debug.c (do_nothing_debug_hooks): Likewise.
11023 * dbxout.c (dbx_debug_hooks): Likewise.
11024 * sdbout.c (sdb_debug_hooks): Likewise.
11026 2009-04-15 Michael Eager <eager@eagercon.com>
11028 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
11029 reg for single-precision FPU.
11030 * config/rs6000/rs6000.md (movsi_internal1): Only for
11031 !TARGET_SINGLE_FPU.
11032 (movsi_internal1_single): New. Add pattern to move SI values to/from
11033 single-precision FP regs.
11035 2009-04-15 Richard Guenther <rguenther@suse.de>
11037 * omp-low.c (lower_rec_input_clauses): Build correct address
11039 (expand_omp_for_generic): Fix multiplication type.
11040 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
11041 (generate_memset_zero): Fix types.
11042 * tree-profile.c (prepare_instrumented_value): Correctly
11045 2009-04-15 Ian Lance Taylor <iant@google.com>
11047 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
11048 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
11049 for -Wall and for -Wc++-compat.
11050 (c_common_post_options): For C++, set warn_enum_compare if not
11052 * c-tree.h (struct c_expr): Add field original_type.
11053 (build_external_ref): Update declaration.
11054 * c-parser.c (c_parser_braced_init): Set original_type.
11055 (c_parser_initelt): Likewise.
11056 (c_parser_expr_no_commas): Likewise.
11057 (c_parser_conditional_expression): Likewise.
11058 (c_parser_cast_expression): Likewise.
11059 (c_parser_unary_expression): Likewise. Pull setting of
11060 original_code to top of function.
11061 (c_parser_sizeof_expression): Set original_type.
11062 (c_parser_alignof_expression): Likewise.
11063 (c_parser_postfix_expression): Likewise. Pull setting of
11064 original_code to top of function.
11065 (c_parser_postfix_expression_after_paren_type): Set original_type.
11066 (c_parser_postfix_expression_after_primary): Likewise.
11067 (c_parser_expression): Likewise.
11068 * c-typeck.c (build_external_ref): Add type parameter. Change all
11070 (c_expr_sizeof_expr): Set original_type field.
11071 (parser_build_unary_op): Likewise.
11072 (parser_build_binary_op): Likewise. Optionally warn about
11073 comparisons of enums of different types.
11074 (digest_init): Set original_type field.
11075 (really_start_incremental_init): Likewise.
11076 (push_init_level, pop_init_level): Likewise.
11077 * doc/invoke.texi (Warning Options): -Wenum-compare now
11080 2009-04-15 Richard Guenther <rguenther@suse.de>
11082 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
11083 out a necessary conversion.
11084 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
11085 names we didn't value number.
11086 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
11088 2009-04-15 Richard Guenther <rguenther@suse.de>
11090 PR tree-optimization/39764
11091 * tree-ssa-ccp.c (get_value): Canonicalize value with
11092 canonicalize_float_value.
11094 2009-04-15 Jan Hubicka <jh@suse.cz>
11096 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
11097 Wrong version of patch.
11099 2009-04-15 Jan Hubicka <jh@suse.cz>
11101 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
11103 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
11105 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
11106 our distinct integral and vector types.
11108 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
11110 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
11111 * init.c (build_vtbl_address): Remove call to assemble_external.
11113 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
11115 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
11116 output for other floating point modes.
11118 2009-04-14 Diego Novillo <dnovillo@google.com>
11120 * diagnostic.c (diagnostic_report_diagnostic): Do not
11121 warn about loaded plugins for DK_ERROR and DK_WARNING.
11122 * c-decl.c (declspecs_add_type): Move call to
11123 invoke_plugin_callbacks ...
11124 * c-parser.c (c_parser_declspecs): ... here.
11125 * plugin.c (dump_active_plugins): Tidy output.
11127 2009-04-14 Diego Novillo <dnovillo@google.com>
11128 Le-Chun Wu <lcwu@google.com>
11130 * configure.ac: Add --enable-plugin support.
11131 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
11132 * Makefile.in (PLUGIN_H): Define.
11133 Export ENABLE_PLUGIN and GMPINC to site.exp.
11134 Add PLUGINLIBS to link command.
11135 Add/modify dependencies for plugin.o and files including plugin.h.
11137 * config.in: Regenerate.
11139 * opts.c (common_handle_option): Handle OPT_fplugin_ and
11142 2009-04-14 Le-Chun Wu <lcwu@google.com>
11144 * tree-pass.h (register_one_dump_file): Add a prototype for
11145 register_one_dump_file.
11146 * toplev.c (compile_file): Call initialize_plugins.
11147 (do_compile): Call invoke_plugin_callbacks.
11148 (toplev_main): Call invoke_plugin_callbacks.
11149 * common.opt: Add -fplugin= and -fplugin-arg-.
11150 * gcc-plugin.h: New public header file for plugins to include.
11151 * plugin.c: New source file.
11152 * plugin.h: New internal header file.
11153 * passes.c (register_one_dump_file): Make it external.
11155 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
11157 2009-04-14 Diego Novillo <dnovillo@google.com>
11159 * doc/plugins.texi: New.
11160 * doc/gccint.texi: Add reference to Plugins chapter.
11161 * doc/invoke.texi: Document -fplugin and -fplugin-arg
11162 * diagnostic.c (diagnostic_report_diagnostic): Warn about
11163 loaded plugins, if any.
11164 * timevar.def (TV_PLUGIN_INIT): Define.
11165 (TV_PLUGIN_RUN): Define.
11166 * plugin.c: Include timevar.h
11167 (plugins_active_p): New.
11168 (dump_active_plugins): New.
11169 (debug_active_plugins): New.
11171 2009-04-14 Joseph Myers <joseph@codesourcery.com>
11173 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
11175 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
11177 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
11179 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
11180 the same as a minus without a shift.
11182 2009-04-14 Nick Clifton <nickc@redhat.com>
11184 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
11185 comparisons with small integers will always produce a short
11188 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
11191 2008-12-19 Diego Novillo <dnovillo@google.com>
11193 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
11195 2009-04-14 Richard Guenther <rguenther@suse.de>
11197 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
11199 (verify_gimple_assign_binary): Likewise. Handle shifts and
11201 (verify_gimple_phi): Print the mismatched argument position.
11202 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11204 (vect_update_init_of_dr): Likewise.
11205 * matrix-reorg.c (transform_access_sites): Do what the
11207 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
11209 2009-04-13 Michael Eager <eager@eagercon.com>
11211 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
11212 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
11213 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
11214 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
11215 remove duplicate config
11217 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
11219 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
11220 file_name:line_number type locator of the call site.
11222 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
11224 * genautomata.c: Put blank after comma.
11225 (automaton_decls): New.
11226 (struct unit_usage): Add comments to member next.
11227 (store_alt_unit_usage): Keep the list ordered.
11228 (unit_present_on_list_p, equal_alternatives_p): New.
11229 (check_regexp_units_distribution): Check units distribution
11230 correctness correctly.
11231 (main): Don't write automata if error is found. Return correct
11234 * config/m68k/cf.md (cfv4_ds): Remove.
11235 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
11236 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
11238 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
11239 power4-load-ext, power4-store, power4-store-update,
11240 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
11241 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
11242 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
11243 power4-sqrt, power4-isync): Modify reservation to make correct
11244 unit distribution to automata.
11246 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
11247 power5-store-update, power5-two, power5-three, power5-lmul,
11248 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
11250 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
11252 * except.c (pass_set_nothrow_function_flags): Set name and add
11254 (set_nothrow_function_flags): Mention in the dump file when
11255 changing a function to nothrow.
11257 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
11260 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
11261 instead of unsigned long.
11263 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11265 * config/arm/arm.c (return_used_this_function): Remove.
11266 (arm_output_function_prologue): Remove use of
11267 return_used_this_function.
11268 (output_return_instruction): Replace use of
11269 return_used_this_function
11270 by cfun->machine->return_used_this_function.
11271 (arm_output_epilogue): Likewise.
11272 (arm_output_function_epilogue): Likewise.
11273 (thumb_unexpanded_epilogue): Likewise.
11274 * config/arm/arm.h (struct machine_function):
11275 New member return_used_this_function.
11277 2009-04-12 Mark Mitchell <mark@codesourcery.com>
11279 * doc/install.texi: Correct description of default directory for
11280 --with-gxx-include-dir.
11282 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
11284 * fold-const.c (build_range_check): Properly deal with enumeral and
11285 boolean base types.
11287 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
11289 * doc/invoke.texi (max_gcse_passes): Remove documentation.
11290 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
11291 * params.h (MAX_GCSE_PASSES): Remove.
11292 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
11293 in sequence. Remove ability to run multiple passes.
11294 (bypass_jumps): Report run as third CPROP pass.
11296 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
11298 PR middle-end/39651
11299 * except.c (can_throw_external): Look at each insn in a SEQUENCE
11300 when deciding whether the whole SEQUENCE can throw.
11302 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
11305 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
11306 offseted label references.
11308 2009-04-11 Jan Hubicka <jh@suse.cz>
11310 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
11312 2009-04-11 Richard Guenther <rguenther@suse.de>
11314 PR middle-end/39732
11315 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
11316 return variables as TREE_ADDRESSABLE.
11318 2009-04-11 Richard Guenther <rguenther@suse.de>
11320 PR tree-optimization/39713
11321 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
11322 reference trees have SSA_NAME operands.
11324 2009-04-11 Richard Guenther <rguenther@suse.de>
11327 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
11328 address expressions.
11330 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
11332 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
11333 match changes in Cygwin 1.7
11334 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
11335 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
11337 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
11339 PR tree-optimization/39701
11340 * doc/invoke.texi (Optimization Options): Document change in
11341 meaning and initialization of -fdelete-null-pointer-checks.
11343 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
11345 PR middle-end/39701
11346 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
11348 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
11351 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
11353 2009-04-10 Chao-ying Fu <fu@mips.com>
11355 * doc/tm.texi (Instruction Output): Document
11356 TARGET_ASM_FINAL_POSTSCAN_INSN.
11357 * target.h (final_postscan_insn): New field in asm_out.
11358 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
11359 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
11360 * final.c (final_scan_insn): Call
11361 targetm.asm_out.final_postscan_insn after outputting
11362 an asm macro and a normal instruction.
11364 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
11365 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
11366 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
11367 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
11368 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
11370 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
11372 PR middle-end/39701
11373 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
11374 variables as non-NULL even with -fdelete-null-pointer-checks.
11376 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
11378 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
11380 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
11383 * config/i386/i386.c (classify_argument): Handle SCmode with
11384 (bit_offset % 64) != 0.
11386 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
11388 * doc/invoke.texi (Optimize Options): Add cross-reference to
11389 -Q --help=optimizers examples.
11391 2009-04-10 Ben Elliston <bje@au.ibm.com>
11394 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
11395 regalign for the reg == fpr and TDmode case.
11397 2009-04-09 David Ayers <ayers@fsfe.org>
11400 * objc/objc-act.c (warn_with_method): Remove helper function.
11401 (check_duplicates): Call warning and inform directly.
11402 (really_start_method): Likewise.
11404 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
11406 * expmed.c (expand_divmod): Always use a comparison for a division
11407 by a large unsigned integer.
11409 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
11410 for things others than variables or functions as nonzero.
11412 2009-04-09 Nick Clifton <nickc@redhat.com>
11414 * unwind-compat.c: Change copyright header to refer to version
11415 3 of the GNU General Public License with version 3.1 of the
11416 GCC Runtime Library Exception and to point readers at the
11417 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
11418 * config/alpha/crtfastmath.c: Likewise.
11419 * config/alpha/linux-unwind.h: Likewise.
11420 * config/alpha/qrnnd.asm: Likewise.
11421 * config/alpha/vms-crt0-64.c: Likewise.
11422 * config/alpha/vms-crt0.c: Likewise.
11423 * config/alpha/vms-dwarf2.asm: Likewise.
11424 * config/alpha/vms-dwarf2eh.asm: Likewise.
11425 * config/alpha/vms-psxcrt0-64.c: Likewise.
11426 * config/alpha/vms-psxcrt0.c: Likewise.
11427 * config/alpha/vms_tramp.asm: Likewise.
11428 * config/arc/initfini.c: Likewise.
11429 * config/arc/lib1funcs.asm: Likewise.
11430 * config/arm/bpabi-v6m.S: Likewise.
11431 * config/arm/bpabi.S: Likewise.
11432 * config/arm/bpabi.c: Likewise.
11433 * config/arm/crti.asm: Likewise.
11434 * config/arm/crtn.asm: Likewise.
11435 * config/arm/ieee754-df.S: Likewise.
11436 * config/arm/ieee754-sf.S: Likewise.
11437 * config/arm/lib1funcs.asm: Likewise.
11438 * config/arm/libunwind.S: Likewise.
11439 * config/arm/linux-atomic.c: Likewise.
11440 * config/arm/mmintrin.h: Likewise.
11441 * config/arm/pr-support.c: Likewise.
11442 * config/arm/unaligned-funcs.c: Likewise.
11443 * config/arm/unwind-arm.c: Likewise.
11444 * config/arm/unwind-arm.h: Likewise.
11445 * config/avr/libgcc.S: Likewise.
11446 * config/bfin/crti.s: Likewise.
11447 * config/bfin/crtlibid.s: Likewise.
11448 * config/bfin/crtn.s: Likewise.
11449 * config/bfin/lib1funcs.asm: Likewise.
11450 * config/bfin/linux-unwind.h: Likewise.
11451 * config/cris/arit.c: Likewise.
11452 * config/cris/cris_abi_symbol.c: Likewise.
11453 * config/darwin-64.c: Likewise.
11454 * config/darwin-crt2.c: Likewise.
11455 * config/darwin-crt3.c: Likewise.
11456 * config/darwin.h: Likewise.
11457 * config/dbxelf.h: Likewise.
11458 * config/dfp-bit.c: Likewise.
11459 * config/dfp-bit.h: Likewise.
11460 * config/elfos.h: Likewise.
11461 * config/fixed-bit.c: Likewise.
11462 * config/fixed-bit.h: Likewise.
11463 * config/fp-bit.c: Likewise.
11464 * config/fp-bit.h: Likewise.
11465 * config/fr30/crti.asm: Likewise.
11466 * config/fr30/crtn.asm: Likewise.
11467 * config/fr30/lib1funcs.asm: Likewise.
11468 * config/freebsd-spec.h: Likewise.
11469 * config/frv/cmovd.c: Likewise.
11470 * config/frv/cmovh.c: Likewise.
11471 * config/frv/cmovw.c: Likewise.
11472 * config/frv/frvbegin.c: Likewise.
11473 * config/frv/frvend.c: Likewise.
11474 * config/frv/lib1funcs.asm: Likewise.
11475 * config/glibc-stdint.h: Likewise.
11476 * config/h8300/clzhi2.c: Likewise.
11477 * config/h8300/crti.asm: Likewise.
11478 * config/h8300/crtn.asm: Likewise.
11479 * config/h8300/ctzhi2.c: Likewise.
11480 * config/h8300/fixunssfsi.c: Likewise.
11481 * config/h8300/lib1funcs.asm: Likewise.
11482 * config/h8300/parityhi2.c: Likewise.
11483 * config/h8300/popcounthi2.c: Likewise.
11484 * config/i386/ammintrin.h: Likewise.
11485 * config/i386/att.h: Likewise.
11486 * config/i386/avxintrin.h: Likewise.
11487 * config/i386/biarch64.h: Likewise.
11488 * config/i386/bmmintrin.h: Likewise.
11489 * config/i386/cpuid.h: Likewise.
11490 * config/i386/cross-stdarg.h: Likewise.
11491 * config/i386/crtfastmath.c: Likewise.
11492 * config/i386/crtprec.c: Likewise.
11493 * config/i386/cygming-crtbegin.c: Likewise.
11494 * config/i386/cygming-crtend.c: Likewise.
11495 * config/i386/cygwin.asm: Likewise.
11496 * config/i386/emmintrin.h: Likewise.
11497 * config/i386/gmm_malloc.h: Likewise.
11498 * config/i386/gthr-win32.c: Likewise.
11499 * config/i386/i386.h: Likewise.
11500 * config/i386/immintrin.h: Likewise.
11501 * config/i386/linux-unwind.h: Likewise.
11502 * config/i386/linux64.h: Likewise.
11503 * config/i386/mm3dnow.h: Likewise.
11504 * config/i386/mmintrin-common.h: Likewise.
11505 * config/i386/mmintrin.h: Likewise.
11506 * config/i386/nmmintrin.h: Likewise.
11507 * config/i386/pmm_malloc.h: Likewise.
11508 * config/i386/pmmintrin.h: Likewise.
11509 * config/i386/smmintrin.h: Likewise.
11510 * config/i386/sol2-c1.asm: Likewise.
11511 * config/i386/sol2-ci.asm: Likewise.
11512 * config/i386/sol2-cn.asm: Likewise.
11513 * config/i386/sol2-gc1.asm: Likewise.
11514 * config/i386/tmmintrin.h: Likewise.
11515 * config/i386/unix.h: Likewise.
11516 * config/i386/w32-unwind.h: Likewise.
11517 * config/i386/wmmintrin.h: Likewise.
11518 * config/i386/x86-64.h: Likewise.
11519 * config/i386/x86intrin.h: Likewise.
11520 * config/i386/xmmintrin.h: Likewise.
11521 * config/ia64/crtbegin.asm: Likewise.
11522 * config/ia64/crtend.asm: Likewise.
11523 * config/ia64/crtfastmath.c: Likewise.
11524 * config/ia64/crti.asm: Likewise.
11525 * config/ia64/crtn.asm: Likewise.
11526 * config/ia64/fde-glibc.c: Likewise.
11527 * config/ia64/lib1funcs.asm: Likewise.
11528 * config/ia64/linux-unwind.h: Likewise.
11529 * config/ia64/quadlib.c: Likewise.
11530 * config/ia64/unwind-ia64.c: Likewise.
11531 * config/linux.h: Likewise.
11532 * config/m32c/m32c-lib1.S: Likewise.
11533 * config/m32c/m32c-lib2-trapv.c: Likewise.
11534 * config/m32c/m32c-lib2.c: Likewise.
11535 * config/m32r/initfini.c: Likewise.
11536 * config/m68hc11/larith.asm: Likewise.
11537 * config/m68hc11/m68hc11-crt0.S: Likewise.
11538 * config/m68k/cf.md: Likewise.
11539 * config/m68k/crti.s: Likewise.
11540 * config/m68k/crtn.s: Likewise.
11541 * config/m68k/lb1sf68.asm: Likewise.
11542 * config/m68k/linux-unwind.h: Likewise.
11543 * config/mcore/crti.asm: Likewise.
11544 * config/mcore/crtn.asm: Likewise.
11545 * config/mcore/lib1.asm: Likewise.
11546 * config/mips/linux-unwind.h: Likewise.
11547 * config/mips/loongson.h: Likewise.
11548 * config/mips/mips16.S: Likewise.
11549 * config/mmix/crti.asm: Likewise.
11550 * config/mmix/crtn.asm: Likewise.
11551 * config/pa/fptr.c: Likewise.
11552 * config/pa/hpux-unwind.h: Likewise.
11553 * config/pa/lib2funcs.asm: Likewise.
11554 * config/pa/linux-atomic.c: Likewise.
11555 * config/pa/linux-unwind.h: Likewise.
11556 * config/pa/milli64.S: Likewise.
11557 * config/pa/quadlib.c: Likewise.
11558 * config/pa/stublib.c: Likewise.
11559 * config/picochip/libgccExtras/adddi3.asm: Likewise.
11560 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
11561 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
11562 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
11563 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
11564 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
11565 * config/picochip/libgccExtras/divmod15.asm: Likewise.
11566 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
11567 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
11568 * config/picochip/libgccExtras/longjmp.asm: Likewise.
11569 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
11570 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
11571 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
11572 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
11573 * config/picochip/libgccExtras/setjmp.asm: Likewise.
11574 * config/picochip/libgccExtras/subdi3.asm: Likewise.
11575 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
11576 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
11577 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
11578 * config/rs6000/750cl.h: Likewise.
11579 * config/rs6000/altivec.h: Likewise.
11580 * config/rs6000/biarch64.h: Likewise.
11581 * config/rs6000/crtresfpr.asm: Likewise.
11582 * config/rs6000/crtresgpr.asm: Likewise.
11583 * config/rs6000/crtresxfpr.asm: Likewise.
11584 * config/rs6000/crtresxgpr.asm: Likewise.
11585 * config/rs6000/crtsavfpr.asm: Likewise.
11586 * config/rs6000/crtsavgpr.asm: Likewise.
11587 * config/rs6000/darwin-asm.h: Likewise.
11588 * config/rs6000/darwin-fallback.c: Likewise.
11589 * config/rs6000/darwin-fpsave.asm: Likewise.
11590 * config/rs6000/darwin-ldouble.c: Likewise.
11591 * config/rs6000/darwin-tramp.asm: Likewise.
11592 * config/rs6000/darwin-unwind.h: Likewise.
11593 * config/rs6000/darwin-vecsave.asm: Likewise.
11594 * config/rs6000/darwin-world.asm: Likewise.
11595 * config/rs6000/e500crtres32gpr.asm: Likewise.
11596 * config/rs6000/e500crtres64gpr.asm: Likewise.
11597 * config/rs6000/e500crtres64gprctr.asm: Likewise.
11598 * config/rs6000/e500crtrest32gpr.asm: Likewise.
11599 * config/rs6000/e500crtrest64gpr.asm: Likewise.
11600 * config/rs6000/e500crtresx32gpr.asm: Likewise.
11601 * config/rs6000/e500crtresx64gpr.asm: Likewise.
11602 * config/rs6000/e500crtsav32gpr.asm: Likewise.
11603 * config/rs6000/e500crtsav64gpr.asm: Likewise.
11604 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11605 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
11606 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
11607 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
11608 * config/rs6000/eabi-ci.asm: Likewise.
11609 * config/rs6000/eabi-cn.asm: Likewise.
11610 * config/rs6000/eabi.asm: Likewise.
11611 * config/rs6000/linux-unwind.h: Likewise.
11612 * config/rs6000/linux64.h: Likewise.
11613 * config/rs6000/paired.h: Likewise.
11614 * config/rs6000/paired.md: Likewise.
11615 * config/rs6000/ppc64-fp.c: Likewise.
11616 * config/rs6000/ppu_intrinsics.h: Likewise.
11617 * config/rs6000/rs6000.h: Likewise.
11618 * config/rs6000/si2vmx.h: Likewise.
11619 * config/rs6000/sol-ci.asm: Likewise.
11620 * config/rs6000/sol-cn.asm: Likewise.
11621 * config/rs6000/spe.h: Likewise.
11622 * config/rs6000/spu2vmx.h: Likewise.
11623 * config/rs6000/sysv4.h: Likewise.
11624 * config/rs6000/tramp.asm: Likewise.
11625 * config/rs6000/vec_types.h: Likewise.
11626 * config/s390/linux-unwind.h: Likewise.
11627 * config/s390/tpf-unwind.h: Likewise.
11628 * config/score/crti.asm: Likewise.
11629 * config/score/crtn.asm: Likewise.
11630 * config/sh/crt1.asm: Likewise.
11631 * config/sh/crti.asm: Likewise.
11632 * config/sh/crtn.asm: Likewise.
11633 * config/sh/divtab-sh4-300.c: Likewise.
11634 * config/sh/divtab-sh4.c: Likewise.
11635 * config/sh/divtab.c: Likewise.
11636 * config/sh/lib1funcs-4-300.asm: Likewise.
11637 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
11638 * config/sh/lib1funcs.asm: Likewise.
11639 * config/sh/lib1funcs.h: Likewise.
11640 * config/sh/linux-atomic.asm: Likewise.
11641 * config/sh/linux-unwind.h: Likewise.
11642 * config/sh/shmedia.h: Likewise.
11643 * config/sh/sshmedia.h: Likewise.
11644 * config/sh/ushmedia.h: Likewise.
11645 * config/sparc/crtfastmath.c: Likewise.
11646 * config/sparc/linux-unwind.h: Likewise.
11647 * config/sparc/sol2-c1.asm: Likewise.
11648 * config/sparc/sol2-ci.asm: Likewise.
11649 * config/sparc/sol2-cn.asm: Likewise.
11650 * config/spu/divmodti4.c: Likewise.
11651 * config/spu/divv2df3.c: Likewise.
11652 * config/spu/float_disf.c: Likewise.
11653 * config/spu/float_unsdidf.c: Likewise.
11654 * config/spu/float_unsdisf.c: Likewise.
11655 * config/spu/float_unssidf.c: Likewise.
11656 * config/spu/mfc_multi_tag_release.c: Likewise.
11657 * config/spu/mfc_multi_tag_reserve.c: Likewise.
11658 * config/spu/mfc_tag_release.c: Likewise.
11659 * config/spu/mfc_tag_reserve.c: Likewise.
11660 * config/spu/mfc_tag_table.c: Likewise.
11661 * config/spu/multi3.c: Likewise.
11662 * config/spu/spu_internals.h: Likewise.
11663 * config/spu/spu_intrinsics.h: Likewise.
11664 * config/spu/spu_mfcio.h: Likewise.
11665 * config/spu/vec_types.h: Likewise.
11666 * config/spu/vmx2spu.h: Likewise.
11667 * config/stormy16/stormy16-lib2.c: Likewise.
11668 * config/svr4.h: Likewise.
11669 * config/sync.c: Likewise.
11670 * config/v850/lib1funcs.asm: Likewise.
11671 * config/vxlib-tls.c: Likewise.
11672 * config/vxlib.c: Likewise.
11673 * config/vxworks-dummy.h: Likewise.
11674 * config/xtensa/crti.asm: Likewise.
11675 * config/xtensa/crtn.asm: Likewise.
11676 * config/xtensa/ieee754-df.S: Likewise.
11677 * config/xtensa/ieee754-sf.S: Likewise.
11678 * config/xtensa/lib1funcs.asm: Likewise.
11679 * config/xtensa/lib2funcs.S: Likewise.
11680 * config/xtensa/linux-unwind.h: Likewise.
11681 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11682 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
11683 * coretypes.h: Likewise.
11684 * crtstuff.c: Likewise.
11685 * defaults.h: Likewise.
11686 * dwarf2.h: Likewise.
11687 * emutls.c: Likewise.
11688 * gbl-ctors.h: Likewise.
11689 * gcov-io.h: Likewise.
11690 * ginclude/float.h: Likewise.
11691 * ginclude/iso646.h: Likewise.
11692 * ginclude/stdarg.h: Likewise.
11693 * ginclude/stdbool.h: Likewise.
11694 * ginclude/stddef.h: Likewise.
11695 * ginclude/stdfix.h: Likewise.
11696 * ginclude/stdint-gcc.h: Likewise.
11697 * ginclude/tgmath.h: Likewise.
11698 * gthr-aix.h: Likewise.
11699 * gthr-dce.h: Likewise.
11700 * gthr-gnat.c: Likewise.
11701 * gthr-gnat.h: Likewise.
11702 * gthr-lynx.h: Likewise.
11703 * gthr-mipssde.h: Likewise.
11704 * gthr-nks.h: Likewise.
11705 * gthr-posix.c: Likewise.
11706 * gthr-posix.h: Likewise.
11707 * gthr-posix95.h: Likewise.
11708 * gthr-rtems.h: Likewise.
11709 * gthr-single.h: Likewise.
11710 * gthr-solaris.h: Likewise.
11711 * gthr-tpf.h: Likewise.
11712 * gthr-vxworks.h: Likewise.
11713 * gthr-win32.h: Likewise.
11714 * gthr.h: Likewise.
11715 * libgcc2.c: Likewise.
11716 * libgcc2.h: Likewise.
11717 * libgcov.c: Likewise.
11718 * tsystem.h: Likewise.
11719 * typeclass.h: Likewise.
11720 * unwind-c.c: Likewise.
11721 * unwind-compat.h: Likewise.
11722 * unwind-dw2-fde-compat.c: Likewise.
11723 * unwind-dw2-fde-darwin.c: Likewise.
11724 * unwind-dw2-fde-glibc.c: Likewise.
11725 * unwind-dw2-fde.c: Likewise.
11726 * unwind-dw2-fde.h: Likewise.
11727 * unwind-dw2.c: Likewise.
11728 * unwind-dw2.h: Likewise.
11729 * unwind-generic.h: Likewise.
11730 * unwind-pe.h: Likewise.
11731 * unwind-sjlj.c: Likewise.
11732 * unwind.inc: Likewise.
11733 * config/arm/neon-gen.ml: Change generated copyright header to
11734 refer to version 3 of the GNU General Public License with
11735 version 3.1 of the GCC Runtime Library Exception and to point
11736 readers at the COPYING3 and COPYING3.RUNTIME files and the
11737 FSF's license web page.
11738 * config/arm/arm_neon.h: Regenerate.
11740 2009-04-09 Jakub Jelinek <jakub@redhat.com>
11742 * config/cris/cris.md: Change copyright header to refer to version
11743 3 of the GNU General Public License.
11744 * doc/install.texi2html: Change copyright header to refer to version
11745 3 of the GNU General Public License and to point readers at the
11746 COPYING3 file and the FSF's license web page.
11747 * config/vax/linux.h: Likewise.
11749 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
11751 * config/i386/i386.md (cmpcc): New.
11752 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
11753 (sync_compare_and_swap_cc*): Delete.
11755 * config/s390/s390.c (s390_compare_emitted): Remove.
11756 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
11757 s390_compare_emitted used to be handled. Assert that modes match.
11758 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
11759 refer to sync_compare_and_swap_ccsi.
11760 * config/s390/s390.h (s390_compare_emitted): Remove.
11761 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
11762 instead of s390_compare_emitted.
11763 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
11764 instead of s390_compare_emitted.
11765 * config/s390/s390.md (cmpcc): New.
11766 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
11767 CC_REGNUM, do not pretend it's set.
11768 (sync_compare_and_swap_cc*): Delete.
11769 * config/s390/predicates.md (cc_reg_operand): New.
11771 * expr.c (sync_compare_and_swap_cc): Delete.
11772 * optabs.h (sync_compare_and_swap_cc): Delete.
11773 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
11774 is being used with can_compare_p.
11775 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
11776 (find_cc_set): New.
11777 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
11778 look for a MODE_CC set instead. Use emit_store_flag.
11779 (expand_compare_and_swap_loop): Likewise, with some additional
11780 complication to avoid a force_reg when useless. Use
11781 emit_cmp_and_jump_insns.
11782 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
11783 * doc/md.texi (sync_compare_and_swap_cc): Merge with
11784 sync_compare_and_swap documentation.
11786 2009-04-09 Jan Hubicka <jh@suse.cz>
11788 * except.c (find_prev_try): Break out from ....
11789 (duplicate_eh_regions): ... here; properly update prev_try pointers
11790 when duplication part of tree.
11791 (dump_eh_tree): Improve dumping.
11792 (verify_eh_region): New.
11793 (verify_eh_tree): Use it.
11795 2009-04-06 Richard Guenther <rguenther@suse.de>
11797 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
11798 &ARRAY addresses by adjusting their types and prepending
11800 * tree-cfg.c (verify_gimple_assign_single): Verify that
11801 addresses are correct.
11803 2009-04-09 Richard Guenther <rguenther@suse.de>
11805 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
11806 indices into an array reference if possible.
11807 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
11808 Fold POINTER_PLUS_EXPR statements with invariant address.
11810 2009-04-09 Alan Modra <amodra@bigpond.net.au>
11813 * config.gcc (powerpc64-*-linux*): Always build biarch.
11815 2009-04-09 Joseph Myers <joseph@codesourcery.com>
11818 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
11819 it and pedwarn if this results in an INTEGER_CST.
11821 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11823 * doc/install.texi: Update minimum GMP version. Remove obsolete
11824 text in MPFR section.
11826 2009-04-08 Jakub Jelinek <jakub@redhat.com>
11828 * dwarf2out.c (class_scope_p): New static inline.
11829 (class_or_namespace_scope_p): Use it.
11830 (gen_variable_die): Use DW_TAG_member tag for static data member
11831 declarations instead of DW_TAG_variable.
11833 PR middle-end/39573
11834 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
11837 2009-04-08 Richard Guenther <rguenther@suse.de>
11839 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
11840 valueize random data.
11842 2009-04-08 David Edelsohn <edelsohn@gnu.org>
11844 * config.gcc (aix tm_file): Add aix-stdint.h.
11845 (aix tm clause use_gcc_stdint): Set to wrap.
11846 * config/rs6000/aix-stdint.h: New file.
11848 2009-04-08 Richard Guenther <rguenther@suse.de>
11850 PR middle-end/36291
11851 * tree-dfa.c (add_referenced_var): Do not recurse into
11852 global initializers.
11853 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
11855 (fold_const_aggregate_ref): Likewise.
11857 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
11859 * recog.c (ordered_comparison_operator): New.
11860 * gensupport.c (std_preds): Add it.
11861 * doc/md.texi (Machine-Independent Predicates): Document it.
11863 2009-04-08 Jan Hubicka <jh@suse.cz>
11865 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
11866 * function.h (rtl_eh): Remove exception_handler_label_map.
11867 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
11868 remove_exception_handler_label, for_each_eh_label_1): Remove.
11869 (rtl_remove_unreachable_regions): Remove.
11870 (convert_from_eh_region_ranges): Do not remove unreachable regions.
11871 (find_exception_handler_labels): Don't build the hashtable.
11872 (maybe_remove_eh_handler): Remove.
11873 (for_each_eh_label): Rewrite to walk the tree.
11874 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
11875 * except.h (maybe_remove_eh_handler): Remove.
11876 * passes.c (init_optimization_passes): Schedule second EH cleanup
11878 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
11879 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
11881 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
11883 * genoutput.c (validate_optab_operands): New.
11884 (gen_insn, gen_expand): Call it.
11886 * genflags.c (gen_insn): Detect misused iterators.
11887 (main): Pass line_no to gen_insn, exit with status 1 on error.
11889 * genextract.c (line_no): Make global.
11890 (VEC_safe_set_locstr): Change assertion to error message.
11891 (main): Exit with status 1 on error.
11893 2009-04-08 Joseph Myers <joseph@codesourcery.com>
11897 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
11898 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
11899 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
11900 * c-convert.c (convert): Do not call fold on results of conversion
11901 functions when the result is a C_MAYBE_CONST_EXPR.
11902 * c-parser.c (c_parser_postfix_expression): Do not fold condition
11903 of __builtin_choose_expr.
11904 * c-typeck.c (remove_c_maybe_const_expr): New.
11905 (build_unary_op, build_conditional_expr, build_compound_expr,
11906 build_binary_op, c_objc_common_truthvalue_conversion): Call
11907 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
11910 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
11912 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
11913 CODE to produce a new one. Add a prototype to use fold_convert_const
11915 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
11918 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
11919 mix declarations and code.
11921 2009-04-08 Ben Elliston <bje@au.ibm.com>
11923 * gcc.c: Replace `CC' with `GCC' throughout.
11925 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
11927 * doc/invoke.texi: Document Atom support.
11929 2009-04-07 Jason Merrill <jason@redhat.com>
11932 * c-common.h, c-common.c: Add flag_pretty_templates.
11933 * c-opts.c (c_common_handle_option): Set it.
11934 * c.opt: Add -fno-pretty-templates.
11935 * doc/invoke.texi (C++ Dialect Options): Likewise.
11937 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
11939 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
11940 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
11941 (ia64_expand_builtin): Likewise.
11943 2009-04-07 Martin Jambor <mjambor@suse.cz>
11945 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
11946 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
11947 ADDR_EXPRS are include too.
11949 2009-04-07 Richard Guenther <rguenther@suse.de>
11951 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
11952 decls are only used if passes as parameters or if they are
11953 local statics and the call is not to a builtin.
11954 (call_may_clobber_ref_p_1): Likewise.
11956 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11958 * expr.c (do_store_flag): Remove last argument. Simplify code
11959 to avoid duplication of tests already done by can_compare_p.
11960 (expand_expr_real_1): Adjust caller.
11962 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11964 * optabs.c (can_compare_p): Test the predicate of a
11965 cbranch and cstore pattern.
11967 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11969 * expr.c (convert_move): Use emit_store_flag instead of
11972 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11974 * config/i386/i386.c (ix86_compare_emitted): Remove.
11975 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
11976 ix86_compare_op0 like ix86_compare_emitted used to be handled.
11977 * config/i386/i386.h (ix86_compare_emitted): Remove.
11978 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
11979 instead of ix86_compare_emitted.
11980 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
11982 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
11984 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
11985 Add t-sysroot-suffix to tmake_file.
11986 * config/print-sysroot-suffix.sh: New file.
11987 * config/t-sysroot-suffix: New file.
11989 2009-04-07 Ben Elliston <bje@au.ibm.com>
11991 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
11992 as the latter produces a warning when the target does not support
11995 2009-04-07 Ben Elliston <bje@au.ibm.com>
11997 * dfp.c: Replace type punning assignments with memcpy throughout.
11998 * Makefile.in (dfp.o-warn): Remove.
12000 2009-04-07 Alan Modra <amodra@bigpond.net.au>
12003 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
12004 Include soft-fp/t-softfp after rs6000/t-linux64.
12006 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
12008 * stor-layout.c (set_sizetype): Use the full precision of their
12009 machine mode for bitsize types.
12011 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
12013 * config/i386/i386.md: Revert 2 accidental checkins.
12015 2009-04-06 Joey Ye <joey.ye@intel.com>
12016 Xuepeng Guo <xuepeng.guo@intel.com>
12017 H.J. Lu <hongjiu.lu@intel.com>
12019 Atom pipeline model, tuning and insn selection.
12020 * config.gcc (atom): Add atom config options and target.
12022 * config/i386/atom.md: New.
12024 * config/i386/i386.c (atom_cost): New cost.
12025 (m_ATOM): New macro flag.
12026 (initial_ix86_tune_features): Set m_ATOM.
12027 (x86_accumulate_outgoing_args): Likewise.
12028 (x86_arch_always_fancy_math_387): Likewise.
12029 (processor_target): Add Atom cost.
12030 (cpu_names): Add Atom cpu name.
12031 (override_options): Set Atom ISA.
12032 (ix86_issue_rate): New case PROCESSOR_ATOM.
12033 (ix86_adjust_cost): Likewise.
12035 * config/i386/i386.h (TARGET_ATOM): New target macro.
12036 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
12037 (TARGET_OPT_AGU): New target option.
12038 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
12039 (processor_type): Add PROCESSOR_ATOM.
12041 * config/i386/i386.md (cpu): Add new value "atom".
12042 (use_carry, movu): New attr.
12043 (atom.md): Include atom.md.
12044 (adddi3_carry_rex64): Set attr "use_carry".
12045 (addqi3_carry): Likewise.
12046 (addhi3_carry): Likewise.
12047 (addsi3_carry): Likewise.
12048 (*addsi3_carry_zext): Likewise.
12049 (subdi3_carry_rex64): Likewise.
12050 (subqi3_carry): Likewise.
12051 (subhi3_carry): Likewise.
12052 (subsi3_carry): Likewise.
12053 (x86_movdicc_0_m1_rex64): Likewise.
12054 (*x86_movdicc_0_m1_se): Likewise.
12055 (x86_movsicc_0_m1): Likewise.
12056 (*x86_movsicc_0_m1_se): Likewise.
12057 (*adddi_1_rex64): Emit add insn as much as possible.
12058 (*addsi_1): Likewise.
12059 (return_internal): Set atom_unit.
12060 (return_internal_long): Likewise.
12061 (return_pop_internal): Likewise.
12062 (*rcpsf2_sse): Set atom_sse_attr attr.
12063 (*qrt<mode>2_sse): Likewise.
12064 (*prefetch_sse): Likewise.
12066 * config/i386/i386-c.c (ix86_target_macros_internal): New case
12068 (ix86_target_macros_internal): Likewise.
12070 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
12071 (*prefetch_sse_rex): Likewise.
12072 (sse_rcpv4sf2): Likewise.
12073 (sse_vmrcpv4sf2): Likewise.
12074 (sse_sqrtv4sf2): Likewise.
12075 (<sse>_vmsqrt<mode>2): Likewise.
12076 (sse_ldmxcsr): Likewise.
12077 (sse_stmxcsr): Likewise.
12078 (*sse_sfence): Likewise.
12079 (sse2_clflush): Likewise.
12080 (*sse2_mfence): Likewise.
12081 (*sse2_lfence): Likewise.
12082 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
12083 (<sse>_movup<ssemodesuffixf2c>): Likewise.
12084 (avx_movdqu<avxmodesuffix>): Likewise.
12085 (avx_lddqu<avxmodesuffix>): Likewise.
12086 (sse2_movntv2di): Change attr "type" to "ssemov".
12087 (sse2_movntsi): Likewise.
12088 (rsqrtv8sf2): Change attr "type" to "sseadd".
12089 (sse3_addsubv2df3): Set attr "atom_unit".
12090 (sse3_h<plusminus_insn>v4sf3): Likewise.
12091 (*sse2_pmaddwd): Likewise.
12092 (*vec_extractv2di_1_rex64): Likewise.
12093 (*vec_extractv2di_1_avx): Likewise.
12094 (sse2_psadbw): Likewise.
12095 (ssse3_phaddwv8hi3): Likewise.
12096 (ssse3_phaddwv4hi3): Likewise.
12097 (ssse3_phadddv4si3): Likewise.
12098 (ssse3_phadddv2si3): Likewise.
12099 (ssse3_phaddswv8hi3): Likewise.
12100 (ssse3_phaddswv4hi3): Likewise.
12101 (ssse3_phsubwv8hi3): Likewise.
12102 (ssse3_phsubwv4hi3): Likewise.
12103 (ssse3_phsubdv4si3): Likewise.
12104 (ssse3_phsubdv2si3): Likewise.
12105 (ssse3_phsubswv8hi3): Likewise.
12106 (ssse3_phsubswv4hi3): Likewise.
12107 (ssse3_pmaddubsw128): Likewise.
12108 (sse3_pmaddubsw: Likewise.
12109 (ssse3_palignrti): Likewise.
12110 (ssse3_palignrdi): Likewise.
12112 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
12114 * doc/install.texi (Specific): Fix two cross-references to MinGW.
12116 2009-04-06 Richard Guenther <rguenther@suse.de>
12118 PR tree-optimization/28868
12119 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
12120 of which PHI results we inserted.
12121 (insert_into_preds_of_block): Record inserted PHIs.
12122 (eliminate): Eliminate redundant PHI nodes.
12123 (init_pre): Init inserted_phi_names.
12125 2009-04-06 Richard Guenther <rguenther@suse.de>
12127 PR tree-optimization/39643
12128 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
12129 IMAGPART_EXPRs of complex constants.
12130 (execute_fold_all_builtins): If we folded a call queue
12131 TODO_update_address_taken.
12133 2009-04-06 Jan Hubicka <jh@suse.cz>
12135 PR middle-end/39659
12136 * except.c (remove_unreachable_regions): Propagate may_contain_throw
12139 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
12141 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
12143 (ic_invalidate_array): Likewise.
12145 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
12147 * calls.c (emit_library_call_value_1): Fix a problem with parameter
12148 alignment for library calls.
12150 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
12152 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
12153 (mingw32 tm clause use_gcc_stdint): Set to wrap.
12154 * config/i386/mingw-stdint.h: New file.
12156 2009-04-05 Richard Guenther <rguenther@suse.de>
12158 PR tree-optimization/39648
12159 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
12160 our &A vs. &A[0] IL deficiencies.
12162 2009-04-04 Jan Hubicka <jh@suse.cz>
12164 * except.c (sjlj_find_directly_reachable_regions): Be ready for
12165 removed toplevel regions.
12166 (sjlj_mark_call_sites): Likewise.
12168 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
12170 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
12171 (cygwin tm clause use_gcc_stdint): Set to wrap.
12172 * config/i386/cygwin-stdint.h: New file.
12174 2009-04-04 Richard Guenther <rguenther@suse.de>
12176 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
12177 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
12178 single-argument PHIs if we are in loop-closed SSA form.
12179 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
12180 for the pre-condition.
12181 (slpeel_tree_peel_loop_to_edge): Likewise.
12182 (vect_build_loop_niters): Take an optional sequence to append stmts.
12183 (vect_generate_tmps_on_preheader): Likewise.
12184 (vect_do_peeling_for_loop_bound): Take extra guards for the
12186 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
12187 the cost model check.
12188 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
12189 guards if we are going to peel. Do not apply versioning in that case.
12190 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
12191 (vect_do_peeling_for_loop_bound): Likewise.
12192 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
12193 loop bound only record extra pre-conditions, do not apply loop
12196 2009-04-04 Richard Guenther <rguenther@suse.de>
12198 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
12201 2009-04-04 Jan Hubicka <jh@suse.cz>
12203 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
12204 last_basic_block for size of bb->index indexed array.
12205 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
12206 compute_out, link_btr_uses, build_btr_def_use_webs,
12207 build_btr_def_use_webs, migrate_btr_defs): Likewise.
12209 2009-04-04 Jan Hubicka <jh@suse.cz>
12211 * except.c (remove_eh_handler_and_replace): Break out from ...
12212 (remove_eh_handler): ... here.
12213 (bring_to_root): New function.
12214 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
12215 handled ones, bring others to root of tree.
12217 2009-04-04 Jan Hubicka <jh@suse.cz>
12219 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
12220 (all_phis_safe_to_merge): New function.
12221 (update_info): New structure.
12222 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
12223 (cleanup_empty_eh): Update SSA if possible.
12225 2009-04-04 Richard Guenther <rguenther@suse.de>
12227 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
12228 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
12229 (append_vuse): Likewise.
12231 2009-04-04 Jakub Jelinek <jakub@redhat.com>
12233 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
12234 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
12235 instead of REG_UNSAVED for DW_CFA_undefined.
12236 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
12237 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
12240 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
12243 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
12244 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
12245 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
12247 2009-04-04 Richard Guenther <rguenther@suse.de>
12249 PR tree-optimization/8781
12250 PR tree-optimization/37892
12251 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
12252 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
12253 (valueize_refs): Call it for *& valueizations.
12254 (shared_reference_ops_from_ref): Rename to ...
12255 (valueize_shared_reference_ops_from_ref): ... this and valueize.
12256 (shared_reference_ops_from_call): Rename to ...
12257 (valueize_shared_reference_ops_from_call): ... this and valueize.
12258 (vn_reference_lookup): Update.
12259 (visit_reference_op_call): Likewise.
12260 * tree-ssa-pre.c (phi_translate_1): Fold *&.
12261 (eliminate): Value-replace the call address in call statements.
12263 2009-04-04 Richard Guenther <rguenther@suse.de>
12265 PR tree-optimization/39636
12266 * tree-ssa-forwprop.c
12267 (forward_propagate_addr_into_variable_array_index): Check for
12268 GIMPLE_ASSIGN before accessing the rhs code.
12270 2009-04-03 Jason Merrill <jason@redhat.com>
12272 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
12274 2009-04-03 Steve Ellcey <sje@cup.hp.com>
12276 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
12277 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
12278 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
12279 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
12280 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
12281 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
12282 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
12283 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
12284 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
12285 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
12286 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
12287 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
12288 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
12289 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
12290 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
12291 Use fr_reg_or_fp01_operand instead of fr_register_operand
12293 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
12294 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
12295 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
12297 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
12299 PR rtl-optimization/39607
12300 PR rtl-optimization/39631
12304 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
12305 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
12306 instead of DF_LR_OUT.
12307 * ira-lives.c (process_bb_node_lives): Ditto.
12308 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
12309 instead of DF_LR_{OUT,IN}.
12310 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
12311 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
12313 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
12315 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
12316 (execute_lower_omp): Always run but take the short way out if -fopenmp
12318 (gate_lower_omp): Remove, forcing the pass manager to always run the
12319 pass and always set PROP_gimple_lomp.
12320 (pass_lower_omp): Remove gate function.
12321 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
12322 PROP_trees. Instead, require it.
12323 * ipa-cp.c (pass_ipa_cp): Likewise.
12324 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
12325 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
12326 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
12327 and PROP_gimple_leh.
12329 2009-04-03 Richard Guenther <rguenther@suse.de>
12331 PR middle-end/13146
12332 PR tree-optimization/23940
12333 PR tree-optimization/33237
12334 PR middle-end/33974
12335 PR middle-end/34093
12336 PR tree-optimization/36201
12337 PR tree-optimization/36230
12338 PR tree-optimization/38049
12339 PR tree-optimization/38207
12340 PR tree-optimization/38230
12341 PR tree-optimization/38301
12342 PR tree-optimization/38585
12343 PR middle-end/38895
12344 PR tree-optimization/38985
12345 PR tree-optimization/39299
12346 * tree-ssa-structalias.h: Remove.
12347 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
12348 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
12349 (struct vuse_element_d): Remove.
12350 (struct vuse_vec_d): Likewise.
12351 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
12352 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
12353 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
12354 VUSE_ELEMENT_VAR): Likewise.
12355 (struct voptype_d): Likewise.
12356 (NUM_VOP_FREE_BUCKETS): Likewise.
12357 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
12358 (struct stmt_operands_d): Remove.
12359 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
12360 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
12361 VDEF_NUM, VDEF_VECT): Likewise.
12362 (copy_virtual_operands): Remove.
12363 (operand_build_cmp): Likewise.
12364 (create_ssa_artificial_load_stmt): Likewise.
12365 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
12366 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
12367 vuse_index and mayuse_index members. Pack and move done and iter_type
12368 members to the front.
12369 (SSA_OP_VMAYUSE): Remove.
12370 (SSA_OP_VIRTUAL_USES): Adjust.
12371 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
12372 (unlink_stmt_vdef): Declare.
12373 (add_to_addressable_set): Remove.
12374 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
12375 (vrp_visit_stmt): Likewise.
12376 * doc/tree-ssa.texi (Alias analysis): Update.
12377 * doc/invoke.texi (max-aliased-vops): Remove docs.
12378 (avg-aliased-vops): Likewise.
12379 * tree-into-ssa.c (syms_to_rename): Remove.
12380 (need_to_update_vops_p): Likewise.
12381 (need_to_initialize_update_ssa_p): Rename to ...
12382 (update_ssa_initialized_fn): ... this. Track function we are
12384 (symbol_marked_for_renaming): Simplify.
12385 (add_new_name_mapping): Do not set need_to_update_vops_p.
12386 (dump_currdefs): Use SYMS_TO_RENAME.
12387 (rewrite_update_stmt): Always walk all uses/defs.
12388 (dump_update_ssa): Adjust.
12389 (init_update_ssa): Take function argument. Track what we are
12391 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
12392 (create_new_def_for): Initialize for cfun, assert we are initialized
12394 (mark_sym_for_renaming): Simplify.
12395 (mark_set_for_renaming): Do not initialize update-ssa.
12396 (need_ssa_update_p): Simplify. Take function argument.
12397 (name_mappings_registered_p): Assert we ask for the correct function.
12398 (name_registered_for_update_p): Likewise.
12399 (ssa_names_to_replace): Likewise.
12400 (release_ssa_name_after_update_ssa): Likewise.
12401 (update_ssa): Likewise. Use SYMS_TO_RENAME.
12402 (dump_decl_set): Do not print a newline.
12403 (debug_decl_set): Do it here.
12404 (dump_update_ssa): And here.
12405 * tree-ssa-loop-im.c (move_computations): Adjust.
12406 (movement_possibility): Likewise.
12407 (determine_max_movement): Likewise.
12408 (gather_mem_refs_stmt): Likewise.
12409 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
12410 or NAME_MEMORY_TAG.
12411 * tree-complex.c (update_all_vops): Remove.
12412 (expand_complex_move): Adjust.
12413 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
12414 Simplify test for memory referencing statement. Exclude
12415 non-invariant ADDR_EXPRs.
12416 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
12417 * tree-loop-distribution.c (generate_memset_zero): Adjust.
12418 (rdg_flag_uses): Likewise.
12419 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
12421 (tree_optimize_tail_calls_1): Also split the
12422 edge from the entry block if we have degenerate PHI nodes in
12423 the first basic block.
12424 * tree.c (init_ttree): Remove memory-tag related code.
12425 (tree_code_size): Likewise.
12426 (tree_node_structure): Likewise.
12427 (build7_stat): Re-write to be build6_stat.
12428 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
12429 (SSA_VAR_P): Adjust.
12430 (struct tree_memory_tag): Remove.
12431 (struct tree_memory_partition_tag): Likewise.
12432 (union tree_node): Adjust.
12433 (build7): Re-write to be build6.
12434 * tree-pass.h (pass_reset_cc_flags): Remove.
12435 (TODO_update_address_taken): New flag.
12436 (pass_simple_dse): Remove.
12437 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
12438 * params.h (MAX_ALIASED_VOPS): Remove.
12439 (AVG_ALIASED_VOPS): Likewise.
12440 * omp-low.c (expand_omp_taskreg): Update SSA form.
12441 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
12442 aliases the lhs in a copy stmt.
12443 * tree-ssa-dse.c (struct address_walk_data): Remove.
12444 (memory_ssa_name_same): Likewise.
12445 (memory_address_same): Likewise.
12446 (get_kill_of_stmt_lhs): Likewise.
12447 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
12448 unused stores. Look through PHI nodes into post-dominated regions.
12449 (dse_optimize_stmt): Simplify. Properly remove stores.
12450 (tree_ssa_dse): Compute dominators.
12451 (execute_simple_dse): Remove.
12452 (pass_simple_dse): Likewise.
12453 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
12454 gimple_loaded_syms and gimple_stored_syms computation.
12455 * toplev.c (dump_memory_report): Dump alias and pta stats.
12456 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
12457 (vn_reference_eq): Likewise.
12458 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
12459 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
12460 valueize_vuses): Remove.
12461 (get_def_ref_stmt_vuses): Simplify. Rename to ...
12462 (get_def_ref_stmt_vuse): ... this.
12463 (vn_reference_lookup_2): New function.
12464 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
12465 walking equivalent vuses. Simplify.
12466 (vn_reference_lookup): Likewise.
12467 (vn_reference_insert): Likewise.
12468 (vn_reference_insert_pieces): Likewise.
12469 (visit_reference_op_call): Simplify.
12470 (visit_reference_op_load): Likewise.
12471 (visit_reference_op_store): Likewise.
12472 (init_scc_vn): Remove shared_lookup_vuses initialization.
12473 (free_scc_vn): Remove shared_lookup_vuses freeing.
12474 (sort_vuses, sort_vuses_heap): Remove.
12475 (get_ref_from_reference_ops): Export.
12476 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
12477 vector with single vuse pointer.
12478 (vn_reference_lookup_pieces, vn_reference_lookup,
12479 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
12480 (shared_vuses_from_stmt): Remove.
12481 (get_ref_from_reference_ops): Declare.
12482 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
12483 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
12484 memory-tag related code.
12485 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
12486 (likely_value): Add comment, skip static-chain of call statements.
12487 (surely_varying_stmt_p): Adjust.
12488 (gimplify_and_update_call_from_tree): Likewise.
12489 (execute_fold_all_builtins): Do not rebuild alias info.
12490 (gimplify_and_update_call_from_tree): Properly update VOPs.
12491 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
12492 (copy_ref_info): Remove memory-tag related code.
12493 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
12494 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
12495 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
12497 * tree-ssa-dom.c (gimple_p): Remove typedef.
12498 (eliminate_redundant_computations): Adjust.
12499 (record_equivalences_from_stmt): Likewise.
12500 (avail_expr_hash): Likewise.
12501 (avail_expr_eq): Likewise.
12502 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
12503 (stmt_makes_single_load): Likewise.
12504 (stmt_makes_single_store): Likewise.
12505 * tree-ssa-alias.c: Rewrite completely.
12506 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
12507 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
12508 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
12509 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
12510 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
12511 Remove public functions.
12512 (pass_reset_cc_flags): Remove.
12513 (pass_build_alias): Move ...
12514 * tree-ssa-structalias.c (pass_build_alias): ... here.
12515 * tree-ssa-alias.c (may_be_aliased): Move ...
12516 * tree-flow-inline.h (may_be_aliased): ... here.
12517 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
12518 count_uses_and_derefs): Move ...
12519 * gimple.c: ... here.
12520 * gimple.h (count_uses_and_derefs): Declare.
12521 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
12522 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
12523 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
12524 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
12525 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
12526 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
12527 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
12529 * tree-dfa.c (refs_may_alias_p): Move ...
12530 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
12531 * tree-ssa-alias.h: New file.
12532 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
12533 (statement_sink_location): Likewise.
12534 * opts.c (decode_options): Do not adjust max-aliased-vops or
12535 avg-aliased-vops values.
12536 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
12537 (TV_CALL_CLOBBER): Likewise.
12538 (TV_FLOW_SENSITIVE): Likewise.
12539 (TV_FLOW_INSENSITIVE): Likewise.
12540 (TV_MEMORY_PARTITIONING): Likewise.
12541 (TV_ALIAS_STMT_WALK): New timevar.
12542 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
12543 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
12544 (get_address_description): Remove memory-tag related code.
12545 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
12546 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
12547 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
12548 and immediate uses in statements. Document.
12549 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
12550 (dump_symbols): Remove.
12551 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
12552 * alias.c (get_deref_alias_set): New function split out from ...
12553 (get_alias_set): ... here.
12554 * alias.h (get_deref_alias_set): Declare.
12555 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
12556 type parameter. Remove restrict pointer handling. Create a
12557 ref-all pointer in case type-based alias sets do not conflict.
12558 (vect_analyze_data_refs): Remove SMT related code.
12559 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
12560 (vectorizable_load): Likewise.
12561 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
12562 (DR_SYMBOL_TAG, DR_VOPS): Remove.
12563 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
12564 Ignore vops and SMTs.
12565 (dr_analyze_alias): Likewise..
12566 (free_data_ref): Likewise.
12567 (create_data_ref): Likewise.
12568 (analyze_all_data_dependences): Likewise.
12569 (get_references_in_stmt): Adjust.
12570 * tree-flow-inline.h (gimple_aliases_computed_p,
12571 gimple_addressable_vars, gimple_call_clobbered_vars,
12572 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
12573 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
12574 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
12575 gimple_mem_ref_stats): Remove.
12576 (gimple_vop): New function.
12577 (op_iter_next_use): Remove vuses and mayuses cases.
12578 (op_iter_next_def): Remove vdefs case.
12579 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
12580 (clear_and_done_ssa_iter): Do not set removed fields.
12581 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
12582 Assert we are not iterating over vuses or vdefs if not also
12583 iterating over uses or defs.
12584 (op_iter_init_use): Likewise.
12585 (op_iter_init_def): Likewise.
12586 (op_iter_next_vdef): Remove.
12587 (op_iter_next_mustdef): Likewise.
12588 (op_iter_init_vdef): Likewise.
12589 (compare_ssa_operands_equal): Likewise.
12590 (link_use_stmts_after): Handle vuse operand.
12591 (is_call_used): Use is_call_clobbered.
12592 (is_call_clobbered): Global variables are always call clobbered,
12593 query the call-clobbers bitmap.
12594 (mark_call_clobbered): Ignore global variables.
12595 (clear_call_clobbered): Likewise.
12596 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
12597 virtual operands sanity check.
12598 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
12600 (TARGET_MEM_REF): Remove TMR_TAG operand.
12601 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
12602 Remove call-clobber related code.
12603 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
12604 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
12605 partitions or escape reason.
12606 (get_single_def_stmt, get_single_def_stmt_from_phi,
12607 get_single_def_stmt_with_phi): Remove.
12608 (dump_referenced_vars): Tidy.
12609 (get_ref_base_and_extent): Allow bare decls.
12610 (collect_dfa_stats): Adjust.
12611 * graphite.c (rename_variables_in_stmt): Adjust.
12612 (graphite_copy_stmts_from_block): Likewise.
12613 (translate_clast): Likewise.
12614 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
12616 (translate_vuse_through_block): Use the oracle.
12617 (phi_translate_1): Adjust.
12618 (value_dies_in_block_x): Use the oracle. Cache the outcome
12620 (valid_in_sets): Check if the VUSE for
12621 a REFERENCE is available.
12622 (eliminate): Do not remove stmts during elimination,
12623 instead queue and remove them afterwards.
12624 (do_pre): Do not rebuild alias info.
12625 (pass_pre): Run TODO_rebuild_alias before PRE.
12626 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
12627 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
12628 (mark_all_v_defs_stmt): Remove.
12629 (mark_all_v_defs_seq): Adjust.
12630 (sra_replace): Likewise.
12631 (scalarize_use): Likewise.
12632 (scalarize_copy): Likewise.
12633 (scalarize_init): Likewise.
12634 (scalarize_ldst): Likewise.
12635 (todoflags): Remove.
12636 (tree_sra): Do not rebuild alias info.
12637 (tree_sra_early): Adjust.
12638 (pass_sra): Run TODO_update_address_taken before SRA.
12639 * tree-predcom.c (set_alias_info): Remove.
12640 (prepare_initializers_chain): Do not call it.
12641 (mark_virtual_ops_for_renaming): Adjust.
12642 (mark_virtual_ops_for_renaming_list): Remove.
12643 (initialize_root_vars): Adjust.
12644 (initialize_root_vars_lm): Likewise.
12645 (prepare_initializers_chain): Likewise.
12646 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
12647 (may_propagate_copy_into_stmt): Likewise.
12648 (merge_alias_info): Do nothing for now.
12649 (propagate_tree_value_into_stmt): Adjust.
12650 (stmt_may_generate_copy): Likewise.
12651 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
12652 not mark symbols for renaming.
12653 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
12654 with the same statement, make sure to update the new pointed-to one.
12655 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
12656 call statements, do not mark symbols for renaming.
12657 (mark_operand_necessary): Dump something.
12658 (ref_may_be_aliased): New function.
12659 (mark_aliased_reaching_defs_necessary_1): New helper function.
12660 (mark_aliased_reaching_defs_necessary): Likewise.
12661 (mark_all_reaching_defs_necessary_1): Likewise.
12662 (mark_all_reaching_defs_necessary): Likewise.
12663 (propagate_necessity): Do not process virtual PHIs. For
12664 non-aliased loads mark all reaching definitions as necessary.
12665 For aliased loads and stores mark the immediate dominating
12666 aliased clobbers as necessary.
12667 (visited): New global static.
12668 (perform_tree_ssa_dce): Free visited bitmap after propagating
12670 (remove_dead_phis): Perform simple dead virtual PHI removal.
12671 (remove_dead_stmt): Properly unlink virtual operands when
12673 (eliminate_unnecessary_stmts): Schedule PHI removal after
12675 * tree-ssa-ter.c (is_replaceable_p): Adjust.
12676 (process_replaceable): Likewise.
12677 (find_replaceable_in_bb): Likewise.
12678 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
12679 based on the single gimple vop.
12680 (verify_flow_insensitive_alias_info): Remove.
12681 (verify_flow_sensitive_alias_info): Likewise.
12682 (verify_call_clobbering): Likewise.
12683 (verify_memory_partitions): Likewise.
12684 (verify_alias_info): Likewise.
12685 (verify_ssa): Adjust..
12686 (execute_update_addresses_taken): Export. Update SSA
12687 manually. Optimize only when optimizing. Use a local bitmap.
12688 (pass_update_address_taken): Remove TODO_update_ssa, add
12690 (pass_update_address_taken): Just use TODO_update_address_taken.
12691 (init_tree_ssa): Do not initialize addressable_vars.
12692 (verify_ssa): Verify new VUSE / VDEF properties.
12693 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
12694 Do not call verify_alias_info.
12695 (delete_tree_ssa): Clear the VUSE, VDEF operands.
12696 Do not free the loaded and stored syms bitmaps. Reset the escaped
12697 and callused solutions. Do not free addressable_vars.
12698 Remove memory-tag related code.
12699 (warn_uninitialized_var): Aliases are always available.
12700 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
12701 * lambda-code.c (can_put_in_inner_loop): Adjust.
12702 (can_put_after_inner_loop): Likewise.
12703 (perfect_nestify): Likewise.
12704 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
12705 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
12706 (vectorizable_conversion): Do not mark symbols for renaming.
12707 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
12708 (expand_call_inline): Unlink the calls virtual operands before
12710 (tree_function_versioning): Do not call update_ssa if we are not
12711 updating clones. Simplify.
12712 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
12713 (propagate_with_phi): Likewise..
12714 * tree-outof-ssa.c (create_temp): Remove memory tag and call
12715 clobber code. Assert we are not aliased or global.
12716 * tree-flow.h: Include tree-ssa-alias.h
12717 (enum escape_type): Remove.
12718 (struct mem_sym_stats_d): Likewise.
12719 (struct mem_ref_stats_d): Likewise.
12720 (struct gimple_df): Add vop member. Remove global_var,
12721 call_clobbered_vars, call_used_vars, addressable_vars,
12722 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
12723 escaped and callused members.
12724 (struct ptr_info_def): Remove all members, add points-to solution
12726 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
12727 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
12728 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
12729 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
12730 (tree-ssa-alias.o): Likewise.
12731 (toplev.o): Add tree-ssa-alias.h
12732 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
12733 * gimple.c (gimple_set_bb): Fix off-by-one error.
12734 (is_gimple_reg): Do not handle memory tags.
12735 (gimple_copy): Also copy virtual operands.
12736 Delay updating the statement. Do not reset loaded and stored syms.
12737 (gimple_set_stored_syms): Remove.
12738 (gimple_set_loaded_syms): Likewise.
12739 (gimple_call_copy_skip_args): Copy the virtual operands
12740 and mark the new statement modified.
12741 * tree-ssa-structalias.c (may_alias_p): Remove.
12742 (set_uids_in_ptset): Take the alias set to prune with as
12743 parameter. Fold in the alias test of may_alias_p.
12744 (compute_points_to_sets): Compute whether a ptr is dereferenced
12745 in a local sbitmap.
12746 (process_constraint): Deal with &ANYTHING on the lhs, reject all
12747 other ADDRESSOF constraints on the lhs.
12748 (get_constraint_for_component_ref): Assert that we don't get
12749 ADDRESSOF constraints from the base of the reference.
12750 Properly generate UNKNOWN_OFFSET for DEREF if needed.
12751 (struct variable_info): Remove collapsed_to member.
12752 (get_varinfo_fc): Remove.
12753 (new_var_info): Do not set collapsed_to.
12754 (dump_constraint): Do not follow cycles.
12755 (dump_constraint_graph): Likewise.
12756 (build_pred_graph): Likewise.
12757 (build_succ_graph): Likewise.
12758 (rewrite_constraints): Likewise.
12759 (do_simple_structure_copy): Remove.
12760 (do_rhs_deref_structure_copy): Remove.
12761 (do_lhs_deref_structure_copy): Remove.
12762 (collapse_rest_of_var): Remove.
12763 (do_structure_copy): Re-implement.
12764 (pta_stats): New global variable.
12765 (dump_pta_stats): New function.
12766 (struct constraint_expr): Make offset signed.
12767 (UNKNOWN_OFFSET): Define special value.
12768 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
12769 (solution_set_expand): New helper function split out from ...
12770 (do_sd_constraint): ... here.
12771 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
12772 (do_ds_constraint): Likewise.
12773 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
12774 and CALLUSED = *CALLUSED.
12775 (set_union_with_increment): Make inc argument signed.
12776 (type_safe): Remove.
12777 (get_constraint_for_ptr_offset): Handle unknown and negative
12779 (first_vi_for_offset): Handle offsets before start. Bail
12780 out early for offsets beyond the variable extent.
12781 (first_or_preceding_vi_for_offset): New function.
12782 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
12783 Together with ESCAPED = *ESCAPED this properly computes reachability.
12784 (find_what_var_points_to): New function.
12785 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
12786 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
12787 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
12788 pt_solutions_intersect): New functions.
12789 (compute_call_used_vars): Remove.
12790 (compute_may_aliases): New main entry into PTA computation.
12791 * gimple.h (gimple_p): New typedef.
12792 (struct gimple_statement_base): Remove references_memory_p.
12793 (struct gimple_statement_with_memory_ops_base): Remove
12794 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
12796 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
12797 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
12798 gimple_set_references_memory): Remove.
12799 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
12800 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
12802 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
12803 (verify_expr): Allow RESULT_DECL.
12804 (gimple_duplicate_bb): Do not copy virtual operands.
12805 (gimple_duplicate_sese_region): Adjust.
12806 (gimple_duplicate_sese_tail): Likewise.
12807 (mark_virtual_ops_in_region): Remove.
12808 (move_sese_region_to_fn): Do not call it.
12809 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
12810 and pass_simple_dse.
12811 (execute_function_todo): Handle TODO_update_address_taken,
12812 call execute_update_addresses_taken for TODO_rebuild_alias.
12813 (execute_todo): Adjust.
12814 (execute_one_pass): Init dump files early.
12815 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
12817 (create_general_new_stmt): Clear vops.
12818 * tree-ssa-reassoc.c (get_rank): Adjust.
12819 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
12820 symbols for renaming.
12821 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
12822 (PARAM_AVG_ALIASED_VOPS): Likewise.
12823 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
12824 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
12825 * tree-ssa-operands.c: Simplify for new virtual operand representation.
12826 (operand_build_cmp, copy_virtual_operands,
12827 create_ssa_artificial_load_stmt, add_to_addressable_set,
12828 gimple_add_to_addresses_taken): Remove public functions.
12829 (unlink_stmt_vdef): New function.
12831 2009-04-03 Alan Modra <amodra@bigpond.net.au>
12833 * config.gcc (powerpc-*-linux*): Merge variants.
12835 2009-04-02 Chao-ying Fu <fu@mips.com>
12836 James Grosbach <james.grosbach@microchip.com>
12838 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
12839 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
12841 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
12842 keep_interrupts_masked_p, use_debug_exception_return_p.
12843 (mips_attribute_table): Add interrupt, use_shadow_register_set,
12844 keep_interrupts_masked, use_debug_exception_return.
12845 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
12846 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
12848 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
12849 (mips_print_operand): Process COP0 registers to print $0 .. $31
12850 correctly for GAS to process.
12851 (mips_interrupt_extra_call_saved_reg_p): New function.
12852 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
12854 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
12855 (mips_compute_frame_info): Add supports for interrupt context that
12856 includes doubleword accumulators and COP0 registers.
12857 (mips_for_each_saved_acc): New function.
12858 (mips_for_each_saved_gpr_and_fpr): Change the function name from
12859 mips_for_each_saved_reg.
12860 (mips_save_reg): Save accumulators.
12861 (mips_kernel_reg_p): A new for_each_rtx callback.
12862 (mips_expand_prologue): Support interrupt handlers.
12863 (mips_restore_reg): Restore accumulators.
12864 (mips_expand_epilogue): Support interrupt handlers.
12865 (mips_can_use_return_insn): Return false for interrupt handlers.
12866 (mips_epilogue_uses): New function.
12867 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
12868 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
12869 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
12870 cop0_move): New instructions.
12871 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
12872 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
12874 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
12876 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
12877 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
12878 interrupt handlers, we use K0 as the temporary register.
12879 (EPILOGUE_USES): Change to a function call.
12880 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
12881 handlers, we use K0 as the temporary register.
12883 * doc/extend.texi (Function Attributes): Document interrupt,
12884 use_shadow_register_set, keep_interrupts_masked,
12885 use_debug_exception_return for MIPS attributes.
12887 2009-04-03 Alan Modra <amodra@bigpond.net.au>
12889 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
12890 Remove a number of t-files from tmake_file.
12891 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
12892 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
12893 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12894 target_prototype, not TARGET_PROTOTYPE.
12895 (LINK_OS_GNU_SPEC): Define.
12896 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
12897 and darwin-ldoubdle.c.
12899 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12902 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
12903 (cpp_options): Ditto.
12904 (default_compilers): Ditto.
12905 (display_help): Ditto.
12906 (process_command): Ditto.
12907 (do_spec_1): Ditto.
12908 (set_input): Use lbasename instead of duplicate code.
12909 (save_temps_prefix): New static for -save-temps=obj.
12910 (save_temps_length): Ditto.
12912 * doc/invoke.texi (-save-temps=obj): Document new variant to
12913 -save-temps switch.
12915 2009-04-02 Jeff Law <law@redhat.com>
12917 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
12920 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
12922 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
12923 * configure: Regenerated.
12925 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
12927 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
12928 share the argument list.
12930 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
12934 2009-02-12 Diego Novillo <dnovillo@google.com>
12936 * varpool.c (debug_varpool): New.
12937 * cgraph.h (debug_varpool): Declare.
12939 2009-04-02 Jan Hubicka <jh@suse.cz>
12941 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
12944 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
12946 * config/i386/i386.c (ix86_abi): Move initialization to ...
12947 (override_options): Here.
12949 2009-04-02 Christian Bruel <christian.bruel@st.com>
12951 * config/sh/sh.c (sh_dwarf_register_span): New function.
12952 (TARGET_DWARF_REGISTER_SPAN): Define.
12953 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
12955 2009-04-02 Ira Rosen <irar@il.ibm.com>
12957 PR tree-optimization/39595
12958 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
12959 interleaved loads group is not greater than the SLP group size.
12961 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
12963 * builtins.c (is_builtin_name): New.
12964 (called_as_built_in): Use is_builtin_name.
12965 * tree.h (is_builtin_name): New.
12966 * varasm.c (incorporeal_function_p): Use is_builtin_name
12968 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
12970 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
12972 2009-04-02 Dodji Seketeli <dodji@redhat.com>
12975 * c-decl.c (clone_underlying_type): Move this ...
12976 * c-common.c (set_underlying_type): ... here.
12977 Also, make sure the function properly sets TYPE_STUB_DECL() on
12978 the newly created typedef variant type.
12979 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
12980 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
12983 2009-04-02 Richard Guenther <rguenther@suse.de>
12985 PR tree-optimization/37221
12986 * tree-flow.h (degenerate_phi_result): Declare.
12987 * tree-ssa-dom.c (degenerate_phi_result): Export.
12988 * tree-scalar-evolution.c (analyze_initial_condition): If
12989 the initial condition is defined by a degenerate PHI node
12990 use the degenerate value.
12992 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
12994 PR rtl-optimization/39588
12995 * combine.c (merge_outer_ops): Do not set the constant when this
12997 (simplify_shift_const_1): Do not modify it either in this case.
12999 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
13001 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
13002 tuning is deprecated if -mtune value is set to an Itanium1 variant.
13004 2009-04-01 Janis Johnson <janis187@us.ibm.com>
13007 * c-lex.c (interpret_float): Default (no suffix) is double.
13009 2009-04-1 Xinliang David Li <davidxl@google.com>
13011 * config/i386/i386.c (legitimate_constant_p): Recognize
13012 all one vector constant.
13014 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13016 * config/vax/vax.c: Add #includes to silence warnings.
13017 Change #include order to silence two warnings.
13019 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13021 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
13022 (ASM_SPEC): Pass -k to the assembler for PIC code.
13024 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13026 * config.gcc: Add vax-*-linux* to the switch.
13027 * config/vax/linux.h: New file. (TARGET_VERSION,
13028 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
13030 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13032 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
13033 Use predicate macros instead of GET_CODE() == foo.
13034 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
13035 ashlsi3, rotrsi3, <unnamed>): Likewise.
13037 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13039 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
13040 jbbccihi, jbbccisi): Remova trailing whitespace.
13041 * config/vax/constraints.md: Likewise.
13042 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
13043 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
13044 * config/vax/predicates.md: Likewise.
13045 * config/vax/vax.c (print_operand_address, vax_output_int_move,
13046 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
13047 * config/vax/vax.h: Likewise.
13048 * config/vax/vax.md (nonlocal_goto): Likewise.
13050 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13052 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
13053 (indirectable_address_p, adjacent_operands_p): Add spaces around
13055 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
13057 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13059 * config/vax/vax.c (legitimate_constant_address_p,
13060 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
13061 index_term_p, reg_plus_index_p, legitimate_address_p,
13062 vax_mode_dependent_address_p): Update comments to match functions
13063 modified by the recent int->bool conversion.
13065 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13067 * config/vax/builtins.md: Update copyright message.
13068 * config/vax/constraints.md: Likewise.
13069 * config/vax/netbsd-elf.h: Likewise.
13070 * config/vax/predicates.md: Likewise.
13071 * config/vax/vax-protos.h: Likewise.
13072 * config/vax/vax.c: Likewise.
13073 * config/vax/vax.h: Likewise.
13074 * config/vax/vax.md: Likewise.
13075 * config/vax/vax.opt: Likewise.
13077 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
13079 * config/vax/builtins.md (ffssi2, ffssi2_internal,
13080 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
13081 * config/vax/constraints.md (B, R): Likewise.
13082 * config/vax/predicates.md (external_memory_operand,
13083 nonimmediate_addsub_di_operand): Likewise.
13084 * config/vax/vax.c (vax_output_int_add): Likewise.
13085 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
13086 untyped_call): Likewise.
13088 2009-04-01 Matt Thomas <matt@3am-software.com>
13090 * config/vax/predicates.md: New file.
13091 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
13092 external_const_operand, nonsymbolic_operand, external_memory_operand,
13093 indirect_memory_operand, indexed_memory_operand,
13094 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
13095 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
13097 * config/vax/constraints.md: New file.
13098 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
13100 * config/vax/builtins.md: New file.
13101 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
13102 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
13104 * config/vax/vax.opt (mqmath): Add option.
13105 * config/vax/vax.md (isfx): Extend with DI.
13106 (VAXintQH, VAXintQHSD): Define.
13107 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
13108 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
13109 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
13110 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
13111 (movdi): Update constraints and use vax_output_int_move().
13112 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
13113 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
13114 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
13115 nonlocal_goto): New.
13116 (mov<mode>): Extend accepted operand types.
13117 (subdi3_old): Rename from subdi3, change update constraints and use
13118 a new implementation.
13119 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
13120 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
13121 MOVE_RATIO, CLEAR_RATIO): Define.
13122 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
13123 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
13124 (PRINT_OPERAND): Redefine using a function instead of inlined code.
13125 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13126 (split_quadword_operands): Make static and really allow variable
13128 (print_operand_address): Update for PIC generation.
13129 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
13130 indexable_address_p, fixup_mathdi_operand,
13131 vax_expand_addsub_di_operands, adjacent_operands_p): New.
13132 (vax_float_literal, legitimate_constant_p,
13133 indirectable_constant_address_p, index_term_p,
13134 reg_plus_index_p): Return bool instead of int.
13135 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
13137 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
13139 (vax_output_conditional_branch): Indent.
13140 (legitimate_constant_address_p, indirectable_constant_address_p,
13141 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
13142 vax_mode_dependent_address_p): Return bool instead of int, update for
13144 * config/vax/vax-protos.h (legitimate_constant_address_p,
13145 legitimate_constant_p, legitimate_address_p,
13146 vax_mode_dependent_address_p): Change declaration to bool.
13147 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
13148 vax_expand_addsub_di_operands, vax_output_int_subtract,
13149 vax_output_movmemsi): Declare.
13150 (split_quadword_operands, vax_float_literal): Delete declaration.
13151 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
13152 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
13153 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
13154 ASM_OUTPUT_DWARF_PCREL): Define.
13155 (ASM_SPEC): Change definition to allow PIC generation.
13157 2009-04-01 Steve Ellcey <sje@cup.hp.com>
13159 * doc/sourcebuild.texi: Update front-end requirements.
13161 2009-04-01 Jakub Jelinek <jakub@redhat.com>
13164 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
13165 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
13166 (booldi3_internal3): Use boolean_or_operator instead of
13169 2009-04-01 Joseph Myers <joseph@codesourcery.com>
13172 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
13173 declarator whose size is not an integer constant expression but
13174 folds to an integer constant, then treat it as a constant
13177 2009-04-01 Richard Guenther <rguenther@suse.de>
13179 * fold-const.c (fold_plusminus_mult_expr): Do not fold
13180 i * 4 + 2 to (i * 2 + 1) * 2.
13182 2009-04-01 Jakub Jelinek <jakub@redhat.com>
13185 * c-parser.c (c_parser_asm_statement): Skip until close paren and
13186 return if c_parser_asm_string_literal returned NULL.
13188 2009-04-01 Nick Clifton <nickc@redhat.com>
13190 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
13192 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
13193 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
13194 other typedefs to avoid conflicts with libgcc2.c. Define labels
13195 to gain 16-bit bit-manipulation functions from libgcc2.c and then
13197 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
13198 to gain 16-bit trapping arithmetic functions from libgcc2.c and
13201 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
13203 * varasm.c (default_function_rodata_section): Declare DOT as
13206 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
13207 Andrey Galkin <agalkin@hypercom.com>
13210 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13211 Make object_name unique for each process.
13213 2009-04-01 Jakub Jelinek <jakub@redhat.com>
13216 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
13217 addressable variables in the parallel that could go out of scope while
13218 running queued tasks.
13220 2009-04-01 Anatoly Sokolov <aesok@post.ru>
13222 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
13223 (CASE_VALUES_THRESHOLD): Redefine.
13224 * config/avr/avr.c (avr_override_options): Remove initialization of
13225 avr_case_values_threshold variable.
13226 (avr_case_values_threshold): Remove variable. Add new function.
13227 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
13228 * config/avr/avr.opt (mno-tablejump): Remove option.
13229 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
13231 2009-04-01 DJ Delorie <dj@redhat.com>
13233 * varasm.c (default_function_rodata_section): Don't assume
13234 anything about where the first '.' in the section name is.
13236 2009-04-01 Alan Modra <amodra@bigpond.net.au>
13238 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
13239 rs6000_emit_stack_tie.
13241 2009-03-31 Ian Lance Taylor <iant@google.com>
13243 * tree-eh.c (tree_remove_unreachable_handlers): Compare
13244 gimple_code with GIMPLE_RESX, not RESX.
13246 2009-03-31 Joseph Myers <joseph@codesourcery.com>
13248 * c-common.c (c_get_ident): New.
13249 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
13251 2009-04-01 Ben Elliston <bje@au.ibm.com>
13253 * config/rs6000/sysv4.opt (msdata): Improve option description.
13255 2009-03-31 Steve Ellcey <sje@cup.hp.com>
13257 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
13258 (divdf3_internal_lat): Remove.
13259 (divxf3_internal_lat): Remove.
13260 (divxf3_internal_thr): Remove.
13261 (divxf): Use divxf3_internal.
13262 * config/ia64/div.md (divsf3_internal_lat): New.
13263 (divdf3_internal_lat): New.
13264 (divxf3_internal): New.
13266 2009-03-31 Joseph Myers <joseph@codesourcery.com>
13269 * Makefile.in (USE_GCC_STDINT): Define.
13270 (stmp-int-hdrs): Install stdint.h if applicable.
13271 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
13273 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
13274 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
13275 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
13276 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13277 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
13278 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
13279 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
13280 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13281 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
13282 (c_common_nodes_and_builtins): Initialize
13283 underlying_wchar_type_node. Do not initialize
13284 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
13285 nodes for new types.
13286 (c_stddef_cpp_builtins): Define macros for new types.
13287 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
13289 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
13290 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
13291 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
13292 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
13293 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
13294 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
13295 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
13296 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
13297 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
13298 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
13299 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
13300 int16_type_node, int32_type_node, int64_type_node,
13301 uint8_type_node, uint16_type_node, c_uint32_type_node,
13302 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
13303 int_least32_type_node, int_least64_type_node,
13304 uint_least8_type_node, uint_least16_type_node,
13305 uint_least32_type_node, uint_least64_type_node,
13306 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
13307 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
13308 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
13309 uintptr_type_node): Define.
13310 * c-cppbuiltin.c (builtin_define_constants,
13311 builtin_define_type_minmax): New.
13312 (builtin_define_stdint_macros): Define more macros.
13313 (c_cpp_builtins): Define more limit macros.
13314 (type_suffix): New.
13315 (builtin_define_type_max): Define in terms of
13316 builtin_define_type_minmax. Remove is_long parameter. All
13318 * config.gcc (use_gcc_stdint): Define.
13319 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
13320 Add newlib-stdint.h for generic targets.
13321 * config/glibc-stdint.h, config/newlib-stdint.h,
13322 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
13323 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
13324 * config/score/score.h (UINTPTR_TYPE): Define.
13325 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
13326 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
13327 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13328 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
13329 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
13330 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
13331 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13332 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
13333 * config/spu/spu.h (STDINT_LONG32): Define.
13334 * configure.ac (use_gcc_stdint): Substitute.
13335 * configure: Regenerate.
13336 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
13337 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
13338 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
13339 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
13340 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
13341 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
13342 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
13343 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
13344 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
13345 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
13346 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
13347 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
13348 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
13349 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
13350 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
13351 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
13352 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
13353 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
13354 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
13355 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
13356 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
13357 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
13358 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
13359 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13360 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
13361 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
13362 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
13363 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13364 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
13366 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
13368 * loop-iv.c (suitable_set_for_replacement): Renamed from
13369 simplify_using_assignment; changed to return bool and to accept new
13370 args DEST and SRC. Return true iff we find a source/destination pair
13371 that can be used to make a replacement, and fill SRC and DEST if so.
13372 Remove arg ALTERED. Don't deal with altered regs here. All callers
13374 (simplify_using_initial_values): Deal with altered regs here and track
13375 more precisely the effect they have on the validity of our expression.
13377 * loop-iv.c (simplify_using_condition): A condition of the form
13378 (EQ REG CONST) can be used to simply make a substitution.
13379 (simplify_using_initial_values): Keep track of conditions we have seen
13380 and keep using them to simplify new expressions, while applying the
13381 same substitutions to them as to the expression.
13383 * simplify-rtx.c (simplify_relational_operation_1): Simplify
13384 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
13387 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
13388 changed. Use this when trying to improve the upper bound.
13389 Generate the comparison by using simplify_gen_relational.
13391 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
13393 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
13395 (simplify_using_assignment, simplify_using_initial_values): Call
13396 replace_in_expr to make replacements. Call replace_single_def_regs
13397 once on the initial version of the expression.
13399 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13402 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
13404 2009-03-31 Richard Guenther <rguenther@suse.de>
13406 PR middle-end/31029
13407 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
13408 equality comparisons. Fold C - X CMP X if C % 2 == 1.
13410 2009-03-31 Richard Guenther <rguenther@suse.de>
13412 * tree.h (div_if_zero_remainder): Declare.
13413 * fold-const.c (div_if_zero_remainder): Export.
13414 * tree-ssa-forwprop.c
13415 (forward_propagate_addr_into_variable_array_index): Handle
13416 constant array index addition outside of the variable index.
13418 2009-03-31 Joseph Myers <joseph@codesourcery.com>
13421 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
13422 define_splits, floatunssi<mode>2): Require x87 conversions from
13423 DImode to be permitted.
13425 2009-03-31 Joseph Myers <joseph@codesourcery.com>
13427 PR preprocessor/15638
13428 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
13430 2009-03-31 Richard Guenther <rguenther@suse.de>
13432 PR middle-end/23401
13433 PR middle-end/27810
13434 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
13435 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
13436 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
13437 a separate statement.
13438 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
13439 (lookup_tmp_var): Likewise.
13440 (is_gimple_formal_tmp_or_call_rhs): Remove.
13441 (is_gimple_reg_or_call_rhs): Rename to ...
13442 (is_gimple_reg_rhs_or_call): ... this.
13443 (is_gimple_mem_or_call_rhs): Rename to ...
13444 (is_gimple_mem_rhs_or_call): ... this.
13445 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
13446 DECL_GIMPLE_REG_P only if is_formal is true.
13447 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
13448 for non-proper post-modify expression gimplification.
13449 (gimplify_self_mod_expr): For post-modify expressions gimplify
13450 the lvalue to a minimal lvalue.
13451 (rhs_predicate_for): Remove formal temp case.
13452 (gimplify_modify_expr_rhs): Likewise.
13453 (gimplify_addr_expr): Use is_gimple_reg.
13454 (gimplify_expr): Remove formal temp cases.
13455 (gimple_regimplify_operands): Likewise.
13456 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
13457 and FILTER_EXPR like constants.
13458 * gimple.c (walk_gimple_op): Fix val_only initialization, use
13460 (is_gimple_formal_tmp_rhs): Remove.
13461 (is_gimple_reg_rhs): Remove special casing.
13462 (is_gimple_mem_rhs): Fix.
13463 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
13464 (is_gimple_formal_tmp_var): Remove.
13465 (is_gimple_formal_tmp_reg): Likewise.
13466 (is_gimple_min_lval): Allow invariant component ref parts.
13467 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
13468 is_gimple_formal_tmp_reg): Remove declarations.
13469 * tree-cfg.c (verify_expr): Verify that variables with address
13470 taken do not have DECL_GIMPLE_REG_P set.
13471 * tree-mudflap.c (mf_build_check_statement_for): Use
13472 force_gimple_operand instead of gimplify_expr.
13474 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
13476 * modulo-sched.c (sms_schedule_by_order): Pass the actual
13477 schedulable rows to compute_split_row.
13479 2009-03-31 Ben Elliston <bje@au.ibm.com>
13482 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
13485 2009-03-31 Alan Modra <amodra@bigpond.net.au>
13487 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
13488 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
13489 * configure: Regenerate.
13490 * config.in: Regenerate.
13491 * config/rs6000/rs6000.opt (mtls-markers): Add.
13492 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
13493 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
13494 (tls_ld_aix, tls_ld_sysv): Likewise.
13495 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
13496 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
13498 2009-03-31 Alan Modra <amodra@bigpond.net.au>
13500 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
13502 2009-03-30 Jan Hubicka <jh@suse.cz>
13504 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
13506 (tree_remove_unreachable_handlers): Cleanup EH predecestor
13507 detection and label handling.
13509 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
13511 * ira-int.h (ira_allocno): Rename left_conflicts_num to
13512 left_conflicts_size.
13513 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
13514 ALLOCNO_LEFT_CONFLICTS_SIZE.
13516 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
13517 remove_allocno_from_bucket_and_push,
13518 allocno_spill_priority_compare, push_allocnos_to_stack,
13519 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
13520 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
13521 (setup_allocno_left_conflicts_num): Ditto. Rename to
13522 setup_allocno_left_conflicts_size.
13523 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
13524 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
13525 setup_allocno_left_conflicts_size instead of
13526 setup_allocno_left_conflicts_num.
13528 * ira-build.c (ira_create_allocno): Use
13529 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
13530 ALLOCNO_LEFT_CONFLICTS_NUM.
13532 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
13534 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
13535 instead of DF_LR_OUT.
13537 * ira-lives.c (process_bb_node_lives): Ditto.
13539 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
13540 instead of DF_LR_{OUT,IN}.
13542 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
13544 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
13546 2009-03-30 Jan Hubicka <jh@suse.cz>
13548 * except.c (label_to_region_map): Fix thinko.
13550 2009-03-30 Steve Ellcey <sje@cup.hp.com>
13552 PR middle-end/38237
13553 * tree.h (tree_find_value): New declaration.
13554 * tree.c (tree_find_value): New function.
13555 * varasm.c (assemble_external): Avoid duplicate entries on lists.
13557 2009-03-30 Jakub Jelinek <jakub@redhat.com>
13560 * c-decl.c (struct c_binding): Add locus field.
13561 (bind): Add locus argument, set locus field from it.
13562 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
13563 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
13564 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
13565 implicitly_declare, undeclared_variable, lookup_label,
13566 declare_label, c_make_fname_decl, c_builtin_function,
13567 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
13570 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
13573 * config/i386/i386.c (classify_argument): Check total size of
13576 2009-03-30 Martin Jambor <mjambor@suse.cz>
13578 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
13579 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
13580 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
13583 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
13584 seen_variable_array_ref while also traversing a union.
13586 * tree-inline.c (optimize_inline_calls): Do not call
13587 cgraph_node_remove_callees.
13588 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
13589 (pass_remove_cgraph_callee_edges): New variable.
13590 * passes.c (init_optimization_passes): Add
13591 pass_remove_cgraph_callee_edges after early inlining and before all
13592 late intraprocedural passes.
13594 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
13596 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
13598 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
13599 Fix typos in names.
13601 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
13603 * combine.c (simplify_comparison): Use have_insn_for.
13604 * dojump.c (do_jump): Likewise.
13606 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
13608 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
13609 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
13610 sparc_compare_op0 like sparc_compare_emitted used to be handled.
13611 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
13612 instead of sparc_compare_emitted.
13613 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
13614 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
13615 instead of sparc_compare_emitted.
13617 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
13619 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
13620 enter/exit cfglayout mode.
13621 (pass_partition_block): Require it.
13622 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
13623 (combine_instructions): Track basic blocks instead of labels.
13624 (update_cfg_for_uncondjump): New.
13625 (try_combine): Use it. Update jumps after rescanning.
13626 (pass_combine): Require PROP_cfglayout.
13627 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
13629 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
13631 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
13632 Provide/destroy PROP_cfglayout respectively.
13633 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
13634 * tree-pass.h (PROP_cfglayout): New.
13636 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
13638 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
13639 fold_convert_const_fixed_from_fixed,
13640 fold_convert_const_fixed_from_int,
13641 fold_convert_const_fixed_from_real, fold_negate_const): Do not
13642 set TREE_CONSTANT_OVERFLOW.
13643 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
13644 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
13646 2009-03-30 Ira Rosen <irar@il.ibm.com>
13648 * tree-vect-loop-manip.c: New file.
13649 * tree-vectorizer.c: Update documentation and included files.
13650 (vect_loop_location): Make extern.
13651 (rename_use_op): Move to tree-vect-loop-manip.c
13652 (rename_variables_in_bb, rename_variables_in_loop,
13653 slpeel_update_phis_for_duplicate_loop,
13654 slpeel_update_phi_nodes_for_guard1,
13655 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
13656 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
13657 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
13658 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
13659 find_loop_location): Likewise.
13660 (new_stmt_vec_info): Move to tree-vect-stmts.c.
13661 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
13662 get_vectype_for_scalar_type, vect_is_simple_use,
13663 supportable_widening_operation, supportable_narrowing_operation):
13665 (bb_in_loop_p): Move to tree-vect-loop.c.
13666 (new_loop_vec_info, destroy_loop_vec_info,
13667 reduction_code_for_scalar_code, report_vect_op,
13668 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
13669 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
13670 (vect_supportable_dr_alignment): Likewise.
13671 * tree-vectorizer.h (tree-data-ref.h): Include.
13672 (vect_loop_location): Declare.
13673 Reorganize function declarations according to the new file structure.
13674 * tree-vect-loop.c: New file.
13675 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
13676 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
13677 * tree-vect-data-refs.c: New file.
13678 * tree-vect-patterns.c (timevar.h): Don't include.
13679 * tree-vect-stmts.c: New file.
13680 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
13681 tree-vect-slp.c, tree-vect-loop.c.
13682 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
13683 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
13684 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
13685 (tree-vect-analyze.o): Remove.
13686 (tree-vect-transform.o): Likewise.
13687 (tree-vect-data-refs.o): Add rule.
13688 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
13689 tree-vect-slp.o): Likewise.
13690 (tree-vect-patterns.o): Remove redundant dependencies.
13691 (tree-vectorizer.o): Likewise.
13692 * tree-vect-slp.c: New file.
13694 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13696 * optc-gen.awk: Warn if an option flag has multiple different
13699 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
13701 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
13702 -floop-block): Document dependences on PPL, CLooG and Graphite.
13704 2009-03-30 Joseph Myers <joseph@codesourcery.com>
13706 PR rtl-optimization/323
13707 * c-common.c (c_fully_fold, convert_and_check,
13708 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
13709 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
13710 * c-common.def (EXCESS_PRECISION_EXPR): New.
13711 * c-cppbuiltin.c (builtin_define_float_constants): Define
13712 constants with enough digits for long double.
13713 * c-lex.c (interpret_float): Interpret constant with excess
13714 precision where appropriate.
13715 * c-opts.c (c_common_post_options): Set
13716 flag_excess_precision_cmdline. Give an error for
13717 -fexcess-precision=standard for C++ for processors where the
13718 option is significant.
13719 * c-parser.c (c_parser_conditional_expression): Handle excess
13720 precision in condition.
13721 * c-typeck.c (convert_arguments): Handle arguments with excess
13723 (build_unary_op): Move excess precision outside operation.
13724 (build_conditional_expr): Likewise.
13725 (build_compound_expr): Likewise.
13726 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
13727 (build_modify_expr): Handle excess precision in RHS.
13728 (convert_for_assignment): Handle excess precision in converted
13730 (digest_init, output_init_element, process_init_element): Handle
13731 excess precision in initializer.
13732 (c_finish_return): Handle excess precision in return value.
13733 (build_binary_op): Handle excess precision in operands and add
13734 excess precision as needed for operation.
13735 * common.opt (-fexcess-precision=): New option.
13736 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
13737 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13738 For standard excess precision, output explicit conversion to and
13739 truncation from XFmode.
13740 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
13741 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
13742 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
13743 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
13744 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
13745 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
13746 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
13747 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
13748 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
13749 define_splits, sqrt<mode>2): Disable where appropriate for
13750 standard excess precision.
13751 * convert.c (convert_to_real): Do not shorten arithmetic to type
13752 for which excess precision would be used.
13753 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
13754 * doc/invoke.texi (-fexcess-precision=): Document option.
13755 (-mfpmath=): Correct index entry.
13756 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
13757 flag_excess_precision): New.
13758 * langhooks.c (lhd_post_options): Set
13759 flag_excess_precision_cmdline.
13760 * opts.c (common_handle_option): Handle -fexcess-precision=.
13761 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
13762 init_excess_precision): New.
13763 (lang_dependent_init_target): Call init_excess_precision.
13764 * tree.c (excess_precision_type): New.
13765 * tree.h (excess_precision_type): Declare.
13767 2009-03-30 Joseph Myers <joseph@codesourcery.com>
13770 * c-typeck.c (build_component_ref): Do not copy qualifiers from
13771 non-lvalue to component.
13773 2009-03-29 Joseph Myers <joseph@codesourcery.com>
13775 PR preprocessor/34695
13776 * Makefile.in (c-opts.o): Depend on c-tree.h.
13777 * c-common.c: Move down include of diagnostic.h.
13778 (done_lexing, c_cpp_error): New.
13779 * c-common.h (done_lexing): Declare.
13780 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
13782 * c-opts.c: Include c-tree.h.
13783 (c_common_init_options): Set preprocessor error callback.
13784 (c_common_handle_option): Do not set preprocessor
13785 inhibit_warnings, warnings_are_errors, warn_system_headers,
13786 pedantic_errors or inhibit_warnings flags.
13787 (c_common_post_options): Do not check cpp_errors (parse_in).
13788 (c_common_finish): Do not output dependencies if there were
13789 errors. Do not check return value of cpp_finish.
13790 * c-ppoutput.c (pp_file_change): Set input_location.
13791 * c-tree.h (c_cpp_error): Declare.
13792 * diagnostic.c (diagnostic_set_info_translated): Also initialize
13794 (diagnostic_build_prefix): Check override_column.
13795 * diagnostic.h (diagnostic_info): Add override_column field.
13796 (diagnostic_override_column): Define.
13798 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
13800 * c-common.c (c_expand_expr, c_staticp): Remove.
13801 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
13802 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
13803 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
13804 * c-gimplify.c (gimplify_compound_literal_expr,
13805 optimize_compound_literals_in_ctor): Remove.
13806 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
13807 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
13808 * c-semantics.c (emit_local_var): Remove.
13810 * langhooks-def.h (lhd_expand_expr): Remove.
13811 * langhooks.c (lhd_expand_expr): Remove.
13812 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
13814 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
13815 handling from c-semantics.c; don't call into langhook.
13816 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
13817 * gimplify.c (gimplify_compound_literal_expr,
13818 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
13819 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
13820 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
13821 as was done in c-gimplify.c.
13822 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
13823 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
13824 Move from c-common.h.
13825 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
13827 * tree.c (staticp): Do not call langhook.
13828 * langhooks.c (lhd_staticp): Delete.
13829 * langhooks-def.h (lhd_staticp): Delete prototype.
13830 (LANG_HOOKS_STATICP): Delete.
13831 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
13833 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
13834 instead of DECL_STMTs.
13836 2009-03-29 Joseph Myers <joseph@codesourcery.com>
13844 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
13846 (fold_call_expr): Return a NOP_EXPR from folding rather than the
13847 contained expression.
13848 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
13849 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
13850 conditional expressions for C.
13851 (decl_constant_value_for_optimization): Move from
13852 decl_constant_value_for_broken_optimization in c-typeck.c. Check
13853 whether optimizing and that the expression is a VAR_DECL not of
13854 array type instead of doing such checks in the caller. Do not
13855 check pedantic. Call gcc_unreachable for C++.
13856 * c-common.def (C_MAYBE_CONST_EXPR): New.
13857 * c-common.h (c_fully_fold, c_save_expr,
13858 decl_constant_value_for_optimization): New prototypes.
13859 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
13860 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
13861 EXPR_INT_CONST_OPERANDS): Define.
13862 * c-convert.c (convert): Strip nops from expression.
13863 * c-decl.c (groktypename): Take extra parameters expr and
13864 expr_const_operands. Update call to grokdeclarator.
13865 (start_decl): Update call to grokdeclarator. Add statement for
13866 expressions used in type of decl.
13867 (grokparm): Update call to grokdeclarator.
13868 (push_parm_decl): Update call to grokdeclarator.
13869 (build_compound_literal): Add parameter non_const and build a
13870 C_MAYBE_COSNT_EXPR if applicable.
13871 (grokdeclarator): Take extra parameters expr and
13872 expr_const_operands. Track expressions used in declaration
13873 specifiers and declarators. Fold array sizes and track whether
13874 they are constant expressions and whether they are integer
13875 constant expressions.
13876 (parser_xref_tag): Set expr and expr_const_operands fields in
13878 (grokfield): Update call to grokdeclarator.
13879 (start_function): Update call to grokdeclarator.
13880 (build_null_declspecs): Set expr and expr_const_operands fields in
13882 (declspecs_add_type): Handle expressions in typeof specifiers.
13883 * c-parser.c (c_parser_declspecs): Set expr and
13884 expr_const_operands fields for declaration specifiers.
13885 (c_parser_enum_specifier): Likewise.
13886 (c_parser_struct_or_union_specifier): Likewise.
13887 (c_parser_typeof_specifier): Likewise. Update call to
13888 groktypename. Fold expression as needed. Return expressions with
13889 type instead of adding statements.
13890 (c_parser_attributes): Update calls to c_parser_expr_list.
13891 (c_parser_statement_after_labels): Fold expression before passing
13892 to objc_build_throw_stmt.
13893 (c_parser_condition): Fold expression.
13894 (c_parser_asm_operands): Fold expression.
13895 (c_parser_conditional_expression): Use c_save_expr. Update call
13896 to build_conditional_expr.
13897 (c_parser_alignof_expression): Update call to groktypename.
13898 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
13899 original_code. Fold expression argument of va_arg. Create
13900 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
13901 argument to va_arg. Update calls to groktypename. Fold array
13902 index for offsetof. Verify that first argument to
13903 __builtin_choose_expr has integer type.
13904 (c_parser_postfix_expression_after_paren_type): Update calls to
13905 groktypename and build_compound_literal. Handle expressions with
13906 side effects in type name.
13907 (c_parser_postfix_expression_after_primary): Update call to
13908 c_parser_expr_list. Set original_code for calls to
13909 __builtin_constant_p.
13910 (c_parser_expr_list): Take extra parameter fold_p. Fold
13911 expressions if requested.
13912 (c_parser_objc_type_name): Update call to groktypename.
13913 (c_parser_objc_synchronized_statement): Fold expression.
13914 (c_parser_objc_receiver): Fold expression.
13915 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
13916 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
13917 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
13918 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
13919 (struct c_typespec): Add elements expr and expr_const_operands.
13920 (struct c_declspecs): Add elements expr and expr_const_operands.
13921 (groktypename, build_conditional_expr, build_compound_literal):
13923 (in_late_binary_op): Declare.
13924 * c-typeck.c (note_integer_operands): New function.
13925 (in_late_binary_op): New variable.
13926 (decl_constant_value_for_broken_optimization): Move to c-common.c
13927 and rename to decl_constant_value_for_optimization.
13928 (default_function_array_conversion): Do not strip nops.
13929 (default_conversion): Do not call
13930 decl_constant_value_for_broken_optimization.
13931 (build_array_ref): Do not fold result.
13932 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
13933 result when operand is a VLA.
13934 (c_expr_sizeof_type): Update call to groktypename. Handle
13935 expressions included in type name. Use C_MAYBE_CONST_EXPR for
13936 result when operand names a VLA type.
13937 (build_function_call): Update call to build_compound_literal.
13938 Only fold result for calls to __builtin_* functions. Strip
13939 NOP_EXPR from INTEGER_CST returned from such functions. Fold
13940 the function designator.
13941 (convert_arguments): Fold arguments. Update call to
13942 convert_for_assignment.
13943 (build_unary_op): Handle increment and decrement of
13944 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
13945 decrement earlier. Fold operand of increment and decrement.
13946 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
13947 built for integer operand. Wrap returns that are INTEGER_CSTs
13948 without being integer constant expressions or that have integer
13949 constant operands without being INTEGER_CSTs.
13950 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
13951 (build_conditional_expr): Add operand ifexp_bcp. Track whether
13952 result is an integer constant expression or can be used in
13953 unevaluated parts of one and avoid folding and wrap as
13954 appropriate. Fold operands before possibly doing -Wsign-compare
13956 (build_compound_expr): Wrap result for C99 if operands can be used
13957 in integer constant expressions.
13958 (build_c_cast): Update call to digest_init. Do not ignore
13959 overflow from casting floating-point constants to integers. Wrap
13960 results that could be confused with integer constant expressions,
13961 null pointer constants or floating-point constants.
13962 (c_cast_expr): Update call to groktypename. Handle expressions
13963 included in type name.
13964 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
13965 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
13966 Update calls to convert_for_assignment.
13967 (convert_for_assignment): Take new parameter
13968 null_pointer_constant. Do not strip nops or call
13969 decl_constant_value_for_broken_optimization. Set
13970 in_late_binary_op for conversions to boolean.
13971 (store_init_value): Update call to digest_init.
13972 (digest_init): Take new parameter null_pointer_constant. Do not
13973 call decl_constant_value_for_broken_optimization. pedwarn for
13974 initializers not constant expressions. Update calls to
13975 convert_for_assignment.
13976 (constructor_nonconst): New.
13977 (struct constructor_stack): Add nonconst element.
13978 (really_start_incremental_init, push_init_level, pop_init_level):
13979 Handle constructor_nonconst and nonconst element.
13980 (set_init_index): Call constant_expression_warning for array
13982 (output_init_element): Fold value. Set constructor_nonconst as
13983 applicable. pedwarn for initializers not constant expressions.
13984 Update call to digest_init. Call constant_expression_warning
13985 where constant initializers are required.
13986 (process_init_element): Use c_save_expr.
13987 (c_finish_goto_ptr): Fold expression.
13988 (c_finish_return): Fold return value. Update call to
13989 convert_for_assignment.
13990 (c_start_case): Fold switch expression.
13991 (c_process_expr_stmt): Fold expression.
13992 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
13993 ensure statement expression is not evaluated in constant expression.
13994 (build_binary_op): Track whether results are integer constant
13995 expressions or may occur in such, disable folding and wrap results
13996 as applicable. Fold operands for -Wsign-compare warnings unless
13998 (c_objc_common_truthvalue_conversion): Handle results folded to
13999 integer constants that are not integer constant expressions.
14000 * doc/extend.texi: Document when typeof operands are evaluated,
14001 that condition of __builtin_choose_expr is an integer constant
14002 expression, and more about use of __builtin_constant_p in
14005 2009-03-29 Richard Guenther <rguenther@suse.de>
14007 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
14008 propagate addresses of array references.
14010 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
14012 * regmove.c (perhaps_ends_bb_p): Remove.
14013 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
14014 from INSN and check that the main loop stays within that basic block.
14015 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
14016 (regmove_forward_pass): Split out from regmove_optimize. Use
14017 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
14018 (regmove_backward_pass): Split out from regmove_optimize. Use
14019 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
14020 (regmove_optimize): Simplify.
14022 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
14025 * config/i386/i386.c (classify_argument): Ignore flexible array
14026 member in struct and warn ABI change.
14028 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
14030 * config/i386/i386-protos.h (ix86_agi_dependent): New.
14032 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
14033 (ix86_adjust_cost): Updated.
14035 2009-03-29 Jan Hubicka <jh@suse.cz>
14037 PR middle-end/28850
14038 * tree-pass.h (pass_cleanup_eh): New function.
14039 (remove_unreachable_regions): Break code handling RTL
14040 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
14041 that can not be reached by runtime.
14042 (can_be_reached_by_runtime): New function.
14043 (label_to_region_map): New function.
14044 (num_eh_regions): New function.
14045 (rtl_remove_unreachable_regions): New function.
14046 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
14047 (remove_eh_region): New function.
14048 * except.h: Include sbitmap and vecprim.
14049 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
14050 num_eh_regions): Declare.
14051 * passes.c (init_optimization_passes): Schedule cleanup_eh.
14052 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
14053 * tree-eh.c (tree_remove_unreachable_handlers): New function.
14054 (tree_empty_eh_handler_p): New function.
14055 (cleanup_empty_eh): New function.
14056 (cleanup_eh): New function.
14057 (pass_cleanup_eh): New function.
14059 2009-03-29 Jan Hubicka <jh@suse.cz>
14061 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
14062 for removed regions.
14064 2009-03-29 Jan Hubicka <jh@suse.cz>
14066 * except.c (dump_eh_tree): Dump all datastructures.
14068 2009-03-29 Jan Hubicka <jh@suse.cz>
14070 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
14071 (duplicate_eh_regions_1): Likewise.
14072 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
14073 vector; call EH verification.
14074 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
14075 Be ready for region being removed.
14077 2009-03-29 Jan Hubicka <jh@suse.cz>
14079 * bitmap.c (bitmap_last_set_bit): New function.
14080 * bitmap.h (bitmap_last_set_bit): Declare.
14082 2009-03-29 David Ayers <ayers@fsfe.org>
14085 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
14086 by calling objc_compare_types and surpress warnings about
14087 incompatible C pointers that are compatible ObjC pointers.
14089 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
14091 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
14092 call initialize_inline_failed.
14093 (initialize_inline_failed): Move it from here ...
14094 * cgraph.c (initialize_inline_failed): ... to here.
14095 (cgraph_create_edge): Call initialize_inline_failed rather than
14096 setting inline_failed directly.
14098 2009-03-29 Ben Elliston <bje@au.ibm.com>
14101 * sysv4.opt (msdata): Improve comment.
14102 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
14103 * sysv4.h (SVR4_ASM_SPEC): Likewise.
14105 2009-03-29 Ben Elliston <bje@au.ibm.com>
14108 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
14109 load and store attributes.
14111 2009-03-29 Ben Elliston <bje@au.ibm.com>
14113 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
14114 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
14115 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
14116 * doc/extend.texi (X86 Built-in Functions): Add index entries for
14117 __builtin_infq and __builtin_huge_valq.
14119 2009-03-28 Anatoly Sokolov <aesok@post.ru>
14121 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
14123 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14124 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
14126 2009-03-28 Xinliang David Li <davidxl@google.com>
14128 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
14129 (do_dbg_cnt): New function.
14131 2009-03-28 Jan Hubicka <jh@suse.cz>
14133 Merge from pretty-ipa:
14135 2009-03-27 Jan Hubicka <jh@suse.cz>
14137 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
14138 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
14139 * passes.c (function_called_by_processed_nodes_p): New.
14140 * ipa-pure-const.c (check_call): Fix handling of operands.
14141 (analyze_function): Dump debug output for skipped bodies.
14142 (local_pure_const): Use function_called_by_processed_nodes_p.
14143 * dwarf2out.c (reference_to_unused): Use output.
14144 * passes.c (do_per_function_toporder): Likewise.
14146 2008-11-12 Jan Hubicka <jh@suse.cz>
14148 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
14149 * ipa-pure-const.c (funct_state_d): Add can throw field; make
14150 state_set_in_source enum
14151 (check_decl): Ignore memory tags; do not set fake looping flags;
14153 (check_operand, check_tree, check_rhs_var, check_lhs_var,
14154 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
14155 (check_call, analyze_function): Rewrite.
14157 (add_new_function): Update call of analyze_function.
14158 (generate_summary): Add call of analyze_function.
14159 (propagate): Propagate can_throw; handle state_set_in_source correctly.
14160 (local_pure_const): New function.
14161 (pass_local_pure_const): New pass.
14162 * ipa-inline.c (inline_transform): Set after_inlining.
14163 * tree-eh.c (stmt_can_throw_external): New.
14164 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
14165 work with aliasing built.
14166 * tree-flow.h (stmt_can_throw_external): New.
14167 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
14168 and local pure/const pass in early and late optimization queue.
14170 2009-03-28 Martin Jambor <mjambor@suse.cz>
14172 * fold-const.c (get_pointer_modulus_and_residue): New parameter
14174 (fold_binary): Allow function decl aligment consideration is the
14175 second argument is integer constant one.
14176 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
14177 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
14178 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
14180 2009-03-28 Jan Hubicka <jh@suse.cz>
14182 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
14183 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
14184 * function.h (rtl_data): Add nothrow flag.
14185 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
14186 set DECL_NOTHROW for AVAILABLE functions.
14188 2009-03-28 Jakub Jelinek <jakub@redhat.com>
14190 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
14191 following vector keyword has expansion starting with pixel or bool
14192 keyword, expand vector to __vector and pixel or bool to __pixel or
14196 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
14197 warn_if_disallowed_function_p): Removed.
14198 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
14199 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
14200 warning_if_disallowed_function_p.
14201 * flags.h (warn_if_disallowed_function_p,
14202 warn_disallowed_functions): Removed.
14203 * common.opt (Wdisallowed-function-list=): Removed.
14204 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
14206 2009-03-28 Richard Guenther <rguenther@suse.de>
14208 PR tree-optimization/38723
14209 * tree-ssa-pre.c (compute_avail): Add all default definitions to
14212 2009-03-28 Jan Hubicka <jh@suse.cz>
14214 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
14215 test introduced by my previous patch.
14217 2009-03-28 Richard Guenther <rguenther@suse.de>
14219 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
14220 the PHIs value undefined.
14222 2009-03-28 Jan Hubicka <jh@suse.cz>
14224 * tree-pass.h (pass_fixup_cfg): New pass.
14225 * ipa-inline.c (inline_transform): Set
14226 always_inline_functions_inlined/after_inlining.
14227 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
14228 (pass_fixup_cfg): New pass.
14229 * passes.c (init_optimization_passes): Add fixup_cfg.
14231 2009-03-28 Richard Guenther <rguenther@suse.de>
14233 PR tree-optimization/38458
14234 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
14235 argument use the arguments copy-of value.
14237 2009-03-28 Richard Guenther <rguenther@suse.de>
14239 PR tree-optimization/38180
14240 * tree-ssa-ccp.c (get_default_value): Simplify.
14241 (likely_value): Likewise.
14242 (surely_varying_stmt_p): Properly handle VOP case.
14243 (ccp_initialize): Likewise.
14244 (ccp_fold): Handle propagating through *&.
14245 (fold_const_aggregate_ref): Also handle decls.
14247 2009-03-28 Jan Hubicka <jh@suse.cz>
14249 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
14250 * cgraph.h (cgraph_node): Likewise.
14251 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
14252 (cgraph_reset_node): Use process flag.
14253 (cgraph_mark_functions_to_output): Likewise.
14254 (cgraph_expand_function): Likewise.
14255 (cgraph_expand_all_functions): Likewise.
14256 (cgraph_output_in_order): Likewise.
14257 * dwarf2out.c (reference_to_unused): Likewise.
14258 * passes.c do_per_function_toporder): Likewise.
14260 2009-03-28 Jan Hubicka <jh@suse.cz>
14262 Bring from lto-branch:
14264 2008-09-03 Doug Kwan <dougkwan@google.com>
14266 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
14267 enums instead of reason strings.
14268 * cgraph.c (cgraph_create_edge): Same.
14269 (cgraph_inline_failed_string): New function.
14270 * cgraph.h (cgraph_inline_failed_t): New enum type.
14271 (cgraph_inline_failed_string): New prototype.
14272 (struct cgraph_edge): Change type of INLINED_FAILED from constant
14273 char pointer to cgraph_inline_failed_t.
14274 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
14275 (cgraph_default_inline_p): Ditto.
14276 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
14277 to cgraph_inline_failed_t pointer.
14278 * cif-code.def: New file.
14279 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
14281 (cgraph_check_inline_limits): Change type of REASON to pointer to
14282 cgraph_inline_failed_t. Replace reason strings with enums.
14283 (cgraph_default_inline_p): Ditto.
14284 (cgraph_recursive_inlining_p): Ditto.
14285 (update_caller_keys): Change type of FAILED_REASON to
14286 cgraph_inline_failed_t.
14287 (cgraph_set_inline_failed): Change type of REASON to pointer to
14288 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
14289 convert enums to strings for text output.
14290 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
14291 to be of type cgraph_inline_failed_t. Replace reason strings with
14292 enums. Call cgraph_inline_failed_string to covert enums
14293 to strings for text output.
14294 (cgraph_decide_inlining): Replace reason strings with enums.
14295 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
14296 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
14298 * tree-inline.c (expand_call_inline): Change type of REASON
14299 to cgraph_inline_failed_t. Replace reason strings with enums.
14300 Call cgraph_inline_failed_string for text output.
14301 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
14304 2009-03-28 Jan Hubicka <jh@suse.cz>
14306 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
14307 cgraph_clone_node): Remove master clone handling.
14308 (cgraph_is_master_clone, cgraph_master_clone): Remove.
14309 * cgraph.h (master_clone): Remove.
14310 (cgraph_is_master_clone, cgraph_master_clone): Remove.
14311 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
14312 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
14314 2009-03-28 Jan Hubicka <jh@suse.cz>
14316 * cgraph.c (cgraph_function_body_availability): Functions declared
14317 inline are always safe to assume that it is not going to be replaced.
14319 2009-03-28 Richard Guenther <rguenther@suse.de>
14321 PR tree-optimization/38513
14322 * tree-ssa-pre.c (eliminate): Remove redundant stores.
14323 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
14324 EXC_PTR_EXPR and FILTER_EXPR.
14325 (get_ref_from_reference_ops): Likewise.
14327 2009-03-28 Richard Guenther <rguenther@suse.de>
14329 PR tree-optimization/38968
14330 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
14331 Use FLOOR_MOD_EXPR to compute misalignment.
14333 2009-03-28 Richard Guenther <rguenther@suse.de>
14335 PR tree-optimization/37795
14336 * tree.h (combine_comparisons): Declare.
14337 * fold-const.c (combine_comparisons): Export.
14338 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
14340 (ifcombine_iforif): Use combine_comparisons.
14342 2009-03-28 Jan Hubicka <jh@suse.cz>
14344 * tree-eh.c (inlinable_call_p): New function.
14345 (make_eh_edges): Use it.
14346 (verify_eh_edges): Use it.
14347 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
14348 * except.c (reachable_next_level): Add inlinable_function argument
14349 (sjlj_find_directly_reachable_regions): Update.
14350 (add_reachable_handler): Do not set saw_any_handlers.
14351 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
14352 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
14353 Add new inlinable call parameter.
14354 (can_throw_internal, can_throw_external): Update.
14355 * except.h (can_throw_internal_1, can_throw_external_1,
14356 foreach_reachable_handler): Update declaration.
14358 2009-03-28 Joseph Myers <joseph@codesourcery.com>
14360 * config/arm/t-arm-coff, config/h8300/coff.h,
14361 config/i386/i386-aout.h, config/i386/i386-coff.h,
14362 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
14363 config/pdp11/2bsd.h, config/rs6000/aix41.h,
14364 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
14365 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
14366 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
14367 sys-types.h: Remove.
14368 * Makefile.in: Remove protoize and fixproto support and references
14370 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
14371 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
14373 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
14374 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
14375 unprotoize$(exeext).
14376 (rest.encap): Don't depend on $(STMP_FIXPROTO)
14377 (.PHONY): Don't depend on proto.
14378 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
14379 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
14380 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
14381 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
14382 build/gen-protos.o, build/scan.o, xsys-protos.h,
14383 build/fix-header$(build_exeext), build/fix-header.o,
14384 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
14385 stmp-install-fixproto): Remove.
14386 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
14387 SYSCALLS.c or fixproto files.
14388 (install-common): Don't install protoize.
14389 (install-headers-tar, install-headers-cpio, install-headers-cp):
14390 Don't depend on $(STMP_FIXPROTO).
14391 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
14392 install fixproto files or write out fixproto settings.
14393 (uninstall): Don't uninstall protoize.
14394 * config.gcc (use_fixproto): Remove.
14395 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
14396 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
14397 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
14398 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
14399 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
14400 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
14401 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
14402 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
14403 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
14404 * config/t-vxworks (STMP_FIXPROTO): Remove.
14405 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
14406 STMP_FIXPROTO): Remove.
14407 * config.in, configure: Regenerate.
14408 * crtstuff.c (gid_t, uid_t): Don't undefine.
14409 * doc/install.texi: Change m68k-coff to m68k-elf in example.
14410 (arm-*-coff, arm-*-aout: Remove target entries.
14411 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
14412 Remove mention of AIX 4.1.
14413 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
14414 * doc/invoke.texi (Running Protoize): Remove.
14415 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
14416 (Protoize Caveats): Remove.
14417 * tsystem.h: Update comments on headers assumed to exist.
14419 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
14421 * genautomata.c: Add a new year to the copyright. Add a new
14423 (struct insn_reserv_decl): Add comments for member bypass_list.
14424 (find_bypass): Remove.
14425 (insert_bypass): New.
14426 (process_decls): Use insert_bypass.
14427 (output_internal_insn_latency_func): Output all bypasses with the
14428 same input insn in one switch case.
14430 * rtl.def (define_bypass): Describe bypass choice.
14431 * doc/md.texi (define_bypass): Ditto.
14433 2009-03-27 Richard Guenther <rguenther@suse.de>
14435 * gimplify.c (mark_addressable): Export.
14436 * tree-flow.h (mark_addressable): Declare.
14437 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
14438 * tree-ssa.c (verify_phi_args): Verify that address taken
14439 variables have TREE_ADDRESSABLE set.
14441 2009-03-27 Richard Guenther <rguenther@suse.de>
14443 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
14444 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
14445 Do not mark decls TREE_ADDRESSABLE.
14446 (build_fold_addr_expr): Adjust.
14447 (fold_addr_expr): Remove.
14448 (fold_unary): Use build_fold_addr_expr.
14449 (fold_comparison): Likewise.
14450 (split_address_to_core_and_offset): Likewise.
14451 * coverage.c (tree_coverage_counter_addr): Mark the array decl
14453 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
14454 (gimplify_modify_expr_to_memcpy): Mark source and destination
14456 * omp-low.c (create_omp_child_function): Mark the object decl
14458 (lower_rec_input_clauses): Mark the var we take the address of
14460 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
14462 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
14464 PR middle-end/39315
14465 * cfgexpand.c (expand_one_stack_var_at): Change alignment
14466 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
14468 2009-03-27 Richard Guenther <rguenther@suse.de>
14470 PR tree-optimization/39120
14471 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
14473 (handle_lhs_call): Process return constraints. Add escape
14474 constraints if necessary.
14475 (handle_const_call): Fill out return constraints. Make nested
14476 case more precise. Avoid consttmp if possible.
14477 (handle_pure_call): Fill out return constraints. Avoid
14478 callused if possible.
14479 (find_func_aliases): Simplify call handling.
14481 2009-03-27 Richard Guenther <rguenther@suse.de>
14483 PR tree-optimization/39120
14484 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
14485 as a representative.
14486 (solve_graph): Do propagate CALLUSED.
14487 (handle_pure_call): Use a scalar constraint from CALLUSED for
14489 (find_what_p_points_to): CALLUSED shall not appear in poins-to
14492 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
14495 * c-common.c (handle_aligned_attribute): Properly check alignment
14496 overflow. Use (1U << i) instead of (1 << i).
14498 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
14500 * expr.h (get_mem_align_offset): Updated.
14502 * tree.h (tree_decl_common): Change align to "unsigned int" and
14503 move it before pointer_alias_set.
14505 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
14506 Jakub Jelinek <jakub@redhat.com>
14509 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
14510 gr_register_operand with gr_reg_or_0_operand.
14511 (cmpxchg_rel_di): Likewise.
14512 (sync_lock_test_and_set<mode>): Likewise.
14514 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
14516 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
14517 (true_regnum): Likewise.
14519 * rtlanal.c (subreg_info): Moved to ...
14520 * rtl.h (subreg_info): Here. New.
14521 (subreg_get_info): New.
14523 * rtlanal.c (subreg_get_info): Make it extern.
14525 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
14528 * config/i386/i386.c (ix86_abi): New.
14529 (override_options): Handle -mabi=.
14530 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
14531 (ix86_call_abi_override): Likewise.
14532 (init_cumulative_args): Likewise.
14533 (function_arg_advance): Likewise.
14534 (function_arg_64): Likewise.
14535 (function_arg): Likewise.
14536 (ix86_pass_by_reference): Likewise.
14537 (ix86_function_value_regno_p): Likewise.
14538 (ix86_build_builtin_va_list_abi): Likewise.
14539 (setup_incoming_varargs_64): Likewise.
14540 (is_va_list_char_pointer): Likewise.
14541 (ix86_init_machine_status): Likewise.
14542 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
14543 (ix86_function_type_abi): Return enum calling_abi. Rewrite
14544 for 64bit. Replace DEFAULT_ABI with ix86_abi.
14545 (ix86_function_abi): Make it static and return enum calling_abi.
14546 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
14548 (ix86_fn_abi_va_list): Updated.
14550 * config/i386/i386.h (ix86_abi): New.
14551 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
14552 (CONDITIONAL_REGISTER_USAGE): Likewise.
14553 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
14554 (machine_function): Likewise.
14556 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
14558 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
14559 (STACK_BOUNDARY): Likewise.
14560 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
14562 * config/i386/i386.opt (mabi=): New.
14564 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
14565 return enum calling_abi.
14566 (ix86_function_type_abi): Likewise.
14567 (ix86_function_abi): Removed.
14569 * doc/invoke.texi: Document -mabi= option for x86.
14571 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14573 * builtins.c (real_dconstp): Delete.
14574 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
14576 2009-03-27 Dodji Seketeli <dodji@redhat.com>
14577 Jakub Jelinek <jakub@redhat.com>
14580 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
14581 (gen_subprogram_die): When a function is explicit, generate the
14582 DW_AT_explicit attribute.
14583 * langhooks.h (struct lang_hooks_for_decls): Add
14584 function_decl_explicit_p langhook.
14585 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
14586 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
14588 2009-03-27 Jakub Jelinek <jakub@redhat.com>
14590 * builtins.c (fold_builtin_memory_op): Optimize memmove
14591 into memcpy if we can prove source and destination don't overlap.
14593 * tree-inline.c: Include gt-tree-inline.h.
14594 (clone_fn_id_num): New variable.
14595 (clone_function_name): New function.
14596 (tree_function_versioning): Use it.
14597 * Makefile.in (GTFILES): Add tree-inline.c.
14599 2009-03-27 Mark Mitchell <mark@codesourcery.com>
14601 * BASE-VER: Change to 4.5.0.
14603 2009-03-27 Xinliang David Li <davidxl@google.com>
14605 PR tree-optimization/39557
14606 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
14608 2009-03-27 Xinliang David Li <davidxl@google.com>
14610 PR tree-optimization/39548
14611 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
14614 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
14616 * c-common.c (pointer_int_sum): Use %wd on return from
14619 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
14621 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
14622 on return from tree_low_cst.
14624 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
14627 * ginclude/stdarg.h (va_copy): Define also for
14628 __GXX_EXPERIMENTAL_CXX0X__.
14630 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14633 * builtins.h (c_strlen): Do not warn here.
14634 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
14635 * c-common.c (pointer_int_sum): Take an explicit location.
14636 Warn about offsets out of bounds.
14637 * c-common.h (pointer_int_sum): Adjust declaration.
14639 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14641 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
14644 2009-03-26 Jakub Jelinek <jakub@redhat.com>
14647 * opts.c (warn_if_disallowed_function_p): Don't assume
14648 get_callee_fndecl must return non-NULL.
14650 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
14652 PR rtl-optimization/39522
14653 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
14654 when reg_reloaded_valid is set.
14656 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14658 * config/spu/divv2df3.c: New file.
14659 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
14660 (DPBIT_FUNCS): Filter out _div_df.
14662 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
14664 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
14665 a jump insn, count that jump in the distance to the loop start.
14667 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
14670 * config/sh/sh.c (calc_live_regs): Fix condition for global
14671 registers except PIC_OFFSET_TABLE_REGNUM.
14673 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
14676 * doc/invoke.texi (-mconsole): New.
14678 (-mno-cygwin): New.
14680 (-mnop-fun-dllimport): New.
14684 (sub section "i386 and x86-64 Windows Options"): New.
14686 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
14688 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
14689 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
14691 2009-03-25 Richard Guenther <rguenther@suse.de>
14693 PR middle-end/39497
14694 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
14697 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
14699 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
14700 neither of haifa/selective schedulers are working.
14702 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14704 * doc/invoke.texi (Debugging Options): Fix description of
14705 -fno-merge-debug-strings.
14707 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
14709 * config/cris/libgcc.ver: New version-script.
14710 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
14712 * configure.ac <GAS features, nop mnemonic>: Add pattern
14713 crisv32-*-* for "nop".
14714 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
14715 * configure: Regenerate.
14717 2009-03-24 Ira Rosen <irar@il.ibm.com>
14719 PR tree-optimization/39529
14720 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
14721 mark_sym_for_renaming for the tag copied to the new vector
14724 2009-03-24 Arthur Loiret <aloiret@debian.org>
14726 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
14727 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
14728 EXTRA_SPEC_FUNCTIONS.
14729 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
14730 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
14731 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
14732 -march and -mtune options.
14734 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
14736 * config/m68k/t-rtems: Add m5329 multilib.
14738 2009-03-24 Dodji Seketeli <dodji@redhat.com>
14739 Jakub Jelinek <jakub@redhat.com>
14742 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
14745 2009-03-23 Jakub Jelinek <jakub@redhat.com>
14748 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
14749 instead of c_parser_expression_conv, if original_code isn't one of the
14750 4 allowed comparison codes, fail.
14752 2009-03-23 Richard Guenther <rguenther@suse.de>
14754 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
14755 * tree.h (struct tree_type): Likewise.
14756 * reload.h (struct insn_chain): Likewise.
14757 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
14758 * function.h (struct function): Likewise.
14759 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
14761 2009-03-23 Jakub Jelinek <jakub@redhat.com>
14763 PR tree-optimization/39516
14764 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
14766 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
14768 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
14769 should be set true if BITS_PER_WORD of target is bigger than 32
14771 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
14773 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
14774 Translate -B-options to -rpath-link. Correct existing
14775 rpath-link and conditionalize on !nostdlib.
14777 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14779 * doc/extend.texi (Function Attributes, Variable Attributes):
14781 * doc/invoke.texi (Debugging Options, Optimize Options)
14782 (i386 and x86-64 Options, MCore Options): Likewise.
14784 2009-03-20 Jakub Jelinek <jakub@redhat.com>
14787 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
14788 it for block local namespace aliases.
14789 (gen_decl_die): Pass context_die to gen_namespace_die.
14791 2009-03-19 Jakub Jelinek <jakub@redhat.com>
14794 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
14795 minimum or maximum value.
14797 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
14799 * reginfo.c (globalize_reg): Recompute derived reg sets.
14801 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
14804 * libgcc2.c (mprotect): Do not use signed arguments for
14805 VirtualProtect, use DWORD arguments. Also fix the 'may
14806 be used uninitialized' warning for the np variable.
14808 2009-03-19 Jakub Jelinek <jakub@redhat.com>
14811 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
14812 functions using regparm calling conventions when not optimizing.
14813 (ix86_function_sseregparm): Similarly for sseregparm calling
14816 2009-03-19 Li Feng <nemokingdom@gmail.com>
14818 PR middle-end/39500
14819 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
14820 dependence if the first conflict is after niter iterations.
14822 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
14824 PR middle-end/38609
14825 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
14826 functions with dynamic stack-pointer adjustments.
14828 2009-03-19 Ben Elliston <bje@au.ibm.com>
14830 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
14831 option; change to -msdata=data.
14833 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14835 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
14838 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
14841 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
14843 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
14845 * doc/invoke.texi (Code Gen Options): Expand discussion of
14848 2009-03-18 Jakub Jelinek <jakub@redhat.com>
14850 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
14851 * matrix-reorg.c (struct matrix_info): Likewise.
14852 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
14853 * rtl.h (struct mem_attrs): Likewise.
14854 * df.h (struct df): Likewise.
14855 * tree-data-ref.h (struct data_dependence_relation): Likewise.
14856 * ira-int.h (struct ira_allocno): Likewise.
14857 * df-scan.c (struct df_collection_rec): Likewise.
14858 * ira.c (struct equivalence): Likewise.
14859 * function.c (struct temp_slot): Likewise.
14860 * cfgloop.h (struct loop): Likewise.
14863 * function.c (use_register_for_decl): When not optimizing, disregard
14864 register keyword for variables with types containing methods.
14866 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
14868 PR middle-end/39447
14869 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
14870 (is_simple_operand): Call contains_component_ref_p before calling data
14871 reference analysis that would fail on COMPONENT_REFs.
14873 * tree-vrp.c (search_for_addr_array): Fix formatting.
14875 2009-03-18 Richard Guenther <rguenther@suse.de>
14877 * tree-vect-transform.c (vect_loop_versioning): Fold the
14878 generated comparisons.
14879 * tree-vectorizer.c (set_prologue_iterations): Likewise.
14880 (slpeel_tree_peel_loop_to_edge): Likewise.
14882 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14884 PR middle-end/37805
14885 * opts.c (print_specific_help): In addition to `undocumented',
14886 accept `separate' and `joined' flags if passed alone. Describe
14887 output by the first matched one of those.
14888 (common_handle_option): Skip over empty strings.
14889 * gcc.c (display_help): Fix help string for `--help='.
14890 * doc/invoke.texi (Option Summary, Overall Options): With
14891 `--help=', classes and qualifiers can both be repeated, but
14892 only the latter can be negated. One should not pass only
14893 negated qualifiers. Fix markup and examples.
14896 2008-10-14 Jakub Jelinek <jakub@redhat.com>
14897 PR middle-end/37805
14898 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
14899 and -fhelp=separate.
14901 2009-03-17 Jing Yu <jingyu@google.com>
14903 PR middle-end/39378
14904 * function.h (struct rtl_data): Move is_thunk from here...
14905 (struct function): ...to here.
14906 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
14907 * varasm.c (assemble_start_function): Change is_thunk from crtl to
14909 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
14911 (alpha_does_function_need_gp, alpha_start_function): Likewise.
14912 (alpha_output_function_end_prologue): Likewise.
14913 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
14914 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
14915 (rs6000_output_function_epilogue): Likewise.
14916 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
14918 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
14921 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
14922 from different units in a single alternative.
14923 (*truncdfsf_i387): Ditto.
14924 (*truncxfsf2_mixed): Ditto.
14925 (*truncxfdf2_mixed): Ditto.
14927 2009-03-17 Jakub Jelinek <jakub@redhat.com>
14929 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
14930 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
14933 * tree-ssa-live.c (remove_unused_locals): Don't remove local
14934 unused non-artificial variables when not optimizing.
14937 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
14938 DW_TAG_imported_module even if decl is IMPORTED_DECL with
14939 NAMESPACE_DECL in its DECL_INITIAL.
14941 PR middle-end/39443
14942 * optabs.c (set_user_assembler_libfunc): New function.
14943 * expr.h (set_user_assembler_libfunc): New prototype.
14944 * c-common.c: Include libfuncs.h.
14945 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
14946 for memcmp, memset, memcpy, memmove and abort.
14947 * Makefile.in (c-common.o): Depend on libfuncs.h.
14950 * dwarf2out.c (gen_inlined_enumeration_type_die,
14951 gen_inlined_structure_type_die, gen_inlined_union_type_die,
14952 gen_tagged_type_instantiation_die): Removed.
14953 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
14956 2009-03-17 Janis Johnson <janis187@us.ibm.com>
14959 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
14961 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
14962 (check-parallel-%): Ditto.
14963 (check-consistency): Ditto.
14965 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
14967 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
14968 local variable rhs by NULL_TREE.
14970 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
14973 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
14975 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
14978 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
14980 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
14983 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
14984 for ms->sysv ABI calls only in 64bit mode.
14986 * config/i386/i386.md (untyped_call): Support 32bit.
14988 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
14990 * doc/extend.texi: Replace x86_65 with x86_64.
14992 2009-03-16 Jakub Jelinek <jakub@redhat.com>
14994 PR tree-optimization/39455
14995 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
14996 mismatches for POINTER_TYPE_P (type).
14997 (number_of_iterations_le): Likewise.
14999 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
15001 * config/picochip/picochip.c: Removed profiling support.
15002 * config/picochip/picochip.md: Removed profiling instruction.
15003 * config/picochip/picochip.h: Removed profiling builtin.
15005 2009-03-16 Joseph Myers <joseph@codesourcery.com>
15007 * doc/install.texi (--with-host-libstdcxx): Document.
15009 2009-03-14 Anatoly Sokolov <aesok@post.ru>
15012 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
15013 generate a warning if the function name does not begin with
15014 "__vector" and the function has either the 'signal' or 'interrupt'
15015 attribute, from here to ...
15016 (avr_declare_function_name): ...here. New function.
15017 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
15018 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
15020 2009-03-14 Jakub Jelinek <jakub@redhat.com>
15023 * cse.c (fold_rtx): Don't modify original const_arg1 when
15024 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
15025 separate variable instead.
15026 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
15027 from out of range shift counts.
15028 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
15030 2009-03-13 Catherine Moore <clm@codesourcery.com>
15032 * config/i386/x-mingw32 (host-mingw32.o): Replace
15033 diagnostic.h with $(DIAGNOSTIC_H).
15035 2009-03-12 Jakub Jelinek <jakub@redhat.com>
15038 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
15040 * config/i386/sync.md (sync_compare_and_swap<mode>,
15041 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
15042 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
15044 (sync_double_compare_and_swapdi_pic,
15045 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
15046 cmpxchg8b_pic_memory_operand instead of just memory_operand.
15048 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
15051 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
15053 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
15056 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
15057 (avx_addsubv4df3): Likewise.
15058 (*avx_addsubv4sf3): Likewise.
15059 (sse3_addsubv4sf3): Likewise.
15061 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
15064 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
15066 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
15069 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
15070 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
15071 registers for allocnos created from user-defined variables.
15073 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15076 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
15077 of non-integer mode as well.
15079 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
15081 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
15082 for functions for which the parameter types are unknown.
15084 2009-03-11 Jakub Jelinek <jakub@redhat.com>
15087 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
15088 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
15089 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
15090 * config/i386/i386.c (ix86_local_alignment): For
15091 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
15092 long long variables on the stack to avoid dynamic realignment.
15093 Allow the first argument to be a decl rather than type.
15094 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
15096 2009-03-11 Nick Clifton <nickc@redhat.com>
15099 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
15101 Add description to mno-lsim option.
15102 * config/mcore/mcore.h: Remove comment about deprecated m4align
15104 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
15105 * doc/invoke.texi: Add description of mno-lsim and
15106 mstack-increment options.
15108 * config/fr30/fr30.opt: Document the -mno-lsim option.
15109 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
15110 and -mno-lsim options.
15112 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15114 * fold-const.c (fold_comparison): Only call fold_inf_compare
15115 if the mode supports infinities.
15117 2009-03-11 Jason Merrill <jason@redhat.com>
15120 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
15121 end already did. Notice GIMPLE_CALL modifications of the result.
15122 Don't copy debug information from an ignored decl or a decl from
15125 2009-03-10 Richard Guenther <rguenther@suse.de>
15126 Nathan Froyd <froydnj@codesourcery.com>
15128 PR middle-end/37850
15129 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
15130 (__divMODE3): Likewise.
15132 2009-03-09 Jakub Jelinek <jakub@redhat.com>
15134 PR tree-optimization/39394
15135 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
15136 DECL_SIZE_UNIT of variable length FIELD_DECLs.
15138 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15140 * recog.c (verfiy_changes): Disallow renaming of hard regs in
15141 inline asms for register asm ("") declarations.
15143 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
15145 * fold-const.c (fold_unary): Fix comment.
15147 2009-03-07 Jan Hubicka <jh@suse.cz>
15150 * tree-inline.c (setup_one_parameter): Do replacement of const
15151 argument by constant in SSA form.
15153 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15155 PR middle-end/38028
15156 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
15157 determine alignment passed to assign_stack_local.
15158 (assign_parms_unsplit_complex): Likewise.
15159 * except.c (sjlj_build_landing_pads): Likewise.
15161 2009-03-06 Jakub Jelinek <jakub@redhat.com>
15163 PR middle-end/39360
15164 * tree-flow.h (add_referenced_var): Return bool instead of void.
15165 * tree-dfa.c (add_referenced_var): Return result of
15166 referenced_var_check_and_insert call.
15167 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
15168 of referenced_var_check_and_insert.
15171 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
15172 (gen_variable_die): Emit DW_AT_location on abstract static variable's
15173 DIE, don't emit it if abstract origin already has it.
15174 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
15175 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
15177 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15179 * genpreds.c (needs_variable): Fix parentheses at variable name
15181 (write_tm_constrs_h): Indent generated code.
15183 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15185 * doc/extend.texi (Function Attributes): Add documentation
15186 for isr attributes.
15188 2009-03-06 Jakub Jelinek <jakub@redhat.com>
15191 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
15192 take locus from its DECL_SOURCE_LOCATION instead of input_location.
15194 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
15196 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
15199 2009-03-05 Jakub Jelinek <jakub@redhat.com>
15202 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
15203 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
15205 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
15207 * config/i386/i386.md (R8_REG, R9_REG): New constants.
15208 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
15209 constants instead of magic numbers.
15210 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
15212 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
15213 (x86_64_ms_abi_int_parameter_registers): Ditto.
15214 (x86_64_int_return_registers): Ditto.
15215 (ix86_maybe_switch_abi): Ditto.
15216 (ix86_expand_call): Ditto for clobbered_registers array.
15217 (ix86_hard_regno_mode_ok): Ditto.
15218 (x86_extended_QIreg_mentioned_p): Ditto.
15220 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
15222 PR tree-optimization/39349
15223 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
15225 * combine.c (gen_lowpart_for_combine): Use omode when generating
15228 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
15230 PR rtl-optimization/39235
15231 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
15233 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
15235 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
15237 2009-03-04 Richard Guenther <rguenther@suse.de>
15239 PR tree-optimization/39362
15240 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
15241 that occur in abnormal PHIs should be varying.
15243 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
15245 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
15247 (simple_iv): Take loop as an argument instead of statement.
15248 * tree-scalar-evolution.h (simple_iv): Declaration changed.
15249 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
15251 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
15253 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
15254 * matrix-reorg.c (analyze_transpose): Ditto.
15255 * tree-data-ref.c (dr_analyze_innermost): Ditto.
15256 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
15257 * tree-predcom.c (ref_at_iteration): Ditto.
15258 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
15260 2009-03-04 Richard Guenther <rguenther@suse.de>
15262 PR tree-optimization/39358
15263 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
15264 escaped_id and callused_id.
15265 (solve_graph): Likewise.
15267 2009-03-04 Richard Guenther <rguenther@suse.de>
15269 PR tree-optimization/39339
15270 * tree-sra.c (try_instantiate_multiple_fields): Make it
15271 no longer ICE on the above.
15273 2009-03-03 Joseph Myers <joseph@codesourcery.com>
15275 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
15276 that fits within Pmode.
15278 2009-03-03 Steve Ellcey <sje@cup.hp.com>
15280 PR middle-end/10109
15281 * tm.texi (LIBCALL_VALUE): Update description.
15283 2009-03-03 Steve Ellcey <sje@cup.hp.com>
15285 PR middle-end/34443
15286 * doc/extend.texi (section): Update description.
15288 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
15290 PR middle-end/39345
15291 * tree-inline.c (remapped_type): New.
15292 (can_be_nonlocal): Call remapped_type instead of remap_type.
15294 2009-03-03 Jakub Jelinek <jakub@redhat.com>
15297 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
15298 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
15300 2009-03-03 Richard Guenther <rguenther@suse.de>
15302 PR middle-end/39272
15303 * tree.c (tree_nonartificial_location): New function.
15304 * tree.h (tree_nonartificial_location): Declare.
15305 * builtins.c (expand_builtin_memory_chk): Provide location
15306 of the call location for artificial function pieces.
15307 (maybe_emit_chk_warning): Likewise.
15308 (maybe_emit_sprintf_chk_warning): Likewise.
15309 (maybe_emit_free_warning): Likewise.
15310 * expr.c (expand_expr_real_1): Likewise.
15312 2009-03-03 Jakub Jelinek <jakub@redhat.com>
15314 PR tree-optimization/39343
15315 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
15316 COMPONENT_REF t has ARRAY_TYPE.
15318 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
15320 PR middle-end/39335
15321 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
15322 when the type precision of the induction variable should be
15323 larger than the type precision of nit.
15324 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
15325 * graphite.c (graphite_loop_normal_form): Same.
15326 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
15328 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
15330 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
15331 (*call_1_rex64_ms_sysv): Use named constants instead of magic
15332 numbers to describe clobbered registers.
15333 (*call_value_0_rex64_ms_sysv): Ditto.
15334 * config/i386/mmx.md (mmx_emms): Ditto.
15335 (mmx_femms): Ditto.
15337 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
15339 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
15342 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15344 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
15345 (spu_section_type_flags): New function.
15347 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
15349 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
15350 reg_class_contents of FLOAT_REGS into a temporary.
15352 2009-03-02 Richard Guenther <rguenther@suse.de>
15353 Ira Rosen <irar@il.ibm.com>
15355 PR tree-optimization/39318
15356 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
15357 information to the vectorized statement.
15359 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
15361 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
15362 variable. Use defined names instead of magic constants for REX SSE
15365 2009-03-01 Richard Guenther <rguenther@suse.de>
15367 PR tree-optimization/39331
15368 * omp-low.c (lower_send_shared_vars): Do not receive new
15369 values for the reference of DECL_BY_REFERENCE parms or results.
15371 2009-03-01 Jan Hubicka <jh@suse.cz>
15374 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
15375 BLOCK_NONLOCALIZED_VAR): New macros.
15376 (tree_block): Add nonlocalized_vars.
15377 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
15378 gen_decl_die): Add origin argument. Allow generation of die with
15379 origin at hand only.
15380 (gen_member_die, gen_type_die_with_usage, force_decl_die,
15381 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
15383 (gen_block_die): Fix checking for unused blocks.
15384 (process_scope_var): Break out from .... ; work with origins only.
15385 (decls_for_scope) ... here; process nonlocalized list.
15386 (dwarf2out_ignore_block): Look for nonlocalized vars.
15387 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
15389 (dump_scope_block): Dump them.
15390 * tree-inline.c (remap_decls): Handle nonlocalized vars.
15391 (remap_block): Likewise.
15392 (can_be_nonlocal): New predicate.
15393 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
15395 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15397 * configure: Regenerate.
15399 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15401 * optc-gen.awk: No need to duplicate option flags twice.
15402 Reuse help texts for duplicate options which do not have any.
15404 * gcc.c (display_help): Document --version.
15406 * gcc.c (main): If print_help_list and verbose_flag, ensure
15407 driver output comes before subprocess output.
15409 * optc-gen.awk: Assign all remaining fields to help string,
15410 space-separated, for multi-line help in *.opt.
15412 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
15413 -Wno-pedantic-ms-format is for MinGW targets only.
15415 * doc/options.texi (Option file format): Fix bad indentation,
15416 restoring dropped sentence.
15418 2009-02-28 Jan Hubicka <jh@suse.cz>
15420 * tree-inline.c (tree_function_versioning): Output debug info.
15422 2009-02-28 Jan Hubicka <jh@suse.cz>
15425 * tree-inline.c (setup_one_parameter): Do not copy propagate
15426 arguments when not optimizing.
15428 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
15431 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
15432 (avx_addsubv4df3): Likewise.
15433 (*avx_addsubv4sf3): Likewise.
15434 (sse3_addsubv4sf3): Likewise.
15435 (*avx_addsubv2df3): Likewise.
15436 (sse3_addsubv2df3): Likewise.
15437 (avx_unpckhps256): Correct item selectors.
15438 (avx_unpcklps256): Likewise.
15439 (avx_unpckhpd256): Likewise.
15440 (avx_unpcklpd256): Likewise.
15442 2009-02-28 Jan Hubicka <jh@suse.cz>
15444 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
15446 (copy_arguments_for_versioning): If var is declared don't declare it.
15447 (tree_function_versioning): First setup substitutions and then copy
15450 2009-02-27 Jan Hubicka <jh@suse.cz>
15453 * cgraph.h (varpool_output_debug_info): Remove.
15454 * cgraphunit.c (varpool_output_debug_info): Remove.
15455 * dwarf2out.c (deferred_locations_struct): New struct
15456 (deferred_locations): New type.
15457 (deferred_locations_list): New static var.
15458 (deffer_location): New function.
15459 (gen_variable_die): Use it.
15460 (decls_for_scope): Output info on local static vars.
15461 (dwarf2out_finish): Process deferred locations.
15462 * varpool.c (varpool_output_debug_info): Remove.
15464 2009-02-27 Jan Hubicka <jh@suse.cz>
15467 * tree.h (TREE_PROTECTED): Fix comment.
15468 (BLOCK_HANDLER_BLOCK): Remove.
15469 (struct tree_block): Remove handler_block add body_block.
15470 (inlined_function_outer_scope_p): New.
15471 (is_body_block): Remove.
15472 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
15473 * dwarf2out.c (is_inlined_entry_point): Remove.
15474 (add_high_low_attributes): Use inlined_function_outer_scope_p.
15475 (gen_block_die): Use is_inlined_entry_point check. Remove body block
15477 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
15478 * gimplify.c (gimplify_expr): Gimplify body blocks.
15479 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
15480 block with multiple subblocks.
15481 (dump_scope_block): Prettier output; dump more flags and info.
15482 (dump_scope_blocks): New.
15483 (remove_unused_locals): Use dump_scope_blocks.
15484 * tree-flow.h (dump_scope_blocks): Declare.
15485 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
15486 * stmt.c (is_body_block): Remove.
15487 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
15488 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
15490 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
15492 PR middle-end/39308
15493 * graphite.c (graphite_loop_normal_form): Do not call
15494 number_of_iterations_exit from a gcc_assert.
15496 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15498 * config/s390/s390.c (s390_swap_cmp): Look for conditional
15499 jumps if COND is NULL.
15500 (find_cond_jump): New function.
15501 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
15502 * config/s390/s390.md: Remove z10_cobra attribute value.
15504 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
15506 * config/alpha/alpha.h (alpha_expand_mov): Return false if
15507 force_const_mem returns NULL_RTX.
15509 2009-02-26 Jan Hubicka <jh@suse.cz>
15512 * cgraph.h (varpool_output_debug_info): Remove.
15513 * cgraphunit.c (varpool_output_debug_info): Remove.
15514 * dwarf2out.c (deferred_locations_struct): New struct
15515 (deferred_locations): New type.
15516 (deferred_locations_list): New static var.
15517 (deffer_location): New function.
15518 (gen_variable_die): Use it.
15519 (decls_for_scope): Output info on local static vars.
15520 (dwarf2out_finish): Process deferred locations.
15521 * varpool.c (varpool_output_debug_info): Remove.
15523 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
15525 PR rtl-optimization/39241
15526 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
15527 to subreg_offset_representable_p.
15529 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
15531 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
15532 execute function prototype. Get f and nregs from max_reg_num
15533 and get_insns. Remove the first backward pass as it's dead,
15534 guard the forward pass by flag_expensive_optimizations.
15535 (rest_of_handle_regmove): Delete.
15536 (pass_regmove): Replace it with regmove_optimize.
15538 2009-02-25 Martin Jambor <mjambor@suse.cz>
15540 PR tree-optimization/39259
15541 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
15542 calls_alloca function flags.
15543 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
15544 calls are detected.
15546 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
15548 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
15549 flags_set_1_rtx, flags_set_1_set): Delete.
15550 (regmove_optimize): Do not call mark_flags_life_zones.
15552 2009-02-24 Julian Brown <julian@codesourcery.com>
15555 * config/arm/arm.c (require_pic_register): Only set
15556 cfun->machine->pic_reg once per function.
15558 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
15560 * doc/invoke.texi (Link Options): Document an easier way to pass
15561 options that take arguments to the GNU linker using -Xlinker and -Wl.
15563 2009-02-24 Steve Ellcey <sje@cup.hp.com>
15566 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
15568 2009-02-24 Richard Guenther <rguenther@suse.de>
15571 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
15573 2009-02-24 Richard Guenther <rguenther@suse.de>
15574 Zdenek Dvorak <ook@ucw.cz>
15576 PR tree-optimization/39233
15577 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
15578 from converting them to a generic type.
15580 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
15582 PR tree-optimization/39260
15583 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
15584 contains a condition with a real type.
15585 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
15587 2009-02-23 Jason Merrill <jason@redhat.com>
15590 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
15591 narrowing_initializer_constant_valid_p.
15592 (narrowing_initializer_constant_valid_p): Don't return
15593 null_pointer_node for adding a pointer to itself.
15595 2009-02-23 Jan Hubicka <jh@suse.cz>
15598 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
15601 2009-02-23 Jan Hubicka <jh@suse.cz>
15603 PR tree-optimization/37709
15604 * tree.c (block_ultimate_origin): Move here from dwarf2out.
15605 * tree.h (block_ultimate_origin): Declare.
15606 * dwarf2out.c (block_ultimate_origin): Move to tree.c
15607 * tree-ssa-live.c (remove_unused_scope_block_p):
15608 Eliminate blocks containig no instructions nor live variables nor
15610 (dump_scope_block): New function.
15611 (remove_unused_locals): Enable removal of dead blocks by default;
15612 enable dumping at TDF_DETAILS.
15614 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
15616 * config/i386/i386.c (classify_argument): Don't allow COImode
15618 (function_arg_advance_32): Don't allow OImode.
15619 (function_arg_32): Likewise.
15620 (function_value_32): Likewise.
15621 (return_in_memory_32): Likewise.
15622 (function_arg_64): Remove OImode comment.
15624 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
15627 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15628 ix86_expand_vector_set for V4DImode in 64bit mode only.
15629 (ix86_expand_vector_init_one_var): Likewise.
15631 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
15633 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
15635 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
15638 * loop-iv.c: Revert last change.
15639 * emit-rtl.c: Likewise.
15641 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
15644 * config/i386/i386.c (type_natural_mode): Remove an extra
15645 space in the warning message.
15646 (function_value_32): Handle 32-byte vector modes.
15647 (return_in_memory_32): Likewise.
15649 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
15651 * loop-iv.c (truncate_value): New function.
15652 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
15654 (lowpart_subreg): Move to...
15655 * emit-rtl.c: ...here.
15657 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
15659 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
15660 accidental and undocumented change at revision 140860.
15662 2009-02-21 Joseph Myers <joseph@codesourcery.com>
15664 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
15665 take gimple_seq * arguments.
15666 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
15667 types_compatible_p langhook.
15669 2009-02-20 Mark Mitchell <mark@codesourcery.com>
15670 Joseph Myers <joseph@codesourcery.com>
15672 * config/arm/arm.c (arm_builtin_va_list): New function.
15673 (arm_expand_builtin_va_start): Likewise.
15674 (arm_gimplify_va_arg_expr): Likewise.
15675 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
15676 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
15677 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
15678 (va_list_type): New variable.
15679 (arm_mangle_type): Mangle va_list_type appropriately.
15681 2009-02-20 Jakub Jelinek <jakub@redhat.com>
15683 PR middle-end/39157
15684 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
15685 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
15686 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
15687 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
15688 parameter to 1000 for -O1 by default.
15689 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
15691 * loop-invariant.c: Include params.h.
15692 (move_loop_invariants): Don't call move_single_loop_invariants on
15695 2009-02-20 Jaka Mocnik <jaka@xlab.si>
15697 * calls.c (emit_library_call_value_1): Use slot_offset instead of
15698 offset when calculating bounds for indexing stack_usage_map. Fixes
15699 a buffer overflow with certain target setups.
15701 2009-02-20 Jakub Jelinek <jakub@redhat.com>
15704 * calls.c (expand_call): Clear try_tail_call if caller and callee
15705 disagree in promotion of function return value.
15707 2009-02-19 Jakub Jelinek <jakub@redhat.com>
15710 * c-common.c (c_determine_visibility): If visibility changed and
15711 DECL_RTL has been already set, call make_decl_rtl to update symbol
15714 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
15717 * varasm.c (assemble_variable): Don't check DECL_NAME when
15718 globalizing a variable.
15720 2009-02-19 Joseph Myers <joseph@codesourcery.com>
15723 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
15724 expression before any __builtin_trap call.
15725 * c-typeck.c (build_function_call): Convert and check function
15726 arguments before generating a call to a trap. Evaluate the
15727 function arguments before the trap.
15729 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
15732 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
15733 (UNSPEC_FXAM_MEM): New unspec.
15734 (fxam<mode>2_i387_with_temp): New insn and split pattern.
15735 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
15736 memory using fxam<mode>2_i387_with_temp to remove excess precision.
15738 2009-02-19 Richard Guenther <rguenther@suse.de>
15740 PR tree-optimization/39207
15741 PR tree-optimization/39074
15742 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
15743 storedanything_tree): New.
15744 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
15745 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
15746 (build_succ_graph): Add edges from STOREDANYTHING to all
15748 (init_base_vars): Initialize STOREDANYTHING.
15749 (compute_points_to_sets): Free substitution info after
15750 building the succ graph.
15751 (ipa_pta_execute): Likewise.
15753 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
15755 (do_ds_constraint): Do not add to special var or non-pointer
15757 (type_could_have_pointers): Split out from ...
15758 (could_have_pointers): ... here. For arrays use the element type.
15759 (create_variable_info_for): Initialize may_have_pointers.
15760 (new_var_info): Likewise.
15761 (handle_lhs_call): Make the HEAP variable unknown-sized.
15762 (intra_create_variable_infos): Use a type with pointers for
15763 PARM_NOALIAS, make it unknown-sized.
15765 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
15768 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
15770 2009-02-18 Jason Merrill <jason@redhat.com>
15773 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
15774 value if DECL_EXTERNAL.
15775 * tree-sra.c (sra_walk_gimple_assign): Likewise.
15776 * target.h (gcc_target::binds_local_p): Clarify "module".
15777 * tree.h (TREE_PUBLIC): Clarify "module".
15779 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
15782 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
15783 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
15785 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
15788 * c.opt (Wabi): Support C and ObjC.
15791 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
15793 * config/i386/i386.c (classify_argument): Warn once about the ABI
15794 change when passing union with long double.
15796 * doc/invoke.texi: Update -Wabi for warning psABI changes.
15798 2009-02-18 Joseph Myers <joseph@codesourcery.com>
15801 * c-parser.c (c_parser_compound_statement): Always enter and leave
15804 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15807 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
15809 2009-02-18 Jakub Jelinek <jakub@redhat.com>
15811 PR tree-optimization/36922
15812 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
15813 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
15816 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
15818 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
15821 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
15823 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
15825 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
15827 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
15830 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
15831 Richard Sandiford <rdsandiford@googlemail.com>
15833 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
15834 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
15835 (loongson_biadd): ...this.
15837 2009-02-17 Richard Guenther <rguenther@suse.de>
15839 PR tree-optimization/39202
15840 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
15841 a var make sure to follow existing collapses.
15843 2009-02-17 Richard Guenther <rguenther@suse.de>
15845 PR middle-end/39214
15846 * langhooks.c (lhd_print_error_function): Check for NULL block.
15848 2009-02-17 Richard Guenther <rguenther@suse.de>
15850 PR tree-optimization/39204
15851 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
15854 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
15856 * config/soft-fp/double.h: Update from glibc CVS.
15858 2009-02-17 Richard Guenther <rguenther@suse.de>
15860 PR tree-optimization/39207
15861 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
15862 strict-aliasing warnings for pointers pointing to NULL.
15864 2009-02-16 Joseph Myers <joseph@codesourcery.com>
15867 * c-parser.c (c_parser_braced_init): Call pop_init_level when
15868 skipping until next close brace.
15870 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
15873 * config/i386/i386.c (ix86_expand_push): Set memory alignment
15874 to function argument boundary.
15876 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
15878 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
15879 in the lea_add. Reload eventually constraints it properly.
15880 * config/picochip/constraints.md: Remove the target constraint
15881 "b", since it is not needed anymore.
15883 2009-02-16 Jakub Jelinek <jakub@redhat.com>
15885 * gthr-dce.h: Uglify function parameter and local variable names.
15886 * gthr-gnat.h: Likewise.
15887 * gthr-mipssde.h: Likewise.
15888 * gthr-nks.h: Likewise.
15889 * gthr-posix95.h: Likewise.
15890 * gthr-posix.h: Likewise.
15891 * gthr-rtems.h: Likewise.
15892 * gthr-single.h: Likewise.
15893 * gthr-solaris.h: Likewise.
15894 * gthr-tpf.h: Likewise.
15895 * gthr-vxworks.h: Likewise.
15896 * gthr-win32.h: Likewise.
15898 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
15901 * config/i386/i386.md: Restrict the new peephole2 to move
15902 between MMX/SSE registers.
15904 2009-02-15 Richard Guenther <rguenther@suse.de>
15907 2009-02-13 Richard Guenther <rguenther@suse.de>
15909 * configure.ac: Enable LFS.
15910 * configure: Re-generate.
15911 * config.in: Likewise.
15913 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15915 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
15916 spu_srqwbyte, spu_srqwbytebc): Define.
15917 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
15918 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
15919 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
15920 "shrqby_<mode>"): New insn-and-split patterns.
15921 * config/spu/spu.c (expand_builtin_args): Determine and return
15922 number of operands using spu_builtin_description data.
15923 (spu_expand_builtin_1): Use it.
15925 2009-02-13 Steve Ellcey <sje@cup.hp.com>
15928 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
15931 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
15934 * config/i386/i386.c (override_options): Correct warning
15935 messages for -malign-loops, -malign-jumps and -malign-functions.
15937 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
15940 * config/i386/i386.md: Restrict the new peephole2 to move
15941 between the general purpose registers.
15943 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
15946 * config/i386/i386.c (type_natural_mode): Add a new argument.
15947 Return the original mode and warn ABI change if vector size is 32byte.
15948 (function_arg_advance): Updated.
15949 (function_arg): Likewise.
15950 (ix86_function_value): Likewise.
15951 (ix86_return_in_memory): Likewise.
15952 (ix86_sol10_return_in_memory): Likewise.
15953 (ix86_gimplify_va_arg): Likewise.
15954 (function_arg_32): Don't warn ABX ABI change here.
15955 (function_arg_64): Likewise.
15957 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
15959 * loop-iv.c (implies_p): In the final case, test that operands 0
15960 of the two comparisons match.
15962 * config/bfin/bfin.c (find_prev_insn_start): New function.
15963 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
15964 (find_next_insn_start): Move.
15966 2009-02-13 Richard Guenther <rguenther@suse.de>
15968 * configure.ac: Enable LFS.
15969 * configure: Re-generate.
15970 * config.in: Likewise.
15972 2009-02-13 Joseph Myers <joseph@codesourcery.com>
15975 * c-parser.c (c_parser_parms_list_declarator): Discard pending
15976 sizes on syntax error after some arguments have been parsed.
15978 2009-02-12 Jakub Jelinek <jakub@redhat.com>
15980 * doc/invoke.texi (-fira): Remove.
15982 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
15984 * caller-save.c: Replace regclass.c with reginfo.c in comments.
15985 * recog.c: Likewise.
15988 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
15990 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
15991 (umul_ppmm): Likewise.
15992 (count_leading_zeros): Likewise.
15993 (count_trailing_zeros): Likewise.
15994 (UMUL_TIME): Likewise.
15996 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
15998 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
15999 soft-fp/t-softfp to tmake_file.
16001 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
16002 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
16003 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
16004 IA64_BUILTIN_INFQ]: New.
16005 (ia64_init_builtins): Initialize __builtin_infq,
16006 __builtin_fabsq and __builtin_copysignq if not HPUX.
16007 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
16008 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
16010 * config/ia64/lib1funcs.asm (__divtf3): Define only if
16012 (__fixtfti): Likewise.
16013 (__fixunstfti): Likewise.
16014 (__floattitf): Likewise.
16016 * config/ia64/libgcc-glibc.ver: New.
16017 * config/ia64/t-fprules-softfp: Likewise.
16018 * config/ia64/sfp-machine.h: Likewise.
16020 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
16021 (LIBGCC2_TF_CEXT): Likewise.
16022 (TF_SIZE): Likewise.
16023 (TARGET_INIT_LIBFUNCS): Likewise.
16025 * config/ia64/t-glibc (SHLINB_MAPFILES):
16026 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
16028 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
16030 * config/i386/i386.c (construct_container): Rewrite processing
16031 BLKmode with X86_64_SSE_CLASS.
16033 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
16036 * config/i386/i386.md: Replace simplify_replace_rtx with
16037 replace_rtx in the new peephole2.
16039 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
16041 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
16042 loop unrolling do not happen at -O2.
16044 2009-02-12 Michael Matz <matz@suse.de>
16046 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
16048 2009-02-12 Jakub Jelinek <jakub@redhat.com>
16050 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
16053 2009-02-12 Ben Elliston <bje@au.ibm.com>
16055 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
16056 patterns when updating the back chain. Missed in the 2009-02-10
16059 2009-02-11 Janis Johnson <janis187@us.ibm.com>
16061 * doc/extend.texi (Decimal Floating Types): Update identifier of
16062 draft TR and list of missing support.
16064 2009-02-11 Jakub Jelinek <jakub@redhat.com>
16066 PR middle-end/39154
16067 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
16068 bit to variable length decl's flags, add it also to its
16069 pointer replacement variable.
16071 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
16072 Jakub Jelinek <jakub@redhat.com>
16075 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
16076 (memory_blockage): New expander.
16077 (*memory_blockage): New insn pattern.
16078 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
16079 instead of general blockage at the end of function prologue when
16080 frame pointer is used to access red zone area. Do not emit blockage
16081 when profiling, it is emitted in generic code.
16082 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
16083 function epilogue when frame pointer is used to access red zone area.
16085 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
16088 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
16089 by arithmetic with memory operands.
16090 * config/i386/predicates.md (commutative_operator): New.
16092 2009-02-10 Janis Johnson <janis187@us.ibm.com>
16094 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
16097 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
16099 * alias.h (record_alias_subset): Declare.
16100 * alias.c (record_alias_subset): Make global.
16102 2009-02-10 Nick Clifton <nickc@redhat.com>
16104 * tree-parloops.c: Change license to GPLv3.
16105 * ipa-struct-reorg.c: Change license to GPLv3.
16106 * ipa-struct-reorg.h: Change license to GPLv3.
16108 2009-02-10 Steve Ellcey <sje@cup.hp.com>
16111 * c-decl.c (start_struct): Return NULL on error.
16113 2009-02-10 Jakub Jelinek <jakub@redhat.com>
16115 PR middle-end/39124
16116 * cfgloopmanip.c (remove_path): Call remove_bbs after
16117 cancel_loop_tree, not before it.
16120 * function.h (struct function): Add has_local_explicit_reg_vars bit.
16121 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
16122 VAR_DECLs were seen.
16123 * tree-ssa-live.c (remove_unused_locals): Recompute
16124 cfun->has_local_explicit_reg_vars.
16125 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
16126 copies or clearings if cfun->has_local_explicit_reg_vars.
16128 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
16131 * config/i386/i386.c (expand_prologue): Emit blockage at the end
16132 of function prologue when frame pointer is used to access
16135 2009-02-10 Richard Guenther <rguenther@suse.de>
16137 PR middle-end/39127
16138 * gimplify.c (gimple_regimplify_operands): Always look if
16139 we need to create a temporary.
16141 2009-02-10 Richard Guenther <rguenther@suse.de>
16143 PR tree-optimization/39132
16144 * tree-loop-distribution.c (todo): New global var.
16145 (generate_memset_zero): Trigger TODO_rebuild_alias.
16146 (tree_loop_distribution): Return todo.
16148 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
16151 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
16152 (x86_64_reg_class_name): Removed.
16153 (classify_argument): Return 0 if bytes > 32. Return 0 if the
16154 first one isn't X86_64_SSE_CLASS or any other ones aren't
16155 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
16156 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
16157 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
16158 and 3 X86_64_SSEUP_CLASS.
16159 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
16160 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
16162 2009-02-10 Ben Elliston <bje@au.ibm.com>
16164 * config/rs6000/rs6000.md (allocate_stack): Always use an update
16165 form instruction to update the stack back chain word, even if the
16166 user has disabled the generation of update instructions.
16167 (movdi_<mode>_update_stack): New.
16168 (movsi_update_stack): Likewise.
16169 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
16170 always use an update form instruction to update the stack back
16173 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
16175 PR middle-end/38953
16176 * graphite.c (if_region_set_false_region): After moving a region in
16177 the false branch of a condition, remove the empty dummy basic block.
16178 (gloog): Remove wrong fix for PR38953.
16180 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16182 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
16183 generation due to implicit sign extension.
16185 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
16187 PR middle-end/38981
16188 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
16189 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
16191 2009-02-09 Richard Guenther <rguenther@suse.de>
16193 PR middle-end/35202
16194 * convert.c (convert_to_real): Disable (float)fn((double)x)
16195 to fnf(x) conversion if errno differences may occur and
16196 -fmath-errno is set.
16198 2009-02-07 Anatoly Sokolov <aesok@post.ru>
16200 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
16201 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16202 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
16204 2009-02-06 Joseph Myers <joseph@codesourcery.com>
16207 * c-common.c (handle_alias_attribute): Disallow attribute for
16208 anything not a FUNCTION_DECL or VAR_DECL.
16210 2009-02-06 Janis Johnson <janis187@us.ibm.com>
16213 * real.c (do_compare): Special-case compare of zero against
16214 decimal float value.
16216 2009-02-06 Joseph Myers <joseph@codesourcery.com>
16219 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
16220 as indicating flexible array members unless the field itself is
16221 being declarared as the incomplete array.
16223 2009-02-06 Jan Hubicka <jh@suse.cz>
16225 PR tree-optimization/38844
16226 * ipa-inline.c (try_inline): Stop inlining recursion when edge
16227 is already inlined.
16229 2009-02-06 Richard Guenther <rguenther@suse.de>
16231 PR middle-end/38977
16232 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
16233 fork because we may expand it as __gcov_fork.
16235 2009-02-06 Nick Clifton <nickc@redhat.com>
16237 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
16239 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
16241 PR tree-optimization/35659
16242 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
16243 vn_phi_eq): Shortcut if hashcode does not match.
16244 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
16246 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
16247 and avoid iterative_hash_expr.
16248 (FOR_EACH_VALUE_ID_IN_SET): New.
16249 (value_id_compare): Remove.
16250 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
16251 sort expressions by value id.
16253 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
16256 * config/sh/predicates.md (general_movsrc_operand): Don't check
16257 the subreg of system registers here.
16259 2009-02-05 Jakub Jelinek <jakub@redhat.com>
16262 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
16263 on the copied decl.
16265 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
16267 PR rtl-optimization/39110
16268 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
16269 addresses, not aligned ones.
16271 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
16272 Richard Guenther <rguenther@suse.de>
16274 PR tree-optimization/39100
16275 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
16276 comment says and add edges.
16278 2009-02-05 Joseph Myers <joseph@codesourcery.com>
16281 * c-common.c (handle_tls_model_attribute): Ignore attribute for
16282 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
16284 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
16286 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
16287 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
16288 register_bb_in_sese, new_sese, free_sese): Moved.
16289 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
16290 outermost_loop_in_scop, build_scop_iteration_domain,
16291 expand_scalar_variables_ssa_name, get_vdef_before_scop,
16292 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
16293 Use loop_in_sese_p instead of loop_in_scop_p.
16294 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
16295 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
16296 (scopdet_basic_block_info): Fix bug in scop detection.
16297 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
16298 eq_loop_to_cloog_loop): Remove.
16299 (nb_loops_around_loop_in_scop, nb_loop
16300 ref_nb_loops): Moved here...
16301 * graphite.h (ref_nb_loops): ... from here.
16302 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
16303 (loop_domain_dim, loop_iteration_vector_dim): Remove.
16304 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
16305 * testsuite/gcc.dg/graphite/scop-19.c: New
16307 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
16308 Hans-Peter Nilsson <hp@axis.com>
16310 PR rtl-optimization/37889
16311 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
16312 Move offset handling from PLUS to before the switch. Use new
16313 arguments when considering SYMBOL_REFs too.
16314 (rtx_addr_can_trap_p): Pass dummy offset and size.
16315 (enum may_trap_p_flags): Remove.
16316 (may_trap_p_1): Pass size from MEM_SIZE.
16318 PR rtl-optimization/38921
16319 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
16320 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
16321 * rtlanal.c (may_trap_after_code_motion_p): Delete.
16322 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
16324 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
16326 AVX Programming Reference (January, 2009)
16327 * config/i386/sse.md (*vpclmulqdq): New.
16329 2009-02-04 Jakub Jelinek <jakub@redhat.com>
16331 PR tree-optimization/38977
16332 PR gcov-profile/38292
16333 * calls.c (special_function_p): Disregard __builtin_ prefix.
16335 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
16337 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
16338 non-indexable addresses even before reload.
16340 2009-02-03 Joseph Myers <joseph@codesourcery.com>
16343 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
16344 as having variable size. Do not give an error for unnamed
16345 parameters with [*] declarators. Give a warning for type names
16346 with [*] declarators and mark them as variable size.
16347 * c-parser.c (c_parser_sizeof_expression): Do not give an error
16348 for sizeof applied to [*] type names.
16350 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
16353 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
16355 2009-02-03 Jakub Jelinek <jakub@redhat.com>
16357 * gcc.c (process_command): Update copyright notice dates.
16358 * gcov.c (print_version): Likewise.
16359 * gcov-dump.c (print_version): Likewise.
16360 * mips-tfile.c (main): Likewise.
16361 * mips-tdump.c (main): Likewise.
16363 2009-02-03 Joseph Myers <joseph@codesourcery.com>
16366 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
16367 for composite type involving a zero-length array type.
16369 2009-02-03 Jakub Jelinek <jakub@redhat.com>
16372 * function.c (match_asm_constraints_1): Skip over
16373 initial optional % in the constraint.
16375 PR inline-asm/39059
16376 * c-parser.c (c_parser_postfix_expression): If fixed point is not
16377 supported, don't accept FIXED_CSTs.
16378 * c-decl.c (finish_declspecs): Error if fixed point is not supported
16379 and _Sat is used without _Fract/_Accum. Set specs->type to
16380 integer_type_node for cts_fract/cts_accum if fixed point is not
16383 2009-02-02 Catherine Moore <clm@codesourcery.com>
16385 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
16387 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
16389 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
16390 (ABI_HAS_64BIT_SYMBOLS): Use it.
16391 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
16393 2009-02-02 Paul Brook <paul@codesourcery.com>
16395 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
16397 2009-02-02 Jakub Jelinek <jakub@redhat.com>
16399 PR inline-asm/39058
16400 * recog.h (asm_operand_ok): Add constraints argument.
16401 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
16402 recurse on matching constraint.
16403 (check_asm_operands): Pass constraints as 3rd argument to
16404 asm_operand_ok. Don't look up matching constraint here.
16405 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
16408 2009-02-02 Ben Elliston <bje@au.ibm.com>
16410 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
16411 TARGET_NARROW_VOLATILE_BITFIELD macro names.
16413 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16415 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
16416 information. Remove some obsolete information. Reorganize.
16418 * config/pa/fptr.c: Revert license to GPL 2.
16419 * config/pa/milli64.S: Likewise.
16421 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
16424 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
16425 LIBRARY name in, instead of hard-coding it.
16426 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
16427 extra target make frag to tmake_files according to EH model.
16428 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16429 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
16430 frags that define makefile variable EH_MODEL appropriately.
16431 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
16432 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
16433 to "-sjlj" according to type of EH configured.
16434 (LIBGCC_SONAME): Concatenate it to shared library base name.
16435 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
16436 to "_sjlj" according to type of EH configured.
16437 (LIBGCC_SONAME): Concatenate it to shared library base name.
16438 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
16439 (SHLIB_LINK): Add missing semicolon to if-else construct.
16440 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
16441 string value of "pe_dll" command-line option.
16442 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
16443 (SHLIB_SONAME): Use it when overriding t-cygming default.
16444 (SHLIB_IMPLIB): Override t-cygming default.
16445 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
16446 string value of "pe_dll" command-line option.
16448 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
16451 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
16452 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
16454 2009-01-31 Richard Guenther <rguenther@suse.de>
16456 PR tree-optimization/38937
16457 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
16458 computing the transitive closure.
16460 2009-01-30 Richard Guenther <rguenther@suse.de>
16462 PR tree-optimization/39041
16463 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
16464 Propagate variable indices only if the types match for this stmt.
16466 2009-01-30 Jakub Jelinek <jakub@redhat.com>
16469 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
16470 inline but never defined.
16472 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
16474 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
16475 (*insv_h_di_reg_extimm): New insn.
16476 (*insv_l<mode>_reg_extimm): New insn.
16478 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
16480 * config/picochip/picochip.c (flag_conserve_stack): set
16481 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
16482 fconserve-stack. Reduce call-overhead used by inliner.
16484 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
16487 * common.opt (flag_conserve_stack): Initialised to zero.
16489 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
16492 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
16493 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
16496 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
16498 * ira-color.c (allocno_reload_assign): Update comments.
16499 * regmove.c (regmove_optimize): Likewise.
16503 2009-01-29 Robert Millan <rmh@aybabtu.com>
16505 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
16506 * config/i386/kopensolaris-gnu.h: New file. Undefine
16507 `MD_UNWIND_SUPPORT'.
16508 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
16510 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
16512 PR tree-optimization/39007
16513 * tree-loop-distribution.c (generate_builtin): Use
16514 recompute_dominator to compute the immediate dominator of the
16515 basic block just after the loop.
16517 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16519 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
16520 (ASM_OUTPUT_DWARF_PCREL): Define.
16522 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
16524 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
16525 * doc/passes.texi: Remove entries about regclass, local-alloc, and
16526 global. Modify entries about regmove and IRA.
16528 * ra-conflict.c: Remove the file.
16530 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
16532 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
16533 (pass_regclass_init): Rename to pass_reginfo_init.
16535 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
16537 * toplev.h (flag_ira): Remove.
16539 * caller-save.c (setup_save_areas): Remove flag_ira.
16541 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
16543 * global.c: Remove the file.
16545 * opts.c (decode_options): Remove flag_ira.
16547 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
16549 * regmove.c: Modify file description.
16550 (find_use_as_address, try_auto_increment): Define them only if
16551 AUTO_INC_DEC is defined.
16552 (replacement_quality, replace_in_call_usage, fixup_match_1,
16553 stable_and_no_regs_but_for_p): Remove.
16554 (reg_set_in_bb): Make it static.
16555 (regmove_optimize): Remove flag_ira and code which worked for
16558 * local-alloc.c: Remove the file.
16560 * common.opt (fira): Remove.
16562 * ira.c: Include except.h.
16563 (eliminable_regset): Move from global.c.
16564 (mark_elimination): Ditto. Remove flag_ira.
16565 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
16566 equiv_mem_modified, validate_equiv_mem_from_store,
16567 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
16568 contains_replace_regs, memref_referenced_p, memref_used_between_p,
16569 no_equiv, recorded_label_ref): Move from local-alloc.c.
16570 (update_equiv_regs): Ditto. Make it static.
16571 (print_insn_chain, print_insn_chains): Move it from global.c.
16572 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
16573 (build_insn_chain): Ditto. Make it static.
16574 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
16575 Rename to init_live_subregs.
16576 (gate_ira): Remove flag_ira.
16578 * regclass.c: Rename reginfo.c. Change file description.
16579 (FORBIDDEN_INC_DEC_CLASSES): Remove.
16580 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
16581 (init_reg_sets_1): Remove code for evaluation of
16582 reg_class_superclasses and losing_caller_save_reg_set.
16583 (init_regs): Remove init_reg_autoinc.
16584 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
16585 ok_for_base_p_nonstrict): Remove.
16586 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
16587 (pass_regclass_init): Rename to pass_reginfo_init. Modify
16588 corresponding entries.
16589 (dump_regclass, record_operand_costs, scan_one_insn,
16590 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
16591 record_address_regs, auto_inc_dec_reg_p): Remove.
16592 (gt-regclass.h): Rename to gt-reginfo.h.
16594 * rtl.h (dump_global_regs, retry_global_alloc,
16595 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
16597 * Makefile.in (RA_H): Remove.
16598 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
16599 Rename regclass.o to reginfo.o.
16600 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
16602 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
16603 (GTFILES): Rename regclass.c to reginfo.c.
16605 * passes.c (init_optimization_passes): Remove pass_local_alloc and
16606 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
16608 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
16609 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
16611 (finish_spills): Ditto. Remove code for !flag_ira.
16613 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
16615 PR middle-end/35854
16616 * doc/invoke.texi (rtl debug options): Complete rewrite.
16617 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
16619 * mode-switching.c (pass_mode_switching): Rename pass from
16620 "mode-sw" to "mode_sw".
16621 * except.c (pass_convert_to_eh_ranges): Rename pass from
16622 "eh-ranges" to "eh_ranges".
16623 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
16627 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
16628 Alexander Monakov <amonakov@ispras.ru>
16630 PR middle-end/38857
16631 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
16633 (move_exprs_to_boundary): Change return type and pass through
16634 should_move from move_op. Relax assert. Update usage ...
16635 (schedule_expr_on_boundary): ... here. Use should_move instead of
16637 (move_op_orig_expr_found): Indicate that insn was disconnected from
16639 (code_motion_process_successors): Do not call after_merge_succs
16640 callback if original expression was not found when traversing any of
16642 (code_motion_path_driver): Change return type. Update prototype.
16643 (move_op): Update comment. Add a new parameter (should_move). Update
16644 prototype. Set *should_move based on indication provided by
16645 move_op_orig_expr_found.
16647 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
16649 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
16650 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
16651 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
16652 * config/rs6000/rs6000.c (rs6000_override_options): Default
16653 avoid-indexed-addresses on for Power6, off for everything else.
16654 (avoiding_indexed_address_p): New function.
16655 (rs6000_legitimize_address): Use it.
16656 (rs6000_legitimate_address): Likewise.
16657 * config/rs6000/rs6000.md (movXX_updateX): Likewise
16659 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
16661 PR tree-optimization/38997
16662 * tree-loop-distribution.c (generate_memset_zero): Use
16663 POINTER_PLUS_EXPR for a pointer addition.
16665 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
16667 * config/s390/s390.md (bswap<mode>2): New pattern added.
16669 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
16671 * config/s390/s390.md (*tls_load_31): Added type attribute.
16673 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
16675 * config/s390/s390.md: Fix a few comments.
16677 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
16679 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
16680 (*tm<mode>_full): Fixed z10prop attribute.
16681 (*tst<mode>_extimm): Fixed z10prop attribute.
16682 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
16683 (*tstqiCCT_cconly): Fixed z10prop attribute.
16684 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
16685 (*movsi_larl): Fixed z10prop attribute.
16686 (*movsi_zarch): Fixed z10prop attribute.
16687 (*movsi_eas): Fixed z10prop attribute.
16688 (*movhi): Fixed z10prop attribute.
16689 (*movqi): Fixed z10prop attribute.
16690 (*movstrictqi): Fixed z10prop attribute.
16691 (*mov<mode>): Fixed z10prop attribute.
16692 (*movcc): Fixed z10prop attribute.
16693 (*sethighpartdi_64): Fixed z10prop attribute.
16694 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
16695 (*negdi2_sign_cc): Fixed z10prop attribute.
16696 (*negdi2_sign): Fixed z10prop attribute.
16697 (*absdi2_sign_cc): Fixed z10prop attribute.
16698 (*absdi2_sign): Fixed z10prop attribute.
16699 (*negabsdi2_sign_cc): Fixed z10prop attribute.
16700 (*negabsdi2_sign): Fixed z10prop attribute.
16701 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
16702 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
16703 (doloop_si64): Fixed z10prop attribute.
16704 (doloop_si31): Fixed z10prop attribute.
16705 (doloop_long): Fixed z10prop attribute.
16706 (indirect_jump): Fixed z10prop attribute.
16707 (nop): Fixed z10prop attribute.
16708 (main_base_64): Fixed z10prop attribute.
16709 (reload_base_64): Fixed z10prop attribute.
16711 2009-01-28 Jakub Jelinek <jakub@redhat.com>
16713 PR rtl-optimization/38740
16714 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
16716 * config/mips/mips.c (mips_reorg): Likewise.
16718 2009-01-28 Richard Guenther <rguenther@suse.de>
16720 PR tree-optimization/38926
16721 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
16722 with the correct value id to a value.
16723 (do_regular_insertion): Use the value number of edoubleprime
16724 for the value number of the expr.
16727 2008-08-21 Richard Guenther <rguenther@suse.de>
16729 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
16730 a PHI ask VN if it is already available.
16731 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
16732 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
16734 2009-01-28 Jakub Jelinek <jakub@redhat.com>
16736 PR middle-end/38934
16737 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
16738 set to varying whenever max has TREE_OVERFLOW set, similarly
16739 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
16741 2009-01-28 Richard Guenther <rguenther@suse.de>
16743 PR middle-end/38908
16744 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
16745 uninitialized aggregate uses in call arguments.
16747 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
16749 PR tree-optimization/38984
16750 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
16751 the nothing_id variable if -fno-delete-null-pointer-checks.
16753 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
16756 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
16757 (set_got_offset_rex64): Ditto.
16759 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
16762 * doc/extend.texi: Improve local variable with asm reg.
16764 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
16766 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
16767 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
16768 was not supplied then set warn_packed_bitfield_compat to the
16769 default value of 1.
16770 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
16773 2009-01-27 Richard Guenther <rguenther@suse.de>
16775 PR tree-optimization/38503
16776 * cfgexpand.c (expand_gimple_basic_block): Ignore
16777 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
16778 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
16779 variables that cannot have TBAA applied.
16780 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
16783 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
16785 PR middle-end/38969
16786 * calls.c (initialize_argument_information): Do not wrap complex
16787 arguments in SAVE_EXPR.
16789 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
16791 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
16792 (INSTALL_LIBGCC): Revert typo commit.
16794 2009-01-26 Richard Guenther <rguenther@suse.de>
16796 PR tree-optimization/38745
16797 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
16798 from special handling.
16800 2009-01-26 Richard Guenther <rguenther@suse.de>
16802 PR tree-optimization/38745
16803 * tree-ssa.c (execute_update_addresses_taken): Do not include
16804 variables that cannot possibly be a register in not_reg_needs.
16805 Do not clear TREE_ADDRESSABLE on vars that may not become
16807 * tree-ssa.c (update_alias_info_1): Include those in the set
16808 of addressable vars.
16810 2009-01-26 Richard Guenther <rguenther@suse.de>
16812 PR middle-end/38851
16813 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
16814 * tree-ssa-dse.c: Include langhooks.h
16815 (execute_simple_dse): Remove stores with zero size.
16817 2009-01-24 Jakub Jelinek <jakub@redhat.com>
16820 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
16823 2009-01-24 Julian Brown <julian@codesourcery.com>
16825 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
16826 config/arm/linux-atomic.c.
16827 * config/arm/linux-atomic.c: New.
16829 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
16831 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
16832 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
16833 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
16835 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
16838 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
16841 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
16843 PR tree-optimization/38953
16844 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
16845 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
16846 (gloog): Split the exit of the scop when the scop exit is a loop exit.
16847 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
16850 2009-01-24 Paul Brook <paul@codesourcery.com>
16852 * config/arm/neon.md (neon_type): Move to arm.md.
16853 (neon_mov<VSTRUCT>): Add neon_type attribute.
16854 * config/arm/arm.md (neon_type): Move to here.
16855 (conds): Add "unconditioal" and use as default for NEON insns.
16857 2009-01-24 Ben Elliston <bje@au.ibm.com>
16859 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
16860 void *' warning from -Wc++-compat.
16861 * Makefile.in (dominance.o-warn): Remove.
16863 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
16865 PR tree-optimization/38932
16866 * fold-const.c (fold_unary_ignore_overflow): New.
16867 * tree.h (fold_unary_ignore_overflow): Declare.
16868 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
16869 * tree-ssa-sccvn.c (visit_reference_op_load,
16870 simplify_unary_expression): Likewise.
16872 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
16874 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
16875 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
16876 regardless of their type.
16877 * c-common.c (handle_packed_attribute): Don't ignore packed on
16879 * c.opt (Wpacked-bitfield-compat): New warning option.
16880 * stor-layout.c (place_field): Warn if offset of a field changed.
16881 * doc/extend.texi (packed): Mention the ABI change.
16882 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
16883 (Warning Options): Add it to the list.
16885 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
16887 * c-opts.c (c_common_post_options): Fix a typo in comments.
16889 2009-01-22 Steve Ellcey <sje@cup.hp.com>
16891 PR middle-end/38615
16892 * gimplify.c (gimplify_init_constructor): Fix promotion of const
16893 variables to static.
16894 * doc/invoke.texi (-fmerge-all-constants): Update description.
16896 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
16899 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
16900 (*movdi_1_rex64): Use type "mmx" for alternative 5.
16902 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
16904 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
16906 (LOCAL_ALIGNMENT): Similarly.
16908 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
16909 Joseph Myers <joseph@codesourcery.com>
16911 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
16912 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
16913 * config/arm/arm-tune.md: Regenerate.
16914 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
16917 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
16919 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
16920 version number to five.
16922 2009-01-22 Dodji Seketeli <dodji@redhat.com>
16925 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
16926 * c-common.c (set_underlying_type): Likewise.
16927 (is_typedef_decl ): Likewise
16929 (set_underlying_type): Likewise.
16930 (is_typedef_type): Likewise.
16932 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
16934 PR middle-end/38587
16935 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
16938 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
16941 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
16942 (LIBGCC_SPEC): Don't define.
16943 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
16945 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
16947 PR rtl-optimization/38879
16948 * alias.c (base_alias_check): Unaligned access via AND address can
16949 alias all surrounding object types except those with sizes equal
16950 or wider than the size of unaligned access.
16952 2009-01-21 Dodji Seketeli <dodji@redhat.com>
16955 * c-decl.c (clone_underlying_type): Move this ...
16956 * c-common.c (set_underlying_type): ... here.
16957 Also, make sure the function properly sets TYPE_STUB_DECL() on
16958 the newly created typedef variant type.
16959 (is_typedef_decl ): New entry point.
16960 * tree.h: Added a new member member_types_needing_access_check to
16961 struct tree_decl_non_common.
16962 (set_underlying_type): New entry point.
16963 (is_typedef_type): Likewise.
16965 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
16967 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
16968 Check whether two instructions have memory references that
16969 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
16970 are helper functions for traversing.
16971 * alias.h (insn_alias_sets_confilict_p): New prototypes.
16972 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
16973 not to draw dependency edge for instructions with non-conflicting
16976 2009-01-20 Joseph Myers <joseph@codesourcery.com>
16979 * longlong.h: Update copyright years. Use soft-fp license notice.
16980 Sync __clz_tab declaration with glibc.
16982 2009-01-20 Steve Ellcey <sje@cup.hp.com>
16985 * doc/extend.texi (syscall_linkage): New.
16986 (version_id): Modify.
16988 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
16989 Richard Guenther <rguenther@suse.de>
16991 PR tree-optimization/38747
16992 PR tree-optimization/38748
16993 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
16994 conversion if the base address is an indirect reference and the
16995 aliasing sets could cause issues.
16997 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
16999 * common.opt (fgraphite, fgraphite-identity): Add comment for
17000 explaining why these options are not documented.
17002 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
17004 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
17005 gimple_call_lhs is NULL.
17007 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
17010 * emit-rtl.c (adjust_address_1): Make sure memref is never
17013 2009-01-20 Ben Elliston <bje@au.ibm.com>
17015 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
17016 const qualifier from arg parameter. Remove unnecessary cast to char *.
17017 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
17018 const qualifier from arg 2.
17020 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17022 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
17024 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
17027 * rtl.h (reinit_regs): New prototype.
17028 * regclass.c: Include ira.h.
17029 (reinit_regs): New.
17030 * Makefile.in (regclass.o): Add ira.h.
17031 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
17033 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
17036 * c-common.c (handle_aligned_attribute): Use
17037 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
17038 default alignment value.
17040 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
17042 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
17043 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
17045 * doc/extend.texi: Update __attribute__ ((aligned)). Document
17046 __BIGGEST_ALIGNMENT__.
17048 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
17050 2009-01-18 Richard Guenther <rguenther@suse.de>
17052 PR tree-optimization/38819
17053 * tree-flow.h (operation_could_trap_helper_p): Declare.
17054 * tree-eh.c (operation_could_trap_helper_p): Export.
17055 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
17056 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
17057 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
17058 are about to insert a possibly trapping instruction and fail
17061 2009-01-18 Andreas Schwab <schwab@suse.de>
17063 * doc/install.texi (Configuration): Remove obsolete paragraph
17064 about use of --with-gnu-ld with --with-gnu-as.
17066 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
17068 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
17069 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
17070 Follow spelling conventions.
17072 2009-01-18 Ben Elliston <bje@au.ibm.com>
17074 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
17075 C++ warning about implicit conversion from void * to struct
17077 (bitmap_obstack_free): Likewise for bitmap_element *.
17078 * Makefile.in (bitmap.o-warn): Remove.
17080 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
17082 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
17084 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
17085 Tobias Grosser <tobi.grosser@amd.com>
17087 * graphite.c (graphite_trans_scop_block): Do not block single
17090 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
17092 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
17093 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
17094 test with assertion.
17096 2009-01-16 Richard Guenther <rguenther@suse.de>
17098 PR tree-optimization/38835
17099 PR middle-end/36227
17100 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
17101 and INT + PTR -> (INT)(PTR p+ INT) folding.
17102 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
17104 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
17107 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
17108 the subreg from a lowpart subreg if it is also casting the value.
17110 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
17111 Tobias Grosser <tobi.grosser@amd.com>
17113 * graphite.c (compare_prefix_loops): New.
17114 (build_scop_canonical_schedules): Rewritten.
17115 (graphite_transform_loops): Move build_scop_canonical_schedules
17116 after build_scop_iteration_domain.
17118 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
17119 Tobias Grosser <tobi.grosser@amd.com>
17121 * graphite.c (add_conditions_to_domain): Add the loops to
17122 the dimension of the iteration domain. Do copy the domain
17123 only when it exists.
17124 (build_scop_conditions_1): Do not call add_conditions_to_domain.
17125 (add_conditions_to_constraints): New.
17126 (can_generate_code_stmt, can_generate_code): Removed.
17127 (gloog): Do not call can_generate_code.
17128 (graphite_transform_loops): Call add_conditions_to_constraints
17129 after building the iteration domain.
17131 2009-01-16 Jakub Jelinek <jakub@redhat.com>
17133 PR tree-optimization/38789
17134 * tree-ssa-threadedge.c
17135 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
17136 __builtin_constant_p.
17138 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17140 * dce.c (delete_unmarked_insns): Reversed the order that insns are
17141 examined before deleting them.
17143 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
17145 * function.c (aggregate_value_p): Correctly extract the function
17146 type from CALL_EXPR_FN lookup.
17148 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
17150 * config/picochip/picochip.c (picochip_override_options): Revert
17151 CFI asm flag disable commited previously.
17153 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
17154 Tobias Grosser <tobi.grosser@amd.com>
17155 Jan Sjodin <jan.sjodin@amd.com>
17157 * graphite.c (scan_tree_for_params): On substractions negate
17158 all the coefficients of the term.
17159 (clast_to_gcc_expression_red): New. Handle reduction expressions
17160 of more than two operands.
17161 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
17162 (get_vdef_before_scop): Handle also the case of default definitions.
17164 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
17166 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
17167 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
17168 Also use them when walking CALL_INSN_FUNCTION_USAGE.
17170 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
17171 Joey Ye <joey.ye@intel.com>
17173 PR middle-end/37843
17174 * cfgexpand.c (expand_stack_alignment): Don't update stack
17175 boundary nor check incoming stack boundary here.
17176 (gimple_expand_cfg): Update stack boundary and check incoming
17177 stack boundary here.
17179 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
17181 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
17183 2009-01-14 Jakub Jelinek <jakub@redhat.com>
17185 PR rtl-optimization/38245
17186 * calls.c (expand_call): Add stack arguments to
17187 CALL_INSN_FUNCTION_USAGE even for pure calls (when
17188 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
17189 in regs and partially in memory or BLKmode arguments.
17190 (emit_library_call_value_1): Add stack arguments to
17191 CALL_INSN_FUNCTION_USAGE even for pure calls (when
17192 ACCUMULATE_OUTGOING_ARGS).
17193 * dce.c: Include tm_p.h.
17194 (find_call_stack_args): New function.
17195 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
17197 (mark_insn): Call find_call_stack_args for CALL_Ps.
17198 (prescan_insns_for_dce): Walk insns backwards in bb rather than
17199 forwards. Allocate and free arg_stores bitmap if needed, pass it
17200 down to deletable_insn_p, don't mark stores set in arg_stores
17201 bitmap, clear the bitmap at the beginning of each bb.
17202 * Makefile.in (dce.o): Depend on $(TM_P_H).
17204 2009-01-14 Michael Meissner <gnu@the-meissners.org>
17207 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
17208 to make sure the insn is a conditional test (bug 22599). Reformat a
17211 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
17213 PR middle-end/38431
17214 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
17215 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
17216 (gloog): Do not call cleanup_tree_cfg.
17217 (graphite_transform_loops): Call cleanup_tree_cfg after all
17218 scops have been code generated.
17220 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
17221 * doc/gty.texi (Invoking the garbage collector): Added new node
17222 and section documenting ggc_collect.
17224 2009-01-14 Richard Guenther <rguenther@suse.de>
17226 PR tree-optimization/38826
17227 PR middle-end/38477
17228 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
17229 initialization notes only if we actually emitted a warning.
17230 (intra_create_variable_infos): Add constraints for a result decl
17231 that is passed by hidden reference.
17232 (build_pred_graph): Mark all related variables non-direct on
17235 2009-01-14 Nick Clifton <nickc@redhat.com>
17237 * ira-conflicts.c: Include addresses.h for the definition of
17239 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
17240 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
17242 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
17245 * Makefile.in (ira-lives.o): Add except.h.
17247 * ira-lives.c: Include except.h.
17248 (process_bb_node_lives): Process can_throw_internal.
17250 2009-01-13 Jakub Jelinek <jakub@redhat.com>
17252 PR rtl-optimization/38774
17253 * combine.c (simplify_set): When undoing cc_use change, don't do
17254 PUT_CODE on the newly created comparison, but instead put back the
17257 2009-01-13 Joseph Myers <joseph@codesourcery.com>
17259 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
17260 values. Remove duplicate arm8 entry.
17262 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
17264 PR tree-optimization/38786
17265 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
17266 the SSA_NAME case of expand_scalar_variables_expr.
17267 Set the type of an expression to the type of its assign statement.
17268 (expand_scalar_variables_expr): Also gather the scalar computation
17269 used to index the memory access. Do not pass loop_p.
17270 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
17271 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
17272 the gimple_stmt_iterator where it inserts new code.
17273 Do not pass loop_p.
17274 (copy_bb_and_scalar_dependences): Do not pass loop_p.
17275 (translate_clast): Update call to copy_bb_and_scalar_dependences.
17277 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
17279 * graphite.h (debug_value): Removed.
17280 * graphite.c (debug_value): Removed.
17282 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
17284 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
17285 ldrd/strd with two 32-bit instructions.
17287 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
17289 * config/arm/arm.c (struct processors): Pass for speed down into
17290 cost helper functions.
17291 (const_ok_for_op): Handle COMPARE and inequality nodes.
17292 (arm_rtx_costs_1): Rewrite.
17293 (arm_size_rtx_costs): Update prototype.
17294 (arm_rtx_costs): Pass speed down to helper functions.
17295 (arm_slowmul_rtx_costs): Rework cost calculations.
17296 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
17297 (arm_9e_rtx_costs): Likewise.
17299 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
17301 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
17302 relocations of local symbols wider than UNITS_PER_WORD are not valid.
17303 (alpha_legitimize_address): Do not split local symbols wider than
17304 UNITS_PER_WORD into HIGH/LO_SUM parts.
17306 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
17309 * gcc.c (process_command): Replace call to execvp with calls
17310 to pex_one and exit.
17312 2009-01-03 Anatoly Sokolov <aesok@post.ru>
17315 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
17316 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
17317 variant for devices with 3-byte PC.
17318 (__tablejump_elpm__): New.
17320 2009-01-12 Jakub Jelinek <jakub@redhat.com>
17323 * c-parser.c (c_parser_postfix_expression): Allow `->' in
17324 offsetof member-designator, handle it as `[0].'.
17326 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17328 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
17329 function when not using named sections on targets with named sections
17330 if branch distance is less than 262132.
17332 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
17334 * combine.c (combine_instructions): Recompute
17335 optimize_this_for_speed_p for each BB in the main combine loop.
17337 2009-01-12 Tomas Bily <tbily@suse.cz>
17340 * tree-loop-distribution.c (prop_phis): New function.
17341 (generate_builtin): Call prop_phis.
17342 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
17344 2009-01-12 Jakub Jelinek <jakub@redhat.com>
17346 PR tree-optimization/38807
17347 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
17348 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
17350 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
17352 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
17353 subreg of op0 to the original op0.
17355 2009-01-11 Laurent GUERBY <laurent@guerby.net>
17357 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
17359 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
17362 * mips-tfile.c (parse_def): Fix parsing of def strings
17363 starting with digits.
17365 2009-01-10 Jakub Jelinek <jakub@redhat.com>
17368 * config/arm/arm.c (arm_is_long_call_p): Don't call
17369 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
17371 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
17373 * regrename.c (regrename_optimize): Fix dumping.
17374 (find_oldest_value_reg): Preserve REG_POINTER.
17375 (copy_hardreg_forward_1): Likewise.
17377 2009-01-09 Diego Novillo <dnovillo@google.com>
17379 * gimple.h (struct gimple_statement_base) <uid>: Document
17380 the restrictions on its use.
17381 (gimple_uid): Tidy.
17382 (gimple_set_uid): Tidy.
17384 2009-01-09 Jakub Jelinek <jakub@redhat.com>
17386 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
17387 zero guard even if align_bytes != 0 and count is smaller than
17390 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
17392 PR rtl-optimization/38495
17393 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
17394 (add_range_and_copies_from_move_list): Print all added ranges.
17395 Add ranges to memory optimized destination.
17397 2009-01-09 Jakub Jelinek <jakub@redhat.com>
17401 * config/i386/i386.c (override_options): Reject
17402 -mstringop-strategy=rep_8byte with -m32.
17403 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
17404 to 1. Do count comparison against epilogue_size_needed at compile
17405 time even when count_exp was constant forced into register. For
17406 size_needed don't jump to epilogue, instead just avoid aligning
17407 and invoke the body algorithm. If need_zero_guard, add zero guard
17408 even if count is non-zero, but smaller than size_needed + number of
17409 bytes that could be stored for alignment.
17410 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
17411 to 1. If need_zero_guard, add zero guard even if count is non-zero,
17412 but smaller than size_needed + number of bytes that could be stored
17413 for alignment. Compare size_needed with epilogue_size_needed instead
17414 of desired_align - align, don't adjust size_needed, pass
17415 epilogue_size_needed to the epilogue expanders.
17418 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
17420 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17422 * pa.c (last_address): Change to unsigned.
17423 (update_total_code_bytes): Change argument to unsigned. Don't
17424 check if insn addresses are set.
17425 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
17426 addresses are not set.
17427 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
17429 2009-01-09 Nick Clifton <nickc@redhat.com>
17431 * config/sh/symbian.c: Replace uses of DECL_INLINE with
17432 DECL_DECLARED_INLINE_P.
17434 2009-01-09 Jakub Jelinek <jakub@redhat.com>
17436 PR middle-end/38347
17437 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
17438 GET_MODE (op0) in operand_subword_force calls.
17440 PR middle-end/38771
17441 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
17442 fold_convert arg0 operands to TREE_TYPE (op0) first.
17444 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
17446 * params.def (ira-max-conflict-table-size): Decrease default value
17449 2009-01-08 Jakub Jelinek <jakub@redhat.com>
17451 PR tree-optimization/37031
17452 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
17454 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
17455 allocate it using gc instead of heap, use VEC_quick_push instead of
17457 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
17458 instead of heap, use VEC_quick_push instead of VEC_safe_push.
17459 * tree-data-ref.h (struct access_matrix): Change matrix to gc
17460 allocated vector from heap allocated.
17461 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
17462 * tree-loop-linear.c (linear_transform_loops): Allocate nest
17463 vector only after perfect_loop_nest_depth call.
17465 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
17466 Jan Sjodin <jan.sjodin@amd.com>
17468 PR tree-optimization/38559
17469 * graphite.c (debug_value, copy_constraint,
17470 swap_constraint_variables, scale_constraint_variable, ): New.
17471 (get_lower_bound, get_upper_bound): Removed.
17472 (graphite_trans_bb_strip_mine): Clean up this code that works
17473 only for constant number of iterations. Fully copy upper and
17474 lower bound constraints, not only the constant part of them.
17475 * graphite.h (debug_value): Declared.
17477 2009-01-08 Ira Rosen <irar@il.ibm.com>
17479 PR tree-optimization/37194
17480 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
17481 Don't add the cost of cost model guard in prologue to scalar
17482 outside cost in case of known number of iterations.
17484 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
17485 Alan Modra <amodra@bigpond.net.au>
17487 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
17488 non-word-aligned REG+CONST addressing.
17490 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
17493 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
17494 free_after_compilation when outputting a thunk.
17495 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
17496 Do not call free_after_compilation here.
17498 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
17500 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
17501 (ix86_valid_target_attribute_inner_p): Ditto.
17503 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
17505 PR tree-optimization/38492
17506 PR tree-optimization/38498
17507 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
17508 * tree-chrec.h (scev_is_linear_expression): Declared.
17509 * graphite.c (graphite_cannot_represent_loop_niter): New.
17510 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
17511 (graphite_loop_normal_form): Use gcc_assert.
17512 (scan_tree_for_params): Use CASE_CONVERT.
17513 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
17514 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
17515 Use gcc_assert. Discard scops that contain unhandled cases.
17516 (build_scop_conditions): Return a boolean status for unhandled cases.
17517 (strip_mine_profitable_p): Print the loop number, not its depth.
17518 (is_interchange_valid): Pass the depth of the loop nest, don't
17519 recompute it wrongly.
17520 (graphite_trans_bb_block): Same.
17521 (graphite_trans_bb_block): Print tentative of loop blocking.
17522 (graphite_trans_scop_block): Do not print that the loop has been
17524 (graphite_transform_loops): Do not handle scops that contain condition
17527 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
17529 AVX Programming Reference (December, 2008)
17530 * config/i386/avxintrin.h (_mm256_stream_si256): New.
17531 (_mm256_stream_pd): Likewise.
17532 (_mm256_stream_ps): Likewise.
17534 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
17535 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
17536 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
17537 (bdesc_special_args): Add __builtin_ia32_movntdq256,
17538 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
17539 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
17540 (ix86_expand_special_args_builtin): Likewise.
17542 * config/i386/sse.md (AVXMODEDI): New.
17543 (avx_movnt<mode>): Likewise.
17544 (avx_movnt<mode>): Likewise.
17545 (<sse>_movnt<mode>): Remove AVX support.
17546 (sse2_movntv2di): Likewise.
17548 2009-01-07 Richard Guenther <rguenther@suse.de>
17550 PR middle-end/38751
17551 * fold-const.c (extract_muldiv): Remove obsolete comment.
17552 (fold_plusminus_mult_expr): Undo MINUS_EXPR
17553 to PLUS_EXPR canonicalization for the canonicalization.
17555 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
17557 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
17558 hosted cross-compilers generating less efficient code.
17560 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
17562 * function.h (rtl_data): Add a dbr_scheduled_p field.
17563 * reorg.c (dbr_schedule): Set it.
17564 (gate_handle_delay_slots): Check it.
17565 * config/mips/mips.c (mips_base_delayed_branch): Delete.
17566 (mips_reorg): Check flag_delayed_branch instead of
17567 mips_base_delayed_branch.
17568 (mips_override_options): Don't set mips_base_delayed_branch
17569 or flag_delayed_branch.
17571 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
17573 PR rtl-optimization/38426.
17574 * ira.c (ira): Set current_function_is_leaf earlier.
17576 2009-01-06 Jakub Jelinek <jakub@redhat.com>
17578 PR rtl-optimization/38722
17579 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
17580 too early, only set a flag and modify after last possible
17583 2009-01-06 Janis Johnson <janis187@us.ibm.com>
17586 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
17587 * real.c (decimal_single_format): Correct values of emin and emax.
17588 (decimal_double_format): Ditto.
17589 (decimal_quad_format): Ditto.
17590 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
17591 computation of DECnn_MIN and DECnn_MAX for corrected values of
17592 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
17593 __DECnn_MIN__, and adjust its computation for the corrected value
17596 2009-01-06 Jan Hubicka <jh@suse.cz>
17599 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
17601 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17603 * doc/contrib.texi (Contributors): Slightly adjust the end note.
17604 Add Robert Clark to the list of testers.
17606 2009-01-06 Jan Hubicka <jh@suse.cz>
17607 Kai Tietz <kai.tietz@onevision.com>
17609 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
17610 * config/i386/i386.c (ix86_expand_call): Add clobbers.
17612 2009-01-06 Jan Hubicka <jh@suse.cz>
17613 Kai Tietz <kai.tietz@onevision.com>
17615 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
17617 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
17618 (ix86_nsaved_regs): Count only general purpose regs.
17619 (ix86_nsaved_sseregs): New.
17620 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
17621 to 16 for w64; compute padding and size of sse reg save area.
17622 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
17623 general purpose regs.
17624 (ix86_emit_save_sse_regs_using_mov): New.
17625 (ix86_expand_prologue): Save SSE regs if needed.
17626 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
17627 (ix86_emit_restore_sse_regs_using_mov): New.
17628 (ix86_expand_epilogue): Save SSE regs if needed.
17630 2009-01-06 Jan Hubicka <jh@suse.cz>
17631 Kai Tietz <kai.tietz@onevision.com>
17633 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
17634 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
17635 functions when accumulate outgoing args is off.
17637 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
17640 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
17641 before using pseudos_have_intersected_live_ranges_p.
17643 * ira-int.h (ira_assert): Always define.
17645 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
17647 AVX Programming Reference (December, 2008)
17648 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
17649 (_mm256_permute2_pd): Likewise.
17650 (_mm_permute2_ps): Likewise.
17651 (_mm256_permute2_ps): Likewise.
17652 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
17653 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
17655 * config/i386/i386.c (ix86_builtins): Remove
17656 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
17657 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
17658 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
17659 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
17660 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
17661 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
17662 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
17663 __builtin_ia32_vpermil2ps256.
17664 (ix86_init_mmx_sse_builtins): Updated.
17665 (ix86_expand_args_builtin): Likewise.
17667 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17669 * pa.c (output_call): Relocate non-jump insns in the delay slot of
17670 long absolute calls when generating PA 2.0 code.
17672 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
17674 PR rtl-optimization/38583
17675 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
17677 * params.def (ira-max-conflict-table-size): New.
17679 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
17681 * ira.h (ira_conflicts_p): New external definition.
17683 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
17684 table. Report this. Return result of building.
17685 (ira_build_conflicts): Use ira_conflicts_p. Check result of
17686 building conflict table.
17688 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
17689 (ira_color): Use ira_conflicts_p.
17691 * global.c: Include ira.h.
17692 (pseudo_for_reload_consideration_p, build_insn_chain): Use
17695 * Makefile.in (global.o): Add ira.h.
17697 * ira-build.c (mark_all_loops_for_removal,
17698 propagate_some_info_from_allocno): New.
17699 (remove_unnecessary_allocnos): Call
17700 propagate_some_info_from_allocno.
17701 (remove_low_level_allocnos): New.
17702 (remove_unnecessary_regions): Add parameter. Call
17703 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
17704 parameter to remove_unnecessary_regions.
17705 (ira_build): Remove all regions but root if the conflict table was
17706 not built. Update conflict hard regs for allocnos crossing calls.
17708 * ira.c (ira_conflicts_p): New global.
17709 (ira): Define and use ira_conflicts_p.
17711 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
17712 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
17713 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
17715 2009-01-06 Ben Elliston <bje@au.ibm.com>
17717 * gengtype-lex.l (YY_NO_INPUT): Define.
17719 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
17722 * c-common.c (handle_vector_size_attribute): Also reject
17723 BOOLEAN_TYPE types.
17725 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
17727 PR tree-optimization/38492
17728 * graphite.c (rename_map_elt, debug_rename_elt,
17729 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
17730 rename_map_elt_info, eq_rename_map_elts,
17731 get_new_name_from_old_name, bb_in_sese_p): Moved around.
17732 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
17733 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
17734 (sese_build_livein_liveouts): New.
17735 (new_sese, free_sese): New.
17736 (new_scop): Call new_sese.
17737 (free_scop): Call free_sese.
17738 (rename_variables_from_edge, rename_phis_end_scop): Removed.
17739 (register_old_new_names): Renamed register_old_and_new_names.
17740 (register_scop_liveout_renames, add_loop_exit_phis,
17741 insert_loop_close_phis, struct igp,
17742 default_liveout_before_guard, add_guard_exit_phis,
17743 insert_guard_phis, copy_renames): New.
17744 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
17745 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
17746 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
17747 (scop_adjust_phis_for_liveouts): New.
17748 (gloog): Call scop_adjust_phis_for_liveouts.
17750 * graphite.h (struct sese): Documented. Added fields liveout,
17751 num_ver and livein.
17752 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
17753 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
17754 (struct scop): Added field liveout_renames.
17755 (SCOP_LIVEOUT_RENAMES): New.
17757 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
17759 PR tree-optimization/38510
17760 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
17761 (translate_clast): Call recompute_all_dominators before
17763 (gloog): Call recompute_all_dominators before graphite_verify.
17765 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
17766 Jan Sjodin <jan.sjodin@amd.com>
17768 PR tree-optimization/38500
17769 * graphite.c (create_sese_edges): Call fix_loop_structure after
17772 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
17774 * config.gcc: Add m32r*-*-rtems*.
17775 * config/m32r/rtems.h: New file.
17777 2009-01-05 Ben Elliston <bje@au.ibm.com>
17779 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
17780 (.po.pox): Likewise.
17781 (po/gcc.pot): Likewise.
17783 2009-01-04 David S. Miller <davem@davemloft.net>
17785 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
17786 (STARTING_FRAME_OFFSET): Always set to zero.
17788 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
17790 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
17791 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
17792 fixed-point types, and vectors of the same.
17794 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
17796 * config/mips/sync.md (*mb_barrier): Rename to...
17797 (*memory_barrier): ...this.
17799 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
17801 * doc/extend.texi (Function Attributes): Move @cindex after @item
17802 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
17803 and put in alphabetical order. Fix 'target' name and put in order.
17804 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
17807 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
17809 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
17810 (memory_barrier): Expand as unspec instead of unspec_volatile.
17811 Remove mem:BLK from insn operands. Use Pmode scratch register.
17812 (*memory_barrier): Define as unspec instead of unspec_volatile.
17813 Use (match_dup 0) as input operand.
17815 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
17816 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
17817 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
17818 scratch register. Remove operand 1.
17819 (*stbar): Define as unspec instead of unspec_volatile.
17820 Use (match_dup 0) as input operand, remove (const_int 8).
17821 (*membar): Define as unspec instead of unspec_volatile.
17822 Use (match_dup 0) as input operand, remove input operand 2.
17824 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
17825 (memory_barrier): Expand as unspec instead of unspec_volatile.
17826 Remove mem:BLK from insn operands. Use Pmode scratch register.
17827 (*memory_barrier): Define as unspec instead of unspec_volatile.
17828 Use (match_dup 0) as input operand.
17830 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
17831 Remove mem:BLK from insn operands. Use Pmode scratch register.
17832 Set volatile flag on operand 0.
17833 (*memory_barrier): New insn pattern.
17835 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
17837 (*memory_barrier): Use (match_dup 0) as input operand.
17839 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
17840 Remove mem:BLK from insn operands. Use Pmode scratch register.
17841 Set volatile flag on operand 0.
17842 (*mb_internal): New insn pattern.
17844 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
17846 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
17848 PR middle-end/38586
17849 * function.c (struct temp_slot): Move to the section of the file
17850 that deals with temp slots. Remove field 'address'.
17851 (temp_slot_address_table): New hash table of address -> temp slot.
17852 (struct temp_slot_address_entry): New struct, items for the table.
17853 (temp_slot_address_compute_hash, temp_slot_address_hash,
17854 temp_slot_address_eq, insert_temp_slot_address): Support functions
17856 (find_temp_slot_from_address): Rewrite to use the new hash table.
17857 (remove_unused_temp_slot_addresses): Remove addresses of temp
17858 slots that have been made available.
17859 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
17860 worker function for remove_unused_temp_slot_addresses.
17861 (assign_stack_temp_for_type): Don't clear the temp slot address list.
17862 Add the temp slot address to the address -> temp slot map.
17863 (update_temp_slot_address): Update via insert_temp_slot_address.
17864 (free_temp_slots): Call remove_unused_temp_slot_addresses.
17865 (pop_temp_slots): Likewise.
17866 (init_temp_slots): Allocate the address -> temp slot map, or empty
17867 the map if it is already allocated.
17868 (prepare_function_start): Initialize temp slot processing.
17870 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
17872 PR middle-end/38584
17873 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
17874 Calculate the size of all stack vars assuming no packing of stack
17875 vars will happen, replacing a quadratic algorithm with a linear one.
17877 2009-01-03 Jakub Jelinek <jakub@redhat.com>
17880 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
17883 2009-01-03 Diego Novillo <dnovillo@google.com>
17885 * doc/contrib.texi: Update contributions.
17887 2009-01-03 Jakub Jelinek <jakub@redhat.com>
17890 * builtins.c (fold_builtin_memory_op): Give up if either operand
17891 is volatile. Set srctype or desttype to non-qualified version
17895 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
17896 and FUNCTION_DECLs.
17898 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
17900 PR rtl-optimization/35805
17901 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
17902 problem if fast dce is able to remove any instructions.
17903 * dce.c (dce_process_block): Fix dump message.
17905 2009-01-02 Mark Mitchell <mark@codesourcery.com>
17908 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
17910 2009-01-02 Jakub Jelinek <jakub@redhat.com>
17912 PR middle-end/38690
17913 * tree-flow.h (op_code_prio, op_prio): New prototypes.
17914 * tree-pretty-print.c (op_code_prio): New function.
17915 (op_prio): No longer static. Use op_code_prio.
17916 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
17917 Use op_prio and op_code_prio to determine if () should be
17918 printed around operand(s) or not.
17920 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
17921 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
17922 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
17923 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
17924 pp_character instead of pp_string for single letter printing.
17926 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17928 * doc/extend.texi: Fix '#pragma GCC option' typo.
17930 2009-01-02 Richard Guenther <rguenther@suse.de>
17932 * doc/install.texi (--enable-checking): Mention different
17933 default for stage1.
17934 (--enable-stage1-checking): Document.
17936 2009-01-01 Andrew Pinski <pinskia@gmail.com>
17938 PR middle-end/30142
17939 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
17940 case to be an error.
17942 2009-01-02 Ben Elliston <bje@au.ibm.com>
17944 * config/fp-bit.h (pack_d): Constify argument.
17945 * config/fp-bit.c (makenan): Constify return type. Remove casts.
17946 (isnan): Constify argument.
17948 (iszero): Likewise.
17949 (pack_d): Likewise.
17950 (_fpadd_parts): Constify return type.
17951 (_fpmul_parts): Likewise.
17952 (_fpdiv_parts): Likewise.
17954 2009-01-01 Jakub Jelinek <jakub@redhat.com>
17957 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
17958 warn about overwriting initializer with side-effects or
17959 -Woverride-init if !IMPLICIT.
17960 (output_init_element): Likewise. Pass IMPLICIT down to
17962 (process_init_element): Add IMPLICIT argument. Pass it down
17963 to output_init_element.
17964 (push_init_element, pop_init_level, set_designator): Adjust
17965 process_init_element callers.
17966 (set_nonincremental_init, set_nonincremental_init_from_string):
17967 Adjust add_pending_init callers.
17968 (output_pending_init_elements): Adjust output_init_element callers.
17969 * c-tree.h (process_init_element): Adjust prototype.
17970 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
17971 process_init_element callers.
17974 Copyright (C) 2009 Free Software Foundation, Inc.
17976 Copying and distribution of this file, with or without modification,
17977 are permitted in any medium without royalty provided the copyright
17978 notice and this notice are preserved.