1 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2 Richard Sandiford <rdsandiford@googlemail.com>
6 * optabs.h (simplify_expand_binop): Declare.
7 * optabs.c (simplify_expand_binop): Make global.
8 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
9 endian targets if the source cannot be exactly covered by word
12 2012-01-17 Jakub Jelinek <jakub@redhat.com>
15 * hard-reg-set.h (struct hard_reg_set_container): New type.
16 * target.h (struct hard_reg_set_container): Forward declare.
17 * target.def (set_up_by_prologue): New target hook.
18 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
19 * doc/tm.texi: Regenerated.
20 * function.c (thread_prologue_and_epilogue_insns): Change
21 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
22 Call targetm.set_up_by_prologue on it.
23 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
24 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
26 2012-01-17 Nick Clifton <nickc@redhat.com>
28 * config/rx/rx.c (rx_can_use_simple_return): New function.
29 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
30 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
32 2012-01-17 Richard Guenther <rguenther@suse.de>
35 * expr.c (expand_assignment): Take address-space information
36 from the address operand of MEM_REF and TARGET_MEM_REF.
37 (expand_expr_real_1): Likewise.
39 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
42 reload dump is requested.
44 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
47 * trans-mem.c (requires_barrier): Call may_be_aliased.
49 2012-01-17 Jakub Jelinek <jakub@redhat.com>
51 PR tree-optimization/51877
52 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
53 call arguments and fndecls compare equal, instead return false if they
54 don't. Return true only if lhs1 and lhs2 are either both NULL, or
55 both SSA_NAMEs that are valueized the same, or they satisfy
58 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
60 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
62 * configure: Regenerate.
64 2012-01-16 Jan Hubicka <jh@suse.cz>
68 * convert.c (convert_to_integer): Use fold_convert for
69 converting an INTEGER_CST to integer type.
71 2012-01-16 Jason Merrill <jason@redhat.com>
74 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
76 2012-01-16 Jakub Jelinek <jakub@redhat.com>
79 * config/s390/s390.c (s390_chunkify_start): Don't skip
80 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
81 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
82 If insn is followed by NOTE_INSN_VAR_LOCATION or
83 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
84 Don't use location of note insns.
86 PR tree-optimization/51865
87 * tree-inline.c (tree_function_versioning): Call remap_decl
88 on DECL_RESULT whenever it has VOID_TYPE_P type.
90 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
92 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
93 for calls to locally-binding MIPS16 functions if only the return
96 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
97 Richard Sandiford <rdsandiford@googlemail.com>
99 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
100 (SYMBOL_32_HIGH): Likewise.
101 (mips_output_tls_reloc_directive): Declare.
102 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
103 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
104 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
105 (mips_lo_relocs, mips_hi_relocs): Make extern.
106 (mips16_stub_function): Move up file.
107 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
108 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
109 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
110 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead
111 of SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1
113 (mips_get_tp): Add MIPS16 support.
114 (mips_legitimize_tls_address): Remove MIPS16 sorry().
115 Generalize DTPREL and TPREL handling.
116 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
117 Add MIPS16 TLS support.
118 (mips_output_tls_reloc_directive): New function.
119 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
120 * config/mips/predicates.md (symbolic_operand_with_high)
121 (tls_reloc_operand): New predicates.
122 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
123 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
124 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
125 (*unshifted_high): New instruction. Use it for MIPS16
127 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
128 (*tls_get_tp_mips16_call_<mode>): Likewise.
130 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
132 PR rtl-optimization/51821
133 * recog.c (peep2_find_free_register): Determine clobbered registers
136 2012-01-14 Denis Chertykov <chertykov@gmail.com>
139 * config/avr/avr-protos.h: Revert change of 2012-01-09.
140 * config/avr/avr.c: Likewise.
141 * config/avr/avr.h: Likewise.
143 2012-01-13 Ian Lance Taylor <iant@google.com>
146 * tree.h (TYPE_QUALS): Add cast to int.
147 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
149 2012-01-13 Ian Lance Taylor <iant@google.com>
151 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
152 comparing param_index to VEC_length result.
154 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
156 * c-decl.c: Do not include tree-mudflap.h
157 * tree-optimize.c: Likewise.
158 * Makefile.in: Update dependencies.
160 2012-01-13 Richard Guenther <rguenther@suse.de>
163 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
164 variable-sized result always use RSO.
166 2012-01-12 DJ Delorie <dj@redhat.com>
168 * cfgexpand.c (convert_debug_memory_address): Allow any valid
169 pointer type, not just the default pointer type.
171 2012-01-09 Richard Henderson <rth@redhat.com>
172 Denis Chertykov <chertykov@gmail.com>
175 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
176 * config/avr/avr.c (avr_can_eliminate): Simplify.
177 (avr_initial_elimination_offset): Likewise.
178 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
179 (expand_epilogue): Likewise.
180 (avr_legitimize_address): Gut.
181 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
182 (avr_hard_regno_nregs): New.
183 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
184 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
185 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
186 add soft frame pointer.
187 (CALL_USED_REGISTERS): Likewise.
188 (REG_CLASS_CONTENTS): Likewise.
189 (REGISTER_NAMES): Likewise.
190 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
191 (HARD_FRAME_POINTER_REGNUM): New.
192 (FRAME_POINTER_REGNUM): Use soft frame pointer.
193 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
194 remove the HARD_FRAME_POINTER self-elimination.
196 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
199 * config/avr/avr.c (avr_encode_section_info): Test for absence of
200 DECL_EXTERNAL when checking for initializers of progmem variables.
202 2012-01-12 Ira Rosen <irar@il.ibm.com>
204 PR tree-optimization/51799
205 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
206 that the last operation is a type demotion.
208 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
210 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
211 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
213 2012-01-11 Jakub Jelinek <jakub@redhat.com>
216 * combine.c (distribute_notes): If i3 is a noreturn call,
217 allow old_size to be equal to args_size and make sure the
218 noreturn call gets REG_ARGS_SIZE note.
219 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
220 on noreturn calls even when the delta is 0.
222 2012-01-11 Nathan Sidwell <nathan@acm.org>
224 * gcov.c (STRING_SIZE): Remove.
225 (generate_results): Erase annotations for source files with no
226 coverage information.
228 (output_lines): Use it.
230 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
232 * gimple.h (gimplify_body): Remove first argument.
233 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
234 pointer set here, instead just pass DATA to walk_tree.
235 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
236 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
237 (unvisit_body): Likewise, but with unmark_visited.
238 (gimplify_body): Remove BODY_P argument and adjust.
239 (gimplify_function_tree): Adjust call to gimplify_body.
240 * omp-low.c (finalize_task_copyfn): Likewise.
242 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
244 * tree.h (build_function_decl_skip_args): Add boolean parameter.
245 (build_function_type_skip_args): Delete.
246 * tree.c (build_function_type_skip_args): Make static and add
247 SKIP_RETURN parameter. Fix thinko in the handling of variants.
248 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
249 pass it to build_function_type_skip_args.
250 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
251 (tree_function_versioning): Likewise.
252 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
253 build_function_decl_skip_args.
254 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
255 and pass it to build_function_decl_skip_args/tree_function_versioning.
256 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
257 * ipa-inline-transform.c (save_inline_function_body): Likewise.
258 * trans-mem.c (ipa_tm_create_version): Likewise.
259 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
260 * tree-inline.c (declare_return_variable): Remove always-true test.
261 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
262 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
263 * ipa-split.c (split_function): Skip the return value for the split
264 part if it doesn't return.
266 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
268 PR tree-optimization/49642
269 * ipa-split.c (forbidden_dominators): New variable.
270 (check_forbidden_calls): New function.
271 (dominated_by_forbidden): Likewise.
272 (consider_split): Check for forbidden dominators.
273 (execute_split_functions): Initialize and free forbidden
274 dominators info; call check_forbidden_calls.
276 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
278 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
280 2012-01-11 Nick Clifton <nickc@redhat.com>
282 * config/rx/rx.md (return): Define pattern.
284 2012-01-11 Richard Guenther <rguenther@suse.de>
286 * doc/extend.texi (malloc attribute): Adjust according to
289 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
290 Patrick Marlier <patrick.marlier@gmail.com>
293 * trans-mem.c (get_cg_data): Traverse aliases if requested.
294 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
295 (ipa_tm_note_irrevocable): Same.
296 (ipa_tm_scan_irr_block): Same.
297 (ipa_tm_decrement_clone_counts): Same.
298 (ipa_tm_scan_irr_function): Same.
299 (ipa_tm_create_version_alias): Same.
300 (ipa_tm_create_version): Same.
301 (ipa_tm_transform_calls_redirect): Same.
302 (ipa_tm_transform_calls): Same.
303 (ipa_tm_transform_transaction): Same.
304 (ipa_tm_execute): Same.
306 2012-01-10 Richard Guenther <rguenther@suse.de>
309 * opts.c (common_handle_option): Handle -Werror.
311 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
313 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
316 2012-01-10 Jason Merrill <jason@redhat.com>
318 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
321 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
324 supports R_386_TLS_GD_PLT reloc.
325 (gcc_cv_as_ix86_tlsldmplt): Check if linker
326 supports R_386_TLS_LDM_PLT reloc.
327 * configure: Regenerate.
328 * config.in: Regenerate.
330 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
333 Extend __pgmx semantics to linearize memory.
334 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
335 determine if code comes inline or from libgcc.
336 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
337 (movmem_qi, movmem_qi): Set constraint #2 to "n".
338 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
339 (movmemx_qi, movmemx_hi): New insns.
340 (xload_<mode>_libgcc): Rewrite to new insn condition.
341 (xload_<mode>): Remove insns.
342 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
343 cases that don't satisfy avr_xload_libgcc_p().
344 (avr_addr_space_convert): Allow converting in any direction.
345 (avr_addr_space_subset_p): Return always true.
346 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
347 (avr_emit_movmemhi): Ditto.
348 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
349 (avr_out_movmem): Ditto.
350 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
351 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
352 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
353 (avr_encode_section_info): Encode 'progmem' in symbol flags.
354 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
356 2012-01-10 Richard Guenther <rguenther@suse.de>
358 PR tree-optimization/50913
359 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
360 Require data-refs to be representable by Graphite with respect
363 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
365 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
366 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
368 2012-01-10 Tom de Vries <tom@codesourcery.com>
370 PR rtl-optimization/51271
371 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
372 handling annulled branch.
374 2012-01-10 Richard Henderson <rth@redhat.com>
376 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
377 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
378 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
379 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
380 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
381 arm_expand_vec_perm_const): New.
382 * config/arm/arm-protos.h: Update.
383 * config/arm/neon.md (UNSPEC_VCONCAT): New.
384 (*neon_vswp<VDQX>): New.
385 (neon_vcombine<VDX>): Use neon_split_vcombine.
386 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
387 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
390 2012-01-10 Richard Henderson <rth@redhat.com>
392 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
393 use it if reload_completed.
394 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
395 arm_output_asm_insn, arm_process_output_memory_barrier,
396 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
397 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
398 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
399 arm_process_output_sync_insn, arm_output_sync_insn,
400 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
401 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
402 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
403 (emit_unlikely_jump): New.
404 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
405 (arm_split_atomic_op): New.
406 * config/arm/arm-protos.h: Update.
407 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
408 (struct arm_sync_generator): Remove.
409 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
410 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
411 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
412 (VUNSPEC_LL, VUNSPEC_SC): New.
413 (sync_result, sync_memory, sync_required_value, sync_new_value,
414 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
415 (attr length): Don't use arm_sync_loop_insns.
416 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
417 (movsfcc, movdfcc): Likewise.
418 * config/arm/constraints.md (Ua): New.
419 * config/arm/prediates.md (mem_noofs_operand): New.
420 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
421 (sync_clobber, sync_t2_reqd): Remove.
422 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
423 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
424 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
425 (arm_sync_compare_and_swap<SIDI>): Remove.
426 (arm_sync_compare_and_swap<NARROW>): Remove.
427 (arm_sync_lock_test_and_set<SIDI>): Remove.
428 (arm_sync_lock_test_and_set<NARROW>): Remove.
429 (arm_sync_new_<syncop><SIDI>): Remove.
430 (arm_sync_new_<syncop><NARROW>): Remove.
431 (arm_sync_new_nand<SIDI>): Remove.
432 (arm_sync_new_nand<NARROW>): Remove.
433 (arm_sync_old_<syncop><SIDI>): Remove.
434 (arm_sync_old_<syncop><NARROW>): Remove.
435 (arm_sync_old_nand<SIDI>): Remove.
436 (arm_sync_old_nand<NARROW>): Remove.
437 (*memory_barrier): Merge arm_output_memory_barrier.
438 (atomic_compare_and_swap<QHSD>): New.
439 (atomic_compare_and_swap<NARROW>_1): New.
440 (atomic_compare_and_swap<SIDI>_1): New.
441 (atomic_exchange<QHSD>): New.
442 (cas_cmp_operand, cas_cmp_str): New.
443 (atomic_op_operand, atomic_op_str): New.
444 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
445 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
446 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
447 (arm_load_exclusive<NARROW>): New.
448 (arm_load_exclusivesi, arm_load_exclusivedi): New.
449 (arm_store_exclusive<QHSD>): New.
451 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
453 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
454 reload patterns if -mvsx-scalar-memory.
456 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
457 generated, even -mno-vsx-scalar-double was used.
458 (vsx_xscvdpsp_scalar): Likewise.
459 (vsx_xscvspdp_scalar2): Likewise.
461 2012-01-09 Tom de Vries <tom@codesourcery.com>
462 Andrew Pinski <apinski@cavium.com>
465 * reorg.c (fill_slots_from_thread): Don't speculate
468 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
470 * sched-int.h (bb_note): Move to...
471 * basic-block.h: ...here.
472 * haifa-sched.c (bb_note): Move to...
474 * function.c (next_block_for_reg): New function.
475 (move_insn_for_shrink_wrap): Likewise.
476 (prepare_shrink_wrap): Rewrite to use the above.
478 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
480 * gimple.c (is_gimple_non_addressable): Remove.
481 * gimple.h: Remove is_gimple_non_addressable.
482 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
483 is_gimple_non_addressable.
484 * trans-mem.c (expand_assign_tm): Same.
486 2012-01-09 Richard Guenther <rguenther@suse.de>
488 PR tree-optimization/51775
489 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
490 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
492 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
494 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
496 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
498 2012-01-09 Richard Guenther <rguenther@suse.de>
500 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
502 2012-01-08 Jan Hubicka <jh@suse.cz>
504 PR tree-optimize/51680
505 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
506 on when known_vals needs to be computed; cleanup.
508 2012-01-08 Jan Hubicka <jh@suse.cz>
510 PR tree-optimize/51694
511 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
513 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
515 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
516 for -std=c++98 and -std=c++11 too.
518 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
520 * cfgloop.c (cancel_loop): Add free() of bbs array.
522 2012-01-07 Jan Hubicka <jh@suse.cz>
524 PR tree-optimization/51600
525 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
526 that benefits small functions.
528 2012-01-07 Jan Hubicka <jh@suse.cz>
530 * ipa-inline.c (want_inline_small_function_p): Fix formating.
532 2012-01-07 Jan Hubicka <jh@suse.cz>
534 PR tree-optimization/51680
535 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
536 whose inlining reduce unit size.
538 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
541 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
542 Add canonical node to containing_mem chain after the non-canonical
543 one, even if there weren't any locs to propagate.
544 (remove_useless_values): Keep only canonical values.
545 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
546 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
547 canonicalize mem_chain elements that are not discarded.
549 2012-01-06 Jakub Jelinek <jakub@redhat.com>
552 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
553 before emitting functions.
555 PR gcov-profile/50127
556 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
557 clear_aux_for_blocks.
559 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
562 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
564 2012-01-06 Arnaud Charlet <charlet@adacore.com>
566 * c-decl.c (ext_block): Moved up.
567 (collect_all_refs, for_each_global_decl): Take ext_block into account.
569 2012-01-06 Han Shen <shenhan@google.com>
571 Translate built-in include paths for sysroot.
572 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
573 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
575 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
576 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
578 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
579 control whether sysroot should be prepended to gxx include dir.
581 * configure: Regenerate.
583 2012-01-06 Torvald Riegel <triegel@redhat.com>
585 PR rtl-optimization/51771
586 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
587 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
589 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
591 PR tree-optimization/51315
592 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
593 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
595 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
598 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
599 for shrp pattern. Correctly handle and fixup shift variable.
600 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
602 2012-01-05 Jakub Jelinek <jakub@redhat.com>
605 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
606 note when !ACCUMULATE_OUTGOING_ARGS.
608 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
610 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
612 (extract_range_from_unary_expr_1): Avoid useless computations.
614 2012-01-05 Jakub Jelinek <jakub@redhat.com>
616 PR rtl-optimization/51767
617 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
618 of jump_block and add an extra edge for degenerated asm gotos.
621 * stmt.c (check_unique_operand_names): Don't ICE during error
622 reporting if i is from labels chain.
625 * profile.c (branch_prob): Split bbs that have exit edge
626 and need a fake entry edge too.
628 2012-01-05 Jan Hubicka <jh@suse.cz>
631 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
634 2012-01-05 Richard Guenther <rguenther@suse.de>
637 * tree-streamer-out.c (write_ts_optimization): New function.
638 (streamer_write_tree_body): Call it.
639 * tree-streamer-in.c (lto_input_ts_optimization): New function.
640 (streamer_read_tree_body): Call it.
641 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
643 2012-01-05 Jakub Jelinek <jakub@redhat.com>
646 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
647 * gimplify.c (gimplify_cleanup_point_expr): Save and set
648 in_cleanup_point_expr before gimplify_stmt call and restore it
650 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
651 in_cleanup_point_expr is false.
653 2012-01-05 Richard Guenther <rguenther@suse.de>
656 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
658 * toplev.c (process_options): Reject combining mudflap and LTO.
659 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
661 2012-01-05 Richard Guenther <rguenther@suse.de>
663 PR tree-optimization/51760
664 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
666 (bit_value_unop): Handle UNDEFINED operands.
667 (bit_value_binop): Likewise.
669 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
671 * config/avr/avr.c (avr_replace_prefix): Remove.
672 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
673 (avr_asm_function_rodata_section): Ditto.
674 (avr_asm_select_section): Ditto.
676 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
678 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
681 2012-01-05 Jakub Jelinek <jakub@redhat.com>
684 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
685 calls that have any non-fake successor edges.
688 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
690 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
692 PR tree-optimization/51624
693 * tree-sra.c (build_ref_for_model): When replicating a chain of
694 COMPONENT_REFs, stop as soon as the offset would become negative.
696 2012-01-04 Jakub Jelinek <jakub@redhat.com>
699 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
700 in .debug_loc on the floor.
702 2012-01-04 Andrew Pinski <apinski@cavium.com>
704 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
706 2012-01-04 Andrew Pinski <apinski@cavium.com>
707 Adam Nemet <anemet@caviumnetworks.com>
709 * config/mips/mips.md (size): Add SI and DI.
710 (SIZE): New mode attribute.
711 (U): New code attribute.
712 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
713 (mips_lbux_<mode>): Delete.
714 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
715 (mips_lhx): Use gen_mips_lhx_extsi.
716 (mips_lhx_<mode>): Delete.
718 (mips_l<size>x): New expand.
719 (mips_lwx_<mode>): Delete.
720 (mips_l<GPR:size>x_<P:mode>): New pattern.
721 (*mips_lw<u>x_<P:mode>_ext): Likewise.
722 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
723 * config/mips/mips.c (mips_lx_address_p): New function.
724 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
725 (dsp64): New availability predicate.
726 (mips_builtins): Add an entry for __builtin_mips_ldx.
727 * config/mips/mips.h (ISA_HAS_LBX): New define.
728 (ISA_HAS_LBUX): Likewise.
729 (ISA_HAS_LHX): Likewise.
730 (ISA_HAS_LHUX): Likewise.
731 (ISA_HAS_LWX): Likewise.
732 (ISA_HAS_LWUX): Likewise.
733 (ISA_HAS_LDX): Likewise.
734 * doc/extend.texi (__builtin_mips_ldx): Document.
736 2012-01-04 Tristan Gingold <gingold@adacore.com>
738 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
739 when long pointers are used.
740 * config.build (*-*-*vms*): Handle all OpenVMS targets.
741 (alpha64-dec-*vms*, alpha*-dec-*vms*)
742 (ia64-hp-*vms*): Remove.
743 * config/vms/xm-vms64.h: Delete.
745 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
748 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
750 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
752 * opts.c (finish_options): Remove duplicate sorry.
754 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
757 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
760 2012-01-04 Richard Guenther <rguenther@suse.de>
763 * tree.c (size_low_cst): New function.
764 * tree.h (size_low_cst): Declare.
765 * fold-const.c (fold_comparison): Use it to extract the low
766 part of the POINTER_PLUS_EXPR offset.
768 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
770 Fix clearing ZERO_REG
771 * config/avr/avr.md (cc): Add alternative "ldi".
772 (movqi_insn): Use it in cc attribute.
773 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
774 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
775 (output_reload_insisf): Use ZERO_REG to pre-clear register.
777 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
779 * configure: Regenerate.
781 2012-01-04 Richard Guenther <rguenther@suse.de>
783 PR tree-optimization/49651
784 * tree-ssa-structalias.c (type_can_have_subvars): New function.
785 (var_can_have_subvars): Use it.
786 (get_constraint_for_1): Only consider subfields if there can be any.
788 2012-01-03 Jakub Jelinek <jakub@redhat.com>
791 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
792 to its new canonical_cselib_val and the cselib_val was in
793 first_containing_mem chain, but the canonical_cselib_val was not,
794 add the latter into the chain.
795 (cselib_invalidate_mem): Compare canonical_cselib_val of
796 addr_list chain elt with v.
799 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
800 dwarf2out_undef): Allocate e.info using ggc_strdup instead
802 (output_macinfo_op): Don't ggc_strdup fd->filename.
803 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
804 then ggc_strdup it. Don't free inc->info or cur->info.
805 (output_macinfo): Don't free ref->info or file->info.
807 2012-01-03 Ira Rosen <irar@il.ibm.com>
809 PR tree-optimization/51269
810 * tree-vect-loop-manip.c (set_prologue_iterations): Make
811 first_niters a pointer.
812 (slpeel_tree_peel_loop_to_edge): Likewise.
813 (vect_do_peeling_for_loop_bound): Update call to
814 slpeel_tree_peel_loop_to_edge.
815 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
816 here. Remove it from the parameters list.
817 (vect_do_peeling_for_alignment): Update calls and compute
820 2012-01-03 Richard Guenther <rguenther@suse.de>
822 PR tree-optimization/51070
823 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
824 Properly handle calls.
826 2012-01-03 Richard Guenther <rguenther@suse.de>
828 PR tree-optimization/51692
829 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
830 the LHS of allocation stmts.
832 2012-01-03 Olivier Hainque <hainque@adacore.com>
834 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
836 2012-01-03 Olivier Hainque <hainque@adacore.com>
838 * collect2.c (main): In AIX specific computations for vector
839 insertions, use CONST_CAST2 to cast from char ** to const char **.
841 2012-01-03 Richard Guenther <rguenther@suse.de>
844 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
845 the context of a limbo DIE when it does not already exist.
847 2012-01-03 Jakub Jelinek <jakub@redhat.com>
849 PR tree-optimization/51719
850 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
851 but direct call is, clear direct call's lhs and don't add fallthrough
852 edge from dcall_bb to join_bb and PHIs.
854 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
856 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
857 the instructions emitted by the pattern.
858 ("*TDC_insn_<mode>"): Add comment.
860 2012-01-03 Richard Guenther <rguenther@suse.de>
863 * fold-const.c (fold_comparison): Properly canonicalize
864 tree offset and HOST_WIDE_INT bit position.
866 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
868 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
869 operands for extzv pattern.
871 2012-01-02 Jakub Jelinek <jakub@redhat.com>
874 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
877 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
879 * doc/invoke.texi (-flto and related options): Copy-edit.
881 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
883 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
885 2012-01-02 Jakub Jelinek <jakub@redhat.com>
887 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
890 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
892 * expr.h (move_by_pieces_ninsns): Declare.
893 * expr.c (move_by_pieces_ninsns): Make external.
894 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
895 (mips_store_by_pieces_p): Likewise.
896 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
897 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
898 * config/mips/mips.c (mips_move_by_pieces_p): New function.
899 (mips_store_by_pieces_p): Likewise.
901 2012-01-02 Jakub Jelinek <jakub@redhat.com>
903 * passes.c (register_one_dump_file): Free full_name.
905 * reload1.c (reload): Don't allocate reg_max_ref_width here.
906 (calculate_elim_costs_all_insns): Free offsets_at and
907 offsets_known_at at the end and clear the pointers.
909 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
911 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
912 this option introduced in r180739.
914 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
917 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
918 (tmake_file target=avr): Add avr/t-multilib.
920 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
921 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
922 * config/avr/genmultilib.awk: New file.
923 * config/avr/t-multilib: New auto-generated file.
924 * config/avr/multilib.h: New auto-generated file.
925 * config/avr/t-avr (AVR_MCUS): New variable.
927 (s-mlib): Depend on t-multilib.
928 (t-multilib, multilib.h): New dependencies.
929 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
930 (MULTILIB_OPTIONS): Remove.
931 (MULTILIB_MATCHES): Remove.
932 (MULTILIB_DIRNAMES): Remove.
933 (MULTILIB_EXCEPTIONS): Remove:
934 * config/avr/genopt.sh: Don't use hard coded file name;
935 pass AVR_MCUS from t-avr instead.
937 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
939 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
941 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
943 Implement light-weight DImode support.
944 * config/avr/avr-dimode.md: New file.
945 * config/avr/avr.md: Include it.
946 (adjust_len): Add plus64, compare64.
947 (HIDI): Remove code iterator.
948 (code_stdname): New code attribute.
949 (rotx, rotsmode): Remove DI.
950 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
952 * config/avr/avr-protos.h (avr_have_dimode): New.
953 (avr_out_plus64, avr_out_compare64): New.
954 * config/avr/avr.c (avr_out_compare): Handle DImode.
955 (avr_have_dimode): New variable definition and initialization.
956 (avr_out_compare64, avr_out_plus64): New functions.
957 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
958 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
959 (avr_compare_pattern): Skip DImode comparisons.
961 2012-01-02 Revital Eres <revital.eres@linaro.org>
963 * ddg.c (def_has_ccmode_p): New function.
964 (add_cross_iteration_register_deps,
965 create_ddg_dep_from_intra_loop_link): Call it.
967 2012-01-02 Richard Guenther <rguenther@suse.de>
970 * invoke.texi (fassociative-math): Remove spurious paranthesis.
972 2012-01-01 Jakub Jelinek <jakub@redhat.com>
974 * gcc.c (process_command): Update copyright notice dates.
975 * gcov.c (print_version): Likewise.
976 * gcov-dump.c (print_version): Likewise.
977 * mips-tfile.c (main): Likewise.
978 * mips-tdump.c (main): Likewise.
980 2012-01-01 Ira Rosen <irar@il.ibm.com>
982 PR tree-optimization/51704
983 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
984 a use is inside the basic block or loop before accessing its vect info.
986 2012-01-01 Jan Hubicka <jhjh@suse.cz>
988 PR rtl-optimization/51069
989 * cfgloopmanip.c (remove_path): Removing path making irreducible
990 region unconditional makes BB part of the region.
992 2012-01-01 Jakub Jelinek <jakub@redhat.com>
994 PR tree-optimization/51683
995 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
996 calls with side-effects.
997 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
999 Copyright (C) 2012 Free Software Foundation, Inc.
1001 Copying and distribution of this file, with or without modification,
1002 are permitted in any medium without royalty provided the copyright
1003 notice and this notice are preserved.