1 2012-01-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
8 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
10 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
11 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
13 2012-01-10 Joseph Myers <joseph@codesourcery.com>
17 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
20 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
21 zero extend count after the correction to it is done.
22 (doloop_optimize): Update call to doloop_modify, don't zero extend
25 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
28 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
30 (doloop_optimize): Update call to doloop_modify.
32 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
34 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
36 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
38 * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Check that the
39 purported sigacthandler address isn't null before dereferencing it.
40 (sparc_is_sighandler): Likewise.
42 2012-01-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
44 Backport from mainline
45 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
47 PR rtl-optimization/38644
48 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
49 for epilogue having stack adjustment.
51 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
54 * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove SAVPC and
55 add CFA. Revert back to old code for Solaris 8+ multi-threaded.
56 (sparc_is_sighandler): Likewise.
57 (MD_FALLBACK_FRAME_STATE_FOR): Adjust call to IS_SIGHANDLER.
59 2012-01-06 Eric Botcazou <ebotcazou@adacore.com>
61 Backport from mainline
62 2012-01-06 Arnaud Charlet <charlet@adacore.com>
64 * c-decl.c (ext_block): Moved up.
65 (collect_all_refs, for_each_global_decl): Take ext_block into account.
67 2012-01-06 Richard Sandiford <richard.sandiford@linaro.org>
70 * expr.h (copy_blkmode_to_reg): Declare.
71 * expr.c (copy_blkmode_to_reg): New function.
72 (expand_assignment): Don't expand register RESULT_DECLs before
73 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
75 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
77 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
79 PR tree-optimization/51315
80 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
81 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
83 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
85 PR tree-optimization/51624
86 * tree-sra.c (build_ref_for_model): When replicating a chain of
87 COMPONENT_REFs, stop as soon as the offset would become negative.
89 2012-01-04 Richard Guenther <rguenther@suse.de>
91 PR tree-optimization/49651
92 * tree-ssa-structalias.c (type_can_have_subvars): New function.
93 (var_can_have_subvars): Use it.
94 (get_constraint_for_1): Only consider subfields if there can be any.
96 2012-01-03 Sandra Loosemore <sandra@codesourcery.com>
98 Backport from mainline:
99 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
101 * doc/invoke.texi (-flto and related options): Copy-edit.
103 2012-01-03 Richard Guenther <rguenther@suse.de>
105 Backport from mainline
106 2011-11-10 Richard Guenther <rguenther@suse.de>
108 PR tree-optimization/51042
109 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
110 self-referential expressions. Refactor code to avoid duplication.
112 2012-01-03 Richard Guenther <rguenther@suse.de>
114 PR tree-optimization/51070
115 * tree-loop-distribution.c (generate_builtin): Do not replace
116 the loop with a builtin if the partition contains statements which
117 results are used outside of the loop.
118 (stmt_has_scalar_dependences_outside_loop): Properly handle calls.
120 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
122 Backport from the mainline
123 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
125 * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
126 in setting options via target #pragma or attribute.
128 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
130 Backport from mainline
131 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
134 * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
135 unlikely_text_section_p. Instead check for being in a code
138 2011-12-23 Richard Guenther <rguenther@suse.de>
140 PR rtl-optimization/50396
141 * simplify-rtx.c (simplify_binary_operation_1): Properly
142 guard code that only works for integers.
144 2011-12-22 Doug Kwan <dougkwan@google.com>
146 Backport from mainline
147 2011-03-23 Julian Brown <julian@codesourcery.com>
149 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
150 accesses which are not naturally aligned.
152 2011-11-20 Joey Ye <joey.ye@arm.com>
154 * expr.c (expand_expr_real_1): Correctly handle strict volatile
155 bitfield loads smaller than mode size.
157 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
160 * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
163 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
166 * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
167 weak function on bare-metal EABI targets.
169 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
171 Backport from mainline
172 2011-12-21 Richard Guenther <rguenther@suse.de>
175 * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
176 mode of the pseudo as destination mode. Only assert that
177 is equal to the promoted mode of the decl if it is a REG.
179 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
181 * config/alpha/linux-unwind.h: Update copyright years.
182 (MD_FROB_UPDATE_CONTEXT): New define.
183 (alpha_frob_update_context): New function.
185 2011-12-19 Martin Jambor <mjambor@suse.cz>
187 PR tree-optimization/51583
188 * tree-sra.c (load_assign_lhs_subreplacements): Call
189 force_gimple_operand_gsi when necessary also in case of no
190 corresponding replacement on the RHS.
192 2011-12-16 Eric Botcazou <ebotcazou@adacore.com>
194 * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
195 (frame_blockage): New expander.
196 (frame_blockage<P:mode>): New instruction.
197 * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
198 instructions establishing the frame isn't atomic, emit frame blockage.
200 2011-12-15 H.J. Lu <hongjiu.lu@intel.com>
202 Backport from mainline.
203 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
205 PR rtl-optimization/49720
206 * simplify-rtx.c (simplify_relational_operation_1): Detect
207 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
208 simplifies to (eq/ne x (cst2 - cst1))" case.
210 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
212 Backport from mainline.
213 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
215 * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
217 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
219 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
220 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
221 * lto-streamer-in.c (lto_read_body): Likewise.
222 (lto_input_toplevel_asms): Likewise.
223 * lto-section-in.c (lto_create_simple_input_block): Likewise.
224 * lto-opts.c (lto_read_file_options): Likewise.
225 * ipa-prop.c (ipa_prop_read_section): Likewise.
227 * df.h (DF_NOTE): Fix typo in comment.
229 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
231 * regmove.c (fixup_match_2): Only access call_used_regs with hard
234 2011-12-12 Jakub Jelinek <jakub@redhat.com>
237 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
238 VEC_safe_grow_cleared if idx is smaller than VEC_length.
240 Backported from mainline
241 2011-12-11 Jakub Jelinek <jakub@redhat.com>
243 PR tree-optimization/51485
244 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
247 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
249 PR tree-optimization/50569
250 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
251 in the expression of MODEL instead of just the last one.
253 2011-12-09 Michael Meissner <meissner@the-meissners.org>
255 Backport from mainline
256 2011-12-09 Michael Meissner <meissner@the-meissners.org>
258 PR rtl-optimization/51469
259 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
260 indirect function, mark the symbol as non-local.
262 2011-12-09 Jakub Jelinek <jakub@redhat.com>
264 Backport from mainline
265 2011-12-08 Jakub Jelinek <jakub@redhat.com>
267 PR tree-optimization/51466
268 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
271 2011-11-28 Jakub Jelinek <jakub@redhat.com>
273 PR tree-optimization/50078
274 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
275 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
277 2011-12-09 Kazu Hirata <kazu@codesourcery.com>
279 Backport from mainline:
281 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
284 * config/arm/arm.md (*minmax_arithsi): Always require the else
285 clause in the MINUS case.
287 2011-12-08 Teresa Johnson <tejohnson@google.com>
289 Backport from mainline:
291 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
293 * config/i386/i386.md (*movdi_internal_rex64): Use "!o" constraint
294 instead of "!m" for operand 0, alternative 4.
295 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
297 2011-12-08 Jakub Jelinek <jakub@redhat.com>
299 Backport from mainline
300 2011-12-05 Jakub Jelinek <jakub@redhat.com>
303 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
304 for debug info if scope is file_scope.
307 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
308 relayout_decl instead of layout_decl.
310 2011-12-05 Jakub Jelinek <jakub@redhat.com>
311 Eric Botcazou <ebotcazou@adacore.com>
315 * calls.c (internal_arg_pointer_exp_state): New variable.
316 (internal_arg_pointer_based_exp_1,
317 internal_arg_pointer_exp_scan): New functions.
318 (internal_arg_pointer_based_exp): New function.
319 (mem_overlaps_already_clobbered_arg_p): Use it.
320 (expand_call): Free internal_arg_pointer_exp_state.cache vector
321 and clear internal_arg_pointer_exp_state.scan_start.
323 2011-11-30 Jakub Jelinek <jakub@redhat.com>
325 PR rtl-optimization/48721
326 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
327 reg_pending_barrier to TRUE_BARRIER.
329 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
332 * calls.c (mem_overlaps_already_clobbered_arg_p):
333 Return false if no outgoing arguments have been stored so far.
335 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
337 PR tree-optimization/51315
338 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
339 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
340 MEM_REFs and use get_object_or_type_alignment for them.
341 (build_accesses_from_assign): Adjust for above change.
342 (access_precludes_ipa_sra_p): Likewise.
344 2011-12-06 Martin Jambor <mjambor@suse.cz>
346 Backport from mainline:
348 2011-12-02 Martin Jambor <mjambor@suse.cz>
350 PR tree-optimization/50622
351 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
352 if both lacc and racc are grp_partial_lhs.
354 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
356 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
359 2011-12-06 Alan Modra <amodra@gmail.com>
362 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
363 Do not mark r11 setup as frame-related. Pass correct offset to
364 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
365 arguments. Correct sp_offset. Remove "offset" fudge from
366 in-line rs6000_frame_related call. Rename misleading variable.
367 Fix comments and whitespace. Tidy some expressions.
368 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
369 to r11 in out-of-line case. Correct sp_offset. Pass correct
370 offset to rs6000_emit_savres_rtx. Rename misleading variable.
371 Fix comments and whitespace. Tidy some expressions.
372 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
373 adjustment when !saving_GPRs_inline. Correct register mode
374 used in address calcs.
375 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
376 !restoring_GPRs_inline.
378 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
381 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
382 parameter as long long.
384 2011-12-02 Georg-Johann Lay <avr@gjlay.de>
388 * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
389 Enclose parts using __SP_H__ in !defined (__AVR_HAVE_8BIT_SP__).
391 * config/avr/avr.md (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Set
392 insn condition to !AVR_HAVE_8BIT_SP.
393 * config/avr/avr.c (output_movhi): "clr%B0" instead of "in
394 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
395 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
396 * config/avr/avr-devices.c (avr_mcu_types): ATtiny4313 and
397 AT86RF401 have a 16-bit SP (their manual is bogus).
399 2011-11-25 Richard Sandiford <richard.sandiford@linaro.org>
401 Backport from mainline:
403 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
406 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
407 (cached_dw_loc_list_def): New structure.
408 (cached_dw_loc_list): New typedef.
409 (cached_dw_loc_list_table): New variable.
410 (cached_dw_loc_list_table_hash): New function.
411 (cached_dw_loc_list_table_eq): Likewise.
412 (add_location_or_const_value_attribute): Take a bool cache_p.
413 Cache the list when the parameter is true.
414 (gen_formal_parameter_die): Update caller.
415 (gen_variable_die): Likewise.
416 (dwarf2out_finish): Likewise.
417 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
418 while generating debug info for the decl.
419 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
420 (dwarf2out_init): Initialize cached_dw_loc_list_table.
421 (resolve_addr): Cache the result of resolving a chain of
424 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
427 * i386.c (distance_non_agu_define): Fix insn attr check.
429 2011-11-20 Andreas Tobler <andreast@fgznet.ch>
431 * configure: Regenerate.
433 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
435 PR rtl-optimization/51187
436 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
437 is a barrier between the jump and its target label.
439 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
442 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
443 overlap of src and dest operands.
445 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
448 * configure.ac: Remove ranlib special-casing for Darwin.
449 * configure: Regenerate.
451 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
452 Bernd Schmidt <bernds@coudesourcery.com>
453 Sebastian Huber <sebastian.huber@embedded-brains.de>
456 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
457 the base reg is stored iff compiling for Thumb1.
459 2011-11-13 Iain Sandoe <iains@gcc.gnu.org>
462 Backport from mainline r180523
463 * config/darwin.c (top level): Amend comments concerning LTO output.
464 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
465 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
466 (LTO_NAMES_SECTION): Rename.
467 (darwin_asm_named_section): Record LTO section counts and switches
468 in a vec of darwin_lto_section_e.
469 (darwin_file_start): Remove unused code.
470 (darwin_file_end): Put an LTO section termination label. Handle
471 output of the wrapped LTO sections, index and names table.
473 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
476 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
477 Only expand a symbol ref. into an access when the entity is defined
480 2011-11-10 Jakub Jelinek <jakub@redhat.com>
483 * tree-object-size.c (addr_object_size): Check TREE_CODE of
484 MEM_REF's operand rather than code of the MEM_REF itself.
486 2011-11-07 Alan Modra <amodra@gmail.com>
489 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
492 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
495 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
497 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
499 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
502 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
504 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
506 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
507 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
508 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
510 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
513 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
514 (movsf_insn_no_fpu): Likewise.
515 (movdf_insn_sp32): Likewise.
516 (movdf_insn_sp32_no_fpu): Likewise.
517 (movdf_insn_sp32_v9): Likewise. Remove redundant GY constraint.
518 (movdf_insn_sp32_v9_no_fpu): Likewise.
519 (movdf_insn_sp64): Likewise.
520 (movdf_insn_sp64_no_fpu): Likewise.
521 (movtf_insn_sp32): Likewise.
522 (movtf_insn_sp32_no_fpu): Likewise.
523 (movtf_insn_sp64): Likewise.
524 (movtf_insn_sp64_hq): Likewise.
525 (movtf_insn_sp64_no_fpu): Likewise.
527 2011-11-02 Bernd Schmidt <bernds@codesourcery.com>
529 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
530 NULL for a jump that is a cc0 insn, pick the previous insn for
533 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
535 * config/i386/i386.md (splitters for int-float conversion): Use
536 SUBREG_REG on SUBREGs in splitter constraints.
538 2011-11-01 Julian Brown <julian@codesourcery.com>
540 PR rtl-optimization/47918
541 * reload1.c (set_initial_label_offsets): Use initial offsets
542 for labels on the nonlocal_goto_handler_labels chain.
544 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
547 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol references.
548 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Return false for
549 TLS_MODEL_GLOBAL_DYNAMIC and TLS_MODEL_LOCAL_DYNAMIC symbol references.
551 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
554 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
555 constraints. Change alternative 1 to "x,m,1".
557 2011-10-26 Jakub Jelinek <jakub@redhat.com>
559 * BASE-VER: Set to 4.6.3.
560 * DEV-PHASE: Set to prerelease.
562 2011-10-26 Release Manager
564 * GCC 4.6.2 released.
566 2011-10-25 Kai Tietz <ktietz@redhat.com>
568 * config/i386/mingw32.h (SUBTARGET_FRAME_POINTER_REQUIRED):
569 Use for 32-bit frame-pointer, if setjmp is used.
571 2011-10-24 Jakub Jelinek <jakub@redhat.com>
574 * dwarf2out.c (dwarf2out_source_line): Emit discriminators only if
575 -gdwarf-4 or not -gstrict-dwarf.
577 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
580 Backport from mainline r180385
581 * doc/extend.texi (Declaring Attributes of Functions):
582 Document OS_main and OS_task attributes.
583 (Specifying Attributes of Variables): Move up
584 subsection "AVR Variable Attributes" as of alphabetical order.
586 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
589 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
590 handling and indirect jump/calls on devices > 128k.
592 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
595 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
596 Remove (match_dup 0).
598 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
601 Backport from Mainline r180299.
602 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
603 (__tablejump__): Consistently use EIND for indirect jump/call.
604 (__tablejump_elpm__): Ditto.
606 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
609 Backport from mainline.
610 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
612 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
615 2011-10-19 Jakub Jelinek <jakub@redhat.com>
617 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
618 second argument instead of mode.
621 Backport from mainline
622 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
626 * tree-sra.c (build_ref_for_model): Use the type of the field as
627 the type of the COMPONENT_REF.
629 2011-10-18 Uros Bizjak <ubizjak@gmail.com>
630 Eric Botcazou <ebotcazou@adacore.com>
633 * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Set
634 fs->signal_frame to 1.
636 2011-10-14 Richard Guenther <rguenther@suse.de>
638 Backport from mainline
639 2011-10-14 Richard Guenther <rguenther@suse.de>
641 PR tree-optimization/50723
642 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
644 2011-10-13 Richard Guenther <rguenther@suse.de>
646 PR tree-optimization/50712
647 * ipa-split.c (split_function): Always re-gimplify parameters
648 when they are not gimple vals before passing them. Properly
649 check for type compatibility.
651 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
653 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
654 * config/sparc/sparc.opt (mfix-at697f): New option.
655 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
656 (sparc_reorg): New function.
658 2011-10-12 Steve Ellcey <sje@cup.hp.com>
661 Backport from Mainline 179472.
662 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
663 (gcc_cv_ld_static_option): Ditto.
664 (gcc_cv_ld_dynamic_option): Ditto.
665 * configure: Regenerate.
667 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
669 PR tree-optimization/50189
670 * tree-vrp.c (extract_range_from_assert): Use the type of
671 the variable, not the limit.
673 2011-10-12 Richard Guenther <rguenther@suse.de>
675 PR tree-optimization/50700
676 * tree-object-size.c (addr_object_size): Simplify and treat
677 MEM_REF bases consistently.
679 2011-10-12 Joseph Myers <joseph@codesourcery.com>
682 * convert.c (convert_to_integer): Do not narrow operands of
685 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
688 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
689 (mov<F:mode>cc): Likewise.
691 2011-10-11 Nick Clifton <nickc@redhat.com>
694 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
695 df_get_live_out instead of accessing the bitmaps directly.
696 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
697 df_live_add_problem and df_analyze.
699 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
702 Backport from Mainline r179737.
703 * config/avr/avr-devices.c (avr_mcu_types): Set
704 .data_section_start of atmega164a to 0x100.
706 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
709 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
711 2011-10-06 Jakub Jelinek <jakub@redhat.com>
713 * tree.h (avoid_folding_inline_builtin): New prototype.
714 * builtins.c (avoid_folding_inline_builtin): No longer static.
715 * gimple-fold.c (gimple_fold_builtin): Give up if
716 avoid_folding_inline_builtin returns true.
718 PR tree-optimization/49279
719 * tree-ssa-structalias.c (find_func_aliases): Don't handle
722 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
724 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
725 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
727 2011-10-03 Jakub Jelinek <jakub@redhat.com>
728 Ian Lance Taylor <iant@google.com>
730 * godump.c (go_output_typedef): Support printing enum values that
731 don't fit in a signed HOST_WIDE_INT.
733 2011-09-30 Jakub Jelinek <jakub@redhat.com>
736 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
737 input constraints allow mem and not reg, pass true instead of
738 false as second argument to maybe_fold_reference.
740 2011-09-30 Jakub Jelinek <jakub@redhat.com>
741 Richard Guenther <rguenther@suse.de>
743 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Fix
744 handling of BUILT_IN_STRNCAT.
745 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
746 and BUILT_IN_STRNCAT.
748 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
750 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
752 (remove_duplicate_close_phi): Detect and repair creation of
753 duplicate close-phis for a containing loop.
755 2011-09-26 Richard Guenther <rguenther@suse.de>
757 PR tree-optimization/50472
758 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not fold
761 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
763 PR tree-optimization/50413
764 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
765 a basic block if one of its data-refs can't be analyzed.
767 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
769 PR tree-optimization/50412
770 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
771 accesses that require epilogue loop if vectorizing outer loop.
773 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
776 * config/i386/sse.md (xop_pcmov_<mode>): Change operand 1 predicate
777 to register_operand and operand 2 predicate to nonimmediate_operand.
778 (xop_pcmov_<mode>256): Ditto.
779 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
780 xop_pcmov, force op_true to register. Also, force op_false to
781 register if it doesn't satisfy nonimmediate_operand predicate.
783 2011-09-19 Alan Modra <amodra@gmail.com>
784 Michael Meissner <meissner@linux.vnet.ibm.com>
787 * config/rs6000/rs6000.md (call_indirect_aix32): Do not split the
788 load of the indirect function's TOC from the call to prevent the
789 compiler from moving the load of the new TOC above code that
790 references the current function's TOC.
791 (call_indirect_aix64): Ditto.
792 (call_value_indirect_aix32): Ditto.
793 (call_value_indirect_aix64): Ditto.
794 (call_indirect_nonlocal_aix32_internal): Ditto.
795 (call_indirect_nonlocal_aix32): Ditto.
796 (call_indirect_nonlocal_aix64_internal): Ditto.
797 (call_indirect_nonlocal_aix64): Ditto.
798 (call_value_indirect_nonlocal_aix32_internal): Ditto.
799 (call_value_indirect_nonlocal_aix32): Ditto.
800 (call_value_indirect_nonlocal_aix64_internal): Ditto.
801 (call_value_indirect_nonlocal_aix64): Ditto.
803 2011-09-19 Martin Jambor <mjambor@suse.cz>
806 * ipa-split.c (split_function): Do not change signature if it is
807 not possible or there are attribute types.
809 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
810 Iain Sandoe <developer@sandoe-acoustics.co.uk>
813 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
814 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
816 2011-09-14 Diego Novillo <dnovillo@google.com>
818 * tree-vect-stmts.c (vect_transform_stmt): Remove unused
819 local variable ORIG_SCALAR_STMT.
821 2011-09-08 Martin Jambor <mjambor@suse.cz>
823 Backport from mainline
824 2011-09-07 Martin Jambor <mjambor@suse.cz>
826 PR tree-optimization/49911
827 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
828 enumerations to the corresponding plain integer type.
830 2011-09-08 Richard Guenther <rguenther@suse.de>
832 Backport from mainline
833 2011-07-04 Richard Guenther <rguenther@suse.de>
835 PR tree-optimization/49518
836 PR tree-optimization/49628
837 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
838 irrelevant data-references.
840 2011-09-08 Richard Guenther <rguenther@suse.de>
842 Backport from mainline
843 2011-08-23 Richard Guenther <rguenther@suse.de>
845 PR tree-optimization/50162
846 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
848 2011-09-08 Richard Guenther <rguenther@suse.de>
850 Backport from mainline
851 2011-05-05 Michael Matz <matz@suse.de>
853 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
854 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
855 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
856 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
857 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
858 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
859 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
860 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
861 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
862 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
863 * config/i386/linux.h (ENDFILE_SPEC): Add Ofast.
864 * config/i386/linux64.h (ENDFILE_SPEC): Add Ofast.
865 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
866 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
867 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
868 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
870 2011-09-08 Eric Botcazou <ebotcazou@adacore.com>
871 Iain Sandoe <iains@gcc.gnu.org>
873 Backport from mainline (restore powerpc-darwin Ada bootstrap).
874 * config/rs6000/rs6000.c (compute_save_world_info): Test
875 cfun->has_nonlocal_label to determine if the out-of-line save
876 world call may be used.
878 2011-09-08 Jakub Jelinek <jakub@redhat.com>
881 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
882 code early if TARGET_AVX.
883 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
885 2011-09-06 Martin Jambor <mjambor@suse.cz>
888 2011-09-02 Martin Jambor <mjambor@suse.cz>
890 * ipa-split.c (split_function): Do not skip any arguments if
891 can_change_signature is set or there are function type attributes.
893 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
896 Backport from mainline r178528
897 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
898 that contain global register variable.
900 2011-09-02 Martin Jambor <mjambor@suse.cz>
903 * ipa-split.c (split_function): Do not skip any arguments if
904 can_change_signature is set or there are function type attributes.
906 2011-09-01 Ira Rosen <ira.rosen@linaro.org>
908 PR tree-optimization/50178
909 * tree-vect-stmts.c (vectorizable_call): Update the related
910 pattern statement before deleting the original call.
911 (vect_transform_stmt): Don't expect the related pattern statement
912 to match the original statement after transformation.
914 2011-08-29 Richard Guenther <rguenther@suse.de>
917 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
919 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
921 * config/i386/sse.md (vec_extract_lo_<mode>): Prevent both
923 (vec_extract_lo_v16hi): Ditto.
924 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
925 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
928 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
931 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
932 when all outputs are unused.
933 (sse4_2_pcmpistr): Ditto.
935 2011-08-26 Jakub Jelinek <jakub@redhat.com>
938 * c-typeck.c (c_process_expr_stmt): Skip over nops and
939 call mark_exp_read even if exprv is ADDR_EXPR.
941 2011-08-20 Jakub Jelinek <jakub@redhat.com>
943 PR tree-optimization/48739
944 * tree-ssa.c: Include cfgloop.h.
945 (execute_update_addresses_taken): When updating ssa, if in
946 loop closed SSA form, call rewrite_into_loop_closed_ssa instead of
948 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
950 2011-08-18 Jakub Jelinek <jakub@redhat.com>
953 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
954 on the result before returning it.
956 2011-08-16 Liang Wang <lwang1@marvell.com>
958 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
959 ggc_alloc_zone_vec_rtvec_def.
961 2011-08-12 Nick Clifton <nickc@redhat.com>
963 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi
965 * doc/md.texi (cmpstrn): Note that the comparison stops if both
966 fetched bytes are zero.
968 (cmpmem): Note that the comparison does not stop if both of the
969 fetched bytes are zero.
971 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
973 * config/rx/rx.md (movsicc): Allow register to register
975 (*movsicc): Likewise.
976 (*stcc): Restrict this pattern to EQ and NE compares.
977 (*stcc_reg): New pattern. Works for any comparison but only for
980 2011-08-10 DJ Delorie <dj@redhat.com>
982 * expr.c (expand_expr_addr_expr_1): Detect a user request for
983 a local frame in a naked function, and produce a suitable
984 error for that specific case.
986 2011-08-09 Martin Jambor <mjambor@suse.cz>
989 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
992 2011-08-09 Nick Clifton <nickc@redhat.com>
994 * config/rx/rx.md: Disable extender peepholes at -O3.
996 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
999 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1000 (TARGET_INSTANTIATE_DECLS): New define.
1002 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1004 Backport from mainline
1005 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1007 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1009 * doc/invoke.texi: Document core-avx-i.
1011 2011-08-03 Jakub Jelinek <jakub@redhat.com>
1013 PR tree-optimization/49948
1014 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1016 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
1018 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
1019 (stack_protect_test): The pattern compares ptr_mode value.
1021 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
1024 * config/i386/i386.md (strset): Do not expand strset_singleop
1025 when %eax or $edi are fixed.
1026 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
1027 (*strsetsi_1): Ditto.
1028 (*strsethi_1): Ditto.
1029 (*strsetqi_1): Ditto.
1030 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
1031 (*rep_stossi): Ditto.
1032 (*rep_stosqi): Ditto.
1033 (*strlenqi_1): Ditto.
1034 (cmpstrnsi): Also fail when %ecx is fixed.
1035 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
1036 (*cmpstrnqi_1): Ditto.
1037 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
1038 (*strmovsi_1): Ditto.
1039 (*strmovhi_1): Ditto.
1040 (*strmovqi_1): Ditto.
1041 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
1042 (*rep_movsi): Ditto.
1043 (*rep_movqi): Ditto.
1045 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
1048 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
1049 Disable instruction scheduling for non-ColdFire targets.
1050 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1052 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1056 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
1057 in nested parallel and outer is a gimple_reg, mark it as addressable
1058 and set its bit in task_shared_vars bitmap too.
1060 2011-07-29 Wei Guozhi <carrot@google.com>
1062 Backport from mainline
1063 2011-07-29 Wei Guozhi <carrot@google.com>
1065 PR rtl-optimization/49799
1066 * combine.c (make_compound_operation): Check if the bit field is valid
1067 before change it to bit field extraction.
1069 2011-07-28 Jakub Jelinek <jakub@redhat.com>
1072 * dwarf2out.c (size_of_die, value_format, output_die): Use
1073 DW_FORM_udata instead of DW_FORM_data[48] for
1074 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
1076 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1078 Backport from mainline
1079 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1082 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
1084 2011-07-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1086 Backport from mainline:
1087 2011-07-26 Martin Jambor <mjambor@suse.cz>
1089 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1090 return false for invariants.
1092 2011-07-27 Jakub Jelinek <jakub@redhat.com>
1095 * config/i386/i386.md (*call_pop_1_vzeroupper, *call_pop_1,
1096 *sibcall_pop_1_vzeroupper, *sibcall_pop_1, *call_1_vzeroupper,
1097 *call_1, *sibcall_1_vzeroupper, *sibcall_1, *call_1_rex64_vzeroupper,
1098 *call_1_rex64, *call_1_rex64_ms_sysv_vzeroupper,
1099 *call_1_rex64_ms_sysv, *sibcall_1_rex64_vzeroupper,
1100 *sibcall_1_rex64, *call_value_pop_1_vzeroupper,
1101 *call_value_pop_1, *sibcall_value_pop_1_vzeroupper,
1102 *sibcall_value_pop_1, *call_value_1_vzeroupper,
1103 *call_value_1, *sibcall_value_1_vzeroupper,
1104 *sibcall_value_1, *call_value_1_rex64_vzeroupper,
1105 *call_value_1_rex64, *call_value_1_rex64_ms_sysv_vzeroupper,
1106 *call_value_1_rex64_ms_sysv, *sibcall_value_1_rex64_vzeroupper,
1107 *sibcall_value_1_rex64): Use z constraint instead of s constraint.
1109 Backport from mainline
1110 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1112 * config/i386/constraints.md (z): New constraint.
1114 2011-07-25 Andrew Pinski <apinski@cavium.com>
1117 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
1118 TREE_THIS_NOTRAP into the inner most MEM_REF.
1119 Always copy TREE_THIS_VOLATILE.
1120 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
1121 arguments are not volatile references.
1123 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
1126 Backport from mainline r176756
1127 2011-07-25 Georg-Johann Lay
1128 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
1129 shift counter for x << x and x >> x shifts.
1131 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
1133 * config.gcc (x86_64-*-linux*): Set
1134 default_gnu_indirect_function to yes.
1136 2011-07-22 Richard Guenther <rguenther@suse.de>
1138 PR tree-optimization/45819
1139 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1140 preserve volatile and notrap flags.
1142 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
1144 Backport from mainline
1145 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
1148 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
1149 general register to memory for !TARGET_INTER_UNIT_MOVES.
1151 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1153 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
1154 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
1156 2011-07-19 Jakub Jelinek <jakub@redhat.com>
1158 PR tree-optimization/49768
1159 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Return NULL
1160 if offset is smaller than bitoffset, but offset+size is bigger
1163 2011-07-18 Jakub Jelinek <jakub@redhat.com>
1166 * tree.c (build_common_builtin_nodes): Register
1167 __builtin_return_address, __cyg_profile_func_enter
1168 and __cyg_profile_func_exit.
1170 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1172 * config.gcc: Obsolete i[3456x]86-*-netware*.
1174 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1178 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1180 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1183 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
1186 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1188 2011-07-16 Eric Botcazou <ebotcazou@adacore.com>
1190 PR tree-optimization/49725
1191 Backport from mainline
1192 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1194 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1195 a zero minimum index only if it is redundant.
1197 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1200 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1202 2011-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1204 Backport from mainline:
1205 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1207 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1208 (asm_file_start): Remove.
1209 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1210 free_bb_for_insn around code that modifies insns before
1211 restarting df analysis.
1213 2011-07-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1215 Backport from mainline:
1216 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1219 * config/sol2.h (LIB_SPEC): Simplify.
1220 Move LIB_THREAD_LDFLAGS_SPEC ...
1221 (LINK_SPEC): ... here.
1223 2011-07-14 James Greenhalgh <james.greenhalgh@arm.com>
1225 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
1227 2011-07-14 Andrew Pinski <pinskia@gmail.com>
1230 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1231 Use fold_build2_loc instead of build2.
1232 Use the correct type for the new tree.
1234 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
1237 Backport from mainline r176276
1238 2011-07-14 Georg-Johann Lay
1239 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1241 (*rotw<mode>): Use const_int_operand for operand2.
1242 Use match_scatch for operand3.
1243 (*rotb<mode>): Ditto
1244 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1246 2011-07-14 Richard Guenther <rguenther@suse.de>
1248 PR tree-optimization/49651
1249 * tree-ssa-structalias.c (get_constraint_for_1): Properly
1250 handle dereferences with subvariables.
1252 2011-07-11 Martin Jambor <mjambor@suse.cz>
1254 PR tree-optimization/49094
1255 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1256 (build_accesses_from_assign): Use it.
1258 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1261 Backport from mainline r176141
1262 2011-07-11 Georg-Johann Lay
1263 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1264 offsets 1..5 set cc0 in a usable way.
1266 2011-07-08 Jakub Jelinek <jakub@redhat.com>
1269 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1270 CONST0_RTX (dest_mode) instead of const0_rtx as second operand
1272 * config/rs6000/vector.md (vector_select_<mode>,
1273 vector_select_<mode>_uns): Change second operand of NE to
1274 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1275 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1276 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1277 zero_constant of the corresponding vector mode.
1278 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1281 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1284 Backport from mainline SVN 176053.
1285 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1286 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1287 In particular, allow 8-bit values in r28 and r29.
1288 (avr_hard_regno_scratch_ok): Disallow any register that might be
1289 part of the frame pointer.
1290 (avr_hard_regno_rename_ok): Same.
1291 (avr_legitimate_address_p): Don't allow SUBREGs.
1293 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1296 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1297 MASK_V8PLUS, remove commented out flag and reorder.
1299 Backport from mainline
1300 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1302 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1303 (TARGET_64BIT_DEFAULT): Define.
1304 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1306 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1308 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1311 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1312 one non-complex and one complex argument, call c_save_expr on both
1316 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1317 referencing debug insns that have been reset.
1318 (dead_debug_insert_before): Don't assert reg is non-NULL,
1319 instead return immediately if it is NULL.
1322 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
1323 operands and last COMPONENT_REF operand call gimplify_expr on it
1326 2011-07-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1328 Backport from mainline.
1329 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1332 * config/arm/predicates.md (add_operator): New.
1333 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
1336 2011-07-05 Jakub Jelinek <jakub@redhat.com>
1338 PR tree-optimization/49618
1339 * tree-eh.c (tree_could_trap_p) <case FUNCTION_DECL, case VAR_DECL>:
1340 For DECL_WEAK decls return true.
1342 2011-07-04 Jakub Jelinek <jakub@redhat.com>
1344 PR rtl-optimization/49619
1345 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
1346 pass VOIDmode as op0_mode to recursive call.
1348 PR rtl-optimization/49472
1349 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
1350 negating MULT, negate the second operand instead of first.
1351 (simplify_binary_operation_1) <case MULT>: If one operand is
1352 a NEG and the other is MULT, don't attempt to optimize by
1353 negation of the MULT operand if it only moves the NEG operation
1356 Backported from mainline
1357 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1360 * dwarf2out.c (native_encode_initializer): Decrement count in each
1363 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1365 Backport from mainline
1366 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1369 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
1370 instead of TREE_READONLY.
1372 2011-07-04 Richard Guenther <rguenther@suse.de>
1374 PR tree-optimization/49615
1375 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
1376 basic-block index check.
1378 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1380 PR tree-optimization/49572
1381 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1382 type of the RHS instead of that of the LHS for the expression type.
1384 2011-06-30 Georg-Johann Lay <avr@gjlay.de>
1386 Backport from mainline
1388 (avr_section_type_flags): For data in ".progmem.data", remove
1389 section flag SECTION_WRITE.
1391 2011-06-30 Georg-Johann Lay <avr@gjlay.de>
1393 Backport from mainline
1395 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1396 about uninitialized data attributed 'progmem' from here...
1397 (avr_encode_section_info): ...to this new function.
1398 (TARGET_ENCODE_SECTION_INFO): New define.
1400 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1402 Backport from mainline
1403 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1405 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1407 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1409 (TARGET_AVX128_OPTIMAL): New definition.
1410 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1411 X86_TUNE_AVX128_OPTIMAL entry.
1412 (ix86_option_override_internal): Enable the generation
1413 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1414 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1415 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1417 2011-06-29 Harsha Jagasia <harsha.jagasia@amd.com>
1419 Backport from mainline
1420 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1422 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1423 * config/i386/sse.md: Add n to negated FMA pattern names.
1425 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1427 PR tree-optimization/49539
1428 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1429 names by means of stmt_references_abnormal_ssa_name.
1430 (associate_plusminus): Call can_propagate_from before propagating
1431 from definition statements.
1433 2011-06-29 Martin Jambor <mjambor@suse.cz>
1435 Backport from mainline
1436 2011-06-24 Martin Jambor <mjambor@suse.cz>
1438 PR tree-optimizations/49516
1439 * tree-sra.c (sra_modify_assign): Choose the safe path for
1440 aggregate copies if we also did scalar replacements.
1442 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1444 Backport from mainline
1445 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1448 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1449 (avx256_split_unaligned_store): New definition.
1450 (ix86_option_override_internal): Enable avx256 unaligned load/store
1451 splitting only when avx256_split_unaligned_load/store is set.
1453 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1455 Backport from mainline
1456 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1458 * config/i386/i386.c (flag_opts): Fix a typo in
1459 -mavx256-split-unaligned-store.
1461 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1463 Backport from mainline
1464 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1466 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1467 unaligned 256bit load/store.
1468 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1469 (*avx_movdqu<avxmodesuffix>): Likewise.
1471 2011-06-28 Changpeng Fang <changpeng.fang@amd.com>
1473 Backport from mainline
1474 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1476 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1477 and -mavx256-split-unaligned-store.
1478 (ix86_option_override_internal): Split 32-byte AVX unaligned
1479 load/store by default.
1480 (ix86_avx256_split_vector_move_misalign): New.
1481 (ix86_expand_vector_move_misalign): Use it.
1483 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1484 -mavx256-split-unaligned-store.
1486 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1487 256bit load/store. Generate unaligned store on misaligned memory
1489 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1491 (*avx_movdqu<avxmodesuffix>): Likewise.
1493 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1494 -mavx256-split-unaligned-store.
1496 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1498 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1500 2011-06-28 Andrey Belevantsev <abel@ispras.ru>
1502 Backport from mainline
1503 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1505 PR rtl-optimization/49014
1506 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1508 2011-06-28 Alexander Monakov <amonakov@ispras.ru>
1510 Backport from mainline
1511 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1514 * cfgloop.h (loop_has_exit_edges): New helper.
1515 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1517 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1518 that have no exit edges.
1520 2011-06-28 Iain Sandoe <iains@gcc.gnu.org>
1523 * config/darwin.c (darwin_mergeable_string_section): Place string
1524 constants in '.cstring' rather than '.const' when CF/NSStrings are
1527 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1529 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1530 forward scan as well.
1532 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1534 * BASE-VER: Set to 4.6.2.
1535 * DEV-PHASE: Set to prerelease.
1537 2011-06-27 Release Manager
1539 * GCC 4.6.1 released.
1541 2011-06-21 Alan Modra <amodra@gmail.com>
1543 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New func.
1544 (TARGET_CANNOT_FORCE_CONST_MEM): Update definition.
1546 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1548 Backport from mainline.
1549 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1552 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1553 correctly for the case with Quad vectors.
1555 2011-06-20 Alan Modra <amodra@gmail.com>
1557 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1558 of toc-relative address in CONST.
1559 (rs6000_delegitimize_address): Recognize changed address.
1560 (rs6000_legitimize_reload_address): Likewise.
1561 (rs6000_emit_move): Don't force these constants to memory.
1562 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1563 toc-relative address in CONST.
1564 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1565 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1567 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1570 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1571 last_arg_constant and last argument doesn't match its predicate,
1572 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1573 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1574 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1575 spelling of error message.
1576 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1577 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1578 const_0_to_255_operand instead of const_int_operand.
1580 2011-06-17 Richard Henderson <rth@redhat.com>
1582 Backport from mainline
1583 2011-03-22 Richard Henderson <rth@redhat.com>
1585 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1587 2011-06-17 Richard Guenther <rguenther@suse.de>
1589 Backport from mainline
1590 2011-05-23 Richard Guenther <rguenther@suse.de>
1592 PR tree-optimization/49115
1593 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1594 is not necessarily carried out, do not claim it kills the ref.
1595 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1597 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1599 Backport from mainline
1600 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1602 PR rtl-optimization/48542
1603 * reload.c (find_equiv_reg): Stop looking when finding a
1605 * reload1.c (reload_as_needed): Invalidate all reload
1606 registers when crossing a setjmp-type call.
1608 2011-06-16 Kaz Kojima <kkojima@gcc.gnu.org>
1610 Backport form main line
1611 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1614 * config/sh/sh.md (UNSPEC_CHKADD): New.
1615 (chk_guard_add): New define_insn_and_split.
1616 (symGOT_load): Use chk_guard_add instead of blockage.
1618 2011-06-16 Martin Jambor <mjambor@suse.cz>
1620 Backported from mainline
1621 2011-06-15 Martin Jambor <mjambor@suse.cz>
1623 PR tree-optimization/48613
1624 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1625 ipa_node_params_vector is NULL.
1627 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1629 PR tree-optimization/49419
1630 * tree-vrp.c (execute_vrp): Call init_range_assertions
1631 before estimate_numbers_of_iterations, call
1632 free_number_of_iterations_estimates before calling
1633 remove_range_assertions.
1635 Backported from mainline
1636 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1639 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
1640 with a set of similar patterns, where the MATCH_OPERAND for the
1641 function argument is replaced with individual references to hardware
1643 (save_fpregs_<mode>): Ditto
1644 (restore_gpregs_<mode>): Ditto
1645 (return_and_restore_gpregs_<mode>): Ditto
1646 (return_and_restore_fpregs_<mode>): Ditto
1647 (return_and_restore_fpregs_aix_<mode>): Ditto
1649 2011-06-14 Richard Henderson <rth@redhat.com>
1652 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1653 (based_loc_descr): Assert it's true.
1654 (compute_frame_pointer_to_fb_displacement): Set it,
1655 rather than aborting immediately.
1657 2011-06-14 Richard Henderson <rth@redhat.com>
1659 Backport from mainline
1660 2011-03-22 Richard Henderson <rth@redhat.com>
1662 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1663 (avr_incoming_return_addr_rtx): New.
1664 (emit_push_byte): New.
1665 (expand_prologue): Use it. Remove incorrect dwarf annotation for
1666 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
1667 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
1668 (emit_pop_byte): New.
1669 (expand_epilogue): Use it. Pop frame pointer by bytes.
1670 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1671 (INCOMING_RETURN_ADDR_RTX): New.
1672 (INCOMING_FRAME_SP_OFFSET): New.
1673 (ARG_POINTER_CFA_OFFSET): New.
1674 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1675 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1678 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1681 * tree.h (DECL_NONSHAREABLE): Define.
1682 (struct tree_decl_common): Change decl_common_unused to
1683 decl_nonshareable_flag.
1684 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1685 Ignore vars with DECL_NONSHAREABLE bit set.
1686 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1687 on stores to automatic aggregate vars.
1689 PR rtl-optimization/49390
1691 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1693 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1696 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1698 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1699 (*vec_dupv2df): Rename from vec_dupv2df.
1700 (vec_dupv2df): New expander.
1702 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1704 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1706 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1708 Backport from mainline
1709 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1711 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1712 unknown Intel family 0x6 CPUs.
1714 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1716 Backport from mainline
1717 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1720 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1721 needed when original operands are used for msw_skip comparison.
1723 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1725 PR gcov-profile/49299
1726 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1728 2011-06-06 Pat Haugen <pthaugen@us.ibm.com>
1730 Backport from mainline
1731 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1733 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1736 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1739 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1740 if stmt folded into nothing.
1741 * tree-inline.c (fold_marked_statements): If a builtin at the
1742 end of a bb folded into nothing, just update cgraph edges
1743 and move to next bb.
1744 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1745 to be NULL. Don't compute count and frequency if new_call is NULL.
1747 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1749 * longlong.h (smul_ppmm): The resulting register pair contains the
1750 higher order word first.
1752 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1754 PR tree-optimization/49243
1755 * calls.c (setjmp_call_p): Also check if fndecl has the
1756 returns_twice attribute.
1758 2011-06-06 Richard Guenther <rguenther@suse.de>
1760 PR tree-optimization/48702
1761 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1762 only when we know the base address is within bounds.
1763 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1764 assume the base address of TARGET_MEM_REFs is in bounds.
1765 (indirect_refs_may_alias_p): Fix TARGET_MEM_REF without index tests.
1767 Backport from mainline
1768 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1770 PR rtl-optimization/49235
1771 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1772 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1774 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1776 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1777 EH return when delayed branches are disabled.
1779 2011-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
1781 Backport from mainline
1782 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1785 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1786 part of the second operand is 0.
1788 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1791 * target.def (delay_sched2, delay_vartrack): New.
1792 * doc/tm.texi.in: Update.
1793 * doc/tm.texi: Rebuild.
1794 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1795 * var-tracking.c (gate_handle_var_tracking): Likewise.
1796 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1797 (bfin_flag_var_tracking): Drop.
1798 (output_file_start): Don't save and override flag_var_tracking.
1799 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1800 (bfin_reorg): Test original variables.
1801 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1802 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1803 (ia64_flag_var_tracking): Drop.
1804 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1805 (ia64_file_start): Don't save and override flag_var_tracking.
1806 (ia64_override_options_after_change): Ditto
1807 flag_schedule_insns_after_reload.
1808 (ia64_reorg): Test original variables.
1809 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1810 (picochip_flag_var_tracking): Drop.
1811 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1812 (picochip_option_override): Don't save and override
1813 flag_schedule_insns_after_reload.
1814 (picochip_asm_file_start): Ditto flag_var_tracking.
1815 (picochip_reorg): Test original variables.
1816 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1817 (TARGET_DELAY_VARTRACK): Define.
1818 (spu_var_tracking): New.
1819 (spu_machine_dependent_reorg): Call it.
1820 (asm_file_start): Don't save and override flag_var_tracking.
1822 2011-06-04 Ira Rosen <ira.rosen@linaro.org>
1824 PR tree-optimization/49038
1825 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1826 Ensure at least one epilogue iteration if required by data
1828 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1829 to mark loops that require peeling for gaps.
1830 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1831 (vect_get_known_peeling_cost): Take peeling for gaps into
1833 (vect_transform_loop): Generate epilogue if required by data
1835 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1836 loop as requiring an epilogue if there are gaps in the end of
1839 2011-06-02 Ira Rosen <ira.rosen@linaro.org>
1841 PR tree-optimization/49093
1842 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1845 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1847 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1848 (fma4_fmaddsub): Likewise
1850 2011-05-31 Richard Guenther <rguenther@suse.de>
1852 Backport from mainline
1853 2011-05-19 Richard Guenther <rguenther@suse.de>
1856 * tree-object-size.c (addr_object_size): If the pointed-to
1857 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1859 2011-05-31 Richard Guenther <rguenther@suse.de>
1861 Backport from mainline
1862 2011-05-11 Richard Guenther <rguenther@suse.de>
1865 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1867 2011-05-30 Richard Guenther <rguenther@suse.de>
1869 PR tree-optimization/49218
1870 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1873 2011-05-30 Georg-Johann Lay <avr@gjlay.de>
1876 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors):
1877 Don't use r20 around calls of __tablejump_elpm__
1879 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1882 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1885 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1888 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1889 recurse_p argument. Only follow register copies if it is set,
1890 and prevent mips_find_pic_call_symbol from recursing.
1891 (mips_find_pic_call_symbol): Add a recurse_p argument.
1892 Pass it to mips_pic_call_symbol_from_set.
1893 (mips_annotate_pic_calls): Update accordingly.
1895 2011-05-29 Richard Guenther <rguenther@suse.de>
1897 PR tree-optimization/49217
1898 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1900 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1902 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1903 moves expensive on Power7 also.
1905 2011-05-26 Georg-Johann Lay <avr@gjlay.de>
1908 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1909 alone. Error if non-const data has attribute progmem.
1911 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1914 * gimplify.c (shortcut_cond_r): Don't special case
1915 COND_EXPRs if they have void type on one of their arms.
1917 PR tree-optimization/49161
1918 * tree-vrp.c (struct case_info): New type.
1919 (compare_case_labels): Sort case_info structs instead of
1920 trees, and not primarily by CASE_LABEL uids but by
1921 label_for_block indexes.
1922 (find_switch_asserts): Put case labels into struct case_info
1923 array instead of TREE_VEC, adjust sorting, compare label_for_block
1924 values instead of CASE_LABELs.
1926 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1929 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1931 2011-05-18 Jan Hubicka <jh@suse.cz>
1933 PR tree-optimization/44897
1934 * ipa-inline.c (cgraph_decide_recursive_inlining): Do not divide
1935 by zero for insane profiles.
1937 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1939 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1940 force flag_ira_share_save_slots to 0.
1942 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1945 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1947 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1949 Backport from mainline
1950 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1953 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1954 add -mno-XXX. Handle FMA.
1956 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1959 * fold-const.c (constant_boolean_node): If type is non-NULL,
1960 use build_int_cst_type instead of build_int_cst.
1963 * dbxout.c: Include cgraph.h.
1964 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1965 and without value expr, return NULL if no varpool node exists for
1966 it or if it is not needed.
1967 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1970 * c-decl.c (start_decl): Convert expr to void_type_node.
1973 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1974 failed and the comparison has a single bit signed type, use
1975 constm1_rtx instead of const1_rtx for true value.
1976 (do_store_flag): If ops->type is single bit signed type, disable
1977 signel bit test optimization and pass -1 instead of 1 as last
1978 parameter to emit_store_flag_force.
1980 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1982 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1983 (sparc-*-rtems*): Likewise.
1984 (sparc64-*-elf*): Likewise.
1985 (sparc64-*-rtems*): Likewise.
1986 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1987 * config/sparc/t-crtin: New file.
1988 * config/sparc/t-sol2 (crti.o): Delete rule.
1990 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1991 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1992 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1993 (ENDFILE_SPEC): Add crtn.o.
1995 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1998 * config/i386/cpuid.h (bit_MMXEXT): New define.
2000 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2003 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2004 only after deciding which mode to use.
2006 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2008 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2011 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2013 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2014 false if there are call-saved registers here...
2015 (sparc_can_use_return_insn_p): ...but here instead.
2016 (save_or_restore_regs): Fix thinko.
2017 (sparc_expand_prologue): Use current_function_is_leaf.
2018 (sparc_frame_pointer_required): Likewise.
2020 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2023 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2024 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2026 2011-05-20 Richard Guenther <rguenther@suse.de>
2028 PR tree-optimization/49079
2029 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2030 MEM_REFs correctly for the trailing array access detection.
2031 Special case constants the same way as decls for overall size
2034 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2036 PR tree-optimization/49073
2037 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return
2038 NULL if PHI argument is SSA_NAME, whose def_stmt is dominated
2040 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2042 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2044 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2045 when TARGET_RDRND is active.
2046 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2047 Generate dummy SImode target register when target is NULL.
2049 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2051 Backport from mainline
2052 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2055 * config/i386/sse.md (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>):
2056 Properly handle load cast.
2058 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2060 PR tree-optimization/49039
2061 * tree-vrp.c (extract_range_from_binary_expr): For
2062 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2063 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2065 2011-05-18 Richard Guenther <rguenther@suse.de>
2067 PR tree-optimization/49018
2068 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2069 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2070 gimple_has_side_effects.
2072 2011-05-18 Richard Guenther <rguenther@suse.de>
2074 Backport from mainline
2075 2011-04-19 Richard Guenther <rguenther@suse.de>
2078 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2081 2011-04-21 Richard Guenther <rguenther@suse.de>
2084 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
2087 2011-05-18 Richard Guenther <rguenther@suse.de>
2089 Backport from mainline
2090 2011-05-12 Richard Guenther <rguenther@suse.de>
2092 PR tree-optimization/48172
2093 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2094 the number of iterations from the segment size calculation.
2095 (vect_create_cond_for_alias_checks): Adjust.
2097 2011-05-13 Richard Guenther <rguenther@suse.de>
2099 PR tree-optimization/48172
2100 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2101 multiplying by number of iterations for equal step.
2102 (vect_create_cond_for_alias_checks): Likewise.
2104 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2106 PR tree-optimization/49000
2107 * tree-ssa.c (execute_update_addresses_taken): Call
2108 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2109 be rewritten and decl has been marked for renaming, reset
2112 2011-05-17 Nick Clifton <nickc@redhat.com>
2114 Import these patches from the mainline:
2116 2011-05-17 Nick Clifton <nickc@redhat.com>
2118 * config/rx/rx.c (rx_memory_move_cost): Include cost of register moves.
2120 * config/rx/rx.md: Add peephole to remove redundant extensions
2122 (bitset_in_memory): Use rx_restricted_mem_operand.
2123 (bitinvert_in_memory): Likewise.
2124 (bitclr_in_memory): Likewise.
2126 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2127 Nick Clifton <nickc@redhat.com>
2129 * config/rx/rx.md: Add peepholes to match a register move followed
2130 by a comparison of the moved register. Replace these with an
2131 addition of zero that does both actions in one instruction.
2133 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2136 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2137 predicate to allow CONST_INT.
2139 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2141 PR preprocessor/48677
2142 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2143 from decoded_options[0], not from itself.
2145 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2147 * config/i386/i386.md (*movxf_internal): Disable CONST_DOUBLE
2148 optimization for CM_MEDIUM and CM_LARGE code models. Fix usage
2149 of standard_80387_constant_p.
2150 (*movxf_internal_nointeger): Ditto.
2151 (*movdf_internal): Remove dead code-size optimization.
2152 (*movdf_internal_rex64): Fix usage of standard_80387_constant_p.
2153 (*movdf_internal_nointeger): Ditto.
2154 (*movsf_internal): Ditto.
2155 (floating point move splitters): Ditto.
2156 * config/i386/constraints.md (G): Ditto.
2157 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2159 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2161 PR tree-optimization/48975
2162 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2163 on all bbs here and free and clear ifc_bbs at the end.
2165 2011-05-12 Richard Guenther <rguenther@suse.de>
2167 Backport from mainline
2168 2011-05-02 Richard Guenther <rguenther@suse.de>
2170 PR tree-optimization/48822
2171 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2172 (process_scc): Indicate which iteration we start.
2174 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2177 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2178 if validate_subreg fails.
2180 2011-05-12 Nick Clifton <nickc@redhat.com>
2182 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2183 * config/rx/rx.c (rx_is_legitimate_constant): Use gcc_unreachable
2185 (rx_align_for_label): Test label before extracting its number of
2187 (rx_max_skip_for_label): Ignore debug insns.
2189 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2192 * tree-ssa.c (reset_debug_uses): New function.
2193 * tree-flow.h (reset_debug_uses): New prototype.
2194 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2195 * tree-loop-distribution.c (generate_loops_for_partition): Call
2196 reset_debug_uses on the stmts that will be removed. Keep around
2197 all debug stmts, don't count them as bits in partition bitmap.
2198 (generate_builtin): Don't count debug stmts or labels as bits in
2201 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2203 Backport from mainline
2204 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2206 PR target/48857, 48495
2207 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2209 (VSX_MOVE_MODE): Ditto.
2210 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2211 VSX vector types. Add V2DImode.
2212 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2213 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2214 (MODES_TIEABLE_P): Ditto.
2216 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2217 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2219 (init_cumulative_args): Ditto.
2220 (rs6000_function_arg_boundary): Ditto.
2221 (rs6000_function_arg_advance_1): Ditto.
2222 (rs6000_function_arg): Ditto.
2223 (rs6000_function_ok_for_sibcall): Ditto.
2224 (emit_frame_save): Ditto.
2225 (rs6000_function_value): Ditto.
2226 (rs6000_libcall_value): Ditto.
2228 2011-05-10 Nick Clifton <nickc@redhat.com>
2230 * config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
2233 2011-05-10 DJ Delorie <dj@redhat.com>
2235 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2236 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2237 * config/rx/rx.c (rx_align_for_label): Add label and
2238 uses_threshold parameters. Do not align when the label is not
2240 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2242 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2244 Backported from mainline
2245 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2247 PR tree-optimization/48837
2248 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2249 when accumulator transformation is performed.
2251 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2253 PR tree-optimization/48611
2254 PR tree-optimization/48794
2255 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2256 referenced from RESX or EH_DISPATCH arguments.
2258 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2260 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2261 temporary register to match Pmode.
2263 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2265 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2266 (dataflow_set_preserve_mem_locs): Likewise.
2268 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2270 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2271 constraint modifier to "r".
2273 2011-05-06 Alan Modra <amodra@gmail.com>
2276 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2277 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2279 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2281 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2283 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2285 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2288 * config/arm/neon.md (neon_vtrn<mode>): Fix typo from earlier commit.
2290 2011-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2292 * config/rs6000/rs6000.c (rs6000_handle_option): Add missing break
2295 2011-05-05 Jason Merrill <jason@redhat.com>
2298 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2300 2011-05-05 Julian Brown <julian@codesourcery.com>
2302 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2303 parenthesis in D-register case.
2305 2011-05-05 Ira Rosen <ira.rosen@linaro.org>
2307 Backport from mainline:
2308 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2309 Ira Rosen <ira.rosen@linaro.org>
2312 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2313 to match neon_vzip/vuzp/vtrn_internal.
2314 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2315 outputs explicitly dependent on both inputs.
2316 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2318 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2320 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2321 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2322 (*movdi_internal): Use "maybe_vex" instead of "vex" in "prefix"
2323 attribute calculation.
2324 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2325 * config/i386/sse.md (*sse2_storeq_rex64): Do not emit %v prefix
2326 for mov{q} mnemonic.
2327 (*vec_extractv2di_1_rex64_avx): Ditto.
2329 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2330 Jakub Jelinek <jakub@redhat.com>
2333 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2334 only succeed if req_mode is the same as set_mode.
2336 2011-05-03 Richard Guenther <rguenther@suse.de>
2339 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2340 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2341 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2343 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2346 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2347 for -fstack-check if the size to allocate is negative.
2349 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2351 PR tree-optimization/48809
2352 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2354 (gen_inbound_check): Don't compute index_expr - range_min in utype
2355 again, instead reuse SSA_NAME initialized in build_arrays.
2356 Remove two useless gsi_for_stmt calls.
2358 2011-04-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2360 Backport from mainline
2361 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2362 Michael Meissner <meissner@linux.vnet.ibm.com>
2365 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2366 operands, as per the specifications.
2368 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2369 (vec_extract_evenv4sf): Ditto.
2370 (vec_extract_evenv8hi): Ditto.
2371 (vec_extract_evenv16qi): Ditto.
2372 (vec_extract_oddv4si): Ditto.
2374 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2377 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2380 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2383 * c-typeck.c (build_binary_op): Don't wrap arguments if
2384 int_operands is true.
2386 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2389 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2390 is error_mark_node, set value to NULL.
2392 PR tree-optimization/48734
2393 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2394 if return value from maybe_fold_*_comparsions isn't something
2395 the code is prepared to handle.
2397 2011-04-26 Richard Guenther <rguenther@suse.de>
2399 PR tree-optimization/48731
2400 * ipa-inline.c (cgraph_flatten): Test if function is inlinable.
2402 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2405 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2406 __is_literal_type, and __is_trivial; update throughout about
2407 possibly cv-qualified void types.
2409 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2412 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2413 to VOID_TYPE even around MODIFY_EXPR.
2415 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2417 PR tree-optimization/48717
2418 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2419 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2421 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2424 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2425 TREE_STATIC variables declared inside of some OpenMP construct.
2427 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2430 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2431 vec_extract and vec_concat for non-SSE4_1 targets.
2433 2011-04-21 Richard Guenther <rguenther@suse.de>
2436 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2437 objects and types here. Adjust for their offset before comparing.
2439 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2441 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2443 2011-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2446 * config/pa/predicates.md (ior_operand): Delete predicate.
2447 (cint_ior_operand, reg_or_cint_ior_operand): New predicates.
2448 * config/pa/pa.md (iordi3): Use reg_or_cint_ior_operand predicate in
2449 expander. Use cint_ior_operand in unnamed insn.
2451 * config/pa/pa-protos.h (ior_operand): Delete declarations.
2453 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2455 PR tree-optimization/48611
2456 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2457 beyond ERT_MUST_NOT_THROW region.
2459 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2461 Backport from mainline
2462 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2465 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2466 the types if they have different enumeration identifiers.
2468 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2471 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2472 DECL_IN_CONSTANT_POOL without RTL.
2474 2011-04-20 Richard Guenther <rguenther@suse.de>
2476 Backport from mainline
2477 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2480 * reload1.c (inc_for_reload): Return void. All callers changed.
2481 (emit_input_reload_insns): Don't try to delete previous output
2482 reloads to a register, or record spill_reg_store for autoincs.
2484 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2487 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2488 is a SUBREG with non-MODE_INT mode inside of it.
2490 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2493 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2494 if TREE_TYPE (v) is non-NULL.
2496 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2497 gimple_get_virt_mehtod_for_binfo.
2498 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2499 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2501 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2503 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2505 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2507 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2509 PR tree-optimization/48616
2510 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2511 whether the shift is by scalar or vector based on whether all SLP
2512 scalar stmts have the same rhs.
2514 2011-04-17 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2516 * doc/passes.texi: Fill crossref nodes.
2518 2011-04-17 Marius Strobl <marius@FreeBSD.org>
2520 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2521 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2522 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2524 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2527 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2528 is non-null before accessing it.
2529 (input_cgraph): Remove trailing spaces.
2531 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2533 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2534 Replace match_operand with match_dup for the third operand in
2537 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2540 * config/i386/sse.md (avx_insertps, sse4_1_insertps): If operands[2]
2541 is a MEM, offset it as needed based on top 2 bits in operands[3],
2542 change MEM mode to SFmode and mask those 2 bits away from operands[3].
2544 2011-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2546 Backport from mainline:
2547 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2550 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2551 move from floating point to shift amount register.
2552 (emit_move_sequence): Remove secondary reload support for floating
2553 point to shift amount amount register copies.
2554 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2555 amount register copies.
2556 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2557 register, return false if mode isn't a scalar integer mode.
2558 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2560 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2563 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is NULL.
2564 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2566 2011-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2568 Backport from mainline:
2569 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2571 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2573 2011-04-12 Martin Jambor <mjambor@suse.cz>
2575 PR tree-optimization/48195
2576 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2577 ipa_check_create_edge_args.
2578 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2579 ipa_check_create_edge_args.
2580 * ipa-inline.c (inline_generate_summary): Do not call
2581 ipa_check_create_node_params and ipa_check_create_edge_args.
2582 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2583 ipa_check_create_edge_args.
2585 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2587 PR rtl-optimization/48549
2588 * combine.c (propagate_for_debug): Also stop after BB_END of
2589 this_basic_block. Process LAST and just stop processing after it.
2590 (combine_instructions): If last_combined_insn has been deleted,
2591 set last_combined_insn to its PREV_INSN.
2593 2011-04-12 Nick Clifton <nickc@redhat.com>
2595 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2596 instruction for interrupt handlers if the target is the basic V850
2598 (expand_epilogue): Likewise.
2600 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2603 * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to
2606 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2608 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2610 2011-04-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2612 Backport from mainline:
2613 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2615 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2617 2011-04-09 Duncan Sands <baldrick@free.fr>
2619 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2621 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2624 * config.gcc: disable unwind table generation for crtbegin/crtend
2627 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2629 PR tree-optimization/48377
2630 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set is_packed
2631 to true even for types with smaller TYPE_ALIGN than TYPE_SIZE.
2633 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2635 * config/i386/sse.md: Update copyright year.
2636 (avx_cmp<ssescalarmodesuffix><mode>3): Add missing output
2637 register constraint.
2638 (*vec_concatv2sf_avx): Fix wrong register constraint in
2639 alternative 3 of operand 1.
2640 (*vec_set<mode>_0_avx): Avoid combining registers from different
2641 units in a single alternative.
2642 (*vec_set<mode>_0_sse4_1): Ditto.
2643 (*vec_set<mode>_0_sse2): Ditto.
2644 (vec_set<mode>_0): Ditto.
2645 (sse2_storehpd): Ditto.
2646 (sse2_loadhpd): Ditto.
2647 (sse4_1_insertps): Use nonimmediate_operand for operand 2.
2648 * config/i386/predicates.md (sse_comparison_operator): Do not
2649 define as special predicate.
2651 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2654 * combine.c (combine_instructions): Add last_combined_insn,
2655 update it if insn is after it, pass it to all try_combine calls.
2656 (try_combine): Add last_combined_insn parameter, pass it instead of
2657 i3 to propagate_for_debug.
2659 2011-04-07 Andrey Belevantsev <abel@ispras.ru>
2661 Backport from mainline
2662 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
2664 PR rtl-optimization/48144
2665 * sel-sched-ir.c (merge_history_vect): Factor out from ...
2666 (merge_expr_data): ... here.
2667 (av_set_intersect): Rename to av_set_code_motion_filter.
2668 Update all callers. Call merge_history_vect when an
2669 expression is found in both sets.
2670 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2672 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2675 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2676 as base_reg whatever register reg has been eliminated to, instead
2677 of hardcoding STACK_POINTER_REGNUM.
2679 Backported from mainline
2680 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2683 * expr.c (expand_assignment): Handle all possibilities
2684 if TO_RTX is CONCAT.
2685 * expmed.c (store_bit_field_1): Avoid trying to create
2687 (store_split_bit_field): If SUBREG_REG (op0) or
2688 op0 itself has smaller mode than word, return it
2689 for offset 0 and const0_rtx for out-of-bounds stores.
2690 If word is const0_rtx, skip it.
2692 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2694 * gcov-io.c: Use GCC Runtime Library Exception.
2696 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2698 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2700 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2702 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2704 2011-04-01 Andrey Belevantsev <abel@ispras.ru>
2706 Backport from mainline
2707 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
2709 PR rtl-optimization/48143
2710 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2711 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2712 sse2_cvtps2pd): Likewise.
2714 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2717 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2718 frame-related from frame-unrelated adjustments to the stack pointer.
2720 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2722 Backport from mainline
2723 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2726 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2729 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2732 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2733 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2734 dw_fde_unlikely_section_end_label, cold_in_std_section,
2735 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2736 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2738 (output_fde): Use dw_fde_second_{begin,end} if second is
2739 true, otherwise dw_fde_{begin,end}.
2740 (output_call_frame_info): Test dw_fde_second_begin != NULL
2741 instead of dw_fde_switched_sections.
2742 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2743 fields, initialize new fields. Initialize in_std_section
2744 unconditionally from the first partition.
2745 (dwarf2out_end_epilogue): Don't override dw_fde_end when
2746 dw_fde_second_begin is non-NULL.
2747 (dwarf2out_switch_text_section): Stop initializing removed
2748 dw_fde_struct fields, initialize new fields, initialize
2749 also dw_fde_end here. Set dw_fde_switch_cfi even when
2750 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
2751 (struct var_loc_list_def): Add last_before_switch field.
2752 (arange_table, arange_table_allocated, arange_table_in_use,
2753 ARANGE_TABLE_INCREMENT, add_arange): Removed.
2754 (size_of_aranges): Count !in_std_section and !second_in_std_section
2755 hunks in fdes, instead of looking at arange_table_in_use.
2756 (output_aranges): Add aranges_length argument, don't call
2757 size_of_aranges here. Instead of using aranges_table*
2758 emit ranges for fdes when !in_std_section resp.
2759 !second_in_std_section.
2760 (dw_loc_list): Break ranges crossing section switch.
2761 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
2762 use dw_fde_second_end instead of dw_fde_end as end of last
2764 (gen_subprogram_die): Don't call add_arange. Use
2765 dw_fde_{begin,end} for first partition and if switched
2766 section dw_fde_second_{begin,end} for the second.
2767 (var_location_switch_text_section_1,
2768 var_location_switch_text_section): New functions.
2769 (dwarf2out_begin_function): Initialize cold_text_section even
2770 when function_section () isn't text_section.
2771 (prune_unused_types): Don't walk arange_table.
2772 (dwarf2out_finish): Don't needlessly test
2773 flag_reorder_blocks_and_partition when testing cold_text_section_used.
2774 If info_section_emitted, call size_of_aranges and if it indicates
2775 non-empty .debug_aranges, call output_aranges with the computed
2776 size. Stop using removed dw_fde_struct fields, use
2777 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2780 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
2782 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2783 (alpha_option_override): Don't set alpha_sr_alias_set.
2784 (emit_frame_store_1): Use gen_frame_mem rather than calling
2786 (alpha_expand_epilogue): Ditto.
2787 (unicosmk_gen_dsib): Ditto.
2789 2011-03-29 Nick Clifton <nickc@redhat.com>
2791 * config/rx/rx.h (LABEL_ALIGN_AFTER_BARRIER): Define.
2792 (ASM_OUTPUT_MAX_SKIP): Define.
2793 * config/rx/predicates.md (rx_zs_comparison_operator): Do not
2794 allow LT aor GE comparisons.
2795 * config/rx/rx-protos.h (rx_align_for_label): Prototype.
2796 * config/rx/rx.md: Add peepholes and patterns to combine extending
2797 loads with simple arithmetic instructions.
2798 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI modes
2799 to use pre-decrement and post-increment addressing.
2800 (rx_is_restricted_memory_address): For REG+INT addressing, ensure
2801 that the INT is a valid offset.
2802 (rx_print_operand): Handle %R.
2803 Fix %Q's handling of MEMs.
2804 (rx_option_override): Set alignments.
2805 (rx_align_for_label): New function.
2806 (rx_max_skip_for_label): New function.
2807 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2808 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2809 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2810 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2812 2011-03-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2814 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2815 for invalid symbolic addresses.
2816 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2819 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
2822 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2824 2011-03-28 Richard Guenther <rguenther@suse.de>
2826 Backport from mainline
2827 2011-03-24 Richard Guenther <rguenther@suse.de>
2830 * tree-object-size.c (addr_object_size): Do not double-account
2831 for MEM_REF offsets.
2833 2011-03-22 Richard Guenther <rguenther@suse.de>
2835 PR tree-optimization/48228
2836 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
2837 for single-arg PHIs.
2839 2011-03-17 Richard Guenther <rguenther@suse.de>
2842 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
2843 a value make sure to fold the statement.
2845 2011-03-15 Richard Guenther <rguenther@suse.de>
2848 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
2849 or variable-indexed array accesses when in gimple form.
2851 2011-03-27 Jonathan Wakely <jwakely.gcc@gmail.com>
2856 * doc/extend.texi (Alignment): Move section to match order in TOC.
2857 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2858 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2860 2011-03-26 Uros Bizjak <ubizjak@gmail.com>
2862 Backport from mainline:
2863 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2866 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2867 alternatives that can be handled with movq or movabsq insn.
2868 (*movdf_internal): Disable for !TARGET_64BIT.
2869 (*movdf_internal_nointeger): Ditto.
2870 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2872 2011-03-26 Jakub Jelinek <jakub@redhat.com>
2874 Backport from mainline
2875 2011-03-24 Jakub Jelinek <jakub@redhat.com>
2878 * simplify-rtx.c (simplify_const_unary_operation): Call
2879 real_convert when changing mode class with FLOAT_EXTEND.
2881 2011-03-20 Jakub Jelinek <jakub@redhat.com>
2885 * c-common.c (shorten_compare): If primopN is first sign-extended
2886 to opN and then zero-extended to result type, set primopN to opN.
2888 PR rtl-optimization/48156
2889 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
2890 assume df and df_lr are not NULL.
2892 2011-03-17 Jakub Jelinek <jakub@redhat.com>
2894 PR rtl-optimization/48141
2895 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
2896 * dse.c: Include params.h.
2897 (active_local_stores_len): New variable.
2898 (add_wild_read, dse_step1): Clear it when setting active_local_stores
2900 (record_store, check_mem_read_rtx): Decrease it when removing
2902 (scan_insn): Likewise. Increase it when adding to chain, if it
2903 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
2904 set active_local_stores to NULL before the addition.
2905 * Makefile.in (dse.o): Depend on $(PARAMS_H).
2907 PR rtl-optimization/48141
2908 * dse.c (record_store): If no positions are needed in an insn
2909 that cannot be deleted, at least unchain it from active_local_stores.
2911 2011-03-25 Jakub Jelinek <jakub@redhat.com>
2913 * BASE-VER: Set to 4.6.1.
2914 * DEV-PHASE: Set to prerelease.
2916 2011-03-25 Release Manager
2918 * GCC 4.6.0 released.
2920 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
2922 * config/rs6000/t-freebsd: Remove duplication from file.
2924 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2927 * doc/install.texi (Prerequisites): Move jar etc. up.
2928 Explain support library version requirements.
2930 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2933 * doc/install.texi (Prerequisites): Move Perl to build
2934 requirements. Always necessary on Solaris 2 with Sun ld.
2936 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2938 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
2940 (Specific, i?86-*-solaris2.[89]): Likewise.
2941 (Specific, i?86-*-solaris2.10): Likewise.
2942 (Specific, mips-sgi-irix6): Likewise.
2943 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
2944 Update for binutils 2.21.
2946 2011-03-21 Jakub Jelinek <jakub@redhat.com>
2949 * config/s390/s390.c (s390_delegitimize_address): Don't call
2950 lowpart_subreg if orig_x has BLKmode.
2952 2011-03-20 Joseph Myers <joseph@codesourcery.com>
2954 * c-decl.c (diagnose_mismatched_decls): Give an error for
2955 redefining a typedef with variably modified type.
2957 2011-03-20 Joseph Myers <joseph@codesourcery.com>
2959 * c-decl.c (grokfield): Don't allow typedefs for structures or
2960 unions with no tag by default.
2961 * doc/extend.texi (Unnamed Fields): Update.
2963 2011-03-18 Jakub Jelinek <jakub@redhat.com>
2966 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
2967 arange_table_in_use is 0, but either text_section_used or
2968 cold_text_section_used is true. Don't call it if
2969 !info_section_emitted.
2971 2011-03-18 Richard Guenther <rguenther@suse.de>
2973 * doc/install.texi (--enable-gold): Remove.
2974 (--with-plugin-ld): Document.
2975 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
2977 2011-03-18 H.J. Lu <hongjiu.lu@intel.com>
2979 Backport from mainline
2980 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
2983 * config/i386/i386.opt: Add Save to -mavx and -mfma.
2985 2011-03-18 Richard Henderson <rth@redhat.com>
2986 Jakub Jelinek <jakub@redhat.com>
2989 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
2990 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
2992 2011-03-17 Richard Guenther <rguenther@suse.de>
2995 * tree-object-size.c (compute_object_offset): Properly return
2996 the offset operand of MEM_REFs as sizetype.
2998 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3001 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3002 (lookup_type_die_strip_naming_typedef): ... here.
3003 (get_context_die): Use it.
3004 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3005 the anonymous struct named by the naming typedef.
3007 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3010 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3011 in the output template.
3013 2011-03-15 Alan Modra <amodra@gmail.com>
3016 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3017 presume symbol_refs without a symbol_ref_decl are suitably
3018 aligned, nor other trees we may see here. Handle anchor symbols.
3019 (legitimate_constant_pool_address_p): Comment. Add mode param.
3020 Check cmodel=medium addresses. Adjust all calls.
3021 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3022 creating cmodel=medium optimized access to locals.
3023 * config/rs6000/constraints.md (R): Pass QImode to
3024 legitimate_constant_pool_address_p.
3025 * config/rs6000/predicates.md (input_operand): Pass mode to
3026 legitimate_constant_pool_address_p.
3027 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3030 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3033 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3034 64-bit constants being loaded into registers other than GPRs such
3035 as loading 0 into a VSX register.
3037 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3039 * config/sol2.c (solaris_assemble_visibility): Remove obsolete
3042 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3044 * doc/invoke.texi, doc/standards.texi: Refer to
3045 gcc-4.6/c99status.html.
3047 * DEV-PHASE: Mark "prerelease".
3049 2011-03-14 Richard Guenther <rguenther@suse.de>
3052 * tree.c (build_vector_from_val): Adjust assert to requirements
3055 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3058 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE
3061 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
3063 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3064 terms of target_flags_explicit. Adjust copyright year.
3066 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3067 * config/rs6000/t-freebsd: New file. Add override for
3070 2011-03-13 Chris Demetriou <cgd@google.com>
3072 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3073 (-fno-diagnostics-show-option): this, to reflect current default.
3074 (-Werror=): Update text about -fno-diagnostics-show-option.
3076 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
3079 * config/rs6000/predicates.md (easy_vector_constant_add_self,
3080 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3081 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3082 mode is not V2DImode or V2DFmode.
3083 (vspltis_constant): Do not handle V2DImode and V2DFmode.
3084 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3085 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3087 (movdi_internal64): Likewise.
3089 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
3091 PR tree-optimization/47127
3092 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3094 (set_cloog_options): Same.
3095 (scop_to_clast): Same.
3096 (print_clast_stmt): Do not call cloog_state_malloc and
3098 (print_generated_program): Same.
3100 * graphite-clast-to-gimple.h (cloog_state): Declared.
3101 (scop_to_clast): Adjust declaration.
3102 * graphite.c (cloog_state): Defined here.
3103 (graphite_initialize): Call cloog_state_malloc.
3104 (graphite_finalize): Call cloog_state_free.
3106 2011-03-11 Jason Merrill <jason@redhat.com>
3108 * attribs.c (lookup_attribute_spec): Take const_tree.
3111 2011-03-11 Joseph Myers <joseph@codesourcery.com>
3113 * config/sparc/sparc.c (sparc_option_override): Use
3114 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3116 2011-03-11 Richard Guenther <rguenther@suse.de>
3118 PR tree-optimization/48067
3119 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3120 multiplication result will be only used once on the target
3123 2011-03-11 Richard Guenther <rguenther@suse.de>
3125 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3127 2011-03-11 Richard Guenther <rguenther@suse.de>
3130 * tree.c (find_decls_types_r): Do not walk types only reachable
3131 from IDENTIFIER_NODEs.
3133 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3136 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3137 all vnode->force_output nodes as needed.
3139 2011-03-11 Jason Merrill <jason@redhat.com>
3142 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3143 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3145 2011-03-11 Martin Jambor <mjambor@suse.cz>
3147 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3150 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3152 PR tree-optimization/48063
3153 * ipa-inline.c (cgraph_decide_inlining): Don't try to
3154 inline functions called once if !tree_can_inline_p (node->callers).
3156 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
3158 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3160 * config/score/score3.c: Delete.
3161 * config/score/score3.h: Delete.
3162 * config/score/mul-div.S: Delete.
3163 * config/score/sfp-machine.h: Add new file.
3164 * config/score/constraints.md: Add new file.
3165 * config/score/t-score-softfp: Add new file.
3166 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
3167 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3168 (score7_extra_constraint): Delete.
3169 (score7_option_override): Remove unused code.
3170 * config/score/score.c: Remove score3 and score5 define and code.
3171 * config/score/score.h: Remove score3 and score5 define and code.
3172 * config/score/score.md: Remove score3 template and unusual insn.
3173 * config/score/score.opt: Remove score3 and score5 options.
3175 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3177 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3178 when _HPUX_SOURCE is defined.
3179 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3181 2011-03-10 Jason Merrill <jason@redhat.com>
3184 * stor-layout.c (layout_type): Don't set structural equality
3185 on arrays of incomplete type.
3186 * tree.c (type_hash_eq): Handle comparing them properly.
3188 2011-03-10 Jakub Jelinek <jakub@redhat.com>
3191 * config/s390/s390.c (s390_delegitimize_address): Make sure the
3192 result mode matches original rtl mode.
3194 2011-03-10 Nick Clifton <nickc@redhat.com>
3196 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
3197 (andsi3, andsi3_flags): Fix timings for three operand alternative.
3199 2011-03-09 Jakub Jelinek <jakub@redhat.com>
3201 PR rtl-optimization/47866
3202 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3203 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3204 if target wasn't scalar.
3205 * function.c (assign_stack_temp_for_type): Assert that neither
3206 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3207 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3209 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3211 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3213 * config/s390/s390-protos.h (s390_label_align): New prototype.
3214 * config/s390/s390.c (s390_label_align): New function.
3215 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3217 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3220 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3221 V2DI/V2DF constants. Only all 0's or all 1's are easy.
3222 (output_vec_const_move): Ditto.
3224 2011-03-08 Anatoly Sokolov <aesok@post.ru>
3226 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3227 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
3228 * config/mips/mips.c (mips_preferred_reload_class): Make static.
3229 Change 'rclass' argument and result type to reg_class_t.
3230 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3232 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
3234 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3235 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
3236 (TARGET_MEMORY_MOVE_COST): Define.
3237 (avr_register_move_cost, avr_memory_move_cost): New Functions.
3239 2011-03-08 Jakub Jelinek <jakub@redhat.com>
3242 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
3245 PR tree-optimization/48022
3246 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
3249 2011-03-07 Jakub Jelinek <jakub@redhat.com>
3252 * var-tracking.c (find_use_val): Return NULL for
3253 cui->sets && cui->store_p BLKmode MEMs.
3255 2011-03-07 Anatoly Sokolov <aesok@post.ru>
3257 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3259 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
3260 xstormy16_print_operand_address): Remove.
3261 * config/stormy16/stormy16.c (xstormy16_print_operand,
3262 xstormy16_print_operand_address): Make static.
3263 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3265 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
3268 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3269 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
3272 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
3275 * cfgloopmanip.c (fix_bb_placements): Return immediately
3276 if FROM is BASE_LOOP's header.
3278 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
3280 * gimplify.c (gimplify_function_tree): Fix building calls
3281 to __builtin_return_address.
3283 2011-03-07 Alan Modra <amodra@gmail.com>
3285 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
3286 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
3287 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
3288 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
3290 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
3291 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
3292 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
3293 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
3294 * config/rs6000/rs6000.c
3295 (rs6000_elf_end_indicate_exec_stack): Rename to..
3296 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
3297 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
3298 (rs6000_file_start): ..here.
3299 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
3300 file scope variables.
3301 (call_ABI_of_interest): New function.
3302 (init_cumulative_args): Set above vars when function return value
3303 is a float, vector, or small struct.
3304 (rs6000_function_arg_advance_1): Likewise for function args.
3305 (rs6000_va_start): Set rs6000_passes_float if variable arg function
3306 references float args.
3308 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
3310 * doc/cfg.texi: Remove "See" before @ref.
3311 * doc/invoke.texi: Likewise.
3313 2011-03-05 Jason Merrill <jason@redhat.com>
3315 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
3317 2011-03-05 Anthony Green <green@moxielogic.com>
3319 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
3321 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
3323 PR rtl-optimization/47899
3324 * cfgloopmanip.c (fix_bb_placements): Fix first argument
3325 to flow_loop_nested_p when moving the loop upward.
3327 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
3330 * arm.md (movhi_insn_arch4): Accept any immediate constant.
3332 2011-03-05 Jakub Jelinek <jakub@redhat.com>
3334 PR tree-optimization/47967
3335 * ipa-cp.c (build_const_val): Return NULL instead of creating
3336 VIEW_CONVERT_EXPR for mismatching sizes.
3337 (ipcp_create_replace_map): Return NULL if build_const_val failed.
3338 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
3339 give up on versioning.
3341 2011-03-05 Alan Modra <amodra@gmail.com>
3344 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3345 full cmodel medium/large lo_sum + high addresses.
3347 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3349 * config/s390/s390.c (s390_decompose_address): Reject non-literal
3350 pool references in UNSPEC_LTREL_OFFSET.
3352 2011-03-04 Jan Hubicka <jh@suse.cz>
3355 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
3356 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
3357 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
3358 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
3359 cgraph_add_thunk): Add node pointers.
3360 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
3361 associated to right node.
3362 (input_node): Update use of cgraph_same_body_alias
3363 and cgraph_add_thunk.
3365 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
3367 * config/i386/i386.opt (mprefer-avx128): New flag.
3368 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
3369 when the flag -mprefer-avx128 is on.
3371 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
3373 * dwarf2out.c (compare_loc_operands): Fix address handling.
3375 2011-03-04 Alan Modra <amodra@gmail.com>
3377 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
3379 2011-03-04 Richard Guenther <rguenther@suse.de>
3382 * expmed.c (extract_bit_field_1): Prefer vector modes that
3383 vec_extract patterns can handle.
3385 2011-03-04 Richard Guenther <rguenther@suse.de>
3388 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
3390 2011-03-04 Richard Henderson <rth@redhat.com>
3392 * explow.c (emit_stack_save): Remove 'after' parameter.
3393 (emit_stack_restore): Likewise.
3394 * expr.h: Update to match.
3395 * builtins.c, calls.c, stmt.c: Likewise.
3396 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
3397 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
3398 * function.c (expand_function_end): Insert the emit_stack_save
3399 sequence before parm_birth_insn instead of after.
3401 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
3403 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
3404 (ssse3_pmaddubsw128): Ditto.
3405 (ssse3_pmaddubsw): Ditto.
3407 2011-03-03 Steve Ellcey <sje@cup.hp.com>
3409 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
3411 2011-03-03 Jakub Jelinek <jakub@redhat.com>
3414 * gimplify.c (omp_add_variable): Only call omp_notice_variable
3415 on TYPE_SIZE_UNIT if it is a DECL.
3418 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
3419 first operand is not is_gimple_mem_ref_addr, try to fold it.
3420 If the operand still isn't is_gimple_mem_ref_addr, clear
3423 2011-03-03 Richard Guenther <rguenther@suse.de>
3426 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
3428 (refs_may_alias_p_1): For release branches return true if
3429 we are confused by our input.
3431 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3433 * config/s390/s390.c (s390_function_value): Rename to ...
3434 (s390_function_and_libcall_value): ... this.
3435 (s390_function_value): New function.
3436 (s390_libcall_value): New function.
3437 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
3438 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
3439 target macro definitions.
3440 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
3442 2011-03-02 Joseph Myers <joseph@codesourcery.com>
3444 * config/i386/freebsd64.h (CC1_SPEC): Define.
3445 * config/i386/linux64.h (CC1_SPEC): Define.
3446 * config/i386/x86-64.h (CC1_SPEC): Don't define.
3448 2011-03-02 Anatoly Sokolov <aesok@post.ru>
3450 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3452 * config/stormy16/stormy16.c: Include reload.h.
3453 (xstormy16_memory_move_cost): New function.
3454 (TARGET_MEMORY_MOVE_COST): Define.
3456 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
3458 PR rtl-optimization/47925
3459 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
3460 with side effects. Remove the more-specific check for volatile asms.
3462 2011-03-02 Alan Modra <amodra@gmail.com>
3465 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
3466 toc relative addresses for valid offsets.
3468 2011-03-01 Richard Guenther <rguenther@suse.de>
3470 PR tree-optimization/47890
3471 * tree-vect-loop.c (get_initial_def_for_induction): Set
3472 related stmt properly.
3474 2011-03-01 Richard Guenther <rguenther@suse.de>
3477 * lto-streamer.c (lto_record_common_node): Also register
3480 2011-03-01 Richard Guenther <rguenther@suse.de>
3483 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3484 Do not stream DECL_ABSTRACT_ORIGIN.
3485 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3486 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3487 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3488 Do not stream DECL_ABSTRACT_ORIGIN.
3489 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3490 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3492 2011-02-28 Anatoly Sokolov <aesok@post.ru>
3494 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
3495 FUNCTION_VALUE_REGNO_P): Remove.
3496 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
3497 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
3498 Add 'outgoing' argument.
3499 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
3501 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3502 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3504 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
3507 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
3508 (lookup_filename): Likewise.
3509 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
3511 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
3512 Jakub Jelinek <jakub@redhat.com>
3515 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
3516 (assign_stack_local_1): Change last argument type to int.
3517 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
3518 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
3519 don't record padding space into frame_space_list nor use those areas.
3520 (assign_stack_local): Adjust caller.
3521 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
3522 of assign_stack_local, pass 0 as last argument.
3523 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
3526 2011-02-28 Jakub Jelinek <jakub@redhat.com>
3529 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
3530 Use target address_mode and pointer_mode hooks instead of hardcoded
3531 Pmode and ptr_mode. Handle some simple cases of extending if
3532 POINTERS_EXTEND_UNSIGNED < 0.
3533 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
3534 Call convert_debug_memory_address.
3535 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
3536 convert_debug_memory_address.
3539 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
3540 * configure: Regenerated.
3541 * config.in: Regenerated.
3542 * varasm.c (default_function_section): Return NULL
3543 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
3545 2011-02-28 Martin Jambor <mjambor@suse.cz>
3547 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
3548 the description to match the printed values.
3550 2011-02-28 Richard Guenther <rguenther@suse.de>
3552 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
3553 of the copied scope tree.
3555 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3557 * doc/extend.texi (Function Attributes): Avoid deeply (and
3558 wrongly) nested tables.
3560 2011-02-27 Jakub Jelinek <jakub@redhat.com>
3563 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
3564 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
3565 r isn't op0 nor op1.
3567 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
3569 * config/avr/avr.md: Remove magic comment for emacs.
3571 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
3574 * config/avr/avr.c (avr_option_override): Use error on bad options.
3575 (avr_help): New function.
3576 (TARGET_HELP): Define.
3578 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
3581 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
3582 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
3584 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
3586 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
3587 (ARM Options): Ditto.
3588 (i386 and x86-64 Options): Ditto.
3589 (RX Options): Ditto.
3590 (SPARC Options): Ditto.
3592 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
3594 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
3595 FreeBSD 6 and later. Generally use cpu generic.
3597 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
3599 * doc/cpp.texi: Update copyright years.
3601 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
3604 * config/lm32/lm32.md (ashrsi3): Added needed variable.
3606 2011-02-25 Jon Beniston <jon@beniston.com>
3609 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
3610 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3611 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
3612 (lm32_block_move_inline): Add type cast to remove warning.
3613 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
3614 (gen_int_relational): Move declarations to start of function.
3616 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
3618 PR tree-optimization/45470
3619 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3620 can throw internally only.
3621 * tree-vect-stmts.c (vectorizable_call): Likewise.
3623 2011-02-24 Anatoly Sokolov <aesok@post.ru>
3625 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
3626 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3627 * config/stormy16/stormy16-protos.h
3628 (xstormy16_preferred_reload_class): Remove.
3629 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
3630 static. Change 'rclass' argument and return type to reg_class_t.
3631 (TARGET_PREFERRED_RELOAD_CLASS,
3632 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3634 2011-02-24 Richard Guenther <rguenther@suse.de>
3636 * lto-streamer-in.c (input_bb): Do not find referenced vars
3637 in debug statements.
3639 2011-02-23 Jason Merrill <jason@redhat.com>
3641 * common.opt (fabi-version): Document v5 and v6.
3643 2011-02-23 Richard Guenther <rguenther@suse.de>
3645 PR tree-optimization/47849
3646 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
3648 2011-02-23 Jie Zhang <jie@codesourcery.com>
3650 * opts-common.c (decode_cmdline_option): Print empty string
3651 argument as "" in decoded->orig_option_with_args_text.
3652 * gcc.c (execute): Print empty string argument as ""
3653 in the verbose output.
3654 (do_spec_1): Keep empty string argument.
3656 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
3658 * config.gcc: Declare score-* and crx-* obsolete.
3660 2011-02-23 Jie Zhang <jie@codesourcery.com>
3662 PR rtl-optimization/47763
3663 * web.c (web_main): Ignore naked clobber when replacing register.
3665 2011-02-22 Anatoly Sokolov <aesok@post.ru>
3667 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3670 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
3673 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
3675 2011-02-22 Mike Stump <mikestump@comcast.net>
3677 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
3679 * configure: Regenerate.
3681 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
3683 PR rtl-optimization/46002
3684 * ira-color.c (update_copy_costs): Change class intersection
3685 test to reg_class_contents[] test of 'hard_regno'.
3687 2011-02-21 Joseph Myers <joseph@codesourcery.com>
3689 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
3691 * config/hpux11.opt (mt): Likewise.
3692 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
3693 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
3694 * config/vax/elf.opt (mno-asm-pic): Likewise.
3695 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
3697 2011-02-21 Mike Stump <mikestump@comcast.net>
3700 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
3701 tree so we can get save the type.
3702 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
3703 for CFString instead of trying to use past the end of the builtins.
3704 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
3705 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
3706 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
3707 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
3708 Rename to darwin_builtin_cfstring.
3709 (darwin_init_cfstring_builtins): Return the built type.
3711 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
3714 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
3715 (_mm256_insert_epi64): Use _mm_insert_epi64.
3717 2011-02-21 Anatoly Sokolov <aesok@post.ru>
3719 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3720 * config/stormy16/stormy16-protos.h
3721 (xstormy16_mode_dependent_address_p): Remove.
3722 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
3723 Make static. Change return type to bool. Change argument type to
3724 const_rtx. Remove dead code.
3725 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3727 2011-02-21 Richard Guenther <rguenther@suse.de>
3730 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3731 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3732 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
3734 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3735 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3737 2011-02-20 Richard Guenther <rguenther@suse.de>
3740 * tree.c (free_lang_data_in_decl): Clean builtins from
3741 the TU decl BLOCK_VARS.
3743 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
3747 * haifa-sched.c (fix_tick_ready): Skip tick computation
3750 2011-02-19 Richard Guenther <rguenther@suse.de>
3753 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3754 Remove lazy BLOCK_VARS streaming.
3755 (lto_input_ts_block_tree_pointers): Likewise.
3756 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3758 2011-02-19 Joseph Myers <joseph@codesourcery.com>
3760 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
3762 2011-02-19 Joseph Myers <joseph@codesourcery.com>
3764 * config/i386/biarch32.h, config/i386/mach.h,
3765 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
3767 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3770 * config/i386/i386.md (peephole2 for shift and plus): Use
3771 operands[1] original mode in the first insn.
3773 2011-02-18 Mike Stump <mikestump@comcast.net>
3775 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
3777 2011-02-18 Jan Hubicka <jh@suse.cz>
3780 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
3781 to zero when the function is not inlinable at all.
3783 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3785 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
3786 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3787 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
3788 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
3789 * config/pa/t-pa64: Likewise.
3790 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3792 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3795 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
3797 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3800 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
3802 2011-02-18 Anatoly Sokolov <aesok@post.ru>
3804 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3805 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
3806 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
3807 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3808 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
3809 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
3810 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
3811 m32r_load_postinc_p, m32r_store_preinc_predec_p,
3812 m32r_legitimate_address_p): New functions.
3813 * config/m32r/constraints.md (constraint "S"): Don't use
3814 STORE_PREINC_PREDEC_P.
3815 (constraint "U"): Don't use LOAD_POSTINC_P.
3817 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
3819 PR rtl-optimization/46178
3820 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
3821 compute ira_hard_regno_cover_class[].
3823 2011-02-18 Richard Guenther <rguenther@suse.de>
3826 * lto-streamer.h (lto_global_var_decls): Declare.
3827 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
3828 statics for global var processing.
3830 2011-02-18 Richard Guenther <rguenther@suse.de>
3832 PR tree-optimization/47737
3833 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
3834 edge dominance check.
3836 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3839 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
3840 avoid invalid rtx sharing.
3842 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3844 * doc/cpp.texi (Obsolete Features): Add background on the
3845 origin of assertions.
3847 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3849 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
3851 * config/darwin.c (output_objc_section_asm_op): Added support for
3853 (is_objc_metadata): New.
3854 (darwin_objc2_section): New.
3855 (darwin_objc1_section): New.
3856 (machopic_select_section): Added support for ABI v1 and v2.
3857 (darwin_emit_objc_zeroed): New.
3858 (darwin_output_aligned_bss): Detect objc metadata and treat it
3860 (darwin_asm_output_aligned_decl_common): Same.
3861 (darwin_asm_output_aligned_decl_local): Same.
3862 * config/darwin-sections.def: Updated for ABI v1 and v2.
3863 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
3864 compiling Objective-C code for the NeXT runtime, default to using
3865 ABI version 0 for 32-bit, and version 2 for 64-bit.
3867 2011-02-17 Joseph Myers <joseph@codesourcery.com>
3869 * common.opt (optimize_fast): New Variable.
3870 * opts.c (default_options_optimization): Use opts->x_optimize_fast
3871 instead of local variable ofast.
3873 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
3875 * doc/invoke.texi (fobjc-abi-version): Documented.
3876 (fobjc-nilcheck): Documented.
3877 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
3880 2011-02-17 Joseph Myers <joseph@codesourcery.com>
3883 * common.opt (export-dynamic): New Driver option.
3884 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
3886 2011-02-17 Joseph Myers <joseph@codesourcery.com>
3888 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
3890 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
3891 Jan Hubicka <jh@suse.cz>
3895 * cfgexpand.c (account_used_vars_for_block): Remove.
3896 (estimated_stack_frame_size): Use referenced vars.
3897 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
3898 that were referenced in the original function. Test src_fn
3899 rather than cfun. Drop redundant get_var_ann.
3900 (setup_one_parameter): Drop redundant get_var_ann.
3901 (declare_return_variable): Likewise.
3902 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
3903 (copy_arguments_for_versioning): Drop redundant get_var_ann.
3904 * ipa-inline.c (compute_inline_parameters): Do not compute
3905 disregard_inline_limits here.
3906 (compute_inlinable_for_current, pass_inlinable): New.
3907 (pass_inline_parameters): Require PROP_referenced_vars.
3908 * cgraphunit.c (cgraph_process_new_functions): Don't run
3909 compute_inline_parameters explicitly unless function is in SSA form.
3910 (cgraph_analyze_function): Set .disregard_inline_limits.
3911 * tree-sra.c (convert_callers): Compute inliner parameters
3912 only for functions already in SSA form.
3914 2011-02-17 Joseph Myers <joseph@codesourcery.com>
3916 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
3917 -mlittle-endian-data.
3919 2011-02-17 Joseph Myers <joseph@codesourcery.com>
3921 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
3922 -mno-fpu, not -fpu and -no-fpu.
3923 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
3924 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
3926 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
3929 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
3930 input reload with PLUS RTX.
3932 2011-02-16 Joseph Myers <joseph@codesourcery.com>
3934 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
3935 of InverseVar(MDMX).
3937 2011-02-16 Joseph Myers <joseph@codesourcery.com>
3939 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
3942 2011-02-16 Joseph Myers <joseph@codesourcery.com>
3944 * config/mn10300/mn10300.opt (mno-crt0): New.
3946 2011-02-16 Joseph Myers <joseph@codesourcery.com>
3948 * config/m68k/uclinux.opt (static-libc): New Driver option.
3950 2011-02-16 Joseph Myers <joseph@codesourcery.com>
3952 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
3954 2011-02-16 Joseph Myers <joseph@codesourcery.com>
3956 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
3957 %{muser-extend-enabled}.
3959 2011-02-16 Richard Guenther <rguenther@suse.de>
3961 PR tree-optimization/47738
3962 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
3963 the TODO from tree_predictive_commoning.
3965 2011-02-15 Jeff Law <law@redhat.com>
3968 2011-01-25 Jeff Law <law@redhat.com>
3970 PR rtl-optimization/37273
3971 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3972 handle them like argument loads from stack slots. Do not double
3973 count memory for memory constants and argument loads from stack slots.
3975 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
3978 * combine.c (cant_combine_insn_p): Revert the last change.
3980 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3983 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
3984 mode for vector constants. Remove code that checks for TImode.
3986 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3990 * cgraph.h (compute_inline_parameters): Return void.
3991 * ipa-inline.c (compute_inline_parameters): Adjust.
3993 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
3997 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
3999 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4000 * ipa-inline.c (compute_inline_parameters): Adjust.
4002 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4006 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4007 Adjust all users. Pass FN to...
4008 * tree-flow-inline.h (first_referenced_var): ... this. Add
4010 * ipa-struct-reorg.c: Adjust.
4011 * tree-dfa.c: Adjust.
4012 * tree-into-ssa.c: Adjust.
4013 * tree-sra.c: Adjust.
4014 * tree-ssa-alias.c: Adjust.
4015 * tree-ssa-live.c: Adjust.
4016 * tree-ssa.c: Adjust.
4017 * tree-ssanames.c: Adjust.
4018 * tree-tailcall.c: Adjust.
4020 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4024 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4026 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4027 * tree-flow-inline.h: Adjust.
4028 * gimple-pretty-print.c: Adjust.
4029 * tree-into-ssa.c: Adjust.
4030 * tree-ssa.c: Adjust.
4031 * cfgexpand.c: Adjust.
4033 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4035 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4036 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4037 (EXTRA_CONSTRAINT): Delete.
4038 * config/iq2000/constraints.md: New file.
4039 * config/iq2000/iq2000.md: Include it.
4040 (define_insn ""): Delete.
4041 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4042 unsupported constraint letters from patterns.
4043 (call_value, call_value_internal1): Likewise.
4044 (call_value_multiple_internal1): Likewise.
4046 2011-02-15 Nick Clifton <nickc@redhat.com>
4048 * config/mn10300/mn10300.c: Include tm-constrs.h.
4049 (struct liw_data): New data structure describing an LIW candidate
4051 (extract_bundle): Use struct liw_data. Allow small integer
4052 operands for some instructions.
4053 (check_liw_constraints): Use struct liw_data. Remove swapped
4054 parameter. Add comments describing the checks. Fix bug when
4055 assigning the source of liw1 to the source of liw2.
4056 (liw_candidate): Delete. Code moved into extract_bundle.
4057 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4059 * config/mn10300/predicates.md (liw_operand): New predicate.
4060 Allows registers and small integer constants.
4061 * config/mn10300/constraints.md (O): New constraint. Accetps
4062 integers in the range -8 to +7 inclusive.
4063 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4064 for moving a small integer into a register. Give this alternative
4066 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4067 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4068 using the J,K,L and M constraints,
4069 (liw): Remove SI mode on second operands to allow for HI and QI
4071 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
4074 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4077 * combine.c (cant_combine_insn_p): Check zero/sign extended
4080 2011-02-15 Richard Guenther <rguenther@suse.de>
4082 PR tree-optimization/47743
4083 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4084 for a non-type-compatible VN lookup bail out.
4086 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4088 * config/fr30/constraints.md: New file.
4089 * config/fr30/fr30.md: Include it.
4090 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4091 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4092 (EXTRA_CONSTRAINT): Delete.
4094 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4096 * config/frv/constraints.md: New file.
4097 * config/frv/predicates.md: Include it.
4098 * config/frv/frv.c (reg_class_from_letter): Delete.
4099 (frv_option_override): Don't initialize it.
4100 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4101 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4102 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4103 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4104 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4105 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4106 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4107 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4108 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4109 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4110 (REG_CLASS_FROM_CONSTRAINT): Delete.
4112 2011-02-15 Jakub Jelinek <jakub@redhat.com>
4115 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4116 if frame size is 0 in a leaf function.
4118 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4121 * config/alpha/host-osf.c: New file.
4122 * config/alpha/x-osf: New file.
4123 * config.host (alpha*-dec-osf*): Use it.
4125 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4127 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4128 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4129 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4130 (rx_mode_dependent_address_p): ...this. Make static. Change argument
4132 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4134 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4136 * config/stormy16/constraints.md: New file.
4137 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4138 Use satisfies_constraint_Q and satisfies_constraint_R.
4139 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4141 (xstormy16_legitiamte_address_p): Declare.
4142 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4143 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4144 (EXTRA_CONSTRAINT): Delete.
4145 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4147 (xstormy16_extra_constraint_p): Delete.
4149 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
4151 PR tree-optimization/46494
4152 * loop-unroll.c (split_edge_and_insert): Adjust comment.
4153 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4154 (pass_rtl_loop_done): Add TODO_verify_flow.
4155 * fwprop.c (pass_rtl_fwprop): Likewise.
4156 * modulo-sched.c (pass_sms): Likewise.
4157 * tree-ssa-dom.c (pass_dominator): Likewise.
4158 * tree-ssa-loop-ch.c (pass_ch): Likewise.
4159 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4160 (pass_tree_loop_done): Likewise.
4161 * tree-ssa-pre.c (execute_pre): Likewise.
4162 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4163 * tree-ssa-sink.c (pass_sink_code): Likewise.
4164 * tree-vrp.c (pass_vrp): Likewise.
4166 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4168 * config/v850/constraints.md: New file.
4169 * config/v850/v850.md: Include it.
4170 * config/v850/predicates.md (reg_or_0_operand): Use
4171 satisfies_constraint_G.
4172 (special_symbolref_operand): Use satisfies_constraint_K.
4173 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4174 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4175 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4176 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4177 (EXTRA_CONSTRAINT): Delete.
4178 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4179 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4180 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
4182 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4185 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4188 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4190 * config/mcore/constraints.md: New file.
4191 * config/mcore/mcore.md: Include it.
4192 * config/mcore/mcore.c (reg_class_from_letter): Delete.
4193 * config/mcore/mcore.h (reg_class_from_letter): Delete.
4194 (REG_CLASS_FROM_LETTER): Delete.
4195 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4196 insn_const_int_ok_for_constraint.
4197 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4198 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4199 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4200 (EXTRA_CONSTRAINT): Delete.
4202 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4205 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4206 (IS_SIGHANDLER): Define.
4207 (sparc64_is_sighandler): New function, split off from
4208 sparc64_fallback_frame_state.
4209 (sparc_is_sighandler): New function, split off from
4210 sparc_fallback_frame_state.
4211 (sparc64_fallback_frame_state): Merge with ...
4212 (sparc_fallback_frame_state): ... this into ...
4213 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
4214 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
4215 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
4216 stack instead of hardcoded offsets.
4218 2011-02-14 Andriy Gapon <avg@freebsd.org>
4221 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4223 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4225 * configure: Regenerate.
4227 2011-02-12 Joseph Myers <joseph@codesourcery.com>
4230 * gcc.c (asm_options): Correct spec matching --target-help.
4232 2011-02-12 Martin Jambor <mjambor@suse.cz>
4234 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
4235 to gimple call error.
4237 2011-02-12 Mike Stump <mikestump@comcast.net>
4239 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
4240 comments in backslash regions.
4242 2011-02-12 Mike Stump <mikestump@comcast.net>
4243 Jakub Jelinek <jakub@redhat.com>
4244 Iain Sandoe <iains@gcc.gnu.org>
4247 * dwarf2out.c (output_cfa_loc): When required, apply the
4248 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
4249 (output_loc_sequence): Likewise.
4250 (output_loc_operands_raw): Likewise.
4251 (output_loc_sequence_raw): Likewise.
4252 (output_cfa_loc): Likewise.
4253 (output_loc_list): Suppress register number adjustment when
4254 calling output_loc_sequence()
4255 (output_die): Likewise.
4257 2011-02-12 Anatoly Sokolov <aesok@post.ru>
4259 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4261 * config/xtensa/xtensa.c (xtensa_register_move_cost,
4262 xtensa_memory_move_cost): New functions.
4263 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
4265 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
4268 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
4269 in the current directory.
4270 * configure: Rebuilt.
4272 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4274 * config/darwin.c (darwin_override_options): Add a hunk missed
4275 from the commit of r168571. Trim comment line lengths and
4276 correct indents of the preceding block.
4278 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4280 * gcc.c (driver_handle_option): Concatenate the argument to -F with
4283 2011-02-11 Joseph Myers <joseph@codesourcery.com>
4285 * common.opt (nostartfiles): New Driver option.
4287 2011-02-11 Xinliang David Li <davidxl@google.com>
4289 PR tree-optimization/47707
4290 * tree-chrec.c (convert_affine_scev): Keep type precision.
4292 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
4294 PR tree-optimization/47420
4295 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
4297 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
4299 PR rtl-optimization/47614
4300 * rtl.h (check_for_inc_dec): Declare.
4301 * dse.c (check_for_inc_dec): Externalize...
4302 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
4303 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
4305 2011-02-11 Joseph Myers <joseph@codesourcery.com>
4308 * gcc.c (main): Do not compile inputs if there were errors in
4310 * opts-common.c (read_cmdline_option): Check for wrong language
4311 after other error checks.
4313 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
4315 * cgraph.c: Fix comment typos.
4316 * cgraph.h: Likewise.
4317 * cgraphunit.c: Likewise.
4318 * ipa-cp.c: Likewise.
4319 * ipa-inline.c: Likewise.
4320 * ipa-prop.c: Likewise.
4321 * ipa-pure-const.c: Likewise.
4322 * ipa-ref.c: Likewise.
4323 * ipa-reference.c: Likewise.
4325 2011-02-11 Jakub Jelinek <jakub@redhat.com>
4328 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
4330 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4333 * doc/sourcebuild.texi (Require Support): Document
4334 dg-require-ascii-locale.
4336 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
4338 * doc/lto.texi (Write summary): Fix missing parentheses.
4340 2011-02-10 DJ Delorie <dj@redhat.com>
4342 * config/m32c/m32c.c (m32c_option_override): Disable
4343 -fcombine-stack-adjustments until flag value tracking and compare
4344 optimization can be rewritten.
4346 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
4348 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
4350 (PROCESSOR_DEFAULT64): Likewise.
4352 2011-02-10 Richard Henderson <rth@redhat.com>
4354 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
4355 change from 2011-02-03.
4356 * config/rx/rx.c (flags_from_code): Likewise.
4357 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
4358 is valid, n/pz otherwise.
4359 (rx_select_cc_mode): Return CCmode if Y is not zero.
4361 2011-02-10 Richard Guenther <rguenther@suse.de>
4363 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
4365 2011-02-10 Richard Guenther <rguenther@suse.de>
4367 PR tree-optimization/47677
4368 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
4370 2011-02-10 Jakub Jelinek <jakub@redhat.com>
4373 * combine.c (make_compound_operation): Only change shifts into
4374 multiplication for SCALAR_INT_MODE_P.
4376 2011-02-10 Jie Zhang <jie@codesourcery.com>
4380 2011-02-05 Jie Zhang <jie@codesourcery.com>
4382 * web.c (entry_register): Don't clobber the number of the
4383 first uninitialized reference in used[].
4385 2011-02-09 Richard Guenther <rguenther@suse.de>
4387 PR tree-optimization/47664
4388 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
4391 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
4395 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
4397 (PROCESSOR_DEFAULT64): Same.
4398 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
4400 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4402 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
4404 2011-02-09 Martin Jambor <mjambor@suse.cz>
4407 * tree-sra.c (struct access): New flags grp_scalar_read and
4408 grp_scalar_write. Changed description of assignment read and write
4410 (dump_access): Dump new flags, reorder all of them.
4411 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
4412 to detect multiple scalar reads.
4413 (analyze_access_subtree): Use the new scalar read write flags instead
4414 of the old flags. Adjusted comments.
4416 2011-02-08 DJ Delorie <dj@redhat.com>
4419 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
4422 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4424 * config/m68k/uclinux.opt: New.
4425 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
4427 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4429 * config/cris/elf.opt (sim): New Driver option.
4431 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4433 * config/xtensa/elf.opt: New.
4434 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
4436 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4438 * config/vax/elf.opt: New.
4439 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
4441 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4443 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
4445 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4447 * config/gnu-user.opt: New.
4448 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4449 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
4450 *-*-uclinux*): Use gnu-user.opt.
4452 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
4454 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
4455 * config/i386/gnu.h (CPP_SPEC): Likewise.
4457 2011-02-08 Ian Lance Taylor <iant@google.com>
4459 * common.opt (fcx-limited-range): Add SetByCombined flag.
4460 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
4461 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
4462 (fassociative-math, freciprocal-math): Likewise.
4463 (funsafe-math-optimizations): Likewise.
4464 * opth-gen.awk: Handle SetByCombined.
4465 * optc-gen.awk: Likewise.
4466 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
4467 (set_unsafe_math_optimizations_flags): Likewise.
4468 * doc/options.texi (Option properties): Document SetByCombined.
4470 2011-02-08 Joseph Myers <joseph@codesourcery.com>
4472 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
4473 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
4474 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
4475 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
4476 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
4478 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
4480 PR tree-optimization/46834
4481 PR tree-optimization/46994
4482 PR tree-optimization/46995
4483 * graphite-sese-to-poly.c (used_outside_reduction): New.
4484 (detect_commutative_reduction): Call used_outside_reduction.
4485 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
4486 translate_scalar_reduction_to_array only when at least one
4487 loop-phi/close-phi tuple has been detected.
4489 2011-02-08 Richard Guenther <rguenther@suse.de>
4492 * tree-vect-generic.c (expand_vector_operations_1): Update
4494 (expand_vector_operations): ... not here. Cleanup EH info
4495 and the CFG if required.
4497 2011-02-08 Richard Guenther <rguenther@suse.de>
4499 PR tree-optimization/47641
4500 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
4501 require type compatibility.
4503 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4505 * gimple-low.c (lower_function_body): Don't remove the location of
4506 the return statement here.
4507 (lower_gimple_return): Do it here instead but only if the return
4508 statement is actually used twice.
4510 2011-02-08 Richard Guenther <rguenther@suse.de>
4512 PR tree-optimization/47632
4513 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
4514 unused up_to_stmt parameter, return whether cfg-cleanup is
4515 necessary, remove EH info properly.
4516 (forward_propagate_into_gimple_cond): Adjust caller.
4517 (forward_propagate_into_cond): Likewise.
4518 (forward_propagate_comparison): Likewise.
4519 (tree_ssa_forward_propagate_single_use_vars): Make
4520 forward_propagate_comparison case similar to the two others.
4522 2011-02-08 Nick Clifton <nickc@redhat.com>
4524 * config/mn10300/mn10300.opt (mliw): New command line option.
4525 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
4526 (liw_bundling): New automaton.
4527 (liw): New attribute.
4528 (liw_op): New attribute.
4529 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
4530 (movsi_internal): Add LIW attributes.
4534 (addsi3): Separate register and immediate alternatives.
4539 (lshrsi3): Likewise.
4540 (ashrsi3): Likewise.
4542 * config/mn10300/mn10300.c (liw_op_names): New
4543 (mn10300_print_operand): Handle 'W' operand descriptor.
4544 (extract_bundle): New function.
4545 (check_liw_constraints): New function.
4546 (liw_candidate): New function.
4547 (mn10300_bundle_liw): New function.
4548 (mn10300_reorg): New function.
4549 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4550 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
4551 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
4552 __LIW__ or __NO_LIW__.
4553 * doc/invoke.texi: Describe the -mliw command line option.
4555 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4557 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
4558 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4559 pthread_mutex_unlock): Remove.
4560 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
4561 * config/pa/t-pa64: Likewise.
4562 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
4563 shared libc if not linking against libpthread.
4564 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4566 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
4569 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
4570 on 10.6 and later to ensure that we always use the unwinder from
4571 the system. Only add -no_compact_unwind when tarteting darwin
4574 2011-02-07 Steve Ellcey <sje@cup.hp.com>
4577 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
4578 (vec_interleave_lowv2sf): Ditto.
4579 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
4580 (vec_extract_oddv2sf): Ditto.
4582 2011-02-07 Mike Stump <mikestump@comcast.net>
4585 Add __ieee_divdc3 entry point.
4586 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
4588 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
4589 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
4590 * config/darwin.c (darwin_rename_builtins): Add.
4591 * config/darwin-protos.h (darwin_rename_builtins): Add.
4593 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4596 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
4599 2011-02-07 Mike Stump <mikestump@comcast.net>
4601 * config/darwin.opt (mmacosx-version-min): Update default OS version.
4603 2011-02-07 Denis Chertykov <chertykov@gmail.com>
4606 * config/avr/libgcc.S (exit): Move .endfunc
4608 2011-02-07 Richard Guenther <rguenther@suse.de>
4610 PR tree-optimization/47615
4611 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
4612 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
4613 (run_scc_vn): Initialize it.
4614 (visit_reference_op_load): Use it.
4615 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
4617 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4619 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
4620 DImode trapping arithmetic libfuncs.
4622 2011-02-07 Richard Guenther <rguenther@suse.de>
4624 PR tree-optimization/47621
4625 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
4627 (execute_update_addresses_taken): ... here. Make it more
4628 conservative in what we accept.
4630 2011-02-06 Joseph Myers <joseph@codesourcery.com>
4632 * config/sparc/freebsd.h (ASM_SPEC): Define.
4633 * config/sparc/vxworks.h (ASM_SPEC): Define.
4635 2011-02-06 Joseph Myers <joseph@codesourcery.com>
4637 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
4639 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
4641 * doc/invoke.texi: Remove reference to compiler internals from
4644 * reg-notes.def: Remove REG_VALUE_PROFILE.
4645 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
4647 2011-02-05 Jakub Jelinek <jakub@redhat.com>
4650 * varasm.c (default_section_type_flags): If decl is NULL,
4651 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
4653 2011-02-05 Jie Zhang <jie@codesourcery.com>
4656 * web.c (entry_register): Don't clobber the number of the
4657 first uninitialized reference in used[].
4659 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
4661 PR tree-optimization/46194
4662 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
4663 (build_classic_dist_vector_1): Do not represent classic distance
4664 vectors when the access functions are variating in different loops.
4666 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4668 * config/mips/iris6.opt: New.
4669 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
4671 2011-02-04 Richard Henderson <rth@redhat.com>
4672 Steve Ellcey <sje@cup.hp.com>
4675 * config/ia64/predicates.md (mux1_brcst_element): New.
4676 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
4677 * config/ia64/ia64.c (ia64_unpack_assemble): New.
4678 (ia64_unpack_sign): New.
4679 (ia64_expand_unpack): Rewrite using new routines.
4680 (ia64_expand_widen_sum): Ditto.
4681 (ia64_expand_dot_prod_v8qi): Ditto.
4682 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
4683 routines, add endian check.
4684 (pmpy2_even): Rename from pmpy2_r, add endian check.
4685 (pmpy2_odd): Rename from pmpy2_l, add endian check.
4686 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
4687 (vec_widen_smult_hi_v4hi): Ditto.
4688 (vec_widen_umult_lo_v4hi): Ditto.
4689 (vec_widen_umult_hi_v4hi): Ditto.
4690 (mulv2si3): Change endian checks.
4691 (sdot_prodv4hi): Rewrite with new calls.
4692 (udot_prodv4hi): New.
4693 (vec_pack_ssat_v4hi): Add endian check.
4694 (vec_pack_usat_v4hi): Ditto.
4695 (vec_pack_ssat_v2si): Ditto.
4696 (max1_even): Rename from max1_r, add endian check.
4697 (max1_odd): Rename from max1_l, add endian check.
4698 (*mux1_rev): Format change.
4700 (*mux1_shuf): Ditto.
4702 (*mux1_brcst_v8qi): Use new predicate.
4703 (vec_extract_evenv8qi): Remove endian check.
4704 (vec_extract_oddv8qi): Ditto.
4705 (vec_interleave_lowv4hi): Format change.
4706 (vec_interleave_highv4hi): Ditto.
4707 (mix2_even): Rename from mix2_r, add endian check.
4708 (mix2_odd): Rename from mux2_l, add endian check.
4709 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
4710 (vec_extract_evenodd_helper): Format change.
4711 (vec_extract_evenv4hi): Remove endian check.
4712 (vec_extract_oddv4hi): Remove endian check.
4713 (vec_interleave_lowv2si): Format change.
4714 (vec_interleave_highv2si): Format change.
4715 (vec_initv2si): Remove endian check.
4716 (vecinit_v2si): Add endian check.
4717 (reduc_splus_v2sf): Add endian check.
4718 (reduc_smax_v2sf): Ditto.
4719 (reduc_smin_v2sf): Ditto.
4720 (vec_initv2sf): Remove endian check.
4721 (fpack): Add endian check.
4722 (fswap): Add endian check.
4723 (vec_interleave_highv2sf): Add endian check.
4724 (vec_interleave_lowv2sf): Add endian check.
4725 (fmix_lr): Add endian check.
4726 (vec_setv2sf): Format change.
4727 (*vec_extractv2sf_0_be): Use shift to extract operand.
4728 (*vec_extractv2sf_1_be): New.
4729 (vec_pack_trunc_v4hi): Add endian check.
4730 (vec_pack_trunc_v2si): Format change.
4732 2011-02-04 Jakub Jelinek <jakub@redhat.com>
4735 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
4736 do bb, locus and block comparison and disallow loads if it is not set.
4737 (stmt_is_replaceable_p): New function.
4738 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
4740 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
4741 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
4743 * tree-flow.h (stmt_is_replaceable_p): New prototype.
4745 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4747 * config/rs6000/xilinx.opt: New.
4748 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
4750 2011-02-04 Joseph Myers <joseph@codesourcery.com>
4752 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
4754 2011-02-03 Anatoly Sokolov <aesok@post.ru>
4756 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
4757 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4758 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
4759 secondary_reload_info, xtensa_secondary_reload): Remove.
4760 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
4761 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4762 (xtensa_preferred_reload_class): Make static. Change return and
4763 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
4764 Use CONST_DOUBLE_P predicate.
4765 (xtensa_preferred_output_reload_class): New function.
4766 (xtensa_secondary_reload): Make static.
4768 2011-02-03 Joseph Myers <joseph@codesourcery.com>
4770 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
4771 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
4772 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
4774 2011-02-03 Jakub Jelinek <jakub@redhat.com>
4777 * output.h (SECTION_RELRO): Define.
4778 (SECTION_MACH_DEP): Adjust.
4779 (get_variable_section): New prototype.
4780 * varpool.c (varpool_finalize_named_section_flags): New function.
4781 (varpool_assemble_pending_decls): Call it.
4782 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
4783 * cgraphunit.c (cgraph_output_in_order): Call
4784 varpool_finalize_named_section_flags.
4785 * varasm.c (get_section): Allow section flags conflicts between
4786 relro and read-only sections if the section hasn't been declared yet.
4787 Set SECTION_OVERRIDE after diagnosing section type conflict.
4788 (get_variable_section): No longer static.
4789 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
4790 readonly sections that need relocations.
4791 (decl_readonly_section_1): New function.
4792 (decl_readonly_section): Use it.
4795 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
4796 Steve Ellcey <sje@cup.hp.com>
4799 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
4800 if section attribute used.
4802 2011-02-03 Jakub Jelinek <jakub@redhat.com>
4804 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
4805 * config/darwin.c (SECTION_NO_ANCHOR): Define.
4806 (darwin_init_sections): Remove assertion.
4808 2011-02-03 Nick Clifton <nickc@redhat.com>
4810 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
4812 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
4813 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
4814 instead of "n" and "pz".
4815 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
4818 2011-02-03 Jakub Jelinek <jakub@redhat.com>
4821 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
4822 fma, expand FMA_EXPR as fma{,f,l} call.
4825 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
4826 copy them into a unsigned char variable and pass address of it to
4827 lto_output_data_stream.
4830 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
4831 around backend_init_target and lang_dependent_init_target calls.
4832 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
4833 (verify_cgraph_node): Don't call set_cfun here. Use
4834 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
4835 Set error_found for incorrectly represented calls to thunks.
4837 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
4840 PR rtl-optimization/43494
4841 * rtl.h (for_each_inc_dec_fn): New type.
4842 (for_each_inc_dec): Declare.
4843 * rtlanal.c (struct for_each_inc_dec_ops): New type.
4844 (for_each_inc_dec_find_inc_dec): New fn.
4845 (for_each_inc_dec_find_mem): New fn.
4846 (for_each_inc_dec): New fn.
4847 * dse.c (struct insn_size): Remove.
4848 (replace_inc_dec, replace_inc_dec_mem): Remove.
4849 (emit_inc_dec_insn_before): New fn.
4850 (check_for_inc_dec): Use it, along with for_each_inc_dec.
4851 (canon_address): Pass mem modes to cselib_lookup.
4852 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
4853 (cselib_lookup_from_insn): Likewise.
4854 (cselib_subst_to_values): Likewise.
4855 * cselib.c (find_slot_memmode): New var.
4856 (cselib_find_slot): New fn. Use it instead of
4857 htab_find_slot_with_hash everywhere.
4858 (entry_and_rtx_equal_p): Use find_slot_memmode.
4859 (autoinc_split): New fn.
4860 (rtx_equal_for_cselib_p): Rename and implement in terms of...
4861 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
4862 Deal with autoinc. Special-case recursion into MEMs.
4863 (cselib_hash_rtx): Likewise.
4864 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
4865 address and MEM modes.
4866 (cselib_subst_to_values): Add memmode, pass it on.
4868 (cselib_lookup): Add memmode argument, pass it on.
4869 (cselib_lookup_from_insn): Add memmode.
4870 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
4871 (struct cselib_record_autoinc_data): New.
4872 (cselib_record_autoinc_cb): New fn.
4873 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
4874 mode to cselib_lookup. Reset autoinced REGs here instead of...
4875 (cselib_process_insn): ... here.
4876 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
4878 (add_uses): Likewise, also to cselib_subst_to_values.
4879 (add_stores): Likewise.
4880 * sched-deps.c (add_insn_mem_dependence): Pass mode to
4881 cselib_subst_to_values.
4882 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
4883 * gcse.c (do_local_cprop): Adjusted.
4884 * postreload.c (reload_cse_simplify_set): Adjusted.
4885 (reload_cse_simplify_operands): Adjusted.
4886 * sel-sched-dump (debug_mem_addr_value): Pass mode.
4888 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
4890 PR tree-optimization/45122
4891 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
4892 unsafe assumptions when there's more than one loop exit.
4894 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4897 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
4898 Document using vector double with the load/store builtins, and
4899 that the load/store builtins always use Altivec instructions.
4901 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
4902 to use altivec memory instructions, even on VSX.
4903 (vector_altivec_store_<mode>): Ditto.
4905 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
4908 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4909 V2DF, V2DI support to load/store overloaded builtins.
4911 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
4912 altivec load/store builtins for V2DF/V2DI types.
4914 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4915 set avoid indexed addresses on power6 if -maltivec.
4916 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
4917 vector_altivec_load/vector_altivec_store builtins.
4918 (altivec_expand_st_builtin): Ditto.
4919 (altivec_expand_builtin): Add VSX memory builtins.
4920 (rs6000_init_builtins): Add V2DI types to internal types.
4921 (altivec_init_builtins): Add support for V2DF/V2DI altivec
4922 load/store builtins.
4923 (rs6000_address_for_altivec): Insure memory address is appropriate
4926 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
4927 vec_vsx_ld and vec_vsx_st.
4928 (vsx_store_<mode>): Ditto.
4930 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
4931 variables to hold long long types for VSX vector memory builtins.
4932 (RS6000_BTI_unsigned_long_long): Ditto.
4933 (long_long_integer_type_internal_node): Ditti.
4934 (long_long_unsigned_type_internal_node): Ditti.
4936 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
4937 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
4938 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
4940 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
4942 (vec_vsx_st): Ditto.
4944 2011-02-02 Joseph Myers <joseph@codesourcery.com>
4946 * config/pa/pa-hpux10.opt: New.
4947 * config/hpux11.opt (pthread): New Driver option.
4948 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
4949 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
4951 2011-02-02 Joseph Myers <joseph@codesourcery.com>
4953 * config/ia64/vms.opt: New.
4954 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
4956 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
4959 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
4960 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
4961 generator functions.
4962 (vsx_floatuns<VSi><mode>2): Ditto.
4963 (vsx_fix_trunc<mode><VSi>2): Ditto.
4964 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
4966 2011-02-02 Joseph Myers <joseph@codesourcery.com>
4968 * config/i386/djgpp.opt (posix): New Driver option.
4970 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4972 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
4973 Move to the unsupported targets list.
4975 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
4977 PR rtl-optimization/47525
4978 * df-scan.c: Update copyright years.
4979 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
4980 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
4982 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4984 * config/i386/sysv4.h (TARGET_VERSION): Remove.
4985 (SUBTARGET_RETURN_IN_MEMORY): Remove.
4986 (ASM_OUTPUT_ASCII): Remove.
4987 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
4989 2011-02-02 Jeff Law <law@redhat.com>
4992 * reload.c (find_reloads_address): Handle reg+d address where both
4993 components are invalid by reloading the entire address.
4995 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
4996 Richard Guenther <rguenther@suse.de>
4998 PR tree-optimization/40979
5000 * passes.c (init_optimization_passes): After LIM call copy_prop
5001 and DCE to clean up.
5002 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5004 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5006 PR tree-optimization/47576
5007 PR tree-optimization/47555
5008 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5009 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5010 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5011 * tree-scalar-evolution.c (follow_ssa_edge): Use
5012 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5014 2011-02-02 Richard Guenther <rguenther@suse.de>
5016 PR tree-optimization/47566
5017 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5019 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5023 * tree-inline.c (declare_return_variable): Remove unused caller
5028 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5029 * cfgexpand.c (account_used_vars_for_block): Use them.
5030 * tree-nrv.c (tree_nrv): Likewise.
5031 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5032 (dump_scope_block): Likewise.
5033 (remove_unused_locals): Likewise.
5037 * tree-inline.c (declare_return_variable): Add result decl to
5038 local decls only once.
5039 * gimple-low.c (record_vars_into): Mark newly-created variables
5042 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5048 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5050 (no_real_insns_p, schedule_block, set_priorities): Drop special
5051 treatment of boundary debug insns.
5052 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5053 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5054 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5055 (BOUNDARY_DEBUG_INSN_P): Likewise.
5056 (SCHEDULE_DEBUG_INSN_P): Likewise.
5057 * sched-rgn.c (init_ready_list): Drop special treatment of
5058 boundary debug insns.
5059 * final.c (rest_of_clean_state): Clear notes' BB.
5061 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5063 * config/openbsd.opt (assert=): New Driver option.
5065 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5067 * config/i386/nto.opt: New.
5068 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5070 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5072 * config/i386/netware.opt: New.
5073 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5075 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5077 * config/interix.opt (posix): New Driver option.
5079 2011-02-01 DJ Delorie <dj@redhat.com>
5081 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5083 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5086 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
5088 PR tree-optimization/47561
5089 * toplev.c (process_options): Print the Graphite flags. Add
5090 flag_loop_flatten to the list of options requiring Graphite.
5092 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5094 * config/i386/cygming.opt (posix): New Driver option.
5096 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5098 * config/arm/vxworks.opt: New.
5099 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5101 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5103 * config/alpha/elf.opt: New.
5104 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5105 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5107 2011-02-01 Richard Guenther <rguenther@suse.de>
5109 PR tree-optimization/47559
5110 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5111 store-motion on references that can throw.
5113 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
5115 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5116 * tree-pass.h (TDF_CSELIB): New macro.
5117 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5118 cselib_lookup): Check for it rather than for TDF_DETAILS.
5120 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
5123 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5126 * opts.c (finish_options): Don't add x_aux_base_name if it is
5129 2011-02-01 Richard Guenther <rguenther@suse.de>
5131 PR tree-optimization/47555
5133 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
5135 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5137 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
5140 * config/lm32/t-lm32: Add multilib for all CPU options.
5142 2011-02-01 Richard Guenther <rguenther@suse.de>
5144 PR tree-optimization/47541
5145 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5146 sure to have a field at offset zero.
5148 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5150 * config/arc/arc.opt (EB, EL): New Driver options.
5152 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5154 * config/alpha/osf5.opt: New.
5155 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5157 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5159 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5161 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
5163 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5165 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5166 is an alias of -floop-interchange and that it requires the
5167 Graphite infrastructure.
5168 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5169 flag_loop_interchange based on the value of flag_tree_loop_linear.
5171 2011-01-31 Jakub Jelinek <jakub@redhat.com>
5172 Richard Guenther <rguenther@suse.de>
5174 PR tree-optimization/47538
5175 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5176 type instead of r1type, except for comparisons. For right
5177 shifts and comparisons punt if there are mismatches in
5178 sizetype vs. non-sizetype types.
5180 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5182 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5185 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5187 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5189 * configure: Regenerate.
5191 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5193 * configure.ac (gcc_cv_ld_static_option): Define.
5194 (gcc_cv_ld_dynamic_option): Define.
5195 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5197 (HAVE_LD_STATIC_DYNAMIC): Update message.
5198 (LD_STATIC_OPTION): Define.
5199 (LD_DYNAMIC_OPTION): Define.
5200 * configure: Regenerate.
5201 * config.in: Regenerate.
5202 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5203 HAVE_LD_STATIC_DYNAMIC]: Use them.
5205 2011-01-31 Nick Clifton <nickc@redhat.com>
5207 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5208 registers inside interrupt handlers if the handler is not a leaf
5211 2011-01-31 Nick Clifton <nickc@redhat.com>
5213 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5214 reg_renumber returning an INVALID_REGNUM.
5216 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5219 * doc/install.texi: Document host options discarded when cross
5220 configuring target libraries.
5222 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5225 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5228 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5230 (no_real_insns_p, schedule_block, set_priorities): Drop special
5231 treatment of boundary debug insns.
5232 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5233 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5234 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5235 (BOUNDARY_DEBUG_INSN_P): Likewise.
5236 (SCHEDULE_DEBUG_INSN_P): Likewise.
5237 * sched-rgn.c (init_ready_list): Drop special treatment of
5238 boundary debug insns.
5239 * final.c (rest_of_clean-state): Clear notes' BB.
5241 2011-01-31 Alan Modra <amodra@gmail.com>
5243 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
5244 toc relative expressions as we do in print_operand_address.
5246 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
5248 * doc/extend.texi: Follow spelling conventions.
5249 * doc/invoke.texi: Fix a typo.
5251 2011-01-30 Joseph Myers <joseph@codesourcery.com>
5253 * config/hpux11.opt: New.
5254 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
5255 ia64*-*-hpux*): Use hpux11.opt.
5257 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
5259 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
5262 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5264 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
5267 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5269 * doc/install.texi (Binaries): Remove outdated reference for
5270 Motorola 68HC11/68HC12 downloads.
5272 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5274 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
5277 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5280 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
5283 2011-01-28 Ahmad Sharif <asharif@google.com>
5285 * value-prof.c (check_counter): Corrected error message.
5287 2011-01-29 Jie Zhang <jie@codesourcery.com>
5289 * config/arm/arm.c (arm_legitimize_reload_address): New.
5290 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5291 arm_legitimize_reload_address.
5292 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
5294 2011-01-28 Ian Lance Taylor <iant@google.com>
5296 * godump.c (go_define): Ignore macros whose definitions include
5297 two adjacent operands.
5299 2011-01-28 Jakub Jelinek <jakub@redhat.com>
5302 * varasm.c (force_const_mem): Store copy of x in desc->constant
5303 instead of x itself.
5304 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
5305 itself into REG_EQUAL note.
5307 2011-01-28 Joseph Myers <joseph@codesourcery.com>
5309 * config/freebsd.opt (posix, rdynamic): New Driver options.
5311 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5313 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
5315 * configure: Regenerate.
5317 2011-01-27 Joseph Myers <joseph@codesourcery.com>
5319 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
5320 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
5322 2011-01-27 Anatoly Sokolov <aesok@post.ru>
5324 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
5325 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
5326 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5327 (s390_preferred_reload_class): Make static. Change return and
5328 'rclass' argument type to reg_class_t.
5330 2011-01-27 Jan Hubicka <jh@suse.cz>
5333 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
5334 (process_function_and_variable_attributes): Check defined weakrefs.
5336 2011-01-27 Martin Jambor <mjambor@suse.cz>
5338 PR tree-optimization/47228
5339 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
5340 build_ref_for_offset.
5342 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5344 * config/spu/spu-elf.h (ASM_SPEC): Remove.
5346 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
5348 PR rtl-optimization/46856
5349 * postreload.c (reload_combine_recognize_const_pattern): Do not
5350 separate cc0 setter and user on cc0 targets.
5352 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
5355 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
5356 passed a VOID_TYPE expression, immediately emit an error and
5357 return error_mark_node.
5359 2011-01-26 Jeff Law <law@redhat.com>
5361 PR rtl-optimization/47464
5362 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
5363 rather than may_trap_p as needed.
5365 2011-01-26 DJ Delorie <dj@redhat.com>
5367 PR rtl-optimization/46878
5368 * combine.c (insn_a_feeds_b): Check for the implicit cc0
5369 setter/user dependency as well.
5371 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
5373 PR rtl-optimization/44469
5374 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
5375 after removing trivially dead basic blocks.
5377 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5379 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
5380 * config/frv/frv.h (LINK_SPEC): Likewise.
5381 * config/i386/netware.h (LINK_SPEC): Likewise.
5382 * config/m68k/linux.h (ASM_SPEC): Likewise.
5383 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
5384 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5385 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5386 * config/sparc/linux.h (ASM_SPEC): Likewise.
5387 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5388 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5390 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5392 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
5393 * config/frv/frv.h (ASM_SPEC): Likewise.
5394 * config/m68k/linux.h (ASM_SPEC): Likewise.
5395 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5396 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
5397 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5398 * config/sparc/linux.h (ASM_SPEC): Likewise.
5399 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5400 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5402 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5404 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
5405 * config/frv/frv.h (LINK_SPEC): Likewise.
5406 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5408 2011-01-26 Joseph Myers <joseph@codesourcery.com>
5410 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
5411 * config/frv/frv.h (ASM_SPEC): Likewise.
5412 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
5413 * config/m68k/linux.h (ASM_SPEC): Likewise.
5414 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5415 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5416 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5417 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
5418 * config/sparc/linux.h (ASM_SPEC): Likewise.
5419 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5420 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5421 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
5423 2011-01-26 Steve Ellcey <sje@cup.hp.com>
5426 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
5428 (vec_extract_evenodd_help): Ditto.
5429 (vec_extract_evenv4hi): Ditto.
5430 (vec_extract_oddv4hi): Ditto.
5431 (vec_interleave_lowv2si): Ditto.
5432 (vec_interleave_highv2si): Ditto.
5433 (vec_extract_evenv2si): Ditto.
5434 (vec_extract_oddv2si: Ditto.
5435 (vec_pack_trunc_v2si): Ditto.
5437 2011-01-22 Jan Hubicka <jh@suse.cz>
5440 * cgraph.h (cgraph_local_info): New field can_change_signature.
5441 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
5442 signature can change.
5443 (ipcp_estimate_growth): Call sequence simplify only if calle signature
5445 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
5446 (cgraph_function_versioning): We can not change signature of functions
5447 that don't allow that.
5448 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
5449 (lto_input_node): Likewise.
5450 * ipa-inline.c (compute_inline_parameters): Compute
5451 local.can_change_signature.
5452 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
5453 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
5454 functions that can not change signature.
5455 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
5456 init_cumulative_args): Do not use local calling conventions
5457 for functions that can not change signature.
5459 2011-01-22 Jan Hubicka <jh@suse.cz>
5461 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
5463 2011-01-26 Richard Guenther <rguenther@suse.de>
5465 PR tree-optimization/47190
5466 * cgraphunit.c (process_common_attributes): New function.
5467 (process_function_and_variable_attributes): Use it.
5469 2011-01-26 Richard Guenther <rguenther@suse.de>
5472 * cgraphbuild.c (record_eh_tables): Record reference to personality
5475 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
5478 * sel-sched.c (moveup_expr): Don't let debug insns prevent
5479 non-debug insns from moving up.
5481 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5484 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
5485 t-dlldir{,-x} fragment for build and add it to tmake_file.
5486 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
5487 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
5488 * config/i386/t-dlldir: New file.
5489 (SHLIB_DLLDIR): Define.
5490 * config/i386/t-dlldir-x: New file.
5491 (SHLIB_DLLDIR): Define.
5492 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
5493 (SHLIB_INSTALL): Use it.
5495 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
5498 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
5499 lower bound of the allowed Thumb-2 coprocessor load/store
5500 index range to -256. Add explaining comment.
5502 2011-01-25 Ian Lance Taylor <iant@google.com>
5504 * godump.c (go_define): Improve lexing of macro expansion to only
5505 accept expressions which match Go spec.
5507 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5510 * tree.c (handle_dll_attribute): Handle it.
5511 * doc/extend.texi (@item dllexport): Mention it.
5512 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
5514 2011-01-25 Ian Lance Taylor <iant@google.com>
5516 PR tree-optimization/26854
5517 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
5518 (decl_jump_unsafe): Move higher in file, with no other change.
5519 (bind): Set has_jump_unsafe_decl if appropriate.
5520 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
5521 (check_earlier_gotos): Likewise.
5522 (c_check_switch_jump_warnings): Likewise.
5524 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
5526 * doc/invoke.texi (Warning Options): Add missing hyphen.
5527 (-fprofile-dir): Minor grammatical fixes.
5528 (-fbranch-probabilities): Likewise.
5530 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5534 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5536 (no_real_insns_p, schedule_block, set_priorities): Drop special
5537 treatment of boundary debug insns.
5538 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5539 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5540 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5541 (BOUNDARY_DEBUG_INSN_P): Likewise.
5542 (SCHEDULE_DEBUG_INSN_P): Likewise.
5543 * sched-rgn.c (init_ready_list): Drop special treatment of
5544 boundary debug insns.
5545 * final.c (rest_of_clean-state): Clear notes' BB.
5547 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5549 * Makefile.in (LAMBDA_H): Removed.
5550 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
5551 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
5552 lambda-trans.o, and tree-loop-linear.o.
5553 (lto-symtab.o): Remove dependence on LAMBDA_H.
5554 (tree-loop-linear.o): Remove rule.
5555 (lambda-mat.o): Same.
5556 (lambda-trans.o): Same.
5557 (lambda-code.o): Same.
5558 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
5559 (tree-vect-slp.o): Same.
5560 * hwint.h (gcd): Moved here.
5561 (least_common_multiple): Same.
5562 * lambda-code.c: Removed.
5563 * lambda-mat.c: Removed.
5564 * lambda-trans.c: Removed.
5565 * lambda.h: Removed.
5566 * tree-loop-linear.c: Removed.
5567 * lto-symtab.c: Do not include lambda.h.
5568 * omega.c (gcd): Removed.
5569 * passes.c (init_optimization_passes): Remove pass_linear_transform.
5570 * tree-data-ref.c (print_lambda_vector): Moved here.
5571 (lambda_vector_copy): Same.
5572 (lambda_matrix_copy): Same.
5573 (lambda_matrix_id): Same.
5574 (lambda_vector_first_nz): Same.
5575 (lambda_matrix_row_add): Same.
5576 (lambda_matrix_row_exchange): Same.
5577 (lambda_vector_mult_const): Same.
5578 (lambda_vector_negate): Same.
5579 (lambda_matrix_row_negate): Same.
5580 (lambda_vector_equal): Same.
5581 (lambda_matrix_right_hermite): Same.
5582 * tree-data-ref.h: Do not include lambda.h.
5583 (lambda_vector): Moved here.
5584 (lambda_matrix): Same.
5585 (dependence_level): Same.
5586 (lambda_transform_legal_p): Removed declaration.
5587 (lambda_collect_parameters): Same.
5588 (lambda_compute_access_matrices): Same.
5589 (lambda_vector_gcd): Same.
5590 (lambda_vector_new): Same.
5591 (lambda_vector_clear): Same.
5592 (lambda_vector_lexico_pos): Same.
5593 (lambda_vector_zerop): Same.
5594 (lambda_matrix_new): Same.
5595 * tree-flow.h (least_common_multiple): Removed declaration.
5596 * tree-parloops.c (lambda_trans_matrix): Moved here.
5598 (LTM_ROWSIZE): Same.
5599 (LTM_COLSIZE): Same.
5600 (LTM_DENOMINATOR): Same.
5601 (lambda_trans_matrix_new): Same.
5602 (lambda_matrix_vector_mult): Same.
5603 (lambda_transform_legal_p): Same.
5604 * tree-pass.h (pass_linear_transform): Removed declaration.
5605 * tree-ssa-loop.c (tree_linear_transform): Removed.
5606 (gate_tree_linear_transform): Removed.
5607 (pass_linear_transform): Removed.
5608 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
5609 flag_loop_interchange.
5611 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5613 PR tree-optimization/47265
5614 PR tree-optimization/47443
5615 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
5616 if name still has some uses.
5618 2011-01-25 Martin Jambor <mjambor@suse.cz>
5620 PR tree-optimization/47382
5621 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
5622 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
5624 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
5626 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
5627 sjlj_except_unwind_info.
5629 2011-01-25 Richard Guenther <rguenther@suse.de>
5631 PR tree-optimization/47426
5632 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
5633 visible functions results escape.
5635 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5638 * config/arm/arm.c (any_sibcall_uses_r3): New function.
5639 (arm_get_frame_offsets): Use it.
5641 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5642 Jakub Jelinek <jakub@redhat.com>
5644 PR tree-optimization/47271
5645 * tree-if-conv.c (bb_postdominates_preds): New.
5646 (if_convertible_bb_p): Call bb_postdominates_preds.
5647 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
5648 (predicate_scalar_phi): Call bb_postdominates_preds.
5650 2011-01-25 Nick Clifton <nickc@redhat.com>
5652 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
5653 * config/rx/rx.c (rx_function_value): Likewise.
5654 (rx_promote_function_mode): Likewise.
5655 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
5656 in order to make it legitimate.
5657 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
5658 make sure that the first operand is the same as the result register.
5659 (addsi3_unspec): Delete.
5660 (subdi3): Do not accept immediate operands.
5661 (subdi3_internal): Likewise.
5663 2011-01-25 Jeff Law <law@redhat.com>
5665 PR rtl-optimization/37273
5666 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5667 handle them like argument loads from stack slots. Do not double
5668 count memory for memory constants and argument loads from stack slots.
5670 2011-01-25 Jakub Jelinek <jakub@redhat.com>
5672 PR tree-optimization/47427
5673 PR tree-optimization/47428
5674 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5675 coalesce if the new root var would be TREE_READONLY.
5677 2011-01-25 Richard Guenther <rguenther@suse.de>
5680 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
5681 correct type for TBAA.
5683 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5685 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
5686 (close_phi_written_to_memory): Call for_each_index with
5687 dr_indices_valid_in_loop.
5689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5691 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
5692 when it is initialized.
5694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5696 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
5697 call to graphite_find_data_references_in_stmt.
5698 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
5699 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
5700 call to graphite_find_data_references_in_stmt.
5701 (analyze_drs_in_stmts): Same.
5702 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
5703 in which the scalar analysis of indices is performed.
5704 (create_data_ref): Same. Update call to dr_analyze_indices.
5705 (find_data_references_in_stmt): Update call to create_data_ref.
5706 (graphite_find_data_references_in_stmt): Same.
5707 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
5709 (create_data_ref): Same.
5710 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
5711 call to create_data_ref.
5713 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5715 * graphite-sese-to-poly.c (build_poly_scop): Move
5716 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
5718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5720 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
5721 VAR_DECL, PARM_DECL, and RESULT_DECL.
5723 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5725 * graphite-dependences.c (reduction_dr_1): Allow several reductions
5727 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
5728 that have already been marked as PBB_IS_REDUCTION.
5730 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5732 * graphite-scop-detection.c (same_close_phi_node): New.
5733 (remove_duplicate_close_phi): New.
5734 (make_close_phi_nodes_unique): New.
5735 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
5737 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5739 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
5740 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
5741 of both data references to be the same.
5743 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5745 * graphite-dependences.c (build_lexicographical_constraint): Remove
5747 (build_lexicographical_constraint): Adjust call to
5748 ppl_powerset_is_empty.
5749 (dependence_polyhedron): Same.
5750 (graphite_legal_transform_dr): Same.
5751 (graphite_carried_dependence_level_k): Same.
5752 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
5754 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
5756 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5758 * graphite-sese-to-poly.c
5759 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
5760 (close_phi_written_to_memory): New.
5761 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
5764 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5766 * doc/install.texi: Update the expected version number of PPL to 0.11.
5767 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
5768 #if PPL_VERSION_MINOR < 11.
5770 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5772 * graphite-dependences.c: Include graphite-cloog-util.h.
5773 (new_poly_ddr): Inlined into dependence_polyhedron.
5774 (free_poly_ddr): Moved close by new_poly_ddr.
5775 (dependence_polyhedron_1): Renamed dependence_polyhedron.
5776 Early return NULL when ppl_powerset_is_empty returns true.
5777 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
5778 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
5779 (graphite_legal_transform_dr): Call new_poly_ddr.
5780 (graphite_carried_dependence_level_k): Same.
5781 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
5782 (dot_transformed_deps_stmt_1): Removed.
5783 (dot_deps_stmt_1): Call dot_deps_stmt_2.
5784 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
5785 (dot_deps_1): Call dot_deps_2.
5786 * Makefile.in (graphite-dependences.o): Add missing dependence on
5787 graphite-cloog-util.h.
5789 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5791 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
5792 (build_lexicographical_constraint): Same.
5793 (dependence_polyhedron_1): Same.
5794 (graphite_legal_transform_dr): Same.
5795 (graphite_carried_dependence_level_k): Same.
5796 * graphite-ppl.c (ppl_powerset_is_empty): New.
5797 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
5798 * tree-data-ref.c (dump_data_reference): Print the basic block index.
5800 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5802 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
5803 the "a followed by b" relation and document it.
5805 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5807 * graphite-dependences.c (build_lexicographical_constraint): Stop the
5808 iteration when the bag of constraints is empty.
5810 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5812 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
5814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5816 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
5817 nest and two loop depths as parameters.
5818 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
5819 lst_perfect_nestify.
5821 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5823 * graphite-dependences.c (print_pddr): Call
5824 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
5826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
5828 * graphite-ppl.c (debug_gmp_value): New.
5829 * graphite-ppl.h (debug_gmp_value): Declared.
5831 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
5833 * doc/install.texi: Document availability of cloog-0.16.
5835 2011-01-25 Vladimir Kargov <kargov@gmail.com>
5837 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
5838 invalid postdominance info.
5840 2011-01-24 Jan Hubicka <jh@suse.cz>
5843 * doc/extend.texi (weak pragma): Drop claim that it must
5844 appear before definition.
5845 * varasm.c (merge_weak, declare_weak): Only sanity check
5846 that DECL is not output at a time it is declared weak.
5848 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
5850 * machmode.def: Fixed comments.
5852 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
5854 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
5856 2011-01-24 Paul Koning <ni1d@arrl.net>
5858 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
5861 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
5864 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
5865 (block_info): Add scanned and prev.
5866 (move_or_delete_vzeroupper_2): Return if the basic block
5867 has been scanned and the upper 128bit state is unchanged
5869 (move_or_delete_vzeroupper_1): Return true if the exit
5871 (move_or_delete_vzeroupper): Visit basic blocks using the
5872 work-list based algorithm based on vt_find_locations in
5875 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
5877 2011-01-24 Nick Clifton <nickc@redhat.com>
5879 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
5880 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
5881 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
5882 then define __v850e1__.
5883 * doc/invoke.texi: Document -mv850es.
5885 2011-01-24 Richard Henderson <rth@redhat.com>
5887 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
5888 compound unordered comparisons.
5889 * config/rx/rx.c (rx_split_fp_compare): Remove.
5890 * config/rx/rx-protos.h: Update.
5891 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
5892 (cbranchsf4): Don't call rx_split_fp_compare.
5893 (*cbranchsf4): Use rx_split_cbranch.
5894 (*cmpsf): Don't accept "i" constraint.
5895 (*conditional_branch): Only valid after reload.
5896 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
5898 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5901 * config/rs6000/altivec.md (vector constant splitters): Add
5902 support for creating vector single precision constants if -mvsx is
5903 used and we would create the constant using Altivec primitives.
5905 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
5906 Richard Sandiford <rdsandiford@googlemail.com>
5908 PR rtl-optimization/47166
5909 * reload1.c (emit_reload_insns): Disable the spill_reg_store
5910 mechanism for PRE_MODIFY and POST_MODIFY.
5911 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
5914 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
5916 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
5918 2011-01-22 Jan Hubicka <jh@suse.cz>
5921 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
5923 2011-01-22 Jan Hubicka <jh@suse.cz>
5925 PR tree-optimization/43884
5927 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
5928 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
5930 2011-01-22 Anatoly Sokolov <aesok@post.ru>
5932 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5933 * config/s390/s390.c (s390_register_move_cost,
5934 s390_memory_move_cost): New.
5935 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5937 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5940 * except.c (sjlj_assign_call_site_values): Move setting the
5941 crtl->uses_eh_lsda flag to ...
5942 (sjlj_mark_call_sites): ... here.
5943 (sjlj_emit_function_enter): Support NULL dispatch label.
5944 (sjlj_build_landing_pads): In a function with no landing pads
5945 that still has must-not-throw regions, generate code to register
5946 a personality function with empty LSDA.
5948 2011-01-21 Richard Henderson <rth@redhat.com>
5950 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
5952 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
5954 * compare-elim.c: New file.
5955 * Makefile.in (OBJS-common): Add it.
5956 (compare-elim.o): New.
5957 * common.opt (fcompare-elim): New.
5958 * opts.c (default_options_table): Add OPT_fcompare_elim.
5959 * tree-pass.h (pass_compare_elim_after_reload): New.
5960 * passes.c (init_optimization_passes): Add it.
5961 * recog.h: Protect against re-inclusion.
5962 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
5963 * doc/invoke.texi (-fcompare-elim): Document it.
5964 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
5965 * doc/tm.texi: Rebuild.
5967 2011-01-22 Nick Clifton <nickc@redhat.com>
5969 * config/rx/rx.md (cstoresf4): Pass comparison operator to
5970 rx_split_fp_compare.
5972 2011-01-22 Nick Clifton <nickc@redhat.com>
5974 * config/rx/rx.md (UNSPEC_CONST): New.
5975 (deallocate_and_return): Wrap the amount popped off the stack in
5976 an UNSPEC_CONST in order to stop it being rejected by
5977 -mmax-constant-size.
5978 (pop_and_return): Add a "(return)" rtx.
5979 (call): Drop the immediate operand.
5980 (call_internal): Likewise.
5981 (call_value): Likewise.
5982 (call_value_internal): Likewise.
5983 (sibcall_internal): Likewise.
5984 (sibcall_value_internal): Likewise.
5985 (sibcall): Likewise. Generate an explicit call using
5987 (sibcall_value): Likewise.
5988 (mov<>): FAIL if a constant operand is not legitimate.
5989 (addsi3_unpsec): New pattern.
5991 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
5992 (ok_for_max_constant): New function.
5993 (gen_safe_add): New function.
5994 (rx_expand_prologue): Use gen_safe_add.
5995 (rx_expand_epilogue): Likewise.
5996 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
5999 2011-01-21 Jeff Law <law@redhat.com>
6001 PR tree-optimization/47053
6002 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6003 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6004 statements are deleted.
6005 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6006 is nonempty, then purge dead edges and cleanup the CFG.
6008 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6012 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6014 * tree-dfa.c (create_var_ann): Mark variable as used.
6016 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6019 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6020 notes from other section in hot/cold partitioning even if
6021 last_action is -3. Increment call_site_base.
6023 PR rtl-optimization/47366
6024 * fwprop.c (forward_propagate_into): Return bool. If
6025 any changes are made, -fnon-call-exceptions is used and
6026 REG_EH_REGION note is present, call purge_dead_edges
6027 and return true if it purged anything.
6028 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6029 any EH edges were purged.
6031 2011-01-21 Jeff Law <law@redhat.com>
6033 PR rtl-optimization/41619
6034 * caller-save.c (setup_save_areas): Break out code to determine
6035 which hard regs are live across calls by examining the reload chains
6036 so that it is always used.
6037 Eliminate code which checked REG_N_CALLS_CROSSED.
6039 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6041 PR tree-optimization/47355
6042 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6043 NOP has non-debug uses beyond PHIs in new_bb.
6045 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6048 * cfgexpand.c (account_used_vars_for_block): Only account vars
6049 that are annotated as used.
6050 (estimated_stack_frame_size): Don't set TREE_USED.
6051 * tree-dfa.c (create_var_ann): Mark variable as used.
6053 2011-01-21 Richard Guenther <rguenther@suse.de>
6056 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6058 2011-01-21 Richard Guenther <rguenther@suse.de>
6060 PR tree-optimization/47365
6061 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6062 (vn_reference_lookup_pieces): Adjust.
6063 (vn_reference_lookup): Likewise.
6064 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6065 (vn_reference_lookup_3): Only look through kills if in
6066 VN_WALKREWRITE mode.
6067 (vn_reference_lookup_pieces): Adjust.
6068 (vn_reference_lookup): Likewise.
6069 (visit_reference_op_load): Likewise.
6070 (visit_reference_op_store): Likewise.
6071 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6072 (compute_avail): Likewise.
6073 (eliminate): Likewise.
6075 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6077 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6078 DECL_IGNORED_P non-reg vars if they are used.
6080 PR tree-optimization/47391
6081 * varpool.c (const_value_known_p): Return false if
6084 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
6087 * config/i386/i386.c (ix86_local_alignment): Handle
6088 case for va_list_type_node is nil.
6089 (ix86_canonical_va_list_type): Likewise.
6091 2011-01-21 Alan Modra <amodra@gmail.com>
6093 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6094 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6096 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6098 * config/arm/arm.md (define_attr type): Rename f_load
6099 and f_store to f_fpa_load and f_fpa_store. Update.
6100 (write_conflict): Deal with rename fallout.
6101 (*push_fp_multi): Likewise.
6102 * config/arm/fpa.md (f_load): Use f_fpa_load.
6103 (f_store): Use f_fpa_store.
6104 (*movsf_fpa): Likewise.
6105 (*movdf_fpa): Likewise.
6106 (*movxf_fpa): Likewise.
6107 (*thumb2_movsf_fpa): Likewise.
6108 (*thumb2_movdf_fpa): Likewise.
6109 (*thumb2_movxf_fpa): Likewise.
6110 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6111 f_loadd and f_stored.
6112 (*thumb2_movdi_vfp): Likewise.
6113 (*thumb2_movsf_vfp): Fix attribute to f_loads.
6114 (*thumb2_movsi_vfp): Likewise.
6115 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6116 Use f_loads instead of f_load.
6117 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6119 2011-01-20 Anatoly Sokolov <aesok@post.ru>
6121 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6122 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6123 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6124 (xtensa_mode_dependent_address_p): New function.
6125 (constantpool_address_p): Make static. Change return type to bool.
6126 Change argument type to const_rtx. Use CONST_INT_P predicate.
6128 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
6131 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6133 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6136 * cfgexpand.c (expand_debug_expr): Instead of generating
6137 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6140 2011-01-20 Richard Guenther <rguenther@suse.de>
6143 * tree-inline.c (remap_gimple_op_r): Recurse manually for
6144 the pointer operand of MEM_REFs.
6146 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6148 PR tree-optimization/46130
6149 * ipa-split.c (consider_split): If return_bb contains non-virtual
6150 PHIs other than for retval or if split_function would not adjust it,
6153 2011-01-20 Richard Guenther <rguenther@suse.de>
6155 PR tree-optimization/47167
6156 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6157 Revert previous change, only avoid enumeral type changes.
6159 2011-01-19 Mike Stump <mikestump@comcast.net>
6161 * doc/tm.texi.in (BRANCH_COST): Englishify.
6162 * doc/tm.texi (BRANCH_COST): Likewise.
6164 2011-01-19 Dodji Seketeli <dodji@redhat.com>
6167 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
6168 (gen_scheduled_generic_parms_dies): New functions.
6169 (gen_struct_or_union_type_die): Schedule template parameters DIEs
6170 generation for the end of CU compilation.
6171 (dwarf2out_finish): Generate template parameters DIEs here.
6173 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6176 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6177 debug bind stmt on merge edges.
6179 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6183 * function.c (instantiate_expr): Instantiate incoming rtl of
6184 implicit arguments, and recurse on VALUE_EXPRs.
6185 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6186 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6188 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6190 * c-parser.c (c_parser_for_statement): Initialize
6191 collection_expression.
6193 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6195 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6197 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6199 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6200 (LINK_SHLIB_SPEC): Don't use %(link_path).
6201 (SUBTARGET_EXTRA_SPECS): Remove link_path.
6203 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6205 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6206 (NO_SHARED_LIB_SUPPORT): Remove.
6207 (LINK_SHLIB_SPEC): Remove one conditional definition.
6209 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6211 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6213 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6214 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6215 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6216 %{call_shared} and conditionals on these options not being passed.
6217 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6220 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6222 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6225 * ipa-split.c: Spelling fixes.
6227 2011-01-19 Richard Henderson <rth@redhat.com>
6229 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
6230 (*mulsi3): Likewise.
6232 * longlong.h [__mn10300__] (count_leading_zeros): New.
6233 [__mn10300__] (umul_ppmm, smul_ppmm): New.
6234 [__mn10300__] (add_ssaaaa, subddmmss): New.
6235 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
6236 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
6238 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6240 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
6242 2011-01-19 Richard Henderson <rth@redhat.com>
6244 * config/mn10300/mn10300.md (addsi3_flags): New.
6245 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
6246 (subsi3_flags, subc_internal, subdi3): New.
6247 (subdi3_internal, *subdi3_degenerate): New.
6248 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
6250 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
6251 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
6252 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
6253 * config/mn10300/mn10300-protos.h: Update.
6254 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
6255 (return_ret): Likewise. Rename from return_internal_regs.
6256 (return_internal): Remove.
6258 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
6259 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
6260 (mn10300_legitimate_constant_p): Likewise.
6261 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
6262 (mn10300_frame_size): New.
6263 (mn10300_expand_prologue): Use it.
6264 (mn10300_expand_epilogue): Likewise.
6265 (mn10300_initial_offset): Likewise.
6266 * config/mn10300/mn10300-protos.h: Update.
6267 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
6268 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
6269 (prologue, epilogue, return_internal): Tidy output code.
6270 (mn10300_store_multiple_operation, return): Likewise.
6271 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
6272 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
6273 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
6274 (load_pic, am33_load_pic): New.
6275 (mn10300_load_pic0, mn10300_load_pic1): New.
6277 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
6278 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
6279 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
6280 (cc_flags_for_mode, cc_flags_for_code): New.
6281 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
6282 overflow flag is not valid. Validate that the flags we need
6283 for the comparison are valid.
6284 (mn10300_output_cmp): Remove.
6285 (mn10300_output_add): New.
6286 (mn10300_select_cc_mode): Use cc_flags_for_code.
6287 (mn10300_split_cbranch): New.
6288 (mn10300_match_ccmode): New.
6289 (mn10300_split_and_operand_count): New.
6290 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
6292 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
6293 (addsi3): ... here. Use mn10300_output_add.
6294 (*addsi3_flags): New.
6295 (*am33_subsi3, *mn10300_subsi3): Merge...
6296 (subsi3): ... here. Use attribute isa.
6297 (*subsi3_flags): New.
6298 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
6300 (*am33_andsi3, *mn10300_andsi3): Merge...
6302 (*andsi3_flags): New.
6303 (andsi3 splitters): New.
6304 (*am33_iorsi3, *mn10300_iorsi3): Merge...
6306 (*iorsi3_flags): New.
6307 (*am33_xorsi3, *mn10300_xorsi3): Merge...
6309 (*xorsi3_flags): New.
6310 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
6311 (one_cmplsi2): ... here.
6312 (*one_cmplsi2_flags): New.
6313 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
6314 instead of "dax" in constraints. Use mn10300_split_cbranch.
6315 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
6316 use matching constraints to eliminate a self-comparison.
6317 (*integer_conditional_branch): Rename from integer_conditional_branch.
6318 Use int_mode_flags to match CC_REG.
6319 (*cbranchsi4_btst, *btstsi): New.
6320 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
6321 mn10300_split_cbranch.
6322 (*am33_cmpsf): Rename from am33_cmpsf.
6323 (*float_conditional_branch): Rename from float_conditional_branch.
6324 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
6325 (zero_extendqisi2): ... here.
6326 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
6327 (zero_extendhisi2): ... here.
6328 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
6329 (extendqisi2): ... here.
6330 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
6331 (extendhisi2): ... here.
6332 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
6333 (ashlsi3): ... here.
6334 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
6335 (lshrsi3): ... here.
6336 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
6337 (ashrsi3): ... here.
6338 (consecutive add peephole): Remove.
6339 * config/mn10300/predicates.md (label_ref_operand): New.
6340 (int_mode_flags): New.
6341 (CCZN_comparison_operator): New.
6343 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
6344 (throughput_42_latency_43): New reservation.
6345 (mulsidi3, umulsidi3): New expanders.
6346 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
6347 the MDR register to allocation; separately allocate the low and
6348 high parts of the DImode result.
6349 (umulsidi3_internal): Similarly.
6350 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
6351 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
6352 (udivsi3, umodsi3): Remove.
6353 (udivmodsi4, divmodsi4): New expanders.
6354 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
6355 (*divmodsi4): Simiarly.
6356 (ext_internal): New.
6358 * config/mn10300/constraints.md ("z"): New constraint.
6359 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
6360 (FIXED_REGISTERS): Don't fix MDR.
6361 (CALL_USED_REGSITERS): Reformat nicely.
6362 (REG_ALLOC_ORDER): Add MDR.
6363 (enum regclass): Add MDR_REGS.
6364 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
6365 (IRA_COVER_CLASSES): Add MDR_REGS.
6366 (REGNO_REG_CLASS): Handle MDR_REG.
6367 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
6368 (mn10300_register_move_cost): Likewise.
6369 * config/mn10300/mn10300.md (MDR_REG): New.
6370 (*movsi_internal): Handle moves to/from MDR_REGS.
6372 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
6374 (mn10300_secondary_reload): Tidy combination reload classes.
6375 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
6376 addresses for AM33. Allow symbolic offsets for reg+imm.
6377 (mn10300_regno_in_class_p): New.
6378 (mn10300_legitimize_reload_address): New.
6379 * config/mn10300/mn10300.h (enum reg_class): Remove
6380 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
6381 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
6383 (REG_CLASS_NAMES): Update to match.
6384 (REG_CLASS_CONTENTS): Likewise.
6385 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
6386 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
6387 (REGNO_IN_RANGE_P): Remove.
6388 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
6389 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
6390 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
6391 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
6392 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
6393 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
6394 (REGNO_GENERAL_P): New.
6395 (HAVE_POST_MODIFY_DISP): New.
6396 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
6397 (LEGITIMIZE_RELOAD_ADDRESS): New.
6398 * config/mn10300/mn10300-protos.h: Update.
6400 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
6401 DATA_REGS for AM33 stack-pointer destination.
6402 (mn10300_preferred_output_reload_class): Likewise.
6403 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
6404 into a form appropriate for ...
6405 (TARGET_SECONDARY_RELOAD): New.
6406 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
6407 * config/mn10300/mn10300-protos.h: Update.
6408 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
6409 reload_insi; use the "A" constraint for the scratch; handle AM33
6410 moves of sp to non-address registers.
6412 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
6413 (*movqi_internal): ... here.
6414 (*am33_movhi, *mn10300_movhi): Merge into...
6415 (*movhi_internal): ... here.
6416 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
6417 as the source/destination of moves from/to SP.
6418 (movsf): Only allow for AM33-2.
6419 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
6420 any integer constant constraint. Only allow for AM33-2. Tidy
6421 all of the alternative outputs.
6422 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
6423 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
6425 (udivsi3, umodsi3): New patterns for MN103 only.
6427 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
6429 * doc/tm.texi.in: Spell out that a lack of register class unions
6431 * doc/tm.texi: Regenerate.
6433 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6435 PR rtl-optimization/47337
6436 * dce.c (check_argument_store): New function.
6437 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
6439 PR tree-optimization/47290
6440 * tree-eh.c (infinite_empty_loop_p): New function.
6441 (cleanup_empty_eh): Use it.
6443 2011-01-18 Steve Ellcey <sje@cup.hp.com>
6446 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
6447 (a64_expand_widen_sum): Ditto.
6448 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
6449 (vec_extract_evenodd_help): Ditto.
6450 (vec_extract_evenv4hi): Ditto.
6451 (vec_extract_oddv4hi): Ditto.
6452 (vec_extract_evenv2si): Ditto.
6453 (vec_extract_oddv2si): Ditto.
6454 (vec_extract_evenv2sf): Ditto.
6455 (vec_extract_oddv2sf): Ditto.
6456 (vec_pack_trunc_v4hi: Ditto.
6457 (vec_pack_trunc_v2si): Ditto.
6458 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
6459 (vec_interleave_highv8qi): Ditto.
6461 (vec_extract_oddv8qi): Ditto.
6462 (vec_interleave_lowv4hi): Ditto.
6463 (vec_interleave_highv4hi): Ditto.
6464 (vec_interleave_lowv2si): Ditto.
6465 (vec_interleave_highv2si): Ditto.
6467 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6469 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
6470 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
6471 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
6472 (pa_c_mode_for_suffix): New.
6473 (TARGET_EXPAND_BUILTIN): Define.
6474 (TARGET_C_MODE_FOR_SUFFIX): Define.
6475 (pa_builtins): Define.
6476 (pa_init_builtins): Register __float128 type and init new support
6478 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
6479 * config/pa/quadlib.c (_U_Qfcopysign): New.
6481 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
6484 * explow.c (allocate_dynamic_stack_space): Do not assume more than
6485 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
6488 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6490 PR tree-optimization/47179
6491 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
6492 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
6494 2011-01-18 Richard Guenther <rguenther@suse.de>
6496 PR rtl-optimization/47216
6497 * emit-rtl.c: Include tree-flow.h.
6498 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
6499 of replicating it with different semantics.
6500 * Makefile.in (emit-rtl.o): Adjust.
6502 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6504 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
6505 (cortex_a9_dp): Handle neon types correctly.
6507 2011-01-18 Jakub Jelinek <jakub@redhat.com>
6509 PR rtl-optimization/47299
6510 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
6511 subtarget. Use normal multiplication if both operands are constants.
6512 * expmed.c (expand_widening_mult): Don't try to optimize constant
6513 multiplication if op0 has VOIDmode. Convert op1 constant to mode
6516 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6518 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
6519 spacing after 'e.g.', typos, comma, hyphenation.
6521 2011-01-17 Richard Henderson <rth@redhat.com>
6523 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
6524 (rx_restricted_mem_operand): New.
6525 (rx_shift_operand): Use register_operand.
6526 (rx_source_operand, rx_compare_operand): Likewise.
6527 * config/rx/rx.md (addsi3_flags): New expander.
6528 (adddi3): Rewrite as expander.
6529 (adc_internal, *adc_flags, adddi3_internal): New patterns.
6530 (subsi3_flags): New expander.
6531 (subdi3): Rewrite as expander.
6532 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
6534 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
6535 (rx_init_builtins): Remove sat builtin.
6536 (rx_expand_builtin): Likewise.
6537 * config/rx/rx.md (ssaddsi3): New.
6538 (*sat): Rename from sat. Represent the CC_REG input.
6540 * config/rx/predicates.md (rshift_operator): New.
6541 * config/rx/rx.c (rx_expand_insv): Remove.
6542 * config/rx/rx-protos.h: Update.
6543 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
6544 operand to the canonical position.
6545 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
6546 (*bitclr, *bitclr_in_memory): Similarly.
6547 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
6548 (insv): Retain the zero_extract in the expansion.
6550 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
6551 (bswaphi2, bitinvert, revw): Likewise.
6553 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
6554 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
6555 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
6556 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
6557 (bitset, bitset_in_memory): Likewise.
6558 (bitinvert, bitinvert_in_memory): Likewise.
6559 (bitclr, bitclr_in_memory): Likewise.
6560 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
6561 (rx_strend, rx_cmpstrn): Likewise.
6562 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
6563 (bitop peep2 patterns): Remove.
6565 * config/rx/rx.c (rx_match_ccmode): New.
6566 * config/rx/rx-protos.h: Update.
6567 * config/rx/rx.md (abssi2): Clobber, don't set flags.
6568 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
6569 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
6570 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
6571 (fix_truncsfsi2, floatsisf2): Likewise.
6572 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
6573 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
6574 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
6575 (*subsi3_flags, *xorsi3_flags): New.
6577 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
6579 * config/rx/rx.c (rx_print_operand): Remove workaround for
6580 unsplit comparison operations.
6582 * config/rx/rx.md (movsicc): Split after reload.
6583 (*movsicc): Merge *movsieq and *movsine via match_operator.
6584 (*stcc): New pattern.
6586 * config/rx/rx.c (rx_float_compare_mode): Remove.
6587 * config/rx/rx.h (rx_float_compare_mode): Remove.
6588 * config/rx/rx.md (cstoresi4): Split after reload.
6589 (*sccc): New pattern.
6591 * config/rx/predicates.md (label_ref_operand): New.
6592 (rx_z_comparison_operator): New.
6593 (rx_zs_comparison_operator): New.
6594 (rx_fp_comparison_operator): New.
6595 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
6596 Validate that the flags are set properly for the comparison.
6597 (rx_gen_cond_branch_template): Remove.
6598 (rx_cc_modes_compatible): Remove.
6599 (mode_from_flags): New.
6600 (flags_from_code): Rename from flags_needed_for_conditional.
6601 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
6602 (rx_select_cc_mode): Likewise.
6603 (rx_split_fp_compare): New.
6604 (rx_split_cbranch): New.
6605 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
6606 (*cbranchsi4): Use match_operator and rx_split_cbranch.
6607 (*cbranchsf4): Similarly.
6608 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
6609 match_operator and rx_split_cbranch.
6610 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
6611 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
6612 (*cmpsi): Rename from cmpsi.
6613 (*tstsi): Rename from tstsi.
6614 (*cmpsf): Rename from cmpsf; use CC_Fmode.
6615 (*conditional_branch): Rename from conditional_branch.
6616 (*reveresed_conditional_branch): Remove.
6617 (b<code>): Remove expander.
6618 * config/rx/rx-protos.h: Update.
6620 * config/rx/rx.c (rx_compare_redundant): Remove.
6621 * config/rx/rx.md (cmpsi): Don't use it.
6622 * config/rx/rx-protos.h: Update.
6624 * config/rx/rx-modes.def (CC_F): New mode.
6625 * config/rx/rx.c (rx_select_cc_mode): New.
6626 * config/rx/rx.h (SELECT_CC_MODE): Use it.
6627 * config/rx/rx-protos.h: Update.
6629 2011-01-17 Richard Henderson <rth@redhat.com>
6631 * except.c (dump_eh_tree): Fix stray ; after for statement.
6633 2011-01-17 Richard Guenther <rguenther@suse.de>
6635 PR tree-optimization/47313
6636 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
6637 handling before copying the body. Properly deal with
6638 by-reference result in SSA form.
6640 2011-01-17 Ian Lance Taylor <iant@google.com>
6643 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
6644 (struct_value_alias_set): Don't define.
6645 (sparc_option_override): Don't set sparc_sr_alias_set and
6646 struct_value_alias_set.
6647 (save_or_restore_regs): Use gen_frame_mem rather than calling
6649 (sparc_struct_value_rtx): Likewise.
6651 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
6654 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
6656 (_mm_maskstore_pd): Likewise.
6657 (_mm_maskload_ps): Likewise.
6658 (_mm_maskstore_ps): Likewise.
6659 (_mm256_maskload_pd): Change mask to __m256i.
6660 (_mm256_maskstore_pd): Likewise.
6661 (_mm256_maskload_ps): Likewise.
6662 (_mm256_maskstore_ps): Likewise.
6664 * config/i386/i386-builtin-types.def: Updated.
6665 (ix86_expand_special_args_builtin): Likewise.
6667 * config/i386/i386.c (bdesc_special_args): Update
6668 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
6669 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
6670 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
6671 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
6673 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
6674 Use <avxpermvecmode> on mask register.
6675 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
6677 2011-01-17 Olivier Hainque <hainque@adacore.com>
6678 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6679 Eric Botcazou <ebotcazou@adacore.com>
6682 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
6683 if <= USHRT_MAX in 32-bit mode.
6685 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6687 * doc/install.texi (Configuration, Specific): Wrap long
6688 lines in examples. Allow line wrapping in long options
6689 and URLs where beneficial for PDF output.
6691 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
6693 * config/mips/mips.c (mips_classify_symbol): Don't return
6694 SYMBOL_PC_RELATIVE for nonlocal labels.
6696 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
6698 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
6700 2011-01-15 Jan Hubicka <jh@suse.cz>
6702 PR tree-optimization/47276
6703 * ipa.c (function_and_variable_visibility): Do not try to mark alias
6704 declarations as needed.
6706 2011-01-15 Martin Jambor <mjambor@suse.cz>
6708 * common.opt (fdevirtualize): New flag.
6709 * doc/invoke.texi (Option Summary): Document it.
6710 * opts.c (default_options_table): Add devirtualize flag.
6711 * ipa-prop.c (detect_type_change): Return immediately if
6712 devirtualize flag is not set.
6713 (detect_type_change_ssa): Likewise.
6714 (compute_known_type_jump_func): Likewise.
6715 (ipa_analyze_virtual_call_uses): Likewise.
6717 2011-01-14 Martin Jambor <mjambor@suse.cz>
6719 PR tree-optimization/45934
6720 PR tree-optimization/46302
6721 * ipa-prop.c (type_change_info): New type.
6722 (stmt_may_be_vtbl_ptr_store): New function.
6723 (check_stmt_for_type_change): Likewise.
6724 (detect_type_change): Likewise.
6725 (detect_type_change_ssa): Likewise.
6726 (compute_complex_assign_jump_func): Check for dynamic type change.
6727 (compute_complex_ancestor_jump_func): Likewise.
6728 (compute_known_type_jump_func): Likewise.
6729 (compute_scalar_jump_functions): Likewise.
6730 (ipa_analyze_virtual_call_uses): Likewise.
6731 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
6733 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6735 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
6736 * config/i386/i386.opt (msse5): New Alias.
6738 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6740 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6741 * config/sparc/linux64.h (CC1_SPEC): Likewise.
6742 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6743 * config/sparc/sparc.h (CC1_SPEC): Likewise.
6745 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6747 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
6749 * config/sparc/linux64.h (CC1_SPEC): Likewise.
6750 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6751 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
6752 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
6754 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
6756 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6758 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
6760 2011-01-14 Mike Stump <mikestump@comcast.net>
6762 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
6763 * config/fr30/fr30.md: Likweise
6764 (movsi_push): Likewise.
6765 (movsi_pop): Likewise.
6766 (enter_func): Likewise.
6767 * config/moxie/moxie.md (movsi_push): Likewise.
6768 (movsi_pop): Likewise.
6770 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6772 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
6773 %{no_archive} %{exact_version}.
6774 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
6775 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
6776 %{no_archive} %{exact_version}.
6777 * config/mips/openbsd.h (LINK_SPEC): Likewise.
6778 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
6779 * config/mips/vxworks.h: Likewise.
6781 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6783 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
6785 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6787 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
6788 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
6790 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6792 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
6795 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6797 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
6799 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
6800 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
6802 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
6803 Don't handle -shlib.
6805 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6807 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
6808 (CC1_SPEC): Don't handle -profile.
6810 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6812 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
6813 * config/mips/mips.h (CC1_SPEC): Likewise.
6815 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6817 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
6818 * config/mips/mips.h (CC1_SPEC): Likewise.
6820 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6822 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
6823 * config/m32r/linux.h (LINK_SPEC): Likewise.
6824 * config/mips/linux.h (LINK_SPEC): Likewise.
6825 * config/mips/linux64.h (LINK_SPEC): Likewise.
6826 * config/sparc/linux.h (LINK_SPEC): Likewise.
6827 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6828 LINK_SPEC): Likewise.
6829 * config/xtensa/linux.h (LINK_SPEC): Likewise.
6831 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6833 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
6835 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
6837 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6839 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
6840 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6842 2011-01-14 Joseph Myers <joseph@codesourcery.com>
6844 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
6846 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6848 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
6849 supports -Bstatic/-Bdynamic.
6850 * configure: Regenerate.
6852 2011-01-14 Jan Hubicka <jh@suse.cz>
6853 Jack Howarth <howarth@bromo.med.uc.edu>
6856 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
6857 when checking debug_info_level. Test write_symbols instead of
6858 debug_hooks->var_location when setting flag_var_tracking_uninit.
6860 2011-01-14 Richard Guenther <rguenther@suse.de>
6862 PR tree-optimization/47179
6863 * target.def (ref_may_alias_errno): New target hook.
6864 * targhooks.h (default_ref_may_alias_errno): Declare.
6865 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
6866 (default_ref_may_alias_errno): New function.
6867 * target.h (struct ao_ref_s): Declare.
6868 * tree-ssa-alias.c: Include target.h.
6869 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
6870 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
6871 (targhooks.o): Likewise.
6872 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
6873 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
6875 2011-01-14 Richard Guenther <rguenther@suse.de>
6877 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
6879 2011-01-14 Richard Guenther <rguenther@suse.de>
6881 PR tree-optimization/47280
6882 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
6884 (tree_ssa_forward_propagate_single_use_vars): Deal with
6885 CFG changes from associate_plusminus.
6887 2011-01-14 Richard Guenther <rguenther@suse.de>
6891 2011-01-11 Richard Guenther <rguenther@suse.de>
6893 PR tree-optimization/46076
6894 * tree-ssa.c (useless_type_conversion_p): Conversions from
6895 unprototyped to empty argument list function types are useless.
6897 2011-01-14 Richard Guenther <rguenther@suse.de>
6899 PR tree-optimization/47286
6900 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6902 2011-01-14 Martin Jambor <mjambor@suse.cz>
6905 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
6907 2011-01-13 Anatoly Sokolov <aesok@post.ru>
6909 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
6910 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6911 * config/xtensa/xtensa.c (xtensa_libcall_value,
6912 xtensa_function_value_regno_p): New functions.
6913 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6915 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
6918 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
6920 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
6921 New function prototype.
6922 * config/i386/winnt.c (i386_pe_assemble_visibility):
6923 Warn only if attribute was specified by user.
6925 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
6928 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
6930 (floatunsdidf2_fcfidu): Ditto.
6932 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6934 * config/s390/s390.c (print_operand_address): Replace 'error' with
6935 'output_operand_lossage'.
6936 (print_operand): Likewise.
6938 2011-01-13 Jeff Law <law@redhat.com>
6940 PR rtl-optimization/39077
6941 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
6942 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
6943 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
6944 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
6945 * gcse.c (prune_insertions_deletions): New function.
6946 (compute_pre_data): Use it.
6948 2011-01-13 Dodji Seketeli <dodji@redhat.com>
6951 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
6953 (prune_unused_types_mark): Use it.
6955 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
6957 PR rtl-optimization/45352
6958 * sel-sched.c: Update copyright years.
6959 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
6960 in the advancing loop when we have issued issue_rate insns.
6962 2011-01-12 Richard Henderson <rth@redhat.com>
6964 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
6965 (TARGET_MD_ASM_CLOBBERS): New.
6967 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
6968 (TARGET_DELEGITIMIZE_ADDRESS): New.
6970 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
6971 (clzsi2, *bsch): New patterns.
6973 * config/mn10300/mn10300.md (INT): New mode iterator.
6974 (*mov<INT>_clr): New pattern, and peep2 to generate it.
6976 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
6977 flag_split_wide_types.
6979 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
6980 (mn10300_trampoline_init): Rewrite without a template, an immediate
6981 load and a direct branch.
6982 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
6984 2011-01-12 Anatoly Sokolov <aesok@post.ru>
6986 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6987 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
6988 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
6989 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6991 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
6994 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
6997 2011-01-12 Jan Hubicka <jh@suse.cz>
7000 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7001 (PLUGIN_COND_CLOSE): New macro.
7002 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7004 2011-01-12 Richard Guenther <rguenther@suse.de>
7007 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7008 register variables in a MEM_REF.
7010 2011-01-12 Joseph Myers <joseph@codesourcery.com>
7012 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7013 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7014 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7015 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7016 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7017 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7018 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7019 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7020 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7021 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7022 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7023 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7024 * config/gnu-user.h: New. Copied from linux.h.
7025 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7026 GNU_USER_TARGET_STARTFILE_SPEC.
7027 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7028 GNU_USER_TARGET_ENDFILE_SPEC.
7029 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7030 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7031 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7032 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7033 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7034 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7035 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7036 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7037 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7038 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7039 * config/arm/linux-eabi.h (CC1_SPEC): Use
7040 GNU_USER_TARGET_CC1_SPEC.
7041 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7042 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7043 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7044 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7045 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7046 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7047 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7048 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7050 2011-01-12 Richard Guenther <rguenther@suse.de>
7053 * doc/invoke.texi (ffast-math): Document it is turned on
7056 2011-01-12 Jan Hubicka <jh@suse.cz>
7058 PR tree-optimization/47233
7059 * opts.c (common_handle_option): Disable ipa-reference with profile
7062 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7064 * c-parser.c (c_parser_objc_at_property_declaration): Improved
7067 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7069 * c-parser.c (c_lex_one_token): Updated and reindented some
7070 comments. No changes in code.
7072 2011-01-11 Ian Lance Taylor <iant@google.com>
7074 * godump.c (go_output_var): Don't output the variable if there is
7075 already a type with the same name.
7077 2011-01-11 Ian Lance Taylor <iant@google.com>
7079 * godump.c (go_format_type): Don't generate float80.
7081 2011-01-11 Richard Henderson <rth@redhat.com>
7083 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7084 declaration. Rewrite for both speed and size.
7085 (mn10300_address_cost_1): Remove.
7086 (mn10300_register_move_cost): New.
7087 (mn10300_memory_move_cost): New.
7088 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
7089 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
7090 extensions, shifts, BSWAP, CLZ.
7091 (mn10300_wide_const_load_uses_clr): Remove.
7092 (TARGET_REGISTER_MOVE_COST): New.
7093 (TARGET_MEMORY_MOVE_COST): New.
7094 * config/mn10300/mn10300-protos.h: Update.
7095 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7097 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7098 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7099 * config/mn10300/mn10300-protos.h: Update.
7100 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7101 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7102 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7103 (*test_int_bitfield, *test_byte_bitfield): Remove.
7104 (*bit_test, *subreg_bit_test): Remove.
7105 * config/mn10300/predicates.md (const_8bit_operand): Remove.
7107 * config/mn10300/constraints.md ("c"): Rename from "A".
7108 ("A", "D"): New constraint letters.
7109 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7110 (fmssf4, fnmasf4, fnmssf4): Likewise.
7112 * config/mn10300/mn10300.md (isa): New attribute.
7113 (enabled): New attribute.
7115 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7116 (abssf2, negsf2): Define only for hardware fp.
7117 (sqrtsf2): Reformat.
7118 (addsf3, subsf3, mulsf3): Merge expander and insn.
7120 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7121 (DEBUGGER_AUTO_OFFSET): Remove.
7122 (DEBUGGER_ARG_OFFSET): Remove.
7124 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7125 Emit register stores with the same offsets as the hardware.
7126 (mn10300_store_multiple_operation): Don't check that the register
7127 save offsets are monotonic.
7128 * config/mn10300/mn10300-protos.h: Update.
7130 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7132 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7133 in terms of the value on the stack, not the MDR register.
7135 2011-01-11 Jan Hubicka <jh@suse.cz>
7139 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7140 (symbol_alias_set_destroy, symbol_alias_set_contains,
7141 propagate_aliases_backward): Declare.
7142 * lto-streamer-out.c (struct sets): New sturcture.
7143 (trivally_defined_alias): New function.
7144 (output_alias_pair_p): Rewrite.
7145 (output_unreferenced_globals): Fix output of alias pairs.
7146 (produce_symtab): Likewise.
7147 * ipa.c (function_and_variable_visibility): Set weak alias destination
7149 * varasm.c (symbol_alias_set_t): Remove.
7150 (symbol_alias_set_destroy): Export.
7151 (propagate_aliases_forward, propagate_aliases_backward): New functions
7153 (compute_visible_aliases): ... this one; remove.
7154 (trivially_visible_alias): New
7155 (trivially_defined_alias): New.
7156 (remove_unreachable_alias_pairs): Rewrite.
7157 (finish_aliases_1): Reorganize code checking if alias is defined.
7158 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7161 2011-01-11 Richard Guenther <rguenther@suse.de>
7163 PR tree-optimization/46076
7164 * tree-ssa.c (useless_type_conversion_p): Conversions from
7165 unprototyped to empty argument list function types are useless.
7167 2011-01-11 Richard Guenther <rguenther@suse.de>
7170 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7171 volatile MEMs as MEM_READONLY_P.
7173 2011-01-11 Richard Guenther <rguenther@suse.de>
7175 PR tree-optimization/47239
7176 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7178 2011-01-11 Jeff Law <law@redhat.com>
7180 PR tree-optimization/47086
7181 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7182 IVs from statements that might throw.
7184 2011-01-10 Jan Hubicka <jh@suse.cz>
7187 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7189 2011-01-10 Jan Hubicka <jh@suse.cz>
7192 * profile.c (read_profile_edge_counts): Ignore profile inconistency
7193 when correcting profile.
7195 2011-01-10 Jan Hubicka <jh@suse.cz>
7198 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7200 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7201 Restore DECL_FINI_PRIORITY.
7203 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7205 * doc/gimple.texi: Fix quoting of multi-word return values in
7206 @deftypefn statements. Ensure presence of return value. Wrap
7207 overlong @deftypefn lines.
7208 (is_gimple_operand, is_gimple_min_invariant_address): Remove
7209 descriptions of removed functions.
7210 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7211 of multi-word return value in @deftypefn statement.
7213 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7215 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7216 (Conditional Expressions, Logical Operators)
7217 (Statement and operand traversals): Do not indent smallexample
7218 code. Fix duplicate function argument in example.
7220 2011-01-10 Jeff Law <law@redhat.com>
7222 PR tree-optimization/47141
7223 * ipa-split.c (split_function): Handle case where we are
7224 returning a value and the return block has a virtual operand phi.
7226 2011-01-10 Jan Hubicka <jh@suse.cz>
7228 PR tree-optimization/47234
7229 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
7230 (pass_feedback_split_functions): Declare.
7231 * passes.c (init_optimization_passes): Add ipa-split as subpass of
7233 * ipa-split.c (gate_split_functions): Update comments; disable
7234 split-functions for profile_arc_flag and branch_probabilities.
7235 (gate_feedback_split_functions): New function.
7236 (execute_feedback_split_functions): New function.
7237 (pass_feedback_split_functions): New global var.
7239 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
7242 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
7243 calling gimple_call_set_cannot_inline.
7245 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
7247 * config/darwin-sections.def: Remove unused section.
7249 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
7252 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
7254 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
7257 * c-parser.c (c_parser_declaration_or_fndef): Improved
7260 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
7262 * config/i386/winnt.c (i386_pe_start_function): Make sure
7263 to switch back to function's section.
7265 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
7269 * plugin.c: Move include of dlfcn.h from here...
7270 * system.h: ... to here.
7272 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7274 * doc/cpp.texi (C++ Named Operators): Fix markup for header
7276 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
7277 two extra empty pages in PDF output.
7279 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
7282 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
7283 for error recovery purposes behave as if it was not specified so
7284 that the default type is usd.
7286 2011-01-07 Jan Hubicka <jh@suse.cz>
7288 PR tree-optmization/46469
7289 * ipa.c (function_and_variable_visibility): Clear needed flags on
7290 nodes with external decls; handle weakrefs merging correctly.
7292 2011-01-07 Joseph Myers <joseph@codesourcery.com>
7294 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
7297 2011-01-07 Jan Hubicka <jh@suse.cz>
7299 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
7300 and no longer claim that gold is required for linker plugin.
7301 * configure: Regenerate.
7302 * gcc.c (PLUGIN_COND): New macro.
7303 (LINK_COMMAND_SPEC): Use it.
7304 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
7305 * config.in (HAVE_LTO_PLUGIN): New.
7306 * configure.ac (--with-lto-plugin): New parameter; autodetect
7309 2011-01-07 Jan Hubicka <jh@suse.cz>
7311 PR tree-optimization/46367
7312 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
7313 when we can update original.
7314 (cgraph_mark_inline_edge): Sanity check.
7315 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
7317 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7319 * config/spu/spu.h (ASM_COMMENT_START): Define.
7321 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
7325 (SWITCH_KEEP_FOR_GCC): Likewise.
7326 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
7327 (do_spec_1): Handle "%>".
7329 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
7331 2011-01-07 Jakub Jelinek <jakub@redhat.com>
7334 * config/i386/i386.c (ix86_delegitimize_address): If
7335 simplify_gen_subreg fails, return orig_x.
7338 * value-prof.c (gimple_stringop_fixed_value): Handle
7339 lhs of the call properly.
7341 2011-01-07 Jan Hubicka <jh@suse.cz>
7344 * lto-opt.c (lto_reissue_options): Set flag_shlib.
7346 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7348 * target.def (function_switched_text_sections): New hook.
7349 * doc/tm.texi: Regenerated.
7350 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7351 * final.c (default_function_switched_text_sections): New.
7352 (final_scan_insn): Call function_switched_text_sections when a
7353 mid-function section change occurs.
7354 * output.h (default_function_switched_text_sections): Declare.
7355 * config/darwin-protos.h (darwin_function_switched_text_sections):
7357 * config/darwin.c (darwin_function_switched_text_sections): New.
7358 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7360 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7362 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
7363 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
7364 the secondary code fragment when outputting for DWARF == 2.
7366 2011-01-07 Anatoly Sokolov <aesok@post.ru>
7368 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7369 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
7371 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
7372 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7374 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
7377 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
7378 when it is not empty.
7380 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
7383 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
7384 (case ${target}): Add btver1.
7385 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7386 -march=native recognize btver1 processors.
7387 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7388 btver1 def_and_undef
7389 * config/i386/i386.c (struct processor_costs btver1_cost): New
7391 (m_BTVER1): New definition.
7392 (m_AMD_MULTIPLE): Includes m_BTVER1.
7393 (initial_ix86_tune_features): Add btver1 tune.
7394 (processor_target_table): Add btver1 entry.
7395 (static const char *const cpu_names): Add btver1 entry.
7396 (software_prefetching_beneficial_p): Add btver1.
7397 (ix86_option_override_internal): Add btver1 instruction sets.
7398 (ix86_issue_rate): Add btver1.
7399 (ix86_adjust_cost): Add btver1.
7400 * config/i386/i386.h (TARGET_BTVER1): New definition.
7401 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
7402 (enum processor_type): Add PROCESSOR_BTVER1.
7403 * config/i386/i386.md (define_attr "cpu"): Add btver1.
7405 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7408 * config/i386/i386.c (legitimize_tls_address)
7409 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
7410 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
7411 (tls_initial_exec_64_sun): New pattern.
7413 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
7415 * doc/invoke.texi (Overall Options): Improve wording and markup
7416 of the description of -wrapper.
7418 2011-01-06 Joseph Myers <joseph@codesourcery.com>
7420 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
7421 rdynamic, threads): New Driver options.
7423 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7426 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
7427 if coming from .tdata.
7428 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7430 2011-01-06 Jan Hubicka <jh@suse.cz>
7433 * collect2.c (main): Do not enable LTOmode when plugin is active.
7435 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7438 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
7439 --version output if supported.
7440 * configure: Regenerate.
7442 2011-01-06 Joseph Myers <joseph@codesourcery.com>
7444 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
7447 2011-01-06 Jakub Jelinek <jakub@redhat.com>
7450 * c-convert.c (convert): When converting a complex expression
7451 other than COMPLEX_EXPR to a different complex type, ensure
7452 c_save_expr is called instead of save_expr, unless in_late_binary_op.
7453 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
7454 when converting COMPLEX_TYPE.
7456 2011-01-06 Ira Rosen <irar@il.ibm.com>
7458 PR tree-optimization/47139
7459 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
7460 only the last reduction value is used outside the loop. Update
7463 2011-01-05 Joseph Myers <joseph@codesourcery.com>
7465 * config/rtems.opt: New.
7466 * config.gcc (*-*-rtems*): Use rtems.opt.
7468 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
7470 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
7471 processors do not support 3DNow instructions.
7473 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7475 * config/spu/spu.c (spu_option_override): Set parameter
7476 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
7478 2011-01-05 Jan Hubicka <jh@suse.cz>
7480 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
7481 at the command line.
7483 2011-01-05 Martin Jambor <mjambor@suse.cz>
7486 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
7487 deltas on streamed outgoing edges.
7488 (output_node_opt_summary): Output info for outgoing edges only when
7489 the node is in new parameter set.
7490 (output_cgraph_opt_summary): New parameter set, passed to the two
7491 aforementioned functions. Update its forward declaration and its
7494 2011-01-05 Tom Tromey <tromey@redhat.com>
7496 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
7497 operator to c_finish_omp_atomic.
7498 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
7499 (build_unary_op): Update.
7500 (build_modify_expr): Update.
7501 (build_asm_expr): Update.
7503 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7505 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
7506 newly inserted insns.
7508 (spu_emit_branch_hint): Likewise.
7509 (insert_hbrp_for_ilb_runout): Likewise.
7510 (spu_machine_dependent_reorg): Call df_finish_pass after
7511 schedule_insns returns.
7513 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7515 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
7517 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
7519 PR tree-optimization/47005
7520 * tree-sra.c (struct access): Add 'non_addressable' bit.
7521 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
7522 (decide_one_param_reduction): Return 0 if the parameter is passed by
7523 reference and one of the accesses in the group is non_addressable.
7525 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
7527 PR tree-optimization/47056
7528 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
7529 (mark_load): Likewise. Handle FUNCTION_DECL specially.
7530 (mark_store): Likewise. Pass STMT to ipa_record_reference.
7532 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
7534 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
7535 initializer. Skip view conversions from aggregate types.
7537 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
7540 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
7542 2011-01-04 Philipp Thomas <pth@suse.de>
7544 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
7547 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7549 * function.c (thread_prologue_and_epilogue_insns): Do not crash
7550 on empty epilogue sequences.
7552 2011-01-04 Joseph Myers <joseph@codesourcery.com>
7554 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
7555 non-static): New Driver options.
7557 2011-01-04 Jie Zhang <jie@codesourcery.com>
7560 * gcc.c (default_compilers[]): Set combinable field to 0
7561 for all assembly languages.
7563 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
7565 * config/mips/loongson3a.md: New file.
7566 * config/mips/mips.md: Include loongson3a.md.
7567 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
7570 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
7573 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
7574 instead of convert_memory_address_addr_space on the base expression.
7576 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7578 * config/spu/spu.c (spu_option_override): Update error text
7579 for bad -march= / -mtune= values.
7581 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7583 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
7584 if branch-hint optimization will be performed.
7586 2011-01-03 Jakub Jelinek <jakub@redhat.com>
7588 PR tree-optimization/47148
7589 * ipa-split.c (split_function): Convert arguments to
7590 DECL_ARG_TYPE if possible.
7592 PR tree-optimization/47155
7593 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
7596 PR rtl-optimization/47157
7597 * combine.c (try_combine): If undobuf.other_insn becomes
7598 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
7599 and set *new_direct_jump_p too.
7601 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
7603 PR tree-optimization/47021
7604 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
7606 2011-01-03 Jakub Jelinek <jakub@redhat.com>
7608 * gcc.c (process_command): Update copyright notice dates.
7609 * gcov.c (print_version): Likewise.
7610 * gcov-dump.c (print_version): Likewise.
7611 * mips-tfile.c (main): Likewise.
7612 * mips-tdump.c (main): Likewise.
7614 2011-01-03 Martin Jambor <mjambor@suse.cz>
7616 PR tree-optimization/46801
7617 * tree-sra.c (type_internals_preclude_sra_p): Check whether
7618 aggregate fields start at byte boundary instead of the bit-field flag.
7620 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
7623 * gcc.c (main): Revert revision 168407.
7625 2011-01-03 Martin Jambor <mjambor@suse.cz>
7627 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
7629 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7631 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
7632 vector optab to expand vector/scalar shift, update gimple to vector.
7634 2011-01-03 Martin Jambor <mjambor@suse.cz>
7636 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
7639 2011-01-03 Martin Jambor <mjambor@suse.cz>
7641 PR tree-optimization/46984
7642 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
7644 (cgraph_create_indirect_edge): Fixed line length.
7645 (cgraph_indirect_call_info): Declare.
7646 (cgraph_make_edge_direct) Update declaration.
7647 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
7648 (cgraph_create_indirect_edge): Use it.
7649 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
7651 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
7652 the new thunk_delta representation.
7653 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
7655 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
7656 (ipa_read_indirect_edge_info): Likewise.
7657 * lto-cgraph.c (output_edge_opt_summary): New function.
7658 (output_node_opt_summary): Call it on all outgoing edges.
7659 (input_edge_opt_summary): New function.
7660 (input_node_opt_summary): Call it on all outgoing edges.
7662 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
7665 * gcc.c (main): Don't check have_o when settting combine_inputs.
7667 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
7669 * regrename.c: Add general comment describing the pass.
7670 (struct du_head): Remove 'length' field.
7671 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
7672 (regrename_optimize): Do not sort chains. Rework comments, add others.
7673 Force renaming to the preferred class (if any) in the first pass and do
7674 not consider registers that belong to it in the second pass.
7675 (create_new_chain): Do not set 'length' field.
7676 (scan_rtx_reg): Likewise.
7678 2011-01-02 Jakub Jelinek <jakub@redhat.com>
7680 PR tree-optimization/47140
7681 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
7682 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
7685 PR rtl-optimization/47028
7686 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
7687 parm_birth_insn instead of at the beginning of first bb.
7689 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
7691 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
7692 Remove the word "see" before "@pxref".
7693 * doc/rtl.texi: Remove the word "see" before "@pxref".
7695 2011-01-01 Jan Hubicka <jh@suse.cz>
7697 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
7700 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
7703 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
7706 Copyright (C) 2011 Free Software Foundation, Inc.
7708 Copying and distribution of this file, with or without modification,
7709 are permitted in any medium without royalty provided the copyright
7710 notice and this notice are preserved.