1 2011-02-03 Jakub Jelinek <jakub@redhat.com>
3 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
4 * config/darwin.c (SECTION_NO_ANCHOR): Define.
5 (darwin_init_sections): Remove assertion.
7 2011-02-03 Nick Clifton <nickc@redhat.com>
9 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than
13 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14 instead of "n" and "pz".
15 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
18 2011-02-03 Jakub Jelinek <jakub@redhat.com>
21 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
22 fma, expand FMA_EXPR as fma{,f,l} call.
25 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
26 copy them into a unsigned char variable and pass address of it to
27 lto_output_data_stream.
30 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
31 around backend_init_target and lang_dependent_init_target calls.
32 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
33 (verify_cgraph_node): Don't call set_cfun here. Use
34 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
35 Set error_found for incorrectly represented calls to thunks.
37 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
40 PR rtl-optimization/43494
41 * rtl.h (for_each_inc_dec_fn): New type.
42 (for_each_inc_dec): Declare.
43 * rtlanal.c (struct for_each_inc_dec_ops): New type.
44 (for_each_inc_dec_find_inc_dec): New fn.
45 (for_each_inc_dec_find_mem): New fn.
46 (for_each_inc_dec): New fn.
47 * dse.c (struct insn_size): Remove.
48 (replace_inc_dec, replace_inc_dec_mem): Remove.
49 (emit_inc_dec_insn_before): New fn.
50 (check_for_inc_dec): Use it, along with for_each_inc_dec.
51 (canon_address): Pass mem modes to cselib_lookup.
52 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
53 (cselib_lookup_from_insn): Likewise.
54 (cselib_subst_to_values): Likewise.
55 * cselib.c (find_slot_memmode): New var.
56 (cselib_find_slot): New fn. Use it instead of
57 htab_find_slot_with_hash everywhere.
58 (entry_and_rtx_equal_p): Use find_slot_memmode.
59 (autoinc_split): New fn.
60 (rtx_equal_for_cselib_p): Rename and implement in terms of...
61 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
62 Deal with autoinc. Special-case recursion into MEMs.
63 (cselib_hash_rtx): Likewise.
64 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
65 address and MEM modes.
66 (cselib_subst_to_values): Add memmode, pass it on.
68 (cselib_lookup): Add memmode argument, pass it on.
69 (cselib_lookup_from_insn): Add memmode.
70 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
71 (struct cselib_record_autoinc_data): New.
72 (cselib_record_autoinc_cb): New fn.
73 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
74 mode to cselib_lookup. Reset autoinced REGs here instead of...
75 (cselib_process_insn): ... here.
76 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
78 (add_uses): Likewise, also to cselib_subst_to_values.
79 (add_stores): Likewise.
80 * sched-deps.c (add_insn_mem_dependence): Pass mode to
81 cselib_subst_to_values.
82 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
83 * gcse.c (do_local_cprop): Adjusted.
84 * postreload.c (reload_cse_simplify_set): Adjusted.
85 (reload_cse_simplify_operands): Adjusted.
86 * sel-sched-dump (debug_mem_addr_value): Pass mode.
88 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
90 PR tree-optimization/45122
91 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
92 unsafe assumptions when there's more than one loop exit.
94 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
97 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
98 Document using vector double with the load/store builtins, and
99 that the load/store builtins always use Altivec instructions.
101 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
102 to use altivec memory instructions, even on VSX.
103 (vector_altivec_store_<mode>): Ditto.
105 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
108 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
109 V2DF, V2DI support to load/store overloaded builtins.
111 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
112 altivec load/store builtins for V2DF/V2DI types.
114 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
115 set avoid indexed addresses on power6 if -maltivec.
116 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
117 vector_altivec_load/vector_altivec_store builtins.
118 (altivec_expand_st_builtin): Ditto.
119 (altivec_expand_builtin): Add VSX memory builtins.
120 (rs6000_init_builtins): Add V2DI types to internal types.
121 (altivec_init_builtins): Add support for V2DF/V2DI altivec
123 (rs6000_address_for_altivec): Insure memory address is appropriate
126 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
127 vec_vsx_ld and vec_vsx_st.
128 (vsx_store_<mode>): Ditto.
130 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
131 variables to hold long long types for VSX vector memory builtins.
132 (RS6000_BTI_unsigned_long_long): Ditto.
133 (long_long_integer_type_internal_node): Ditti.
134 (long_long_unsigned_type_internal_node): Ditti.
136 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
137 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
138 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
140 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
144 2011-02-02 Joseph Myers <joseph@codesourcery.com>
146 * config/pa/pa-hpux10.opt: New.
147 * config/hpux11.opt (pthread): New Driver option.
148 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
149 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
151 2011-02-02 Joseph Myers <joseph@codesourcery.com>
153 * config/ia64/vms.opt: New.
154 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
156 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
159 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
160 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
162 (vsx_floatuns<VSi><mode>2): Ditto.
163 (vsx_fix_trunc<mode><VSi>2): Ditto.
164 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
166 2011-02-02 Joseph Myers <joseph@codesourcery.com>
168 * config/i386/djgpp.opt (posix): New Driver option.
170 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
172 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
173 Move to the unsupported targets list.
175 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
177 PR rtl-optimization/47525
178 * df-scan.c: Update copyright years.
179 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
180 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
182 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
184 * config/i386/sysv4.h (TARGET_VERSION): Remove.
185 (SUBTARGET_RETURN_IN_MEMORY): Remove.
186 (ASM_OUTPUT_ASCII): Remove.
187 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
189 2011-02-02 Jeff Law <law@redhat.com>
192 * reload.c (find_reloads_address): Handle reg+d address where both
193 components are invalid by reloading the entire address.
195 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
196 Richard Guenther <rguenther@suse.de>
198 PR tree-optimization/40979
200 * passes.c (init_optimization_passes): After LIM call copy_prop
202 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
204 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
206 PR tree-optimization/47576
207 PR tree-optimization/47555
208 * doc/invoke.texi (scev-max-expr-complexity): Documented.
209 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
210 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
211 * tree-scalar-evolution.c (follow_ssa_edge): Use
212 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
214 2011-02-02 Richard Guenther <rguenther@suse.de>
216 PR tree-optimization/47566
217 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
219 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
223 * tree-inline.c (declare_return_variable): Remove unused caller
228 * tree-flow-inline.h (clear_is_used, is_used_p): New.
229 * cfgexpand.c (account_used_vars_for_block): Use them.
230 * tree-nrv.c (tree_nrv): Likewise.
231 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
232 (dump_scope_block): Likewise.
233 (remove_unused_locals): Likewise.
237 * tree-inline.c (declare_return_variable): Add result decl to
238 local decls only once.
239 * gimple-low.c (record_vars_into): Mark newly-created variables
242 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
248 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
250 (no_real_insns_p, schedule_block, set_priorities): Drop special
251 treatment of boundary debug insns.
252 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
254 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
255 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
256 (BOUNDARY_DEBUG_INSN_P): Likewise.
257 (SCHEDULE_DEBUG_INSN_P): Likewise.
258 * sched-rgn.c (init_ready_list): Drop special treatment of
259 boundary debug insns.
260 * final.c (rest_of_clean_state): Clear notes' BB.
262 2011-02-01 Joseph Myers <joseph@codesourcery.com>
264 * config/openbsd.opt (assert=): New Driver option.
266 2011-02-01 Joseph Myers <joseph@codesourcery.com>
268 * config/i386/nto.opt: New.
269 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
271 2011-02-01 Joseph Myers <joseph@codesourcery.com>
273 * config/i386/netware.opt: New.
274 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
276 2011-02-01 Joseph Myers <joseph@codesourcery.com>
278 * config/interix.opt (posix): New Driver option.
280 2011-02-01 DJ Delorie <dj@redhat.com>
282 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
284 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
287 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
289 PR tree-optimization/47561
290 * toplev.c (process_options): Print the Graphite flags. Add
291 flag_loop_flatten to the list of options requiring Graphite.
293 2011-02-01 Joseph Myers <joseph@codesourcery.com>
295 * config/i386/cygming.opt (posix): New Driver option.
297 2011-02-01 Joseph Myers <joseph@codesourcery.com>
299 * config/arm/vxworks.opt: New.
300 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
302 2011-02-01 Joseph Myers <joseph@codesourcery.com>
304 * config/alpha/elf.opt: New.
305 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
306 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
308 2011-02-01 Richard Guenther <rguenther@suse.de>
310 PR tree-optimization/47559
311 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
312 store-motion on references that can throw.
314 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
316 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
317 * tree-pass.h (TDF_CSELIB): New macro.
318 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
319 cselib_lookup): Check for it rather than for TDF_DETAILS.
321 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
324 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
327 * opts.c (finish_options): Don't add x_aux_base_name if it is
330 2011-02-01 Richard Guenther <rguenther@suse.de>
332 PR tree-optimization/47555
334 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
336 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
338 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
341 * config/lm32/t-lm32: Add multilib for all CPU options.
343 2011-02-01 Richard Guenther <rguenther@suse.de>
345 PR tree-optimization/47541
346 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
347 sure to have a field at offset zero.
349 2011-01-31 Joseph Myers <joseph@codesourcery.com>
351 * config/arc/arc.opt (EB, EL): New Driver options.
353 2011-01-31 Joseph Myers <joseph@codesourcery.com>
355 * config/alpha/osf5.opt: New.
356 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
358 2011-01-31 Joseph Myers <joseph@codesourcery.com>
360 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
362 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
364 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
366 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
367 is an alias of -floop-interchange and that it requires the
368 Graphite infrastructure.
369 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
370 flag_loop_interchange based on the value of flag_tree_loop_linear.
372 2011-01-31 Jakub Jelinek <jakub@redhat.com>
373 Richard Guenther <rguenther@suse.de>
375 PR tree-optimization/47538
376 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
377 type instead of r1type, except for comparisons. For right
378 shifts and comparisons punt if there are mismatches in
379 sizetype vs. non-sizetype types.
381 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
383 * doc/sourcebuild.texi (Effective-Target Keywords): Document
386 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
388 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
390 * configure: Regenerate.
392 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394 * configure.ac (gcc_cv_ld_static_option): Define.
395 (gcc_cv_ld_dynamic_option): Define.
396 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
398 (HAVE_LD_STATIC_DYNAMIC): Update message.
399 (LD_STATIC_OPTION): Define.
400 (LD_DYNAMIC_OPTION): Define.
401 * configure: Regenerate.
402 * config.in: Regenerate.
403 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
404 HAVE_LD_STATIC_DYNAMIC]: Use them.
406 2011-01-31 Nick Clifton <nickc@redhat.com>
408 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
409 registers inside interrupt handlers if the handler is not a leaf
412 2011-01-31 Nick Clifton <nickc@redhat.com>
414 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
415 reg_renumber returning an INVALID_REGNUM.
417 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
420 * doc/install.texi: Document host options discarded when cross
421 configuring target libraries.
423 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
426 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
429 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
431 (no_real_insns_p, schedule_block, set_priorities): Drop special
432 treatment of boundary debug insns.
433 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
435 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
436 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
437 (BOUNDARY_DEBUG_INSN_P): Likewise.
438 (SCHEDULE_DEBUG_INSN_P): Likewise.
439 * sched-rgn.c (init_ready_list): Drop special treatment of
440 boundary debug insns.
441 * final.c (rest_of_clean-state): Clear notes' BB.
443 2011-01-31 Alan Modra <amodra@gmail.com>
445 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
446 toc relative expressions as we do in print_operand_address.
448 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
450 * doc/extend.texi: Follow spelling conventions.
451 * doc/invoke.texi: Fix a typo.
453 2011-01-30 Joseph Myers <joseph@codesourcery.com>
455 * config/hpux11.opt: New.
456 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
457 ia64*-*-hpux*): Use hpux11.opt.
459 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
461 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
464 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
466 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
469 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
471 * doc/install.texi (Binaries): Remove outdated reference for
472 Motorola 68HC11/68HC12 downloads.
474 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
476 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
479 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
482 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
485 2011-01-28 Ahmad Sharif <asharif@google.com>
487 * value-prof.c (check_counter): Corrected error message.
489 2011-01-29 Jie Zhang <jie@codesourcery.com>
491 * config/arm/arm.c (arm_legitimize_reload_address): New.
492 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
493 arm_legitimize_reload_address.
494 * config/arm/arm-protos.h (arm_legitimize_reload_address):
497 2011-01-28 Ian Lance Taylor <iant@google.com>
499 * godump.c (go_define): Ignore macros whose definitions include
500 two adjacent operands.
502 2011-01-28 Jakub Jelinek <jakub@redhat.com>
505 * varasm.c (force_const_mem): Store copy of x in desc->constant
507 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
508 itself into REG_EQUAL note.
510 2011-01-28 Joseph Myers <joseph@codesourcery.com>
512 * config/freebsd.opt (posix, rdynamic): New Driver options.
514 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
516 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
518 * configure: Regenerate.
520 2011-01-27 Joseph Myers <joseph@codesourcery.com>
522 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
523 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
525 2011-01-27 Anatoly Sokolov <aesok@post.ru>
527 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
528 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
529 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
530 (s390_preferred_reload_class): Make static. Change return and
531 'rclass' argument type to reg_class_t.
533 2011-01-27 Jan Hubicka <jh@suse.cz>
536 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
537 (process_function_and_variable_attributes): Check defined weakrefs.
539 2011-01-27 Martin Jambor <mjambor@suse.cz>
541 PR tree-optimization/47228
542 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
543 build_ref_for_offset.
545 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
547 * config/spu/spu-elf.h (ASM_SPEC): Remove.
549 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
551 PR rtl-optimization/46856
552 * postreload.c (reload_combine_recognize_const_pattern): Do not
553 separate cc0 setter and user on cc0 targets.
555 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
558 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
559 passed a VOID_TYPE expression, immediately emit an error and
560 return error_mark_node.
562 2011-01-26 Jeff Law <law@redhat.com>
564 PR rtl-optimization/47464
565 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
566 rather than may_trap_p as needed.
568 2011-01-26 DJ Delorie <dj@redhat.com>
570 PR rtl-optimization/46878
571 * combine.c (insn_a_feeds_b): Check for the implicit cc0
572 setter/user dependency as well.
574 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
576 PR rtl-optimization/44469
577 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
578 after removing trivially dead basic blocks.
580 2011-01-26 Joseph Myers <joseph@codesourcery.com>
582 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
583 * config/frv/frv.h (LINK_SPEC): Likewise.
584 * config/i386/netware.h (LINK_SPEC): Likewise.
585 * config/m68k/linux.h (ASM_SPEC): Likewise.
586 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
587 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
588 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
589 * config/sparc/linux.h (ASM_SPEC): Likewise.
590 * config/sparc/linux64.h (ASM_SPEC): Likewise.
591 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
593 2011-01-26 Joseph Myers <joseph@codesourcery.com>
595 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
596 * config/frv/frv.h (ASM_SPEC): Likewise.
597 * config/m68k/linux.h (ASM_SPEC): Likewise.
598 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
599 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
600 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
601 * config/sparc/linux.h (ASM_SPEC): Likewise.
602 * config/sparc/linux64.h (ASM_SPEC): Likewise.
603 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
605 2011-01-26 Joseph Myers <joseph@codesourcery.com>
607 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
608 * config/frv/frv.h (LINK_SPEC): Likewise.
609 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
611 2011-01-26 Joseph Myers <joseph@codesourcery.com>
613 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
614 * config/frv/frv.h (ASM_SPEC): Likewise.
615 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
616 * config/m68k/linux.h (ASM_SPEC): Likewise.
617 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
618 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
619 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
620 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
621 * config/sparc/linux.h (ASM_SPEC): Likewise.
622 * config/sparc/linux64.h (ASM_SPEC): Likewise.
623 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
624 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
626 2011-01-26 Steve Ellcey <sje@cup.hp.com>
629 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
631 (vec_extract_evenodd_help): Ditto.
632 (vec_extract_evenv4hi): Ditto.
633 (vec_extract_oddv4hi): Ditto.
634 (vec_interleave_lowv2si): Ditto.
635 (vec_interleave_highv2si): Ditto.
636 (vec_extract_evenv2si): Ditto.
637 (vec_extract_oddv2si: Ditto.
638 (vec_pack_trunc_v2si): Ditto.
640 2011-01-22 Jan Hubicka <jh@suse.cz>
643 * cgraph.h (cgraph_local_info): New field can_change_signature.
644 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
645 signature can change.
646 (ipcp_estimate_growth): Call sequence simplify only if calle signature
648 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
649 (cgraph_function_versioning): We can not change signature of functions
650 that don't allow that.
651 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
652 (lto_input_node): Likewise.
653 * ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
654 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
655 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
656 that can not change signature.
657 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
658 init_cumulative_args): Do not use local calling conventions for functions
659 that can not change signature.
661 2011-01-22 Jan Hubicka <jh@suse.cz>
663 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
665 2011-01-26 Richard Guenther <rguenther@suse.de>
667 PR tree-optimization/47190
668 * cgraphunit.c (process_common_attributes): New function.
669 (process_function_and_variable_attributes): Use it.
671 2011-01-26 Richard Guenther <rguenther@suse.de>
674 * cgraphbuild.c (record_eh_tables): Record reference to personality
677 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
680 * sel-sched.c (moveup_expr): Don't let debug insns prevent
681 non-debug insns from moving up.
683 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
686 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
687 t-dlldir{,-x} fragment for build and add it to tmake_file.
688 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
689 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
690 * config/i386/t-dlldir: New file.
691 (SHLIB_DLLDIR): Define.
692 * config/i386/t-dlldir-x: New file.
693 (SHLIB_DLLDIR): Define.
694 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
695 (SHLIB_INSTALL): Use it.
697 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
700 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
701 lower bound of the allowed Thumb-2 coprocessor load/store
702 index range to -256. Add explaining comment.
704 2011-01-25 Ian Lance Taylor <iant@google.com>
706 * godump.c (go_define): Improve lexing of macro expansion to only
707 accept expressions which match Go spec.
709 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
712 * tree.c (handle_dll_attribute): Handle it.
713 * doc/extend.texi (@item dllexport): Mention it.
714 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
716 2011-01-25 Ian Lance Taylor <iant@google.com>
718 PR tree-optimization/26854
719 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
720 (decl_jump_unsafe): Move higher in file, with no other change.
721 (bind): Set has_jump_unsafe_decl if appropriate.
722 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
723 (check_earlier_gotos): Likewise.
724 (c_check_switch_jump_warnings): Likewise.
726 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
728 * doc/invoke.texi (Warning Options): Add missing hyphen.
729 (-fprofile-dir): Minor grammatical fixes.
730 (-fbranch-probabilities): Likewise.
732 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
736 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
738 (no_real_insns_p, schedule_block, set_priorities): Drop special
739 treatment of boundary debug insns.
740 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
742 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
743 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
744 (BOUNDARY_DEBUG_INSN_P): Likewise.
745 (SCHEDULE_DEBUG_INSN_P): Likewise.
746 * sched-rgn.c (init_ready_list): Drop special treatment of
747 boundary debug insns.
748 * final.c (rest_of_clean-state): Clear notes' BB.
750 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
752 * Makefile.in (LAMBDA_H): Removed.
753 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
754 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
755 lambda-trans.o, and tree-loop-linear.o.
756 (lto-symtab.o): Remove dependence on LAMBDA_H.
757 (tree-loop-linear.o): Remove rule.
758 (lambda-mat.o): Same.
759 (lambda-trans.o): Same.
760 (lambda-code.o): Same.
761 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
762 (tree-vect-slp.o): Same.
763 * hwint.h (gcd): Moved here.
764 (least_common_multiple): Same.
765 * lambda-code.c: Removed.
766 * lambda-mat.c: Removed.
767 * lambda-trans.c: Removed.
769 * tree-loop-linear.c: Removed.
770 * lto-symtab.c: Do not include lambda.h.
771 * omega.c (gcd): Removed.
772 * passes.c (init_optimization_passes): Remove pass_linear_transform.
773 * tree-data-ref.c (print_lambda_vector): Moved here.
774 (lambda_vector_copy): Same.
775 (lambda_matrix_copy): Same.
776 (lambda_matrix_id): Same.
777 (lambda_vector_first_nz): Same.
778 (lambda_matrix_row_add): Same.
779 (lambda_matrix_row_exchange): Same.
780 (lambda_vector_mult_const): Same.
781 (lambda_vector_negate): Same.
782 (lambda_matrix_row_negate): Same.
783 (lambda_vector_equal): Same.
784 (lambda_matrix_right_hermite): Same.
785 * tree-data-ref.h: Do not include lambda.h.
786 (lambda_vector): Moved here.
787 (lambda_matrix): Same.
788 (dependence_level): Same.
789 (lambda_transform_legal_p): Removed declaration.
790 (lambda_collect_parameters): Same.
791 (lambda_compute_access_matrices): Same.
792 (lambda_vector_gcd): Same.
793 (lambda_vector_new): Same.
794 (lambda_vector_clear): Same.
795 (lambda_vector_lexico_pos): Same.
796 (lambda_vector_zerop): Same.
797 (lambda_matrix_new): Same.
798 * tree-flow.h (least_common_multiple): Removed declaration.
799 * tree-parloops.c (lambda_trans_matrix): Moved here.
803 (LTM_DENOMINATOR): Same.
804 (lambda_trans_matrix_new): Same.
805 (lambda_matrix_vector_mult): Same.
806 (lambda_transform_legal_p): Same.
807 * tree-pass.h (pass_linear_transform): Removed declaration.
808 * tree-ssa-loop.c (tree_linear_transform): Removed.
809 (gate_tree_linear_transform): Removed.
810 (pass_linear_transform): Removed.
811 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
812 flag_loop_interchange.
814 2011-01-25 Jakub Jelinek <jakub@redhat.com>
816 PR tree-optimization/47265
817 PR tree-optimization/47443
818 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
819 if name still has some uses.
821 2011-01-25 Martin Jambor <mjambor@suse.cz>
823 PR tree-optimization/47382
824 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
825 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
827 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
829 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
830 sjlj_except_unwind_info.
832 2011-01-25 Richard Guenther <rguenther@suse.de>
834 PR tree-optimization/47426
835 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
836 visible functions results escape.
838 2011-01-25 Jakub Jelinek <jakub@redhat.com>
841 * config/arm/arm.c (any_sibcall_uses_r3): New function.
842 (arm_get_frame_offsets): Use it.
844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
845 Jakub Jelinek <jakub@redhat.com>
847 PR tree-optimization/47271
848 * tree-if-conv.c (bb_postdominates_preds): New.
849 (if_convertible_bb_p): Call bb_postdominates_preds.
850 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
851 (predicate_scalar_phi): Call bb_postdominates_preds.
853 2011-01-25 Nick Clifton <nickc@redhat.com>
855 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
856 * config/rx/rx.c (rx_function_value): Likewise.
857 (rx_promote_function_mode): Likewise.
858 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
859 in order to make it legitimate.
860 * config/rx/rx.md (adddi3_internal): If the second operand is a
861 MEM make sure that the first operand is the same as the result
863 (addsi3_unspec): Delete.
864 (subdi3): Do not accept immediate operands.
865 (subdi3_internal): Likewise.
867 2011-01-25 Jeff Law <law@redhat.com>
869 PR rtl-optimization/37273
870 * ira-costs.c (scan_one_insn): Detect constants living in memory and
871 handle them like argument loads from stack slots. Do not double
872 count memory for memory constants and argument loads from stack slots.
874 2011-01-25 Jakub Jelinek <jakub@redhat.com>
876 PR tree-optimization/47427
877 PR tree-optimization/47428
878 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
879 coalesce if the new root var would be TREE_READONLY.
881 2011-01-25 Richard Guenther <rguenther@suse.de>
884 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
885 correct type for TBAA.
887 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
889 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
890 (close_phi_written_to_memory): Call for_each_index with
891 dr_indices_valid_in_loop.
893 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
895 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
896 when it is initialized.
898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
900 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
901 call to graphite_find_data_references_in_stmt.
902 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
903 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
904 call to graphite_find_data_references_in_stmt.
905 (analyze_drs_in_stmts): Same.
906 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
907 in which the scalar analysis of indices is performed.
908 (create_data_ref): Same. Update call to dr_analyze_indices.
909 (find_data_references_in_stmt): Update call to create_data_ref.
910 (graphite_find_data_references_in_stmt): Same.
911 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
913 (create_data_ref): Same.
914 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
915 call to create_data_ref.
917 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
919 * graphite-sese-to-poly.c (build_poly_scop): Move
920 rewrite_commutative_reductions_out_of_ssa before
921 find_scop_parameters.
923 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
925 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
926 VAR_DECL, PARM_DECL, and RESULT_DECL.
928 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
930 * graphite-dependences.c (reduction_dr_1): Allow several reductions
932 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
933 that have already been marked as PBB_IS_REDUCTION.
935 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
937 * graphite-scop-detection.c (same_close_phi_node): New.
938 (remove_duplicate_close_phi): New.
939 (make_close_phi_nodes_unique): New.
940 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
942 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
944 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
945 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
946 of both data references to be the same.
948 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
950 * graphite-dependences.c (build_lexicographical_constraint): Remove the
952 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
953 (dependence_polyhedron): Same.
954 (graphite_legal_transform_dr): Same.
955 (graphite_carried_dependence_level_k): Same.
956 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
957 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
959 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
961 * graphite-sese-to-poly.c
962 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
963 (close_phi_written_to_memory): New.
964 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
967 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
969 * doc/install.texi: Update the expected version number of PPL to 0.11.
970 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
971 #if PPL_VERSION_MINOR < 11.
973 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
975 * graphite-dependences.c: Include graphite-cloog-util.h.
976 (new_poly_ddr): Inlined into dependence_polyhedron.
977 (free_poly_ddr): Moved close by new_poly_ddr.
978 (dependence_polyhedron_1): Renamed dependence_polyhedron.
979 Early return NULL when ppl_powerset_is_empty returns true.
980 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
981 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
982 (graphite_legal_transform_dr): Call new_poly_ddr.
983 (graphite_carried_dependence_level_k): Same.
984 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
985 (dot_transformed_deps_stmt_1): Removed.
986 (dot_deps_stmt_1): Call dot_deps_stmt_2.
987 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
988 (dot_deps_1): Call dot_deps_2.
989 * Makefile.in (graphite-dependences.o): Add missing dependence on
990 graphite-cloog-util.h.
992 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
994 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
995 (build_lexicographical_constraint): Same.
996 (dependence_polyhedron_1): Same.
997 (graphite_legal_transform_dr): Same.
998 (graphite_carried_dependence_level_k): Same.
999 * graphite-ppl.c (ppl_powerset_is_empty): New.
1000 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
1001 * tree-data-ref.c (dump_data_reference): Print the basic block index.
1003 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1005 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
1006 the "a followed by b" relation and document it.
1008 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1010 * graphite-dependences.c (build_lexicographical_constraint): Stop the
1011 iteration when the bag of constraints is empty.
1013 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1015 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
1017 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1019 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
1020 nest and two loop depths as parameters.
1021 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
1022 lst_perfect_nestify.
1024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1026 * graphite-dependences.c (print_pddr): Call
1027 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
1029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1031 * graphite-ppl.c (debug_gmp_value): New.
1032 * graphite-ppl.h (debug_gmp_value): Declared.
1034 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
1036 * doc/install.texi: Document availability of cloog-0.16.
1038 2011-01-25 Vladimir Kargov <kargov@gmail.com>
1040 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
1041 invalid postdominance info.
1043 2011-01-24 Jan Hubicka <jh@suse.cz>
1046 * doc/extend.texi (weak pragma): Drop claim that it must
1047 appear before definition.
1048 * varasm.c (merge_weak, declare_weak): Only sanity check
1049 that DECL is not output at a time it is declared weak.
1051 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
1053 * machmode.def: Fixed comments.
1055 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
1057 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
1059 2011-01-24 Paul Koning <ni1d@arrl.net>
1061 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1064 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
1067 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
1068 (block_info): Add scanned and prev.
1069 (move_or_delete_vzeroupper_2): Return if the basic block
1070 has been scanned and the upper 128bit state is unchanged
1072 (move_or_delete_vzeroupper_1): Return true if the exit
1074 (move_or_delete_vzeroupper): Visit basic blocks using the
1075 work-list based algorithm based on vt_find_locations in
1078 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
1080 2011-01-24 Nick Clifton <nickc@redhat.com>
1082 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
1083 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
1084 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
1085 then define __v850e1__.
1086 * doc/invoke.texi: Document -mv850es.
1088 2011-01-24 Richard Henderson <rth@redhat.com>
1090 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
1091 compound unordered comparisons.
1092 * config/rx/rx.c (rx_split_fp_compare): Remove.
1093 * config/rx/rx-protos.h: Update.
1094 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
1095 (cbranchsf4): Don't call rx_split_fp_compare.
1096 (*cbranchsf4): Use rx_split_cbranch.
1097 (*cmpsf): Don't accept "i" constraint.
1098 (*conditional_branch): Only valid after reload.
1099 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
1101 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1104 * config/rs6000/altivec.md (vector constant splitters): Add
1105 support for creating vector single precision constants if -mvsx is
1106 used and we would create the constant using Altivec primitives.
1108 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
1109 Richard Sandiford <rdsandiford@googlemail.com>
1111 PR rtl-optimization/47166
1112 * reload1.c (emit_reload_insns): Disable the spill_reg_store
1113 mechanism for PRE_MODIFY and POST_MODIFY.
1114 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
1117 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
1119 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
1121 2011-01-22 Jan Hubicka <jh@suse.cz>
1124 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
1126 2011-01-22 Jan Hubicka <jh@suse.cz>
1128 PR tree-optimization/43884
1130 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
1131 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
1133 2011-01-22 Anatoly Sokolov <aesok@post.ru>
1135 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1136 * config/s390/s390.c (s390_register_move_cost,
1137 s390_memory_move_cost): New.
1138 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1140 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1143 * except.c (sjlj_assign_call_site_values): Move setting the
1144 crtl->uses_eh_lsda flag to ...
1145 (sjlj_mark_call_sites): ... here.
1146 (sjlj_emit_function_enter): Support NULL dispatch label.
1147 (sjlj_build_landing_pads): In a function with no landing pads
1148 that still has must-not-throw regions, generate code to register
1149 a personality function with empty LSDA.
1151 2011-01-21 Richard Henderson <rth@redhat.com>
1153 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
1155 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
1157 * compare-elim.c: New file.
1158 * Makefile.in (OBJS-common): Add it.
1159 (compare-elim.o): New.
1160 * common.opt (fcompare-elim): New.
1161 * opts.c (default_options_table): Add OPT_fcompare_elim.
1162 * tree-pass.h (pass_compare_elim_after_reload): New.
1163 * passes.c (init_optimization_passes): Add it.
1164 * recog.h: Protect against re-inclusion.
1165 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
1166 * doc/invoke.texi (-fcompare-elim): Document it.
1167 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
1168 * doc/tm.texi: Rebuild.
1170 2011-01-22 Nick Clifton <nickc@redhat.com>
1172 * config/rx/rx.md (cstoresf4): Pass comparison operator to
1173 rx_split_fp_compare.
1175 2011-01-22 Nick Clifton <nickc@redhat.com>
1177 * config/rx/rx.md (UNSPEC_CONST): New.
1178 (deallocate_and_return): Wrap the amount popped off the stack in
1179 an UNSPEC_CONST in order to stop it being rejected by
1180 -mmax-constant-size.
1181 (pop_and_return): Add a "(return)" rtx.
1182 (call): Drop the immediate operand.
1183 (call_internal): Likewise.
1184 (call_value): Likewise.
1185 (call_value_internal): Likewise.
1186 (sibcall_internal): Likewise.
1187 (sibcall_value_internal): Likewise.
1188 (sibcall): Likewise. Generate an explicit call using
1190 (sibcall_value): Likewise.
1191 (mov<>): FAIL if a constant operand is not legitimate.
1192 (addsi3_unpsec): New pattern.
1194 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
1196 (ok_for_max_constant): New function.
1197 (gen_safe_add): New function.
1198 (rx_expand_prologue): Use gen_safe_add.
1199 (rx_expand_epilogue): Likewise.
1200 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
1203 2011-01-21 Jeff Law <law@redhat.com>
1205 PR tree-optimization/47053
1206 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
1207 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
1208 statements are deleted.
1209 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
1210 is nonempty, then purge dead edges and cleanup the CFG.
1212 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
1216 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
1218 * tree-dfa.c (create_var_ann): Mark variable as used.
1220 2011-01-21 Jakub Jelinek <jakub@redhat.com>
1223 * except.c (convert_to_eh_region_ranges): Emit queued no-region
1224 notes from other section in hot/cold partitioning even if
1225 last_action is -3. Increment call_site_base.
1227 PR rtl-optimization/47366
1228 * fwprop.c (forward_propagate_into): Return bool. If
1229 any changes are made, -fnon-call-exceptions is used and
1230 REG_EH_REGION note is present, call purge_dead_edges
1231 and return true if it purged anything.
1232 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
1233 any EH edges were purged.
1235 2011-01-21 Jeff Law <law@redhat.com>
1237 PR rtl-optimization/41619
1238 * caller-save.c (setup_save_areas): Break out code to determine
1239 which hard regs are live across calls by examining the reload chains
1240 so that it is always used.
1241 Eliminate code which checked REG_N_CALLS_CROSSED.
1243 2011-01-21 Jakub Jelinek <jakub@redhat.com>
1245 PR tree-optimization/47355
1246 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
1247 NOP has non-debug uses beyond PHIs in new_bb.
1249 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
1252 * cfgexpand.c (account_used_vars_for_block): Only account vars
1253 that are annotated as used.
1254 (estimated_stack_frame_size): Don't set TREE_USED.
1255 * tree-dfa.c (create_var_ann): Mark variable as used.
1257 2011-01-21 Richard Guenther <rguenther@suse.de>
1260 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
1262 2011-01-21 Richard Guenther <rguenther@suse.de>
1264 PR tree-optimization/47365
1265 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
1266 (vn_reference_lookup_pieces): Adjust.
1267 (vn_reference_lookup): Likewise.
1268 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
1269 (vn_reference_lookup_3): Only look through kills if in
1270 VN_WALKREWRITE mode.
1271 (vn_reference_lookup_pieces): Adjust.
1272 (vn_reference_lookup): Likewise.
1273 (visit_reference_op_load): Likewise.
1274 (visit_reference_op_store): Likewise.
1275 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
1276 (compute_avail): Likewise.
1277 (eliminate): Likewise.
1279 2011-01-21 Jakub Jelinek <jakub@redhat.com>
1281 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
1282 DECL_IGNORED_P non-reg vars if they are used.
1284 PR tree-optimization/47391
1285 * varpool.c (const_value_known_p): Return false if
1288 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
1291 * config/i386/i386.c (ix86_local_alignment): Handle
1292 case for va_list_type_node is nil.
1293 (ix86_canonical_va_list_type): Likewise.
1295 2011-01-21 Alan Modra <amodra@gmail.com>
1297 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
1298 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
1300 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1302 * config/arm/arm.md (define_attr type): Rename f_load
1303 and f_store to f_fpa_load and f_fpa_store. Update.
1304 (write_conflict): Deal with rename fallout.
1305 (*push_fp_multi): Likewise.
1306 * config/arm/fpa.md (f_load): Use f_fpa_load.
1307 (f_store): Use f_fpa_store.
1308 (*movsf_fpa): Likewise.
1309 (*movdf_fpa): Likewise.
1310 (*movxf_fpa): Likewise.
1311 (*thumb2_movsf_fpa): Likewise.
1312 (*thumb2_movdf_fpa): Likewise.
1313 (*thumb2_movxf_fpa): Likewise.
1314 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
1315 f_loadd and f_stored.
1316 (*thumb2_movdi_vfp): Likewise.
1317 (*thumb2_movsf_vfp): Fix attribute to f_loads.
1318 (*thumb2_movsi_vfp): Likewise.
1319 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
1320 Use f_loads instead of f_load.
1321 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
1323 2011-01-20 Anatoly Sokolov <aesok@post.ru>
1325 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1326 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
1327 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1328 (xtensa_mode_dependent_address_p): New function.
1329 (constantpool_address_p): Make static. Change return type to bool.
1330 Change argument type to const_rtx. Use CONST_INT_P predicate.
1332 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
1335 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
1337 2011-01-20 Jakub Jelinek <jakub@redhat.com>
1340 * cfgexpand.c (expand_debug_expr): Instead of generating
1341 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
1344 2011-01-20 Richard Guenther <rguenther@suse.de>
1347 * tree-inline.c (remap_gimple_op_r): Recurse manually for
1348 the pointer operand of MEM_REFs.
1350 2011-01-20 Jakub Jelinek <jakub@redhat.com>
1352 PR tree-optimization/46130
1353 * ipa-split.c (consider_split): If return_bb contains non-virtual
1354 PHIs other than for retval or if split_function would not adjust it,
1357 2011-01-20 Richard Guenther <rguenther@suse.de>
1359 PR tree-optimization/47167
1360 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1361 Revert previous change, only avoid enumeral type changes.
1363 2011-01-19 Mike Stump <mikestump@comcast.net>
1365 * doc/tm.texi.in (BRANCH_COST): Englishify.
1366 * doc/tm.texi (BRANCH_COST): Likewise.
1368 2011-01-19 Dodji Seketeli <dodji@redhat.com>
1371 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
1372 (gen_scheduled_generic_parms_dies): New functions.
1373 (gen_struct_or_union_type_die): Schedule template parameters DIEs
1374 generation for the end of CU compilation.
1375 (dwarf2out_finish): Generate template parameters DIEs here.
1377 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1380 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
1381 debug bind stmt on merge edges.
1383 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1387 * function.c (instantiate_expr): Instantiate incoming rtl of
1388 implicit arguments, and recurse on VALUE_EXPRs.
1389 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
1390 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
1392 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1394 * c-parser.c (c_parser_for_statement): Initialize
1395 collection_expression.
1397 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1399 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
1401 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1403 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
1404 (LINK_SHLIB_SPEC): Don't use %(link_path).
1405 (SUBTARGET_EXTRA_SPECS): Remove link_path.
1407 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1409 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
1410 (NO_SHARED_LIB_SUPPORT): Remove.
1411 (LINK_SHLIB_SPEC): Remove one conditional definition.
1413 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1415 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
1417 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
1418 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
1419 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
1420 %{call_shared} and conditionals on these options not being passed.
1421 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
1424 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1426 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
1429 * ipa-split.c: Spelling fixes.
1431 2011-01-19 Richard Henderson <rth@redhat.com>
1433 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
1434 (*mulsi3): Likewise.
1436 * longlong.h [__mn10300__] (count_leading_zeros): New.
1437 [__mn10300__] (umul_ppmm, smul_ppmm): New.
1438 [__mn10300__] (add_ssaaaa, subddmmss): New.
1439 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
1440 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
1442 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1444 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
1446 2011-01-19 Richard Henderson <rth@redhat.com>
1448 * config/mn10300/mn10300.md (addsi3_flags): New.
1449 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
1450 (subsi3_flags, subc_internal, subdi3): New.
1451 (subdi3_internal, *subdi3_degenerate): New.
1452 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
1454 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
1455 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
1456 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
1457 * config/mn10300/mn10300-protos.h: Update.
1458 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
1459 (return_ret): Likewise. Rename from return_internal_regs.
1460 (return_internal): Remove.
1462 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
1463 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
1464 (mn10300_legitimate_constant_p): Likewise.
1465 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
1466 (mn10300_frame_size): New.
1467 (mn10300_expand_prologue): Use it.
1468 (mn10300_expand_epilogue): Likewise.
1469 (mn10300_initial_offset): Likewise.
1470 * config/mn10300/mn10300-protos.h: Update.
1471 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
1472 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
1473 (prologue, epilogue, return_internal): Tidy output code.
1474 (mn10300_store_multiple_operation, return): Likewise.
1475 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
1476 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
1477 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
1478 (load_pic, am33_load_pic): New.
1479 (mn10300_load_pic0, mn10300_load_pic1): New.
1481 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
1482 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
1483 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
1484 (cc_flags_for_mode, cc_flags_for_code): New.
1485 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
1486 overflow flag is not valid. Validate that the flags we need
1487 for the comparison are valid.
1488 (mn10300_output_cmp): Remove.
1489 (mn10300_output_add): New.
1490 (mn10300_select_cc_mode): Use cc_flags_for_code.
1491 (mn10300_split_cbranch): New.
1492 (mn10300_match_ccmode): New.
1493 (mn10300_split_and_operand_count): New.
1494 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
1496 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
1497 (addsi3): ... here. Use mn10300_output_add.
1498 (*addsi3_flags): New.
1499 (*am33_subsi3, *mn10300_subsi3): Merge...
1500 (subsi3): ... here. Use attribute isa.
1501 (*subsi3_flags): New.
1502 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
1504 (*am33_andsi3, *mn10300_andsi3): Merge...
1506 (*andsi3_flags): New.
1507 (andsi3 splitters): New.
1508 (*am33_iorsi3, *mn10300_iorsi3): Merge...
1510 (*iorsi3_flags): New.
1511 (*am33_xorsi3, *mn10300_xorsi3): Merge...
1513 (*xorsi3_flags): New.
1514 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
1515 (one_cmplsi2): ... here.
1516 (*one_cmplsi2_flags): New.
1517 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
1518 instead of "dax" in constraints. Use mn10300_split_cbranch.
1519 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
1520 use matching constraints to eliminate a self-comparison.
1521 (*integer_conditional_branch): Rename from integer_conditional_branch.
1522 Use int_mode_flags to match CC_REG.
1523 (*cbranchsi4_btst, *btstsi): New.
1524 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
1525 mn10300_split_cbranch.
1526 (*am33_cmpsf): Rename from am33_cmpsf.
1527 (*float_conditional_branch): Rename from float_conditional_branch.
1528 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
1529 (zero_extendqisi2): ... here.
1530 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
1531 (zero_extendhisi2): ... here.
1532 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
1533 (extendqisi2): ... here.
1534 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
1535 (extendhisi2): ... here.
1536 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
1537 (ashlsi3): ... here.
1538 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
1539 (lshrsi3): ... here.
1540 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
1541 (ashrsi3): ... here.
1542 (consecutive add peephole): Remove.
1543 * config/mn10300/predicates.md (label_ref_operand): New.
1544 (int_mode_flags): New.
1545 (CCZN_comparison_operator): New.
1547 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
1548 (throughput_42_latency_43): New reservation.
1549 (mulsidi3, umulsidi3): New expanders.
1550 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
1551 the MDR register to allocation; separately allocate the low and
1552 high parts of the DImode result.
1553 (umulsidi3_internal): Similarly.
1554 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
1555 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
1556 (udivsi3, umodsi3): Remove.
1557 (udivmodsi4, divmodsi4): New expanders.
1558 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
1559 (*divmodsi4): Simiarly.
1560 (ext_internal): New.
1562 * config/mn10300/constraints.md ("z"): New constraint.
1563 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
1564 (FIXED_REGISTERS): Don't fix MDR.
1565 (CALL_USED_REGSITERS): Reformat nicely.
1566 (REG_ALLOC_ORDER): Add MDR.
1567 (enum regclass): Add MDR_REGS.
1568 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
1569 (IRA_COVER_CLASSES): Add MDR_REGS.
1570 (REGNO_REG_CLASS): Handle MDR_REG.
1571 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
1572 (mn10300_register_move_cost): Likewise.
1573 * config/mn10300/mn10300.md (MDR_REG): New.
1574 (*movsi_internal): Handle moves to/from MDR_REGS.
1576 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
1578 (mn10300_secondary_reload): Tidy combination reload classes.
1579 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
1580 addresses for AM33. Allow symbolic offsets for reg+imm.
1581 (mn10300_regno_in_class_p): New.
1582 (mn10300_legitimize_reload_address): New.
1583 * config/mn10300/mn10300.h (enum reg_class): Remove
1584 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
1585 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
1587 (REG_CLASS_NAMES): Update to match.
1588 (REG_CLASS_CONTENTS): Likewise.
1589 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
1590 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
1591 (REGNO_IN_RANGE_P): Remove.
1592 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
1593 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
1594 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
1595 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
1596 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
1597 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
1598 (REGNO_GENERAL_P): New.
1599 (HAVE_POST_MODIFY_DISP): New.
1600 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
1601 (LEGITIMIZE_RELOAD_ADDRESS): New.
1602 * config/mn10300/mn10300-protos.h: Update.
1604 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
1605 DATA_REGS for AM33 stack-pointer destination.
1606 (mn10300_preferred_output_reload_class): Likewise.
1607 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
1608 into a form appropriate for ...
1609 (TARGET_SECONDARY_RELOAD): New.
1610 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
1611 * config/mn10300/mn10300-protos.h: Update.
1612 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
1613 reload_insi; use the "A" constraint for the scratch; handle AM33
1614 moves of sp to non-address registers.
1616 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
1617 (*movqi_internal): ... here.
1618 (*am33_movhi, *mn10300_movhi): Merge into...
1619 (*movhi_internal): ... here.
1620 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
1621 as the source/destination of moves from/to SP.
1622 (movsf): Only allow for AM33-2.
1623 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
1624 any integer constant constraint. Only allow for AM33-2. Tidy
1625 all of the alternative outputs.
1626 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
1627 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
1629 (udivsi3, umodsi3): New patterns for MN103 only.
1631 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
1633 * doc/tm.texi.in: Spell out that a lack of register class unions
1635 * doc/tm.texi: Regenerate.
1637 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1639 PR rtl-optimization/47337
1640 * dce.c (check_argument_store): New function.
1641 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
1643 PR tree-optimization/47290
1644 * tree-eh.c (infinite_empty_loop_p): New function.
1645 (cleanup_empty_eh): Use it.
1647 2011-01-18 Steve Ellcey <sje@cup.hp.com>
1650 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
1651 (a64_expand_widen_sum): Ditto.
1652 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
1653 (vec_extract_evenodd_help): Ditto.
1654 (vec_extract_evenv4hi): Ditto.
1655 (vec_extract_oddv4hi): Ditto.
1656 (vec_extract_evenv2si): Ditto.
1657 (vec_extract_oddv2si): Ditto.
1658 (vec_extract_evenv2sf): Ditto.
1659 (vec_extract_oddv2sf): Ditto.
1660 (vec_pack_trunc_v4hi: Ditto.
1661 (vec_pack_trunc_v2si): Ditto.
1662 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
1663 (vec_interleave_highv8qi): Ditto.
1665 (vec_extract_oddv8qi): Ditto.
1666 (vec_interleave_lowv4hi): Ditto.
1667 (vec_interleave_highv4hi): Ditto.
1668 (vec_interleave_lowv2si): Ditto.
1669 (vec_interleave_highv2si): Ditto.
1671 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1673 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
1674 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
1675 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
1676 (pa_c_mode_for_suffix): New.
1677 (TARGET_EXPAND_BUILTIN): Define.
1678 (TARGET_C_MODE_FOR_SUFFIX): Define.
1679 (pa_builtins): Define.
1680 (pa_init_builtins): Register __float128 type and init new support
1682 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
1683 * config/pa/quadlib.c (_U_Qfcopysign): New.
1685 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
1688 * explow.c (allocate_dynamic_stack_space): Do not assume more than
1689 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
1692 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1694 PR tree-optimization/47179
1695 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
1696 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
1698 2011-01-18 Richard Guenther <rguenther@suse.de>
1700 PR rtl-optimization/47216
1701 * emit-rtl.c: Include tree-flow.h.
1702 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
1703 of replicating it with different semantics.
1704 * Makefile.in (emit-rtl.o): Adjust.
1706 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1708 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
1710 (cortex_a9_dp): Handle neon types correctly.
1712 2011-01-18 Jakub Jelinek <jakub@redhat.com>
1714 PR rtl-optimization/47299
1715 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
1716 subtarget. Use normal multiplication if both operands are
1718 * expmed.c (expand_widening_mult): Don't try to optimize constant
1719 multiplication if op0 has VOIDmode. Convert op1 constant to mode
1722 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1724 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
1725 spacing after 'e.g.', typos, comma, hyphenation.
1727 2011-01-17 Richard Henderson <rth@redhat.com>
1729 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1730 (rx_restricted_mem_operand): New.
1731 (rx_shift_operand): Use register_operand.
1732 (rx_source_operand, rx_compare_operand): Likewise.
1733 * config/rx/rx.md (addsi3_flags): New expander.
1734 (adddi3): Rewrite as expander.
1735 (adc_internal, *adc_flags, adddi3_internal): New patterns.
1736 (subsi3_flags): New expander.
1737 (subdi3): Rewrite as expander.
1738 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1740 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1741 (rx_init_builtins): Remove sat builtin.
1742 (rx_expand_builtin): Likewise.
1743 * config/rx/rx.md (ssaddsi3): New.
1744 (*sat): Rename from sat. Represent the CC_REG input.
1746 * config/rx/predicates.md (rshift_operator): New.
1747 * config/rx/rx.c (rx_expand_insv): Remove.
1748 * config/rx/rx-protos.h: Update.
1749 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
1750 operand to the canonical position.
1751 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1752 (*bitclr, *bitclr_in_memory): Similarly.
1753 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1754 (insv): Retain the zero_extract in the expansion.
1756 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1757 (bswaphi2, bitinvert, revw): Likewise.
1759 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1760 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1761 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1762 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1763 (bitset, bitset_in_memory): Likewise.
1764 (bitinvert, bitinvert_in_memory): Likewise.
1765 (bitclr, bitclr_in_memory): Likewise.
1766 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1767 (rx_strend, rx_cmpstrn): Likewise.
1768 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
1769 (bitop peep2 patterns): Remove.
1771 * config/rx/rx.c (rx_match_ccmode): New.
1772 * config/rx/rx-protos.h: Update.
1773 * config/rx/rx.md (abssi2): Clobber, don't set flags.
1774 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1775 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1776 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1777 (fix_truncsfsi2, floatsisf2): Likewise.
1778 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1779 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1780 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1781 (*subsi3_flags, *xorsi3_flags): New.
1783 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1785 * config/rx/rx.c (rx_print_operand): Remove workaround for
1786 unsplit comparison operations.
1788 * config/rx/rx.md (movsicc): Split after reload.
1789 (*movsicc): Merge *movsieq and *movsine via match_operator.
1790 (*stcc): New pattern.
1792 * config/rx/rx.c (rx_float_compare_mode): Remove.
1793 * config/rx/rx.h (rx_float_compare_mode): Remove.
1794 * config/rx/rx.md (cstoresi4): Split after reload.
1795 (*sccc): New pattern.
1797 * config/rx/predicates.md (label_ref_operand): New.
1798 (rx_z_comparison_operator): New.
1799 (rx_zs_comparison_operator): New.
1800 (rx_fp_comparison_operator): New.
1801 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
1802 Validate that the flags are set properly for the comparison.
1803 (rx_gen_cond_branch_template): Remove.
1804 (rx_cc_modes_compatible): Remove.
1805 (mode_from_flags): New.
1806 (flags_from_code): Rename from flags_needed_for_conditional.
1807 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
1808 (rx_select_cc_mode): Likewise.
1809 (rx_split_fp_compare): New.
1810 (rx_split_cbranch): New.
1811 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
1812 (*cbranchsi4): Use match_operator and rx_split_cbranch.
1813 (*cbranchsf4): Similarly.
1814 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
1815 match_operator and rx_split_cbranch.
1816 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
1817 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
1818 (*cmpsi): Rename from cmpsi.
1819 (*tstsi): Rename from tstsi.
1820 (*cmpsf): Rename from cmpsf; use CC_Fmode.
1821 (*conditional_branch): Rename from conditional_branch.
1822 (*reveresed_conditional_branch): Remove.
1823 (b<code>): Remove expander.
1824 * config/rx/rx-protos.h: Update.
1826 * config/rx/rx.c (rx_compare_redundant): Remove.
1827 * config/rx/rx.md (cmpsi): Don't use it.
1828 * config/rx/rx-protos.h: Update.
1830 * config/rx/rx-modes.def (CC_F): New mode.
1831 * config/rx/rx.c (rx_select_cc_mode): New.
1832 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1833 * config/rx/rx-protos.h: Update.
1835 2011-01-17 Richard Henderson <rth@redhat.com>
1837 * except.c (dump_eh_tree): Fix stray ; after for statement.
1839 2011-01-17 Richard Guenther <rguenther@suse.de>
1841 PR tree-optimization/47313
1842 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1843 handling before copying the body. Properly deal with
1844 by-reference result in SSA form.
1846 2011-01-17 Ian Lance Taylor <iant@google.com>
1849 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1850 (struct_value_alias_set): Don't define.
1851 (sparc_option_override): Don't set sparc_sr_alias_set and
1852 struct_value_alias_set.
1853 (save_or_restore_regs): Use gen_frame_mem rather than calling
1855 (sparc_struct_value_rtx): Likewise.
1857 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1860 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1862 (_mm_maskstore_pd): Likewise.
1863 (_mm_maskload_ps): Likewise.
1864 (_mm_maskstore_ps): Likewise.
1865 (_mm256_maskload_pd): Change mask to __m256i.
1866 (_mm256_maskstore_pd): Likewise.
1867 (_mm256_maskload_ps): Likewise.
1868 (_mm256_maskstore_ps): Likewise.
1870 * config/i386/i386-builtin-types.def: Updated.
1871 (ix86_expand_special_args_builtin): Likewise.
1873 * config/i386/i386.c (bdesc_special_args): Update
1874 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1875 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1876 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1877 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1879 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1880 Use <avxpermvecmode> on mask register.
1881 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1883 2011-01-17 Olivier Hainque <hainque@adacore.com>
1884 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1885 Eric Botcazou <ebotcazou@adacore.com>
1888 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1889 if <= USHRT_MAX in 32-bit mode.
1891 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1893 * doc/install.texi (Configuration, Specific): Wrap long
1894 lines in examples. Allow line wrapping in long options
1895 and URLs where beneficial for PDF output.
1897 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1899 * config/mips/mips.c (mips_classify_symbol): Don't return
1900 SYMBOL_PC_RELATIVE for nonlocal labels.
1902 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1904 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1906 2011-01-15 Jan Hubicka <jh@suse.cz>
1908 PR tree-optimization/47276
1909 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1910 declarations as needed.
1912 2011-01-15 Martin Jambor <mjambor@suse.cz>
1914 * common.opt (fdevirtualize): New flag.
1915 * doc/invoke.texi (Option Summary): Document it.
1916 * opts.c (default_options_table): Add devirtualize flag.
1917 * ipa-prop.c (detect_type_change): Return immediately if
1918 devirtualize flag is not set.
1919 (detect_type_change_ssa): Likewise.
1920 (compute_known_type_jump_func): Likewise.
1921 (ipa_analyze_virtual_call_uses): Likewise.
1923 2011-01-14 Martin Jambor <mjambor@suse.cz>
1925 PR tree-optimization/45934
1926 PR tree-optimization/46302
1927 * ipa-prop.c (type_change_info): New type.
1928 (stmt_may_be_vtbl_ptr_store): New function.
1929 (check_stmt_for_type_change): Likewise.
1930 (detect_type_change): Likewise.
1931 (detect_type_change_ssa): Likewise.
1932 (compute_complex_assign_jump_func): Check for dynamic type change.
1933 (compute_complex_ancestor_jump_func): Likewise.
1934 (compute_known_type_jump_func): Likewise.
1935 (compute_scalar_jump_functions): Likewise.
1936 (ipa_analyze_virtual_call_uses): Likewise.
1937 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1939 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1941 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1942 * config/i386/i386.opt (msse5): New Alias.
1944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1946 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1947 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1948 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1949 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1951 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1953 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1955 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1956 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1957 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1958 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1960 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1962 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1964 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1967 2011-01-14 Mike Stump <mikestump@comcast.net>
1969 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1970 * config/fr30/fr30.md: Likweise
1971 (movsi_push): Likewise.
1972 (movsi_pop): Likewise.
1973 (enter_func): Likewise.
1974 * config/moxie/moxie.md (movsi_push): Likewise.
1975 (movsi_pop): Likewise.
1977 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1979 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1980 %{no_archive} %{exact_version}.
1981 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1982 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1983 %{no_archive} %{exact_version}.
1984 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1985 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1986 * config/mips/vxworks.h: Likewise.
1988 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1990 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1993 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1995 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1996 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1998 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2000 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
2003 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2005 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
2007 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
2008 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
2010 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
2011 Don't handle -shlib.
2013 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2015 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
2016 (CC1_SPEC): Don't handle -profile.
2018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2020 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
2021 * config/mips/mips.h (CC1_SPEC): Likewise.
2023 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2025 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
2026 * config/mips/mips.h (CC1_SPEC): Likewise.
2028 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2030 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
2031 * config/m32r/linux.h (LINK_SPEC): Likewise.
2032 * config/mips/linux.h (LINK_SPEC): Likewise.
2033 * config/mips/linux64.h (LINK_SPEC): Likewise.
2034 * config/sparc/linux.h (LINK_SPEC): Likewise.
2035 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2036 LINK_SPEC): Likewise.
2037 * config/xtensa/linux.h (LINK_SPEC): Likewise.
2039 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2041 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
2043 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
2045 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2047 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
2048 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2052 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
2054 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2056 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
2057 supports -Bstatic/-Bdynamic.
2058 * configure: Regenerate.
2060 2011-01-14 Jan Hubicka <jh@suse.cz>
2061 Jack Howarth <howarth@bromo.med.uc.edu>
2064 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
2065 when checking debug_info_level. Test write_symbols instead of
2066 debug_hooks->var_location when setting flag_var_tracking_uninit.
2068 2011-01-14 Richard Guenther <rguenther@suse.de>
2070 PR tree-optimization/47179
2071 * target.def (ref_may_alias_errno): New target hook.
2072 * targhooks.h (default_ref_may_alias_errno): Declare.
2073 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
2074 (default_ref_may_alias_errno): New function.
2075 * target.h (struct ao_ref_s): Declare.
2076 * tree-ssa-alias.c: Include target.h.
2077 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
2078 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
2079 (targhooks.o): Likewise.
2080 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
2081 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
2083 2011-01-14 Richard Guenther <rguenther@suse.de>
2085 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
2087 2011-01-14 Richard Guenther <rguenther@suse.de>
2089 PR tree-optimization/47280
2090 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
2092 (tree_ssa_forward_propagate_single_use_vars): Deal with
2093 CFG changes from associate_plusminus.
2095 2011-01-14 Richard Guenther <rguenther@suse.de>
2099 2011-01-11 Richard Guenther <rguenther@suse.de>
2101 PR tree-optimization/46076
2102 * tree-ssa.c (useless_type_conversion_p): Conversions from
2103 unprototyped to empty argument list function types are useless.
2105 2011-01-14 Richard Guenther <rguenther@suse.de>
2107 PR tree-optimization/47286
2108 * tree-ssa-structalias.c (new_var_info): Register variables are global.
2110 2011-01-14 Martin Jambor <mjambor@suse.cz>
2113 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
2115 2011-01-13 Anatoly Sokolov <aesok@post.ru>
2117 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
2118 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2119 * config/xtensa/xtensa.c (xtensa_libcall_value,
2120 xtensa_function_value_regno_p): New functions.
2121 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2123 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
2126 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
2128 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
2129 New function prototype.
2130 * config/i386/winnt.c (i386_pe_assemble_visibility):
2131 Warn only if attribute was specified by user.
2133 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2136 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
2138 (floatunsdidf2_fcfidu): Ditto.
2140 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2142 * config/s390/s390.c (print_operand_address): Replace 'error' with
2143 'output_operand_lossage'.
2144 (print_operand): Likewise.
2146 2011-01-13 Jeff Law <law@redhat.com>
2148 PR rtl-optimization/39077
2149 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
2150 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
2151 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
2152 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
2153 * gcse.c (prune_insertions_deletions): New function.
2154 (compute_pre_data): Use it.
2156 2011-01-13 Dodji Seketeli <dodji@redhat.com>
2159 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
2161 (prune_unused_types_mark): Use it.
2163 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
2165 PR rtl-optimization/45352
2166 * sel-sched.c: Update copyright years.
2167 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
2168 in the advancing loop when we have issued issue_rate insns.
2170 2011-01-12 Richard Henderson <rth@redhat.com>
2172 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
2173 (TARGET_MD_ASM_CLOBBERS): New.
2175 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
2176 (TARGET_DELEGITIMIZE_ADDRESS): New.
2178 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
2179 (clzsi2, *bsch): New patterns.
2181 * config/mn10300/mn10300.md (INT): New mode iterator.
2182 (*mov<INT>_clr): New pattern, and peep2 to generate it.
2184 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
2185 flag_split_wide_types.
2187 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
2188 (mn10300_trampoline_init): Rewrite without a template, an immediate
2189 load and a direct branch.
2190 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
2192 2011-01-12 Anatoly Sokolov <aesok@post.ru>
2194 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2195 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
2196 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
2197 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2199 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
2202 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
2205 2011-01-12 Jan Hubicka <jh@suse.cz>
2208 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
2209 (PLUGIN_COND_CLOSE): New macro.
2210 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
2212 2011-01-12 Richard Guenther <rguenther@suse.de>
2215 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
2216 register variables in a MEM_REF.
2218 2011-01-12 Joseph Myers <joseph@codesourcery.com>
2220 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
2221 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
2222 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
2223 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2224 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2225 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
2226 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
2227 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
2228 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
2229 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
2230 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
2231 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
2232 * config/gnu-user.h: New. Copied from linux.h.
2233 (LINUX_TARGET_STARTFILE_SPEC): Rename to
2234 GNU_USER_TARGET_STARTFILE_SPEC.
2235 (LINUX_TARGET_ENDFILE_SPEC): Rename to
2236 GNU_USER_TARGET_ENDFILE_SPEC.
2237 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
2238 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
2239 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
2240 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
2241 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
2242 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
2243 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
2244 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
2245 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
2246 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
2247 * config/arm/linux-eabi.h (CC1_SPEC): Use
2248 GNU_USER_TARGET_CC1_SPEC.
2249 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
2250 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
2251 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
2252 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
2253 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
2254 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
2255 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
2256 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
2258 2011-01-12 Richard Guenther <rguenther@suse.de>
2261 * doc/invoke.texi (ffast-math): Document it is turned on
2264 2011-01-12 Jan Hubicka <jh@suse.cz>
2266 PR tree-optimization/47233
2267 * opts.c (common_handle_option): Disable ipa-reference with profile
2270 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
2272 * c-parser.c (c_parser_objc_at_property_declaration): Improved
2275 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
2277 * c-parser.c (c_lex_one_token): Updated and reindented some
2278 comments. No changes in code.
2280 2011-01-11 Ian Lance Taylor <iant@google.com>
2282 * godump.c (go_output_var): Don't output the variable if there is
2283 already a type with the same name.
2285 2011-01-11 Ian Lance Taylor <iant@google.com>
2287 * godump.c (go_format_type): Don't generate float80.
2289 2011-01-11 Richard Henderson <rth@redhat.com>
2291 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
2292 declaration. Rewrite for both speed and size.
2293 (mn10300_address_cost_1): Remove.
2294 (mn10300_register_move_cost): New.
2295 (mn10300_memory_move_cost): New.
2296 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
2297 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
2298 extensions, shifts, BSWAP, CLZ.
2299 (mn10300_wide_const_load_uses_clr): Remove.
2300 (TARGET_REGISTER_MOVE_COST): New.
2301 (TARGET_MEMORY_MOVE_COST): New.
2302 * config/mn10300/mn10300-protos.h: Update.
2303 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
2305 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
2306 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
2307 * config/mn10300/mn10300-protos.h: Update.
2308 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
2309 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
2310 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
2311 (*test_int_bitfield, *test_byte_bitfield): Remove.
2312 (*bit_test, *subreg_bit_test): Remove.
2313 * config/mn10300/predicates.md (const_8bit_operand): Remove.
2315 * config/mn10300/constraints.md ("c"): Rename from "A".
2316 ("A", "D"): New constraint letters.
2317 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
2318 (fmssf4, fnmasf4, fnmssf4): Likewise.
2320 * config/mn10300/mn10300.md (isa): New attribute.
2321 (enabled): New attribute.
2323 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
2324 (abssf2, negsf2): Define only for hardware fp.
2325 (sqrtsf2): Reformat.
2326 (addsf3, subsf3, mulsf3): Merge expander and insn.
2328 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
2329 (DEBUGGER_AUTO_OFFSET): Remove.
2330 (DEBUGGER_ARG_OFFSET): Remove.
2332 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
2333 Emit register stores with the same offsets as the hardware.
2334 (mn10300_store_multiple_operation): Don't check that the register
2335 save offsets are monotonic.
2336 * config/mn10300/mn10300-protos.h: Update.
2338 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
2340 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
2341 in terms of the value on the stack, not the MDR register.
2343 2011-01-11 Jan Hubicka <jh@suse.cz>
2347 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
2348 (symbol_alias_set_destroy, symbol_alias_set_contains,
2349 propagate_aliases_backward): Declare.
2350 * lto-streamer-out.c (struct sets): New sturcture.
2351 (trivally_defined_alias): New function.
2352 (output_alias_pair_p): Rewrite.
2353 (output_unreferenced_globals): Fix output of alias pairs.
2354 (produce_symtab): Likewise.
2355 * ipa.c (function_and_variable_visibility): Set weak alias destination
2357 * varasm.c (symbol_alias_set_t): Remove.
2358 (symbol_alias_set_destroy): Export.
2359 (propagate_aliases_forward, propagate_aliases_backward): New functions
2361 (compute_visible_aliases): ... this one; remove.
2362 (trivially_visible_alias): New
2363 (trivially_defined_alias): New.
2364 (remove_unreachable_alias_pairs): Rewrite.
2365 (finish_aliases_1): Reorganize code checking if alias is defined.
2366 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
2369 2011-01-11 Richard Guenther <rguenther@suse.de>
2371 PR tree-optimization/46076
2372 * tree-ssa.c (useless_type_conversion_p): Conversions from
2373 unprototyped to empty argument list function types are useless.
2375 2011-01-11 Richard Guenther <rguenther@suse.de>
2378 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
2379 volatile MEMs as MEM_READONLY_P.
2381 2011-01-11 Richard Guenther <rguenther@suse.de>
2383 PR tree-optimization/47239
2384 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
2386 2011-01-11 Jeff Law <law@redhat.com>
2388 PR tree-optimization/47086
2389 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
2390 IVs from statements that might throw.
2392 2011-01-10 Jan Hubicka <jh@suse.cz>
2395 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
2397 2011-01-10 Jan Hubicka <jh@suse.cz>
2400 * profile.c (read_profile_edge_counts): Ignore profile inconistency
2401 when correcting profile.
2403 2011-01-10 Jan Hubicka <jh@suse.cz>
2406 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
2408 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
2409 Restore DECL_FINI_PRIORITY.
2411 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2413 * doc/gimple.texi: Fix quoting of multi-word return values in
2414 @deftypefn statements. Ensure presence of return value. Wrap
2415 overlong @deftypefn lines.
2416 (is_gimple_operand, is_gimple_min_invariant_address): Remove
2417 descriptions of removed functions.
2418 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
2419 of multi-word return value in @deftypefn statement.
2421 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2423 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
2424 (Conditional Expressions, Logical Operators)
2425 (Statement and operand traversals): Do not indent smallexample
2426 code. Fix duplicate function argument in example.
2428 2011-01-10 Jeff Law <law@redhat.com>
2430 PR tree-optimization/47141
2431 * ipa-split.c (split_function): Handle case where we are
2432 returning a value and the return block has a virtual operand phi.
2434 2011-01-10 Jan Hubicka <jh@suse.cz>
2436 PR tree-optimization/47234
2437 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
2438 (pass_feedback_split_functions): Declare.
2439 * passes.c (init_optimization_passes): Add ipa-split as subpass of
2441 * ipa-split.c (gate_split_functions): Update comments; disable
2442 split-functions for profile_arc_flag and branch_probabilities.
2443 (gate_feedback_split_functions): New function.
2444 (execute_feedback_split_functions): New function.
2445 (pass_feedback_split_functions): New global var.
2447 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
2450 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
2451 calling gimple_call_set_cannot_inline.
2453 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
2455 * config/darwin-sections.def: Remove unused section.
2457 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
2460 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
2462 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
2465 * c-parser.c (c_parser_declaration_or_fndef): Improved
2468 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
2470 * config/i386/winnt.c (i386_pe_start_function): Make sure
2471 to switch back to function's section.
2473 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
2477 * plugin.c: Move include of dlfcn.h from here...
2478 * system.h: ... to here.
2480 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2482 * doc/cpp.texi (C++ Named Operators): Fix markup for header
2484 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
2485 two extra empty pages in PDF output.
2487 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
2490 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
2491 for error recovery purposes behave as if it was not specified so
2492 that the default type is usd.
2494 2011-01-07 Jan Hubicka <jh@suse.cz>
2496 PR tree-optmization/46469
2497 * ipa.c (function_and_variable_visibility): Clear needed flags on
2498 nodes with external decls; handle weakrefs merging correctly.
2500 2011-01-07 Joseph Myers <joseph@codesourcery.com>
2502 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
2505 2011-01-07 Jan Hubicka <jh@suse.cz>
2507 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
2508 and no longer claim that gold is required for linker plugin.
2509 * configure: Regenerate.
2510 * gcc.c (PLUGIN_COND): New macro.
2511 (LINK_COMMAND_SPEC): Use it.
2512 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
2513 * config.in (HAVE_LTO_PLUGIN): New.
2514 * configure.ac (--with-lto-plugin): New parameter; autodetect
2517 2011-01-07 Jan Hubicka <jh@suse.cz>
2519 PR tree-optimization/46367
2520 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
2521 when we can update original.
2522 (cgraph_mark_inline_edge): Sanity check.
2523 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
2525 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2527 * config/spu/spu.h (ASM_COMMENT_START): Define.
2529 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
2533 (SWITCH_KEEP_FOR_GCC): Likewise.
2534 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
2535 (do_spec_1): Handle "%>".
2537 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
2539 2011-01-07 Jakub Jelinek <jakub@redhat.com>
2542 * config/i386/i386.c (ix86_delegitimize_address): If
2543 simplify_gen_subreg fails, return orig_x.
2546 * value-prof.c (gimple_stringop_fixed_value): Handle
2547 lhs of the call properly.
2549 2011-01-07 Jan Hubicka <jh@suse.cz>
2552 * lto-opt.c (lto_reissue_options): Set flag_shlib.
2554 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2556 * target.def (function_switched_text_sections): New hook.
2557 * doc/tm.texi: Regenerated.
2558 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2559 * final.c (default_function_switched_text_sections): New.
2560 (final_scan_insn): Call function_switched_text_sections when a
2561 mid-function section change occurs.
2562 * output.h (default_function_switched_text_sections): Declare.
2563 * config/darwin-protos.h (darwin_function_switched_text_sections):
2565 * config/darwin.c (darwin_function_switched_text_sections): New.
2566 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2568 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2570 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
2571 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
2572 the secondary code fragment when outputting for DWARF == 2.
2574 2011-01-07 Anatoly Sokolov <aesok@post.ru>
2576 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2577 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
2579 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
2580 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2582 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
2585 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
2586 when it is not empty.
2588 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
2591 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
2592 (case ${target}): Add btver1.
2593 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2594 -march=native recognize btver1 processors.
2595 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2596 btver1 def_and_undef
2597 * config/i386/i386.c (struct processor_costs btver1_cost): New
2599 (m_BTVER1): New definition.
2600 (m_AMD_MULTIPLE): Includes m_BTVER1.
2601 (initial_ix86_tune_features): Add btver1 tune.
2602 (processor_target_table): Add btver1 entry.
2603 (static const char *const cpu_names): Add btver1 entry.
2604 (software_prefetching_beneficial_p): Add btver1.
2605 (ix86_option_override_internal): Add btver1 instruction sets.
2606 (ix86_issue_rate): Add btver1.
2607 (ix86_adjust_cost): Add btver1.
2608 * config/i386/i386.h (TARGET_BTVER1): New definition.
2609 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
2610 (enum processor_type): Add PROCESSOR_BTVER1.
2611 * config/i386/i386.md (define_attr "cpu"): Add btver1.
2613 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2616 * config/i386/i386.c (legitimize_tls_address)
2617 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
2618 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
2619 (tls_initial_exec_64_sun): New pattern.
2621 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
2623 * doc/invoke.texi (Overall Options): Improve wording and markup
2624 of the description of -wrapper.
2626 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2628 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
2629 rdynamic, threads): New Driver options.
2631 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2634 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
2635 if coming from .tdata.
2636 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2638 2011-01-06 Jan Hubicka <jh@suse.cz>
2641 * collect2.c (main): Do not enable LTOmode when plugin is active.
2643 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2646 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
2647 --version output if supported.
2648 * configure: Regenerate.
2650 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2652 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
2655 2011-01-06 Jakub Jelinek <jakub@redhat.com>
2658 * c-convert.c (convert): When converting a complex expression
2659 other than COMPLEX_EXPR to a different complex type, ensure
2660 c_save_expr is called instead of save_expr, unless in_late_binary_op.
2661 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
2662 when converting COMPLEX_TYPE.
2664 2011-01-06 Ira Rosen <irar@il.ibm.com>
2666 PR tree-optimization/47139
2667 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
2668 only the last reduction value is used outside the loop. Update
2671 2011-01-05 Joseph Myers <joseph@codesourcery.com>
2673 * config/rtems.opt: New.
2674 * config.gcc (*-*-rtems*): Use rtems.opt.
2676 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
2678 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
2679 processors do not support 3DNow instructions.
2681 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2683 * config/spu/spu.c (spu_option_override): Set parameter
2684 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
2686 2011-01-05 Jan Hubicka <jh@suse.cz>
2688 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
2689 at the command line.
2691 2011-01-05 Martin Jambor <mjambor@suse.cz>
2694 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
2695 deltas on streamed outgoing edges.
2696 (output_node_opt_summary): Output info for outgoing edges only when
2697 the node is in new parameter set.
2698 (output_cgraph_opt_summary): New parameter set, passed to the two
2699 aforementioned functions. Update its forward declaration and its
2702 2011-01-05 Tom Tromey <tromey@redhat.com>
2704 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
2705 operator to c_finish_omp_atomic.
2706 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
2707 (build_unary_op): Update.
2708 (build_modify_expr): Update.
2709 (build_asm_expr): Update.
2711 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2713 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
2714 newly inserted insns.
2716 (spu_emit_branch_hint): Likewise.
2717 (insert_hbrp_for_ilb_runout): Likewise.
2718 (spu_machine_dependent_reorg): Call df_finish_pass after
2719 schedule_insns returns.
2721 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2723 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2725 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
2727 PR tree-optimization/47005
2728 * tree-sra.c (struct access): Add 'non_addressable' bit.
2729 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2730 (decide_one_param_reduction): Return 0 if the parameter is passed by
2731 reference and one of the accesses in the group is non_addressable.
2733 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2735 PR tree-optimization/47056
2736 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2737 (mark_load): Likewise. Handle FUNCTION_DECL specially.
2738 (mark_store): Likewise. Pass STMT to ipa_record_reference.
2740 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2742 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2743 initializer. Skip view conversions from aggregate types.
2745 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
2748 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2750 2011-01-04 Philipp Thomas <pth@suse.de>
2752 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2755 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2757 * function.c (thread_prologue_and_epilogue_insns): Do not crash
2758 on empty epilogue sequences.
2760 2011-01-04 Joseph Myers <joseph@codesourcery.com>
2762 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2763 non-static): New Driver options.
2765 2011-01-04 Jie Zhang <jie@codesourcery.com>
2768 * gcc.c (default_compilers[]): Set combinable field to 0
2769 for all assembly languages.
2771 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
2773 * config/mips/loongson3a.md: New file.
2774 * config/mips/mips.md: Include loongson3a.md.
2775 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2778 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
2781 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2782 instead of convert_memory_address_addr_space on the base expression.
2784 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2786 * config/spu/spu.c (spu_option_override): Update error text
2787 for bad -march= / -mtune= values.
2789 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2791 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
2792 if branch-hint optimization will be performed.
2794 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2796 PR tree-optimization/47148
2797 * ipa-split.c (split_function): Convert arguments to
2798 DECL_ARG_TYPE if possible.
2800 PR tree-optimization/47155
2801 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
2804 PR rtl-optimization/47157
2805 * combine.c (try_combine): If undobuf.other_insn becomes
2806 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
2807 and set *new_direct_jump_p too.
2809 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
2811 PR tree-optimization/47021
2812 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
2814 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2816 * gcc.c (process_command): Update copyright notice dates.
2817 * gcov.c (print_version): Likewise.
2818 * gcov-dump.c (print_version): Likewise.
2819 * mips-tfile.c (main): Likewise.
2820 * mips-tdump.c (main): Likewise.
2822 2011-01-03 Martin Jambor <mjambor@suse.cz>
2824 PR tree-optimization/46801
2825 * tree-sra.c (type_internals_preclude_sra_p): Check whether
2826 aggregate fields start at byte boundary instead of the bit-field flag.
2828 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2831 * gcc.c (main): Revert revision 168407.
2833 2011-01-03 Martin Jambor <mjambor@suse.cz>
2835 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2837 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2839 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2840 vector optab to expand vector/scalar shift, update gimple to vector.
2842 2011-01-03 Martin Jambor <mjambor@suse.cz>
2844 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2847 2011-01-03 Martin Jambor <mjambor@suse.cz>
2849 PR tree-optimization/46984
2850 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2852 (cgraph_create_indirect_edge): Fixed line length.
2853 (cgraph_indirect_call_info): Declare.
2854 (cgraph_make_edge_direct) Update declaration.
2855 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2856 (cgraph_create_indirect_edge): Use it.
2857 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2859 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2860 the new thunk_delta representation.
2861 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2863 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2864 (ipa_read_indirect_edge_info): Likewise.
2865 * lto-cgraph.c (output_edge_opt_summary): New function.
2866 (output_node_opt_summary): Call it on all outgoing edges.
2867 (input_edge_opt_summary): New function.
2868 (input_node_opt_summary): Call it on all outgoing edges.
2870 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2873 * gcc.c (main): Don't check have_o when settting combine_inputs.
2875 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2877 * regrename.c: Add general comment describing the pass.
2878 (struct du_head): Remove 'length' field.
2879 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2880 (regrename_optimize): Do not sort chains. Rework comments, add others.
2881 Force renaming to the preferred class (if any) in the first pass and do
2882 not consider registers that belong to it in the second pass.
2883 (create_new_chain): Do not set 'length' field.
2884 (scan_rtx_reg): Likewise.
2886 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2888 PR tree-optimization/47140
2889 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2890 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2893 PR rtl-optimization/47028
2894 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2895 parm_birth_insn instead of at the beginning of first bb.
2897 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2899 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2900 Remove the word "see" before "@pxref".
2901 * doc/rtl.texi: Remove the word "see" before "@pxref".
2903 2011-01-01 Jan Hubicka <jh@suse.cz>
2905 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2908 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2911 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2914 Copyright (C) 2011 Free Software Foundation, Inc.
2916 Copying and distribution of this file, with or without modification,
2917 are permitted in any medium without royalty provided the copyright
2918 notice and this notice are preserved.