1 2012-02-09 Jakub Jelinek <jakub@redhat.com>
3 Backported from mainline
4 2012-02-02 Jakub Jelinek <jakub@redhat.com>
7 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
9 2012-01-28 Jakub Jelinek <jakub@redhat.com>
12 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
13 arm_general_register_operand predicate for operand 2 instead of
16 2012-01-19 Jakub Jelinek <jakub@redhat.com>
19 * tree-mudflap.c (mf_artificial): New function.
20 (execute_mudflap_function_ops, execute_mudflap_function_decls,
21 mx_register_decls, mudflap_enqueue_decl): Use it.
23 2012-01-05 Jakub Jelinek <jakub@redhat.com>
25 PR rtl-optimization/51767
26 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
27 of jump_block and add an extra edge for degenerated asm gotos.
30 * stmt.c (check_unique_operand_names): Don't ICE during error
31 reporting if i is from labels chain.
34 * profile.c (branch_prob): Split bbs that have exit edge
35 and need a fake entry edge too.
37 2012-01-04 Jakub Jelinek <jakub@redhat.com>
40 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
41 in .debug_loc on the floor.
43 2011-12-15 Jakub Jelinek <jakub@redhat.com>
46 * c-parser.c (c_parser_omp_clause_num_threads,
47 c_parser_omp_clause_schedule): Call mark_exp_read.
50 * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
51 !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
53 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
55 Backport from mainline
56 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
59 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
61 2012-02-09 Andrey Belevantsev <abel@ispras.ru>
63 Backport from mainline
64 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
67 * function.c (instantiate_virtual_regs_in_insn): Use
68 delete_insn_and_edges when removing a wrong asm insn.
70 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
73 * expr.c (get_inner_reference): If there is an offset, add a negative
74 bit position to it (if any).
76 2012-02-07 Kai Tietz <ktietz@redhat.com>
77 Dave Korn <dave.korn.cygwin@gmail.com>
80 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
81 Take care that typinfo gets dllexport-attribute.
83 2012-02-07 Alan Modra <amodra@gmail.com>
86 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
89 2012-02-02 Uros Bizjak <ubizjak@gmail.com>
91 Backport from mainline:
92 2011-11-18 Uros Bizjak <ubizjak@gmail.com>
94 PR tree-optimization/51118
95 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
96 before using TREE_TYPE accessor on expr.
98 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
100 Backport from mainline r183796
101 PR rtl-optimization/51374
102 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
103 to cross other volatile_refs_p insns.
105 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
107 Backport from mainline.
108 2011-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
110 config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true
113 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
115 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
118 2012-01-30 Bin Cheng <bin.cheng@arm.com>
120 Backport from mainline.
121 2012-01-30 Bin Cheng <bin.cheng@arm.com>
124 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
125 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
127 2012-01-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
129 Backport from mainline.
130 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
133 * config/arm/arm.c (arm_load_pic_register): Use
134 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
135 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
136 (arm_pic_static_addr): Likewise.
137 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
138 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
139 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
140 (pic_load_addr_unified): New.
142 2012-01-25 Richard Guenther <rguenther@suse.de>
144 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
145 bases are dereferenced.
147 2012-01-24 Richard Guenther <rguenther@suse.de>
149 Forward-port to branch
150 2010-09-21 Jakub Jelinek <jakub@redhat.com>
153 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
154 op0 isn't sufficiently aligned and there is movmisalignM
155 insn for mode, use it to load op0 into a temporary register.
157 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
159 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
161 2012-01-19 Quentin Neill <quentin.neill@amd.com>
164 * config/i386/driver-i386.c (host_detect_local_cpu): Also check
165 family to distinguish PROCESSOR_ATHLON.
167 2012-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
169 PR tree-optimization/49642
170 * ipa-split.c (forbidden_dominators): New variable.
171 (check_forbidden_calls): New function.
172 (dominated_by_forbidden): Likewise.
173 (consider_split): Check for forbidden dominators.
174 (execute_split_functions): Initialize and free forbidden
175 dominators info; call check_forbidden_calls.
177 2012-01-18 David Edelsohn <dje.gcc@gmail.com>
179 * config/rs6000/rs6000.md (call_value_indirect_aix32): Fix typo
180 in mode of operand[4].
182 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
184 PR rtl-optimization/51821
185 * recog.c (peep2_find_free_register): Determine clobbered registers
188 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
190 Backport from mainline r183129
192 * config/avr/avr.c (avr_encode_section_info): Test for absence of
193 DECL_EXTERNAL when checking for initializers of progmem variables.
195 22012-01-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
197 Backport from mainline
198 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
200 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
202 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
204 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
205 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
207 2012-01-10 Joseph Myers <joseph@codesourcery.com>
211 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
214 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
215 zero extend count after the correction to it is done.
216 (doloop_optimize): Update call to doloop_modify, don't zero extend
219 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
222 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
224 (doloop_optimize): Update call to doloop_modify.
226 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
228 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
230 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
232 * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Check that the
233 purported sigacthandler address isn't null before dereferencing it.
234 (sparc_is_sighandler): Likewise.
236 2012-01-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
238 Backport from mainline
239 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
241 PR rtl-optimization/38644
242 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
243 for epilogue having stack adjustment.
245 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
248 * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove SAVPC and
249 add CFA. Revert back to old code for Solaris 8+ multi-threaded.
250 (sparc_is_sighandler): Likewise.
251 (MD_FALLBACK_FRAME_STATE_FOR): Adjust call to IS_SIGHANDLER.
253 2012-01-06 Eric Botcazou <ebotcazou@adacore.com>
255 Backport from mainline
256 2012-01-06 Arnaud Charlet <charlet@adacore.com>
258 * c-decl.c (ext_block): Moved up.
259 (collect_all_refs, for_each_global_decl): Take ext_block into account.
261 2012-01-06 Richard Sandiford <richard.sandiford@linaro.org>
264 * expr.h (copy_blkmode_to_reg): Declare.
265 * expr.c (copy_blkmode_to_reg): New function.
266 (expand_assignment): Don't expand register RESULT_DECLs before
267 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
268 RESULT_DECL register.
269 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
271 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
273 PR tree-optimization/51315
274 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
275 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
277 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
279 PR tree-optimization/51624
280 * tree-sra.c (build_ref_for_model): When replicating a chain of
281 COMPONENT_REFs, stop as soon as the offset would become negative.
283 2012-01-04 Richard Guenther <rguenther@suse.de>
285 PR tree-optimization/49651
286 * tree-ssa-structalias.c (type_can_have_subvars): New function.
287 (var_can_have_subvars): Use it.
288 (get_constraint_for_1): Only consider subfields if there can be any.
290 2012-01-03 Sandra Loosemore <sandra@codesourcery.com>
292 Backport from mainline:
293 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
295 * doc/invoke.texi (-flto and related options): Copy-edit.
297 2012-01-03 Richard Guenther <rguenther@suse.de>
299 Backport from mainline
300 2011-11-10 Richard Guenther <rguenther@suse.de>
302 PR tree-optimization/51042
303 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
304 self-referential expressions. Refactor code to avoid duplication.
306 2012-01-03 Richard Guenther <rguenther@suse.de>
308 PR tree-optimization/51070
309 * tree-loop-distribution.c (generate_builtin): Do not replace
310 the loop with a builtin if the partition contains statements which
311 results are used outside of the loop.
312 (stmt_has_scalar_dependences_outside_loop): Properly handle calls.
314 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
316 Backport from the mainline
317 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
319 * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
320 in setting options via target #pragma or attribute.
322 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
324 Backport from mainline
325 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
328 * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
329 unlikely_text_section_p. Instead check for being in a code section.
331 2011-12-23 Richard Guenther <rguenther@suse.de>
333 PR rtl-optimization/50396
334 * simplify-rtx.c (simplify_binary_operation_1): Properly
335 guard code that only works for integers.
337 2011-12-22 Doug Kwan <dougkwan@google.com>
339 Backport from mainline
340 2011-03-23 Julian Brown <julian@codesourcery.com>
342 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
343 accesses which are not naturally aligned.
345 2011-11-20 Joey Ye <joey.ye@arm.com>
347 * expr.c (expand_expr_real_1): Correctly handle strict volatile
348 bitfield loads smaller than mode size.
350 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
353 * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
356 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
359 * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
360 weak function on bare-metal EABI targets.
362 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
364 Backport from mainline
365 2011-12-21 Richard Guenther <rguenther@suse.de>
368 * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
369 mode of the pseudo as destination mode. Only assert that
370 is equal to the promoted mode of the decl if it is a REG.
372 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
374 * config/alpha/linux-unwind.h: Update copyright years.
375 (MD_FROB_UPDATE_CONTEXT): New define.
376 (alpha_frob_update_context): New function.
378 2011-12-19 Martin Jambor <mjambor@suse.cz>
380 PR tree-optimization/51583
381 * tree-sra.c (load_assign_lhs_subreplacements): Call
382 force_gimple_operand_gsi when necessary also in case of no
383 corresponding replacement on the RHS.
385 2011-12-16 Eric Botcazou <ebotcazou@adacore.com>
387 * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
388 (frame_blockage): New expander.
389 (frame_blockage<P:mode>): New instruction.
390 * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
391 instructions establishing the frame isn't atomic, emit frame blockage.
393 2011-12-15 H.J. Lu <hongjiu.lu@intel.com>
395 Backport from mainline.
396 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
398 PR rtl-optimization/49720
399 * simplify-rtx.c (simplify_relational_operation_1): Detect
400 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
401 simplifies to (eq/ne x (cst2 - cst1))" case.
403 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
405 Backport from mainline.
406 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
408 * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
410 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
412 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
413 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
414 * lto-streamer-in.c (lto_read_body): Likewise.
415 (lto_input_toplevel_asms): Likewise.
416 * lto-section-in.c (lto_create_simple_input_block): Likewise.
417 * lto-opts.c (lto_read_file_options): Likewise.
418 * ipa-prop.c (ipa_prop_read_section): Likewise.
420 * df.h (DF_NOTE): Fix typo in comment.
422 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
424 * regmove.c (fixup_match_2): Only access call_used_regs with hard
427 2011-12-12 Jakub Jelinek <jakub@redhat.com>
430 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
431 VEC_safe_grow_cleared if idx is smaller than VEC_length.
433 Backported from mainline
434 2011-12-11 Jakub Jelinek <jakub@redhat.com>
436 PR tree-optimization/51485
437 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
440 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
442 PR tree-optimization/50569
443 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
444 in the expression of MODEL instead of just the last one.
446 2011-12-09 Michael Meissner <meissner@the-meissners.org>
448 Backport from mainline
449 2011-12-09 Michael Meissner <meissner@the-meissners.org>
451 PR rtl-optimization/51469
452 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
453 indirect function, mark the symbol as non-local.
455 2011-12-09 Jakub Jelinek <jakub@redhat.com>
457 Backport from mainline
458 2011-12-08 Jakub Jelinek <jakub@redhat.com>
460 PR tree-optimization/51466
461 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
464 2011-11-28 Jakub Jelinek <jakub@redhat.com>
466 PR tree-optimization/50078
467 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
468 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
470 2011-12-09 Kazu Hirata <kazu@codesourcery.com>
472 Backport from mainline:
474 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
477 * config/arm/arm.md (*minmax_arithsi): Always require the else
478 clause in the MINUS case.
480 2011-12-08 Teresa Johnson <tejohnson@google.com>
482 Backport from mainline:
484 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
486 * config/i386/i386.md (*movdi_internal_rex64): Use "!o" constraint
487 instead of "!m" for operand 0, alternative 4.
488 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
490 2011-12-08 Jakub Jelinek <jakub@redhat.com>
492 Backport from mainline
493 2011-12-05 Jakub Jelinek <jakub@redhat.com>
496 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
497 for debug info if scope is file_scope.
500 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
501 relayout_decl instead of layout_decl.
503 2011-12-05 Jakub Jelinek <jakub@redhat.com>
504 Eric Botcazou <ebotcazou@adacore.com>
508 * calls.c (internal_arg_pointer_exp_state): New variable.
509 (internal_arg_pointer_based_exp_1,
510 internal_arg_pointer_exp_scan): New functions.
511 (internal_arg_pointer_based_exp): New function.
512 (mem_overlaps_already_clobbered_arg_p): Use it.
513 (expand_call): Free internal_arg_pointer_exp_state.cache vector
514 and clear internal_arg_pointer_exp_state.scan_start.
516 2011-11-30 Jakub Jelinek <jakub@redhat.com>
518 PR rtl-optimization/48721
519 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
520 reg_pending_barrier to TRUE_BARRIER.
522 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
525 * calls.c (mem_overlaps_already_clobbered_arg_p):
526 Return false if no outgoing arguments have been stored so far.
528 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
530 PR tree-optimization/51315
531 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
532 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
533 MEM_REFs and use get_object_or_type_alignment for them.
534 (build_accesses_from_assign): Adjust for above change.
535 (access_precludes_ipa_sra_p): Likewise.
537 2011-12-06 Martin Jambor <mjambor@suse.cz>
539 Backport from mainline:
541 2011-12-02 Martin Jambor <mjambor@suse.cz>
543 PR tree-optimization/50622
544 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
545 if both lacc and racc are grp_partial_lhs.
547 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
549 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
552 2011-12-06 Alan Modra <amodra@gmail.com>
555 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
556 Do not mark r11 setup as frame-related. Pass correct offset to
557 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
558 arguments. Correct sp_offset. Remove "offset" fudge from
559 in-line rs6000_frame_related call. Rename misleading variable.
560 Fix comments and whitespace. Tidy some expressions.
561 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
562 to r11 in out-of-line case. Correct sp_offset. Pass correct
563 offset to rs6000_emit_savres_rtx. Rename misleading variable.
564 Fix comments and whitespace. Tidy some expressions.
565 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
566 adjustment when !saving_GPRs_inline. Correct register mode
567 used in address calcs.
568 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
569 !restoring_GPRs_inline.
571 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
574 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
575 parameter as long long.
577 2011-12-02 Georg-Johann Lay <avr@gjlay.de>
581 * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
582 Enclose parts using __SP_H__ in !defined (__AVR_HAVE_8BIT_SP__).
584 * config/avr/avr.md (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Set
585 insn condition to !AVR_HAVE_8BIT_SP.
586 * config/avr/avr.c (output_movhi): "clr%B0" instead of "in
587 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
588 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
589 * config/avr/avr-devices.c (avr_mcu_types): ATtiny4313 and
590 AT86RF401 have a 16-bit SP (their manual is bogus).
592 2011-11-25 Richard Sandiford <richard.sandiford@linaro.org>
594 Backport from mainline:
596 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
599 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
600 (cached_dw_loc_list_def): New structure.
601 (cached_dw_loc_list): New typedef.
602 (cached_dw_loc_list_table): New variable.
603 (cached_dw_loc_list_table_hash): New function.
604 (cached_dw_loc_list_table_eq): Likewise.
605 (add_location_or_const_value_attribute): Take a bool cache_p.
606 Cache the list when the parameter is true.
607 (gen_formal_parameter_die): Update caller.
608 (gen_variable_die): Likewise.
609 (dwarf2out_finish): Likewise.
610 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
611 while generating debug info for the decl.
612 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
613 (dwarf2out_init): Initialize cached_dw_loc_list_table.
614 (resolve_addr): Cache the result of resolving a chain of
617 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
620 * i386.c (distance_non_agu_define): Fix insn attr check.
622 2011-11-20 Andreas Tobler <andreast@fgznet.ch>
624 * configure: Regenerate.
626 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
628 PR rtl-optimization/51187
629 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
630 is a barrier between the jump and its target label.
632 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
635 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
636 overlap of src and dest operands.
638 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
641 * configure.ac: Remove ranlib special-casing for Darwin.
642 * configure: Regenerate.
644 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
645 Bernd Schmidt <bernds@coudesourcery.com>
646 Sebastian Huber <sebastian.huber@embedded-brains.de>
649 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
650 the base reg is stored iff compiling for Thumb1.
652 2011-11-13 Iain Sandoe <iains@gcc.gnu.org>
655 Backport from mainline r180523
656 * config/darwin.c (top level): Amend comments concerning LTO output.
657 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
658 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
659 (LTO_NAMES_SECTION): Rename.
660 (darwin_asm_named_section): Record LTO section counts and switches
661 in a vec of darwin_lto_section_e.
662 (darwin_file_start): Remove unused code.
663 (darwin_file_end): Put an LTO section termination label. Handle
664 output of the wrapped LTO sections, index and names table.
666 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
669 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
670 Only expand a symbol ref. into an access when the entity is defined
673 2011-11-10 Jakub Jelinek <jakub@redhat.com>
676 * tree-object-size.c (addr_object_size): Check TREE_CODE of
677 MEM_REF's operand rather than code of the MEM_REF itself.
679 2011-11-07 Alan Modra <amodra@gmail.com>
682 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
685 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
688 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
690 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
692 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
695 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
697 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
699 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
700 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
701 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
703 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
706 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
707 (movsf_insn_no_fpu): Likewise.
708 (movdf_insn_sp32): Likewise.
709 (movdf_insn_sp32_no_fpu): Likewise.
710 (movdf_insn_sp32_v9): Likewise. Remove redundant GY constraint.
711 (movdf_insn_sp32_v9_no_fpu): Likewise.
712 (movdf_insn_sp64): Likewise.
713 (movdf_insn_sp64_no_fpu): Likewise.
714 (movtf_insn_sp32): Likewise.
715 (movtf_insn_sp32_no_fpu): Likewise.
716 (movtf_insn_sp64): Likewise.
717 (movtf_insn_sp64_hq): Likewise.
718 (movtf_insn_sp64_no_fpu): Likewise.
720 2011-11-02 Bernd Schmidt <bernds@codesourcery.com>
722 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
723 NULL for a jump that is a cc0 insn, pick the previous insn for
726 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
728 * config/i386/i386.md (splitters for int-float conversion): Use
729 SUBREG_REG on SUBREGs in splitter constraints.
731 2011-11-01 Julian Brown <julian@codesourcery.com>
733 PR rtl-optimization/47918
734 * reload1.c (set_initial_label_offsets): Use initial offsets
735 for labels on the nonlocal_goto_handler_labels chain.
737 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
740 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol references.
741 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Return false for
742 TLS_MODEL_GLOBAL_DYNAMIC and TLS_MODEL_LOCAL_DYNAMIC symbol references.
744 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
747 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
748 constraints. Change alternative 1 to "x,m,1".
750 2011-10-26 Jakub Jelinek <jakub@redhat.com>
752 * BASE-VER: Set to 4.6.3.
753 * DEV-PHASE: Set to prerelease.
755 2011-10-26 Release Manager
757 * GCC 4.6.2 released.
759 2011-10-25 Kai Tietz <ktietz@redhat.com>
761 * config/i386/mingw32.h (SUBTARGET_FRAME_POINTER_REQUIRED):
762 Use for 32-bit frame-pointer, if setjmp is used.
764 2011-10-24 Jakub Jelinek <jakub@redhat.com>
767 * dwarf2out.c (dwarf2out_source_line): Emit discriminators only if
768 -gdwarf-4 or not -gstrict-dwarf.
770 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
773 Backport from mainline r180385
774 * doc/extend.texi (Declaring Attributes of Functions):
775 Document OS_main and OS_task attributes.
776 (Specifying Attributes of Variables): Move up
777 subsection "AVR Variable Attributes" as of alphabetical order.
779 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
782 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
783 handling and indirect jump/calls on devices > 128k.
785 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
788 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
789 Remove (match_dup 0).
791 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
794 Backport from Mainline r180299.
795 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
796 (__tablejump__): Consistently use EIND for indirect jump/call.
797 (__tablejump_elpm__): Ditto.
799 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
802 Backport from mainline.
803 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
805 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
808 2011-10-19 Jakub Jelinek <jakub@redhat.com>
810 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
811 second argument instead of mode.
814 Backport from mainline
815 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
819 * tree-sra.c (build_ref_for_model): Use the type of the field as
820 the type of the COMPONENT_REF.
822 2011-10-18 Uros Bizjak <ubizjak@gmail.com>
823 Eric Botcazou <ebotcazou@adacore.com>
826 * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Set
827 fs->signal_frame to 1.
829 2011-10-14 Richard Guenther <rguenther@suse.de>
831 Backport from mainline
832 2011-10-14 Richard Guenther <rguenther@suse.de>
834 PR tree-optimization/50723
835 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
837 2011-10-13 Richard Guenther <rguenther@suse.de>
839 PR tree-optimization/50712
840 * ipa-split.c (split_function): Always re-gimplify parameters
841 when they are not gimple vals before passing them. Properly
842 check for type compatibility.
844 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
846 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
847 * config/sparc/sparc.opt (mfix-at697f): New option.
848 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
849 (sparc_reorg): New function.
851 2011-10-12 Steve Ellcey <sje@cup.hp.com>
854 Backport from Mainline 179472.
855 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
856 (gcc_cv_ld_static_option): Ditto.
857 (gcc_cv_ld_dynamic_option): Ditto.
858 * configure: Regenerate.
860 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
862 PR tree-optimization/50189
863 * tree-vrp.c (extract_range_from_assert): Use the type of
864 the variable, not the limit.
866 2011-10-12 Richard Guenther <rguenther@suse.de>
868 PR tree-optimization/50700
869 * tree-object-size.c (addr_object_size): Simplify and treat
870 MEM_REF bases consistently.
872 2011-10-12 Joseph Myers <joseph@codesourcery.com>
875 * convert.c (convert_to_integer): Do not narrow operands of
878 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
881 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
882 (mov<F:mode>cc): Likewise.
884 2011-10-11 Nick Clifton <nickc@redhat.com>
887 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
888 df_get_live_out instead of accessing the bitmaps directly.
889 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
890 df_live_add_problem and df_analyze.
892 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
895 Backport from Mainline r179737.
896 * config/avr/avr-devices.c (avr_mcu_types): Set
897 .data_section_start of atmega164a to 0x100.
899 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
902 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
904 2011-10-06 Jakub Jelinek <jakub@redhat.com>
906 * tree.h (avoid_folding_inline_builtin): New prototype.
907 * builtins.c (avoid_folding_inline_builtin): No longer static.
908 * gimple-fold.c (gimple_fold_builtin): Give up if
909 avoid_folding_inline_builtin returns true.
911 PR tree-optimization/49279
912 * tree-ssa-structalias.c (find_func_aliases): Don't handle
915 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
917 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
918 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
920 2011-10-03 Jakub Jelinek <jakub@redhat.com>
921 Ian Lance Taylor <iant@google.com>
923 * godump.c (go_output_typedef): Support printing enum values that
924 don't fit in a signed HOST_WIDE_INT.
926 2011-09-30 Jakub Jelinek <jakub@redhat.com>
929 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
930 input constraints allow mem and not reg, pass true instead of
931 false as second argument to maybe_fold_reference.
933 2011-09-30 Jakub Jelinek <jakub@redhat.com>
934 Richard Guenther <rguenther@suse.de>
936 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Fix
937 handling of BUILT_IN_STRNCAT.
938 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
939 and BUILT_IN_STRNCAT.
941 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
943 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
945 (remove_duplicate_close_phi): Detect and repair creation of
946 duplicate close-phis for a containing loop.
948 2011-09-26 Richard Guenther <rguenther@suse.de>
950 PR tree-optimization/50472
951 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not fold
954 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
956 PR tree-optimization/50413
957 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
958 a basic block if one of its data-refs can't be analyzed.
960 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
962 PR tree-optimization/50412
963 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
964 accesses that require epilogue loop if vectorizing outer loop.
966 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
969 * config/i386/sse.md (xop_pcmov_<mode>): Change operand 1 predicate
970 to register_operand and operand 2 predicate to nonimmediate_operand.
971 (xop_pcmov_<mode>256): Ditto.
972 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
973 xop_pcmov, force op_true to register. Also, force op_false to
974 register if it doesn't satisfy nonimmediate_operand predicate.
976 2011-09-19 Alan Modra <amodra@gmail.com>
977 Michael Meissner <meissner@linux.vnet.ibm.com>
980 * config/rs6000/rs6000.md (call_indirect_aix32): Do not split the
981 load of the indirect function's TOC from the call to prevent the
982 compiler from moving the load of the new TOC above code that
983 references the current function's TOC.
984 (call_indirect_aix64): Ditto.
985 (call_value_indirect_aix32): Ditto.
986 (call_value_indirect_aix64): Ditto.
987 (call_indirect_nonlocal_aix32_internal): Ditto.
988 (call_indirect_nonlocal_aix32): Ditto.
989 (call_indirect_nonlocal_aix64_internal): Ditto.
990 (call_indirect_nonlocal_aix64): Ditto.
991 (call_value_indirect_nonlocal_aix32_internal): Ditto.
992 (call_value_indirect_nonlocal_aix32): Ditto.
993 (call_value_indirect_nonlocal_aix64_internal): Ditto.
994 (call_value_indirect_nonlocal_aix64): Ditto.
996 2011-09-19 Martin Jambor <mjambor@suse.cz>
999 * ipa-split.c (split_function): Do not change signature if it is
1000 not possible or there are attribute types.
1002 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1003 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1006 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1007 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1009 2011-09-14 Diego Novillo <dnovillo@google.com>
1011 * tree-vect-stmts.c (vect_transform_stmt): Remove unused
1012 local variable ORIG_SCALAR_STMT.
1014 2011-09-08 Martin Jambor <mjambor@suse.cz>
1016 Backport from mainline
1017 2011-09-07 Martin Jambor <mjambor@suse.cz>
1019 PR tree-optimization/49911
1020 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1021 enumerations to the corresponding plain integer type.
1023 2011-09-08 Richard Guenther <rguenther@suse.de>
1025 Backport from mainline
1026 2011-07-04 Richard Guenther <rguenther@suse.de>
1028 PR tree-optimization/49518
1029 PR tree-optimization/49628
1030 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
1031 irrelevant data-references.
1033 2011-09-08 Richard Guenther <rguenther@suse.de>
1035 Backport from mainline
1036 2011-08-23 Richard Guenther <rguenther@suse.de>
1038 PR tree-optimization/50162
1039 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1041 2011-09-08 Richard Guenther <rguenther@suse.de>
1043 Backport from mainline
1044 2011-05-05 Michael Matz <matz@suse.de>
1046 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1047 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1048 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1049 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1050 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1051 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1052 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1053 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1054 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1055 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1056 * config/i386/linux.h (ENDFILE_SPEC): Add Ofast.
1057 * config/i386/linux64.h (ENDFILE_SPEC): Add Ofast.
1058 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1059 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1060 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1061 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1063 2011-09-08 Eric Botcazou <ebotcazou@adacore.com>
1064 Iain Sandoe <iains@gcc.gnu.org>
1066 Backport from mainline (restore powerpc-darwin Ada bootstrap).
1067 * config/rs6000/rs6000.c (compute_save_world_info): Test
1068 cfun->has_nonlocal_label to determine if the out-of-line save
1069 world call may be used.
1071 2011-09-08 Jakub Jelinek <jakub@redhat.com>
1074 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1075 code early if TARGET_AVX.
1076 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1078 2011-09-06 Martin Jambor <mjambor@suse.cz>
1081 2011-09-02 Martin Jambor <mjambor@suse.cz>
1083 * ipa-split.c (split_function): Do not skip any arguments if
1084 can_change_signature is set or there are function type attributes.
1086 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
1089 Backport from mainline r178528
1090 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
1091 that contain global register variable.
1093 2011-09-02 Martin Jambor <mjambor@suse.cz>
1096 * ipa-split.c (split_function): Do not skip any arguments if
1097 can_change_signature is set or there are function type attributes.
1099 2011-09-01 Ira Rosen <ira.rosen@linaro.org>
1101 PR tree-optimization/50178
1102 * tree-vect-stmts.c (vectorizable_call): Update the related
1103 pattern statement before deleting the original call.
1104 (vect_transform_stmt): Don't expect the related pattern statement
1105 to match the original statement after transformation.
1107 2011-08-29 Richard Guenther <rguenther@suse.de>
1110 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1112 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1114 * config/i386/sse.md (vec_extract_lo_<mode>): Prevent both
1116 (vec_extract_lo_v16hi): Ditto.
1117 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1118 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1121 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1124 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1125 when all outputs are unused.
1126 (sse4_2_pcmpistr): Ditto.
1128 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1131 * c-typeck.c (c_process_expr_stmt): Skip over nops and
1132 call mark_exp_read even if exprv is ADDR_EXPR.
1134 2011-08-20 Jakub Jelinek <jakub@redhat.com>
1136 PR tree-optimization/48739
1137 * tree-ssa.c: Include cfgloop.h.
1138 (execute_update_addresses_taken): When updating ssa, if in
1139 loop closed SSA form, call rewrite_into_loop_closed_ssa instead of
1141 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1143 2011-08-18 Jakub Jelinek <jakub@redhat.com>
1146 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1147 on the result before returning it.
1149 2011-08-16 Liang Wang <lwang1@marvell.com>
1151 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1152 ggc_alloc_zone_vec_rtvec_def.
1154 2011-08-12 Nick Clifton <nickc@redhat.com>
1156 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi
1158 * doc/md.texi (cmpstrn): Note that the comparison stops if both
1159 fetched bytes are zero.
1161 (cmpmem): Note that the comparison does not stop if both of the
1162 fetched bytes are zero.
1164 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
1166 * config/rx/rx.md (movsicc): Allow register to register
1168 (*movsicc): Likewise.
1169 (*stcc): Restrict this pattern to EQ and NE compares.
1170 (*stcc_reg): New pattern. Works for any comparison but only for
1173 2011-08-10 DJ Delorie <dj@redhat.com>
1175 * expr.c (expand_expr_addr_expr_1): Detect a user request for
1176 a local frame in a naked function, and produce a suitable
1177 error for that specific case.
1179 2011-08-09 Martin Jambor <mjambor@suse.cz>
1182 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1185 2011-08-09 Nick Clifton <nickc@redhat.com>
1187 * config/rx/rx.md: Disable extender peepholes at -O3.
1189 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
1192 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1193 (TARGET_INSTANTIATE_DECLS): New define.
1195 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1197 Backport from mainline
1198 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1200 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1202 * doc/invoke.texi: Document core-avx-i.
1204 2011-08-03 Jakub Jelinek <jakub@redhat.com>
1206 PR tree-optimization/49948
1207 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1209 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
1211 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
1212 (stack_protect_test): The pattern compares ptr_mode value.
1214 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
1217 * config/i386/i386.md (strset): Do not expand strset_singleop
1218 when %eax or $edi are fixed.
1219 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
1220 (*strsetsi_1): Ditto.
1221 (*strsethi_1): Ditto.
1222 (*strsetqi_1): Ditto.
1223 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
1224 (*rep_stossi): Ditto.
1225 (*rep_stosqi): Ditto.
1226 (*strlenqi_1): Ditto.
1227 (cmpstrnsi): Also fail when %ecx is fixed.
1228 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
1229 (*cmpstrnqi_1): Ditto.
1230 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
1231 (*strmovsi_1): Ditto.
1232 (*strmovhi_1): Ditto.
1233 (*strmovqi_1): Ditto.
1234 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
1235 (*rep_movsi): Ditto.
1236 (*rep_movqi): Ditto.
1238 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
1241 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
1242 Disable instruction scheduling for non-ColdFire targets.
1243 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1245 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1249 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
1250 in nested parallel and outer is a gimple_reg, mark it as addressable
1251 and set its bit in task_shared_vars bitmap too.
1253 2011-07-29 Wei Guozhi <carrot@google.com>
1255 Backport from mainline
1256 2011-07-29 Wei Guozhi <carrot@google.com>
1258 PR rtl-optimization/49799
1259 * combine.c (make_compound_operation): Check if the bit field is valid
1260 before change it to bit field extraction.
1262 2011-07-28 Jakub Jelinek <jakub@redhat.com>
1265 * dwarf2out.c (size_of_die, value_format, output_die): Use
1266 DW_FORM_udata instead of DW_FORM_data[48] for
1267 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
1269 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1271 Backport from mainline
1272 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1275 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
1277 2011-07-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1279 Backport from mainline:
1280 2011-07-26 Martin Jambor <mjambor@suse.cz>
1282 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1283 return false for invariants.
1285 2011-07-27 Jakub Jelinek <jakub@redhat.com>
1288 * config/i386/i386.md (*call_pop_1_vzeroupper, *call_pop_1,
1289 *sibcall_pop_1_vzeroupper, *sibcall_pop_1, *call_1_vzeroupper,
1290 *call_1, *sibcall_1_vzeroupper, *sibcall_1, *call_1_rex64_vzeroupper,
1291 *call_1_rex64, *call_1_rex64_ms_sysv_vzeroupper,
1292 *call_1_rex64_ms_sysv, *sibcall_1_rex64_vzeroupper,
1293 *sibcall_1_rex64, *call_value_pop_1_vzeroupper,
1294 *call_value_pop_1, *sibcall_value_pop_1_vzeroupper,
1295 *sibcall_value_pop_1, *call_value_1_vzeroupper,
1296 *call_value_1, *sibcall_value_1_vzeroupper,
1297 *sibcall_value_1, *call_value_1_rex64_vzeroupper,
1298 *call_value_1_rex64, *call_value_1_rex64_ms_sysv_vzeroupper,
1299 *call_value_1_rex64_ms_sysv, *sibcall_value_1_rex64_vzeroupper,
1300 *sibcall_value_1_rex64): Use z constraint instead of s constraint.
1302 Backport from mainline
1303 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1305 * config/i386/constraints.md (z): New constraint.
1307 2011-07-25 Andrew Pinski <apinski@cavium.com>
1310 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
1311 TREE_THIS_NOTRAP into the inner most MEM_REF.
1312 Always copy TREE_THIS_VOLATILE.
1313 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
1314 arguments are not volatile references.
1316 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
1319 Backport from mainline r176756
1320 2011-07-25 Georg-Johann Lay
1321 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
1322 shift counter for x << x and x >> x shifts.
1324 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
1326 * config.gcc (x86_64-*-linux*): Set
1327 default_gnu_indirect_function to yes.
1329 2011-07-22 Richard Guenther <rguenther@suse.de>
1331 PR tree-optimization/45819
1332 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1333 preserve volatile and notrap flags.
1335 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
1337 Backport from mainline
1338 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
1341 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
1342 general register to memory for !TARGET_INTER_UNIT_MOVES.
1344 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1346 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
1347 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
1349 2011-07-19 Jakub Jelinek <jakub@redhat.com>
1351 PR tree-optimization/49768
1352 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Return NULL
1353 if offset is smaller than bitoffset, but offset+size is bigger
1356 2011-07-18 Jakub Jelinek <jakub@redhat.com>
1359 * tree.c (build_common_builtin_nodes): Register
1360 __builtin_return_address, __cyg_profile_func_enter
1361 and __cyg_profile_func_exit.
1363 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1365 * config.gcc: Obsolete i[3456x]86-*-netware*.
1367 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1371 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1373 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1376 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
1379 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1381 2011-07-16 Eric Botcazou <ebotcazou@adacore.com>
1383 PR tree-optimization/49725
1384 Backport from mainline
1385 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1387 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1388 a zero minimum index only if it is redundant.
1390 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1393 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1395 2011-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1397 Backport from mainline:
1398 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1400 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1401 (asm_file_start): Remove.
1402 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1403 free_bb_for_insn around code that modifies insns before
1404 restarting df analysis.
1406 2011-07-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1408 Backport from mainline:
1409 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1412 * config/sol2.h (LIB_SPEC): Simplify.
1413 Move LIB_THREAD_LDFLAGS_SPEC ...
1414 (LINK_SPEC): ... here.
1416 2011-07-14 James Greenhalgh <james.greenhalgh@arm.com>
1418 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
1420 2011-07-14 Andrew Pinski <pinskia@gmail.com>
1423 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1424 Use fold_build2_loc instead of build2.
1425 Use the correct type for the new tree.
1427 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
1430 Backport from mainline r176276
1431 2011-07-14 Georg-Johann Lay
1432 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1434 (*rotw<mode>): Use const_int_operand for operand2.
1435 Use match_scatch for operand3.
1436 (*rotb<mode>): Ditto
1437 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1439 2011-07-14 Richard Guenther <rguenther@suse.de>
1441 PR tree-optimization/49651
1442 * tree-ssa-structalias.c (get_constraint_for_1): Properly
1443 handle dereferences with subvariables.
1445 2011-07-11 Martin Jambor <mjambor@suse.cz>
1447 PR tree-optimization/49094
1448 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1449 (build_accesses_from_assign): Use it.
1451 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1454 Backport from mainline r176141
1455 2011-07-11 Georg-Johann Lay
1456 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1457 offsets 1..5 set cc0 in a usable way.
1459 2011-07-08 Jakub Jelinek <jakub@redhat.com>
1462 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1463 CONST0_RTX (dest_mode) instead of const0_rtx as second operand
1465 * config/rs6000/vector.md (vector_select_<mode>,
1466 vector_select_<mode>_uns): Change second operand of NE to
1467 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1468 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1469 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1470 zero_constant of the corresponding vector mode.
1471 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1474 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1477 Backport from mainline SVN 176053.
1478 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1479 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1480 In particular, allow 8-bit values in r28 and r29.
1481 (avr_hard_regno_scratch_ok): Disallow any register that might be
1482 part of the frame pointer.
1483 (avr_hard_regno_rename_ok): Same.
1484 (avr_legitimate_address_p): Don't allow SUBREGs.
1486 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1489 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1490 MASK_V8PLUS, remove commented out flag and reorder.
1492 Backport from mainline
1493 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1495 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1496 (TARGET_64BIT_DEFAULT): Define.
1497 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1499 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1501 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1504 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1505 one non-complex and one complex argument, call c_save_expr on both
1509 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1510 referencing debug insns that have been reset.
1511 (dead_debug_insert_before): Don't assert reg is non-NULL,
1512 instead return immediately if it is NULL.
1515 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
1516 operands and last COMPONENT_REF operand call gimplify_expr on it
1519 2011-07-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1521 Backport from mainline.
1522 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1525 * config/arm/predicates.md (add_operator): New.
1526 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
1529 2011-07-05 Jakub Jelinek <jakub@redhat.com>
1531 PR tree-optimization/49618
1532 * tree-eh.c (tree_could_trap_p) <case FUNCTION_DECL, case VAR_DECL>:
1533 For DECL_WEAK decls return true.
1535 2011-07-04 Jakub Jelinek <jakub@redhat.com>
1537 PR rtl-optimization/49619
1538 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
1539 pass VOIDmode as op0_mode to recursive call.
1541 PR rtl-optimization/49472
1542 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
1543 negating MULT, negate the second operand instead of first.
1544 (simplify_binary_operation_1) <case MULT>: If one operand is
1545 a NEG and the other is MULT, don't attempt to optimize by
1546 negation of the MULT operand if it only moves the NEG operation
1549 Backported from mainline
1550 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1553 * dwarf2out.c (native_encode_initializer): Decrement count in each
1556 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1558 Backport from mainline
1559 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1562 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
1563 instead of TREE_READONLY.
1565 2011-07-04 Richard Guenther <rguenther@suse.de>
1567 PR tree-optimization/49615
1568 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
1569 basic-block index check.
1571 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1573 PR tree-optimization/49572
1574 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1575 type of the RHS instead of that of the LHS for the expression type.
1577 2011-06-30 Georg-Johann Lay <avr@gjlay.de>
1579 Backport from mainline
1581 (avr_section_type_flags): For data in ".progmem.data", remove
1582 section flag SECTION_WRITE.
1584 2011-06-30 Georg-Johann Lay <avr@gjlay.de>
1586 Backport from mainline
1588 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1589 about uninitialized data attributed 'progmem' from here...
1590 (avr_encode_section_info): ...to this new function.
1591 (TARGET_ENCODE_SECTION_INFO): New define.
1593 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1595 Backport from mainline
1596 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1598 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1600 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1602 (TARGET_AVX128_OPTIMAL): New definition.
1603 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1604 X86_TUNE_AVX128_OPTIMAL entry.
1605 (ix86_option_override_internal): Enable the generation
1606 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1607 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1608 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1610 2011-06-29 Harsha Jagasia <harsha.jagasia@amd.com>
1612 Backport from mainline
1613 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1615 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1616 * config/i386/sse.md: Add n to negated FMA pattern names.
1618 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1620 PR tree-optimization/49539
1621 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1622 names by means of stmt_references_abnormal_ssa_name.
1623 (associate_plusminus): Call can_propagate_from before propagating
1624 from definition statements.
1626 2011-06-29 Martin Jambor <mjambor@suse.cz>
1628 Backport from mainline
1629 2011-06-24 Martin Jambor <mjambor@suse.cz>
1631 PR tree-optimizations/49516
1632 * tree-sra.c (sra_modify_assign): Choose the safe path for
1633 aggregate copies if we also did scalar replacements.
1635 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1637 Backport from mainline
1638 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1641 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1642 (avx256_split_unaligned_store): New definition.
1643 (ix86_option_override_internal): Enable avx256 unaligned load/store
1644 splitting only when avx256_split_unaligned_load/store is set.
1646 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1648 Backport from mainline
1649 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1651 * config/i386/i386.c (flag_opts): Fix a typo in
1652 -mavx256-split-unaligned-store.
1654 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1656 Backport from mainline
1657 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1659 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1660 unaligned 256bit load/store.
1661 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1662 (*avx_movdqu<avxmodesuffix>): Likewise.
1664 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1666 Backport from mainline
1667 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1669 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1670 and -mavx256-split-unaligned-store.
1671 (ix86_option_override_internal): Split 32-byte AVX unaligned
1672 load/store by default.
1673 (ix86_avx256_split_vector_move_misalign): New.
1674 (ix86_expand_vector_move_misalign): Use it.
1676 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1677 -mavx256-split-unaligned-store.
1679 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1680 256bit load/store. Generate unaligned store on misaligned memory
1682 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1684 (*avx_movdqu<avxmodesuffix>): Likewise.
1686 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1687 -mavx256-split-unaligned-store.
1689 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1691 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1693 2011-06-28 Andrey Belevantsev <abel@ispras.ru>
1695 Backport from mainline
1696 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1698 PR rtl-optimization/49014
1699 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1701 2011-06-28 Alexander Monakov <amonakov@ispras.ru>
1703 Backport from mainline
1704 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1707 * cfgloop.h (loop_has_exit_edges): New helper.
1708 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1710 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1711 that have no exit edges.
1713 2011-06-28 Iain Sandoe <iains@gcc.gnu.org>
1716 * config/darwin.c (darwin_mergeable_string_section): Place string
1717 constants in '.cstring' rather than '.const' when CF/NSStrings are
1720 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1722 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1723 forward scan as well.
1725 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1727 * BASE-VER: Set to 4.6.2.
1728 * DEV-PHASE: Set to prerelease.
1730 2011-06-27 Release Manager
1732 * GCC 4.6.1 released.
1734 2011-06-21 Alan Modra <amodra@gmail.com>
1736 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New func.
1737 (TARGET_CANNOT_FORCE_CONST_MEM): Update definition.
1739 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1741 Backport from mainline.
1742 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1745 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1746 correctly for the case with Quad vectors.
1748 2011-06-20 Alan Modra <amodra@gmail.com>
1750 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1751 of toc-relative address in CONST.
1752 (rs6000_delegitimize_address): Recognize changed address.
1753 (rs6000_legitimize_reload_address): Likewise.
1754 (rs6000_emit_move): Don't force these constants to memory.
1755 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1756 toc-relative address in CONST.
1757 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1758 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1760 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1763 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1764 last_arg_constant and last argument doesn't match its predicate,
1765 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1766 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1767 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1768 spelling of error message.
1769 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1770 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1771 const_0_to_255_operand instead of const_int_operand.
1773 2011-06-17 Richard Henderson <rth@redhat.com>
1775 Backport from mainline
1776 2011-03-22 Richard Henderson <rth@redhat.com>
1778 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1780 2011-06-17 Richard Guenther <rguenther@suse.de>
1782 Backport from mainline
1783 2011-05-23 Richard Guenther <rguenther@suse.de>
1785 PR tree-optimization/49115
1786 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1787 is not necessarily carried out, do not claim it kills the ref.
1788 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1790 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1792 Backport from mainline
1793 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1795 PR rtl-optimization/48542
1796 * reload.c (find_equiv_reg): Stop looking when finding a
1798 * reload1.c (reload_as_needed): Invalidate all reload
1799 registers when crossing a setjmp-type call.
1801 2011-06-16 Kaz Kojima <kkojima@gcc.gnu.org>
1803 Backport form main line
1804 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1807 * config/sh/sh.md (UNSPEC_CHKADD): New.
1808 (chk_guard_add): New define_insn_and_split.
1809 (symGOT_load): Use chk_guard_add instead of blockage.
1811 2011-06-16 Martin Jambor <mjambor@suse.cz>
1813 Backported from mainline
1814 2011-06-15 Martin Jambor <mjambor@suse.cz>
1816 PR tree-optimization/48613
1817 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1818 ipa_node_params_vector is NULL.
1820 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1822 PR tree-optimization/49419
1823 * tree-vrp.c (execute_vrp): Call init_range_assertions
1824 before estimate_numbers_of_iterations, call
1825 free_number_of_iterations_estimates before calling
1826 remove_range_assertions.
1828 Backported from mainline
1829 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1832 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
1833 with a set of similar patterns, where the MATCH_OPERAND for the
1834 function argument is replaced with individual references to hardware
1836 (save_fpregs_<mode>): Ditto
1837 (restore_gpregs_<mode>): Ditto
1838 (return_and_restore_gpregs_<mode>): Ditto
1839 (return_and_restore_fpregs_<mode>): Ditto
1840 (return_and_restore_fpregs_aix_<mode>): Ditto
1842 2011-06-14 Richard Henderson <rth@redhat.com>
1845 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1846 (based_loc_descr): Assert it's true.
1847 (compute_frame_pointer_to_fb_displacement): Set it,
1848 rather than aborting immediately.
1850 2011-06-14 Richard Henderson <rth@redhat.com>
1852 Backport from mainline
1853 2011-03-22 Richard Henderson <rth@redhat.com>
1855 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1856 (avr_incoming_return_addr_rtx): New.
1857 (emit_push_byte): New.
1858 (expand_prologue): Use it. Remove incorrect dwarf annotation for
1859 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
1860 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
1861 (emit_pop_byte): New.
1862 (expand_epilogue): Use it. Pop frame pointer by bytes.
1863 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1864 (INCOMING_RETURN_ADDR_RTX): New.
1865 (INCOMING_FRAME_SP_OFFSET): New.
1866 (ARG_POINTER_CFA_OFFSET): New.
1867 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1868 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1871 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1874 * tree.h (DECL_NONSHAREABLE): Define.
1875 (struct tree_decl_common): Change decl_common_unused to
1876 decl_nonshareable_flag.
1877 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1878 Ignore vars with DECL_NONSHAREABLE bit set.
1879 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1880 on stores to automatic aggregate vars.
1882 PR rtl-optimization/49390
1884 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1886 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1889 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1891 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1892 (*vec_dupv2df): Rename from vec_dupv2df.
1893 (vec_dupv2df): New expander.
1895 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1897 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1899 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1901 Backport from mainline
1902 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1904 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1905 unknown Intel family 0x6 CPUs.
1907 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1909 Backport from mainline
1910 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1913 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1914 needed when original operands are used for msw_skip comparison.
1916 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1918 PR gcov-profile/49299
1919 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1921 2011-06-06 Pat Haugen <pthaugen@us.ibm.com>
1923 Backport from mainline
1924 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1926 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1929 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1932 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1933 if stmt folded into nothing.
1934 * tree-inline.c (fold_marked_statements): If a builtin at the
1935 end of a bb folded into nothing, just update cgraph edges
1936 and move to next bb.
1937 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1938 to be NULL. Don't compute count and frequency if new_call is NULL.
1940 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1942 * longlong.h (smul_ppmm): The resulting register pair contains the
1943 higher order word first.
1945 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1947 PR tree-optimization/49243
1948 * calls.c (setjmp_call_p): Also check if fndecl has the
1949 returns_twice attribute.
1951 2011-06-06 Richard Guenther <rguenther@suse.de>
1953 PR tree-optimization/48702
1954 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1955 only when we know the base address is within bounds.
1956 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1957 assume the base address of TARGET_MEM_REFs is in bounds.
1958 (indirect_refs_may_alias_p): Fix TARGET_MEM_REF without index tests.
1960 Backport from mainline
1961 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1963 PR rtl-optimization/49235
1964 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1965 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1967 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1969 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1970 EH return when delayed branches are disabled.
1972 2011-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
1974 Backport from mainline
1975 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1978 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1979 part of the second operand is 0.
1981 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1984 * target.def (delay_sched2, delay_vartrack): New.
1985 * doc/tm.texi.in: Update.
1986 * doc/tm.texi: Rebuild.
1987 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1988 * var-tracking.c (gate_handle_var_tracking): Likewise.
1989 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1990 (bfin_flag_var_tracking): Drop.
1991 (output_file_start): Don't save and override flag_var_tracking.
1992 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1993 (bfin_reorg): Test original variables.
1994 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1995 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1996 (ia64_flag_var_tracking): Drop.
1997 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1998 (ia64_file_start): Don't save and override flag_var_tracking.
1999 (ia64_override_options_after_change): Ditto
2000 flag_schedule_insns_after_reload.
2001 (ia64_reorg): Test original variables.
2002 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2003 (picochip_flag_var_tracking): Drop.
2004 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2005 (picochip_option_override): Don't save and override
2006 flag_schedule_insns_after_reload.
2007 (picochip_asm_file_start): Ditto flag_var_tracking.
2008 (picochip_reorg): Test original variables.
2009 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2010 (TARGET_DELAY_VARTRACK): Define.
2011 (spu_var_tracking): New.
2012 (spu_machine_dependent_reorg): Call it.
2013 (asm_file_start): Don't save and override flag_var_tracking.
2015 2011-06-04 Ira Rosen <ira.rosen@linaro.org>
2017 PR tree-optimization/49038
2018 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2019 Ensure at least one epilogue iteration if required by data
2021 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2022 to mark loops that require peeling for gaps.
2023 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2024 (vect_get_known_peeling_cost): Take peeling for gaps into
2026 (vect_transform_loop): Generate epilogue if required by data
2028 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2029 loop as requiring an epilogue if there are gaps in the end of
2032 2011-06-02 Ira Rosen <ira.rosen@linaro.org>
2034 PR tree-optimization/49093
2035 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2038 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2040 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2041 (fma4_fmaddsub): Likewise
2043 2011-05-31 Richard Guenther <rguenther@suse.de>
2045 Backport from mainline
2046 2011-05-19 Richard Guenther <rguenther@suse.de>
2049 * tree-object-size.c (addr_object_size): If the pointed-to
2050 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2052 2011-05-31 Richard Guenther <rguenther@suse.de>
2054 Backport from mainline
2055 2011-05-11 Richard Guenther <rguenther@suse.de>
2058 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2060 2011-05-30 Richard Guenther <rguenther@suse.de>
2062 PR tree-optimization/49218
2063 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2066 2011-05-30 Georg-Johann Lay <avr@gjlay.de>
2069 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors):
2070 Don't use r20 around calls of __tablejump_elpm__
2072 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2075 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2078 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2081 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2082 recurse_p argument. Only follow register copies if it is set,
2083 and prevent mips_find_pic_call_symbol from recursing.
2084 (mips_find_pic_call_symbol): Add a recurse_p argument.
2085 Pass it to mips_pic_call_symbol_from_set.
2086 (mips_annotate_pic_calls): Update accordingly.
2088 2011-05-29 Richard Guenther <rguenther@suse.de>
2090 PR tree-optimization/49217
2091 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2093 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2095 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2096 moves expensive on Power7 also.
2098 2011-05-26 Georg-Johann Lay <avr@gjlay.de>
2101 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2102 alone. Error if non-const data has attribute progmem.
2104 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2107 * gimplify.c (shortcut_cond_r): Don't special case
2108 COND_EXPRs if they have void type on one of their arms.
2110 PR tree-optimization/49161
2111 * tree-vrp.c (struct case_info): New type.
2112 (compare_case_labels): Sort case_info structs instead of
2113 trees, and not primarily by CASE_LABEL uids but by
2114 label_for_block indexes.
2115 (find_switch_asserts): Put case labels into struct case_info
2116 array instead of TREE_VEC, adjust sorting, compare label_for_block
2117 values instead of CASE_LABELs.
2119 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2122 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2124 2011-05-18 Jan Hubicka <jh@suse.cz>
2126 PR tree-optimization/44897
2127 * ipa-inline.c (cgraph_decide_recursive_inlining): Do not divide
2128 by zero for insane profiles.
2130 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2132 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2133 force flag_ira_share_save_slots to 0.
2135 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2138 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2140 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2142 Backport from mainline
2143 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2146 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2147 add -mno-XXX. Handle FMA.
2149 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2152 * fold-const.c (constant_boolean_node): If type is non-NULL,
2153 use build_int_cst_type instead of build_int_cst.
2156 * dbxout.c: Include cgraph.h.
2157 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2158 and without value expr, return NULL if no varpool node exists for
2159 it or if it is not needed.
2160 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2163 * c-decl.c (start_decl): Convert expr to void_type_node.
2166 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2167 failed and the comparison has a single bit signed type, use
2168 constm1_rtx instead of const1_rtx for true value.
2169 (do_store_flag): If ops->type is single bit signed type, disable
2170 signel bit test optimization and pass -1 instead of 1 as last
2171 parameter to emit_store_flag_force.
2173 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2175 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2176 (sparc-*-rtems*): Likewise.
2177 (sparc64-*-elf*): Likewise.
2178 (sparc64-*-rtems*): Likewise.
2179 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2180 * config/sparc/t-crtin: New file.
2181 * config/sparc/t-sol2 (crti.o): Delete rule.
2183 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2184 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2185 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2186 (ENDFILE_SPEC): Add crtn.o.
2188 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2191 * config/i386/cpuid.h (bit_MMXEXT): New define.
2193 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2196 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2197 only after deciding which mode to use.
2199 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2201 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2204 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2206 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2207 false if there are call-saved registers here...
2208 (sparc_can_use_return_insn_p): ...but here instead.
2209 (save_or_restore_regs): Fix thinko.
2210 (sparc_expand_prologue): Use current_function_is_leaf.
2211 (sparc_frame_pointer_required): Likewise.
2213 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2216 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2217 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2219 2011-05-20 Richard Guenther <rguenther@suse.de>
2221 PR tree-optimization/49079
2222 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2223 MEM_REFs correctly for the trailing array access detection.
2224 Special case constants the same way as decls for overall size
2227 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2229 PR tree-optimization/49073
2230 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return
2231 NULL if PHI argument is SSA_NAME, whose def_stmt is dominated
2233 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2235 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2237 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2238 when TARGET_RDRND is active.
2239 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2240 Generate dummy SImode target register when target is NULL.
2242 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2244 Backport from mainline
2245 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2248 * config/i386/sse.md (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>):
2249 Properly handle load cast.
2251 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2253 PR tree-optimization/49039
2254 * tree-vrp.c (extract_range_from_binary_expr): For
2255 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2256 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2258 2011-05-18 Richard Guenther <rguenther@suse.de>
2260 PR tree-optimization/49018
2261 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2262 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2263 gimple_has_side_effects.
2265 2011-05-18 Richard Guenther <rguenther@suse.de>
2267 Backport from mainline
2268 2011-04-19 Richard Guenther <rguenther@suse.de>
2271 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2274 2011-04-21 Richard Guenther <rguenther@suse.de>
2277 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
2280 2011-05-18 Richard Guenther <rguenther@suse.de>
2282 Backport from mainline
2283 2011-05-12 Richard Guenther <rguenther@suse.de>
2285 PR tree-optimization/48172
2286 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2287 the number of iterations from the segment size calculation.
2288 (vect_create_cond_for_alias_checks): Adjust.
2290 2011-05-13 Richard Guenther <rguenther@suse.de>
2292 PR tree-optimization/48172
2293 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2294 multiplying by number of iterations for equal step.
2295 (vect_create_cond_for_alias_checks): Likewise.
2297 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2299 PR tree-optimization/49000
2300 * tree-ssa.c (execute_update_addresses_taken): Call
2301 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2302 be rewritten and decl has been marked for renaming, reset
2305 2011-05-17 Nick Clifton <nickc@redhat.com>
2307 Import these patches from the mainline:
2309 2011-05-17 Nick Clifton <nickc@redhat.com>
2311 * config/rx/rx.c (rx_memory_move_cost): Include cost of register moves.
2313 * config/rx/rx.md: Add peephole to remove redundant extensions
2315 (bitset_in_memory): Use rx_restricted_mem_operand.
2316 (bitinvert_in_memory): Likewise.
2317 (bitclr_in_memory): Likewise.
2319 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2320 Nick Clifton <nickc@redhat.com>
2322 * config/rx/rx.md: Add peepholes to match a register move followed
2323 by a comparison of the moved register. Replace these with an
2324 addition of zero that does both actions in one instruction.
2326 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2329 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2330 predicate to allow CONST_INT.
2332 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2334 PR preprocessor/48677
2335 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2336 from decoded_options[0], not from itself.
2338 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2340 * config/i386/i386.md (*movxf_internal): Disable CONST_DOUBLE
2341 optimization for CM_MEDIUM and CM_LARGE code models. Fix usage
2342 of standard_80387_constant_p.
2343 (*movxf_internal_nointeger): Ditto.
2344 (*movdf_internal): Remove dead code-size optimization.
2345 (*movdf_internal_rex64): Fix usage of standard_80387_constant_p.
2346 (*movdf_internal_nointeger): Ditto.
2347 (*movsf_internal): Ditto.
2348 (floating point move splitters): Ditto.
2349 * config/i386/constraints.md (G): Ditto.
2350 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2352 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2354 PR tree-optimization/48975
2355 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2356 on all bbs here and free and clear ifc_bbs at the end.
2358 2011-05-12 Richard Guenther <rguenther@suse.de>
2360 Backport from mainline
2361 2011-05-02 Richard Guenther <rguenther@suse.de>
2363 PR tree-optimization/48822
2364 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2365 (process_scc): Indicate which iteration we start.
2367 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2370 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2371 if validate_subreg fails.
2373 2011-05-12 Nick Clifton <nickc@redhat.com>
2375 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2376 * config/rx/rx.c (rx_is_legitimate_constant): Use gcc_unreachable
2378 (rx_align_for_label): Test label before extracting its number of
2380 (rx_max_skip_for_label): Ignore debug insns.
2382 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2385 * tree-ssa.c (reset_debug_uses): New function.
2386 * tree-flow.h (reset_debug_uses): New prototype.
2387 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2388 * tree-loop-distribution.c (generate_loops_for_partition): Call
2389 reset_debug_uses on the stmts that will be removed. Keep around
2390 all debug stmts, don't count them as bits in partition bitmap.
2391 (generate_builtin): Don't count debug stmts or labels as bits in
2394 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2396 Backport from mainline
2397 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2399 PR target/48857, 48495
2400 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2402 (VSX_MOVE_MODE): Ditto.
2403 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2404 VSX vector types. Add V2DImode.
2405 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2406 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2407 (MODES_TIEABLE_P): Ditto.
2409 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2410 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2412 (init_cumulative_args): Ditto.
2413 (rs6000_function_arg_boundary): Ditto.
2414 (rs6000_function_arg_advance_1): Ditto.
2415 (rs6000_function_arg): Ditto.
2416 (rs6000_function_ok_for_sibcall): Ditto.
2417 (emit_frame_save): Ditto.
2418 (rs6000_function_value): Ditto.
2419 (rs6000_libcall_value): Ditto.
2421 2011-05-10 Nick Clifton <nickc@redhat.com>
2423 * config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
2426 2011-05-10 DJ Delorie <dj@redhat.com>
2428 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2429 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2430 * config/rx/rx.c (rx_align_for_label): Add label and
2431 uses_threshold parameters. Do not align when the label is not
2433 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2435 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2437 Backported from mainline
2438 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2440 PR tree-optimization/48837
2441 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2442 when accumulator transformation is performed.
2444 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2446 PR tree-optimization/48611
2447 PR tree-optimization/48794
2448 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2449 referenced from RESX or EH_DISPATCH arguments.
2451 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2453 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2454 temporary register to match Pmode.
2456 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2458 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2459 (dataflow_set_preserve_mem_locs): Likewise.
2461 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2463 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2464 constraint modifier to "r".
2466 2011-05-06 Alan Modra <amodra@gmail.com>
2469 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2470 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2472 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2474 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2476 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2478 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2481 * config/arm/neon.md (neon_vtrn<mode>): Fix typo from earlier commit.
2483 2011-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2485 * config/rs6000/rs6000.c (rs6000_handle_option): Add missing break
2488 2011-05-05 Jason Merrill <jason@redhat.com>
2491 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2493 2011-05-05 Julian Brown <julian@codesourcery.com>
2495 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2496 parenthesis in D-register case.
2498 2011-05-05 Ira Rosen <ira.rosen@linaro.org>
2500 Backport from mainline:
2501 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2502 Ira Rosen <ira.rosen@linaro.org>
2505 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2506 to match neon_vzip/vuzp/vtrn_internal.
2507 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2508 outputs explicitly dependent on both inputs.
2509 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2511 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2513 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2514 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2515 (*movdi_internal): Use "maybe_vex" instead of "vex" in "prefix"
2516 attribute calculation.
2517 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2518 * config/i386/sse.md (*sse2_storeq_rex64): Do not emit %v prefix
2519 for mov{q} mnemonic.
2520 (*vec_extractv2di_1_rex64_avx): Ditto.
2522 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2523 Jakub Jelinek <jakub@redhat.com>
2526 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2527 only succeed if req_mode is the same as set_mode.
2529 2011-05-03 Richard Guenther <rguenther@suse.de>
2532 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2533 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2534 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2536 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2539 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2540 for -fstack-check if the size to allocate is negative.
2542 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2544 PR tree-optimization/48809
2545 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2547 (gen_inbound_check): Don't compute index_expr - range_min in utype
2548 again, instead reuse SSA_NAME initialized in build_arrays.
2549 Remove two useless gsi_for_stmt calls.
2551 2011-04-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2553 Backport from mainline
2554 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2555 Michael Meissner <meissner@linux.vnet.ibm.com>
2558 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2559 operands, as per the specifications.
2561 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2562 (vec_extract_evenv4sf): Ditto.
2563 (vec_extract_evenv8hi): Ditto.
2564 (vec_extract_evenv16qi): Ditto.
2565 (vec_extract_oddv4si): Ditto.
2567 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2570 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2573 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2576 * c-typeck.c (build_binary_op): Don't wrap arguments if
2577 int_operands is true.
2579 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2582 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2583 is error_mark_node, set value to NULL.
2585 PR tree-optimization/48734
2586 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2587 if return value from maybe_fold_*_comparsions isn't something
2588 the code is prepared to handle.
2590 2011-04-26 Richard Guenther <rguenther@suse.de>
2592 PR tree-optimization/48731
2593 * ipa-inline.c (cgraph_flatten): Test if function is inlinable.
2595 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2598 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2599 __is_literal_type, and __is_trivial; update throughout about
2600 possibly cv-qualified void types.
2602 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2605 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2606 to VOID_TYPE even around MODIFY_EXPR.
2608 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2610 PR tree-optimization/48717
2611 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2612 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2614 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2617 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2618 TREE_STATIC variables declared inside of some OpenMP construct.
2620 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2623 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2624 vec_extract and vec_concat for non-SSE4_1 targets.
2626 2011-04-21 Richard Guenther <rguenther@suse.de>
2629 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2630 objects and types here. Adjust for their offset before comparing.
2632 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2634 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2636 2011-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2639 * config/pa/predicates.md (ior_operand): Delete predicate.
2640 (cint_ior_operand, reg_or_cint_ior_operand): New predicates.
2641 * config/pa/pa.md (iordi3): Use reg_or_cint_ior_operand predicate in
2642 expander. Use cint_ior_operand in unnamed insn.
2644 * config/pa/pa-protos.h (ior_operand): Delete declarations.
2646 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2648 PR tree-optimization/48611
2649 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2650 beyond ERT_MUST_NOT_THROW region.
2652 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2654 Backport from mainline
2655 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2658 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2659 the types if they have different enumeration identifiers.
2661 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2664 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2665 DECL_IN_CONSTANT_POOL without RTL.
2667 2011-04-20 Richard Guenther <rguenther@suse.de>
2669 Backport from mainline
2670 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2673 * reload1.c (inc_for_reload): Return void. All callers changed.
2674 (emit_input_reload_insns): Don't try to delete previous output
2675 reloads to a register, or record spill_reg_store for autoincs.
2677 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2680 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2681 is a SUBREG with non-MODE_INT mode inside of it.
2683 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2686 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2687 if TREE_TYPE (v) is non-NULL.
2689 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2690 gimple_get_virt_mehtod_for_binfo.
2691 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2692 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2694 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2696 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2698 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2700 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2702 PR tree-optimization/48616
2703 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2704 whether the shift is by scalar or vector based on whether all SLP
2705 scalar stmts have the same rhs.
2707 2011-04-17 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2709 * doc/passes.texi: Fill crossref nodes.
2711 2011-04-17 Marius Strobl <marius@FreeBSD.org>
2713 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2714 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2715 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2717 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2720 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2721 is non-null before accessing it.
2722 (input_cgraph): Remove trailing spaces.
2724 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2726 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2727 Replace match_operand with match_dup for the third operand in
2730 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2733 * config/i386/sse.md (avx_insertps, sse4_1_insertps): If operands[2]
2734 is a MEM, offset it as needed based on top 2 bits in operands[3],
2735 change MEM mode to SFmode and mask those 2 bits away from operands[3].
2737 2011-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2739 Backport from mainline:
2740 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2743 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2744 move from floating point to shift amount register.
2745 (emit_move_sequence): Remove secondary reload support for floating
2746 point to shift amount amount register copies.
2747 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2748 amount register copies.
2749 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2750 register, return false if mode isn't a scalar integer mode.
2751 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2753 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2756 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is NULL.
2757 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2759 2011-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2761 Backport from mainline:
2762 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2764 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2766 2011-04-12 Martin Jambor <mjambor@suse.cz>
2768 PR tree-optimization/48195
2769 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2770 ipa_check_create_edge_args.
2771 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2772 ipa_check_create_edge_args.
2773 * ipa-inline.c (inline_generate_summary): Do not call
2774 ipa_check_create_node_params and ipa_check_create_edge_args.
2775 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2776 ipa_check_create_edge_args.
2778 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2780 PR rtl-optimization/48549
2781 * combine.c (propagate_for_debug): Also stop after BB_END of
2782 this_basic_block. Process LAST and just stop processing after it.
2783 (combine_instructions): If last_combined_insn has been deleted,
2784 set last_combined_insn to its PREV_INSN.
2786 2011-04-12 Nick Clifton <nickc@redhat.com>
2788 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2789 instruction for interrupt handlers if the target is the basic V850
2791 (expand_epilogue): Likewise.
2793 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2796 * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to
2799 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2801 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2803 2011-04-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2805 Backport from mainline:
2806 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2808 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2810 2011-04-09 Duncan Sands <baldrick@free.fr>
2812 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2814 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2817 * config.gcc: disable unwind table generation for crtbegin/crtend
2820 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2822 PR tree-optimization/48377
2823 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set is_packed
2824 to true even for types with smaller TYPE_ALIGN than TYPE_SIZE.
2826 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2828 * config/i386/sse.md: Update copyright year.
2829 (avx_cmp<ssescalarmodesuffix><mode>3): Add missing output
2830 register constraint.
2831 (*vec_concatv2sf_avx): Fix wrong register constraint in
2832 alternative 3 of operand 1.
2833 (*vec_set<mode>_0_avx): Avoid combining registers from different
2834 units in a single alternative.
2835 (*vec_set<mode>_0_sse4_1): Ditto.
2836 (*vec_set<mode>_0_sse2): Ditto.
2837 (vec_set<mode>_0): Ditto.
2838 (sse2_storehpd): Ditto.
2839 (sse2_loadhpd): Ditto.
2840 (sse4_1_insertps): Use nonimmediate_operand for operand 2.
2841 * config/i386/predicates.md (sse_comparison_operator): Do not
2842 define as special predicate.
2844 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2847 * combine.c (combine_instructions): Add last_combined_insn,
2848 update it if insn is after it, pass it to all try_combine calls.
2849 (try_combine): Add last_combined_insn parameter, pass it instead of
2850 i3 to propagate_for_debug.
2852 2011-04-07 Andrey Belevantsev <abel@ispras.ru>
2854 Backport from mainline
2855 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
2857 PR rtl-optimization/48144
2858 * sel-sched-ir.c (merge_history_vect): Factor out from ...
2859 (merge_expr_data): ... here.
2860 (av_set_intersect): Rename to av_set_code_motion_filter.
2861 Update all callers. Call merge_history_vect when an
2862 expression is found in both sets.
2863 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2865 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2868 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2869 as base_reg whatever register reg has been eliminated to, instead
2870 of hardcoding STACK_POINTER_REGNUM.
2872 Backported from mainline
2873 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2876 * expr.c (expand_assignment): Handle all possibilities
2877 if TO_RTX is CONCAT.
2878 * expmed.c (store_bit_field_1): Avoid trying to create
2880 (store_split_bit_field): If SUBREG_REG (op0) or
2881 op0 itself has smaller mode than word, return it
2882 for offset 0 and const0_rtx for out-of-bounds stores.
2883 If word is const0_rtx, skip it.
2885 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2887 * gcov-io.c: Use GCC Runtime Library Exception.
2889 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2891 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2893 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2895 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2897 2011-04-01 Andrey Belevantsev <abel@ispras.ru>
2899 Backport from mainline
2900 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
2902 PR rtl-optimization/48143
2903 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2904 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2905 sse2_cvtps2pd): Likewise.
2907 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2910 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2911 frame-related from frame-unrelated adjustments to the stack pointer.
2913 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2915 Backport from mainline
2916 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2919 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2922 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2925 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2926 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2927 dw_fde_unlikely_section_end_label, cold_in_std_section,
2928 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2929 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2931 (output_fde): Use dw_fde_second_{begin,end} if second is
2932 true, otherwise dw_fde_{begin,end}.
2933 (output_call_frame_info): Test dw_fde_second_begin != NULL
2934 instead of dw_fde_switched_sections.
2935 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2936 fields, initialize new fields. Initialize in_std_section
2937 unconditionally from the first partition.
2938 (dwarf2out_end_epilogue): Don't override dw_fde_end when
2939 dw_fde_second_begin is non-NULL.
2940 (dwarf2out_switch_text_section): Stop initializing removed
2941 dw_fde_struct fields, initialize new fields, initialize
2942 also dw_fde_end here. Set dw_fde_switch_cfi even when
2943 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
2944 (struct var_loc_list_def): Add last_before_switch field.
2945 (arange_table, arange_table_allocated, arange_table_in_use,
2946 ARANGE_TABLE_INCREMENT, add_arange): Removed.
2947 (size_of_aranges): Count !in_std_section and !second_in_std_section
2948 hunks in fdes, instead of looking at arange_table_in_use.
2949 (output_aranges): Add aranges_length argument, don't call
2950 size_of_aranges here. Instead of using aranges_table*
2951 emit ranges for fdes when !in_std_section resp.
2952 !second_in_std_section.
2953 (dw_loc_list): Break ranges crossing section switch.
2954 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
2955 use dw_fde_second_end instead of dw_fde_end as end of last
2957 (gen_subprogram_die): Don't call add_arange. Use
2958 dw_fde_{begin,end} for first partition and if switched
2959 section dw_fde_second_{begin,end} for the second.
2960 (var_location_switch_text_section_1,
2961 var_location_switch_text_section): New functions.
2962 (dwarf2out_begin_function): Initialize cold_text_section even
2963 when function_section () isn't text_section.
2964 (prune_unused_types): Don't walk arange_table.
2965 (dwarf2out_finish): Don't needlessly test
2966 flag_reorder_blocks_and_partition when testing cold_text_section_used.
2967 If info_section_emitted, call size_of_aranges and if it indicates
2968 non-empty .debug_aranges, call output_aranges with the computed
2969 size. Stop using removed dw_fde_struct fields, use
2970 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2973 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
2975 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2976 (alpha_option_override): Don't set alpha_sr_alias_set.
2977 (emit_frame_store_1): Use gen_frame_mem rather than calling
2979 (alpha_expand_epilogue): Ditto.
2980 (unicosmk_gen_dsib): Ditto.
2982 2011-03-29 Nick Clifton <nickc@redhat.com>
2984 * config/rx/rx.h (LABEL_ALIGN_AFTER_BARRIER): Define.
2985 (ASM_OUTPUT_MAX_SKIP): Define.
2986 * config/rx/predicates.md (rx_zs_comparison_operator): Do not
2987 allow LT aor GE comparisons.
2988 * config/rx/rx-protos.h (rx_align_for_label): Prototype.
2989 * config/rx/rx.md: Add peepholes and patterns to combine extending
2990 loads with simple arithmetic instructions.
2991 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI modes
2992 to use pre-decrement and post-increment addressing.
2993 (rx_is_restricted_memory_address): For REG+INT addressing, ensure
2994 that the INT is a valid offset.
2995 (rx_print_operand): Handle %R.
2996 Fix %Q's handling of MEMs.
2997 (rx_option_override): Set alignments.
2998 (rx_align_for_label): New function.
2999 (rx_max_skip_for_label): New function.
3000 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
3001 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
3002 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
3003 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
3005 2011-03-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3007 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
3008 for invalid symbolic addresses.
3009 (s390_secondary_reload): Don't use s390_check_symref_alignment for
3012 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3015 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3017 2011-03-28 Richard Guenther <rguenther@suse.de>
3019 Backport from mainline
3020 2011-03-24 Richard Guenther <rguenther@suse.de>
3023 * tree-object-size.c (addr_object_size): Do not double-account
3024 for MEM_REF offsets.
3026 2011-03-22 Richard Guenther <rguenther@suse.de>
3028 PR tree-optimization/48228
3029 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3030 for single-arg PHIs.
3032 2011-03-17 Richard Guenther <rguenther@suse.de>
3035 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3036 a value make sure to fold the statement.
3038 2011-03-15 Richard Guenther <rguenther@suse.de>
3041 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3042 or variable-indexed array accesses when in gimple form.
3044 2011-03-27 Jonathan Wakely <jwakely.gcc@gmail.com>
3049 * doc/extend.texi (Alignment): Move section to match order in TOC.
3050 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3051 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3053 2011-03-26 Uros Bizjak <ubizjak@gmail.com>
3055 Backport from mainline:
3056 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3059 * config/i386/i386.md (*movdf_internal_rex64): Do not split
3060 alternatives that can be handled with movq or movabsq insn.
3061 (*movdf_internal): Disable for !TARGET_64BIT.
3062 (*movdf_internal_nointeger): Ditto.
3063 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3065 2011-03-26 Jakub Jelinek <jakub@redhat.com>
3067 Backport from mainline
3068 2011-03-24 Jakub Jelinek <jakub@redhat.com>
3071 * simplify-rtx.c (simplify_const_unary_operation): Call
3072 real_convert when changing mode class with FLOAT_EXTEND.
3074 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3078 * c-common.c (shorten_compare): If primopN is first sign-extended
3079 to opN and then zero-extended to result type, set primopN to opN.
3081 PR rtl-optimization/48156
3082 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3083 assume df and df_lr are not NULL.
3085 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3087 PR rtl-optimization/48141
3088 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3089 * dse.c: Include params.h.
3090 (active_local_stores_len): New variable.
3091 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3093 (record_store, check_mem_read_rtx): Decrease it when removing
3095 (scan_insn): Likewise. Increase it when adding to chain, if it
3096 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3097 set active_local_stores to NULL before the addition.
3098 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3100 PR rtl-optimization/48141
3101 * dse.c (record_store): If no positions are needed in an insn
3102 that cannot be deleted, at least unchain it from active_local_stores.
3104 2011-03-25 Jakub Jelinek <jakub@redhat.com>
3106 * BASE-VER: Set to 4.6.1.
3107 * DEV-PHASE: Set to prerelease.
3109 2011-03-25 Release Manager
3111 * GCC 4.6.0 released.
3113 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3115 * config/rs6000/t-freebsd: Remove duplication from file.
3117 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3120 * doc/install.texi (Prerequisites): Move jar etc. up.
3121 Explain support library version requirements.
3123 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3126 * doc/install.texi (Prerequisites): Move Perl to build
3127 requirements. Always necessary on Solaris 2 with Sun ld.
3129 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3131 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3133 (Specific, i?86-*-solaris2.[89]): Likewise.
3134 (Specific, i?86-*-solaris2.10): Likewise.
3135 (Specific, mips-sgi-irix6): Likewise.
3136 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3137 Update for binutils 2.21.
3139 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3142 * config/s390/s390.c (s390_delegitimize_address): Don't call
3143 lowpart_subreg if orig_x has BLKmode.
3145 2011-03-20 Joseph Myers <joseph@codesourcery.com>
3147 * c-decl.c (diagnose_mismatched_decls): Give an error for
3148 redefining a typedef with variably modified type.
3150 2011-03-20 Joseph Myers <joseph@codesourcery.com>
3152 * c-decl.c (grokfield): Don't allow typedefs for structures or
3153 unions with no tag by default.
3154 * doc/extend.texi (Unnamed Fields): Update.
3156 2011-03-18 Jakub Jelinek <jakub@redhat.com>
3159 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3160 arange_table_in_use is 0, but either text_section_used or
3161 cold_text_section_used is true. Don't call it if
3162 !info_section_emitted.
3164 2011-03-18 Richard Guenther <rguenther@suse.de>
3166 * doc/install.texi (--enable-gold): Remove.
3167 (--with-plugin-ld): Document.
3168 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3170 2011-03-18 H.J. Lu <hongjiu.lu@intel.com>
3172 Backport from mainline
3173 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3176 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3178 2011-03-18 Richard Henderson <rth@redhat.com>
3179 Jakub Jelinek <jakub@redhat.com>
3182 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3183 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3185 2011-03-17 Richard Guenther <rguenther@suse.de>
3188 * tree-object-size.c (compute_object_offset): Properly return
3189 the offset operand of MEM_REFs as sizetype.
3191 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3194 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3195 (lookup_type_die_strip_naming_typedef): ... here.
3196 (get_context_die): Use it.
3197 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3198 the anonymous struct named by the naming typedef.
3200 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3203 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3204 in the output template.
3206 2011-03-15 Alan Modra <amodra@gmail.com>
3209 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3210 presume symbol_refs without a symbol_ref_decl are suitably
3211 aligned, nor other trees we may see here. Handle anchor symbols.
3212 (legitimate_constant_pool_address_p): Comment. Add mode param.
3213 Check cmodel=medium addresses. Adjust all calls.
3214 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3215 creating cmodel=medium optimized access to locals.
3216 * config/rs6000/constraints.md (R): Pass QImode to
3217 legitimate_constant_pool_address_p.
3218 * config/rs6000/predicates.md (input_operand): Pass mode to
3219 legitimate_constant_pool_address_p.
3220 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3223 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3226 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3227 64-bit constants being loaded into registers other than GPRs such
3228 as loading 0 into a VSX register.
3230 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3232 * config/sol2.c (solaris_assemble_visibility): Remove obsolete
3235 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3237 * doc/invoke.texi, doc/standards.texi: Refer to
3238 gcc-4.6/c99status.html.
3240 * DEV-PHASE: Mark "prerelease".
3242 2011-03-14 Richard Guenther <rguenther@suse.de>
3245 * tree.c (build_vector_from_val): Adjust assert to requirements
3248 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3251 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE
3254 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
3256 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3257 terms of target_flags_explicit. Adjust copyright year.
3259 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3260 * config/rs6000/t-freebsd: New file. Add override for
3263 2011-03-13 Chris Demetriou <cgd@google.com>
3265 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3266 (-fno-diagnostics-show-option): this, to reflect current default.
3267 (-Werror=): Update text about -fno-diagnostics-show-option.
3269 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
3272 * config/rs6000/predicates.md (easy_vector_constant_add_self,
3273 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3274 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3275 mode is not V2DImode or V2DFmode.
3276 (vspltis_constant): Do not handle V2DImode and V2DFmode.
3277 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3278 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3280 (movdi_internal64): Likewise.
3282 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
3284 PR tree-optimization/47127
3285 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3287 (set_cloog_options): Same.
3288 (scop_to_clast): Same.
3289 (print_clast_stmt): Do not call cloog_state_malloc and
3291 (print_generated_program): Same.
3293 * graphite-clast-to-gimple.h (cloog_state): Declared.
3294 (scop_to_clast): Adjust declaration.
3295 * graphite.c (cloog_state): Defined here.
3296 (graphite_initialize): Call cloog_state_malloc.
3297 (graphite_finalize): Call cloog_state_free.
3299 2011-03-11 Jason Merrill <jason@redhat.com>
3301 * attribs.c (lookup_attribute_spec): Take const_tree.
3304 2011-03-11 Joseph Myers <joseph@codesourcery.com>
3306 * config/sparc/sparc.c (sparc_option_override): Use
3307 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3309 2011-03-11 Richard Guenther <rguenther@suse.de>
3311 PR tree-optimization/48067
3312 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3313 multiplication result will be only used once on the target
3316 2011-03-11 Richard Guenther <rguenther@suse.de>
3318 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3320 2011-03-11 Richard Guenther <rguenther@suse.de>
3323 * tree.c (find_decls_types_r): Do not walk types only reachable
3324 from IDENTIFIER_NODEs.
3326 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3329 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3330 all vnode->force_output nodes as needed.
3332 2011-03-11 Jason Merrill <jason@redhat.com>
3335 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3336 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3338 2011-03-11 Martin Jambor <mjambor@suse.cz>
3340 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3343 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3345 PR tree-optimization/48063
3346 * ipa-inline.c (cgraph_decide_inlining): Don't try to
3347 inline functions called once if !tree_can_inline_p (node->callers).
3349 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
3351 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3353 * config/score/score3.c: Delete.
3354 * config/score/score3.h: Delete.
3355 * config/score/mul-div.S: Delete.
3356 * config/score/sfp-machine.h: Add new file.
3357 * config/score/constraints.md: Add new file.
3358 * config/score/t-score-softfp: Add new file.
3359 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
3360 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3361 (score7_extra_constraint): Delete.
3362 (score7_option_override): Remove unused code.
3363 * config/score/score.c: Remove score3 and score5 define and code.
3364 * config/score/score.h: Remove score3 and score5 define and code.
3365 * config/score/score.md: Remove score3 template and unusual insn.
3366 * config/score/score.opt: Remove score3 and score5 options.
3368 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3370 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3371 when _HPUX_SOURCE is defined.
3372 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3374 2011-03-10 Jason Merrill <jason@redhat.com>
3377 * stor-layout.c (layout_type): Don't set structural equality
3378 on arrays of incomplete type.
3379 * tree.c (type_hash_eq): Handle comparing them properly.
3381 2011-03-10 Jakub Jelinek <jakub@redhat.com>
3384 * config/s390/s390.c (s390_delegitimize_address): Make sure the
3385 result mode matches original rtl mode.
3387 2011-03-10 Nick Clifton <nickc@redhat.com>
3389 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
3390 (andsi3, andsi3_flags): Fix timings for three operand alternative.
3392 2011-03-09 Jakub Jelinek <jakub@redhat.com>
3394 PR rtl-optimization/47866
3395 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3396 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3397 if target wasn't scalar.
3398 * function.c (assign_stack_temp_for_type): Assert that neither
3399 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3400 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3402 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3404 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3406 * config/s390/s390-protos.h (s390_label_align): New prototype.
3407 * config/s390/s390.c (s390_label_align): New function.
3408 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3410 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3413 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3414 V2DI/V2DF constants. Only all 0's or all 1's are easy.
3415 (output_vec_const_move): Ditto.
3417 2011-03-08 Anatoly Sokolov <aesok@post.ru>
3419 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3420 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
3421 * config/mips/mips.c (mips_preferred_reload_class): Make static.
3422 Change 'rclass' argument and result type to reg_class_t.
3423 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3425 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
3427 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3428 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
3429 (TARGET_MEMORY_MOVE_COST): Define.
3430 (avr_register_move_cost, avr_memory_move_cost): New Functions.
3432 2011-03-08 Jakub Jelinek <jakub@redhat.com>
3435 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
3438 PR tree-optimization/48022
3439 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
3442 2011-03-07 Jakub Jelinek <jakub@redhat.com>
3445 * var-tracking.c (find_use_val): Return NULL for
3446 cui->sets && cui->store_p BLKmode MEMs.
3448 2011-03-07 Anatoly Sokolov <aesok@post.ru>
3450 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3452 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
3453 xstormy16_print_operand_address): Remove.
3454 * config/stormy16/stormy16.c (xstormy16_print_operand,
3455 xstormy16_print_operand_address): Make static.
3456 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3458 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
3461 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3462 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
3465 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
3468 * cfgloopmanip.c (fix_bb_placements): Return immediately
3469 if FROM is BASE_LOOP's header.
3471 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
3473 * gimplify.c (gimplify_function_tree): Fix building calls
3474 to __builtin_return_address.
3476 2011-03-07 Alan Modra <amodra@gmail.com>
3478 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
3479 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
3480 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
3481 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
3483 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
3484 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
3485 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
3486 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
3487 * config/rs6000/rs6000.c
3488 (rs6000_elf_end_indicate_exec_stack): Rename to..
3489 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
3490 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
3491 (rs6000_file_start): ..here.
3492 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
3493 file scope variables.
3494 (call_ABI_of_interest): New function.
3495 (init_cumulative_args): Set above vars when function return value
3496 is a float, vector, or small struct.
3497 (rs6000_function_arg_advance_1): Likewise for function args.
3498 (rs6000_va_start): Set rs6000_passes_float if variable arg function
3499 references float args.
3501 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
3503 * doc/cfg.texi: Remove "See" before @ref.
3504 * doc/invoke.texi: Likewise.
3506 2011-03-05 Jason Merrill <jason@redhat.com>
3508 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
3510 2011-03-05 Anthony Green <green@moxielogic.com>
3512 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
3514 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
3516 PR rtl-optimization/47899
3517 * cfgloopmanip.c (fix_bb_placements): Fix first argument
3518 to flow_loop_nested_p when moving the loop upward.
3520 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
3523 * arm.md (movhi_insn_arch4): Accept any immediate constant.
3525 2011-03-05 Jakub Jelinek <jakub@redhat.com>
3527 PR tree-optimization/47967
3528 * ipa-cp.c (build_const_val): Return NULL instead of creating
3529 VIEW_CONVERT_EXPR for mismatching sizes.
3530 (ipcp_create_replace_map): Return NULL if build_const_val failed.
3531 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
3532 give up on versioning.
3534 2011-03-05 Alan Modra <amodra@gmail.com>
3537 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3538 full cmodel medium/large lo_sum + high addresses.
3540 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3542 * config/s390/s390.c (s390_decompose_address): Reject non-literal
3543 pool references in UNSPEC_LTREL_OFFSET.
3545 2011-03-04 Jan Hubicka <jh@suse.cz>
3548 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
3549 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
3550 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
3551 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
3552 cgraph_add_thunk): Add node pointers.
3553 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
3554 associated to right node.
3555 (input_node): Update use of cgraph_same_body_alias
3556 and cgraph_add_thunk.
3558 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
3560 * config/i386/i386.opt (mprefer-avx128): New flag.
3561 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
3562 when the flag -mprefer-avx128 is on.
3564 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
3566 * dwarf2out.c (compare_loc_operands): Fix address handling.
3568 2011-03-04 Alan Modra <amodra@gmail.com>
3570 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
3572 2011-03-04 Richard Guenther <rguenther@suse.de>
3575 * expmed.c (extract_bit_field_1): Prefer vector modes that
3576 vec_extract patterns can handle.
3578 2011-03-04 Richard Guenther <rguenther@suse.de>
3581 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
3583 2011-03-04 Richard Henderson <rth@redhat.com>
3585 * explow.c (emit_stack_save): Remove 'after' parameter.
3586 (emit_stack_restore): Likewise.
3587 * expr.h: Update to match.
3588 * builtins.c, calls.c, stmt.c: Likewise.
3589 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
3590 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
3591 * function.c (expand_function_end): Insert the emit_stack_save
3592 sequence before parm_birth_insn instead of after.
3594 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
3596 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
3597 (ssse3_pmaddubsw128): Ditto.
3598 (ssse3_pmaddubsw): Ditto.
3600 2011-03-03 Steve Ellcey <sje@cup.hp.com>
3602 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
3604 2011-03-03 Jakub Jelinek <jakub@redhat.com>
3607 * gimplify.c (omp_add_variable): Only call omp_notice_variable
3608 on TYPE_SIZE_UNIT if it is a DECL.
3611 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
3612 first operand is not is_gimple_mem_ref_addr, try to fold it.
3613 If the operand still isn't is_gimple_mem_ref_addr, clear
3616 2011-03-03 Richard Guenther <rguenther@suse.de>
3619 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
3621 (refs_may_alias_p_1): For release branches return true if
3622 we are confused by our input.
3624 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3626 * config/s390/s390.c (s390_function_value): Rename to ...
3627 (s390_function_and_libcall_value): ... this.
3628 (s390_function_value): New function.
3629 (s390_libcall_value): New function.
3630 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
3631 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
3632 target macro definitions.
3633 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
3635 2011-03-02 Joseph Myers <joseph@codesourcery.com>
3637 * config/i386/freebsd64.h (CC1_SPEC): Define.
3638 * config/i386/linux64.h (CC1_SPEC): Define.
3639 * config/i386/x86-64.h (CC1_SPEC): Don't define.
3641 2011-03-02 Anatoly Sokolov <aesok@post.ru>
3643 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3645 * config/stormy16/stormy16.c: Include reload.h.
3646 (xstormy16_memory_move_cost): New function.
3647 (TARGET_MEMORY_MOVE_COST): Define.
3649 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
3651 PR rtl-optimization/47925
3652 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
3653 with side effects. Remove the more-specific check for volatile asms.
3655 2011-03-02 Alan Modra <amodra@gmail.com>
3658 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
3659 toc relative addresses for valid offsets.
3661 2011-03-01 Richard Guenther <rguenther@suse.de>
3663 PR tree-optimization/47890
3664 * tree-vect-loop.c (get_initial_def_for_induction): Set
3665 related stmt properly.
3667 2011-03-01 Richard Guenther <rguenther@suse.de>
3670 * lto-streamer.c (lto_record_common_node): Also register
3673 2011-03-01 Richard Guenther <rguenther@suse.de>
3676 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3677 Do not stream DECL_ABSTRACT_ORIGIN.
3678 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3679 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3680 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3681 Do not stream DECL_ABSTRACT_ORIGIN.
3682 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3683 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3685 2011-02-28 Anatoly Sokolov <aesok@post.ru>
3687 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
3688 FUNCTION_VALUE_REGNO_P): Remove.
3689 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
3690 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
3691 Add 'outgoing' argument.
3692 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
3694 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3695 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3697 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
3700 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
3701 (lookup_filename): Likewise.
3702 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
3704 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
3705 Jakub Jelinek <jakub@redhat.com>
3708 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
3709 (assign_stack_local_1): Change last argument type to int.
3710 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
3711 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
3712 don't record padding space into frame_space_list nor use those areas.
3713 (assign_stack_local): Adjust caller.
3714 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
3715 of assign_stack_local, pass 0 as last argument.
3716 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
3719 2011-02-28 Jakub Jelinek <jakub@redhat.com>
3722 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
3723 Use target address_mode and pointer_mode hooks instead of hardcoded
3724 Pmode and ptr_mode. Handle some simple cases of extending if
3725 POINTERS_EXTEND_UNSIGNED < 0.
3726 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
3727 Call convert_debug_memory_address.
3728 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
3729 convert_debug_memory_address.
3732 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
3733 * configure: Regenerated.
3734 * config.in: Regenerated.
3735 * varasm.c (default_function_section): Return NULL
3736 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
3738 2011-02-28 Martin Jambor <mjambor@suse.cz>
3740 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
3741 the description to match the printed values.
3743 2011-02-28 Richard Guenther <rguenther@suse.de>
3745 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
3746 of the copied scope tree.
3748 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3750 * doc/extend.texi (Function Attributes): Avoid deeply (and
3751 wrongly) nested tables.
3753 2011-02-27 Jakub Jelinek <jakub@redhat.com>
3756 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
3757 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
3758 r isn't op0 nor op1.
3760 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
3762 * config/avr/avr.md: Remove magic comment for emacs.
3764 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
3767 * config/avr/avr.c (avr_option_override): Use error on bad options.
3768 (avr_help): New function.
3769 (TARGET_HELP): Define.
3771 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
3774 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
3775 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
3777 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
3779 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
3780 (ARM Options): Ditto.
3781 (i386 and x86-64 Options): Ditto.
3782 (RX Options): Ditto.
3783 (SPARC Options): Ditto.
3785 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
3787 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
3788 FreeBSD 6 and later. Generally use cpu generic.
3790 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
3792 * doc/cpp.texi: Update copyright years.
3794 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
3797 * config/lm32/lm32.md (ashrsi3): Added needed variable.
3799 2011-02-25 Jon Beniston <jon@beniston.com>
3802 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
3803 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3804 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
3805 (lm32_block_move_inline): Add type cast to remove warning.
3806 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
3807 (gen_int_relational): Move declarations to start of function.
3809 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
3811 PR tree-optimization/45470
3812 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3813 can throw internally only.
3814 * tree-vect-stmts.c (vectorizable_call): Likewise.
3816 2011-02-24 Anatoly Sokolov <aesok@post.ru>
3818 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
3819 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3820 * config/stormy16/stormy16-protos.h
3821 (xstormy16_preferred_reload_class): Remove.
3822 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
3823 static. Change 'rclass' argument and return type to reg_class_t.
3824 (TARGET_PREFERRED_RELOAD_CLASS,
3825 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3827 2011-02-24 Richard Guenther <rguenther@suse.de>
3829 * lto-streamer-in.c (input_bb): Do not find referenced vars
3830 in debug statements.
3832 2011-02-23 Jason Merrill <jason@redhat.com>
3834 * common.opt (fabi-version): Document v5 and v6.
3836 2011-02-23 Richard Guenther <rguenther@suse.de>
3838 PR tree-optimization/47849
3839 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
3841 2011-02-23 Jie Zhang <jie@codesourcery.com>
3843 * opts-common.c (decode_cmdline_option): Print empty string
3844 argument as "" in decoded->orig_option_with_args_text.
3845 * gcc.c (execute): Print empty string argument as ""
3846 in the verbose output.
3847 (do_spec_1): Keep empty string argument.
3849 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
3851 * config.gcc: Declare score-* and crx-* obsolete.
3853 2011-02-23 Jie Zhang <jie@codesourcery.com>
3855 PR rtl-optimization/47763
3856 * web.c (web_main): Ignore naked clobber when replacing register.
3858 2011-02-22 Anatoly Sokolov <aesok@post.ru>
3860 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3863 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
3866 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
3868 2011-02-22 Mike Stump <mikestump@comcast.net>
3870 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
3872 * configure: Regenerate.
3874 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
3876 PR rtl-optimization/46002
3877 * ira-color.c (update_copy_costs): Change class intersection
3878 test to reg_class_contents[] test of 'hard_regno'.
3880 2011-02-21 Joseph Myers <joseph@codesourcery.com>
3882 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
3884 * config/hpux11.opt (mt): Likewise.
3885 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
3886 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
3887 * config/vax/elf.opt (mno-asm-pic): Likewise.
3888 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
3890 2011-02-21 Mike Stump <mikestump@comcast.net>
3893 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
3894 tree so we can get save the type.
3895 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
3896 for CFString instead of trying to use past the end of the builtins.
3897 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
3898 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
3899 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
3900 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
3901 Rename to darwin_builtin_cfstring.
3902 (darwin_init_cfstring_builtins): Return the built type.
3904 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
3907 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
3908 (_mm256_insert_epi64): Use _mm_insert_epi64.
3910 2011-02-21 Anatoly Sokolov <aesok@post.ru>
3912 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3913 * config/stormy16/stormy16-protos.h
3914 (xstormy16_mode_dependent_address_p): Remove.
3915 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
3916 Make static. Change return type to bool. Change argument type to
3917 const_rtx. Remove dead code.
3918 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3920 2011-02-21 Richard Guenther <rguenther@suse.de>
3923 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3924 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3925 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
3927 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3928 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3930 2011-02-20 Richard Guenther <rguenther@suse.de>
3933 * tree.c (free_lang_data_in_decl): Clean builtins from
3934 the TU decl BLOCK_VARS.
3936 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
3940 * haifa-sched.c (fix_tick_ready): Skip tick computation
3943 2011-02-19 Richard Guenther <rguenther@suse.de>
3946 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3947 Remove lazy BLOCK_VARS streaming.
3948 (lto_input_ts_block_tree_pointers): Likewise.
3949 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3951 2011-02-19 Joseph Myers <joseph@codesourcery.com>
3953 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
3955 2011-02-19 Joseph Myers <joseph@codesourcery.com>
3957 * config/i386/biarch32.h, config/i386/mach.h,
3958 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
3960 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3963 * config/i386/i386.md (peephole2 for shift and plus): Use
3964 operands[1] original mode in the first insn.
3966 2011-02-18 Mike Stump <mikestump@comcast.net>
3968 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
3970 2011-02-18 Jan Hubicka <jh@suse.cz>
3973 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
3974 to zero when the function is not inlinable at all.
3976 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3978 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
3979 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3980 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
3981 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
3982 * config/pa/t-pa64: Likewise.
3983 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3985 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3988 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
3990 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3993 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
3995 2011-02-18 Anatoly Sokolov <aesok@post.ru>
3997 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3998 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
3999 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4000 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4001 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4002 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4003 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4004 m32r_load_postinc_p, m32r_store_preinc_predec_p,
4005 m32r_legitimate_address_p): New functions.
4006 * config/m32r/constraints.md (constraint "S"): Don't use
4007 STORE_PREINC_PREDEC_P.
4008 (constraint "U"): Don't use LOAD_POSTINC_P.
4010 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
4012 PR rtl-optimization/46178
4013 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4014 compute ira_hard_regno_cover_class[].
4016 2011-02-18 Richard Guenther <rguenther@suse.de>
4019 * lto-streamer.h (lto_global_var_decls): Declare.
4020 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4021 statics for global var processing.
4023 2011-02-18 Richard Guenther <rguenther@suse.de>
4025 PR tree-optimization/47737
4026 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4027 edge dominance check.
4029 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4032 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4033 avoid invalid rtx sharing.
4035 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
4037 * doc/cpp.texi (Obsolete Features): Add background on the
4038 origin of assertions.
4040 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4042 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4044 * config/darwin.c (output_objc_section_asm_op): Added support for
4046 (is_objc_metadata): New.
4047 (darwin_objc2_section): New.
4048 (darwin_objc1_section): New.
4049 (machopic_select_section): Added support for ABI v1 and v2.
4050 (darwin_emit_objc_zeroed): New.
4051 (darwin_output_aligned_bss): Detect objc metadata and treat it
4053 (darwin_asm_output_aligned_decl_common): Same.
4054 (darwin_asm_output_aligned_decl_local): Same.
4055 * config/darwin-sections.def: Updated for ABI v1 and v2.
4056 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4057 compiling Objective-C code for the NeXT runtime, default to using
4058 ABI version 0 for 32-bit, and version 2 for 64-bit.
4060 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4062 * common.opt (optimize_fast): New Variable.
4063 * opts.c (default_options_optimization): Use opts->x_optimize_fast
4064 instead of local variable ofast.
4066 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
4068 * doc/invoke.texi (fobjc-abi-version): Documented.
4069 (fobjc-nilcheck): Documented.
4070 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4073 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4076 * common.opt (export-dynamic): New Driver option.
4077 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4079 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4081 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4083 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
4084 Jan Hubicka <jh@suse.cz>
4088 * cfgexpand.c (account_used_vars_for_block): Remove.
4089 (estimated_stack_frame_size): Use referenced vars.
4090 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4091 that were referenced in the original function. Test src_fn
4092 rather than cfun. Drop redundant get_var_ann.
4093 (setup_one_parameter): Drop redundant get_var_ann.
4094 (declare_return_variable): Likewise.
4095 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4096 (copy_arguments_for_versioning): Drop redundant get_var_ann.
4097 * ipa-inline.c (compute_inline_parameters): Do not compute
4098 disregard_inline_limits here.
4099 (compute_inlinable_for_current, pass_inlinable): New.
4100 (pass_inline_parameters): Require PROP_referenced_vars.
4101 * cgraphunit.c (cgraph_process_new_functions): Don't run
4102 compute_inline_parameters explicitly unless function is in SSA form.
4103 (cgraph_analyze_function): Set .disregard_inline_limits.
4104 * tree-sra.c (convert_callers): Compute inliner parameters
4105 only for functions already in SSA form.
4107 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4109 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4110 -mlittle-endian-data.
4112 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4114 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4115 -mno-fpu, not -fpu and -no-fpu.
4116 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4117 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4119 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
4122 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4123 input reload with PLUS RTX.
4125 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4127 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4128 of InverseVar(MDMX).
4130 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4132 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4135 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4137 * config/mn10300/mn10300.opt (mno-crt0): New.
4139 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4141 * config/m68k/uclinux.opt (static-libc): New Driver option.
4143 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4145 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4147 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4149 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4150 %{muser-extend-enabled}.
4152 2011-02-16 Richard Guenther <rguenther@suse.de>
4154 PR tree-optimization/47738
4155 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4156 the TODO from tree_predictive_commoning.
4158 2011-02-15 Jeff Law <law@redhat.com>
4161 2011-01-25 Jeff Law <law@redhat.com>
4163 PR rtl-optimization/37273
4164 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4165 handle them like argument loads from stack slots. Do not double
4166 count memory for memory constants and argument loads from stack slots.
4168 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4171 * combine.c (cant_combine_insn_p): Revert the last change.
4173 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4176 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4177 mode for vector constants. Remove code that checks for TImode.
4179 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4183 * cgraph.h (compute_inline_parameters): Return void.
4184 * ipa-inline.c (compute_inline_parameters): Adjust.
4186 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4190 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4192 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4193 * ipa-inline.c (compute_inline_parameters): Adjust.
4195 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4199 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4200 Adjust all users. Pass FN to...
4201 * tree-flow-inline.h (first_referenced_var): ... this. Add
4203 * ipa-struct-reorg.c: Adjust.
4204 * tree-dfa.c: Adjust.
4205 * tree-into-ssa.c: Adjust.
4206 * tree-sra.c: Adjust.
4207 * tree-ssa-alias.c: Adjust.
4208 * tree-ssa-live.c: Adjust.
4209 * tree-ssa.c: Adjust.
4210 * tree-ssanames.c: Adjust.
4211 * tree-tailcall.c: Adjust.
4213 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4217 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4219 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4220 * tree-flow-inline.h: Adjust.
4221 * gimple-pretty-print.c: Adjust.
4222 * tree-into-ssa.c: Adjust.
4223 * tree-ssa.c: Adjust.
4224 * cfgexpand.c: Adjust.
4226 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4228 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4229 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4230 (EXTRA_CONSTRAINT): Delete.
4231 * config/iq2000/constraints.md: New file.
4232 * config/iq2000/iq2000.md: Include it.
4233 (define_insn ""): Delete.
4234 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4235 unsupported constraint letters from patterns.
4236 (call_value, call_value_internal1): Likewise.
4237 (call_value_multiple_internal1): Likewise.
4239 2011-02-15 Nick Clifton <nickc@redhat.com>
4241 * config/mn10300/mn10300.c: Include tm-constrs.h.
4242 (struct liw_data): New data structure describing an LIW candidate
4244 (extract_bundle): Use struct liw_data. Allow small integer
4245 operands for some instructions.
4246 (check_liw_constraints): Use struct liw_data. Remove swapped
4247 parameter. Add comments describing the checks. Fix bug when
4248 assigning the source of liw1 to the source of liw2.
4249 (liw_candidate): Delete. Code moved into extract_bundle.
4250 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4252 * config/mn10300/predicates.md (liw_operand): New predicate.
4253 Allows registers and small integer constants.
4254 * config/mn10300/constraints.md (O): New constraint. Accetps
4255 integers in the range -8 to +7 inclusive.
4256 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4257 for moving a small integer into a register. Give this alternative
4259 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4260 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4261 using the J,K,L and M constraints,
4262 (liw): Remove SI mode on second operands to allow for HI and QI
4264 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
4267 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4270 * combine.c (cant_combine_insn_p): Check zero/sign extended
4273 2011-02-15 Richard Guenther <rguenther@suse.de>
4275 PR tree-optimization/47743
4276 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4277 for a non-type-compatible VN lookup bail out.
4279 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4281 * config/fr30/constraints.md: New file.
4282 * config/fr30/fr30.md: Include it.
4283 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4284 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4285 (EXTRA_CONSTRAINT): Delete.
4287 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4289 * config/frv/constraints.md: New file.
4290 * config/frv/predicates.md: Include it.
4291 * config/frv/frv.c (reg_class_from_letter): Delete.
4292 (frv_option_override): Don't initialize it.
4293 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4294 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4295 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4296 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4297 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4298 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4299 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4300 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4301 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4302 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4303 (REG_CLASS_FROM_CONSTRAINT): Delete.
4305 2011-02-15 Jakub Jelinek <jakub@redhat.com>
4308 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4309 if frame size is 0 in a leaf function.
4311 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4314 * config/alpha/host-osf.c: New file.
4315 * config/alpha/x-osf: New file.
4316 * config.host (alpha*-dec-osf*): Use it.
4318 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4320 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4321 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4322 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4323 (rx_mode_dependent_address_p): ...this. Make static. Change argument
4325 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4327 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4329 * config/stormy16/constraints.md: New file.
4330 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4331 Use satisfies_constraint_Q and satisfies_constraint_R.
4332 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4334 (xstormy16_legitiamte_address_p): Declare.
4335 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4336 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4337 (EXTRA_CONSTRAINT): Delete.
4338 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4340 (xstormy16_extra_constraint_p): Delete.
4342 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
4344 PR tree-optimization/46494
4345 * loop-unroll.c (split_edge_and_insert): Adjust comment.
4346 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4347 (pass_rtl_loop_done): Add TODO_verify_flow.
4348 * fwprop.c (pass_rtl_fwprop): Likewise.
4349 * modulo-sched.c (pass_sms): Likewise.
4350 * tree-ssa-dom.c (pass_dominator): Likewise.
4351 * tree-ssa-loop-ch.c (pass_ch): Likewise.
4352 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4353 (pass_tree_loop_done): Likewise.
4354 * tree-ssa-pre.c (execute_pre): Likewise.
4355 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4356 * tree-ssa-sink.c (pass_sink_code): Likewise.
4357 * tree-vrp.c (pass_vrp): Likewise.
4359 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4361 * config/v850/constraints.md: New file.
4362 * config/v850/v850.md: Include it.
4363 * config/v850/predicates.md (reg_or_0_operand): Use
4364 satisfies_constraint_G.
4365 (special_symbolref_operand): Use satisfies_constraint_K.
4366 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4367 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4368 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4369 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4370 (EXTRA_CONSTRAINT): Delete.
4371 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4372 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4373 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
4375 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4378 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4381 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4383 * config/mcore/constraints.md: New file.
4384 * config/mcore/mcore.md: Include it.
4385 * config/mcore/mcore.c (reg_class_from_letter): Delete.
4386 * config/mcore/mcore.h (reg_class_from_letter): Delete.
4387 (REG_CLASS_FROM_LETTER): Delete.
4388 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4389 insn_const_int_ok_for_constraint.
4390 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4391 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4392 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4393 (EXTRA_CONSTRAINT): Delete.
4395 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4398 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4399 (IS_SIGHANDLER): Define.
4400 (sparc64_is_sighandler): New function, split off from
4401 sparc64_fallback_frame_state.
4402 (sparc_is_sighandler): New function, split off from
4403 sparc_fallback_frame_state.
4404 (sparc64_fallback_frame_state): Merge with ...
4405 (sparc_fallback_frame_state): ... this into ...
4406 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
4407 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
4408 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
4409 stack instead of hardcoded offsets.
4411 2011-02-14 Andriy Gapon <avg@freebsd.org>
4414 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4416 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4418 * configure: Regenerate.
4420 2011-02-12 Joseph Myers <joseph@codesourcery.com>
4423 * gcc.c (asm_options): Correct spec matching --target-help.
4425 2011-02-12 Martin Jambor <mjambor@suse.cz>
4427 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
4428 to gimple call error.
4430 2011-02-12 Mike Stump <mikestump@comcast.net>
4432 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
4433 comments in backslash regions.
4435 2011-02-12 Mike Stump <mikestump@comcast.net>
4436 Jakub Jelinek <jakub@redhat.com>
4437 Iain Sandoe <iains@gcc.gnu.org>
4440 * dwarf2out.c (output_cfa_loc): When required, apply the
4441 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
4442 (output_loc_sequence): Likewise.
4443 (output_loc_operands_raw): Likewise.
4444 (output_loc_sequence_raw): Likewise.
4445 (output_cfa_loc): Likewise.
4446 (output_loc_list): Suppress register number adjustment when
4447 calling output_loc_sequence()
4448 (output_die): Likewise.
4450 2011-02-12 Anatoly Sokolov <aesok@post.ru>
4452 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4454 * config/xtensa/xtensa.c (xtensa_register_move_cost,
4455 xtensa_memory_move_cost): New functions.
4456 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
4458 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
4461 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
4462 in the current directory.
4463 * configure: Rebuilt.
4465 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4467 * config/darwin.c (darwin_override_options): Add a hunk missed
4468 from the commit of r168571. Trim comment line lengths and
4469 correct indents of the preceding block.
4471 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4473 * gcc.c (driver_handle_option): Concatenate the argument to -F with
4476 2011-02-11 Joseph Myers <joseph@codesourcery.com>
4478 * common.opt (nostartfiles): New Driver option.
4480 2011-02-11 Xinliang David Li <davidxl@google.com>
4482 PR tree-optimization/47707
4483 * tree-chrec.c (convert_affine_scev): Keep type precision.
4485 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
4487 PR tree-optimization/47420
4488 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
4490 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
4492 PR rtl-optimization/47614
4493 * rtl.h (check_for_inc_dec): Declare.
4494 * dse.c (check_for_inc_dec): Externalize...
4495 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
4496 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
4498 2011-02-11 Joseph Myers <joseph@codesourcery.com>
4501 * gcc.c (main): Do not compile inputs if there were errors in
4503 * opts-common.c (read_cmdline_option): Check for wrong language
4504 after other error checks.
4506 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
4508 * cgraph.c: Fix comment typos.
4509 * cgraph.h: Likewise.
4510 * cgraphunit.c: Likewise.
4511 * ipa-cp.c: Likewise.
4512 * ipa-inline.c: Likewise.
4513 * ipa-prop.c: Likewise.
4514 * ipa-pure-const.c: Likewise.
4515 * ipa-ref.c: Likewise.
4516 * ipa-reference.c: Likewise.
4518 2011-02-11 Jakub Jelinek <jakub@redhat.com>
4521 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
4523 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4526 * doc/sourcebuild.texi (Require Support): Document
4527 dg-require-ascii-locale.
4529 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
4531 * doc/lto.texi (Write summary): Fix missing parentheses.
4533 2011-02-10 DJ Delorie <dj@redhat.com>
4535 * config/m32c/m32c.c (m32c_option_override): Disable
4536 -fcombine-stack-adjustments until flag value tracking and compare
4537 optimization can be rewritten.
4539 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
4541 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
4543 (PROCESSOR_DEFAULT64): Likewise.
4545 2011-02-10 Richard Henderson <rth@redhat.com>
4547 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
4548 change from 2011-02-03.
4549 * config/rx/rx.c (flags_from_code): Likewise.
4550 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
4551 is valid, n/pz otherwise.
4552 (rx_select_cc_mode): Return CCmode if Y is not zero.
4554 2011-02-10 Richard Guenther <rguenther@suse.de>
4556 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
4558 2011-02-10 Richard Guenther <rguenther@suse.de>
4560 PR tree-optimization/47677
4561 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
4563 2011-02-10 Jakub Jelinek <jakub@redhat.com>
4566 * combine.c (make_compound_operation): Only change shifts into
4567 multiplication for SCALAR_INT_MODE_P.
4569 2011-02-10 Jie Zhang <jie@codesourcery.com>
4573 2011-02-05 Jie Zhang <jie@codesourcery.com>
4575 * web.c (entry_register): Don't clobber the number of the
4576 first uninitialized reference in used[].
4578 2011-02-09 Richard Guenther <rguenther@suse.de>
4580 PR tree-optimization/47664
4581 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
4584 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
4588 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
4590 (PROCESSOR_DEFAULT64): Same.
4591 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
4593 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4595 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
4597 2011-02-09 Martin Jambor <mjambor@suse.cz>
4600 * tree-sra.c (struct access): New flags grp_scalar_read and
4601 grp_scalar_write. Changed description of assignment read and write
4603 (dump_access): Dump new flags, reorder all of them.
4604 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
4605 to detect multiple scalar reads.
4606 (analyze_access_subtree): Use the new scalar read write flags instead
4607 of the old flags. Adjusted comments.
4609 2011-02-08 DJ Delorie <dj@redhat.com>
4612 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
4615 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4617 * config/m68k/uclinux.opt: New.
4618 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
4620 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4622 * config/cris/elf.opt (sim): New Driver option.
4624 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4626 * config/xtensa/elf.opt: New.
4627 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
4629 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4631 * config/vax/elf.opt: New.
4632 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
4634 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4636 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
4638 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4640 * config/gnu-user.opt: New.
4641 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4642 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
4643 *-*-uclinux*): Use gnu-user.opt.
4645 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
4647 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
4648 * config/i386/gnu.h (CPP_SPEC): Likewise.
4650 2011-02-08 Ian Lance Taylor <iant@google.com>
4652 * common.opt (fcx-limited-range): Add SetByCombined flag.
4653 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
4654 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
4655 (fassociative-math, freciprocal-math): Likewise.
4656 (funsafe-math-optimizations): Likewise.
4657 * opth-gen.awk: Handle SetByCombined.
4658 * optc-gen.awk: Likewise.
4659 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
4660 (set_unsafe_math_optimizations_flags): Likewise.
4661 * doc/options.texi (Option properties): Document SetByCombined.
4663 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4665 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
4666 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
4667 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
4668 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
4669 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
4671 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
4673 PR tree-optimization/46834
4674 PR tree-optimization/46994
4675 PR tree-optimization/46995
4676 * graphite-sese-to-poly.c (used_outside_reduction): New.
4677 (detect_commutative_reduction): Call used_outside_reduction.
4678 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
4679 translate_scalar_reduction_to_array only when at least one
4680 loop-phi/close-phi tuple has been detected.
4682 2011-02-08 Richard Guenther <rguenther@suse.de>
4685 * tree-vect-generic.c (expand_vector_operations_1): Update
4687 (expand_vector_operations): ... not here. Cleanup EH info
4688 and the CFG if required.
4690 2011-02-08 Richard Guenther <rguenther@suse.de>
4692 PR tree-optimization/47641
4693 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
4694 require type compatibility.
4696 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4698 * gimple-low.c (lower_function_body): Don't remove the location of
4699 the return statement here.
4700 (lower_gimple_return): Do it here instead but only if the return
4701 statement is actually used twice.
4703 2011-02-08 Richard Guenther <rguenther@suse.de>
4705 PR tree-optimization/47632
4706 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
4707 unused up_to_stmt parameter, return whether cfg-cleanup is
4708 necessary, remove EH info properly.
4709 (forward_propagate_into_gimple_cond): Adjust caller.
4710 (forward_propagate_into_cond): Likewise.
4711 (forward_propagate_comparison): Likewise.
4712 (tree_ssa_forward_propagate_single_use_vars): Make
4713 forward_propagate_comparison case similar to the two others.
4715 2011-02-08 Nick Clifton <nickc@redhat.com>
4717 * config/mn10300/mn10300.opt (mliw): New command line option.
4718 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
4719 (liw_bundling): New automaton.
4720 (liw): New attribute.
4721 (liw_op): New attribute.
4722 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
4723 (movsi_internal): Add LIW attributes.
4727 (addsi3): Separate register and immediate alternatives.
4732 (lshrsi3): Likewise.
4733 (ashrsi3): Likewise.
4735 * config/mn10300/mn10300.c (liw_op_names): New
4736 (mn10300_print_operand): Handle 'W' operand descriptor.
4737 (extract_bundle): New function.
4738 (check_liw_constraints): New function.
4739 (liw_candidate): New function.
4740 (mn10300_bundle_liw): New function.
4741 (mn10300_reorg): New function.
4742 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4743 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
4744 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
4745 __LIW__ or __NO_LIW__.
4746 * doc/invoke.texi: Describe the -mliw command line option.
4748 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4750 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
4751 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4752 pthread_mutex_unlock): Remove.
4753 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
4754 * config/pa/t-pa64: Likewise.
4755 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
4756 shared libc if not linking against libpthread.
4757 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4759 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
4762 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
4763 on 10.6 and later to ensure that we always use the unwinder from
4764 the system. Only add -no_compact_unwind when tarteting darwin
4767 2011-02-07 Steve Ellcey <sje@cup.hp.com>
4770 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
4771 (vec_interleave_lowv2sf): Ditto.
4772 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
4773 (vec_extract_oddv2sf): Ditto.
4775 2011-02-07 Mike Stump <mikestump@comcast.net>
4778 Add __ieee_divdc3 entry point.
4779 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
4781 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
4782 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
4783 * config/darwin.c (darwin_rename_builtins): Add.
4784 * config/darwin-protos.h (darwin_rename_builtins): Add.
4786 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4789 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
4792 2011-02-07 Mike Stump <mikestump@comcast.net>
4794 * config/darwin.opt (mmacosx-version-min): Update default OS version.
4796 2011-02-07 Denis Chertykov <chertykov@gmail.com>
4799 * config/avr/libgcc.S (exit): Move .endfunc
4801 2011-02-07 Richard Guenther <rguenther@suse.de>
4803 PR tree-optimization/47615
4804 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
4805 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
4806 (run_scc_vn): Initialize it.
4807 (visit_reference_op_load): Use it.
4808 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
4810 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4812 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
4813 DImode trapping arithmetic libfuncs.
4815 2011-02-07 Richard Guenther <rguenther@suse.de>
4817 PR tree-optimization/47621
4818 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
4820 (execute_update_addresses_taken): ... here. Make it more
4821 conservative in what we accept.
4823 2011-02-06 Joseph Myers <joseph@codesourcery.com>
4825 * config/sparc/freebsd.h (ASM_SPEC): Define.
4826 * config/sparc/vxworks.h (ASM_SPEC): Define.
4828 2011-02-06 Joseph Myers <joseph@codesourcery.com>
4830 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
4832 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
4834 * doc/invoke.texi: Remove reference to compiler internals from
4837 * reg-notes.def: Remove REG_VALUE_PROFILE.
4838 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
4840 2011-02-05 Jakub Jelinek <jakub@redhat.com>
4843 * varasm.c (default_section_type_flags): If decl is NULL,
4844 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
4846 2011-02-05 Jie Zhang <jie@codesourcery.com>
4849 * web.c (entry_register): Don't clobber the number of the
4850 first uninitialized reference in used[].
4852 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
4854 PR tree-optimization/46194
4855 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
4856 (build_classic_dist_vector_1): Do not represent classic distance
4857 vectors when the access functions are variating in different loops.
4859 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4861 * config/mips/iris6.opt: New.
4862 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
4864 2011-02-04 Richard Henderson <rth@redhat.com>
4865 Steve Ellcey <sje@cup.hp.com>
4868 * config/ia64/predicates.md (mux1_brcst_element): New.
4869 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
4870 * config/ia64/ia64.c (ia64_unpack_assemble): New.
4871 (ia64_unpack_sign): New.
4872 (ia64_expand_unpack): Rewrite using new routines.
4873 (ia64_expand_widen_sum): Ditto.
4874 (ia64_expand_dot_prod_v8qi): Ditto.
4875 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
4876 routines, add endian check.
4877 (pmpy2_even): Rename from pmpy2_r, add endian check.
4878 (pmpy2_odd): Rename from pmpy2_l, add endian check.
4879 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
4880 (vec_widen_smult_hi_v4hi): Ditto.
4881 (vec_widen_umult_lo_v4hi): Ditto.
4882 (vec_widen_umult_hi_v4hi): Ditto.
4883 (mulv2si3): Change endian checks.
4884 (sdot_prodv4hi): Rewrite with new calls.
4885 (udot_prodv4hi): New.
4886 (vec_pack_ssat_v4hi): Add endian check.
4887 (vec_pack_usat_v4hi): Ditto.
4888 (vec_pack_ssat_v2si): Ditto.
4889 (max1_even): Rename from max1_r, add endian check.
4890 (max1_odd): Rename from max1_l, add endian check.
4891 (*mux1_rev): Format change.
4893 (*mux1_shuf): Ditto.
4895 (*mux1_brcst_v8qi): Use new predicate.
4896 (vec_extract_evenv8qi): Remove endian check.
4897 (vec_extract_oddv8qi): Ditto.
4898 (vec_interleave_lowv4hi): Format change.
4899 (vec_interleave_highv4hi): Ditto.
4900 (mix2_even): Rename from mix2_r, add endian check.
4901 (mix2_odd): Rename from mux2_l, add endian check.
4902 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
4903 (vec_extract_evenodd_helper): Format change.
4904 (vec_extract_evenv4hi): Remove endian check.
4905 (vec_extract_oddv4hi): Remove endian check.
4906 (vec_interleave_lowv2si): Format change.
4907 (vec_interleave_highv2si): Format change.
4908 (vec_initv2si): Remove endian check.
4909 (vecinit_v2si): Add endian check.
4910 (reduc_splus_v2sf): Add endian check.
4911 (reduc_smax_v2sf): Ditto.
4912 (reduc_smin_v2sf): Ditto.
4913 (vec_initv2sf): Remove endian check.
4914 (fpack): Add endian check.
4915 (fswap): Add endian check.
4916 (vec_interleave_highv2sf): Add endian check.
4917 (vec_interleave_lowv2sf): Add endian check.
4918 (fmix_lr): Add endian check.
4919 (vec_setv2sf): Format change.
4920 (*vec_extractv2sf_0_be): Use shift to extract operand.
4921 (*vec_extractv2sf_1_be): New.
4922 (vec_pack_trunc_v4hi): Add endian check.
4923 (vec_pack_trunc_v2si): Format change.
4925 2011-02-04 Jakub Jelinek <jakub@redhat.com>
4928 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
4929 do bb, locus and block comparison and disallow loads if it is not set.
4930 (stmt_is_replaceable_p): New function.
4931 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
4933 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
4934 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
4936 * tree-flow.h (stmt_is_replaceable_p): New prototype.
4938 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4940 * config/rs6000/xilinx.opt: New.
4941 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
4943 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4945 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
4947 2011-02-03 Anatoly Sokolov <aesok@post.ru>
4949 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
4950 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4951 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
4952 secondary_reload_info, xtensa_secondary_reload): Remove.
4953 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
4954 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4955 (xtensa_preferred_reload_class): Make static. Change return and
4956 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
4957 Use CONST_DOUBLE_P predicate.
4958 (xtensa_preferred_output_reload_class): New function.
4959 (xtensa_secondary_reload): Make static.
4961 2011-02-03 Joseph Myers <joseph@codesourcery.com>
4963 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
4964 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
4965 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
4967 2011-02-03 Jakub Jelinek <jakub@redhat.com>
4970 * output.h (SECTION_RELRO): Define.
4971 (SECTION_MACH_DEP): Adjust.
4972 (get_variable_section): New prototype.
4973 * varpool.c (varpool_finalize_named_section_flags): New function.
4974 (varpool_assemble_pending_decls): Call it.
4975 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
4976 * cgraphunit.c (cgraph_output_in_order): Call
4977 varpool_finalize_named_section_flags.
4978 * varasm.c (get_section): Allow section flags conflicts between
4979 relro and read-only sections if the section hasn't been declared yet.
4980 Set SECTION_OVERRIDE after diagnosing section type conflict.
4981 (get_variable_section): No longer static.
4982 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
4983 readonly sections that need relocations.
4984 (decl_readonly_section_1): New function.
4985 (decl_readonly_section): Use it.
4988 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
4989 Steve Ellcey <sje@cup.hp.com>
4992 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
4993 if section attribute used.
4995 2011-02-03 Jakub Jelinek <jakub@redhat.com>
4997 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
4998 * config/darwin.c (SECTION_NO_ANCHOR): Define.
4999 (darwin_init_sections): Remove assertion.
5001 2011-02-03 Nick Clifton <nickc@redhat.com>
5003 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5005 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5006 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5007 instead of "n" and "pz".
5008 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5011 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5014 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5015 fma, expand FMA_EXPR as fma{,f,l} call.
5018 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5019 copy them into a unsigned char variable and pass address of it to
5020 lto_output_data_stream.
5023 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5024 around backend_init_target and lang_dependent_init_target calls.
5025 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5026 (verify_cgraph_node): Don't call set_cfun here. Use
5027 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5028 Set error_found for incorrectly represented calls to thunks.
5030 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5033 PR rtl-optimization/43494
5034 * rtl.h (for_each_inc_dec_fn): New type.
5035 (for_each_inc_dec): Declare.
5036 * rtlanal.c (struct for_each_inc_dec_ops): New type.
5037 (for_each_inc_dec_find_inc_dec): New fn.
5038 (for_each_inc_dec_find_mem): New fn.
5039 (for_each_inc_dec): New fn.
5040 * dse.c (struct insn_size): Remove.
5041 (replace_inc_dec, replace_inc_dec_mem): Remove.
5042 (emit_inc_dec_insn_before): New fn.
5043 (check_for_inc_dec): Use it, along with for_each_inc_dec.
5044 (canon_address): Pass mem modes to cselib_lookup.
5045 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
5046 (cselib_lookup_from_insn): Likewise.
5047 (cselib_subst_to_values): Likewise.
5048 * cselib.c (find_slot_memmode): New var.
5049 (cselib_find_slot): New fn. Use it instead of
5050 htab_find_slot_with_hash everywhere.
5051 (entry_and_rtx_equal_p): Use find_slot_memmode.
5052 (autoinc_split): New fn.
5053 (rtx_equal_for_cselib_p): Rename and implement in terms of...
5054 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
5055 Deal with autoinc. Special-case recursion into MEMs.
5056 (cselib_hash_rtx): Likewise.
5057 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
5058 address and MEM modes.
5059 (cselib_subst_to_values): Add memmode, pass it on.
5061 (cselib_lookup): Add memmode argument, pass it on.
5062 (cselib_lookup_from_insn): Add memmode.
5063 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5064 (struct cselib_record_autoinc_data): New.
5065 (cselib_record_autoinc_cb): New fn.
5066 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
5067 mode to cselib_lookup. Reset autoinced REGs here instead of...
5068 (cselib_process_insn): ... here.
5069 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5071 (add_uses): Likewise, also to cselib_subst_to_values.
5072 (add_stores): Likewise.
5073 * sched-deps.c (add_insn_mem_dependence): Pass mode to
5074 cselib_subst_to_values.
5075 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
5076 * gcse.c (do_local_cprop): Adjusted.
5077 * postreload.c (reload_cse_simplify_set): Adjusted.
5078 (reload_cse_simplify_operands): Adjusted.
5079 * sel-sched-dump (debug_mem_addr_value): Pass mode.
5081 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5083 PR tree-optimization/45122
5084 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5085 unsafe assumptions when there's more than one loop exit.
5087 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5090 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5091 Document using vector double with the load/store builtins, and
5092 that the load/store builtins always use Altivec instructions.
5094 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5095 to use altivec memory instructions, even on VSX.
5096 (vector_altivec_store_<mode>): Ditto.
5098 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5101 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5102 V2DF, V2DI support to load/store overloaded builtins.
5104 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5105 altivec load/store builtins for V2DF/V2DI types.
5107 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5108 set avoid indexed addresses on power6 if -maltivec.
5109 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5110 vector_altivec_load/vector_altivec_store builtins.
5111 (altivec_expand_st_builtin): Ditto.
5112 (altivec_expand_builtin): Add VSX memory builtins.
5113 (rs6000_init_builtins): Add V2DI types to internal types.
5114 (altivec_init_builtins): Add support for V2DF/V2DI altivec
5115 load/store builtins.
5116 (rs6000_address_for_altivec): Insure memory address is appropriate
5119 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5120 vec_vsx_ld and vec_vsx_st.
5121 (vsx_store_<mode>): Ditto.
5123 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5124 variables to hold long long types for VSX vector memory builtins.
5125 (RS6000_BTI_unsigned_long_long): Ditto.
5126 (long_long_integer_type_internal_node): Ditti.
5127 (long_long_unsigned_type_internal_node): Ditti.
5129 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5130 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5131 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5133 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5135 (vec_vsx_st): Ditto.
5137 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5139 * config/pa/pa-hpux10.opt: New.
5140 * config/hpux11.opt (pthread): New Driver option.
5141 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5142 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5144 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5146 * config/ia64/vms.opt: New.
5147 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5149 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5152 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5153 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5154 generator functions.
5155 (vsx_floatuns<VSi><mode>2): Ditto.
5156 (vsx_fix_trunc<mode><VSi>2): Ditto.
5157 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5159 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5161 * config/i386/djgpp.opt (posix): New Driver option.
5163 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5165 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5166 Move to the unsupported targets list.
5168 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
5170 PR rtl-optimization/47525
5171 * df-scan.c: Update copyright years.
5172 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5173 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5175 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5177 * config/i386/sysv4.h (TARGET_VERSION): Remove.
5178 (SUBTARGET_RETURN_IN_MEMORY): Remove.
5179 (ASM_OUTPUT_ASCII): Remove.
5180 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5182 2011-02-02 Jeff Law <law@redhat.com>
5185 * reload.c (find_reloads_address): Handle reg+d address where both
5186 components are invalid by reloading the entire address.
5188 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5189 Richard Guenther <rguenther@suse.de>
5191 PR tree-optimization/40979
5193 * passes.c (init_optimization_passes): After LIM call copy_prop
5194 and DCE to clean up.
5195 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5197 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5199 PR tree-optimization/47576
5200 PR tree-optimization/47555
5201 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5202 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5203 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5204 * tree-scalar-evolution.c (follow_ssa_edge): Use
5205 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5207 2011-02-02 Richard Guenther <rguenther@suse.de>
5209 PR tree-optimization/47566
5210 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5212 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5216 * tree-inline.c (declare_return_variable): Remove unused caller
5221 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5222 * cfgexpand.c (account_used_vars_for_block): Use them.
5223 * tree-nrv.c (tree_nrv): Likewise.
5224 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5225 (dump_scope_block): Likewise.
5226 (remove_unused_locals): Likewise.
5230 * tree-inline.c (declare_return_variable): Add result decl to
5231 local decls only once.
5232 * gimple-low.c (record_vars_into): Mark newly-created variables
5235 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5241 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5243 (no_real_insns_p, schedule_block, set_priorities): Drop special
5244 treatment of boundary debug insns.
5245 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5246 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5247 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5248 (BOUNDARY_DEBUG_INSN_P): Likewise.
5249 (SCHEDULE_DEBUG_INSN_P): Likewise.
5250 * sched-rgn.c (init_ready_list): Drop special treatment of
5251 boundary debug insns.
5252 * final.c (rest_of_clean_state): Clear notes' BB.
5254 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5256 * config/openbsd.opt (assert=): New Driver option.
5258 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5260 * config/i386/nto.opt: New.
5261 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5263 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5265 * config/i386/netware.opt: New.
5266 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5268 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5270 * config/interix.opt (posix): New Driver option.
5272 2011-02-01 DJ Delorie <dj@redhat.com>
5274 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5276 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5279 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
5281 PR tree-optimization/47561
5282 * toplev.c (process_options): Print the Graphite flags. Add
5283 flag_loop_flatten to the list of options requiring Graphite.
5285 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5287 * config/i386/cygming.opt (posix): New Driver option.
5289 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5291 * config/arm/vxworks.opt: New.
5292 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5294 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5296 * config/alpha/elf.opt: New.
5297 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5298 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5300 2011-02-01 Richard Guenther <rguenther@suse.de>
5302 PR tree-optimization/47559
5303 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5304 store-motion on references that can throw.
5306 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
5308 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5309 * tree-pass.h (TDF_CSELIB): New macro.
5310 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5311 cselib_lookup): Check for it rather than for TDF_DETAILS.
5313 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
5316 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5319 * opts.c (finish_options): Don't add x_aux_base_name if it is
5322 2011-02-01 Richard Guenther <rguenther@suse.de>
5324 PR tree-optimization/47555
5326 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
5328 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5330 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
5333 * config/lm32/t-lm32: Add multilib for all CPU options.
5335 2011-02-01 Richard Guenther <rguenther@suse.de>
5337 PR tree-optimization/47541
5338 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5339 sure to have a field at offset zero.
5341 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5343 * config/arc/arc.opt (EB, EL): New Driver options.
5345 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5347 * config/alpha/osf5.opt: New.
5348 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5350 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5352 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5354 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
5356 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5358 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5359 is an alias of -floop-interchange and that it requires the
5360 Graphite infrastructure.
5361 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5362 flag_loop_interchange based on the value of flag_tree_loop_linear.
5364 2011-01-31 Jakub Jelinek <jakub@redhat.com>
5365 Richard Guenther <rguenther@suse.de>
5367 PR tree-optimization/47538
5368 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5369 type instead of r1type, except for comparisons. For right
5370 shifts and comparisons punt if there are mismatches in
5371 sizetype vs. non-sizetype types.
5373 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5375 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5378 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5380 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5382 * configure: Regenerate.
5384 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5386 * configure.ac (gcc_cv_ld_static_option): Define.
5387 (gcc_cv_ld_dynamic_option): Define.
5388 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5390 (HAVE_LD_STATIC_DYNAMIC): Update message.
5391 (LD_STATIC_OPTION): Define.
5392 (LD_DYNAMIC_OPTION): Define.
5393 * configure: Regenerate.
5394 * config.in: Regenerate.
5395 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5396 HAVE_LD_STATIC_DYNAMIC]: Use them.
5398 2011-01-31 Nick Clifton <nickc@redhat.com>
5400 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5401 registers inside interrupt handlers if the handler is not a leaf
5404 2011-01-31 Nick Clifton <nickc@redhat.com>
5406 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5407 reg_renumber returning an INVALID_REGNUM.
5409 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5412 * doc/install.texi: Document host options discarded when cross
5413 configuring target libraries.
5415 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5418 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5421 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5423 (no_real_insns_p, schedule_block, set_priorities): Drop special
5424 treatment of boundary debug insns.
5425 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5426 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5427 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5428 (BOUNDARY_DEBUG_INSN_P): Likewise.
5429 (SCHEDULE_DEBUG_INSN_P): Likewise.
5430 * sched-rgn.c (init_ready_list): Drop special treatment of
5431 boundary debug insns.
5432 * final.c (rest_of_clean-state): Clear notes' BB.
5434 2011-01-31 Alan Modra <amodra@gmail.com>
5436 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
5437 toc relative expressions as we do in print_operand_address.
5439 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
5441 * doc/extend.texi: Follow spelling conventions.
5442 * doc/invoke.texi: Fix a typo.
5444 2011-01-30 Joseph Myers <joseph@codesourcery.com>
5446 * config/hpux11.opt: New.
5447 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
5448 ia64*-*-hpux*): Use hpux11.opt.
5450 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
5452 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
5455 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5457 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
5460 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5462 * doc/install.texi (Binaries): Remove outdated reference for
5463 Motorola 68HC11/68HC12 downloads.
5465 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5467 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
5470 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5473 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
5476 2011-01-28 Ahmad Sharif <asharif@google.com>
5478 * value-prof.c (check_counter): Corrected error message.
5480 2011-01-29 Jie Zhang <jie@codesourcery.com>
5482 * config/arm/arm.c (arm_legitimize_reload_address): New.
5483 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5484 arm_legitimize_reload_address.
5485 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
5487 2011-01-28 Ian Lance Taylor <iant@google.com>
5489 * godump.c (go_define): Ignore macros whose definitions include
5490 two adjacent operands.
5492 2011-01-28 Jakub Jelinek <jakub@redhat.com>
5495 * varasm.c (force_const_mem): Store copy of x in desc->constant
5496 instead of x itself.
5497 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
5498 itself into REG_EQUAL note.
5500 2011-01-28 Joseph Myers <joseph@codesourcery.com>
5502 * config/freebsd.opt (posix, rdynamic): New Driver options.
5504 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5506 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
5508 * configure: Regenerate.
5510 2011-01-27 Joseph Myers <joseph@codesourcery.com>
5512 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
5513 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
5515 2011-01-27 Anatoly Sokolov <aesok@post.ru>
5517 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
5518 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
5519 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5520 (s390_preferred_reload_class): Make static. Change return and
5521 'rclass' argument type to reg_class_t.
5523 2011-01-27 Jan Hubicka <jh@suse.cz>
5526 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
5527 (process_function_and_variable_attributes): Check defined weakrefs.
5529 2011-01-27 Martin Jambor <mjambor@suse.cz>
5531 PR tree-optimization/47228
5532 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
5533 build_ref_for_offset.
5535 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5537 * config/spu/spu-elf.h (ASM_SPEC): Remove.
5539 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
5541 PR rtl-optimization/46856
5542 * postreload.c (reload_combine_recognize_const_pattern): Do not
5543 separate cc0 setter and user on cc0 targets.
5545 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
5548 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
5549 passed a VOID_TYPE expression, immediately emit an error and
5550 return error_mark_node.
5552 2011-01-26 Jeff Law <law@redhat.com>
5554 PR rtl-optimization/47464
5555 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
5556 rather than may_trap_p as needed.
5558 2011-01-26 DJ Delorie <dj@redhat.com>
5560 PR rtl-optimization/46878
5561 * combine.c (insn_a_feeds_b): Check for the implicit cc0
5562 setter/user dependency as well.
5564 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
5566 PR rtl-optimization/44469
5567 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
5568 after removing trivially dead basic blocks.
5570 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5572 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
5573 * config/frv/frv.h (LINK_SPEC): Likewise.
5574 * config/i386/netware.h (LINK_SPEC): Likewise.
5575 * config/m68k/linux.h (ASM_SPEC): Likewise.
5576 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
5577 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5578 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5579 * config/sparc/linux.h (ASM_SPEC): Likewise.
5580 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5581 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5583 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5585 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
5586 * config/frv/frv.h (ASM_SPEC): Likewise.
5587 * config/m68k/linux.h (ASM_SPEC): Likewise.
5588 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5589 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
5590 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5591 * config/sparc/linux.h (ASM_SPEC): Likewise.
5592 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5593 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5595 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5597 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
5598 * config/frv/frv.h (LINK_SPEC): Likewise.
5599 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5601 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5603 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
5604 * config/frv/frv.h (ASM_SPEC): Likewise.
5605 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
5606 * config/m68k/linux.h (ASM_SPEC): Likewise.
5607 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5608 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5609 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5610 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
5611 * config/sparc/linux.h (ASM_SPEC): Likewise.
5612 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5613 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5614 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
5616 2011-01-26 Steve Ellcey <sje@cup.hp.com>
5619 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
5621 (vec_extract_evenodd_help): Ditto.
5622 (vec_extract_evenv4hi): Ditto.
5623 (vec_extract_oddv4hi): Ditto.
5624 (vec_interleave_lowv2si): Ditto.
5625 (vec_interleave_highv2si): Ditto.
5626 (vec_extract_evenv2si): Ditto.
5627 (vec_extract_oddv2si: Ditto.
5628 (vec_pack_trunc_v2si): Ditto.
5630 2011-01-22 Jan Hubicka <jh@suse.cz>
5633 * cgraph.h (cgraph_local_info): New field can_change_signature.
5634 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
5635 signature can change.
5636 (ipcp_estimate_growth): Call sequence simplify only if calle signature
5638 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
5639 (cgraph_function_versioning): We can not change signature of functions
5640 that don't allow that.
5641 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
5642 (lto_input_node): Likewise.
5643 * ipa-inline.c (compute_inline_parameters): Compute
5644 local.can_change_signature.
5645 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
5646 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
5647 functions that can not change signature.
5648 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
5649 init_cumulative_args): Do not use local calling conventions
5650 for functions that can not change signature.
5652 2011-01-22 Jan Hubicka <jh@suse.cz>
5654 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
5656 2011-01-26 Richard Guenther <rguenther@suse.de>
5658 PR tree-optimization/47190
5659 * cgraphunit.c (process_common_attributes): New function.
5660 (process_function_and_variable_attributes): Use it.
5662 2011-01-26 Richard Guenther <rguenther@suse.de>
5665 * cgraphbuild.c (record_eh_tables): Record reference to personality
5668 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
5671 * sel-sched.c (moveup_expr): Don't let debug insns prevent
5672 non-debug insns from moving up.
5674 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5677 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
5678 t-dlldir{,-x} fragment for build and add it to tmake_file.
5679 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
5680 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
5681 * config/i386/t-dlldir: New file.
5682 (SHLIB_DLLDIR): Define.
5683 * config/i386/t-dlldir-x: New file.
5684 (SHLIB_DLLDIR): Define.
5685 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
5686 (SHLIB_INSTALL): Use it.
5688 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
5691 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
5692 lower bound of the allowed Thumb-2 coprocessor load/store
5693 index range to -256. Add explaining comment.
5695 2011-01-25 Ian Lance Taylor <iant@google.com>
5697 * godump.c (go_define): Improve lexing of macro expansion to only
5698 accept expressions which match Go spec.
5700 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5703 * tree.c (handle_dll_attribute): Handle it.
5704 * doc/extend.texi (@item dllexport): Mention it.
5705 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
5707 2011-01-25 Ian Lance Taylor <iant@google.com>
5709 PR tree-optimization/26854
5710 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
5711 (decl_jump_unsafe): Move higher in file, with no other change.
5712 (bind): Set has_jump_unsafe_decl if appropriate.
5713 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
5714 (check_earlier_gotos): Likewise.
5715 (c_check_switch_jump_warnings): Likewise.
5717 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
5719 * doc/invoke.texi (Warning Options): Add missing hyphen.
5720 (-fprofile-dir): Minor grammatical fixes.
5721 (-fbranch-probabilities): Likewise.
5723 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5727 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5729 (no_real_insns_p, schedule_block, set_priorities): Drop special
5730 treatment of boundary debug insns.
5731 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5732 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5733 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5734 (BOUNDARY_DEBUG_INSN_P): Likewise.
5735 (SCHEDULE_DEBUG_INSN_P): Likewise.
5736 * sched-rgn.c (init_ready_list): Drop special treatment of
5737 boundary debug insns.
5738 * final.c (rest_of_clean-state): Clear notes' BB.
5740 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5742 * Makefile.in (LAMBDA_H): Removed.
5743 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
5744 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
5745 lambda-trans.o, and tree-loop-linear.o.
5746 (lto-symtab.o): Remove dependence on LAMBDA_H.
5747 (tree-loop-linear.o): Remove rule.
5748 (lambda-mat.o): Same.
5749 (lambda-trans.o): Same.
5750 (lambda-code.o): Same.
5751 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
5752 (tree-vect-slp.o): Same.
5753 * hwint.h (gcd): Moved here.
5754 (least_common_multiple): Same.
5755 * lambda-code.c: Removed.
5756 * lambda-mat.c: Removed.
5757 * lambda-trans.c: Removed.
5758 * lambda.h: Removed.
5759 * tree-loop-linear.c: Removed.
5760 * lto-symtab.c: Do not include lambda.h.
5761 * omega.c (gcd): Removed.
5762 * passes.c (init_optimization_passes): Remove pass_linear_transform.
5763 * tree-data-ref.c (print_lambda_vector): Moved here.
5764 (lambda_vector_copy): Same.
5765 (lambda_matrix_copy): Same.
5766 (lambda_matrix_id): Same.
5767 (lambda_vector_first_nz): Same.
5768 (lambda_matrix_row_add): Same.
5769 (lambda_matrix_row_exchange): Same.
5770 (lambda_vector_mult_const): Same.
5771 (lambda_vector_negate): Same.
5772 (lambda_matrix_row_negate): Same.
5773 (lambda_vector_equal): Same.
5774 (lambda_matrix_right_hermite): Same.
5775 * tree-data-ref.h: Do not include lambda.h.
5776 (lambda_vector): Moved here.
5777 (lambda_matrix): Same.
5778 (dependence_level): Same.
5779 (lambda_transform_legal_p): Removed declaration.
5780 (lambda_collect_parameters): Same.
5781 (lambda_compute_access_matrices): Same.
5782 (lambda_vector_gcd): Same.
5783 (lambda_vector_new): Same.
5784 (lambda_vector_clear): Same.
5785 (lambda_vector_lexico_pos): Same.
5786 (lambda_vector_zerop): Same.
5787 (lambda_matrix_new): Same.
5788 * tree-flow.h (least_common_multiple): Removed declaration.
5789 * tree-parloops.c (lambda_trans_matrix): Moved here.
5791 (LTM_ROWSIZE): Same.
5792 (LTM_COLSIZE): Same.
5793 (LTM_DENOMINATOR): Same.
5794 (lambda_trans_matrix_new): Same.
5795 (lambda_matrix_vector_mult): Same.
5796 (lambda_transform_legal_p): Same.
5797 * tree-pass.h (pass_linear_transform): Removed declaration.
5798 * tree-ssa-loop.c (tree_linear_transform): Removed.
5799 (gate_tree_linear_transform): Removed.
5800 (pass_linear_transform): Removed.
5801 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
5802 flag_loop_interchange.
5804 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5806 PR tree-optimization/47265
5807 PR tree-optimization/47443
5808 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
5809 if name still has some uses.
5811 2011-01-25 Martin Jambor <mjambor@suse.cz>
5813 PR tree-optimization/47382
5814 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
5815 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
5817 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
5819 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
5820 sjlj_except_unwind_info.
5822 2011-01-25 Richard Guenther <rguenther@suse.de>
5824 PR tree-optimization/47426
5825 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
5826 visible functions results escape.
5828 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5831 * config/arm/arm.c (any_sibcall_uses_r3): New function.
5832 (arm_get_frame_offsets): Use it.
5834 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5835 Jakub Jelinek <jakub@redhat.com>
5837 PR tree-optimization/47271
5838 * tree-if-conv.c (bb_postdominates_preds): New.
5839 (if_convertible_bb_p): Call bb_postdominates_preds.
5840 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
5841 (predicate_scalar_phi): Call bb_postdominates_preds.
5843 2011-01-25 Nick Clifton <nickc@redhat.com>
5845 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
5846 * config/rx/rx.c (rx_function_value): Likewise.
5847 (rx_promote_function_mode): Likewise.
5848 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
5849 in order to make it legitimate.
5850 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
5851 make sure that the first operand is the same as the result register.
5852 (addsi3_unspec): Delete.
5853 (subdi3): Do not accept immediate operands.
5854 (subdi3_internal): Likewise.
5856 2011-01-25 Jeff Law <law@redhat.com>
5858 PR rtl-optimization/37273
5859 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5860 handle them like argument loads from stack slots. Do not double
5861 count memory for memory constants and argument loads from stack slots.
5863 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5865 PR tree-optimization/47427
5866 PR tree-optimization/47428
5867 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5868 coalesce if the new root var would be TREE_READONLY.
5870 2011-01-25 Richard Guenther <rguenther@suse.de>
5873 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
5874 correct type for TBAA.
5876 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5878 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
5879 (close_phi_written_to_memory): Call for_each_index with
5880 dr_indices_valid_in_loop.
5882 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5884 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
5885 when it is initialized.
5887 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5889 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
5890 call to graphite_find_data_references_in_stmt.
5891 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
5892 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
5893 call to graphite_find_data_references_in_stmt.
5894 (analyze_drs_in_stmts): Same.
5895 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
5896 in which the scalar analysis of indices is performed.
5897 (create_data_ref): Same. Update call to dr_analyze_indices.
5898 (find_data_references_in_stmt): Update call to create_data_ref.
5899 (graphite_find_data_references_in_stmt): Same.
5900 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
5902 (create_data_ref): Same.
5903 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
5904 call to create_data_ref.
5906 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5908 * graphite-sese-to-poly.c (build_poly_scop): Move
5909 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
5911 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5913 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
5914 VAR_DECL, PARM_DECL, and RESULT_DECL.
5916 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5918 * graphite-dependences.c (reduction_dr_1): Allow several reductions
5920 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
5921 that have already been marked as PBB_IS_REDUCTION.
5923 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5925 * graphite-scop-detection.c (same_close_phi_node): New.
5926 (remove_duplicate_close_phi): New.
5927 (make_close_phi_nodes_unique): New.
5928 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
5930 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5932 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
5933 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
5934 of both data references to be the same.
5936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5938 * graphite-dependences.c (build_lexicographical_constraint): Remove
5940 (build_lexicographical_constraint): Adjust call to
5941 ppl_powerset_is_empty.
5942 (dependence_polyhedron): Same.
5943 (graphite_legal_transform_dr): Same.
5944 (graphite_carried_dependence_level_k): Same.
5945 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
5947 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
5949 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5951 * graphite-sese-to-poly.c
5952 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
5953 (close_phi_written_to_memory): New.
5954 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
5957 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5959 * doc/install.texi: Update the expected version number of PPL to 0.11.
5960 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
5961 #if PPL_VERSION_MINOR < 11.
5963 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5965 * graphite-dependences.c: Include graphite-cloog-util.h.
5966 (new_poly_ddr): Inlined into dependence_polyhedron.
5967 (free_poly_ddr): Moved close by new_poly_ddr.
5968 (dependence_polyhedron_1): Renamed dependence_polyhedron.
5969 Early return NULL when ppl_powerset_is_empty returns true.
5970 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
5971 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
5972 (graphite_legal_transform_dr): Call new_poly_ddr.
5973 (graphite_carried_dependence_level_k): Same.
5974 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
5975 (dot_transformed_deps_stmt_1): Removed.
5976 (dot_deps_stmt_1): Call dot_deps_stmt_2.
5977 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
5978 (dot_deps_1): Call dot_deps_2.
5979 * Makefile.in (graphite-dependences.o): Add missing dependence on
5980 graphite-cloog-util.h.
5982 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5984 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
5985 (build_lexicographical_constraint): Same.
5986 (dependence_polyhedron_1): Same.
5987 (graphite_legal_transform_dr): Same.
5988 (graphite_carried_dependence_level_k): Same.
5989 * graphite-ppl.c (ppl_powerset_is_empty): New.
5990 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
5991 * tree-data-ref.c (dump_data_reference): Print the basic block index.
5993 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5995 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
5996 the "a followed by b" relation and document it.
5998 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6000 * graphite-dependences.c (build_lexicographical_constraint): Stop the
6001 iteration when the bag of constraints is empty.
6003 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6005 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6007 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6009 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6010 nest and two loop depths as parameters.
6011 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6012 lst_perfect_nestify.
6014 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6016 * graphite-dependences.c (print_pddr): Call
6017 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6019 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6021 * graphite-ppl.c (debug_gmp_value): New.
6022 * graphite-ppl.h (debug_gmp_value): Declared.
6024 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
6026 * doc/install.texi: Document availability of cloog-0.16.
6028 2011-01-25 Vladimir Kargov <kargov@gmail.com>
6030 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6031 invalid postdominance info.
6033 2011-01-24 Jan Hubicka <jh@suse.cz>
6036 * doc/extend.texi (weak pragma): Drop claim that it must
6037 appear before definition.
6038 * varasm.c (merge_weak, declare_weak): Only sanity check
6039 that DECL is not output at a time it is declared weak.
6041 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
6043 * machmode.def: Fixed comments.
6045 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
6047 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6049 2011-01-24 Paul Koning <ni1d@arrl.net>
6051 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6054 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
6057 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6058 (block_info): Add scanned and prev.
6059 (move_or_delete_vzeroupper_2): Return if the basic block
6060 has been scanned and the upper 128bit state is unchanged
6062 (move_or_delete_vzeroupper_1): Return true if the exit
6064 (move_or_delete_vzeroupper): Visit basic blocks using the
6065 work-list based algorithm based on vt_find_locations in
6068 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6070 2011-01-24 Nick Clifton <nickc@redhat.com>
6072 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6073 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6074 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
6075 then define __v850e1__.
6076 * doc/invoke.texi: Document -mv850es.
6078 2011-01-24 Richard Henderson <rth@redhat.com>
6080 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6081 compound unordered comparisons.
6082 * config/rx/rx.c (rx_split_fp_compare): Remove.
6083 * config/rx/rx-protos.h: Update.
6084 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6085 (cbranchsf4): Don't call rx_split_fp_compare.
6086 (*cbranchsf4): Use rx_split_cbranch.
6087 (*cmpsf): Don't accept "i" constraint.
6088 (*conditional_branch): Only valid after reload.
6089 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
6091 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6094 * config/rs6000/altivec.md (vector constant splitters): Add
6095 support for creating vector single precision constants if -mvsx is
6096 used and we would create the constant using Altivec primitives.
6098 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
6099 Richard Sandiford <rdsandiford@googlemail.com>
6101 PR rtl-optimization/47166
6102 * reload1.c (emit_reload_insns): Disable the spill_reg_store
6103 mechanism for PRE_MODIFY and POST_MODIFY.
6104 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6107 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
6109 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6111 2011-01-22 Jan Hubicka <jh@suse.cz>
6114 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6116 2011-01-22 Jan Hubicka <jh@suse.cz>
6118 PR tree-optimization/43884
6120 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6121 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6123 2011-01-22 Anatoly Sokolov <aesok@post.ru>
6125 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6126 * config/s390/s390.c (s390_register_move_cost,
6127 s390_memory_move_cost): New.
6128 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6130 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6133 * except.c (sjlj_assign_call_site_values): Move setting the
6134 crtl->uses_eh_lsda flag to ...
6135 (sjlj_mark_call_sites): ... here.
6136 (sjlj_emit_function_enter): Support NULL dispatch label.
6137 (sjlj_build_landing_pads): In a function with no landing pads
6138 that still has must-not-throw regions, generate code to register
6139 a personality function with empty LSDA.
6141 2011-01-21 Richard Henderson <rth@redhat.com>
6143 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6145 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6147 * compare-elim.c: New file.
6148 * Makefile.in (OBJS-common): Add it.
6149 (compare-elim.o): New.
6150 * common.opt (fcompare-elim): New.
6151 * opts.c (default_options_table): Add OPT_fcompare_elim.
6152 * tree-pass.h (pass_compare_elim_after_reload): New.
6153 * passes.c (init_optimization_passes): Add it.
6154 * recog.h: Protect against re-inclusion.
6155 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6156 * doc/invoke.texi (-fcompare-elim): Document it.
6157 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6158 * doc/tm.texi: Rebuild.
6160 2011-01-22 Nick Clifton <nickc@redhat.com>
6162 * config/rx/rx.md (cstoresf4): Pass comparison operator to
6163 rx_split_fp_compare.
6165 2011-01-22 Nick Clifton <nickc@redhat.com>
6167 * config/rx/rx.md (UNSPEC_CONST): New.
6168 (deallocate_and_return): Wrap the amount popped off the stack in
6169 an UNSPEC_CONST in order to stop it being rejected by
6170 -mmax-constant-size.
6171 (pop_and_return): Add a "(return)" rtx.
6172 (call): Drop the immediate operand.
6173 (call_internal): Likewise.
6174 (call_value): Likewise.
6175 (call_value_internal): Likewise.
6176 (sibcall_internal): Likewise.
6177 (sibcall_value_internal): Likewise.
6178 (sibcall): Likewise. Generate an explicit call using
6180 (sibcall_value): Likewise.
6181 (mov<>): FAIL if a constant operand is not legitimate.
6182 (addsi3_unpsec): New pattern.
6184 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6185 (ok_for_max_constant): New function.
6186 (gen_safe_add): New function.
6187 (rx_expand_prologue): Use gen_safe_add.
6188 (rx_expand_epilogue): Likewise.
6189 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
6192 2011-01-21 Jeff Law <law@redhat.com>
6194 PR tree-optimization/47053
6195 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6196 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6197 statements are deleted.
6198 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6199 is nonempty, then purge dead edges and cleanup the CFG.
6201 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6205 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6207 * tree-dfa.c (create_var_ann): Mark variable as used.
6209 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6212 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6213 notes from other section in hot/cold partitioning even if
6214 last_action is -3. Increment call_site_base.
6216 PR rtl-optimization/47366
6217 * fwprop.c (forward_propagate_into): Return bool. If
6218 any changes are made, -fnon-call-exceptions is used and
6219 REG_EH_REGION note is present, call purge_dead_edges
6220 and return true if it purged anything.
6221 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6222 any EH edges were purged.
6224 2011-01-21 Jeff Law <law@redhat.com>
6226 PR rtl-optimization/41619
6227 * caller-save.c (setup_save_areas): Break out code to determine
6228 which hard regs are live across calls by examining the reload chains
6229 so that it is always used.
6230 Eliminate code which checked REG_N_CALLS_CROSSED.
6232 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6234 PR tree-optimization/47355
6235 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6236 NOP has non-debug uses beyond PHIs in new_bb.
6238 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6241 * cfgexpand.c (account_used_vars_for_block): Only account vars
6242 that are annotated as used.
6243 (estimated_stack_frame_size): Don't set TREE_USED.
6244 * tree-dfa.c (create_var_ann): Mark variable as used.
6246 2011-01-21 Richard Guenther <rguenther@suse.de>
6249 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6251 2011-01-21 Richard Guenther <rguenther@suse.de>
6253 PR tree-optimization/47365
6254 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6255 (vn_reference_lookup_pieces): Adjust.
6256 (vn_reference_lookup): Likewise.
6257 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6258 (vn_reference_lookup_3): Only look through kills if in
6259 VN_WALKREWRITE mode.
6260 (vn_reference_lookup_pieces): Adjust.
6261 (vn_reference_lookup): Likewise.
6262 (visit_reference_op_load): Likewise.
6263 (visit_reference_op_store): Likewise.
6264 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6265 (compute_avail): Likewise.
6266 (eliminate): Likewise.
6268 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6270 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6271 DECL_IGNORED_P non-reg vars if they are used.
6273 PR tree-optimization/47391
6274 * varpool.c (const_value_known_p): Return false if
6277 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
6280 * config/i386/i386.c (ix86_local_alignment): Handle
6281 case for va_list_type_node is nil.
6282 (ix86_canonical_va_list_type): Likewise.
6284 2011-01-21 Alan Modra <amodra@gmail.com>
6286 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6287 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6289 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6291 * config/arm/arm.md (define_attr type): Rename f_load
6292 and f_store to f_fpa_load and f_fpa_store. Update.
6293 (write_conflict): Deal with rename fallout.
6294 (*push_fp_multi): Likewise.
6295 * config/arm/fpa.md (f_load): Use f_fpa_load.
6296 (f_store): Use f_fpa_store.
6297 (*movsf_fpa): Likewise.
6298 (*movdf_fpa): Likewise.
6299 (*movxf_fpa): Likewise.
6300 (*thumb2_movsf_fpa): Likewise.
6301 (*thumb2_movdf_fpa): Likewise.
6302 (*thumb2_movxf_fpa): Likewise.
6303 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6304 f_loadd and f_stored.
6305 (*thumb2_movdi_vfp): Likewise.
6306 (*thumb2_movsf_vfp): Fix attribute to f_loads.
6307 (*thumb2_movsi_vfp): Likewise.
6308 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6309 Use f_loads instead of f_load.
6310 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6312 2011-01-20 Anatoly Sokolov <aesok@post.ru>
6314 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6315 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6316 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6317 (xtensa_mode_dependent_address_p): New function.
6318 (constantpool_address_p): Make static. Change return type to bool.
6319 Change argument type to const_rtx. Use CONST_INT_P predicate.
6321 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
6324 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6326 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6329 * cfgexpand.c (expand_debug_expr): Instead of generating
6330 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6333 2011-01-20 Richard Guenther <rguenther@suse.de>
6336 * tree-inline.c (remap_gimple_op_r): Recurse manually for
6337 the pointer operand of MEM_REFs.
6339 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6341 PR tree-optimization/46130
6342 * ipa-split.c (consider_split): If return_bb contains non-virtual
6343 PHIs other than for retval or if split_function would not adjust it,
6346 2011-01-20 Richard Guenther <rguenther@suse.de>
6348 PR tree-optimization/47167
6349 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6350 Revert previous change, only avoid enumeral type changes.
6352 2011-01-19 Mike Stump <mikestump@comcast.net>
6354 * doc/tm.texi.in (BRANCH_COST): Englishify.
6355 * doc/tm.texi (BRANCH_COST): Likewise.
6357 2011-01-19 Dodji Seketeli <dodji@redhat.com>
6360 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
6361 (gen_scheduled_generic_parms_dies): New functions.
6362 (gen_struct_or_union_type_die): Schedule template parameters DIEs
6363 generation for the end of CU compilation.
6364 (dwarf2out_finish): Generate template parameters DIEs here.
6366 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6369 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6370 debug bind stmt on merge edges.
6372 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6376 * function.c (instantiate_expr): Instantiate incoming rtl of
6377 implicit arguments, and recurse on VALUE_EXPRs.
6378 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6379 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6381 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6383 * c-parser.c (c_parser_for_statement): Initialize
6384 collection_expression.
6386 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6388 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6390 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6392 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6393 (LINK_SHLIB_SPEC): Don't use %(link_path).
6394 (SUBTARGET_EXTRA_SPECS): Remove link_path.
6396 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6398 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6399 (NO_SHARED_LIB_SUPPORT): Remove.
6400 (LINK_SHLIB_SPEC): Remove one conditional definition.
6402 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6404 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6406 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6407 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6408 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6409 %{call_shared} and conditionals on these options not being passed.
6410 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6413 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6415 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6418 * ipa-split.c: Spelling fixes.
6420 2011-01-19 Richard Henderson <rth@redhat.com>
6422 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
6423 (*mulsi3): Likewise.
6425 * longlong.h [__mn10300__] (count_leading_zeros): New.
6426 [__mn10300__] (umul_ppmm, smul_ppmm): New.
6427 [__mn10300__] (add_ssaaaa, subddmmss): New.
6428 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
6429 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
6431 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6433 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
6435 2011-01-19 Richard Henderson <rth@redhat.com>
6437 * config/mn10300/mn10300.md (addsi3_flags): New.
6438 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
6439 (subsi3_flags, subc_internal, subdi3): New.
6440 (subdi3_internal, *subdi3_degenerate): New.
6441 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
6443 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
6444 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
6445 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
6446 * config/mn10300/mn10300-protos.h: Update.
6447 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
6448 (return_ret): Likewise. Rename from return_internal_regs.
6449 (return_internal): Remove.
6451 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
6452 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
6453 (mn10300_legitimate_constant_p): Likewise.
6454 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
6455 (mn10300_frame_size): New.
6456 (mn10300_expand_prologue): Use it.
6457 (mn10300_expand_epilogue): Likewise.
6458 (mn10300_initial_offset): Likewise.
6459 * config/mn10300/mn10300-protos.h: Update.
6460 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
6461 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
6462 (prologue, epilogue, return_internal): Tidy output code.
6463 (mn10300_store_multiple_operation, return): Likewise.
6464 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
6465 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
6466 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
6467 (load_pic, am33_load_pic): New.
6468 (mn10300_load_pic0, mn10300_load_pic1): New.
6470 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
6471 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
6472 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
6473 (cc_flags_for_mode, cc_flags_for_code): New.
6474 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
6475 overflow flag is not valid. Validate that the flags we need
6476 for the comparison are valid.
6477 (mn10300_output_cmp): Remove.
6478 (mn10300_output_add): New.
6479 (mn10300_select_cc_mode): Use cc_flags_for_code.
6480 (mn10300_split_cbranch): New.
6481 (mn10300_match_ccmode): New.
6482 (mn10300_split_and_operand_count): New.
6483 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
6485 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
6486 (addsi3): ... here. Use mn10300_output_add.
6487 (*addsi3_flags): New.
6488 (*am33_subsi3, *mn10300_subsi3): Merge...
6489 (subsi3): ... here. Use attribute isa.
6490 (*subsi3_flags): New.
6491 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
6493 (*am33_andsi3, *mn10300_andsi3): Merge...
6495 (*andsi3_flags): New.
6496 (andsi3 splitters): New.
6497 (*am33_iorsi3, *mn10300_iorsi3): Merge...
6499 (*iorsi3_flags): New.
6500 (*am33_xorsi3, *mn10300_xorsi3): Merge...
6502 (*xorsi3_flags): New.
6503 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
6504 (one_cmplsi2): ... here.
6505 (*one_cmplsi2_flags): New.
6506 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
6507 instead of "dax" in constraints. Use mn10300_split_cbranch.
6508 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
6509 use matching constraints to eliminate a self-comparison.
6510 (*integer_conditional_branch): Rename from integer_conditional_branch.
6511 Use int_mode_flags to match CC_REG.
6512 (*cbranchsi4_btst, *btstsi): New.
6513 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
6514 mn10300_split_cbranch.
6515 (*am33_cmpsf): Rename from am33_cmpsf.
6516 (*float_conditional_branch): Rename from float_conditional_branch.
6517 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
6518 (zero_extendqisi2): ... here.
6519 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
6520 (zero_extendhisi2): ... here.
6521 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
6522 (extendqisi2): ... here.
6523 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
6524 (extendhisi2): ... here.
6525 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
6526 (ashlsi3): ... here.
6527 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
6528 (lshrsi3): ... here.
6529 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
6530 (ashrsi3): ... here.
6531 (consecutive add peephole): Remove.
6532 * config/mn10300/predicates.md (label_ref_operand): New.
6533 (int_mode_flags): New.
6534 (CCZN_comparison_operator): New.
6536 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
6537 (throughput_42_latency_43): New reservation.
6538 (mulsidi3, umulsidi3): New expanders.
6539 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
6540 the MDR register to allocation; separately allocate the low and
6541 high parts of the DImode result.
6542 (umulsidi3_internal): Similarly.
6543 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
6544 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
6545 (udivsi3, umodsi3): Remove.
6546 (udivmodsi4, divmodsi4): New expanders.
6547 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
6548 (*divmodsi4): Simiarly.
6549 (ext_internal): New.
6551 * config/mn10300/constraints.md ("z"): New constraint.
6552 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
6553 (FIXED_REGISTERS): Don't fix MDR.
6554 (CALL_USED_REGSITERS): Reformat nicely.
6555 (REG_ALLOC_ORDER): Add MDR.
6556 (enum regclass): Add MDR_REGS.
6557 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
6558 (IRA_COVER_CLASSES): Add MDR_REGS.
6559 (REGNO_REG_CLASS): Handle MDR_REG.
6560 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
6561 (mn10300_register_move_cost): Likewise.
6562 * config/mn10300/mn10300.md (MDR_REG): New.
6563 (*movsi_internal): Handle moves to/from MDR_REGS.
6565 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
6567 (mn10300_secondary_reload): Tidy combination reload classes.
6568 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
6569 addresses for AM33. Allow symbolic offsets for reg+imm.
6570 (mn10300_regno_in_class_p): New.
6571 (mn10300_legitimize_reload_address): New.
6572 * config/mn10300/mn10300.h (enum reg_class): Remove
6573 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
6574 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
6576 (REG_CLASS_NAMES): Update to match.
6577 (REG_CLASS_CONTENTS): Likewise.
6578 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
6579 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
6580 (REGNO_IN_RANGE_P): Remove.
6581 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
6582 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
6583 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
6584 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
6585 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
6586 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
6587 (REGNO_GENERAL_P): New.
6588 (HAVE_POST_MODIFY_DISP): New.
6589 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
6590 (LEGITIMIZE_RELOAD_ADDRESS): New.
6591 * config/mn10300/mn10300-protos.h: Update.
6593 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
6594 DATA_REGS for AM33 stack-pointer destination.
6595 (mn10300_preferred_output_reload_class): Likewise.
6596 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
6597 into a form appropriate for ...
6598 (TARGET_SECONDARY_RELOAD): New.
6599 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
6600 * config/mn10300/mn10300-protos.h: Update.
6601 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
6602 reload_insi; use the "A" constraint for the scratch; handle AM33
6603 moves of sp to non-address registers.
6605 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
6606 (*movqi_internal): ... here.
6607 (*am33_movhi, *mn10300_movhi): Merge into...
6608 (*movhi_internal): ... here.
6609 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
6610 as the source/destination of moves from/to SP.
6611 (movsf): Only allow for AM33-2.
6612 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
6613 any integer constant constraint. Only allow for AM33-2. Tidy
6614 all of the alternative outputs.
6615 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
6616 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
6618 (udivsi3, umodsi3): New patterns for MN103 only.
6620 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
6622 * doc/tm.texi.in: Spell out that a lack of register class unions
6624 * doc/tm.texi: Regenerate.
6626 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6628 PR rtl-optimization/47337
6629 * dce.c (check_argument_store): New function.
6630 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
6632 PR tree-optimization/47290
6633 * tree-eh.c (infinite_empty_loop_p): New function.
6634 (cleanup_empty_eh): Use it.
6636 2011-01-18 Steve Ellcey <sje@cup.hp.com>
6639 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
6640 (a64_expand_widen_sum): Ditto.
6641 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
6642 (vec_extract_evenodd_help): Ditto.
6643 (vec_extract_evenv4hi): Ditto.
6644 (vec_extract_oddv4hi): Ditto.
6645 (vec_extract_evenv2si): Ditto.
6646 (vec_extract_oddv2si): Ditto.
6647 (vec_extract_evenv2sf): Ditto.
6648 (vec_extract_oddv2sf): Ditto.
6649 (vec_pack_trunc_v4hi: Ditto.
6650 (vec_pack_trunc_v2si): Ditto.
6651 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
6652 (vec_interleave_highv8qi): Ditto.
6654 (vec_extract_oddv8qi): Ditto.
6655 (vec_interleave_lowv4hi): Ditto.
6656 (vec_interleave_highv4hi): Ditto.
6657 (vec_interleave_lowv2si): Ditto.
6658 (vec_interleave_highv2si): Ditto.
6660 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6662 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
6663 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
6664 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
6665 (pa_c_mode_for_suffix): New.
6666 (TARGET_EXPAND_BUILTIN): Define.
6667 (TARGET_C_MODE_FOR_SUFFIX): Define.
6668 (pa_builtins): Define.
6669 (pa_init_builtins): Register __float128 type and init new support
6671 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
6672 * config/pa/quadlib.c (_U_Qfcopysign): New.
6674 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
6677 * explow.c (allocate_dynamic_stack_space): Do not assume more than
6678 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
6681 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6683 PR tree-optimization/47179
6684 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
6685 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
6687 2011-01-18 Richard Guenther <rguenther@suse.de>
6689 PR rtl-optimization/47216
6690 * emit-rtl.c: Include tree-flow.h.
6691 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
6692 of replicating it with different semantics.
6693 * Makefile.in (emit-rtl.o): Adjust.
6695 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6697 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
6698 (cortex_a9_dp): Handle neon types correctly.
6700 2011-01-18 Jakub Jelinek <jakub@redhat.com>
6702 PR rtl-optimization/47299
6703 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
6704 subtarget. Use normal multiplication if both operands are constants.
6705 * expmed.c (expand_widening_mult): Don't try to optimize constant
6706 multiplication if op0 has VOIDmode. Convert op1 constant to mode
6709 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6711 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
6712 spacing after 'e.g.', typos, comma, hyphenation.
6714 2011-01-17 Richard Henderson <rth@redhat.com>
6716 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
6717 (rx_restricted_mem_operand): New.
6718 (rx_shift_operand): Use register_operand.
6719 (rx_source_operand, rx_compare_operand): Likewise.
6720 * config/rx/rx.md (addsi3_flags): New expander.
6721 (adddi3): Rewrite as expander.
6722 (adc_internal, *adc_flags, adddi3_internal): New patterns.
6723 (subsi3_flags): New expander.
6724 (subdi3): Rewrite as expander.
6725 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
6727 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
6728 (rx_init_builtins): Remove sat builtin.
6729 (rx_expand_builtin): Likewise.
6730 * config/rx/rx.md (ssaddsi3): New.
6731 (*sat): Rename from sat. Represent the CC_REG input.
6733 * config/rx/predicates.md (rshift_operator): New.
6734 * config/rx/rx.c (rx_expand_insv): Remove.
6735 * config/rx/rx-protos.h: Update.
6736 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
6737 operand to the canonical position.
6738 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
6739 (*bitclr, *bitclr_in_memory): Similarly.
6740 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
6741 (insv): Retain the zero_extract in the expansion.
6743 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
6744 (bswaphi2, bitinvert, revw): Likewise.
6746 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
6747 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
6748 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
6749 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
6750 (bitset, bitset_in_memory): Likewise.
6751 (bitinvert, bitinvert_in_memory): Likewise.
6752 (bitclr, bitclr_in_memory): Likewise.
6753 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
6754 (rx_strend, rx_cmpstrn): Likewise.
6755 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
6756 (bitop peep2 patterns): Remove.
6758 * config/rx/rx.c (rx_match_ccmode): New.
6759 * config/rx/rx-protos.h: Update.
6760 * config/rx/rx.md (abssi2): Clobber, don't set flags.
6761 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
6762 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
6763 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
6764 (fix_truncsfsi2, floatsisf2): Likewise.
6765 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
6766 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
6767 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
6768 (*subsi3_flags, *xorsi3_flags): New.
6770 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
6772 * config/rx/rx.c (rx_print_operand): Remove workaround for
6773 unsplit comparison operations.
6775 * config/rx/rx.md (movsicc): Split after reload.
6776 (*movsicc): Merge *movsieq and *movsine via match_operator.
6777 (*stcc): New pattern.
6779 * config/rx/rx.c (rx_float_compare_mode): Remove.
6780 * config/rx/rx.h (rx_float_compare_mode): Remove.
6781 * config/rx/rx.md (cstoresi4): Split after reload.
6782 (*sccc): New pattern.
6784 * config/rx/predicates.md (label_ref_operand): New.
6785 (rx_z_comparison_operator): New.
6786 (rx_zs_comparison_operator): New.
6787 (rx_fp_comparison_operator): New.
6788 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
6789 Validate that the flags are set properly for the comparison.
6790 (rx_gen_cond_branch_template): Remove.
6791 (rx_cc_modes_compatible): Remove.
6792 (mode_from_flags): New.
6793 (flags_from_code): Rename from flags_needed_for_conditional.
6794 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
6795 (rx_select_cc_mode): Likewise.
6796 (rx_split_fp_compare): New.
6797 (rx_split_cbranch): New.
6798 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
6799 (*cbranchsi4): Use match_operator and rx_split_cbranch.
6800 (*cbranchsf4): Similarly.
6801 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
6802 match_operator and rx_split_cbranch.
6803 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
6804 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
6805 (*cmpsi): Rename from cmpsi.
6806 (*tstsi): Rename from tstsi.
6807 (*cmpsf): Rename from cmpsf; use CC_Fmode.
6808 (*conditional_branch): Rename from conditional_branch.
6809 (*reveresed_conditional_branch): Remove.
6810 (b<code>): Remove expander.
6811 * config/rx/rx-protos.h: Update.
6813 * config/rx/rx.c (rx_compare_redundant): Remove.
6814 * config/rx/rx.md (cmpsi): Don't use it.
6815 * config/rx/rx-protos.h: Update.
6817 * config/rx/rx-modes.def (CC_F): New mode.
6818 * config/rx/rx.c (rx_select_cc_mode): New.
6819 * config/rx/rx.h (SELECT_CC_MODE): Use it.
6820 * config/rx/rx-protos.h: Update.
6822 2011-01-17 Richard Henderson <rth@redhat.com>
6824 * except.c (dump_eh_tree): Fix stray ; after for statement.
6826 2011-01-17 Richard Guenther <rguenther@suse.de>
6828 PR tree-optimization/47313
6829 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
6830 handling before copying the body. Properly deal with
6831 by-reference result in SSA form.
6833 2011-01-17 Ian Lance Taylor <iant@google.com>
6836 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
6837 (struct_value_alias_set): Don't define.
6838 (sparc_option_override): Don't set sparc_sr_alias_set and
6839 struct_value_alias_set.
6840 (save_or_restore_regs): Use gen_frame_mem rather than calling
6842 (sparc_struct_value_rtx): Likewise.
6844 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
6847 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
6849 (_mm_maskstore_pd): Likewise.
6850 (_mm_maskload_ps): Likewise.
6851 (_mm_maskstore_ps): Likewise.
6852 (_mm256_maskload_pd): Change mask to __m256i.
6853 (_mm256_maskstore_pd): Likewise.
6854 (_mm256_maskload_ps): Likewise.
6855 (_mm256_maskstore_ps): Likewise.
6857 * config/i386/i386-builtin-types.def: Updated.
6858 (ix86_expand_special_args_builtin): Likewise.
6860 * config/i386/i386.c (bdesc_special_args): Update
6861 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
6862 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
6863 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
6864 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
6866 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
6867 Use <avxpermvecmode> on mask register.
6868 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
6870 2011-01-17 Olivier Hainque <hainque@adacore.com>
6871 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6872 Eric Botcazou <ebotcazou@adacore.com>
6875 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
6876 if <= USHRT_MAX in 32-bit mode.
6878 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6880 * doc/install.texi (Configuration, Specific): Wrap long
6881 lines in examples. Allow line wrapping in long options
6882 and URLs where beneficial for PDF output.
6884 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
6886 * config/mips/mips.c (mips_classify_symbol): Don't return
6887 SYMBOL_PC_RELATIVE for nonlocal labels.
6889 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
6891 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
6893 2011-01-15 Jan Hubicka <jh@suse.cz>
6895 PR tree-optimization/47276
6896 * ipa.c (function_and_variable_visibility): Do not try to mark alias
6897 declarations as needed.
6899 2011-01-15 Martin Jambor <mjambor@suse.cz>
6901 * common.opt (fdevirtualize): New flag.
6902 * doc/invoke.texi (Option Summary): Document it.
6903 * opts.c (default_options_table): Add devirtualize flag.
6904 * ipa-prop.c (detect_type_change): Return immediately if
6905 devirtualize flag is not set.
6906 (detect_type_change_ssa): Likewise.
6907 (compute_known_type_jump_func): Likewise.
6908 (ipa_analyze_virtual_call_uses): Likewise.
6910 2011-01-14 Martin Jambor <mjambor@suse.cz>
6912 PR tree-optimization/45934
6913 PR tree-optimization/46302
6914 * ipa-prop.c (type_change_info): New type.
6915 (stmt_may_be_vtbl_ptr_store): New function.
6916 (check_stmt_for_type_change): Likewise.
6917 (detect_type_change): Likewise.
6918 (detect_type_change_ssa): Likewise.
6919 (compute_complex_assign_jump_func): Check for dynamic type change.
6920 (compute_complex_ancestor_jump_func): Likewise.
6921 (compute_known_type_jump_func): Likewise.
6922 (compute_scalar_jump_functions): Likewise.
6923 (ipa_analyze_virtual_call_uses): Likewise.
6924 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
6926 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6928 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
6929 * config/i386/i386.opt (msse5): New Alias.
6931 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6933 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6934 * config/sparc/linux64.h (CC1_SPEC): Likewise.
6935 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6936 * config/sparc/sparc.h (CC1_SPEC): Likewise.
6938 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6940 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
6942 * config/sparc/linux64.h (CC1_SPEC): Likewise.
6943 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6944 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
6945 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
6947 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
6949 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6951 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
6953 2011-01-14 Mike Stump <mikestump@comcast.net>
6955 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
6956 * config/fr30/fr30.md: Likweise
6957 (movsi_push): Likewise.
6958 (movsi_pop): Likewise.
6959 (enter_func): Likewise.
6960 * config/moxie/moxie.md (movsi_push): Likewise.
6961 (movsi_pop): Likewise.
6963 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6965 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
6966 %{no_archive} %{exact_version}.
6967 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
6968 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
6969 %{no_archive} %{exact_version}.
6970 * config/mips/openbsd.h (LINK_SPEC): Likewise.
6971 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
6972 * config/mips/vxworks.h: Likewise.
6974 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6976 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
6978 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6980 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
6981 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
6983 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6985 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
6988 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6990 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
6992 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
6993 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
6995 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
6996 Don't handle -shlib.
6998 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7000 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7001 (CC1_SPEC): Don't handle -profile.
7003 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7005 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7006 * config/mips/mips.h (CC1_SPEC): Likewise.
7008 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7010 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7011 * config/mips/mips.h (CC1_SPEC): Likewise.
7013 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7015 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7016 * config/m32r/linux.h (LINK_SPEC): Likewise.
7017 * config/mips/linux.h (LINK_SPEC): Likewise.
7018 * config/mips/linux64.h (LINK_SPEC): Likewise.
7019 * config/sparc/linux.h (LINK_SPEC): Likewise.
7020 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7021 LINK_SPEC): Likewise.
7022 * config/xtensa/linux.h (LINK_SPEC): Likewise.
7024 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7026 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7028 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7030 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7032 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7033 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7035 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7037 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7039 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7041 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7042 supports -Bstatic/-Bdynamic.
7043 * configure: Regenerate.
7045 2011-01-14 Jan Hubicka <jh@suse.cz>
7046 Jack Howarth <howarth@bromo.med.uc.edu>
7049 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7050 when checking debug_info_level. Test write_symbols instead of
7051 debug_hooks->var_location when setting flag_var_tracking_uninit.
7053 2011-01-14 Richard Guenther <rguenther@suse.de>
7055 PR tree-optimization/47179
7056 * target.def (ref_may_alias_errno): New target hook.
7057 * targhooks.h (default_ref_may_alias_errno): Declare.
7058 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7059 (default_ref_may_alias_errno): New function.
7060 * target.h (struct ao_ref_s): Declare.
7061 * tree-ssa-alias.c: Include target.h.
7062 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7063 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7064 (targhooks.o): Likewise.
7065 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7066 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7068 2011-01-14 Richard Guenther <rguenther@suse.de>
7070 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
7072 2011-01-14 Richard Guenther <rguenther@suse.de>
7074 PR tree-optimization/47280
7075 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7077 (tree_ssa_forward_propagate_single_use_vars): Deal with
7078 CFG changes from associate_plusminus.
7080 2011-01-14 Richard Guenther <rguenther@suse.de>
7084 2011-01-11 Richard Guenther <rguenther@suse.de>
7086 PR tree-optimization/46076
7087 * tree-ssa.c (useless_type_conversion_p): Conversions from
7088 unprototyped to empty argument list function types are useless.
7090 2011-01-14 Richard Guenther <rguenther@suse.de>
7092 PR tree-optimization/47286
7093 * tree-ssa-structalias.c (new_var_info): Register variables are global.
7095 2011-01-14 Martin Jambor <mjambor@suse.cz>
7098 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7100 2011-01-13 Anatoly Sokolov <aesok@post.ru>
7102 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7103 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7104 * config/xtensa/xtensa.c (xtensa_libcall_value,
7105 xtensa_function_value_regno_p): New functions.
7106 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7108 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
7111 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7113 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7114 New function prototype.
7115 * config/i386/winnt.c (i386_pe_assemble_visibility):
7116 Warn only if attribute was specified by user.
7118 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7121 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7123 (floatunsdidf2_fcfidu): Ditto.
7125 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7127 * config/s390/s390.c (print_operand_address): Replace 'error' with
7128 'output_operand_lossage'.
7129 (print_operand): Likewise.
7131 2011-01-13 Jeff Law <law@redhat.com>
7133 PR rtl-optimization/39077
7134 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7135 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7136 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7137 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7138 * gcse.c (prune_insertions_deletions): New function.
7139 (compute_pre_data): Use it.
7141 2011-01-13 Dodji Seketeli <dodji@redhat.com>
7144 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7146 (prune_unused_types_mark): Use it.
7148 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
7150 PR rtl-optimization/45352
7151 * sel-sched.c: Update copyright years.
7152 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7153 in the advancing loop when we have issued issue_rate insns.
7155 2011-01-12 Richard Henderson <rth@redhat.com>
7157 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7158 (TARGET_MD_ASM_CLOBBERS): New.
7160 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7161 (TARGET_DELEGITIMIZE_ADDRESS): New.
7163 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7164 (clzsi2, *bsch): New patterns.
7166 * config/mn10300/mn10300.md (INT): New mode iterator.
7167 (*mov<INT>_clr): New pattern, and peep2 to generate it.
7169 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7170 flag_split_wide_types.
7172 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7173 (mn10300_trampoline_init): Rewrite without a template, an immediate
7174 load and a direct branch.
7175 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7177 2011-01-12 Anatoly Sokolov <aesok@post.ru>
7179 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7180 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7181 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7182 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7184 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
7187 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7190 2011-01-12 Jan Hubicka <jh@suse.cz>
7193 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7194 (PLUGIN_COND_CLOSE): New macro.
7195 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7197 2011-01-12 Richard Guenther <rguenther@suse.de>
7200 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7201 register variables in a MEM_REF.
7203 2011-01-12 Joseph Myers <joseph@codesourcery.com>
7205 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7206 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7207 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7208 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7209 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7210 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7211 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7212 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7213 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7214 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7215 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7216 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7217 * config/gnu-user.h: New. Copied from linux.h.
7218 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7219 GNU_USER_TARGET_STARTFILE_SPEC.
7220 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7221 GNU_USER_TARGET_ENDFILE_SPEC.
7222 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7223 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7224 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7225 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7226 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7227 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7228 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7229 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7230 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7231 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7232 * config/arm/linux-eabi.h (CC1_SPEC): Use
7233 GNU_USER_TARGET_CC1_SPEC.
7234 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7235 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7236 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7237 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7238 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7239 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7240 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7241 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7243 2011-01-12 Richard Guenther <rguenther@suse.de>
7246 * doc/invoke.texi (ffast-math): Document it is turned on
7249 2011-01-12 Jan Hubicka <jh@suse.cz>
7251 PR tree-optimization/47233
7252 * opts.c (common_handle_option): Disable ipa-reference with profile
7255 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7257 * c-parser.c (c_parser_objc_at_property_declaration): Improved
7260 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7262 * c-parser.c (c_lex_one_token): Updated and reindented some
7263 comments. No changes in code.
7265 2011-01-11 Ian Lance Taylor <iant@google.com>
7267 * godump.c (go_output_var): Don't output the variable if there is
7268 already a type with the same name.
7270 2011-01-11 Ian Lance Taylor <iant@google.com>
7272 * godump.c (go_format_type): Don't generate float80.
7274 2011-01-11 Richard Henderson <rth@redhat.com>
7276 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7277 declaration. Rewrite for both speed and size.
7278 (mn10300_address_cost_1): Remove.
7279 (mn10300_register_move_cost): New.
7280 (mn10300_memory_move_cost): New.
7281 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
7282 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
7283 extensions, shifts, BSWAP, CLZ.
7284 (mn10300_wide_const_load_uses_clr): Remove.
7285 (TARGET_REGISTER_MOVE_COST): New.
7286 (TARGET_MEMORY_MOVE_COST): New.
7287 * config/mn10300/mn10300-protos.h: Update.
7288 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7290 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7291 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7292 * config/mn10300/mn10300-protos.h: Update.
7293 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7294 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7295 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7296 (*test_int_bitfield, *test_byte_bitfield): Remove.
7297 (*bit_test, *subreg_bit_test): Remove.
7298 * config/mn10300/predicates.md (const_8bit_operand): Remove.
7300 * config/mn10300/constraints.md ("c"): Rename from "A".
7301 ("A", "D"): New constraint letters.
7302 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7303 (fmssf4, fnmasf4, fnmssf4): Likewise.
7305 * config/mn10300/mn10300.md (isa): New attribute.
7306 (enabled): New attribute.
7308 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7309 (abssf2, negsf2): Define only for hardware fp.
7310 (sqrtsf2): Reformat.
7311 (addsf3, subsf3, mulsf3): Merge expander and insn.
7313 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7314 (DEBUGGER_AUTO_OFFSET): Remove.
7315 (DEBUGGER_ARG_OFFSET): Remove.
7317 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7318 Emit register stores with the same offsets as the hardware.
7319 (mn10300_store_multiple_operation): Don't check that the register
7320 save offsets are monotonic.
7321 * config/mn10300/mn10300-protos.h: Update.
7323 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7325 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7326 in terms of the value on the stack, not the MDR register.
7328 2011-01-11 Jan Hubicka <jh@suse.cz>
7332 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7333 (symbol_alias_set_destroy, symbol_alias_set_contains,
7334 propagate_aliases_backward): Declare.
7335 * lto-streamer-out.c (struct sets): New sturcture.
7336 (trivally_defined_alias): New function.
7337 (output_alias_pair_p): Rewrite.
7338 (output_unreferenced_globals): Fix output of alias pairs.
7339 (produce_symtab): Likewise.
7340 * ipa.c (function_and_variable_visibility): Set weak alias destination
7342 * varasm.c (symbol_alias_set_t): Remove.
7343 (symbol_alias_set_destroy): Export.
7344 (propagate_aliases_forward, propagate_aliases_backward): New functions
7346 (compute_visible_aliases): ... this one; remove.
7347 (trivially_visible_alias): New
7348 (trivially_defined_alias): New.
7349 (remove_unreachable_alias_pairs): Rewrite.
7350 (finish_aliases_1): Reorganize code checking if alias is defined.
7351 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7354 2011-01-11 Richard Guenther <rguenther@suse.de>
7356 PR tree-optimization/46076
7357 * tree-ssa.c (useless_type_conversion_p): Conversions from
7358 unprototyped to empty argument list function types are useless.
7360 2011-01-11 Richard Guenther <rguenther@suse.de>
7363 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7364 volatile MEMs as MEM_READONLY_P.
7366 2011-01-11 Richard Guenther <rguenther@suse.de>
7368 PR tree-optimization/47239
7369 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7371 2011-01-11 Jeff Law <law@redhat.com>
7373 PR tree-optimization/47086
7374 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7375 IVs from statements that might throw.
7377 2011-01-10 Jan Hubicka <jh@suse.cz>
7380 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7382 2011-01-10 Jan Hubicka <jh@suse.cz>
7385 * profile.c (read_profile_edge_counts): Ignore profile inconistency
7386 when correcting profile.
7388 2011-01-10 Jan Hubicka <jh@suse.cz>
7391 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7393 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7394 Restore DECL_FINI_PRIORITY.
7396 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7398 * doc/gimple.texi: Fix quoting of multi-word return values in
7399 @deftypefn statements. Ensure presence of return value. Wrap
7400 overlong @deftypefn lines.
7401 (is_gimple_operand, is_gimple_min_invariant_address): Remove
7402 descriptions of removed functions.
7403 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7404 of multi-word return value in @deftypefn statement.
7406 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7408 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7409 (Conditional Expressions, Logical Operators)
7410 (Statement and operand traversals): Do not indent smallexample
7411 code. Fix duplicate function argument in example.
7413 2011-01-10 Jeff Law <law@redhat.com>
7415 PR tree-optimization/47141
7416 * ipa-split.c (split_function): Handle case where we are
7417 returning a value and the return block has a virtual operand phi.
7419 2011-01-10 Jan Hubicka <jh@suse.cz>
7421 PR tree-optimization/47234
7422 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
7423 (pass_feedback_split_functions): Declare.
7424 * passes.c (init_optimization_passes): Add ipa-split as subpass of
7426 * ipa-split.c (gate_split_functions): Update comments; disable
7427 split-functions for profile_arc_flag and branch_probabilities.
7428 (gate_feedback_split_functions): New function.
7429 (execute_feedback_split_functions): New function.
7430 (pass_feedback_split_functions): New global var.
7432 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
7435 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
7436 calling gimple_call_set_cannot_inline.
7438 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
7440 * config/darwin-sections.def: Remove unused section.
7442 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
7445 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
7447 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
7450 * c-parser.c (c_parser_declaration_or_fndef): Improved
7453 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
7455 * config/i386/winnt.c (i386_pe_start_function): Make sure
7456 to switch back to function's section.
7458 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
7462 * plugin.c: Move include of dlfcn.h from here...
7463 * system.h: ... to here.
7465 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7467 * doc/cpp.texi (C++ Named Operators): Fix markup for header
7469 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
7470 two extra empty pages in PDF output.
7472 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
7475 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
7476 for error recovery purposes behave as if it was not specified so
7477 that the default type is usd.
7479 2011-01-07 Jan Hubicka <jh@suse.cz>
7481 PR tree-optmization/46469
7482 * ipa.c (function_and_variable_visibility): Clear needed flags on
7483 nodes with external decls; handle weakrefs merging correctly.
7485 2011-01-07 Joseph Myers <joseph@codesourcery.com>
7487 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
7490 2011-01-07 Jan Hubicka <jh@suse.cz>
7492 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
7493 and no longer claim that gold is required for linker plugin.
7494 * configure: Regenerate.
7495 * gcc.c (PLUGIN_COND): New macro.
7496 (LINK_COMMAND_SPEC): Use it.
7497 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
7498 * config.in (HAVE_LTO_PLUGIN): New.
7499 * configure.ac (--with-lto-plugin): New parameter; autodetect
7502 2011-01-07 Jan Hubicka <jh@suse.cz>
7504 PR tree-optimization/46367
7505 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
7506 when we can update original.
7507 (cgraph_mark_inline_edge): Sanity check.
7508 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
7510 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7512 * config/spu/spu.h (ASM_COMMENT_START): Define.
7514 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
7518 (SWITCH_KEEP_FOR_GCC): Likewise.
7519 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
7520 (do_spec_1): Handle "%>".
7522 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
7524 2011-01-07 Jakub Jelinek <jakub@redhat.com>
7527 * config/i386/i386.c (ix86_delegitimize_address): If
7528 simplify_gen_subreg fails, return orig_x.
7531 * value-prof.c (gimple_stringop_fixed_value): Handle
7532 lhs of the call properly.
7534 2011-01-07 Jan Hubicka <jh@suse.cz>
7537 * lto-opt.c (lto_reissue_options): Set flag_shlib.
7539 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7541 * target.def (function_switched_text_sections): New hook.
7542 * doc/tm.texi: Regenerated.
7543 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7544 * final.c (default_function_switched_text_sections): New.
7545 (final_scan_insn): Call function_switched_text_sections when a
7546 mid-function section change occurs.
7547 * output.h (default_function_switched_text_sections): Declare.
7548 * config/darwin-protos.h (darwin_function_switched_text_sections):
7550 * config/darwin.c (darwin_function_switched_text_sections): New.
7551 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7553 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7555 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
7556 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
7557 the secondary code fragment when outputting for DWARF == 2.
7559 2011-01-07 Anatoly Sokolov <aesok@post.ru>
7561 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7562 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
7564 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
7565 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7567 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
7570 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
7571 when it is not empty.
7573 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
7576 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
7577 (case ${target}): Add btver1.
7578 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7579 -march=native recognize btver1 processors.
7580 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7581 btver1 def_and_undef
7582 * config/i386/i386.c (struct processor_costs btver1_cost): New
7584 (m_BTVER1): New definition.
7585 (m_AMD_MULTIPLE): Includes m_BTVER1.
7586 (initial_ix86_tune_features): Add btver1 tune.
7587 (processor_target_table): Add btver1 entry.
7588 (static const char *const cpu_names): Add btver1 entry.
7589 (software_prefetching_beneficial_p): Add btver1.
7590 (ix86_option_override_internal): Add btver1 instruction sets.
7591 (ix86_issue_rate): Add btver1.
7592 (ix86_adjust_cost): Add btver1.
7593 * config/i386/i386.h (TARGET_BTVER1): New definition.
7594 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
7595 (enum processor_type): Add PROCESSOR_BTVER1.
7596 * config/i386/i386.md (define_attr "cpu"): Add btver1.
7598 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7601 * config/i386/i386.c (legitimize_tls_address)
7602 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
7603 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
7604 (tls_initial_exec_64_sun): New pattern.
7606 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
7608 * doc/invoke.texi (Overall Options): Improve wording and markup
7609 of the description of -wrapper.
7611 2011-01-06 Joseph Myers <joseph@codesourcery.com>
7613 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
7614 rdynamic, threads): New Driver options.
7616 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7619 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
7620 if coming from .tdata.
7621 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7623 2011-01-06 Jan Hubicka <jh@suse.cz>
7626 * collect2.c (main): Do not enable LTOmode when plugin is active.
7628 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7631 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
7632 --version output if supported.
7633 * configure: Regenerate.
7635 2011-01-06 Joseph Myers <joseph@codesourcery.com>
7637 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
7640 2011-01-06 Jakub Jelinek <jakub@redhat.com>
7643 * c-convert.c (convert): When converting a complex expression
7644 other than COMPLEX_EXPR to a different complex type, ensure
7645 c_save_expr is called instead of save_expr, unless in_late_binary_op.
7646 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
7647 when converting COMPLEX_TYPE.
7649 2011-01-06 Ira Rosen <irar@il.ibm.com>
7651 PR tree-optimization/47139
7652 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
7653 only the last reduction value is used outside the loop. Update
7656 2011-01-05 Joseph Myers <joseph@codesourcery.com>
7658 * config/rtems.opt: New.
7659 * config.gcc (*-*-rtems*): Use rtems.opt.
7661 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
7663 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
7664 processors do not support 3DNow instructions.
7666 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7668 * config/spu/spu.c (spu_option_override): Set parameter
7669 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
7671 2011-01-05 Jan Hubicka <jh@suse.cz>
7673 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
7674 at the command line.
7676 2011-01-05 Martin Jambor <mjambor@suse.cz>
7679 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
7680 deltas on streamed outgoing edges.
7681 (output_node_opt_summary): Output info for outgoing edges only when
7682 the node is in new parameter set.
7683 (output_cgraph_opt_summary): New parameter set, passed to the two
7684 aforementioned functions. Update its forward declaration and its
7687 2011-01-05 Tom Tromey <tromey@redhat.com>
7689 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
7690 operator to c_finish_omp_atomic.
7691 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
7692 (build_unary_op): Update.
7693 (build_modify_expr): Update.
7694 (build_asm_expr): Update.
7696 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7698 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
7699 newly inserted insns.
7701 (spu_emit_branch_hint): Likewise.
7702 (insert_hbrp_for_ilb_runout): Likewise.
7703 (spu_machine_dependent_reorg): Call df_finish_pass after
7704 schedule_insns returns.
7706 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7708 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
7710 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
7712 PR tree-optimization/47005
7713 * tree-sra.c (struct access): Add 'non_addressable' bit.
7714 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
7715 (decide_one_param_reduction): Return 0 if the parameter is passed by
7716 reference and one of the accesses in the group is non_addressable.
7718 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
7720 PR tree-optimization/47056
7721 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
7722 (mark_load): Likewise. Handle FUNCTION_DECL specially.
7723 (mark_store): Likewise. Pass STMT to ipa_record_reference.
7725 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
7727 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
7728 initializer. Skip view conversions from aggregate types.
7730 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
7733 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
7735 2011-01-04 Philipp Thomas <pth@suse.de>
7737 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
7740 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7742 * function.c (thread_prologue_and_epilogue_insns): Do not crash
7743 on empty epilogue sequences.
7745 2011-01-04 Joseph Myers <joseph@codesourcery.com>
7747 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
7748 non-static): New Driver options.
7750 2011-01-04 Jie Zhang <jie@codesourcery.com>
7753 * gcc.c (default_compilers[]): Set combinable field to 0
7754 for all assembly languages.
7756 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
7758 * config/mips/loongson3a.md: New file.
7759 * config/mips/mips.md: Include loongson3a.md.
7760 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
7763 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
7766 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
7767 instead of convert_memory_address_addr_space on the base expression.
7769 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7771 * config/spu/spu.c (spu_option_override): Update error text
7772 for bad -march= / -mtune= values.
7774 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7776 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
7777 if branch-hint optimization will be performed.
7779 2011-01-03 Jakub Jelinek <jakub@redhat.com>
7781 PR tree-optimization/47148
7782 * ipa-split.c (split_function): Convert arguments to
7783 DECL_ARG_TYPE if possible.
7785 PR tree-optimization/47155
7786 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
7789 PR rtl-optimization/47157
7790 * combine.c (try_combine): If undobuf.other_insn becomes
7791 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
7792 and set *new_direct_jump_p too.
7794 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
7796 PR tree-optimization/47021
7797 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
7799 2011-01-03 Jakub Jelinek <jakub@redhat.com>
7801 * gcc.c (process_command): Update copyright notice dates.
7802 * gcov.c (print_version): Likewise.
7803 * gcov-dump.c (print_version): Likewise.
7804 * mips-tfile.c (main): Likewise.
7805 * mips-tdump.c (main): Likewise.
7807 2011-01-03 Martin Jambor <mjambor@suse.cz>
7809 PR tree-optimization/46801
7810 * tree-sra.c (type_internals_preclude_sra_p): Check whether
7811 aggregate fields start at byte boundary instead of the bit-field flag.
7813 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
7816 * gcc.c (main): Revert revision 168407.
7818 2011-01-03 Martin Jambor <mjambor@suse.cz>
7820 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
7822 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7824 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
7825 vector optab to expand vector/scalar shift, update gimple to vector.
7827 2011-01-03 Martin Jambor <mjambor@suse.cz>
7829 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
7832 2011-01-03 Martin Jambor <mjambor@suse.cz>
7834 PR tree-optimization/46984
7835 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
7837 (cgraph_create_indirect_edge): Fixed line length.
7838 (cgraph_indirect_call_info): Declare.
7839 (cgraph_make_edge_direct) Update declaration.
7840 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
7841 (cgraph_create_indirect_edge): Use it.
7842 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
7844 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
7845 the new thunk_delta representation.
7846 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
7848 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
7849 (ipa_read_indirect_edge_info): Likewise.
7850 * lto-cgraph.c (output_edge_opt_summary): New function.
7851 (output_node_opt_summary): Call it on all outgoing edges.
7852 (input_edge_opt_summary): New function.
7853 (input_node_opt_summary): Call it on all outgoing edges.
7855 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
7858 * gcc.c (main): Don't check have_o when settting combine_inputs.
7860 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
7862 * regrename.c: Add general comment describing the pass.
7863 (struct du_head): Remove 'length' field.
7864 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
7865 (regrename_optimize): Do not sort chains. Rework comments, add others.
7866 Force renaming to the preferred class (if any) in the first pass and do
7867 not consider registers that belong to it in the second pass.
7868 (create_new_chain): Do not set 'length' field.
7869 (scan_rtx_reg): Likewise.
7871 2011-01-02 Jakub Jelinek <jakub@redhat.com>
7873 PR tree-optimization/47140
7874 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
7875 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
7878 PR rtl-optimization/47028
7879 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
7880 parm_birth_insn instead of at the beginning of first bb.
7882 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
7884 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
7885 Remove the word "see" before "@pxref".
7886 * doc/rtl.texi: Remove the word "see" before "@pxref".
7888 2011-01-01 Jan Hubicka <jh@suse.cz>
7890 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
7893 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
7896 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
7899 Copyright (C) 2011 Free Software Foundation, Inc.
7901 Copying and distribution of this file, with or without modification,
7902 are permitted in any medium without royalty provided the copyright
7903 notice and this notice are preserved.