1 2012-02-09 Jakub Jelinek <jakub@redhat.com>
3 Backported from mainline
4 2012-01-19 Jakub Jelinek <jakub@redhat.com>
7 * tree-mudflap.c (mf_artificial): New function.
8 (execute_mudflap_function_ops, execute_mudflap_function_decls,
9 mx_register_decls, mudflap_enqueue_decl): Use it.
11 2012-01-05 Jakub Jelinek <jakub@redhat.com>
13 PR rtl-optimization/51767
14 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
15 of jump_block and add an extra edge for degenerated asm gotos.
18 * stmt.c (check_unique_operand_names): Don't ICE during error
19 reporting if i is from labels chain.
22 * profile.c (branch_prob): Split bbs that have exit edge
23 and need a fake entry edge too.
25 2012-01-04 Jakub Jelinek <jakub@redhat.com>
28 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
29 in .debug_loc on the floor.
31 2011-12-15 Jakub Jelinek <jakub@redhat.com>
34 * c-parser.c (c_parser_omp_clause_num_threads,
35 c_parser_omp_clause_schedule): Call mark_exp_read.
38 * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
39 !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
41 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
43 Backport from mainline
44 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
47 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
49 2012-02-09 Andrey Belevantsev <abel@ispras.ru>
51 Backport from mainline
52 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
55 * function.c (instantiate_virtual_regs_in_insn): Use
56 delete_insn_and_edges when removing a wrong asm insn.
58 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
61 * expr.c (get_inner_reference): If there is an offset, add a negative
62 bit position to it (if any).
64 2012-02-07 Kai Tietz <ktietz@redhat.com>
65 Dave Korn <dave.korn.cygwin@gmail.com>
68 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
69 Take care that typinfo gets dllexport-attribute.
71 2012-02-07 Alan Modra <amodra@gmail.com>
74 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
77 2012-02-02 Uros Bizjak <ubizjak@gmail.com>
79 Backport from mainline:
80 2011-11-18 Uros Bizjak <ubizjak@gmail.com>
82 PR tree-optimization/51118
83 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
84 before using TREE_TYPE accessor on expr.
86 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
88 Backport from mainline r183796
89 PR rtl-optimization/51374
90 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
91 to cross other volatile_refs_p insns.
93 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
95 Backport from mainline.
96 2011-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
98 config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true
101 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
103 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
106 2012-01-30 Bin Cheng <bin.cheng@arm.com>
108 Backport from mainline.
109 2012-01-30 Bin Cheng <bin.cheng@arm.com>
112 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
113 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
115 2012-01-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
117 Backport from mainline.
118 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
121 * config/arm/arm.c (arm_load_pic_register): Use
122 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
123 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
124 (arm_pic_static_addr): Likewise.
125 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
126 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
127 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
128 (pic_load_addr_unified): New.
130 2012-01-25 Richard Guenther <rguenther@suse.de>
132 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
133 bases are dereferenced.
135 2012-01-24 Richard Guenther <rguenther@suse.de>
137 Forward-port to branch
138 2010-09-21 Jakub Jelinek <jakub@redhat.com>
141 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
142 op0 isn't sufficiently aligned and there is movmisalignM
143 insn for mode, use it to load op0 into a temporary register.
145 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
147 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
149 2012-01-19 Quentin Neill <quentin.neill@amd.com>
152 * config/i386/driver-i386.c (host_detect_local_cpu): Also check
153 family to distinguish PROCESSOR_ATHLON.
155 2012-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
157 PR tree-optimization/49642
158 * ipa-split.c (forbidden_dominators): New variable.
159 (check_forbidden_calls): New function.
160 (dominated_by_forbidden): Likewise.
161 (consider_split): Check for forbidden dominators.
162 (execute_split_functions): Initialize and free forbidden
163 dominators info; call check_forbidden_calls.
165 2012-01-18 David Edelsohn <dje.gcc@gmail.com>
167 * config/rs6000/rs6000.md (call_value_indirect_aix32): Fix typo
168 in mode of operand[4].
170 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
172 PR rtl-optimization/51821
173 * recog.c (peep2_find_free_register): Determine clobbered registers
176 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
178 Backport from mainline r183129
180 * config/avr/avr.c (avr_encode_section_info): Test for absence of
181 DECL_EXTERNAL when checking for initializers of progmem variables.
183 22012-01-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
185 Backport from mainline
186 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
188 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
190 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
192 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
193 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
195 2012-01-10 Joseph Myers <joseph@codesourcery.com>
199 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
202 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
203 zero extend count after the correction to it is done.
204 (doloop_optimize): Update call to doloop_modify, don't zero extend
207 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
210 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
212 (doloop_optimize): Update call to doloop_modify.
214 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
216 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
218 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
220 * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Check that the
221 purported sigacthandler address isn't null before dereferencing it.
222 (sparc_is_sighandler): Likewise.
224 2012-01-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
226 Backport from mainline
227 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
229 PR rtl-optimization/38644
230 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
231 for epilogue having stack adjustment.
233 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
236 * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove SAVPC and
237 add CFA. Revert back to old code for Solaris 8+ multi-threaded.
238 (sparc_is_sighandler): Likewise.
239 (MD_FALLBACK_FRAME_STATE_FOR): Adjust call to IS_SIGHANDLER.
241 2012-01-06 Eric Botcazou <ebotcazou@adacore.com>
243 Backport from mainline
244 2012-01-06 Arnaud Charlet <charlet@adacore.com>
246 * c-decl.c (ext_block): Moved up.
247 (collect_all_refs, for_each_global_decl): Take ext_block into account.
249 2012-01-06 Richard Sandiford <richard.sandiford@linaro.org>
252 * expr.h (copy_blkmode_to_reg): Declare.
253 * expr.c (copy_blkmode_to_reg): New function.
254 (expand_assignment): Don't expand register RESULT_DECLs before
255 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
256 RESULT_DECL register.
257 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
259 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
261 PR tree-optimization/51315
262 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
263 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
265 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
267 PR tree-optimization/51624
268 * tree-sra.c (build_ref_for_model): When replicating a chain of
269 COMPONENT_REFs, stop as soon as the offset would become negative.
271 2012-01-04 Richard Guenther <rguenther@suse.de>
273 PR tree-optimization/49651
274 * tree-ssa-structalias.c (type_can_have_subvars): New function.
275 (var_can_have_subvars): Use it.
276 (get_constraint_for_1): Only consider subfields if there can be any.
278 2012-01-03 Sandra Loosemore <sandra@codesourcery.com>
280 Backport from mainline:
281 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
283 * doc/invoke.texi (-flto and related options): Copy-edit.
285 2012-01-03 Richard Guenther <rguenther@suse.de>
287 Backport from mainline
288 2011-11-10 Richard Guenther <rguenther@suse.de>
290 PR tree-optimization/51042
291 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
292 self-referential expressions. Refactor code to avoid duplication.
294 2012-01-03 Richard Guenther <rguenther@suse.de>
296 PR tree-optimization/51070
297 * tree-loop-distribution.c (generate_builtin): Do not replace
298 the loop with a builtin if the partition contains statements which
299 results are used outside of the loop.
300 (stmt_has_scalar_dependences_outside_loop): Properly handle calls.
302 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
304 Backport from the mainline
305 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
307 * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
308 in setting options via target #pragma or attribute.
310 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
312 Backport from mainline
313 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
316 * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
317 unlikely_text_section_p. Instead check for being in a code section.
319 2011-12-23 Richard Guenther <rguenther@suse.de>
321 PR rtl-optimization/50396
322 * simplify-rtx.c (simplify_binary_operation_1): Properly
323 guard code that only works for integers.
325 2011-12-22 Doug Kwan <dougkwan@google.com>
327 Backport from mainline
328 2011-03-23 Julian Brown <julian@codesourcery.com>
330 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
331 accesses which are not naturally aligned.
333 2011-11-20 Joey Ye <joey.ye@arm.com>
335 * expr.c (expand_expr_real_1): Correctly handle strict volatile
336 bitfield loads smaller than mode size.
338 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
341 * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
344 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
347 * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
348 weak function on bare-metal EABI targets.
350 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
352 Backport from mainline
353 2011-12-21 Richard Guenther <rguenther@suse.de>
356 * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
357 mode of the pseudo as destination mode. Only assert that
358 is equal to the promoted mode of the decl if it is a REG.
360 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
362 * config/alpha/linux-unwind.h: Update copyright years.
363 (MD_FROB_UPDATE_CONTEXT): New define.
364 (alpha_frob_update_context): New function.
366 2011-12-19 Martin Jambor <mjambor@suse.cz>
368 PR tree-optimization/51583
369 * tree-sra.c (load_assign_lhs_subreplacements): Call
370 force_gimple_operand_gsi when necessary also in case of no
371 corresponding replacement on the RHS.
373 2011-12-16 Eric Botcazou <ebotcazou@adacore.com>
375 * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
376 (frame_blockage): New expander.
377 (frame_blockage<P:mode>): New instruction.
378 * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
379 instructions establishing the frame isn't atomic, emit frame blockage.
381 2011-12-15 H.J. Lu <hongjiu.lu@intel.com>
383 Backport from mainline.
384 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
386 PR rtl-optimization/49720
387 * simplify-rtx.c (simplify_relational_operation_1): Detect
388 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
389 simplifies to (eq/ne x (cst2 - cst1))" case.
391 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
393 Backport from mainline.
394 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
396 * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
398 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
400 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
401 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
402 * lto-streamer-in.c (lto_read_body): Likewise.
403 (lto_input_toplevel_asms): Likewise.
404 * lto-section-in.c (lto_create_simple_input_block): Likewise.
405 * lto-opts.c (lto_read_file_options): Likewise.
406 * ipa-prop.c (ipa_prop_read_section): Likewise.
408 * df.h (DF_NOTE): Fix typo in comment.
410 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
412 * regmove.c (fixup_match_2): Only access call_used_regs with hard
415 2011-12-12 Jakub Jelinek <jakub@redhat.com>
418 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
419 VEC_safe_grow_cleared if idx is smaller than VEC_length.
421 Backported from mainline
422 2011-12-11 Jakub Jelinek <jakub@redhat.com>
424 PR tree-optimization/51485
425 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
428 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
430 PR tree-optimization/50569
431 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
432 in the expression of MODEL instead of just the last one.
434 2011-12-09 Michael Meissner <meissner@the-meissners.org>
436 Backport from mainline
437 2011-12-09 Michael Meissner <meissner@the-meissners.org>
439 PR rtl-optimization/51469
440 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
441 indirect function, mark the symbol as non-local.
443 2011-12-09 Jakub Jelinek <jakub@redhat.com>
445 Backport from mainline
446 2011-12-08 Jakub Jelinek <jakub@redhat.com>
448 PR tree-optimization/51466
449 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
452 2011-11-28 Jakub Jelinek <jakub@redhat.com>
454 PR tree-optimization/50078
455 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
456 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
458 2011-12-09 Kazu Hirata <kazu@codesourcery.com>
460 Backport from mainline:
462 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
465 * config/arm/arm.md (*minmax_arithsi): Always require the else
466 clause in the MINUS case.
468 2011-12-08 Teresa Johnson <tejohnson@google.com>
470 Backport from mainline:
472 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
474 * config/i386/i386.md (*movdi_internal_rex64): Use "!o" constraint
475 instead of "!m" for operand 0, alternative 4.
476 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
478 2011-12-08 Jakub Jelinek <jakub@redhat.com>
480 Backport from mainline
481 2011-12-05 Jakub Jelinek <jakub@redhat.com>
484 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
485 for debug info if scope is file_scope.
488 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
489 relayout_decl instead of layout_decl.
491 2011-12-05 Jakub Jelinek <jakub@redhat.com>
492 Eric Botcazou <ebotcazou@adacore.com>
496 * calls.c (internal_arg_pointer_exp_state): New variable.
497 (internal_arg_pointer_based_exp_1,
498 internal_arg_pointer_exp_scan): New functions.
499 (internal_arg_pointer_based_exp): New function.
500 (mem_overlaps_already_clobbered_arg_p): Use it.
501 (expand_call): Free internal_arg_pointer_exp_state.cache vector
502 and clear internal_arg_pointer_exp_state.scan_start.
504 2011-11-30 Jakub Jelinek <jakub@redhat.com>
506 PR rtl-optimization/48721
507 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
508 reg_pending_barrier to TRUE_BARRIER.
510 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
513 * calls.c (mem_overlaps_already_clobbered_arg_p):
514 Return false if no outgoing arguments have been stored so far.
516 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
518 PR tree-optimization/51315
519 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
520 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
521 MEM_REFs and use get_object_or_type_alignment for them.
522 (build_accesses_from_assign): Adjust for above change.
523 (access_precludes_ipa_sra_p): Likewise.
525 2011-12-06 Martin Jambor <mjambor@suse.cz>
527 Backport from mainline:
529 2011-12-02 Martin Jambor <mjambor@suse.cz>
531 PR tree-optimization/50622
532 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
533 if both lacc and racc are grp_partial_lhs.
535 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
537 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
540 2011-12-06 Alan Modra <amodra@gmail.com>
543 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
544 Do not mark r11 setup as frame-related. Pass correct offset to
545 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
546 arguments. Correct sp_offset. Remove "offset" fudge from
547 in-line rs6000_frame_related call. Rename misleading variable.
548 Fix comments and whitespace. Tidy some expressions.
549 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
550 to r11 in out-of-line case. Correct sp_offset. Pass correct
551 offset to rs6000_emit_savres_rtx. Rename misleading variable.
552 Fix comments and whitespace. Tidy some expressions.
553 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
554 adjustment when !saving_GPRs_inline. Correct register mode
555 used in address calcs.
556 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
557 !restoring_GPRs_inline.
559 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
562 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
563 parameter as long long.
565 2011-12-02 Georg-Johann Lay <avr@gjlay.de>
569 * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
570 Enclose parts using __SP_H__ in !defined (__AVR_HAVE_8BIT_SP__).
572 * config/avr/avr.md (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Set
573 insn condition to !AVR_HAVE_8BIT_SP.
574 * config/avr/avr.c (output_movhi): "clr%B0" instead of "in
575 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
576 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
577 * config/avr/avr-devices.c (avr_mcu_types): ATtiny4313 and
578 AT86RF401 have a 16-bit SP (their manual is bogus).
580 2011-11-25 Richard Sandiford <richard.sandiford@linaro.org>
582 Backport from mainline:
584 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
587 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
588 (cached_dw_loc_list_def): New structure.
589 (cached_dw_loc_list): New typedef.
590 (cached_dw_loc_list_table): New variable.
591 (cached_dw_loc_list_table_hash): New function.
592 (cached_dw_loc_list_table_eq): Likewise.
593 (add_location_or_const_value_attribute): Take a bool cache_p.
594 Cache the list when the parameter is true.
595 (gen_formal_parameter_die): Update caller.
596 (gen_variable_die): Likewise.
597 (dwarf2out_finish): Likewise.
598 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
599 while generating debug info for the decl.
600 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
601 (dwarf2out_init): Initialize cached_dw_loc_list_table.
602 (resolve_addr): Cache the result of resolving a chain of
605 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
608 * i386.c (distance_non_agu_define): Fix insn attr check.
610 2011-11-20 Andreas Tobler <andreast@fgznet.ch>
612 * configure: Regenerate.
614 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
616 PR rtl-optimization/51187
617 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
618 is a barrier between the jump and its target label.
620 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
623 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
624 overlap of src and dest operands.
626 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
629 * configure.ac: Remove ranlib special-casing for Darwin.
630 * configure: Regenerate.
632 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
633 Bernd Schmidt <bernds@coudesourcery.com>
634 Sebastian Huber <sebastian.huber@embedded-brains.de>
637 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
638 the base reg is stored iff compiling for Thumb1.
640 2011-11-13 Iain Sandoe <iains@gcc.gnu.org>
643 Backport from mainline r180523
644 * config/darwin.c (top level): Amend comments concerning LTO output.
645 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
646 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
647 (LTO_NAMES_SECTION): Rename.
648 (darwin_asm_named_section): Record LTO section counts and switches
649 in a vec of darwin_lto_section_e.
650 (darwin_file_start): Remove unused code.
651 (darwin_file_end): Put an LTO section termination label. Handle
652 output of the wrapped LTO sections, index and names table.
654 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
657 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
658 Only expand a symbol ref. into an access when the entity is defined
661 2011-11-10 Jakub Jelinek <jakub@redhat.com>
664 * tree-object-size.c (addr_object_size): Check TREE_CODE of
665 MEM_REF's operand rather than code of the MEM_REF itself.
667 2011-11-07 Alan Modra <amodra@gmail.com>
670 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
673 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
676 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
678 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
680 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
683 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
685 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
687 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
688 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
689 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
691 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
694 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
695 (movsf_insn_no_fpu): Likewise.
696 (movdf_insn_sp32): Likewise.
697 (movdf_insn_sp32_no_fpu): Likewise.
698 (movdf_insn_sp32_v9): Likewise. Remove redundant GY constraint.
699 (movdf_insn_sp32_v9_no_fpu): Likewise.
700 (movdf_insn_sp64): Likewise.
701 (movdf_insn_sp64_no_fpu): Likewise.
702 (movtf_insn_sp32): Likewise.
703 (movtf_insn_sp32_no_fpu): Likewise.
704 (movtf_insn_sp64): Likewise.
705 (movtf_insn_sp64_hq): Likewise.
706 (movtf_insn_sp64_no_fpu): Likewise.
708 2011-11-02 Bernd Schmidt <bernds@codesourcery.com>
710 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
711 NULL for a jump that is a cc0 insn, pick the previous insn for
714 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
716 * config/i386/i386.md (splitters for int-float conversion): Use
717 SUBREG_REG on SUBREGs in splitter constraints.
719 2011-11-01 Julian Brown <julian@codesourcery.com>
721 PR rtl-optimization/47918
722 * reload1.c (set_initial_label_offsets): Use initial offsets
723 for labels on the nonlocal_goto_handler_labels chain.
725 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
728 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol references.
729 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Return false for
730 TLS_MODEL_GLOBAL_DYNAMIC and TLS_MODEL_LOCAL_DYNAMIC symbol references.
732 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
735 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
736 constraints. Change alternative 1 to "x,m,1".
738 2011-10-26 Jakub Jelinek <jakub@redhat.com>
740 * BASE-VER: Set to 4.6.3.
741 * DEV-PHASE: Set to prerelease.
743 2011-10-26 Release Manager
745 * GCC 4.6.2 released.
747 2011-10-25 Kai Tietz <ktietz@redhat.com>
749 * config/i386/mingw32.h (SUBTARGET_FRAME_POINTER_REQUIRED):
750 Use for 32-bit frame-pointer, if setjmp is used.
752 2011-10-24 Jakub Jelinek <jakub@redhat.com>
755 * dwarf2out.c (dwarf2out_source_line): Emit discriminators only if
756 -gdwarf-4 or not -gstrict-dwarf.
758 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
761 Backport from mainline r180385
762 * doc/extend.texi (Declaring Attributes of Functions):
763 Document OS_main and OS_task attributes.
764 (Specifying Attributes of Variables): Move up
765 subsection "AVR Variable Attributes" as of alphabetical order.
767 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
770 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
771 handling and indirect jump/calls on devices > 128k.
773 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
776 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
777 Remove (match_dup 0).
779 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
782 Backport from Mainline r180299.
783 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
784 (__tablejump__): Consistently use EIND for indirect jump/call.
785 (__tablejump_elpm__): Ditto.
787 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
790 Backport from mainline.
791 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
793 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
796 2011-10-19 Jakub Jelinek <jakub@redhat.com>
798 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
799 second argument instead of mode.
802 Backport from mainline
803 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
807 * tree-sra.c (build_ref_for_model): Use the type of the field as
808 the type of the COMPONENT_REF.
810 2011-10-18 Uros Bizjak <ubizjak@gmail.com>
811 Eric Botcazou <ebotcazou@adacore.com>
814 * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Set
815 fs->signal_frame to 1.
817 2011-10-14 Richard Guenther <rguenther@suse.de>
819 Backport from mainline
820 2011-10-14 Richard Guenther <rguenther@suse.de>
822 PR tree-optimization/50723
823 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
825 2011-10-13 Richard Guenther <rguenther@suse.de>
827 PR tree-optimization/50712
828 * ipa-split.c (split_function): Always re-gimplify parameters
829 when they are not gimple vals before passing them. Properly
830 check for type compatibility.
832 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
834 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
835 * config/sparc/sparc.opt (mfix-at697f): New option.
836 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
837 (sparc_reorg): New function.
839 2011-10-12 Steve Ellcey <sje@cup.hp.com>
842 Backport from Mainline 179472.
843 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
844 (gcc_cv_ld_static_option): Ditto.
845 (gcc_cv_ld_dynamic_option): Ditto.
846 * configure: Regenerate.
848 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
850 PR tree-optimization/50189
851 * tree-vrp.c (extract_range_from_assert): Use the type of
852 the variable, not the limit.
854 2011-10-12 Richard Guenther <rguenther@suse.de>
856 PR tree-optimization/50700
857 * tree-object-size.c (addr_object_size): Simplify and treat
858 MEM_REF bases consistently.
860 2011-10-12 Joseph Myers <joseph@codesourcery.com>
863 * convert.c (convert_to_integer): Do not narrow operands of
866 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
869 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
870 (mov<F:mode>cc): Likewise.
872 2011-10-11 Nick Clifton <nickc@redhat.com>
875 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
876 df_get_live_out instead of accessing the bitmaps directly.
877 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
878 df_live_add_problem and df_analyze.
880 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
883 Backport from Mainline r179737.
884 * config/avr/avr-devices.c (avr_mcu_types): Set
885 .data_section_start of atmega164a to 0x100.
887 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
890 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
892 2011-10-06 Jakub Jelinek <jakub@redhat.com>
894 * tree.h (avoid_folding_inline_builtin): New prototype.
895 * builtins.c (avoid_folding_inline_builtin): No longer static.
896 * gimple-fold.c (gimple_fold_builtin): Give up if
897 avoid_folding_inline_builtin returns true.
899 PR tree-optimization/49279
900 * tree-ssa-structalias.c (find_func_aliases): Don't handle
903 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
905 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
906 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
908 2011-10-03 Jakub Jelinek <jakub@redhat.com>
909 Ian Lance Taylor <iant@google.com>
911 * godump.c (go_output_typedef): Support printing enum values that
912 don't fit in a signed HOST_WIDE_INT.
914 2011-09-30 Jakub Jelinek <jakub@redhat.com>
917 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
918 input constraints allow mem and not reg, pass true instead of
919 false as second argument to maybe_fold_reference.
921 2011-09-30 Jakub Jelinek <jakub@redhat.com>
922 Richard Guenther <rguenther@suse.de>
924 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Fix
925 handling of BUILT_IN_STRNCAT.
926 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
927 and BUILT_IN_STRNCAT.
929 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
931 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
933 (remove_duplicate_close_phi): Detect and repair creation of
934 duplicate close-phis for a containing loop.
936 2011-09-26 Richard Guenther <rguenther@suse.de>
938 PR tree-optimization/50472
939 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not fold
942 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
944 PR tree-optimization/50413
945 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
946 a basic block if one of its data-refs can't be analyzed.
948 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
950 PR tree-optimization/50412
951 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
952 accesses that require epilogue loop if vectorizing outer loop.
954 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
957 * config/i386/sse.md (xop_pcmov_<mode>): Change operand 1 predicate
958 to register_operand and operand 2 predicate to nonimmediate_operand.
959 (xop_pcmov_<mode>256): Ditto.
960 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
961 xop_pcmov, force op_true to register. Also, force op_false to
962 register if it doesn't satisfy nonimmediate_operand predicate.
964 2011-09-19 Alan Modra <amodra@gmail.com>
965 Michael Meissner <meissner@linux.vnet.ibm.com>
968 * config/rs6000/rs6000.md (call_indirect_aix32): Do not split the
969 load of the indirect function's TOC from the call to prevent the
970 compiler from moving the load of the new TOC above code that
971 references the current function's TOC.
972 (call_indirect_aix64): Ditto.
973 (call_value_indirect_aix32): Ditto.
974 (call_value_indirect_aix64): Ditto.
975 (call_indirect_nonlocal_aix32_internal): Ditto.
976 (call_indirect_nonlocal_aix32): Ditto.
977 (call_indirect_nonlocal_aix64_internal): Ditto.
978 (call_indirect_nonlocal_aix64): Ditto.
979 (call_value_indirect_nonlocal_aix32_internal): Ditto.
980 (call_value_indirect_nonlocal_aix32): Ditto.
981 (call_value_indirect_nonlocal_aix64_internal): Ditto.
982 (call_value_indirect_nonlocal_aix64): Ditto.
984 2011-09-19 Martin Jambor <mjambor@suse.cz>
987 * ipa-split.c (split_function): Do not change signature if it is
988 not possible or there are attribute types.
990 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
991 Iain Sandoe <developer@sandoe-acoustics.co.uk>
994 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
995 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
997 2011-09-14 Diego Novillo <dnovillo@google.com>
999 * tree-vect-stmts.c (vect_transform_stmt): Remove unused
1000 local variable ORIG_SCALAR_STMT.
1002 2011-09-08 Martin Jambor <mjambor@suse.cz>
1004 Backport from mainline
1005 2011-09-07 Martin Jambor <mjambor@suse.cz>
1007 PR tree-optimization/49911
1008 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1009 enumerations to the corresponding plain integer type.
1011 2011-09-08 Richard Guenther <rguenther@suse.de>
1013 Backport from mainline
1014 2011-07-04 Richard Guenther <rguenther@suse.de>
1016 PR tree-optimization/49518
1017 PR tree-optimization/49628
1018 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
1019 irrelevant data-references.
1021 2011-09-08 Richard Guenther <rguenther@suse.de>
1023 Backport from mainline
1024 2011-08-23 Richard Guenther <rguenther@suse.de>
1026 PR tree-optimization/50162
1027 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1029 2011-09-08 Richard Guenther <rguenther@suse.de>
1031 Backport from mainline
1032 2011-05-05 Michael Matz <matz@suse.de>
1034 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1035 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1036 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1037 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1038 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1039 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1040 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1041 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1042 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1043 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1044 * config/i386/linux.h (ENDFILE_SPEC): Add Ofast.
1045 * config/i386/linux64.h (ENDFILE_SPEC): Add Ofast.
1046 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1047 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1048 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1049 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1051 2011-09-08 Eric Botcazou <ebotcazou@adacore.com>
1052 Iain Sandoe <iains@gcc.gnu.org>
1054 Backport from mainline (restore powerpc-darwin Ada bootstrap).
1055 * config/rs6000/rs6000.c (compute_save_world_info): Test
1056 cfun->has_nonlocal_label to determine if the out-of-line save
1057 world call may be used.
1059 2011-09-08 Jakub Jelinek <jakub@redhat.com>
1062 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1063 code early if TARGET_AVX.
1064 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1066 2011-09-06 Martin Jambor <mjambor@suse.cz>
1069 2011-09-02 Martin Jambor <mjambor@suse.cz>
1071 * ipa-split.c (split_function): Do not skip any arguments if
1072 can_change_signature is set or there are function type attributes.
1074 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
1077 Backport from mainline r178528
1078 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
1079 that contain global register variable.
1081 2011-09-02 Martin Jambor <mjambor@suse.cz>
1084 * ipa-split.c (split_function): Do not skip any arguments if
1085 can_change_signature is set or there are function type attributes.
1087 2011-09-01 Ira Rosen <ira.rosen@linaro.org>
1089 PR tree-optimization/50178
1090 * tree-vect-stmts.c (vectorizable_call): Update the related
1091 pattern statement before deleting the original call.
1092 (vect_transform_stmt): Don't expect the related pattern statement
1093 to match the original statement after transformation.
1095 2011-08-29 Richard Guenther <rguenther@suse.de>
1098 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1100 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1102 * config/i386/sse.md (vec_extract_lo_<mode>): Prevent both
1104 (vec_extract_lo_v16hi): Ditto.
1105 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1106 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1109 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1112 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1113 when all outputs are unused.
1114 (sse4_2_pcmpistr): Ditto.
1116 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1119 * c-typeck.c (c_process_expr_stmt): Skip over nops and
1120 call mark_exp_read even if exprv is ADDR_EXPR.
1122 2011-08-20 Jakub Jelinek <jakub@redhat.com>
1124 PR tree-optimization/48739
1125 * tree-ssa.c: Include cfgloop.h.
1126 (execute_update_addresses_taken): When updating ssa, if in
1127 loop closed SSA form, call rewrite_into_loop_closed_ssa instead of
1129 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1131 2011-08-18 Jakub Jelinek <jakub@redhat.com>
1134 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1135 on the result before returning it.
1137 2011-08-16 Liang Wang <lwang1@marvell.com>
1139 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1140 ggc_alloc_zone_vec_rtvec_def.
1142 2011-08-12 Nick Clifton <nickc@redhat.com>
1144 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi
1146 * doc/md.texi (cmpstrn): Note that the comparison stops if both
1147 fetched bytes are zero.
1149 (cmpmem): Note that the comparison does not stop if both of the
1150 fetched bytes are zero.
1152 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
1154 * config/rx/rx.md (movsicc): Allow register to register
1156 (*movsicc): Likewise.
1157 (*stcc): Restrict this pattern to EQ and NE compares.
1158 (*stcc_reg): New pattern. Works for any comparison but only for
1161 2011-08-10 DJ Delorie <dj@redhat.com>
1163 * expr.c (expand_expr_addr_expr_1): Detect a user request for
1164 a local frame in a naked function, and produce a suitable
1165 error for that specific case.
1167 2011-08-09 Martin Jambor <mjambor@suse.cz>
1170 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1173 2011-08-09 Nick Clifton <nickc@redhat.com>
1175 * config/rx/rx.md: Disable extender peepholes at -O3.
1177 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
1180 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1181 (TARGET_INSTANTIATE_DECLS): New define.
1183 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1185 Backport from mainline
1186 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1188 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1190 * doc/invoke.texi: Document core-avx-i.
1192 2011-08-03 Jakub Jelinek <jakub@redhat.com>
1194 PR tree-optimization/49948
1195 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1197 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
1199 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
1200 (stack_protect_test): The pattern compares ptr_mode value.
1202 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
1205 * config/i386/i386.md (strset): Do not expand strset_singleop
1206 when %eax or $edi are fixed.
1207 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
1208 (*strsetsi_1): Ditto.
1209 (*strsethi_1): Ditto.
1210 (*strsetqi_1): Ditto.
1211 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
1212 (*rep_stossi): Ditto.
1213 (*rep_stosqi): Ditto.
1214 (*strlenqi_1): Ditto.
1215 (cmpstrnsi): Also fail when %ecx is fixed.
1216 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
1217 (*cmpstrnqi_1): Ditto.
1218 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
1219 (*strmovsi_1): Ditto.
1220 (*strmovhi_1): Ditto.
1221 (*strmovqi_1): Ditto.
1222 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
1223 (*rep_movsi): Ditto.
1224 (*rep_movqi): Ditto.
1226 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
1229 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
1230 Disable instruction scheduling for non-ColdFire targets.
1231 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1233 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1237 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
1238 in nested parallel and outer is a gimple_reg, mark it as addressable
1239 and set its bit in task_shared_vars bitmap too.
1241 2011-07-29 Wei Guozhi <carrot@google.com>
1243 Backport from mainline
1244 2011-07-29 Wei Guozhi <carrot@google.com>
1246 PR rtl-optimization/49799
1247 * combine.c (make_compound_operation): Check if the bit field is valid
1248 before change it to bit field extraction.
1250 2011-07-28 Jakub Jelinek <jakub@redhat.com>
1253 * dwarf2out.c (size_of_die, value_format, output_die): Use
1254 DW_FORM_udata instead of DW_FORM_data[48] for
1255 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
1257 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1259 Backport from mainline
1260 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1263 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
1265 2011-07-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1267 Backport from mainline:
1268 2011-07-26 Martin Jambor <mjambor@suse.cz>
1270 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1271 return false for invariants.
1273 2011-07-27 Jakub Jelinek <jakub@redhat.com>
1276 * config/i386/i386.md (*call_pop_1_vzeroupper, *call_pop_1,
1277 *sibcall_pop_1_vzeroupper, *sibcall_pop_1, *call_1_vzeroupper,
1278 *call_1, *sibcall_1_vzeroupper, *sibcall_1, *call_1_rex64_vzeroupper,
1279 *call_1_rex64, *call_1_rex64_ms_sysv_vzeroupper,
1280 *call_1_rex64_ms_sysv, *sibcall_1_rex64_vzeroupper,
1281 *sibcall_1_rex64, *call_value_pop_1_vzeroupper,
1282 *call_value_pop_1, *sibcall_value_pop_1_vzeroupper,
1283 *sibcall_value_pop_1, *call_value_1_vzeroupper,
1284 *call_value_1, *sibcall_value_1_vzeroupper,
1285 *sibcall_value_1, *call_value_1_rex64_vzeroupper,
1286 *call_value_1_rex64, *call_value_1_rex64_ms_sysv_vzeroupper,
1287 *call_value_1_rex64_ms_sysv, *sibcall_value_1_rex64_vzeroupper,
1288 *sibcall_value_1_rex64): Use z constraint instead of s constraint.
1290 Backport from mainline
1291 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1293 * config/i386/constraints.md (z): New constraint.
1295 2011-07-25 Andrew Pinski <apinski@cavium.com>
1298 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
1299 TREE_THIS_NOTRAP into the inner most MEM_REF.
1300 Always copy TREE_THIS_VOLATILE.
1301 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
1302 arguments are not volatile references.
1304 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
1307 Backport from mainline r176756
1308 2011-07-25 Georg-Johann Lay
1309 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
1310 shift counter for x << x and x >> x shifts.
1312 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
1314 * config.gcc (x86_64-*-linux*): Set
1315 default_gnu_indirect_function to yes.
1317 2011-07-22 Richard Guenther <rguenther@suse.de>
1319 PR tree-optimization/45819
1320 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1321 preserve volatile and notrap flags.
1323 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
1325 Backport from mainline
1326 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
1329 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
1330 general register to memory for !TARGET_INTER_UNIT_MOVES.
1332 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1334 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
1335 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
1337 2011-07-19 Jakub Jelinek <jakub@redhat.com>
1339 PR tree-optimization/49768
1340 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Return NULL
1341 if offset is smaller than bitoffset, but offset+size is bigger
1344 2011-07-18 Jakub Jelinek <jakub@redhat.com>
1347 * tree.c (build_common_builtin_nodes): Register
1348 __builtin_return_address, __cyg_profile_func_enter
1349 and __cyg_profile_func_exit.
1351 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353 * config.gcc: Obsolete i[3456x]86-*-netware*.
1355 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1359 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1361 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1364 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
1367 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1369 2011-07-16 Eric Botcazou <ebotcazou@adacore.com>
1371 PR tree-optimization/49725
1372 Backport from mainline
1373 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1375 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1376 a zero minimum index only if it is redundant.
1378 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1381 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1383 2011-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1385 Backport from mainline:
1386 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1388 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1389 (asm_file_start): Remove.
1390 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1391 free_bb_for_insn around code that modifies insns before
1392 restarting df analysis.
1394 2011-07-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1396 Backport from mainline:
1397 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1400 * config/sol2.h (LIB_SPEC): Simplify.
1401 Move LIB_THREAD_LDFLAGS_SPEC ...
1402 (LINK_SPEC): ... here.
1404 2011-07-14 James Greenhalgh <james.greenhalgh@arm.com>
1406 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
1408 2011-07-14 Andrew Pinski <pinskia@gmail.com>
1411 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1412 Use fold_build2_loc instead of build2.
1413 Use the correct type for the new tree.
1415 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
1418 Backport from mainline r176276
1419 2011-07-14 Georg-Johann Lay
1420 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1422 (*rotw<mode>): Use const_int_operand for operand2.
1423 Use match_scatch for operand3.
1424 (*rotb<mode>): Ditto
1425 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1427 2011-07-14 Richard Guenther <rguenther@suse.de>
1429 PR tree-optimization/49651
1430 * tree-ssa-structalias.c (get_constraint_for_1): Properly
1431 handle dereferences with subvariables.
1433 2011-07-11 Martin Jambor <mjambor@suse.cz>
1435 PR tree-optimization/49094
1436 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1437 (build_accesses_from_assign): Use it.
1439 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1442 Backport from mainline r176141
1443 2011-07-11 Georg-Johann Lay
1444 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1445 offsets 1..5 set cc0 in a usable way.
1447 2011-07-08 Jakub Jelinek <jakub@redhat.com>
1450 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1451 CONST0_RTX (dest_mode) instead of const0_rtx as second operand
1453 * config/rs6000/vector.md (vector_select_<mode>,
1454 vector_select_<mode>_uns): Change second operand of NE to
1455 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1456 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1457 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1458 zero_constant of the corresponding vector mode.
1459 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1462 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1465 Backport from mainline SVN 176053.
1466 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1467 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1468 In particular, allow 8-bit values in r28 and r29.
1469 (avr_hard_regno_scratch_ok): Disallow any register that might be
1470 part of the frame pointer.
1471 (avr_hard_regno_rename_ok): Same.
1472 (avr_legitimate_address_p): Don't allow SUBREGs.
1474 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1477 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1478 MASK_V8PLUS, remove commented out flag and reorder.
1480 Backport from mainline
1481 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1483 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1484 (TARGET_64BIT_DEFAULT): Define.
1485 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1487 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1489 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1492 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1493 one non-complex and one complex argument, call c_save_expr on both
1497 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1498 referencing debug insns that have been reset.
1499 (dead_debug_insert_before): Don't assert reg is non-NULL,
1500 instead return immediately if it is NULL.
1503 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
1504 operands and last COMPONENT_REF operand call gimplify_expr on it
1507 2011-07-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1509 Backport from mainline.
1510 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1513 * config/arm/predicates.md (add_operator): New.
1514 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
1517 2011-07-05 Jakub Jelinek <jakub@redhat.com>
1519 PR tree-optimization/49618
1520 * tree-eh.c (tree_could_trap_p) <case FUNCTION_DECL, case VAR_DECL>:
1521 For DECL_WEAK decls return true.
1523 2011-07-04 Jakub Jelinek <jakub@redhat.com>
1525 PR rtl-optimization/49619
1526 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
1527 pass VOIDmode as op0_mode to recursive call.
1529 PR rtl-optimization/49472
1530 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
1531 negating MULT, negate the second operand instead of first.
1532 (simplify_binary_operation_1) <case MULT>: If one operand is
1533 a NEG and the other is MULT, don't attempt to optimize by
1534 negation of the MULT operand if it only moves the NEG operation
1537 Backported from mainline
1538 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1541 * dwarf2out.c (native_encode_initializer): Decrement count in each
1544 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1546 Backport from mainline
1547 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1550 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
1551 instead of TREE_READONLY.
1553 2011-07-04 Richard Guenther <rguenther@suse.de>
1555 PR tree-optimization/49615
1556 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
1557 basic-block index check.
1559 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1561 PR tree-optimization/49572
1562 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1563 type of the RHS instead of that of the LHS for the expression type.
1565 2011-06-30 Georg-Johann Lay <avr@gjlay.de>
1567 Backport from mainline
1569 (avr_section_type_flags): For data in ".progmem.data", remove
1570 section flag SECTION_WRITE.
1572 2011-06-30 Georg-Johann Lay <avr@gjlay.de>
1574 Backport from mainline
1576 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1577 about uninitialized data attributed 'progmem' from here...
1578 (avr_encode_section_info): ...to this new function.
1579 (TARGET_ENCODE_SECTION_INFO): New define.
1581 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1583 Backport from mainline
1584 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1586 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1588 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1590 (TARGET_AVX128_OPTIMAL): New definition.
1591 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1592 X86_TUNE_AVX128_OPTIMAL entry.
1593 (ix86_option_override_internal): Enable the generation
1594 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1595 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1596 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1598 2011-06-29 Harsha Jagasia <harsha.jagasia@amd.com>
1600 Backport from mainline
1601 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1603 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1604 * config/i386/sse.md: Add n to negated FMA pattern names.
1606 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1608 PR tree-optimization/49539
1609 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1610 names by means of stmt_references_abnormal_ssa_name.
1611 (associate_plusminus): Call can_propagate_from before propagating
1612 from definition statements.
1614 2011-06-29 Martin Jambor <mjambor@suse.cz>
1616 Backport from mainline
1617 2011-06-24 Martin Jambor <mjambor@suse.cz>
1619 PR tree-optimizations/49516
1620 * tree-sra.c (sra_modify_assign): Choose the safe path for
1621 aggregate copies if we also did scalar replacements.
1623 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1625 Backport from mainline
1626 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1629 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1630 (avx256_split_unaligned_store): New definition.
1631 (ix86_option_override_internal): Enable avx256 unaligned load/store
1632 splitting only when avx256_split_unaligned_load/store is set.
1634 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1636 Backport from mainline
1637 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1639 * config/i386/i386.c (flag_opts): Fix a typo in
1640 -mavx256-split-unaligned-store.
1642 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1644 Backport from mainline
1645 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1647 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1648 unaligned 256bit load/store.
1649 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1650 (*avx_movdqu<avxmodesuffix>): Likewise.
1652 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1654 Backport from mainline
1655 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1657 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1658 and -mavx256-split-unaligned-store.
1659 (ix86_option_override_internal): Split 32-byte AVX unaligned
1660 load/store by default.
1661 (ix86_avx256_split_vector_move_misalign): New.
1662 (ix86_expand_vector_move_misalign): Use it.
1664 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1665 -mavx256-split-unaligned-store.
1667 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1668 256bit load/store. Generate unaligned store on misaligned memory
1670 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1672 (*avx_movdqu<avxmodesuffix>): Likewise.
1674 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1675 -mavx256-split-unaligned-store.
1677 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1679 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1681 2011-06-28 Andrey Belevantsev <abel@ispras.ru>
1683 Backport from mainline
1684 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1686 PR rtl-optimization/49014
1687 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1689 2011-06-28 Alexander Monakov <amonakov@ispras.ru>
1691 Backport from mainline
1692 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1695 * cfgloop.h (loop_has_exit_edges): New helper.
1696 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1698 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1699 that have no exit edges.
1701 2011-06-28 Iain Sandoe <iains@gcc.gnu.org>
1704 * config/darwin.c (darwin_mergeable_string_section): Place string
1705 constants in '.cstring' rather than '.const' when CF/NSStrings are
1708 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1710 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1711 forward scan as well.
1713 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1715 * BASE-VER: Set to 4.6.2.
1716 * DEV-PHASE: Set to prerelease.
1718 2011-06-27 Release Manager
1720 * GCC 4.6.1 released.
1722 2011-06-21 Alan Modra <amodra@gmail.com>
1724 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New func.
1725 (TARGET_CANNOT_FORCE_CONST_MEM): Update definition.
1727 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1729 Backport from mainline.
1730 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1733 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1734 correctly for the case with Quad vectors.
1736 2011-06-20 Alan Modra <amodra@gmail.com>
1738 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1739 of toc-relative address in CONST.
1740 (rs6000_delegitimize_address): Recognize changed address.
1741 (rs6000_legitimize_reload_address): Likewise.
1742 (rs6000_emit_move): Don't force these constants to memory.
1743 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1744 toc-relative address in CONST.
1745 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1746 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1748 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1751 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1752 last_arg_constant and last argument doesn't match its predicate,
1753 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1754 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1755 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1756 spelling of error message.
1757 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1758 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1759 const_0_to_255_operand instead of const_int_operand.
1761 2011-06-17 Richard Henderson <rth@redhat.com>
1763 Backport from mainline
1764 2011-03-22 Richard Henderson <rth@redhat.com>
1766 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1768 2011-06-17 Richard Guenther <rguenther@suse.de>
1770 Backport from mainline
1771 2011-05-23 Richard Guenther <rguenther@suse.de>
1773 PR tree-optimization/49115
1774 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1775 is not necessarily carried out, do not claim it kills the ref.
1776 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1778 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1780 Backport from mainline
1781 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1783 PR rtl-optimization/48542
1784 * reload.c (find_equiv_reg): Stop looking when finding a
1786 * reload1.c (reload_as_needed): Invalidate all reload
1787 registers when crossing a setjmp-type call.
1789 2011-06-16 Kaz Kojima <kkojima@gcc.gnu.org>
1791 Backport form main line
1792 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1795 * config/sh/sh.md (UNSPEC_CHKADD): New.
1796 (chk_guard_add): New define_insn_and_split.
1797 (symGOT_load): Use chk_guard_add instead of blockage.
1799 2011-06-16 Martin Jambor <mjambor@suse.cz>
1801 Backported from mainline
1802 2011-06-15 Martin Jambor <mjambor@suse.cz>
1804 PR tree-optimization/48613
1805 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1806 ipa_node_params_vector is NULL.
1808 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1810 PR tree-optimization/49419
1811 * tree-vrp.c (execute_vrp): Call init_range_assertions
1812 before estimate_numbers_of_iterations, call
1813 free_number_of_iterations_estimates before calling
1814 remove_range_assertions.
1816 Backported from mainline
1817 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1820 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
1821 with a set of similar patterns, where the MATCH_OPERAND for the
1822 function argument is replaced with individual references to hardware
1824 (save_fpregs_<mode>): Ditto
1825 (restore_gpregs_<mode>): Ditto
1826 (return_and_restore_gpregs_<mode>): Ditto
1827 (return_and_restore_fpregs_<mode>): Ditto
1828 (return_and_restore_fpregs_aix_<mode>): Ditto
1830 2011-06-14 Richard Henderson <rth@redhat.com>
1833 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1834 (based_loc_descr): Assert it's true.
1835 (compute_frame_pointer_to_fb_displacement): Set it,
1836 rather than aborting immediately.
1838 2011-06-14 Richard Henderson <rth@redhat.com>
1840 Backport from mainline
1841 2011-03-22 Richard Henderson <rth@redhat.com>
1843 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1844 (avr_incoming_return_addr_rtx): New.
1845 (emit_push_byte): New.
1846 (expand_prologue): Use it. Remove incorrect dwarf annotation for
1847 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
1848 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
1849 (emit_pop_byte): New.
1850 (expand_epilogue): Use it. Pop frame pointer by bytes.
1851 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1852 (INCOMING_RETURN_ADDR_RTX): New.
1853 (INCOMING_FRAME_SP_OFFSET): New.
1854 (ARG_POINTER_CFA_OFFSET): New.
1855 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1856 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1859 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1862 * tree.h (DECL_NONSHAREABLE): Define.
1863 (struct tree_decl_common): Change decl_common_unused to
1864 decl_nonshareable_flag.
1865 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1866 Ignore vars with DECL_NONSHAREABLE bit set.
1867 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1868 on stores to automatic aggregate vars.
1870 PR rtl-optimization/49390
1872 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1874 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1877 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1879 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1880 (*vec_dupv2df): Rename from vec_dupv2df.
1881 (vec_dupv2df): New expander.
1883 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1885 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1887 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1889 Backport from mainline
1890 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1892 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1893 unknown Intel family 0x6 CPUs.
1895 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1897 Backport from mainline
1898 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1901 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1902 needed when original operands are used for msw_skip comparison.
1904 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1906 PR gcov-profile/49299
1907 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1909 2011-06-06 Pat Haugen <pthaugen@us.ibm.com>
1911 Backport from mainline
1912 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1914 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1917 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1920 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1921 if stmt folded into nothing.
1922 * tree-inline.c (fold_marked_statements): If a builtin at the
1923 end of a bb folded into nothing, just update cgraph edges
1924 and move to next bb.
1925 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1926 to be NULL. Don't compute count and frequency if new_call is NULL.
1928 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1930 * longlong.h (smul_ppmm): The resulting register pair contains the
1931 higher order word first.
1933 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1935 PR tree-optimization/49243
1936 * calls.c (setjmp_call_p): Also check if fndecl has the
1937 returns_twice attribute.
1939 2011-06-06 Richard Guenther <rguenther@suse.de>
1941 PR tree-optimization/48702
1942 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1943 only when we know the base address is within bounds.
1944 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1945 assume the base address of TARGET_MEM_REFs is in bounds.
1946 (indirect_refs_may_alias_p): Fix TARGET_MEM_REF without index tests.
1948 Backport from mainline
1949 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1951 PR rtl-optimization/49235
1952 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1953 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1955 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1957 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1958 EH return when delayed branches are disabled.
1960 2011-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
1962 Backport from mainline
1963 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1966 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1967 part of the second operand is 0.
1969 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1972 * target.def (delay_sched2, delay_vartrack): New.
1973 * doc/tm.texi.in: Update.
1974 * doc/tm.texi: Rebuild.
1975 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1976 * var-tracking.c (gate_handle_var_tracking): Likewise.
1977 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1978 (bfin_flag_var_tracking): Drop.
1979 (output_file_start): Don't save and override flag_var_tracking.
1980 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1981 (bfin_reorg): Test original variables.
1982 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1983 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1984 (ia64_flag_var_tracking): Drop.
1985 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1986 (ia64_file_start): Don't save and override flag_var_tracking.
1987 (ia64_override_options_after_change): Ditto
1988 flag_schedule_insns_after_reload.
1989 (ia64_reorg): Test original variables.
1990 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1991 (picochip_flag_var_tracking): Drop.
1992 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1993 (picochip_option_override): Don't save and override
1994 flag_schedule_insns_after_reload.
1995 (picochip_asm_file_start): Ditto flag_var_tracking.
1996 (picochip_reorg): Test original variables.
1997 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1998 (TARGET_DELAY_VARTRACK): Define.
1999 (spu_var_tracking): New.
2000 (spu_machine_dependent_reorg): Call it.
2001 (asm_file_start): Don't save and override flag_var_tracking.
2003 2011-06-04 Ira Rosen <ira.rosen@linaro.org>
2005 PR tree-optimization/49038
2006 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2007 Ensure at least one epilogue iteration if required by data
2009 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2010 to mark loops that require peeling for gaps.
2011 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2012 (vect_get_known_peeling_cost): Take peeling for gaps into
2014 (vect_transform_loop): Generate epilogue if required by data
2016 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2017 loop as requiring an epilogue if there are gaps in the end of
2020 2011-06-02 Ira Rosen <ira.rosen@linaro.org>
2022 PR tree-optimization/49093
2023 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2026 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2028 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2029 (fma4_fmaddsub): Likewise
2031 2011-05-31 Richard Guenther <rguenther@suse.de>
2033 Backport from mainline
2034 2011-05-19 Richard Guenther <rguenther@suse.de>
2037 * tree-object-size.c (addr_object_size): If the pointed-to
2038 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2040 2011-05-31 Richard Guenther <rguenther@suse.de>
2042 Backport from mainline
2043 2011-05-11 Richard Guenther <rguenther@suse.de>
2046 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2048 2011-05-30 Richard Guenther <rguenther@suse.de>
2050 PR tree-optimization/49218
2051 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2054 2011-05-30 Georg-Johann Lay <avr@gjlay.de>
2057 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors):
2058 Don't use r20 around calls of __tablejump_elpm__
2060 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2063 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2066 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2069 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2070 recurse_p argument. Only follow register copies if it is set,
2071 and prevent mips_find_pic_call_symbol from recursing.
2072 (mips_find_pic_call_symbol): Add a recurse_p argument.
2073 Pass it to mips_pic_call_symbol_from_set.
2074 (mips_annotate_pic_calls): Update accordingly.
2076 2011-05-29 Richard Guenther <rguenther@suse.de>
2078 PR tree-optimization/49217
2079 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2081 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2083 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2084 moves expensive on Power7 also.
2086 2011-05-26 Georg-Johann Lay <avr@gjlay.de>
2089 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2090 alone. Error if non-const data has attribute progmem.
2092 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2095 * gimplify.c (shortcut_cond_r): Don't special case
2096 COND_EXPRs if they have void type on one of their arms.
2098 PR tree-optimization/49161
2099 * tree-vrp.c (struct case_info): New type.
2100 (compare_case_labels): Sort case_info structs instead of
2101 trees, and not primarily by CASE_LABEL uids but by
2102 label_for_block indexes.
2103 (find_switch_asserts): Put case labels into struct case_info
2104 array instead of TREE_VEC, adjust sorting, compare label_for_block
2105 values instead of CASE_LABELs.
2107 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2110 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2112 2011-05-18 Jan Hubicka <jh@suse.cz>
2114 PR tree-optimization/44897
2115 * ipa-inline.c (cgraph_decide_recursive_inlining): Do not divide
2116 by zero for insane profiles.
2118 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2120 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2121 force flag_ira_share_save_slots to 0.
2123 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2126 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2128 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2130 Backport from mainline
2131 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2134 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2135 add -mno-XXX. Handle FMA.
2137 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2140 * fold-const.c (constant_boolean_node): If type is non-NULL,
2141 use build_int_cst_type instead of build_int_cst.
2144 * dbxout.c: Include cgraph.h.
2145 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2146 and without value expr, return NULL if no varpool node exists for
2147 it or if it is not needed.
2148 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2151 * c-decl.c (start_decl): Convert expr to void_type_node.
2154 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2155 failed and the comparison has a single bit signed type, use
2156 constm1_rtx instead of const1_rtx for true value.
2157 (do_store_flag): If ops->type is single bit signed type, disable
2158 signel bit test optimization and pass -1 instead of 1 as last
2159 parameter to emit_store_flag_force.
2161 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2163 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2164 (sparc-*-rtems*): Likewise.
2165 (sparc64-*-elf*): Likewise.
2166 (sparc64-*-rtems*): Likewise.
2167 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2168 * config/sparc/t-crtin: New file.
2169 * config/sparc/t-sol2 (crti.o): Delete rule.
2171 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2172 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2173 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2174 (ENDFILE_SPEC): Add crtn.o.
2176 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2179 * config/i386/cpuid.h (bit_MMXEXT): New define.
2181 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2184 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2185 only after deciding which mode to use.
2187 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2189 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2192 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2194 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2195 false if there are call-saved registers here...
2196 (sparc_can_use_return_insn_p): ...but here instead.
2197 (save_or_restore_regs): Fix thinko.
2198 (sparc_expand_prologue): Use current_function_is_leaf.
2199 (sparc_frame_pointer_required): Likewise.
2201 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2204 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2205 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2207 2011-05-20 Richard Guenther <rguenther@suse.de>
2209 PR tree-optimization/49079
2210 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2211 MEM_REFs correctly for the trailing array access detection.
2212 Special case constants the same way as decls for overall size
2215 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2217 PR tree-optimization/49073
2218 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return
2219 NULL if PHI argument is SSA_NAME, whose def_stmt is dominated
2221 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2223 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2225 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2226 when TARGET_RDRND is active.
2227 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2228 Generate dummy SImode target register when target is NULL.
2230 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2232 Backport from mainline
2233 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2236 * config/i386/sse.md (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>):
2237 Properly handle load cast.
2239 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2241 PR tree-optimization/49039
2242 * tree-vrp.c (extract_range_from_binary_expr): For
2243 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2244 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2246 2011-05-18 Richard Guenther <rguenther@suse.de>
2248 PR tree-optimization/49018
2249 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2250 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2251 gimple_has_side_effects.
2253 2011-05-18 Richard Guenther <rguenther@suse.de>
2255 Backport from mainline
2256 2011-04-19 Richard Guenther <rguenther@suse.de>
2259 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2262 2011-04-21 Richard Guenther <rguenther@suse.de>
2265 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
2268 2011-05-18 Richard Guenther <rguenther@suse.de>
2270 Backport from mainline
2271 2011-05-12 Richard Guenther <rguenther@suse.de>
2273 PR tree-optimization/48172
2274 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2275 the number of iterations from the segment size calculation.
2276 (vect_create_cond_for_alias_checks): Adjust.
2278 2011-05-13 Richard Guenther <rguenther@suse.de>
2280 PR tree-optimization/48172
2281 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2282 multiplying by number of iterations for equal step.
2283 (vect_create_cond_for_alias_checks): Likewise.
2285 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2287 PR tree-optimization/49000
2288 * tree-ssa.c (execute_update_addresses_taken): Call
2289 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2290 be rewritten and decl has been marked for renaming, reset
2293 2011-05-17 Nick Clifton <nickc@redhat.com>
2295 Import these patches from the mainline:
2297 2011-05-17 Nick Clifton <nickc@redhat.com>
2299 * config/rx/rx.c (rx_memory_move_cost): Include cost of register moves.
2301 * config/rx/rx.md: Add peephole to remove redundant extensions
2303 (bitset_in_memory): Use rx_restricted_mem_operand.
2304 (bitinvert_in_memory): Likewise.
2305 (bitclr_in_memory): Likewise.
2307 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2308 Nick Clifton <nickc@redhat.com>
2310 * config/rx/rx.md: Add peepholes to match a register move followed
2311 by a comparison of the moved register. Replace these with an
2312 addition of zero that does both actions in one instruction.
2314 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2317 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2318 predicate to allow CONST_INT.
2320 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2322 PR preprocessor/48677
2323 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2324 from decoded_options[0], not from itself.
2326 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2328 * config/i386/i386.md (*movxf_internal): Disable CONST_DOUBLE
2329 optimization for CM_MEDIUM and CM_LARGE code models. Fix usage
2330 of standard_80387_constant_p.
2331 (*movxf_internal_nointeger): Ditto.
2332 (*movdf_internal): Remove dead code-size optimization.
2333 (*movdf_internal_rex64): Fix usage of standard_80387_constant_p.
2334 (*movdf_internal_nointeger): Ditto.
2335 (*movsf_internal): Ditto.
2336 (floating point move splitters): Ditto.
2337 * config/i386/constraints.md (G): Ditto.
2338 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2340 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2342 PR tree-optimization/48975
2343 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2344 on all bbs here and free and clear ifc_bbs at the end.
2346 2011-05-12 Richard Guenther <rguenther@suse.de>
2348 Backport from mainline
2349 2011-05-02 Richard Guenther <rguenther@suse.de>
2351 PR tree-optimization/48822
2352 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2353 (process_scc): Indicate which iteration we start.
2355 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2358 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2359 if validate_subreg fails.
2361 2011-05-12 Nick Clifton <nickc@redhat.com>
2363 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2364 * config/rx/rx.c (rx_is_legitimate_constant): Use gcc_unreachable
2366 (rx_align_for_label): Test label before extracting its number of
2368 (rx_max_skip_for_label): Ignore debug insns.
2370 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2373 * tree-ssa.c (reset_debug_uses): New function.
2374 * tree-flow.h (reset_debug_uses): New prototype.
2375 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2376 * tree-loop-distribution.c (generate_loops_for_partition): Call
2377 reset_debug_uses on the stmts that will be removed. Keep around
2378 all debug stmts, don't count them as bits in partition bitmap.
2379 (generate_builtin): Don't count debug stmts or labels as bits in
2382 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2384 Backport from mainline
2385 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2387 PR target/48857, 48495
2388 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2390 (VSX_MOVE_MODE): Ditto.
2391 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2392 VSX vector types. Add V2DImode.
2393 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2394 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2395 (MODES_TIEABLE_P): Ditto.
2397 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2398 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2400 (init_cumulative_args): Ditto.
2401 (rs6000_function_arg_boundary): Ditto.
2402 (rs6000_function_arg_advance_1): Ditto.
2403 (rs6000_function_arg): Ditto.
2404 (rs6000_function_ok_for_sibcall): Ditto.
2405 (emit_frame_save): Ditto.
2406 (rs6000_function_value): Ditto.
2407 (rs6000_libcall_value): Ditto.
2409 2011-05-10 Nick Clifton <nickc@redhat.com>
2411 * config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
2414 2011-05-10 DJ Delorie <dj@redhat.com>
2416 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2417 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2418 * config/rx/rx.c (rx_align_for_label): Add label and
2419 uses_threshold parameters. Do not align when the label is not
2421 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2423 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2425 Backported from mainline
2426 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2428 PR tree-optimization/48837
2429 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2430 when accumulator transformation is performed.
2432 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2434 PR tree-optimization/48611
2435 PR tree-optimization/48794
2436 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2437 referenced from RESX or EH_DISPATCH arguments.
2439 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2441 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2442 temporary register to match Pmode.
2444 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2446 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2447 (dataflow_set_preserve_mem_locs): Likewise.
2449 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2451 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2452 constraint modifier to "r".
2454 2011-05-06 Alan Modra <amodra@gmail.com>
2457 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2458 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2460 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2462 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2464 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2466 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2469 * config/arm/neon.md (neon_vtrn<mode>): Fix typo from earlier commit.
2471 2011-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2473 * config/rs6000/rs6000.c (rs6000_handle_option): Add missing break
2476 2011-05-05 Jason Merrill <jason@redhat.com>
2479 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2481 2011-05-05 Julian Brown <julian@codesourcery.com>
2483 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2484 parenthesis in D-register case.
2486 2011-05-05 Ira Rosen <ira.rosen@linaro.org>
2488 Backport from mainline:
2489 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2490 Ira Rosen <ira.rosen@linaro.org>
2493 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2494 to match neon_vzip/vuzp/vtrn_internal.
2495 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2496 outputs explicitly dependent on both inputs.
2497 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2499 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2501 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2502 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2503 (*movdi_internal): Use "maybe_vex" instead of "vex" in "prefix"
2504 attribute calculation.
2505 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2506 * config/i386/sse.md (*sse2_storeq_rex64): Do not emit %v prefix
2507 for mov{q} mnemonic.
2508 (*vec_extractv2di_1_rex64_avx): Ditto.
2510 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2511 Jakub Jelinek <jakub@redhat.com>
2514 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2515 only succeed if req_mode is the same as set_mode.
2517 2011-05-03 Richard Guenther <rguenther@suse.de>
2520 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2521 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2522 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2524 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2527 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2528 for -fstack-check if the size to allocate is negative.
2530 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2532 PR tree-optimization/48809
2533 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2535 (gen_inbound_check): Don't compute index_expr - range_min in utype
2536 again, instead reuse SSA_NAME initialized in build_arrays.
2537 Remove two useless gsi_for_stmt calls.
2539 2011-04-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2541 Backport from mainline
2542 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2543 Michael Meissner <meissner@linux.vnet.ibm.com>
2546 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2547 operands, as per the specifications.
2549 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2550 (vec_extract_evenv4sf): Ditto.
2551 (vec_extract_evenv8hi): Ditto.
2552 (vec_extract_evenv16qi): Ditto.
2553 (vec_extract_oddv4si): Ditto.
2555 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2558 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2561 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2564 * c-typeck.c (build_binary_op): Don't wrap arguments if
2565 int_operands is true.
2567 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2570 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2571 is error_mark_node, set value to NULL.
2573 PR tree-optimization/48734
2574 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2575 if return value from maybe_fold_*_comparsions isn't something
2576 the code is prepared to handle.
2578 2011-04-26 Richard Guenther <rguenther@suse.de>
2580 PR tree-optimization/48731
2581 * ipa-inline.c (cgraph_flatten): Test if function is inlinable.
2583 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2586 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2587 __is_literal_type, and __is_trivial; update throughout about
2588 possibly cv-qualified void types.
2590 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2593 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2594 to VOID_TYPE even around MODIFY_EXPR.
2596 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2598 PR tree-optimization/48717
2599 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2600 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2602 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2605 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2606 TREE_STATIC variables declared inside of some OpenMP construct.
2608 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2611 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2612 vec_extract and vec_concat for non-SSE4_1 targets.
2614 2011-04-21 Richard Guenther <rguenther@suse.de>
2617 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2618 objects and types here. Adjust for their offset before comparing.
2620 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2622 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2624 2011-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2627 * config/pa/predicates.md (ior_operand): Delete predicate.
2628 (cint_ior_operand, reg_or_cint_ior_operand): New predicates.
2629 * config/pa/pa.md (iordi3): Use reg_or_cint_ior_operand predicate in
2630 expander. Use cint_ior_operand in unnamed insn.
2632 * config/pa/pa-protos.h (ior_operand): Delete declarations.
2634 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2636 PR tree-optimization/48611
2637 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2638 beyond ERT_MUST_NOT_THROW region.
2640 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2642 Backport from mainline
2643 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2646 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2647 the types if they have different enumeration identifiers.
2649 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2652 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2653 DECL_IN_CONSTANT_POOL without RTL.
2655 2011-04-20 Richard Guenther <rguenther@suse.de>
2657 Backport from mainline
2658 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2661 * reload1.c (inc_for_reload): Return void. All callers changed.
2662 (emit_input_reload_insns): Don't try to delete previous output
2663 reloads to a register, or record spill_reg_store for autoincs.
2665 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2668 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2669 is a SUBREG with non-MODE_INT mode inside of it.
2671 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2674 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2675 if TREE_TYPE (v) is non-NULL.
2677 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2678 gimple_get_virt_mehtod_for_binfo.
2679 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2680 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2682 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2684 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2686 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2688 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2690 PR tree-optimization/48616
2691 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2692 whether the shift is by scalar or vector based on whether all SLP
2693 scalar stmts have the same rhs.
2695 2011-04-17 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2697 * doc/passes.texi: Fill crossref nodes.
2699 2011-04-17 Marius Strobl <marius@FreeBSD.org>
2701 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2702 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2703 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2705 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2708 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2709 is non-null before accessing it.
2710 (input_cgraph): Remove trailing spaces.
2712 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2714 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2715 Replace match_operand with match_dup for the third operand in
2718 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2721 * config/i386/sse.md (avx_insertps, sse4_1_insertps): If operands[2]
2722 is a MEM, offset it as needed based on top 2 bits in operands[3],
2723 change MEM mode to SFmode and mask those 2 bits away from operands[3].
2725 2011-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2727 Backport from mainline:
2728 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2731 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2732 move from floating point to shift amount register.
2733 (emit_move_sequence): Remove secondary reload support for floating
2734 point to shift amount amount register copies.
2735 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2736 amount register copies.
2737 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2738 register, return false if mode isn't a scalar integer mode.
2739 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2741 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2744 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is NULL.
2745 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2747 2011-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2749 Backport from mainline:
2750 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2752 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2754 2011-04-12 Martin Jambor <mjambor@suse.cz>
2756 PR tree-optimization/48195
2757 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2758 ipa_check_create_edge_args.
2759 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2760 ipa_check_create_edge_args.
2761 * ipa-inline.c (inline_generate_summary): Do not call
2762 ipa_check_create_node_params and ipa_check_create_edge_args.
2763 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2764 ipa_check_create_edge_args.
2766 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2768 PR rtl-optimization/48549
2769 * combine.c (propagate_for_debug): Also stop after BB_END of
2770 this_basic_block. Process LAST and just stop processing after it.
2771 (combine_instructions): If last_combined_insn has been deleted,
2772 set last_combined_insn to its PREV_INSN.
2774 2011-04-12 Nick Clifton <nickc@redhat.com>
2776 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2777 instruction for interrupt handlers if the target is the basic V850
2779 (expand_epilogue): Likewise.
2781 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2784 * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to
2787 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2789 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2791 2011-04-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2793 Backport from mainline:
2794 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2796 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2798 2011-04-09 Duncan Sands <baldrick@free.fr>
2800 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2802 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2805 * config.gcc: disable unwind table generation for crtbegin/crtend
2808 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2810 PR tree-optimization/48377
2811 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set is_packed
2812 to true even for types with smaller TYPE_ALIGN than TYPE_SIZE.
2814 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2816 * config/i386/sse.md: Update copyright year.
2817 (avx_cmp<ssescalarmodesuffix><mode>3): Add missing output
2818 register constraint.
2819 (*vec_concatv2sf_avx): Fix wrong register constraint in
2820 alternative 3 of operand 1.
2821 (*vec_set<mode>_0_avx): Avoid combining registers from different
2822 units in a single alternative.
2823 (*vec_set<mode>_0_sse4_1): Ditto.
2824 (*vec_set<mode>_0_sse2): Ditto.
2825 (vec_set<mode>_0): Ditto.
2826 (sse2_storehpd): Ditto.
2827 (sse2_loadhpd): Ditto.
2828 (sse4_1_insertps): Use nonimmediate_operand for operand 2.
2829 * config/i386/predicates.md (sse_comparison_operator): Do not
2830 define as special predicate.
2832 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2835 * combine.c (combine_instructions): Add last_combined_insn,
2836 update it if insn is after it, pass it to all try_combine calls.
2837 (try_combine): Add last_combined_insn parameter, pass it instead of
2838 i3 to propagate_for_debug.
2840 2011-04-07 Andrey Belevantsev <abel@ispras.ru>
2842 Backport from mainline
2843 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
2845 PR rtl-optimization/48144
2846 * sel-sched-ir.c (merge_history_vect): Factor out from ...
2847 (merge_expr_data): ... here.
2848 (av_set_intersect): Rename to av_set_code_motion_filter.
2849 Update all callers. Call merge_history_vect when an
2850 expression is found in both sets.
2851 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2853 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2856 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2857 as base_reg whatever register reg has been eliminated to, instead
2858 of hardcoding STACK_POINTER_REGNUM.
2860 Backported from mainline
2861 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2864 * expr.c (expand_assignment): Handle all possibilities
2865 if TO_RTX is CONCAT.
2866 * expmed.c (store_bit_field_1): Avoid trying to create
2868 (store_split_bit_field): If SUBREG_REG (op0) or
2869 op0 itself has smaller mode than word, return it
2870 for offset 0 and const0_rtx for out-of-bounds stores.
2871 If word is const0_rtx, skip it.
2873 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2875 * gcov-io.c: Use GCC Runtime Library Exception.
2877 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2879 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2881 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2883 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2885 2011-04-01 Andrey Belevantsev <abel@ispras.ru>
2887 Backport from mainline
2888 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
2890 PR rtl-optimization/48143
2891 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2892 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2893 sse2_cvtps2pd): Likewise.
2895 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2898 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2899 frame-related from frame-unrelated adjustments to the stack pointer.
2901 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2903 Backport from mainline
2904 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2907 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2910 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2913 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2914 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2915 dw_fde_unlikely_section_end_label, cold_in_std_section,
2916 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2917 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2919 (output_fde): Use dw_fde_second_{begin,end} if second is
2920 true, otherwise dw_fde_{begin,end}.
2921 (output_call_frame_info): Test dw_fde_second_begin != NULL
2922 instead of dw_fde_switched_sections.
2923 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2924 fields, initialize new fields. Initialize in_std_section
2925 unconditionally from the first partition.
2926 (dwarf2out_end_epilogue): Don't override dw_fde_end when
2927 dw_fde_second_begin is non-NULL.
2928 (dwarf2out_switch_text_section): Stop initializing removed
2929 dw_fde_struct fields, initialize new fields, initialize
2930 also dw_fde_end here. Set dw_fde_switch_cfi even when
2931 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
2932 (struct var_loc_list_def): Add last_before_switch field.
2933 (arange_table, arange_table_allocated, arange_table_in_use,
2934 ARANGE_TABLE_INCREMENT, add_arange): Removed.
2935 (size_of_aranges): Count !in_std_section and !second_in_std_section
2936 hunks in fdes, instead of looking at arange_table_in_use.
2937 (output_aranges): Add aranges_length argument, don't call
2938 size_of_aranges here. Instead of using aranges_table*
2939 emit ranges for fdes when !in_std_section resp.
2940 !second_in_std_section.
2941 (dw_loc_list): Break ranges crossing section switch.
2942 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
2943 use dw_fde_second_end instead of dw_fde_end as end of last
2945 (gen_subprogram_die): Don't call add_arange. Use
2946 dw_fde_{begin,end} for first partition and if switched
2947 section dw_fde_second_{begin,end} for the second.
2948 (var_location_switch_text_section_1,
2949 var_location_switch_text_section): New functions.
2950 (dwarf2out_begin_function): Initialize cold_text_section even
2951 when function_section () isn't text_section.
2952 (prune_unused_types): Don't walk arange_table.
2953 (dwarf2out_finish): Don't needlessly test
2954 flag_reorder_blocks_and_partition when testing cold_text_section_used.
2955 If info_section_emitted, call size_of_aranges and if it indicates
2956 non-empty .debug_aranges, call output_aranges with the computed
2957 size. Stop using removed dw_fde_struct fields, use
2958 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2961 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
2963 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2964 (alpha_option_override): Don't set alpha_sr_alias_set.
2965 (emit_frame_store_1): Use gen_frame_mem rather than calling
2967 (alpha_expand_epilogue): Ditto.
2968 (unicosmk_gen_dsib): Ditto.
2970 2011-03-29 Nick Clifton <nickc@redhat.com>
2972 * config/rx/rx.h (LABEL_ALIGN_AFTER_BARRIER): Define.
2973 (ASM_OUTPUT_MAX_SKIP): Define.
2974 * config/rx/predicates.md (rx_zs_comparison_operator): Do not
2975 allow LT aor GE comparisons.
2976 * config/rx/rx-protos.h (rx_align_for_label): Prototype.
2977 * config/rx/rx.md: Add peepholes and patterns to combine extending
2978 loads with simple arithmetic instructions.
2979 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI modes
2980 to use pre-decrement and post-increment addressing.
2981 (rx_is_restricted_memory_address): For REG+INT addressing, ensure
2982 that the INT is a valid offset.
2983 (rx_print_operand): Handle %R.
2984 Fix %Q's handling of MEMs.
2985 (rx_option_override): Set alignments.
2986 (rx_align_for_label): New function.
2987 (rx_max_skip_for_label): New function.
2988 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2989 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2990 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2991 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2993 2011-03-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2995 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2996 for invalid symbolic addresses.
2997 (s390_secondary_reload): Don't use s390_check_symref_alignment for
3000 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3003 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3005 2011-03-28 Richard Guenther <rguenther@suse.de>
3007 Backport from mainline
3008 2011-03-24 Richard Guenther <rguenther@suse.de>
3011 * tree-object-size.c (addr_object_size): Do not double-account
3012 for MEM_REF offsets.
3014 2011-03-22 Richard Guenther <rguenther@suse.de>
3016 PR tree-optimization/48228
3017 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3018 for single-arg PHIs.
3020 2011-03-17 Richard Guenther <rguenther@suse.de>
3023 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3024 a value make sure to fold the statement.
3026 2011-03-15 Richard Guenther <rguenther@suse.de>
3029 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3030 or variable-indexed array accesses when in gimple form.
3032 2011-03-27 Jonathan Wakely <jwakely.gcc@gmail.com>
3037 * doc/extend.texi (Alignment): Move section to match order in TOC.
3038 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3039 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3041 2011-03-26 Uros Bizjak <ubizjak@gmail.com>
3043 Backport from mainline:
3044 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3047 * config/i386/i386.md (*movdf_internal_rex64): Do not split
3048 alternatives that can be handled with movq or movabsq insn.
3049 (*movdf_internal): Disable for !TARGET_64BIT.
3050 (*movdf_internal_nointeger): Ditto.
3051 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3053 2011-03-26 Jakub Jelinek <jakub@redhat.com>
3055 Backport from mainline
3056 2011-03-24 Jakub Jelinek <jakub@redhat.com>
3059 * simplify-rtx.c (simplify_const_unary_operation): Call
3060 real_convert when changing mode class with FLOAT_EXTEND.
3062 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3066 * c-common.c (shorten_compare): If primopN is first sign-extended
3067 to opN and then zero-extended to result type, set primopN to opN.
3069 PR rtl-optimization/48156
3070 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3071 assume df and df_lr are not NULL.
3073 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3075 PR rtl-optimization/48141
3076 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3077 * dse.c: Include params.h.
3078 (active_local_stores_len): New variable.
3079 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3081 (record_store, check_mem_read_rtx): Decrease it when removing
3083 (scan_insn): Likewise. Increase it when adding to chain, if it
3084 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3085 set active_local_stores to NULL before the addition.
3086 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3088 PR rtl-optimization/48141
3089 * dse.c (record_store): If no positions are needed in an insn
3090 that cannot be deleted, at least unchain it from active_local_stores.
3092 2011-03-25 Jakub Jelinek <jakub@redhat.com>
3094 * BASE-VER: Set to 4.6.1.
3095 * DEV-PHASE: Set to prerelease.
3097 2011-03-25 Release Manager
3099 * GCC 4.6.0 released.
3101 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3103 * config/rs6000/t-freebsd: Remove duplication from file.
3105 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3108 * doc/install.texi (Prerequisites): Move jar etc. up.
3109 Explain support library version requirements.
3111 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3114 * doc/install.texi (Prerequisites): Move Perl to build
3115 requirements. Always necessary on Solaris 2 with Sun ld.
3117 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3119 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3121 (Specific, i?86-*-solaris2.[89]): Likewise.
3122 (Specific, i?86-*-solaris2.10): Likewise.
3123 (Specific, mips-sgi-irix6): Likewise.
3124 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3125 Update for binutils 2.21.
3127 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3130 * config/s390/s390.c (s390_delegitimize_address): Don't call
3131 lowpart_subreg if orig_x has BLKmode.
3133 2011-03-20 Joseph Myers <joseph@codesourcery.com>
3135 * c-decl.c (diagnose_mismatched_decls): Give an error for
3136 redefining a typedef with variably modified type.
3138 2011-03-20 Joseph Myers <joseph@codesourcery.com>
3140 * c-decl.c (grokfield): Don't allow typedefs for structures or
3141 unions with no tag by default.
3142 * doc/extend.texi (Unnamed Fields): Update.
3144 2011-03-18 Jakub Jelinek <jakub@redhat.com>
3147 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3148 arange_table_in_use is 0, but either text_section_used or
3149 cold_text_section_used is true. Don't call it if
3150 !info_section_emitted.
3152 2011-03-18 Richard Guenther <rguenther@suse.de>
3154 * doc/install.texi (--enable-gold): Remove.
3155 (--with-plugin-ld): Document.
3156 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3158 2011-03-18 H.J. Lu <hongjiu.lu@intel.com>
3160 Backport from mainline
3161 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3164 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3166 2011-03-18 Richard Henderson <rth@redhat.com>
3167 Jakub Jelinek <jakub@redhat.com>
3170 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3171 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3173 2011-03-17 Richard Guenther <rguenther@suse.de>
3176 * tree-object-size.c (compute_object_offset): Properly return
3177 the offset operand of MEM_REFs as sizetype.
3179 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3182 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3183 (lookup_type_die_strip_naming_typedef): ... here.
3184 (get_context_die): Use it.
3185 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3186 the anonymous struct named by the naming typedef.
3188 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3191 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3192 in the output template.
3194 2011-03-15 Alan Modra <amodra@gmail.com>
3197 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3198 presume symbol_refs without a symbol_ref_decl are suitably
3199 aligned, nor other trees we may see here. Handle anchor symbols.
3200 (legitimate_constant_pool_address_p): Comment. Add mode param.
3201 Check cmodel=medium addresses. Adjust all calls.
3202 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3203 creating cmodel=medium optimized access to locals.
3204 * config/rs6000/constraints.md (R): Pass QImode to
3205 legitimate_constant_pool_address_p.
3206 * config/rs6000/predicates.md (input_operand): Pass mode to
3207 legitimate_constant_pool_address_p.
3208 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3211 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3214 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3215 64-bit constants being loaded into registers other than GPRs such
3216 as loading 0 into a VSX register.
3218 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3220 * config/sol2.c (solaris_assemble_visibility): Remove obsolete
3223 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3225 * doc/invoke.texi, doc/standards.texi: Refer to
3226 gcc-4.6/c99status.html.
3228 * DEV-PHASE: Mark "prerelease".
3230 2011-03-14 Richard Guenther <rguenther@suse.de>
3233 * tree.c (build_vector_from_val): Adjust assert to requirements
3236 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3239 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE
3242 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
3244 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3245 terms of target_flags_explicit. Adjust copyright year.
3247 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3248 * config/rs6000/t-freebsd: New file. Add override for
3251 2011-03-13 Chris Demetriou <cgd@google.com>
3253 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3254 (-fno-diagnostics-show-option): this, to reflect current default.
3255 (-Werror=): Update text about -fno-diagnostics-show-option.
3257 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
3260 * config/rs6000/predicates.md (easy_vector_constant_add_self,
3261 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3262 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3263 mode is not V2DImode or V2DFmode.
3264 (vspltis_constant): Do not handle V2DImode and V2DFmode.
3265 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3266 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3268 (movdi_internal64): Likewise.
3270 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
3272 PR tree-optimization/47127
3273 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3275 (set_cloog_options): Same.
3276 (scop_to_clast): Same.
3277 (print_clast_stmt): Do not call cloog_state_malloc and
3279 (print_generated_program): Same.
3281 * graphite-clast-to-gimple.h (cloog_state): Declared.
3282 (scop_to_clast): Adjust declaration.
3283 * graphite.c (cloog_state): Defined here.
3284 (graphite_initialize): Call cloog_state_malloc.
3285 (graphite_finalize): Call cloog_state_free.
3287 2011-03-11 Jason Merrill <jason@redhat.com>
3289 * attribs.c (lookup_attribute_spec): Take const_tree.
3292 2011-03-11 Joseph Myers <joseph@codesourcery.com>
3294 * config/sparc/sparc.c (sparc_option_override): Use
3295 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3297 2011-03-11 Richard Guenther <rguenther@suse.de>
3299 PR tree-optimization/48067
3300 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3301 multiplication result will be only used once on the target
3304 2011-03-11 Richard Guenther <rguenther@suse.de>
3306 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3308 2011-03-11 Richard Guenther <rguenther@suse.de>
3311 * tree.c (find_decls_types_r): Do not walk types only reachable
3312 from IDENTIFIER_NODEs.
3314 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3317 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3318 all vnode->force_output nodes as needed.
3320 2011-03-11 Jason Merrill <jason@redhat.com>
3323 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3324 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3326 2011-03-11 Martin Jambor <mjambor@suse.cz>
3328 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3331 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3333 PR tree-optimization/48063
3334 * ipa-inline.c (cgraph_decide_inlining): Don't try to
3335 inline functions called once if !tree_can_inline_p (node->callers).
3337 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
3339 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3341 * config/score/score3.c: Delete.
3342 * config/score/score3.h: Delete.
3343 * config/score/mul-div.S: Delete.
3344 * config/score/sfp-machine.h: Add new file.
3345 * config/score/constraints.md: Add new file.
3346 * config/score/t-score-softfp: Add new file.
3347 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
3348 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3349 (score7_extra_constraint): Delete.
3350 (score7_option_override): Remove unused code.
3351 * config/score/score.c: Remove score3 and score5 define and code.
3352 * config/score/score.h: Remove score3 and score5 define and code.
3353 * config/score/score.md: Remove score3 template and unusual insn.
3354 * config/score/score.opt: Remove score3 and score5 options.
3356 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3358 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3359 when _HPUX_SOURCE is defined.
3360 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3362 2011-03-10 Jason Merrill <jason@redhat.com>
3365 * stor-layout.c (layout_type): Don't set structural equality
3366 on arrays of incomplete type.
3367 * tree.c (type_hash_eq): Handle comparing them properly.
3369 2011-03-10 Jakub Jelinek <jakub@redhat.com>
3372 * config/s390/s390.c (s390_delegitimize_address): Make sure the
3373 result mode matches original rtl mode.
3375 2011-03-10 Nick Clifton <nickc@redhat.com>
3377 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
3378 (andsi3, andsi3_flags): Fix timings for three operand alternative.
3380 2011-03-09 Jakub Jelinek <jakub@redhat.com>
3382 PR rtl-optimization/47866
3383 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3384 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3385 if target wasn't scalar.
3386 * function.c (assign_stack_temp_for_type): Assert that neither
3387 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3388 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3390 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3392 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3394 * config/s390/s390-protos.h (s390_label_align): New prototype.
3395 * config/s390/s390.c (s390_label_align): New function.
3396 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3398 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3401 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3402 V2DI/V2DF constants. Only all 0's or all 1's are easy.
3403 (output_vec_const_move): Ditto.
3405 2011-03-08 Anatoly Sokolov <aesok@post.ru>
3407 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3408 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
3409 * config/mips/mips.c (mips_preferred_reload_class): Make static.
3410 Change 'rclass' argument and result type to reg_class_t.
3411 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3413 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
3415 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3416 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
3417 (TARGET_MEMORY_MOVE_COST): Define.
3418 (avr_register_move_cost, avr_memory_move_cost): New Functions.
3420 2011-03-08 Jakub Jelinek <jakub@redhat.com>
3423 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
3426 PR tree-optimization/48022
3427 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
3430 2011-03-07 Jakub Jelinek <jakub@redhat.com>
3433 * var-tracking.c (find_use_val): Return NULL for
3434 cui->sets && cui->store_p BLKmode MEMs.
3436 2011-03-07 Anatoly Sokolov <aesok@post.ru>
3438 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3440 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
3441 xstormy16_print_operand_address): Remove.
3442 * config/stormy16/stormy16.c (xstormy16_print_operand,
3443 xstormy16_print_operand_address): Make static.
3444 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3446 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
3449 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3450 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
3453 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
3456 * cfgloopmanip.c (fix_bb_placements): Return immediately
3457 if FROM is BASE_LOOP's header.
3459 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
3461 * gimplify.c (gimplify_function_tree): Fix building calls
3462 to __builtin_return_address.
3464 2011-03-07 Alan Modra <amodra@gmail.com>
3466 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
3467 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
3468 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
3469 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
3471 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
3472 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
3473 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
3474 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
3475 * config/rs6000/rs6000.c
3476 (rs6000_elf_end_indicate_exec_stack): Rename to..
3477 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
3478 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
3479 (rs6000_file_start): ..here.
3480 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
3481 file scope variables.
3482 (call_ABI_of_interest): New function.
3483 (init_cumulative_args): Set above vars when function return value
3484 is a float, vector, or small struct.
3485 (rs6000_function_arg_advance_1): Likewise for function args.
3486 (rs6000_va_start): Set rs6000_passes_float if variable arg function
3487 references float args.
3489 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
3491 * doc/cfg.texi: Remove "See" before @ref.
3492 * doc/invoke.texi: Likewise.
3494 2011-03-05 Jason Merrill <jason@redhat.com>
3496 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
3498 2011-03-05 Anthony Green <green@moxielogic.com>
3500 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
3502 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
3504 PR rtl-optimization/47899
3505 * cfgloopmanip.c (fix_bb_placements): Fix first argument
3506 to flow_loop_nested_p when moving the loop upward.
3508 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
3511 * arm.md (movhi_insn_arch4): Accept any immediate constant.
3513 2011-03-05 Jakub Jelinek <jakub@redhat.com>
3515 PR tree-optimization/47967
3516 * ipa-cp.c (build_const_val): Return NULL instead of creating
3517 VIEW_CONVERT_EXPR for mismatching sizes.
3518 (ipcp_create_replace_map): Return NULL if build_const_val failed.
3519 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
3520 give up on versioning.
3522 2011-03-05 Alan Modra <amodra@gmail.com>
3525 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3526 full cmodel medium/large lo_sum + high addresses.
3528 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3530 * config/s390/s390.c (s390_decompose_address): Reject non-literal
3531 pool references in UNSPEC_LTREL_OFFSET.
3533 2011-03-04 Jan Hubicka <jh@suse.cz>
3536 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
3537 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
3538 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
3539 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
3540 cgraph_add_thunk): Add node pointers.
3541 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
3542 associated to right node.
3543 (input_node): Update use of cgraph_same_body_alias
3544 and cgraph_add_thunk.
3546 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
3548 * config/i386/i386.opt (mprefer-avx128): New flag.
3549 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
3550 when the flag -mprefer-avx128 is on.
3552 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
3554 * dwarf2out.c (compare_loc_operands): Fix address handling.
3556 2011-03-04 Alan Modra <amodra@gmail.com>
3558 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
3560 2011-03-04 Richard Guenther <rguenther@suse.de>
3563 * expmed.c (extract_bit_field_1): Prefer vector modes that
3564 vec_extract patterns can handle.
3566 2011-03-04 Richard Guenther <rguenther@suse.de>
3569 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
3571 2011-03-04 Richard Henderson <rth@redhat.com>
3573 * explow.c (emit_stack_save): Remove 'after' parameter.
3574 (emit_stack_restore): Likewise.
3575 * expr.h: Update to match.
3576 * builtins.c, calls.c, stmt.c: Likewise.
3577 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
3578 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
3579 * function.c (expand_function_end): Insert the emit_stack_save
3580 sequence before parm_birth_insn instead of after.
3582 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
3584 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
3585 (ssse3_pmaddubsw128): Ditto.
3586 (ssse3_pmaddubsw): Ditto.
3588 2011-03-03 Steve Ellcey <sje@cup.hp.com>
3590 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
3592 2011-03-03 Jakub Jelinek <jakub@redhat.com>
3595 * gimplify.c (omp_add_variable): Only call omp_notice_variable
3596 on TYPE_SIZE_UNIT if it is a DECL.
3599 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
3600 first operand is not is_gimple_mem_ref_addr, try to fold it.
3601 If the operand still isn't is_gimple_mem_ref_addr, clear
3604 2011-03-03 Richard Guenther <rguenther@suse.de>
3607 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
3609 (refs_may_alias_p_1): For release branches return true if
3610 we are confused by our input.
3612 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3614 * config/s390/s390.c (s390_function_value): Rename to ...
3615 (s390_function_and_libcall_value): ... this.
3616 (s390_function_value): New function.
3617 (s390_libcall_value): New function.
3618 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
3619 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
3620 target macro definitions.
3621 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
3623 2011-03-02 Joseph Myers <joseph@codesourcery.com>
3625 * config/i386/freebsd64.h (CC1_SPEC): Define.
3626 * config/i386/linux64.h (CC1_SPEC): Define.
3627 * config/i386/x86-64.h (CC1_SPEC): Don't define.
3629 2011-03-02 Anatoly Sokolov <aesok@post.ru>
3631 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3633 * config/stormy16/stormy16.c: Include reload.h.
3634 (xstormy16_memory_move_cost): New function.
3635 (TARGET_MEMORY_MOVE_COST): Define.
3637 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
3639 PR rtl-optimization/47925
3640 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
3641 with side effects. Remove the more-specific check for volatile asms.
3643 2011-03-02 Alan Modra <amodra@gmail.com>
3646 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
3647 toc relative addresses for valid offsets.
3649 2011-03-01 Richard Guenther <rguenther@suse.de>
3651 PR tree-optimization/47890
3652 * tree-vect-loop.c (get_initial_def_for_induction): Set
3653 related stmt properly.
3655 2011-03-01 Richard Guenther <rguenther@suse.de>
3658 * lto-streamer.c (lto_record_common_node): Also register
3661 2011-03-01 Richard Guenther <rguenther@suse.de>
3664 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3665 Do not stream DECL_ABSTRACT_ORIGIN.
3666 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3667 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3668 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3669 Do not stream DECL_ABSTRACT_ORIGIN.
3670 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3671 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3673 2011-02-28 Anatoly Sokolov <aesok@post.ru>
3675 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
3676 FUNCTION_VALUE_REGNO_P): Remove.
3677 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
3678 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
3679 Add 'outgoing' argument.
3680 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
3682 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3683 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3685 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
3688 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
3689 (lookup_filename): Likewise.
3690 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
3692 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
3693 Jakub Jelinek <jakub@redhat.com>
3696 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
3697 (assign_stack_local_1): Change last argument type to int.
3698 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
3699 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
3700 don't record padding space into frame_space_list nor use those areas.
3701 (assign_stack_local): Adjust caller.
3702 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
3703 of assign_stack_local, pass 0 as last argument.
3704 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
3707 2011-02-28 Jakub Jelinek <jakub@redhat.com>
3710 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
3711 Use target address_mode and pointer_mode hooks instead of hardcoded
3712 Pmode and ptr_mode. Handle some simple cases of extending if
3713 POINTERS_EXTEND_UNSIGNED < 0.
3714 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
3715 Call convert_debug_memory_address.
3716 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
3717 convert_debug_memory_address.
3720 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
3721 * configure: Regenerated.
3722 * config.in: Regenerated.
3723 * varasm.c (default_function_section): Return NULL
3724 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
3726 2011-02-28 Martin Jambor <mjambor@suse.cz>
3728 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
3729 the description to match the printed values.
3731 2011-02-28 Richard Guenther <rguenther@suse.de>
3733 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
3734 of the copied scope tree.
3736 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3738 * doc/extend.texi (Function Attributes): Avoid deeply (and
3739 wrongly) nested tables.
3741 2011-02-27 Jakub Jelinek <jakub@redhat.com>
3744 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
3745 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
3746 r isn't op0 nor op1.
3748 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
3750 * config/avr/avr.md: Remove magic comment for emacs.
3752 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
3755 * config/avr/avr.c (avr_option_override): Use error on bad options.
3756 (avr_help): New function.
3757 (TARGET_HELP): Define.
3759 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
3762 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
3763 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
3765 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
3767 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
3768 (ARM Options): Ditto.
3769 (i386 and x86-64 Options): Ditto.
3770 (RX Options): Ditto.
3771 (SPARC Options): Ditto.
3773 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
3775 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
3776 FreeBSD 6 and later. Generally use cpu generic.
3778 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
3780 * doc/cpp.texi: Update copyright years.
3782 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
3785 * config/lm32/lm32.md (ashrsi3): Added needed variable.
3787 2011-02-25 Jon Beniston <jon@beniston.com>
3790 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
3791 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3792 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
3793 (lm32_block_move_inline): Add type cast to remove warning.
3794 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
3795 (gen_int_relational): Move declarations to start of function.
3797 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
3799 PR tree-optimization/45470
3800 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3801 can throw internally only.
3802 * tree-vect-stmts.c (vectorizable_call): Likewise.
3804 2011-02-24 Anatoly Sokolov <aesok@post.ru>
3806 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
3807 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3808 * config/stormy16/stormy16-protos.h
3809 (xstormy16_preferred_reload_class): Remove.
3810 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
3811 static. Change 'rclass' argument and return type to reg_class_t.
3812 (TARGET_PREFERRED_RELOAD_CLASS,
3813 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3815 2011-02-24 Richard Guenther <rguenther@suse.de>
3817 * lto-streamer-in.c (input_bb): Do not find referenced vars
3818 in debug statements.
3820 2011-02-23 Jason Merrill <jason@redhat.com>
3822 * common.opt (fabi-version): Document v5 and v6.
3824 2011-02-23 Richard Guenther <rguenther@suse.de>
3826 PR tree-optimization/47849
3827 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
3829 2011-02-23 Jie Zhang <jie@codesourcery.com>
3831 * opts-common.c (decode_cmdline_option): Print empty string
3832 argument as "" in decoded->orig_option_with_args_text.
3833 * gcc.c (execute): Print empty string argument as ""
3834 in the verbose output.
3835 (do_spec_1): Keep empty string argument.
3837 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
3839 * config.gcc: Declare score-* and crx-* obsolete.
3841 2011-02-23 Jie Zhang <jie@codesourcery.com>
3843 PR rtl-optimization/47763
3844 * web.c (web_main): Ignore naked clobber when replacing register.
3846 2011-02-22 Anatoly Sokolov <aesok@post.ru>
3848 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3851 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
3854 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
3856 2011-02-22 Mike Stump <mikestump@comcast.net>
3858 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
3860 * configure: Regenerate.
3862 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
3864 PR rtl-optimization/46002
3865 * ira-color.c (update_copy_costs): Change class intersection
3866 test to reg_class_contents[] test of 'hard_regno'.
3868 2011-02-21 Joseph Myers <joseph@codesourcery.com>
3870 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
3872 * config/hpux11.opt (mt): Likewise.
3873 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
3874 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
3875 * config/vax/elf.opt (mno-asm-pic): Likewise.
3876 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
3878 2011-02-21 Mike Stump <mikestump@comcast.net>
3881 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
3882 tree so we can get save the type.
3883 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
3884 for CFString instead of trying to use past the end of the builtins.
3885 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
3886 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
3887 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
3888 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
3889 Rename to darwin_builtin_cfstring.
3890 (darwin_init_cfstring_builtins): Return the built type.
3892 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
3895 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
3896 (_mm256_insert_epi64): Use _mm_insert_epi64.
3898 2011-02-21 Anatoly Sokolov <aesok@post.ru>
3900 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3901 * config/stormy16/stormy16-protos.h
3902 (xstormy16_mode_dependent_address_p): Remove.
3903 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
3904 Make static. Change return type to bool. Change argument type to
3905 const_rtx. Remove dead code.
3906 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3908 2011-02-21 Richard Guenther <rguenther@suse.de>
3911 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3912 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3913 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
3915 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3916 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3918 2011-02-20 Richard Guenther <rguenther@suse.de>
3921 * tree.c (free_lang_data_in_decl): Clean builtins from
3922 the TU decl BLOCK_VARS.
3924 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
3928 * haifa-sched.c (fix_tick_ready): Skip tick computation
3931 2011-02-19 Richard Guenther <rguenther@suse.de>
3934 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3935 Remove lazy BLOCK_VARS streaming.
3936 (lto_input_ts_block_tree_pointers): Likewise.
3937 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3939 2011-02-19 Joseph Myers <joseph@codesourcery.com>
3941 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
3943 2011-02-19 Joseph Myers <joseph@codesourcery.com>
3945 * config/i386/biarch32.h, config/i386/mach.h,
3946 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
3948 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3951 * config/i386/i386.md (peephole2 for shift and plus): Use
3952 operands[1] original mode in the first insn.
3954 2011-02-18 Mike Stump <mikestump@comcast.net>
3956 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
3958 2011-02-18 Jan Hubicka <jh@suse.cz>
3961 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
3962 to zero when the function is not inlinable at all.
3964 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3966 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
3967 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3968 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
3969 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
3970 * config/pa/t-pa64: Likewise.
3971 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3973 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3976 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
3978 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3981 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
3983 2011-02-18 Anatoly Sokolov <aesok@post.ru>
3985 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3986 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
3987 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
3988 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3989 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
3990 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
3991 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
3992 m32r_load_postinc_p, m32r_store_preinc_predec_p,
3993 m32r_legitimate_address_p): New functions.
3994 * config/m32r/constraints.md (constraint "S"): Don't use
3995 STORE_PREINC_PREDEC_P.
3996 (constraint "U"): Don't use LOAD_POSTINC_P.
3998 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
4000 PR rtl-optimization/46178
4001 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4002 compute ira_hard_regno_cover_class[].
4004 2011-02-18 Richard Guenther <rguenther@suse.de>
4007 * lto-streamer.h (lto_global_var_decls): Declare.
4008 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4009 statics for global var processing.
4011 2011-02-18 Richard Guenther <rguenther@suse.de>
4013 PR tree-optimization/47737
4014 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4015 edge dominance check.
4017 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4020 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4021 avoid invalid rtx sharing.
4023 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
4025 * doc/cpp.texi (Obsolete Features): Add background on the
4026 origin of assertions.
4028 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4030 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4032 * config/darwin.c (output_objc_section_asm_op): Added support for
4034 (is_objc_metadata): New.
4035 (darwin_objc2_section): New.
4036 (darwin_objc1_section): New.
4037 (machopic_select_section): Added support for ABI v1 and v2.
4038 (darwin_emit_objc_zeroed): New.
4039 (darwin_output_aligned_bss): Detect objc metadata and treat it
4041 (darwin_asm_output_aligned_decl_common): Same.
4042 (darwin_asm_output_aligned_decl_local): Same.
4043 * config/darwin-sections.def: Updated for ABI v1 and v2.
4044 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4045 compiling Objective-C code for the NeXT runtime, default to using
4046 ABI version 0 for 32-bit, and version 2 for 64-bit.
4048 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4050 * common.opt (optimize_fast): New Variable.
4051 * opts.c (default_options_optimization): Use opts->x_optimize_fast
4052 instead of local variable ofast.
4054 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
4056 * doc/invoke.texi (fobjc-abi-version): Documented.
4057 (fobjc-nilcheck): Documented.
4058 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4061 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4064 * common.opt (export-dynamic): New Driver option.
4065 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4067 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4069 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4071 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
4072 Jan Hubicka <jh@suse.cz>
4076 * cfgexpand.c (account_used_vars_for_block): Remove.
4077 (estimated_stack_frame_size): Use referenced vars.
4078 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4079 that were referenced in the original function. Test src_fn
4080 rather than cfun. Drop redundant get_var_ann.
4081 (setup_one_parameter): Drop redundant get_var_ann.
4082 (declare_return_variable): Likewise.
4083 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4084 (copy_arguments_for_versioning): Drop redundant get_var_ann.
4085 * ipa-inline.c (compute_inline_parameters): Do not compute
4086 disregard_inline_limits here.
4087 (compute_inlinable_for_current, pass_inlinable): New.
4088 (pass_inline_parameters): Require PROP_referenced_vars.
4089 * cgraphunit.c (cgraph_process_new_functions): Don't run
4090 compute_inline_parameters explicitly unless function is in SSA form.
4091 (cgraph_analyze_function): Set .disregard_inline_limits.
4092 * tree-sra.c (convert_callers): Compute inliner parameters
4093 only for functions already in SSA form.
4095 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4097 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4098 -mlittle-endian-data.
4100 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4102 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4103 -mno-fpu, not -fpu and -no-fpu.
4104 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4105 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4107 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
4110 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4111 input reload with PLUS RTX.
4113 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4115 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4116 of InverseVar(MDMX).
4118 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4120 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4123 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4125 * config/mn10300/mn10300.opt (mno-crt0): New.
4127 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4129 * config/m68k/uclinux.opt (static-libc): New Driver option.
4131 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4133 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4135 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4137 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4138 %{muser-extend-enabled}.
4140 2011-02-16 Richard Guenther <rguenther@suse.de>
4142 PR tree-optimization/47738
4143 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4144 the TODO from tree_predictive_commoning.
4146 2011-02-15 Jeff Law <law@redhat.com>
4149 2011-01-25 Jeff Law <law@redhat.com>
4151 PR rtl-optimization/37273
4152 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4153 handle them like argument loads from stack slots. Do not double
4154 count memory for memory constants and argument loads from stack slots.
4156 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4159 * combine.c (cant_combine_insn_p): Revert the last change.
4161 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4164 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4165 mode for vector constants. Remove code that checks for TImode.
4167 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4171 * cgraph.h (compute_inline_parameters): Return void.
4172 * ipa-inline.c (compute_inline_parameters): Adjust.
4174 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4178 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4180 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4181 * ipa-inline.c (compute_inline_parameters): Adjust.
4183 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4187 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4188 Adjust all users. Pass FN to...
4189 * tree-flow-inline.h (first_referenced_var): ... this. Add
4191 * ipa-struct-reorg.c: Adjust.
4192 * tree-dfa.c: Adjust.
4193 * tree-into-ssa.c: Adjust.
4194 * tree-sra.c: Adjust.
4195 * tree-ssa-alias.c: Adjust.
4196 * tree-ssa-live.c: Adjust.
4197 * tree-ssa.c: Adjust.
4198 * tree-ssanames.c: Adjust.
4199 * tree-tailcall.c: Adjust.
4201 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4205 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4207 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4208 * tree-flow-inline.h: Adjust.
4209 * gimple-pretty-print.c: Adjust.
4210 * tree-into-ssa.c: Adjust.
4211 * tree-ssa.c: Adjust.
4212 * cfgexpand.c: Adjust.
4214 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4216 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4217 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4218 (EXTRA_CONSTRAINT): Delete.
4219 * config/iq2000/constraints.md: New file.
4220 * config/iq2000/iq2000.md: Include it.
4221 (define_insn ""): Delete.
4222 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4223 unsupported constraint letters from patterns.
4224 (call_value, call_value_internal1): Likewise.
4225 (call_value_multiple_internal1): Likewise.
4227 2011-02-15 Nick Clifton <nickc@redhat.com>
4229 * config/mn10300/mn10300.c: Include tm-constrs.h.
4230 (struct liw_data): New data structure describing an LIW candidate
4232 (extract_bundle): Use struct liw_data. Allow small integer
4233 operands for some instructions.
4234 (check_liw_constraints): Use struct liw_data. Remove swapped
4235 parameter. Add comments describing the checks. Fix bug when
4236 assigning the source of liw1 to the source of liw2.
4237 (liw_candidate): Delete. Code moved into extract_bundle.
4238 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4240 * config/mn10300/predicates.md (liw_operand): New predicate.
4241 Allows registers and small integer constants.
4242 * config/mn10300/constraints.md (O): New constraint. Accetps
4243 integers in the range -8 to +7 inclusive.
4244 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4245 for moving a small integer into a register. Give this alternative
4247 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4248 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4249 using the J,K,L and M constraints,
4250 (liw): Remove SI mode on second operands to allow for HI and QI
4252 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
4255 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4258 * combine.c (cant_combine_insn_p): Check zero/sign extended
4261 2011-02-15 Richard Guenther <rguenther@suse.de>
4263 PR tree-optimization/47743
4264 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4265 for a non-type-compatible VN lookup bail out.
4267 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4269 * config/fr30/constraints.md: New file.
4270 * config/fr30/fr30.md: Include it.
4271 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4272 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4273 (EXTRA_CONSTRAINT): Delete.
4275 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4277 * config/frv/constraints.md: New file.
4278 * config/frv/predicates.md: Include it.
4279 * config/frv/frv.c (reg_class_from_letter): Delete.
4280 (frv_option_override): Don't initialize it.
4281 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4282 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4283 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4284 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4285 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4286 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4287 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4288 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4289 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4290 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4291 (REG_CLASS_FROM_CONSTRAINT): Delete.
4293 2011-02-15 Jakub Jelinek <jakub@redhat.com>
4296 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4297 if frame size is 0 in a leaf function.
4299 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4302 * config/alpha/host-osf.c: New file.
4303 * config/alpha/x-osf: New file.
4304 * config.host (alpha*-dec-osf*): Use it.
4306 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4308 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4309 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4310 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4311 (rx_mode_dependent_address_p): ...this. Make static. Change argument
4313 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4315 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4317 * config/stormy16/constraints.md: New file.
4318 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4319 Use satisfies_constraint_Q and satisfies_constraint_R.
4320 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4322 (xstormy16_legitiamte_address_p): Declare.
4323 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4324 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4325 (EXTRA_CONSTRAINT): Delete.
4326 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4328 (xstormy16_extra_constraint_p): Delete.
4330 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
4332 PR tree-optimization/46494
4333 * loop-unroll.c (split_edge_and_insert): Adjust comment.
4334 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4335 (pass_rtl_loop_done): Add TODO_verify_flow.
4336 * fwprop.c (pass_rtl_fwprop): Likewise.
4337 * modulo-sched.c (pass_sms): Likewise.
4338 * tree-ssa-dom.c (pass_dominator): Likewise.
4339 * tree-ssa-loop-ch.c (pass_ch): Likewise.
4340 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4341 (pass_tree_loop_done): Likewise.
4342 * tree-ssa-pre.c (execute_pre): Likewise.
4343 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4344 * tree-ssa-sink.c (pass_sink_code): Likewise.
4345 * tree-vrp.c (pass_vrp): Likewise.
4347 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4349 * config/v850/constraints.md: New file.
4350 * config/v850/v850.md: Include it.
4351 * config/v850/predicates.md (reg_or_0_operand): Use
4352 satisfies_constraint_G.
4353 (special_symbolref_operand): Use satisfies_constraint_K.
4354 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4355 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4356 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4357 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4358 (EXTRA_CONSTRAINT): Delete.
4359 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4360 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4361 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
4363 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4366 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4369 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4371 * config/mcore/constraints.md: New file.
4372 * config/mcore/mcore.md: Include it.
4373 * config/mcore/mcore.c (reg_class_from_letter): Delete.
4374 * config/mcore/mcore.h (reg_class_from_letter): Delete.
4375 (REG_CLASS_FROM_LETTER): Delete.
4376 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4377 insn_const_int_ok_for_constraint.
4378 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4379 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4380 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4381 (EXTRA_CONSTRAINT): Delete.
4383 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4386 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4387 (IS_SIGHANDLER): Define.
4388 (sparc64_is_sighandler): New function, split off from
4389 sparc64_fallback_frame_state.
4390 (sparc_is_sighandler): New function, split off from
4391 sparc_fallback_frame_state.
4392 (sparc64_fallback_frame_state): Merge with ...
4393 (sparc_fallback_frame_state): ... this into ...
4394 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
4395 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
4396 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
4397 stack instead of hardcoded offsets.
4399 2011-02-14 Andriy Gapon <avg@freebsd.org>
4402 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4404 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4406 * configure: Regenerate.
4408 2011-02-12 Joseph Myers <joseph@codesourcery.com>
4411 * gcc.c (asm_options): Correct spec matching --target-help.
4413 2011-02-12 Martin Jambor <mjambor@suse.cz>
4415 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
4416 to gimple call error.
4418 2011-02-12 Mike Stump <mikestump@comcast.net>
4420 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
4421 comments in backslash regions.
4423 2011-02-12 Mike Stump <mikestump@comcast.net>
4424 Jakub Jelinek <jakub@redhat.com>
4425 Iain Sandoe <iains@gcc.gnu.org>
4428 * dwarf2out.c (output_cfa_loc): When required, apply the
4429 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
4430 (output_loc_sequence): Likewise.
4431 (output_loc_operands_raw): Likewise.
4432 (output_loc_sequence_raw): Likewise.
4433 (output_cfa_loc): Likewise.
4434 (output_loc_list): Suppress register number adjustment when
4435 calling output_loc_sequence()
4436 (output_die): Likewise.
4438 2011-02-12 Anatoly Sokolov <aesok@post.ru>
4440 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4442 * config/xtensa/xtensa.c (xtensa_register_move_cost,
4443 xtensa_memory_move_cost): New functions.
4444 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
4446 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
4449 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
4450 in the current directory.
4451 * configure: Rebuilt.
4453 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4455 * config/darwin.c (darwin_override_options): Add a hunk missed
4456 from the commit of r168571. Trim comment line lengths and
4457 correct indents of the preceding block.
4459 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4461 * gcc.c (driver_handle_option): Concatenate the argument to -F with
4464 2011-02-11 Joseph Myers <joseph@codesourcery.com>
4466 * common.opt (nostartfiles): New Driver option.
4468 2011-02-11 Xinliang David Li <davidxl@google.com>
4470 PR tree-optimization/47707
4471 * tree-chrec.c (convert_affine_scev): Keep type precision.
4473 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
4475 PR tree-optimization/47420
4476 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
4478 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
4480 PR rtl-optimization/47614
4481 * rtl.h (check_for_inc_dec): Declare.
4482 * dse.c (check_for_inc_dec): Externalize...
4483 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
4484 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
4486 2011-02-11 Joseph Myers <joseph@codesourcery.com>
4489 * gcc.c (main): Do not compile inputs if there were errors in
4491 * opts-common.c (read_cmdline_option): Check for wrong language
4492 after other error checks.
4494 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
4496 * cgraph.c: Fix comment typos.
4497 * cgraph.h: Likewise.
4498 * cgraphunit.c: Likewise.
4499 * ipa-cp.c: Likewise.
4500 * ipa-inline.c: Likewise.
4501 * ipa-prop.c: Likewise.
4502 * ipa-pure-const.c: Likewise.
4503 * ipa-ref.c: Likewise.
4504 * ipa-reference.c: Likewise.
4506 2011-02-11 Jakub Jelinek <jakub@redhat.com>
4509 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
4511 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4514 * doc/sourcebuild.texi (Require Support): Document
4515 dg-require-ascii-locale.
4517 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
4519 * doc/lto.texi (Write summary): Fix missing parentheses.
4521 2011-02-10 DJ Delorie <dj@redhat.com>
4523 * config/m32c/m32c.c (m32c_option_override): Disable
4524 -fcombine-stack-adjustments until flag value tracking and compare
4525 optimization can be rewritten.
4527 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
4529 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
4531 (PROCESSOR_DEFAULT64): Likewise.
4533 2011-02-10 Richard Henderson <rth@redhat.com>
4535 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
4536 change from 2011-02-03.
4537 * config/rx/rx.c (flags_from_code): Likewise.
4538 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
4539 is valid, n/pz otherwise.
4540 (rx_select_cc_mode): Return CCmode if Y is not zero.
4542 2011-02-10 Richard Guenther <rguenther@suse.de>
4544 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
4546 2011-02-10 Richard Guenther <rguenther@suse.de>
4548 PR tree-optimization/47677
4549 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
4551 2011-02-10 Jakub Jelinek <jakub@redhat.com>
4554 * combine.c (make_compound_operation): Only change shifts into
4555 multiplication for SCALAR_INT_MODE_P.
4557 2011-02-10 Jie Zhang <jie@codesourcery.com>
4561 2011-02-05 Jie Zhang <jie@codesourcery.com>
4563 * web.c (entry_register): Don't clobber the number of the
4564 first uninitialized reference in used[].
4566 2011-02-09 Richard Guenther <rguenther@suse.de>
4568 PR tree-optimization/47664
4569 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
4572 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
4576 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
4578 (PROCESSOR_DEFAULT64): Same.
4579 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
4581 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4583 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
4585 2011-02-09 Martin Jambor <mjambor@suse.cz>
4588 * tree-sra.c (struct access): New flags grp_scalar_read and
4589 grp_scalar_write. Changed description of assignment read and write
4591 (dump_access): Dump new flags, reorder all of them.
4592 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
4593 to detect multiple scalar reads.
4594 (analyze_access_subtree): Use the new scalar read write flags instead
4595 of the old flags. Adjusted comments.
4597 2011-02-08 DJ Delorie <dj@redhat.com>
4600 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
4603 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4605 * config/m68k/uclinux.opt: New.
4606 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
4608 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4610 * config/cris/elf.opt (sim): New Driver option.
4612 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4614 * config/xtensa/elf.opt: New.
4615 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
4617 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4619 * config/vax/elf.opt: New.
4620 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
4622 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4624 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
4626 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4628 * config/gnu-user.opt: New.
4629 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4630 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
4631 *-*-uclinux*): Use gnu-user.opt.
4633 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
4635 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
4636 * config/i386/gnu.h (CPP_SPEC): Likewise.
4638 2011-02-08 Ian Lance Taylor <iant@google.com>
4640 * common.opt (fcx-limited-range): Add SetByCombined flag.
4641 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
4642 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
4643 (fassociative-math, freciprocal-math): Likewise.
4644 (funsafe-math-optimizations): Likewise.
4645 * opth-gen.awk: Handle SetByCombined.
4646 * optc-gen.awk: Likewise.
4647 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
4648 (set_unsafe_math_optimizations_flags): Likewise.
4649 * doc/options.texi (Option properties): Document SetByCombined.
4651 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4653 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
4654 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
4655 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
4656 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
4657 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
4659 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
4661 PR tree-optimization/46834
4662 PR tree-optimization/46994
4663 PR tree-optimization/46995
4664 * graphite-sese-to-poly.c (used_outside_reduction): New.
4665 (detect_commutative_reduction): Call used_outside_reduction.
4666 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
4667 translate_scalar_reduction_to_array only when at least one
4668 loop-phi/close-phi tuple has been detected.
4670 2011-02-08 Richard Guenther <rguenther@suse.de>
4673 * tree-vect-generic.c (expand_vector_operations_1): Update
4675 (expand_vector_operations): ... not here. Cleanup EH info
4676 and the CFG if required.
4678 2011-02-08 Richard Guenther <rguenther@suse.de>
4680 PR tree-optimization/47641
4681 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
4682 require type compatibility.
4684 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4686 * gimple-low.c (lower_function_body): Don't remove the location of
4687 the return statement here.
4688 (lower_gimple_return): Do it here instead but only if the return
4689 statement is actually used twice.
4691 2011-02-08 Richard Guenther <rguenther@suse.de>
4693 PR tree-optimization/47632
4694 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
4695 unused up_to_stmt parameter, return whether cfg-cleanup is
4696 necessary, remove EH info properly.
4697 (forward_propagate_into_gimple_cond): Adjust caller.
4698 (forward_propagate_into_cond): Likewise.
4699 (forward_propagate_comparison): Likewise.
4700 (tree_ssa_forward_propagate_single_use_vars): Make
4701 forward_propagate_comparison case similar to the two others.
4703 2011-02-08 Nick Clifton <nickc@redhat.com>
4705 * config/mn10300/mn10300.opt (mliw): New command line option.
4706 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
4707 (liw_bundling): New automaton.
4708 (liw): New attribute.
4709 (liw_op): New attribute.
4710 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
4711 (movsi_internal): Add LIW attributes.
4715 (addsi3): Separate register and immediate alternatives.
4720 (lshrsi3): Likewise.
4721 (ashrsi3): Likewise.
4723 * config/mn10300/mn10300.c (liw_op_names): New
4724 (mn10300_print_operand): Handle 'W' operand descriptor.
4725 (extract_bundle): New function.
4726 (check_liw_constraints): New function.
4727 (liw_candidate): New function.
4728 (mn10300_bundle_liw): New function.
4729 (mn10300_reorg): New function.
4730 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4731 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
4732 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
4733 __LIW__ or __NO_LIW__.
4734 * doc/invoke.texi: Describe the -mliw command line option.
4736 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4738 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
4739 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4740 pthread_mutex_unlock): Remove.
4741 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
4742 * config/pa/t-pa64: Likewise.
4743 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
4744 shared libc if not linking against libpthread.
4745 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4747 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
4750 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
4751 on 10.6 and later to ensure that we always use the unwinder from
4752 the system. Only add -no_compact_unwind when tarteting darwin
4755 2011-02-07 Steve Ellcey <sje@cup.hp.com>
4758 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
4759 (vec_interleave_lowv2sf): Ditto.
4760 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
4761 (vec_extract_oddv2sf): Ditto.
4763 2011-02-07 Mike Stump <mikestump@comcast.net>
4766 Add __ieee_divdc3 entry point.
4767 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
4769 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
4770 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
4771 * config/darwin.c (darwin_rename_builtins): Add.
4772 * config/darwin-protos.h (darwin_rename_builtins): Add.
4774 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4777 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
4780 2011-02-07 Mike Stump <mikestump@comcast.net>
4782 * config/darwin.opt (mmacosx-version-min): Update default OS version.
4784 2011-02-07 Denis Chertykov <chertykov@gmail.com>
4787 * config/avr/libgcc.S (exit): Move .endfunc
4789 2011-02-07 Richard Guenther <rguenther@suse.de>
4791 PR tree-optimization/47615
4792 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
4793 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
4794 (run_scc_vn): Initialize it.
4795 (visit_reference_op_load): Use it.
4796 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
4798 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4800 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
4801 DImode trapping arithmetic libfuncs.
4803 2011-02-07 Richard Guenther <rguenther@suse.de>
4805 PR tree-optimization/47621
4806 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
4808 (execute_update_addresses_taken): ... here. Make it more
4809 conservative in what we accept.
4811 2011-02-06 Joseph Myers <joseph@codesourcery.com>
4813 * config/sparc/freebsd.h (ASM_SPEC): Define.
4814 * config/sparc/vxworks.h (ASM_SPEC): Define.
4816 2011-02-06 Joseph Myers <joseph@codesourcery.com>
4818 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
4820 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
4822 * doc/invoke.texi: Remove reference to compiler internals from
4825 * reg-notes.def: Remove REG_VALUE_PROFILE.
4826 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
4828 2011-02-05 Jakub Jelinek <jakub@redhat.com>
4831 * varasm.c (default_section_type_flags): If decl is NULL,
4832 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
4834 2011-02-05 Jie Zhang <jie@codesourcery.com>
4837 * web.c (entry_register): Don't clobber the number of the
4838 first uninitialized reference in used[].
4840 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
4842 PR tree-optimization/46194
4843 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
4844 (build_classic_dist_vector_1): Do not represent classic distance
4845 vectors when the access functions are variating in different loops.
4847 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4849 * config/mips/iris6.opt: New.
4850 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
4852 2011-02-04 Richard Henderson <rth@redhat.com>
4853 Steve Ellcey <sje@cup.hp.com>
4856 * config/ia64/predicates.md (mux1_brcst_element): New.
4857 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
4858 * config/ia64/ia64.c (ia64_unpack_assemble): New.
4859 (ia64_unpack_sign): New.
4860 (ia64_expand_unpack): Rewrite using new routines.
4861 (ia64_expand_widen_sum): Ditto.
4862 (ia64_expand_dot_prod_v8qi): Ditto.
4863 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
4864 routines, add endian check.
4865 (pmpy2_even): Rename from pmpy2_r, add endian check.
4866 (pmpy2_odd): Rename from pmpy2_l, add endian check.
4867 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
4868 (vec_widen_smult_hi_v4hi): Ditto.
4869 (vec_widen_umult_lo_v4hi): Ditto.
4870 (vec_widen_umult_hi_v4hi): Ditto.
4871 (mulv2si3): Change endian checks.
4872 (sdot_prodv4hi): Rewrite with new calls.
4873 (udot_prodv4hi): New.
4874 (vec_pack_ssat_v4hi): Add endian check.
4875 (vec_pack_usat_v4hi): Ditto.
4876 (vec_pack_ssat_v2si): Ditto.
4877 (max1_even): Rename from max1_r, add endian check.
4878 (max1_odd): Rename from max1_l, add endian check.
4879 (*mux1_rev): Format change.
4881 (*mux1_shuf): Ditto.
4883 (*mux1_brcst_v8qi): Use new predicate.
4884 (vec_extract_evenv8qi): Remove endian check.
4885 (vec_extract_oddv8qi): Ditto.
4886 (vec_interleave_lowv4hi): Format change.
4887 (vec_interleave_highv4hi): Ditto.
4888 (mix2_even): Rename from mix2_r, add endian check.
4889 (mix2_odd): Rename from mux2_l, add endian check.
4890 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
4891 (vec_extract_evenodd_helper): Format change.
4892 (vec_extract_evenv4hi): Remove endian check.
4893 (vec_extract_oddv4hi): Remove endian check.
4894 (vec_interleave_lowv2si): Format change.
4895 (vec_interleave_highv2si): Format change.
4896 (vec_initv2si): Remove endian check.
4897 (vecinit_v2si): Add endian check.
4898 (reduc_splus_v2sf): Add endian check.
4899 (reduc_smax_v2sf): Ditto.
4900 (reduc_smin_v2sf): Ditto.
4901 (vec_initv2sf): Remove endian check.
4902 (fpack): Add endian check.
4903 (fswap): Add endian check.
4904 (vec_interleave_highv2sf): Add endian check.
4905 (vec_interleave_lowv2sf): Add endian check.
4906 (fmix_lr): Add endian check.
4907 (vec_setv2sf): Format change.
4908 (*vec_extractv2sf_0_be): Use shift to extract operand.
4909 (*vec_extractv2sf_1_be): New.
4910 (vec_pack_trunc_v4hi): Add endian check.
4911 (vec_pack_trunc_v2si): Format change.
4913 2011-02-04 Jakub Jelinek <jakub@redhat.com>
4916 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
4917 do bb, locus and block comparison and disallow loads if it is not set.
4918 (stmt_is_replaceable_p): New function.
4919 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
4921 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
4922 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
4924 * tree-flow.h (stmt_is_replaceable_p): New prototype.
4926 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4928 * config/rs6000/xilinx.opt: New.
4929 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
4931 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4933 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
4935 2011-02-03 Anatoly Sokolov <aesok@post.ru>
4937 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
4938 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4939 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
4940 secondary_reload_info, xtensa_secondary_reload): Remove.
4941 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
4942 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4943 (xtensa_preferred_reload_class): Make static. Change return and
4944 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
4945 Use CONST_DOUBLE_P predicate.
4946 (xtensa_preferred_output_reload_class): New function.
4947 (xtensa_secondary_reload): Make static.
4949 2011-02-03 Joseph Myers <joseph@codesourcery.com>
4951 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
4952 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
4953 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
4955 2011-02-03 Jakub Jelinek <jakub@redhat.com>
4958 * output.h (SECTION_RELRO): Define.
4959 (SECTION_MACH_DEP): Adjust.
4960 (get_variable_section): New prototype.
4961 * varpool.c (varpool_finalize_named_section_flags): New function.
4962 (varpool_assemble_pending_decls): Call it.
4963 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
4964 * cgraphunit.c (cgraph_output_in_order): Call
4965 varpool_finalize_named_section_flags.
4966 * varasm.c (get_section): Allow section flags conflicts between
4967 relro and read-only sections if the section hasn't been declared yet.
4968 Set SECTION_OVERRIDE after diagnosing section type conflict.
4969 (get_variable_section): No longer static.
4970 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
4971 readonly sections that need relocations.
4972 (decl_readonly_section_1): New function.
4973 (decl_readonly_section): Use it.
4976 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
4977 Steve Ellcey <sje@cup.hp.com>
4980 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
4981 if section attribute used.
4983 2011-02-03 Jakub Jelinek <jakub@redhat.com>
4985 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
4986 * config/darwin.c (SECTION_NO_ANCHOR): Define.
4987 (darwin_init_sections): Remove assertion.
4989 2011-02-03 Nick Clifton <nickc@redhat.com>
4991 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
4993 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
4994 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
4995 instead of "n" and "pz".
4996 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
4999 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5002 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5003 fma, expand FMA_EXPR as fma{,f,l} call.
5006 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5007 copy them into a unsigned char variable and pass address of it to
5008 lto_output_data_stream.
5011 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5012 around backend_init_target and lang_dependent_init_target calls.
5013 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5014 (verify_cgraph_node): Don't call set_cfun here. Use
5015 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5016 Set error_found for incorrectly represented calls to thunks.
5018 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5021 PR rtl-optimization/43494
5022 * rtl.h (for_each_inc_dec_fn): New type.
5023 (for_each_inc_dec): Declare.
5024 * rtlanal.c (struct for_each_inc_dec_ops): New type.
5025 (for_each_inc_dec_find_inc_dec): New fn.
5026 (for_each_inc_dec_find_mem): New fn.
5027 (for_each_inc_dec): New fn.
5028 * dse.c (struct insn_size): Remove.
5029 (replace_inc_dec, replace_inc_dec_mem): Remove.
5030 (emit_inc_dec_insn_before): New fn.
5031 (check_for_inc_dec): Use it, along with for_each_inc_dec.
5032 (canon_address): Pass mem modes to cselib_lookup.
5033 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
5034 (cselib_lookup_from_insn): Likewise.
5035 (cselib_subst_to_values): Likewise.
5036 * cselib.c (find_slot_memmode): New var.
5037 (cselib_find_slot): New fn. Use it instead of
5038 htab_find_slot_with_hash everywhere.
5039 (entry_and_rtx_equal_p): Use find_slot_memmode.
5040 (autoinc_split): New fn.
5041 (rtx_equal_for_cselib_p): Rename and implement in terms of...
5042 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
5043 Deal with autoinc. Special-case recursion into MEMs.
5044 (cselib_hash_rtx): Likewise.
5045 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
5046 address and MEM modes.
5047 (cselib_subst_to_values): Add memmode, pass it on.
5049 (cselib_lookup): Add memmode argument, pass it on.
5050 (cselib_lookup_from_insn): Add memmode.
5051 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5052 (struct cselib_record_autoinc_data): New.
5053 (cselib_record_autoinc_cb): New fn.
5054 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
5055 mode to cselib_lookup. Reset autoinced REGs here instead of...
5056 (cselib_process_insn): ... here.
5057 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5059 (add_uses): Likewise, also to cselib_subst_to_values.
5060 (add_stores): Likewise.
5061 * sched-deps.c (add_insn_mem_dependence): Pass mode to
5062 cselib_subst_to_values.
5063 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
5064 * gcse.c (do_local_cprop): Adjusted.
5065 * postreload.c (reload_cse_simplify_set): Adjusted.
5066 (reload_cse_simplify_operands): Adjusted.
5067 * sel-sched-dump (debug_mem_addr_value): Pass mode.
5069 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5071 PR tree-optimization/45122
5072 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5073 unsafe assumptions when there's more than one loop exit.
5075 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5078 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5079 Document using vector double with the load/store builtins, and
5080 that the load/store builtins always use Altivec instructions.
5082 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5083 to use altivec memory instructions, even on VSX.
5084 (vector_altivec_store_<mode>): Ditto.
5086 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5089 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5090 V2DF, V2DI support to load/store overloaded builtins.
5092 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5093 altivec load/store builtins for V2DF/V2DI types.
5095 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5096 set avoid indexed addresses on power6 if -maltivec.
5097 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5098 vector_altivec_load/vector_altivec_store builtins.
5099 (altivec_expand_st_builtin): Ditto.
5100 (altivec_expand_builtin): Add VSX memory builtins.
5101 (rs6000_init_builtins): Add V2DI types to internal types.
5102 (altivec_init_builtins): Add support for V2DF/V2DI altivec
5103 load/store builtins.
5104 (rs6000_address_for_altivec): Insure memory address is appropriate
5107 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5108 vec_vsx_ld and vec_vsx_st.
5109 (vsx_store_<mode>): Ditto.
5111 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5112 variables to hold long long types for VSX vector memory builtins.
5113 (RS6000_BTI_unsigned_long_long): Ditto.
5114 (long_long_integer_type_internal_node): Ditti.
5115 (long_long_unsigned_type_internal_node): Ditti.
5117 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5118 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5119 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5121 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5123 (vec_vsx_st): Ditto.
5125 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5127 * config/pa/pa-hpux10.opt: New.
5128 * config/hpux11.opt (pthread): New Driver option.
5129 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5130 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5132 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5134 * config/ia64/vms.opt: New.
5135 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5137 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5140 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5141 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5142 generator functions.
5143 (vsx_floatuns<VSi><mode>2): Ditto.
5144 (vsx_fix_trunc<mode><VSi>2): Ditto.
5145 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5147 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5149 * config/i386/djgpp.opt (posix): New Driver option.
5151 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5153 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5154 Move to the unsupported targets list.
5156 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
5158 PR rtl-optimization/47525
5159 * df-scan.c: Update copyright years.
5160 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5161 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5163 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5165 * config/i386/sysv4.h (TARGET_VERSION): Remove.
5166 (SUBTARGET_RETURN_IN_MEMORY): Remove.
5167 (ASM_OUTPUT_ASCII): Remove.
5168 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5170 2011-02-02 Jeff Law <law@redhat.com>
5173 * reload.c (find_reloads_address): Handle reg+d address where both
5174 components are invalid by reloading the entire address.
5176 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5177 Richard Guenther <rguenther@suse.de>
5179 PR tree-optimization/40979
5181 * passes.c (init_optimization_passes): After LIM call copy_prop
5182 and DCE to clean up.
5183 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5185 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5187 PR tree-optimization/47576
5188 PR tree-optimization/47555
5189 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5190 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5191 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5192 * tree-scalar-evolution.c (follow_ssa_edge): Use
5193 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5195 2011-02-02 Richard Guenther <rguenther@suse.de>
5197 PR tree-optimization/47566
5198 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5200 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5204 * tree-inline.c (declare_return_variable): Remove unused caller
5209 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5210 * cfgexpand.c (account_used_vars_for_block): Use them.
5211 * tree-nrv.c (tree_nrv): Likewise.
5212 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5213 (dump_scope_block): Likewise.
5214 (remove_unused_locals): Likewise.
5218 * tree-inline.c (declare_return_variable): Add result decl to
5219 local decls only once.
5220 * gimple-low.c (record_vars_into): Mark newly-created variables
5223 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5229 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5231 (no_real_insns_p, schedule_block, set_priorities): Drop special
5232 treatment of boundary debug insns.
5233 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5234 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5235 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5236 (BOUNDARY_DEBUG_INSN_P): Likewise.
5237 (SCHEDULE_DEBUG_INSN_P): Likewise.
5238 * sched-rgn.c (init_ready_list): Drop special treatment of
5239 boundary debug insns.
5240 * final.c (rest_of_clean_state): Clear notes' BB.
5242 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5244 * config/openbsd.opt (assert=): New Driver option.
5246 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5248 * config/i386/nto.opt: New.
5249 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5251 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5253 * config/i386/netware.opt: New.
5254 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5256 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5258 * config/interix.opt (posix): New Driver option.
5260 2011-02-01 DJ Delorie <dj@redhat.com>
5262 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5264 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5267 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
5269 PR tree-optimization/47561
5270 * toplev.c (process_options): Print the Graphite flags. Add
5271 flag_loop_flatten to the list of options requiring Graphite.
5273 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5275 * config/i386/cygming.opt (posix): New Driver option.
5277 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5279 * config/arm/vxworks.opt: New.
5280 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5282 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5284 * config/alpha/elf.opt: New.
5285 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5286 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5288 2011-02-01 Richard Guenther <rguenther@suse.de>
5290 PR tree-optimization/47559
5291 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5292 store-motion on references that can throw.
5294 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
5296 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5297 * tree-pass.h (TDF_CSELIB): New macro.
5298 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5299 cselib_lookup): Check for it rather than for TDF_DETAILS.
5301 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
5304 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5307 * opts.c (finish_options): Don't add x_aux_base_name if it is
5310 2011-02-01 Richard Guenther <rguenther@suse.de>
5312 PR tree-optimization/47555
5314 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
5316 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5318 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
5321 * config/lm32/t-lm32: Add multilib for all CPU options.
5323 2011-02-01 Richard Guenther <rguenther@suse.de>
5325 PR tree-optimization/47541
5326 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5327 sure to have a field at offset zero.
5329 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5331 * config/arc/arc.opt (EB, EL): New Driver options.
5333 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5335 * config/alpha/osf5.opt: New.
5336 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5338 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5340 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5342 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
5344 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5346 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5347 is an alias of -floop-interchange and that it requires the
5348 Graphite infrastructure.
5349 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5350 flag_loop_interchange based on the value of flag_tree_loop_linear.
5352 2011-01-31 Jakub Jelinek <jakub@redhat.com>
5353 Richard Guenther <rguenther@suse.de>
5355 PR tree-optimization/47538
5356 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5357 type instead of r1type, except for comparisons. For right
5358 shifts and comparisons punt if there are mismatches in
5359 sizetype vs. non-sizetype types.
5361 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5363 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5366 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5368 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5370 * configure: Regenerate.
5372 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5374 * configure.ac (gcc_cv_ld_static_option): Define.
5375 (gcc_cv_ld_dynamic_option): Define.
5376 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5378 (HAVE_LD_STATIC_DYNAMIC): Update message.
5379 (LD_STATIC_OPTION): Define.
5380 (LD_DYNAMIC_OPTION): Define.
5381 * configure: Regenerate.
5382 * config.in: Regenerate.
5383 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5384 HAVE_LD_STATIC_DYNAMIC]: Use them.
5386 2011-01-31 Nick Clifton <nickc@redhat.com>
5388 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5389 registers inside interrupt handlers if the handler is not a leaf
5392 2011-01-31 Nick Clifton <nickc@redhat.com>
5394 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5395 reg_renumber returning an INVALID_REGNUM.
5397 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5400 * doc/install.texi: Document host options discarded when cross
5401 configuring target libraries.
5403 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5406 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5409 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5411 (no_real_insns_p, schedule_block, set_priorities): Drop special
5412 treatment of boundary debug insns.
5413 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5414 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5415 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5416 (BOUNDARY_DEBUG_INSN_P): Likewise.
5417 (SCHEDULE_DEBUG_INSN_P): Likewise.
5418 * sched-rgn.c (init_ready_list): Drop special treatment of
5419 boundary debug insns.
5420 * final.c (rest_of_clean-state): Clear notes' BB.
5422 2011-01-31 Alan Modra <amodra@gmail.com>
5424 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
5425 toc relative expressions as we do in print_operand_address.
5427 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
5429 * doc/extend.texi: Follow spelling conventions.
5430 * doc/invoke.texi: Fix a typo.
5432 2011-01-30 Joseph Myers <joseph@codesourcery.com>
5434 * config/hpux11.opt: New.
5435 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
5436 ia64*-*-hpux*): Use hpux11.opt.
5438 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
5440 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
5443 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5445 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
5448 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5450 * doc/install.texi (Binaries): Remove outdated reference for
5451 Motorola 68HC11/68HC12 downloads.
5453 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5455 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
5458 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5461 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
5464 2011-01-28 Ahmad Sharif <asharif@google.com>
5466 * value-prof.c (check_counter): Corrected error message.
5468 2011-01-29 Jie Zhang <jie@codesourcery.com>
5470 * config/arm/arm.c (arm_legitimize_reload_address): New.
5471 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5472 arm_legitimize_reload_address.
5473 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
5475 2011-01-28 Ian Lance Taylor <iant@google.com>
5477 * godump.c (go_define): Ignore macros whose definitions include
5478 two adjacent operands.
5480 2011-01-28 Jakub Jelinek <jakub@redhat.com>
5483 * varasm.c (force_const_mem): Store copy of x in desc->constant
5484 instead of x itself.
5485 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
5486 itself into REG_EQUAL note.
5488 2011-01-28 Joseph Myers <joseph@codesourcery.com>
5490 * config/freebsd.opt (posix, rdynamic): New Driver options.
5492 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5494 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
5496 * configure: Regenerate.
5498 2011-01-27 Joseph Myers <joseph@codesourcery.com>
5500 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
5501 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
5503 2011-01-27 Anatoly Sokolov <aesok@post.ru>
5505 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
5506 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
5507 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5508 (s390_preferred_reload_class): Make static. Change return and
5509 'rclass' argument type to reg_class_t.
5511 2011-01-27 Jan Hubicka <jh@suse.cz>
5514 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
5515 (process_function_and_variable_attributes): Check defined weakrefs.
5517 2011-01-27 Martin Jambor <mjambor@suse.cz>
5519 PR tree-optimization/47228
5520 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
5521 build_ref_for_offset.
5523 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5525 * config/spu/spu-elf.h (ASM_SPEC): Remove.
5527 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
5529 PR rtl-optimization/46856
5530 * postreload.c (reload_combine_recognize_const_pattern): Do not
5531 separate cc0 setter and user on cc0 targets.
5533 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
5536 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
5537 passed a VOID_TYPE expression, immediately emit an error and
5538 return error_mark_node.
5540 2011-01-26 Jeff Law <law@redhat.com>
5542 PR rtl-optimization/47464
5543 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
5544 rather than may_trap_p as needed.
5546 2011-01-26 DJ Delorie <dj@redhat.com>
5548 PR rtl-optimization/46878
5549 * combine.c (insn_a_feeds_b): Check for the implicit cc0
5550 setter/user dependency as well.
5552 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
5554 PR rtl-optimization/44469
5555 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
5556 after removing trivially dead basic blocks.
5558 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5560 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
5561 * config/frv/frv.h (LINK_SPEC): Likewise.
5562 * config/i386/netware.h (LINK_SPEC): Likewise.
5563 * config/m68k/linux.h (ASM_SPEC): Likewise.
5564 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
5565 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5566 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5567 * config/sparc/linux.h (ASM_SPEC): Likewise.
5568 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5569 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5571 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5573 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
5574 * config/frv/frv.h (ASM_SPEC): Likewise.
5575 * config/m68k/linux.h (ASM_SPEC): Likewise.
5576 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5577 * config/rs6000/linux64.h (ASM_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 (LINK_SPEC): Remove %{YP,*}.
5586 * config/frv/frv.h (LINK_SPEC): Likewise.
5587 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5589 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5591 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
5592 * config/frv/frv.h (ASM_SPEC): Likewise.
5593 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
5594 * config/m68k/linux.h (ASM_SPEC): Likewise.
5595 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5596 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5597 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5598 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
5599 * config/sparc/linux.h (ASM_SPEC): Likewise.
5600 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5601 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5602 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
5604 2011-01-26 Steve Ellcey <sje@cup.hp.com>
5607 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
5609 (vec_extract_evenodd_help): Ditto.
5610 (vec_extract_evenv4hi): Ditto.
5611 (vec_extract_oddv4hi): Ditto.
5612 (vec_interleave_lowv2si): Ditto.
5613 (vec_interleave_highv2si): Ditto.
5614 (vec_extract_evenv2si): Ditto.
5615 (vec_extract_oddv2si: Ditto.
5616 (vec_pack_trunc_v2si): Ditto.
5618 2011-01-22 Jan Hubicka <jh@suse.cz>
5621 * cgraph.h (cgraph_local_info): New field can_change_signature.
5622 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
5623 signature can change.
5624 (ipcp_estimate_growth): Call sequence simplify only if calle signature
5626 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
5627 (cgraph_function_versioning): We can not change signature of functions
5628 that don't allow that.
5629 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
5630 (lto_input_node): Likewise.
5631 * ipa-inline.c (compute_inline_parameters): Compute
5632 local.can_change_signature.
5633 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
5634 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
5635 functions that can not change signature.
5636 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
5637 init_cumulative_args): Do not use local calling conventions
5638 for functions that can not change signature.
5640 2011-01-22 Jan Hubicka <jh@suse.cz>
5642 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
5644 2011-01-26 Richard Guenther <rguenther@suse.de>
5646 PR tree-optimization/47190
5647 * cgraphunit.c (process_common_attributes): New function.
5648 (process_function_and_variable_attributes): Use it.
5650 2011-01-26 Richard Guenther <rguenther@suse.de>
5653 * cgraphbuild.c (record_eh_tables): Record reference to personality
5656 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
5659 * sel-sched.c (moveup_expr): Don't let debug insns prevent
5660 non-debug insns from moving up.
5662 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5665 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
5666 t-dlldir{,-x} fragment for build and add it to tmake_file.
5667 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
5668 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
5669 * config/i386/t-dlldir: New file.
5670 (SHLIB_DLLDIR): Define.
5671 * config/i386/t-dlldir-x: New file.
5672 (SHLIB_DLLDIR): Define.
5673 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
5674 (SHLIB_INSTALL): Use it.
5676 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
5679 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
5680 lower bound of the allowed Thumb-2 coprocessor load/store
5681 index range to -256. Add explaining comment.
5683 2011-01-25 Ian Lance Taylor <iant@google.com>
5685 * godump.c (go_define): Improve lexing of macro expansion to only
5686 accept expressions which match Go spec.
5688 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5691 * tree.c (handle_dll_attribute): Handle it.
5692 * doc/extend.texi (@item dllexport): Mention it.
5693 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
5695 2011-01-25 Ian Lance Taylor <iant@google.com>
5697 PR tree-optimization/26854
5698 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
5699 (decl_jump_unsafe): Move higher in file, with no other change.
5700 (bind): Set has_jump_unsafe_decl if appropriate.
5701 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
5702 (check_earlier_gotos): Likewise.
5703 (c_check_switch_jump_warnings): Likewise.
5705 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
5707 * doc/invoke.texi (Warning Options): Add missing hyphen.
5708 (-fprofile-dir): Minor grammatical fixes.
5709 (-fbranch-probabilities): Likewise.
5711 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5715 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5717 (no_real_insns_p, schedule_block, set_priorities): Drop special
5718 treatment of boundary debug insns.
5719 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5720 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5721 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5722 (BOUNDARY_DEBUG_INSN_P): Likewise.
5723 (SCHEDULE_DEBUG_INSN_P): Likewise.
5724 * sched-rgn.c (init_ready_list): Drop special treatment of
5725 boundary debug insns.
5726 * final.c (rest_of_clean-state): Clear notes' BB.
5728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5730 * Makefile.in (LAMBDA_H): Removed.
5731 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
5732 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
5733 lambda-trans.o, and tree-loop-linear.o.
5734 (lto-symtab.o): Remove dependence on LAMBDA_H.
5735 (tree-loop-linear.o): Remove rule.
5736 (lambda-mat.o): Same.
5737 (lambda-trans.o): Same.
5738 (lambda-code.o): Same.
5739 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
5740 (tree-vect-slp.o): Same.
5741 * hwint.h (gcd): Moved here.
5742 (least_common_multiple): Same.
5743 * lambda-code.c: Removed.
5744 * lambda-mat.c: Removed.
5745 * lambda-trans.c: Removed.
5746 * lambda.h: Removed.
5747 * tree-loop-linear.c: Removed.
5748 * lto-symtab.c: Do not include lambda.h.
5749 * omega.c (gcd): Removed.
5750 * passes.c (init_optimization_passes): Remove pass_linear_transform.
5751 * tree-data-ref.c (print_lambda_vector): Moved here.
5752 (lambda_vector_copy): Same.
5753 (lambda_matrix_copy): Same.
5754 (lambda_matrix_id): Same.
5755 (lambda_vector_first_nz): Same.
5756 (lambda_matrix_row_add): Same.
5757 (lambda_matrix_row_exchange): Same.
5758 (lambda_vector_mult_const): Same.
5759 (lambda_vector_negate): Same.
5760 (lambda_matrix_row_negate): Same.
5761 (lambda_vector_equal): Same.
5762 (lambda_matrix_right_hermite): Same.
5763 * tree-data-ref.h: Do not include lambda.h.
5764 (lambda_vector): Moved here.
5765 (lambda_matrix): Same.
5766 (dependence_level): Same.
5767 (lambda_transform_legal_p): Removed declaration.
5768 (lambda_collect_parameters): Same.
5769 (lambda_compute_access_matrices): Same.
5770 (lambda_vector_gcd): Same.
5771 (lambda_vector_new): Same.
5772 (lambda_vector_clear): Same.
5773 (lambda_vector_lexico_pos): Same.
5774 (lambda_vector_zerop): Same.
5775 (lambda_matrix_new): Same.
5776 * tree-flow.h (least_common_multiple): Removed declaration.
5777 * tree-parloops.c (lambda_trans_matrix): Moved here.
5779 (LTM_ROWSIZE): Same.
5780 (LTM_COLSIZE): Same.
5781 (LTM_DENOMINATOR): Same.
5782 (lambda_trans_matrix_new): Same.
5783 (lambda_matrix_vector_mult): Same.
5784 (lambda_transform_legal_p): Same.
5785 * tree-pass.h (pass_linear_transform): Removed declaration.
5786 * tree-ssa-loop.c (tree_linear_transform): Removed.
5787 (gate_tree_linear_transform): Removed.
5788 (pass_linear_transform): Removed.
5789 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
5790 flag_loop_interchange.
5792 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5794 PR tree-optimization/47265
5795 PR tree-optimization/47443
5796 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
5797 if name still has some uses.
5799 2011-01-25 Martin Jambor <mjambor@suse.cz>
5801 PR tree-optimization/47382
5802 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
5803 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
5805 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
5807 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
5808 sjlj_except_unwind_info.
5810 2011-01-25 Richard Guenther <rguenther@suse.de>
5812 PR tree-optimization/47426
5813 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
5814 visible functions results escape.
5816 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5819 * config/arm/arm.c (any_sibcall_uses_r3): New function.
5820 (arm_get_frame_offsets): Use it.
5822 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5823 Jakub Jelinek <jakub@redhat.com>
5825 PR tree-optimization/47271
5826 * tree-if-conv.c (bb_postdominates_preds): New.
5827 (if_convertible_bb_p): Call bb_postdominates_preds.
5828 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
5829 (predicate_scalar_phi): Call bb_postdominates_preds.
5831 2011-01-25 Nick Clifton <nickc@redhat.com>
5833 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
5834 * config/rx/rx.c (rx_function_value): Likewise.
5835 (rx_promote_function_mode): Likewise.
5836 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
5837 in order to make it legitimate.
5838 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
5839 make sure that the first operand is the same as the result register.
5840 (addsi3_unspec): Delete.
5841 (subdi3): Do not accept immediate operands.
5842 (subdi3_internal): Likewise.
5844 2011-01-25 Jeff Law <law@redhat.com>
5846 PR rtl-optimization/37273
5847 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5848 handle them like argument loads from stack slots. Do not double
5849 count memory for memory constants and argument loads from stack slots.
5851 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5853 PR tree-optimization/47427
5854 PR tree-optimization/47428
5855 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5856 coalesce if the new root var would be TREE_READONLY.
5858 2011-01-25 Richard Guenther <rguenther@suse.de>
5861 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
5862 correct type for TBAA.
5864 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5866 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
5867 (close_phi_written_to_memory): Call for_each_index with
5868 dr_indices_valid_in_loop.
5870 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5872 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
5873 when it is initialized.
5875 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5877 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
5878 call to graphite_find_data_references_in_stmt.
5879 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
5880 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
5881 call to graphite_find_data_references_in_stmt.
5882 (analyze_drs_in_stmts): Same.
5883 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
5884 in which the scalar analysis of indices is performed.
5885 (create_data_ref): Same. Update call to dr_analyze_indices.
5886 (find_data_references_in_stmt): Update call to create_data_ref.
5887 (graphite_find_data_references_in_stmt): Same.
5888 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
5890 (create_data_ref): Same.
5891 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
5892 call to create_data_ref.
5894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5896 * graphite-sese-to-poly.c (build_poly_scop): Move
5897 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
5899 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5901 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
5902 VAR_DECL, PARM_DECL, and RESULT_DECL.
5904 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5906 * graphite-dependences.c (reduction_dr_1): Allow several reductions
5908 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
5909 that have already been marked as PBB_IS_REDUCTION.
5911 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5913 * graphite-scop-detection.c (same_close_phi_node): New.
5914 (remove_duplicate_close_phi): New.
5915 (make_close_phi_nodes_unique): New.
5916 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
5918 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5920 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
5921 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
5922 of both data references to be the same.
5924 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5926 * graphite-dependences.c (build_lexicographical_constraint): Remove
5928 (build_lexicographical_constraint): Adjust call to
5929 ppl_powerset_is_empty.
5930 (dependence_polyhedron): Same.
5931 (graphite_legal_transform_dr): Same.
5932 (graphite_carried_dependence_level_k): Same.
5933 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
5935 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
5937 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5939 * graphite-sese-to-poly.c
5940 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
5941 (close_phi_written_to_memory): New.
5942 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
5945 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5947 * doc/install.texi: Update the expected version number of PPL to 0.11.
5948 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
5949 #if PPL_VERSION_MINOR < 11.
5951 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5953 * graphite-dependences.c: Include graphite-cloog-util.h.
5954 (new_poly_ddr): Inlined into dependence_polyhedron.
5955 (free_poly_ddr): Moved close by new_poly_ddr.
5956 (dependence_polyhedron_1): Renamed dependence_polyhedron.
5957 Early return NULL when ppl_powerset_is_empty returns true.
5958 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
5959 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
5960 (graphite_legal_transform_dr): Call new_poly_ddr.
5961 (graphite_carried_dependence_level_k): Same.
5962 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
5963 (dot_transformed_deps_stmt_1): Removed.
5964 (dot_deps_stmt_1): Call dot_deps_stmt_2.
5965 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
5966 (dot_deps_1): Call dot_deps_2.
5967 * Makefile.in (graphite-dependences.o): Add missing dependence on
5968 graphite-cloog-util.h.
5970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5972 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
5973 (build_lexicographical_constraint): Same.
5974 (dependence_polyhedron_1): Same.
5975 (graphite_legal_transform_dr): Same.
5976 (graphite_carried_dependence_level_k): Same.
5977 * graphite-ppl.c (ppl_powerset_is_empty): New.
5978 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
5979 * tree-data-ref.c (dump_data_reference): Print the basic block index.
5981 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5983 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
5984 the "a followed by b" relation and document it.
5986 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5988 * graphite-dependences.c (build_lexicographical_constraint): Stop the
5989 iteration when the bag of constraints is empty.
5991 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5993 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
5995 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5997 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
5998 nest and two loop depths as parameters.
5999 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6000 lst_perfect_nestify.
6002 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6004 * graphite-dependences.c (print_pddr): Call
6005 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6007 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6009 * graphite-ppl.c (debug_gmp_value): New.
6010 * graphite-ppl.h (debug_gmp_value): Declared.
6012 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
6014 * doc/install.texi: Document availability of cloog-0.16.
6016 2011-01-25 Vladimir Kargov <kargov@gmail.com>
6018 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6019 invalid postdominance info.
6021 2011-01-24 Jan Hubicka <jh@suse.cz>
6024 * doc/extend.texi (weak pragma): Drop claim that it must
6025 appear before definition.
6026 * varasm.c (merge_weak, declare_weak): Only sanity check
6027 that DECL is not output at a time it is declared weak.
6029 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
6031 * machmode.def: Fixed comments.
6033 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
6035 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6037 2011-01-24 Paul Koning <ni1d@arrl.net>
6039 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6042 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
6045 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6046 (block_info): Add scanned and prev.
6047 (move_or_delete_vzeroupper_2): Return if the basic block
6048 has been scanned and the upper 128bit state is unchanged
6050 (move_or_delete_vzeroupper_1): Return true if the exit
6052 (move_or_delete_vzeroupper): Visit basic blocks using the
6053 work-list based algorithm based on vt_find_locations in
6056 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6058 2011-01-24 Nick Clifton <nickc@redhat.com>
6060 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6061 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6062 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
6063 then define __v850e1__.
6064 * doc/invoke.texi: Document -mv850es.
6066 2011-01-24 Richard Henderson <rth@redhat.com>
6068 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6069 compound unordered comparisons.
6070 * config/rx/rx.c (rx_split_fp_compare): Remove.
6071 * config/rx/rx-protos.h: Update.
6072 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6073 (cbranchsf4): Don't call rx_split_fp_compare.
6074 (*cbranchsf4): Use rx_split_cbranch.
6075 (*cmpsf): Don't accept "i" constraint.
6076 (*conditional_branch): Only valid after reload.
6077 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
6079 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6082 * config/rs6000/altivec.md (vector constant splitters): Add
6083 support for creating vector single precision constants if -mvsx is
6084 used and we would create the constant using Altivec primitives.
6086 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
6087 Richard Sandiford <rdsandiford@googlemail.com>
6089 PR rtl-optimization/47166
6090 * reload1.c (emit_reload_insns): Disable the spill_reg_store
6091 mechanism for PRE_MODIFY and POST_MODIFY.
6092 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6095 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
6097 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6099 2011-01-22 Jan Hubicka <jh@suse.cz>
6102 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6104 2011-01-22 Jan Hubicka <jh@suse.cz>
6106 PR tree-optimization/43884
6108 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6109 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6111 2011-01-22 Anatoly Sokolov <aesok@post.ru>
6113 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6114 * config/s390/s390.c (s390_register_move_cost,
6115 s390_memory_move_cost): New.
6116 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6118 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6121 * except.c (sjlj_assign_call_site_values): Move setting the
6122 crtl->uses_eh_lsda flag to ...
6123 (sjlj_mark_call_sites): ... here.
6124 (sjlj_emit_function_enter): Support NULL dispatch label.
6125 (sjlj_build_landing_pads): In a function with no landing pads
6126 that still has must-not-throw regions, generate code to register
6127 a personality function with empty LSDA.
6129 2011-01-21 Richard Henderson <rth@redhat.com>
6131 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6133 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6135 * compare-elim.c: New file.
6136 * Makefile.in (OBJS-common): Add it.
6137 (compare-elim.o): New.
6138 * common.opt (fcompare-elim): New.
6139 * opts.c (default_options_table): Add OPT_fcompare_elim.
6140 * tree-pass.h (pass_compare_elim_after_reload): New.
6141 * passes.c (init_optimization_passes): Add it.
6142 * recog.h: Protect against re-inclusion.
6143 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6144 * doc/invoke.texi (-fcompare-elim): Document it.
6145 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6146 * doc/tm.texi: Rebuild.
6148 2011-01-22 Nick Clifton <nickc@redhat.com>
6150 * config/rx/rx.md (cstoresf4): Pass comparison operator to
6151 rx_split_fp_compare.
6153 2011-01-22 Nick Clifton <nickc@redhat.com>
6155 * config/rx/rx.md (UNSPEC_CONST): New.
6156 (deallocate_and_return): Wrap the amount popped off the stack in
6157 an UNSPEC_CONST in order to stop it being rejected by
6158 -mmax-constant-size.
6159 (pop_and_return): Add a "(return)" rtx.
6160 (call): Drop the immediate operand.
6161 (call_internal): Likewise.
6162 (call_value): Likewise.
6163 (call_value_internal): Likewise.
6164 (sibcall_internal): Likewise.
6165 (sibcall_value_internal): Likewise.
6166 (sibcall): Likewise. Generate an explicit call using
6168 (sibcall_value): Likewise.
6169 (mov<>): FAIL if a constant operand is not legitimate.
6170 (addsi3_unpsec): New pattern.
6172 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6173 (ok_for_max_constant): New function.
6174 (gen_safe_add): New function.
6175 (rx_expand_prologue): Use gen_safe_add.
6176 (rx_expand_epilogue): Likewise.
6177 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
6180 2011-01-21 Jeff Law <law@redhat.com>
6182 PR tree-optimization/47053
6183 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6184 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6185 statements are deleted.
6186 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6187 is nonempty, then purge dead edges and cleanup the CFG.
6189 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6193 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6195 * tree-dfa.c (create_var_ann): Mark variable as used.
6197 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6200 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6201 notes from other section in hot/cold partitioning even if
6202 last_action is -3. Increment call_site_base.
6204 PR rtl-optimization/47366
6205 * fwprop.c (forward_propagate_into): Return bool. If
6206 any changes are made, -fnon-call-exceptions is used and
6207 REG_EH_REGION note is present, call purge_dead_edges
6208 and return true if it purged anything.
6209 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6210 any EH edges were purged.
6212 2011-01-21 Jeff Law <law@redhat.com>
6214 PR rtl-optimization/41619
6215 * caller-save.c (setup_save_areas): Break out code to determine
6216 which hard regs are live across calls by examining the reload chains
6217 so that it is always used.
6218 Eliminate code which checked REG_N_CALLS_CROSSED.
6220 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6222 PR tree-optimization/47355
6223 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6224 NOP has non-debug uses beyond PHIs in new_bb.
6226 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6229 * cfgexpand.c (account_used_vars_for_block): Only account vars
6230 that are annotated as used.
6231 (estimated_stack_frame_size): Don't set TREE_USED.
6232 * tree-dfa.c (create_var_ann): Mark variable as used.
6234 2011-01-21 Richard Guenther <rguenther@suse.de>
6237 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6239 2011-01-21 Richard Guenther <rguenther@suse.de>
6241 PR tree-optimization/47365
6242 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6243 (vn_reference_lookup_pieces): Adjust.
6244 (vn_reference_lookup): Likewise.
6245 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6246 (vn_reference_lookup_3): Only look through kills if in
6247 VN_WALKREWRITE mode.
6248 (vn_reference_lookup_pieces): Adjust.
6249 (vn_reference_lookup): Likewise.
6250 (visit_reference_op_load): Likewise.
6251 (visit_reference_op_store): Likewise.
6252 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6253 (compute_avail): Likewise.
6254 (eliminate): Likewise.
6256 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6258 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6259 DECL_IGNORED_P non-reg vars if they are used.
6261 PR tree-optimization/47391
6262 * varpool.c (const_value_known_p): Return false if
6265 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
6268 * config/i386/i386.c (ix86_local_alignment): Handle
6269 case for va_list_type_node is nil.
6270 (ix86_canonical_va_list_type): Likewise.
6272 2011-01-21 Alan Modra <amodra@gmail.com>
6274 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6275 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6277 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6279 * config/arm/arm.md (define_attr type): Rename f_load
6280 and f_store to f_fpa_load and f_fpa_store. Update.
6281 (write_conflict): Deal with rename fallout.
6282 (*push_fp_multi): Likewise.
6283 * config/arm/fpa.md (f_load): Use f_fpa_load.
6284 (f_store): Use f_fpa_store.
6285 (*movsf_fpa): Likewise.
6286 (*movdf_fpa): Likewise.
6287 (*movxf_fpa): Likewise.
6288 (*thumb2_movsf_fpa): Likewise.
6289 (*thumb2_movdf_fpa): Likewise.
6290 (*thumb2_movxf_fpa): Likewise.
6291 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6292 f_loadd and f_stored.
6293 (*thumb2_movdi_vfp): Likewise.
6294 (*thumb2_movsf_vfp): Fix attribute to f_loads.
6295 (*thumb2_movsi_vfp): Likewise.
6296 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6297 Use f_loads instead of f_load.
6298 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6300 2011-01-20 Anatoly Sokolov <aesok@post.ru>
6302 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6303 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6304 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6305 (xtensa_mode_dependent_address_p): New function.
6306 (constantpool_address_p): Make static. Change return type to bool.
6307 Change argument type to const_rtx. Use CONST_INT_P predicate.
6309 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
6312 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6314 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6317 * cfgexpand.c (expand_debug_expr): Instead of generating
6318 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6321 2011-01-20 Richard Guenther <rguenther@suse.de>
6324 * tree-inline.c (remap_gimple_op_r): Recurse manually for
6325 the pointer operand of MEM_REFs.
6327 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6329 PR tree-optimization/46130
6330 * ipa-split.c (consider_split): If return_bb contains non-virtual
6331 PHIs other than for retval or if split_function would not adjust it,
6334 2011-01-20 Richard Guenther <rguenther@suse.de>
6336 PR tree-optimization/47167
6337 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6338 Revert previous change, only avoid enumeral type changes.
6340 2011-01-19 Mike Stump <mikestump@comcast.net>
6342 * doc/tm.texi.in (BRANCH_COST): Englishify.
6343 * doc/tm.texi (BRANCH_COST): Likewise.
6345 2011-01-19 Dodji Seketeli <dodji@redhat.com>
6348 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
6349 (gen_scheduled_generic_parms_dies): New functions.
6350 (gen_struct_or_union_type_die): Schedule template parameters DIEs
6351 generation for the end of CU compilation.
6352 (dwarf2out_finish): Generate template parameters DIEs here.
6354 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6357 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6358 debug bind stmt on merge edges.
6360 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6364 * function.c (instantiate_expr): Instantiate incoming rtl of
6365 implicit arguments, and recurse on VALUE_EXPRs.
6366 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6367 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6369 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6371 * c-parser.c (c_parser_for_statement): Initialize
6372 collection_expression.
6374 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6376 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6378 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6380 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6381 (LINK_SHLIB_SPEC): Don't use %(link_path).
6382 (SUBTARGET_EXTRA_SPECS): Remove link_path.
6384 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6386 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6387 (NO_SHARED_LIB_SUPPORT): Remove.
6388 (LINK_SHLIB_SPEC): Remove one conditional definition.
6390 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6392 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6394 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6395 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6396 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6397 %{call_shared} and conditionals on these options not being passed.
6398 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6401 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6403 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6406 * ipa-split.c: Spelling fixes.
6408 2011-01-19 Richard Henderson <rth@redhat.com>
6410 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
6411 (*mulsi3): Likewise.
6413 * longlong.h [__mn10300__] (count_leading_zeros): New.
6414 [__mn10300__] (umul_ppmm, smul_ppmm): New.
6415 [__mn10300__] (add_ssaaaa, subddmmss): New.
6416 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
6417 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
6419 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6421 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
6423 2011-01-19 Richard Henderson <rth@redhat.com>
6425 * config/mn10300/mn10300.md (addsi3_flags): New.
6426 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
6427 (subsi3_flags, subc_internal, subdi3): New.
6428 (subdi3_internal, *subdi3_degenerate): New.
6429 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
6431 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
6432 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
6433 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
6434 * config/mn10300/mn10300-protos.h: Update.
6435 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
6436 (return_ret): Likewise. Rename from return_internal_regs.
6437 (return_internal): Remove.
6439 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
6440 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
6441 (mn10300_legitimate_constant_p): Likewise.
6442 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
6443 (mn10300_frame_size): New.
6444 (mn10300_expand_prologue): Use it.
6445 (mn10300_expand_epilogue): Likewise.
6446 (mn10300_initial_offset): Likewise.
6447 * config/mn10300/mn10300-protos.h: Update.
6448 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
6449 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
6450 (prologue, epilogue, return_internal): Tidy output code.
6451 (mn10300_store_multiple_operation, return): Likewise.
6452 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
6453 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
6454 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
6455 (load_pic, am33_load_pic): New.
6456 (mn10300_load_pic0, mn10300_load_pic1): New.
6458 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
6459 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
6460 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
6461 (cc_flags_for_mode, cc_flags_for_code): New.
6462 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
6463 overflow flag is not valid. Validate that the flags we need
6464 for the comparison are valid.
6465 (mn10300_output_cmp): Remove.
6466 (mn10300_output_add): New.
6467 (mn10300_select_cc_mode): Use cc_flags_for_code.
6468 (mn10300_split_cbranch): New.
6469 (mn10300_match_ccmode): New.
6470 (mn10300_split_and_operand_count): New.
6471 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
6473 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
6474 (addsi3): ... here. Use mn10300_output_add.
6475 (*addsi3_flags): New.
6476 (*am33_subsi3, *mn10300_subsi3): Merge...
6477 (subsi3): ... here. Use attribute isa.
6478 (*subsi3_flags): New.
6479 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
6481 (*am33_andsi3, *mn10300_andsi3): Merge...
6483 (*andsi3_flags): New.
6484 (andsi3 splitters): New.
6485 (*am33_iorsi3, *mn10300_iorsi3): Merge...
6487 (*iorsi3_flags): New.
6488 (*am33_xorsi3, *mn10300_xorsi3): Merge...
6490 (*xorsi3_flags): New.
6491 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
6492 (one_cmplsi2): ... here.
6493 (*one_cmplsi2_flags): New.
6494 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
6495 instead of "dax" in constraints. Use mn10300_split_cbranch.
6496 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
6497 use matching constraints to eliminate a self-comparison.
6498 (*integer_conditional_branch): Rename from integer_conditional_branch.
6499 Use int_mode_flags to match CC_REG.
6500 (*cbranchsi4_btst, *btstsi): New.
6501 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
6502 mn10300_split_cbranch.
6503 (*am33_cmpsf): Rename from am33_cmpsf.
6504 (*float_conditional_branch): Rename from float_conditional_branch.
6505 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
6506 (zero_extendqisi2): ... here.
6507 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
6508 (zero_extendhisi2): ... here.
6509 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
6510 (extendqisi2): ... here.
6511 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
6512 (extendhisi2): ... here.
6513 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
6514 (ashlsi3): ... here.
6515 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
6516 (lshrsi3): ... here.
6517 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
6518 (ashrsi3): ... here.
6519 (consecutive add peephole): Remove.
6520 * config/mn10300/predicates.md (label_ref_operand): New.
6521 (int_mode_flags): New.
6522 (CCZN_comparison_operator): New.
6524 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
6525 (throughput_42_latency_43): New reservation.
6526 (mulsidi3, umulsidi3): New expanders.
6527 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
6528 the MDR register to allocation; separately allocate the low and
6529 high parts of the DImode result.
6530 (umulsidi3_internal): Similarly.
6531 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
6532 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
6533 (udivsi3, umodsi3): Remove.
6534 (udivmodsi4, divmodsi4): New expanders.
6535 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
6536 (*divmodsi4): Simiarly.
6537 (ext_internal): New.
6539 * config/mn10300/constraints.md ("z"): New constraint.
6540 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
6541 (FIXED_REGISTERS): Don't fix MDR.
6542 (CALL_USED_REGSITERS): Reformat nicely.
6543 (REG_ALLOC_ORDER): Add MDR.
6544 (enum regclass): Add MDR_REGS.
6545 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
6546 (IRA_COVER_CLASSES): Add MDR_REGS.
6547 (REGNO_REG_CLASS): Handle MDR_REG.
6548 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
6549 (mn10300_register_move_cost): Likewise.
6550 * config/mn10300/mn10300.md (MDR_REG): New.
6551 (*movsi_internal): Handle moves to/from MDR_REGS.
6553 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
6555 (mn10300_secondary_reload): Tidy combination reload classes.
6556 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
6557 addresses for AM33. Allow symbolic offsets for reg+imm.
6558 (mn10300_regno_in_class_p): New.
6559 (mn10300_legitimize_reload_address): New.
6560 * config/mn10300/mn10300.h (enum reg_class): Remove
6561 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
6562 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
6564 (REG_CLASS_NAMES): Update to match.
6565 (REG_CLASS_CONTENTS): Likewise.
6566 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
6567 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
6568 (REGNO_IN_RANGE_P): Remove.
6569 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
6570 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
6571 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
6572 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
6573 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
6574 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
6575 (REGNO_GENERAL_P): New.
6576 (HAVE_POST_MODIFY_DISP): New.
6577 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
6578 (LEGITIMIZE_RELOAD_ADDRESS): New.
6579 * config/mn10300/mn10300-protos.h: Update.
6581 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
6582 DATA_REGS for AM33 stack-pointer destination.
6583 (mn10300_preferred_output_reload_class): Likewise.
6584 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
6585 into a form appropriate for ...
6586 (TARGET_SECONDARY_RELOAD): New.
6587 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
6588 * config/mn10300/mn10300-protos.h: Update.
6589 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
6590 reload_insi; use the "A" constraint for the scratch; handle AM33
6591 moves of sp to non-address registers.
6593 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
6594 (*movqi_internal): ... here.
6595 (*am33_movhi, *mn10300_movhi): Merge into...
6596 (*movhi_internal): ... here.
6597 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
6598 as the source/destination of moves from/to SP.
6599 (movsf): Only allow for AM33-2.
6600 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
6601 any integer constant constraint. Only allow for AM33-2. Tidy
6602 all of the alternative outputs.
6603 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
6604 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
6606 (udivsi3, umodsi3): New patterns for MN103 only.
6608 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
6610 * doc/tm.texi.in: Spell out that a lack of register class unions
6612 * doc/tm.texi: Regenerate.
6614 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6616 PR rtl-optimization/47337
6617 * dce.c (check_argument_store): New function.
6618 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
6620 PR tree-optimization/47290
6621 * tree-eh.c (infinite_empty_loop_p): New function.
6622 (cleanup_empty_eh): Use it.
6624 2011-01-18 Steve Ellcey <sje@cup.hp.com>
6627 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
6628 (a64_expand_widen_sum): Ditto.
6629 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
6630 (vec_extract_evenodd_help): Ditto.
6631 (vec_extract_evenv4hi): Ditto.
6632 (vec_extract_oddv4hi): Ditto.
6633 (vec_extract_evenv2si): Ditto.
6634 (vec_extract_oddv2si): Ditto.
6635 (vec_extract_evenv2sf): Ditto.
6636 (vec_extract_oddv2sf): Ditto.
6637 (vec_pack_trunc_v4hi: Ditto.
6638 (vec_pack_trunc_v2si): Ditto.
6639 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
6640 (vec_interleave_highv8qi): Ditto.
6642 (vec_extract_oddv8qi): Ditto.
6643 (vec_interleave_lowv4hi): Ditto.
6644 (vec_interleave_highv4hi): Ditto.
6645 (vec_interleave_lowv2si): Ditto.
6646 (vec_interleave_highv2si): Ditto.
6648 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6650 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
6651 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
6652 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
6653 (pa_c_mode_for_suffix): New.
6654 (TARGET_EXPAND_BUILTIN): Define.
6655 (TARGET_C_MODE_FOR_SUFFIX): Define.
6656 (pa_builtins): Define.
6657 (pa_init_builtins): Register __float128 type and init new support
6659 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
6660 * config/pa/quadlib.c (_U_Qfcopysign): New.
6662 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
6665 * explow.c (allocate_dynamic_stack_space): Do not assume more than
6666 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
6669 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6671 PR tree-optimization/47179
6672 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
6673 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
6675 2011-01-18 Richard Guenther <rguenther@suse.de>
6677 PR rtl-optimization/47216
6678 * emit-rtl.c: Include tree-flow.h.
6679 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
6680 of replicating it with different semantics.
6681 * Makefile.in (emit-rtl.o): Adjust.
6683 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6685 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
6686 (cortex_a9_dp): Handle neon types correctly.
6688 2011-01-18 Jakub Jelinek <jakub@redhat.com>
6690 PR rtl-optimization/47299
6691 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
6692 subtarget. Use normal multiplication if both operands are constants.
6693 * expmed.c (expand_widening_mult): Don't try to optimize constant
6694 multiplication if op0 has VOIDmode. Convert op1 constant to mode
6697 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6699 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
6700 spacing after 'e.g.', typos, comma, hyphenation.
6702 2011-01-17 Richard Henderson <rth@redhat.com>
6704 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
6705 (rx_restricted_mem_operand): New.
6706 (rx_shift_operand): Use register_operand.
6707 (rx_source_operand, rx_compare_operand): Likewise.
6708 * config/rx/rx.md (addsi3_flags): New expander.
6709 (adddi3): Rewrite as expander.
6710 (adc_internal, *adc_flags, adddi3_internal): New patterns.
6711 (subsi3_flags): New expander.
6712 (subdi3): Rewrite as expander.
6713 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
6715 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
6716 (rx_init_builtins): Remove sat builtin.
6717 (rx_expand_builtin): Likewise.
6718 * config/rx/rx.md (ssaddsi3): New.
6719 (*sat): Rename from sat. Represent the CC_REG input.
6721 * config/rx/predicates.md (rshift_operator): New.
6722 * config/rx/rx.c (rx_expand_insv): Remove.
6723 * config/rx/rx-protos.h: Update.
6724 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
6725 operand to the canonical position.
6726 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
6727 (*bitclr, *bitclr_in_memory): Similarly.
6728 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
6729 (insv): Retain the zero_extract in the expansion.
6731 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
6732 (bswaphi2, bitinvert, revw): Likewise.
6734 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
6735 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
6736 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
6737 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
6738 (bitset, bitset_in_memory): Likewise.
6739 (bitinvert, bitinvert_in_memory): Likewise.
6740 (bitclr, bitclr_in_memory): Likewise.
6741 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
6742 (rx_strend, rx_cmpstrn): Likewise.
6743 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
6744 (bitop peep2 patterns): Remove.
6746 * config/rx/rx.c (rx_match_ccmode): New.
6747 * config/rx/rx-protos.h: Update.
6748 * config/rx/rx.md (abssi2): Clobber, don't set flags.
6749 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
6750 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
6751 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
6752 (fix_truncsfsi2, floatsisf2): Likewise.
6753 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
6754 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
6755 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
6756 (*subsi3_flags, *xorsi3_flags): New.
6758 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
6760 * config/rx/rx.c (rx_print_operand): Remove workaround for
6761 unsplit comparison operations.
6763 * config/rx/rx.md (movsicc): Split after reload.
6764 (*movsicc): Merge *movsieq and *movsine via match_operator.
6765 (*stcc): New pattern.
6767 * config/rx/rx.c (rx_float_compare_mode): Remove.
6768 * config/rx/rx.h (rx_float_compare_mode): Remove.
6769 * config/rx/rx.md (cstoresi4): Split after reload.
6770 (*sccc): New pattern.
6772 * config/rx/predicates.md (label_ref_operand): New.
6773 (rx_z_comparison_operator): New.
6774 (rx_zs_comparison_operator): New.
6775 (rx_fp_comparison_operator): New.
6776 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
6777 Validate that the flags are set properly for the comparison.
6778 (rx_gen_cond_branch_template): Remove.
6779 (rx_cc_modes_compatible): Remove.
6780 (mode_from_flags): New.
6781 (flags_from_code): Rename from flags_needed_for_conditional.
6782 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
6783 (rx_select_cc_mode): Likewise.
6784 (rx_split_fp_compare): New.
6785 (rx_split_cbranch): New.
6786 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
6787 (*cbranchsi4): Use match_operator and rx_split_cbranch.
6788 (*cbranchsf4): Similarly.
6789 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
6790 match_operator and rx_split_cbranch.
6791 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
6792 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
6793 (*cmpsi): Rename from cmpsi.
6794 (*tstsi): Rename from tstsi.
6795 (*cmpsf): Rename from cmpsf; use CC_Fmode.
6796 (*conditional_branch): Rename from conditional_branch.
6797 (*reveresed_conditional_branch): Remove.
6798 (b<code>): Remove expander.
6799 * config/rx/rx-protos.h: Update.
6801 * config/rx/rx.c (rx_compare_redundant): Remove.
6802 * config/rx/rx.md (cmpsi): Don't use it.
6803 * config/rx/rx-protos.h: Update.
6805 * config/rx/rx-modes.def (CC_F): New mode.
6806 * config/rx/rx.c (rx_select_cc_mode): New.
6807 * config/rx/rx.h (SELECT_CC_MODE): Use it.
6808 * config/rx/rx-protos.h: Update.
6810 2011-01-17 Richard Henderson <rth@redhat.com>
6812 * except.c (dump_eh_tree): Fix stray ; after for statement.
6814 2011-01-17 Richard Guenther <rguenther@suse.de>
6816 PR tree-optimization/47313
6817 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
6818 handling before copying the body. Properly deal with
6819 by-reference result in SSA form.
6821 2011-01-17 Ian Lance Taylor <iant@google.com>
6824 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
6825 (struct_value_alias_set): Don't define.
6826 (sparc_option_override): Don't set sparc_sr_alias_set and
6827 struct_value_alias_set.
6828 (save_or_restore_regs): Use gen_frame_mem rather than calling
6830 (sparc_struct_value_rtx): Likewise.
6832 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
6835 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
6837 (_mm_maskstore_pd): Likewise.
6838 (_mm_maskload_ps): Likewise.
6839 (_mm_maskstore_ps): Likewise.
6840 (_mm256_maskload_pd): Change mask to __m256i.
6841 (_mm256_maskstore_pd): Likewise.
6842 (_mm256_maskload_ps): Likewise.
6843 (_mm256_maskstore_ps): Likewise.
6845 * config/i386/i386-builtin-types.def: Updated.
6846 (ix86_expand_special_args_builtin): Likewise.
6848 * config/i386/i386.c (bdesc_special_args): Update
6849 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
6850 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
6851 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
6852 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
6854 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
6855 Use <avxpermvecmode> on mask register.
6856 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
6858 2011-01-17 Olivier Hainque <hainque@adacore.com>
6859 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6860 Eric Botcazou <ebotcazou@adacore.com>
6863 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
6864 if <= USHRT_MAX in 32-bit mode.
6866 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6868 * doc/install.texi (Configuration, Specific): Wrap long
6869 lines in examples. Allow line wrapping in long options
6870 and URLs where beneficial for PDF output.
6872 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
6874 * config/mips/mips.c (mips_classify_symbol): Don't return
6875 SYMBOL_PC_RELATIVE for nonlocal labels.
6877 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
6879 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
6881 2011-01-15 Jan Hubicka <jh@suse.cz>
6883 PR tree-optimization/47276
6884 * ipa.c (function_and_variable_visibility): Do not try to mark alias
6885 declarations as needed.
6887 2011-01-15 Martin Jambor <mjambor@suse.cz>
6889 * common.opt (fdevirtualize): New flag.
6890 * doc/invoke.texi (Option Summary): Document it.
6891 * opts.c (default_options_table): Add devirtualize flag.
6892 * ipa-prop.c (detect_type_change): Return immediately if
6893 devirtualize flag is not set.
6894 (detect_type_change_ssa): Likewise.
6895 (compute_known_type_jump_func): Likewise.
6896 (ipa_analyze_virtual_call_uses): Likewise.
6898 2011-01-14 Martin Jambor <mjambor@suse.cz>
6900 PR tree-optimization/45934
6901 PR tree-optimization/46302
6902 * ipa-prop.c (type_change_info): New type.
6903 (stmt_may_be_vtbl_ptr_store): New function.
6904 (check_stmt_for_type_change): Likewise.
6905 (detect_type_change): Likewise.
6906 (detect_type_change_ssa): Likewise.
6907 (compute_complex_assign_jump_func): Check for dynamic type change.
6908 (compute_complex_ancestor_jump_func): Likewise.
6909 (compute_known_type_jump_func): Likewise.
6910 (compute_scalar_jump_functions): Likewise.
6911 (ipa_analyze_virtual_call_uses): Likewise.
6912 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
6914 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6916 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
6917 * config/i386/i386.opt (msse5): New Alias.
6919 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6921 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6922 * config/sparc/linux64.h (CC1_SPEC): Likewise.
6923 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6924 * config/sparc/sparc.h (CC1_SPEC): Likewise.
6926 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6928 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
6930 * config/sparc/linux64.h (CC1_SPEC): Likewise.
6931 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6932 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
6933 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
6935 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
6937 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6939 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
6941 2011-01-14 Mike Stump <mikestump@comcast.net>
6943 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
6944 * config/fr30/fr30.md: Likweise
6945 (movsi_push): Likewise.
6946 (movsi_pop): Likewise.
6947 (enter_func): Likewise.
6948 * config/moxie/moxie.md (movsi_push): Likewise.
6949 (movsi_pop): Likewise.
6951 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6953 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
6954 %{no_archive} %{exact_version}.
6955 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
6956 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
6957 %{no_archive} %{exact_version}.
6958 * config/mips/openbsd.h (LINK_SPEC): Likewise.
6959 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
6960 * config/mips/vxworks.h: Likewise.
6962 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6964 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
6966 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6968 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
6969 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
6971 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6973 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
6976 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6978 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
6980 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
6981 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
6983 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
6984 Don't handle -shlib.
6986 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6988 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
6989 (CC1_SPEC): Don't handle -profile.
6991 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6993 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
6994 * config/mips/mips.h (CC1_SPEC): Likewise.
6996 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6998 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
6999 * config/mips/mips.h (CC1_SPEC): Likewise.
7001 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7003 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7004 * config/m32r/linux.h (LINK_SPEC): Likewise.
7005 * config/mips/linux.h (LINK_SPEC): Likewise.
7006 * config/mips/linux64.h (LINK_SPEC): Likewise.
7007 * config/sparc/linux.h (LINK_SPEC): Likewise.
7008 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7009 LINK_SPEC): Likewise.
7010 * config/xtensa/linux.h (LINK_SPEC): Likewise.
7012 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7014 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7016 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7020 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7021 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7023 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7025 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7027 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7029 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7030 supports -Bstatic/-Bdynamic.
7031 * configure: Regenerate.
7033 2011-01-14 Jan Hubicka <jh@suse.cz>
7034 Jack Howarth <howarth@bromo.med.uc.edu>
7037 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7038 when checking debug_info_level. Test write_symbols instead of
7039 debug_hooks->var_location when setting flag_var_tracking_uninit.
7041 2011-01-14 Richard Guenther <rguenther@suse.de>
7043 PR tree-optimization/47179
7044 * target.def (ref_may_alias_errno): New target hook.
7045 * targhooks.h (default_ref_may_alias_errno): Declare.
7046 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7047 (default_ref_may_alias_errno): New function.
7048 * target.h (struct ao_ref_s): Declare.
7049 * tree-ssa-alias.c: Include target.h.
7050 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7051 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7052 (targhooks.o): Likewise.
7053 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7054 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7056 2011-01-14 Richard Guenther <rguenther@suse.de>
7058 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
7060 2011-01-14 Richard Guenther <rguenther@suse.de>
7062 PR tree-optimization/47280
7063 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7065 (tree_ssa_forward_propagate_single_use_vars): Deal with
7066 CFG changes from associate_plusminus.
7068 2011-01-14 Richard Guenther <rguenther@suse.de>
7072 2011-01-11 Richard Guenther <rguenther@suse.de>
7074 PR tree-optimization/46076
7075 * tree-ssa.c (useless_type_conversion_p): Conversions from
7076 unprototyped to empty argument list function types are useless.
7078 2011-01-14 Richard Guenther <rguenther@suse.de>
7080 PR tree-optimization/47286
7081 * tree-ssa-structalias.c (new_var_info): Register variables are global.
7083 2011-01-14 Martin Jambor <mjambor@suse.cz>
7086 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7088 2011-01-13 Anatoly Sokolov <aesok@post.ru>
7090 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7091 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7092 * config/xtensa/xtensa.c (xtensa_libcall_value,
7093 xtensa_function_value_regno_p): New functions.
7094 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7096 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
7099 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7101 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7102 New function prototype.
7103 * config/i386/winnt.c (i386_pe_assemble_visibility):
7104 Warn only if attribute was specified by user.
7106 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7109 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7111 (floatunsdidf2_fcfidu): Ditto.
7113 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7115 * config/s390/s390.c (print_operand_address): Replace 'error' with
7116 'output_operand_lossage'.
7117 (print_operand): Likewise.
7119 2011-01-13 Jeff Law <law@redhat.com>
7121 PR rtl-optimization/39077
7122 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7123 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7124 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7125 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7126 * gcse.c (prune_insertions_deletions): New function.
7127 (compute_pre_data): Use it.
7129 2011-01-13 Dodji Seketeli <dodji@redhat.com>
7132 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7134 (prune_unused_types_mark): Use it.
7136 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
7138 PR rtl-optimization/45352
7139 * sel-sched.c: Update copyright years.
7140 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7141 in the advancing loop when we have issued issue_rate insns.
7143 2011-01-12 Richard Henderson <rth@redhat.com>
7145 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7146 (TARGET_MD_ASM_CLOBBERS): New.
7148 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7149 (TARGET_DELEGITIMIZE_ADDRESS): New.
7151 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7152 (clzsi2, *bsch): New patterns.
7154 * config/mn10300/mn10300.md (INT): New mode iterator.
7155 (*mov<INT>_clr): New pattern, and peep2 to generate it.
7157 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7158 flag_split_wide_types.
7160 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7161 (mn10300_trampoline_init): Rewrite without a template, an immediate
7162 load and a direct branch.
7163 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7165 2011-01-12 Anatoly Sokolov <aesok@post.ru>
7167 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7168 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7169 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7170 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7172 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
7175 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7178 2011-01-12 Jan Hubicka <jh@suse.cz>
7181 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7182 (PLUGIN_COND_CLOSE): New macro.
7183 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7185 2011-01-12 Richard Guenther <rguenther@suse.de>
7188 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7189 register variables in a MEM_REF.
7191 2011-01-12 Joseph Myers <joseph@codesourcery.com>
7193 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7194 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7195 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7196 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7197 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7198 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7199 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7200 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7201 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7202 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7203 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7204 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7205 * config/gnu-user.h: New. Copied from linux.h.
7206 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7207 GNU_USER_TARGET_STARTFILE_SPEC.
7208 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7209 GNU_USER_TARGET_ENDFILE_SPEC.
7210 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7211 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7212 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7213 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7214 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7215 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7216 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7217 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7218 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7219 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7220 * config/arm/linux-eabi.h (CC1_SPEC): Use
7221 GNU_USER_TARGET_CC1_SPEC.
7222 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7223 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7224 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7225 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7226 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7227 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7228 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7229 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7231 2011-01-12 Richard Guenther <rguenther@suse.de>
7234 * doc/invoke.texi (ffast-math): Document it is turned on
7237 2011-01-12 Jan Hubicka <jh@suse.cz>
7239 PR tree-optimization/47233
7240 * opts.c (common_handle_option): Disable ipa-reference with profile
7243 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7245 * c-parser.c (c_parser_objc_at_property_declaration): Improved
7248 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7250 * c-parser.c (c_lex_one_token): Updated and reindented some
7251 comments. No changes in code.
7253 2011-01-11 Ian Lance Taylor <iant@google.com>
7255 * godump.c (go_output_var): Don't output the variable if there is
7256 already a type with the same name.
7258 2011-01-11 Ian Lance Taylor <iant@google.com>
7260 * godump.c (go_format_type): Don't generate float80.
7262 2011-01-11 Richard Henderson <rth@redhat.com>
7264 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7265 declaration. Rewrite for both speed and size.
7266 (mn10300_address_cost_1): Remove.
7267 (mn10300_register_move_cost): New.
7268 (mn10300_memory_move_cost): New.
7269 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
7270 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
7271 extensions, shifts, BSWAP, CLZ.
7272 (mn10300_wide_const_load_uses_clr): Remove.
7273 (TARGET_REGISTER_MOVE_COST): New.
7274 (TARGET_MEMORY_MOVE_COST): New.
7275 * config/mn10300/mn10300-protos.h: Update.
7276 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7278 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7279 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7280 * config/mn10300/mn10300-protos.h: Update.
7281 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7282 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7283 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7284 (*test_int_bitfield, *test_byte_bitfield): Remove.
7285 (*bit_test, *subreg_bit_test): Remove.
7286 * config/mn10300/predicates.md (const_8bit_operand): Remove.
7288 * config/mn10300/constraints.md ("c"): Rename from "A".
7289 ("A", "D"): New constraint letters.
7290 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7291 (fmssf4, fnmasf4, fnmssf4): Likewise.
7293 * config/mn10300/mn10300.md (isa): New attribute.
7294 (enabled): New attribute.
7296 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7297 (abssf2, negsf2): Define only for hardware fp.
7298 (sqrtsf2): Reformat.
7299 (addsf3, subsf3, mulsf3): Merge expander and insn.
7301 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7302 (DEBUGGER_AUTO_OFFSET): Remove.
7303 (DEBUGGER_ARG_OFFSET): Remove.
7305 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7306 Emit register stores with the same offsets as the hardware.
7307 (mn10300_store_multiple_operation): Don't check that the register
7308 save offsets are monotonic.
7309 * config/mn10300/mn10300-protos.h: Update.
7311 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7313 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7314 in terms of the value on the stack, not the MDR register.
7316 2011-01-11 Jan Hubicka <jh@suse.cz>
7320 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7321 (symbol_alias_set_destroy, symbol_alias_set_contains,
7322 propagate_aliases_backward): Declare.
7323 * lto-streamer-out.c (struct sets): New sturcture.
7324 (trivally_defined_alias): New function.
7325 (output_alias_pair_p): Rewrite.
7326 (output_unreferenced_globals): Fix output of alias pairs.
7327 (produce_symtab): Likewise.
7328 * ipa.c (function_and_variable_visibility): Set weak alias destination
7330 * varasm.c (symbol_alias_set_t): Remove.
7331 (symbol_alias_set_destroy): Export.
7332 (propagate_aliases_forward, propagate_aliases_backward): New functions
7334 (compute_visible_aliases): ... this one; remove.
7335 (trivially_visible_alias): New
7336 (trivially_defined_alias): New.
7337 (remove_unreachable_alias_pairs): Rewrite.
7338 (finish_aliases_1): Reorganize code checking if alias is defined.
7339 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7342 2011-01-11 Richard Guenther <rguenther@suse.de>
7344 PR tree-optimization/46076
7345 * tree-ssa.c (useless_type_conversion_p): Conversions from
7346 unprototyped to empty argument list function types are useless.
7348 2011-01-11 Richard Guenther <rguenther@suse.de>
7351 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7352 volatile MEMs as MEM_READONLY_P.
7354 2011-01-11 Richard Guenther <rguenther@suse.de>
7356 PR tree-optimization/47239
7357 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7359 2011-01-11 Jeff Law <law@redhat.com>
7361 PR tree-optimization/47086
7362 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7363 IVs from statements that might throw.
7365 2011-01-10 Jan Hubicka <jh@suse.cz>
7368 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7370 2011-01-10 Jan Hubicka <jh@suse.cz>
7373 * profile.c (read_profile_edge_counts): Ignore profile inconistency
7374 when correcting profile.
7376 2011-01-10 Jan Hubicka <jh@suse.cz>
7379 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7381 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7382 Restore DECL_FINI_PRIORITY.
7384 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7386 * doc/gimple.texi: Fix quoting of multi-word return values in
7387 @deftypefn statements. Ensure presence of return value. Wrap
7388 overlong @deftypefn lines.
7389 (is_gimple_operand, is_gimple_min_invariant_address): Remove
7390 descriptions of removed functions.
7391 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7392 of multi-word return value in @deftypefn statement.
7394 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7396 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7397 (Conditional Expressions, Logical Operators)
7398 (Statement and operand traversals): Do not indent smallexample
7399 code. Fix duplicate function argument in example.
7401 2011-01-10 Jeff Law <law@redhat.com>
7403 PR tree-optimization/47141
7404 * ipa-split.c (split_function): Handle case where we are
7405 returning a value and the return block has a virtual operand phi.
7407 2011-01-10 Jan Hubicka <jh@suse.cz>
7409 PR tree-optimization/47234
7410 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
7411 (pass_feedback_split_functions): Declare.
7412 * passes.c (init_optimization_passes): Add ipa-split as subpass of
7414 * ipa-split.c (gate_split_functions): Update comments; disable
7415 split-functions for profile_arc_flag and branch_probabilities.
7416 (gate_feedback_split_functions): New function.
7417 (execute_feedback_split_functions): New function.
7418 (pass_feedback_split_functions): New global var.
7420 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
7423 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
7424 calling gimple_call_set_cannot_inline.
7426 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
7428 * config/darwin-sections.def: Remove unused section.
7430 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
7433 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
7435 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
7438 * c-parser.c (c_parser_declaration_or_fndef): Improved
7441 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
7443 * config/i386/winnt.c (i386_pe_start_function): Make sure
7444 to switch back to function's section.
7446 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
7450 * plugin.c: Move include of dlfcn.h from here...
7451 * system.h: ... to here.
7453 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7455 * doc/cpp.texi (C++ Named Operators): Fix markup for header
7457 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
7458 two extra empty pages in PDF output.
7460 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
7463 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
7464 for error recovery purposes behave as if it was not specified so
7465 that the default type is usd.
7467 2011-01-07 Jan Hubicka <jh@suse.cz>
7469 PR tree-optmization/46469
7470 * ipa.c (function_and_variable_visibility): Clear needed flags on
7471 nodes with external decls; handle weakrefs merging correctly.
7473 2011-01-07 Joseph Myers <joseph@codesourcery.com>
7475 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
7478 2011-01-07 Jan Hubicka <jh@suse.cz>
7480 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
7481 and no longer claim that gold is required for linker plugin.
7482 * configure: Regenerate.
7483 * gcc.c (PLUGIN_COND): New macro.
7484 (LINK_COMMAND_SPEC): Use it.
7485 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
7486 * config.in (HAVE_LTO_PLUGIN): New.
7487 * configure.ac (--with-lto-plugin): New parameter; autodetect
7490 2011-01-07 Jan Hubicka <jh@suse.cz>
7492 PR tree-optimization/46367
7493 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
7494 when we can update original.
7495 (cgraph_mark_inline_edge): Sanity check.
7496 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
7498 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7500 * config/spu/spu.h (ASM_COMMENT_START): Define.
7502 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
7506 (SWITCH_KEEP_FOR_GCC): Likewise.
7507 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
7508 (do_spec_1): Handle "%>".
7510 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
7512 2011-01-07 Jakub Jelinek <jakub@redhat.com>
7515 * config/i386/i386.c (ix86_delegitimize_address): If
7516 simplify_gen_subreg fails, return orig_x.
7519 * value-prof.c (gimple_stringop_fixed_value): Handle
7520 lhs of the call properly.
7522 2011-01-07 Jan Hubicka <jh@suse.cz>
7525 * lto-opt.c (lto_reissue_options): Set flag_shlib.
7527 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7529 * target.def (function_switched_text_sections): New hook.
7530 * doc/tm.texi: Regenerated.
7531 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7532 * final.c (default_function_switched_text_sections): New.
7533 (final_scan_insn): Call function_switched_text_sections when a
7534 mid-function section change occurs.
7535 * output.h (default_function_switched_text_sections): Declare.
7536 * config/darwin-protos.h (darwin_function_switched_text_sections):
7538 * config/darwin.c (darwin_function_switched_text_sections): New.
7539 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7541 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7543 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
7544 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
7545 the secondary code fragment when outputting for DWARF == 2.
7547 2011-01-07 Anatoly Sokolov <aesok@post.ru>
7549 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7550 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
7552 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
7553 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7555 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
7558 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
7559 when it is not empty.
7561 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
7564 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
7565 (case ${target}): Add btver1.
7566 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7567 -march=native recognize btver1 processors.
7568 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7569 btver1 def_and_undef
7570 * config/i386/i386.c (struct processor_costs btver1_cost): New
7572 (m_BTVER1): New definition.
7573 (m_AMD_MULTIPLE): Includes m_BTVER1.
7574 (initial_ix86_tune_features): Add btver1 tune.
7575 (processor_target_table): Add btver1 entry.
7576 (static const char *const cpu_names): Add btver1 entry.
7577 (software_prefetching_beneficial_p): Add btver1.
7578 (ix86_option_override_internal): Add btver1 instruction sets.
7579 (ix86_issue_rate): Add btver1.
7580 (ix86_adjust_cost): Add btver1.
7581 * config/i386/i386.h (TARGET_BTVER1): New definition.
7582 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
7583 (enum processor_type): Add PROCESSOR_BTVER1.
7584 * config/i386/i386.md (define_attr "cpu"): Add btver1.
7586 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7589 * config/i386/i386.c (legitimize_tls_address)
7590 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
7591 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
7592 (tls_initial_exec_64_sun): New pattern.
7594 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
7596 * doc/invoke.texi (Overall Options): Improve wording and markup
7597 of the description of -wrapper.
7599 2011-01-06 Joseph Myers <joseph@codesourcery.com>
7601 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
7602 rdynamic, threads): New Driver options.
7604 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7607 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
7608 if coming from .tdata.
7609 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7611 2011-01-06 Jan Hubicka <jh@suse.cz>
7614 * collect2.c (main): Do not enable LTOmode when plugin is active.
7616 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7619 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
7620 --version output if supported.
7621 * configure: Regenerate.
7623 2011-01-06 Joseph Myers <joseph@codesourcery.com>
7625 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
7628 2011-01-06 Jakub Jelinek <jakub@redhat.com>
7631 * c-convert.c (convert): When converting a complex expression
7632 other than COMPLEX_EXPR to a different complex type, ensure
7633 c_save_expr is called instead of save_expr, unless in_late_binary_op.
7634 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
7635 when converting COMPLEX_TYPE.
7637 2011-01-06 Ira Rosen <irar@il.ibm.com>
7639 PR tree-optimization/47139
7640 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
7641 only the last reduction value is used outside the loop. Update
7644 2011-01-05 Joseph Myers <joseph@codesourcery.com>
7646 * config/rtems.opt: New.
7647 * config.gcc (*-*-rtems*): Use rtems.opt.
7649 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
7651 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
7652 processors do not support 3DNow instructions.
7654 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7656 * config/spu/spu.c (spu_option_override): Set parameter
7657 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
7659 2011-01-05 Jan Hubicka <jh@suse.cz>
7661 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
7662 at the command line.
7664 2011-01-05 Martin Jambor <mjambor@suse.cz>
7667 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
7668 deltas on streamed outgoing edges.
7669 (output_node_opt_summary): Output info for outgoing edges only when
7670 the node is in new parameter set.
7671 (output_cgraph_opt_summary): New parameter set, passed to the two
7672 aforementioned functions. Update its forward declaration and its
7675 2011-01-05 Tom Tromey <tromey@redhat.com>
7677 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
7678 operator to c_finish_omp_atomic.
7679 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
7680 (build_unary_op): Update.
7681 (build_modify_expr): Update.
7682 (build_asm_expr): Update.
7684 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7686 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
7687 newly inserted insns.
7689 (spu_emit_branch_hint): Likewise.
7690 (insert_hbrp_for_ilb_runout): Likewise.
7691 (spu_machine_dependent_reorg): Call df_finish_pass after
7692 schedule_insns returns.
7694 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7696 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
7698 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
7700 PR tree-optimization/47005
7701 * tree-sra.c (struct access): Add 'non_addressable' bit.
7702 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
7703 (decide_one_param_reduction): Return 0 if the parameter is passed by
7704 reference and one of the accesses in the group is non_addressable.
7706 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
7708 PR tree-optimization/47056
7709 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
7710 (mark_load): Likewise. Handle FUNCTION_DECL specially.
7711 (mark_store): Likewise. Pass STMT to ipa_record_reference.
7713 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
7715 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
7716 initializer. Skip view conversions from aggregate types.
7718 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
7721 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
7723 2011-01-04 Philipp Thomas <pth@suse.de>
7725 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
7728 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7730 * function.c (thread_prologue_and_epilogue_insns): Do not crash
7731 on empty epilogue sequences.
7733 2011-01-04 Joseph Myers <joseph@codesourcery.com>
7735 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
7736 non-static): New Driver options.
7738 2011-01-04 Jie Zhang <jie@codesourcery.com>
7741 * gcc.c (default_compilers[]): Set combinable field to 0
7742 for all assembly languages.
7744 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
7746 * config/mips/loongson3a.md: New file.
7747 * config/mips/mips.md: Include loongson3a.md.
7748 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
7751 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
7754 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
7755 instead of convert_memory_address_addr_space on the base expression.
7757 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7759 * config/spu/spu.c (spu_option_override): Update error text
7760 for bad -march= / -mtune= values.
7762 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7764 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
7765 if branch-hint optimization will be performed.
7767 2011-01-03 Jakub Jelinek <jakub@redhat.com>
7769 PR tree-optimization/47148
7770 * ipa-split.c (split_function): Convert arguments to
7771 DECL_ARG_TYPE if possible.
7773 PR tree-optimization/47155
7774 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
7777 PR rtl-optimization/47157
7778 * combine.c (try_combine): If undobuf.other_insn becomes
7779 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
7780 and set *new_direct_jump_p too.
7782 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
7784 PR tree-optimization/47021
7785 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
7787 2011-01-03 Jakub Jelinek <jakub@redhat.com>
7789 * gcc.c (process_command): Update copyright notice dates.
7790 * gcov.c (print_version): Likewise.
7791 * gcov-dump.c (print_version): Likewise.
7792 * mips-tfile.c (main): Likewise.
7793 * mips-tdump.c (main): Likewise.
7795 2011-01-03 Martin Jambor <mjambor@suse.cz>
7797 PR tree-optimization/46801
7798 * tree-sra.c (type_internals_preclude_sra_p): Check whether
7799 aggregate fields start at byte boundary instead of the bit-field flag.
7801 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
7804 * gcc.c (main): Revert revision 168407.
7806 2011-01-03 Martin Jambor <mjambor@suse.cz>
7808 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
7810 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7812 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
7813 vector optab to expand vector/scalar shift, update gimple to vector.
7815 2011-01-03 Martin Jambor <mjambor@suse.cz>
7817 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
7820 2011-01-03 Martin Jambor <mjambor@suse.cz>
7822 PR tree-optimization/46984
7823 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
7825 (cgraph_create_indirect_edge): Fixed line length.
7826 (cgraph_indirect_call_info): Declare.
7827 (cgraph_make_edge_direct) Update declaration.
7828 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
7829 (cgraph_create_indirect_edge): Use it.
7830 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
7832 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
7833 the new thunk_delta representation.
7834 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
7836 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
7837 (ipa_read_indirect_edge_info): Likewise.
7838 * lto-cgraph.c (output_edge_opt_summary): New function.
7839 (output_node_opt_summary): Call it on all outgoing edges.
7840 (input_edge_opt_summary): New function.
7841 (input_node_opt_summary): Call it on all outgoing edges.
7843 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
7846 * gcc.c (main): Don't check have_o when settting combine_inputs.
7848 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
7850 * regrename.c: Add general comment describing the pass.
7851 (struct du_head): Remove 'length' field.
7852 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
7853 (regrename_optimize): Do not sort chains. Rework comments, add others.
7854 Force renaming to the preferred class (if any) in the first pass and do
7855 not consider registers that belong to it in the second pass.
7856 (create_new_chain): Do not set 'length' field.
7857 (scan_rtx_reg): Likewise.
7859 2011-01-02 Jakub Jelinek <jakub@redhat.com>
7861 PR tree-optimization/47140
7862 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
7863 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
7866 PR rtl-optimization/47028
7867 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
7868 parm_birth_insn instead of at the beginning of first bb.
7870 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
7872 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
7873 Remove the word "see" before "@pxref".
7874 * doc/rtl.texi: Remove the word "see" before "@pxref".
7876 2011-01-01 Jan Hubicka <jh@suse.cz>
7878 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
7881 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
7884 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
7887 Copyright (C) 2011 Free Software Foundation, Inc.
7889 Copying and distribution of this file, with or without modification,
7890 are permitted in any medium without royalty provided the copyright
7891 notice and this notice are preserved.