1 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
5 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7 * tree-dfa.c (create_var_ann): Mark variable as used.
9 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13 notes from other section in hot/cold partitioning even if
14 last_action is -3. Increment call_site_base.
16 PR rtl-optimization/47366
17 * fwprop.c (forward_propagate_into): Return bool. If
18 any changes are made, -fnon-call-exceptions is used and
19 REG_EH_REGION note is present, call purge_dead_edges
20 and return true if it purged anything.
21 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
22 any EH edges were purged.
24 2011-01-21 Jeff Law <law@redhat.com>
26 PR rtl-optimization/41619
27 * caller-save.c (setup_save_areas): Break out code to determine
28 which hard regs are live across calls by examining the reload chains
29 so that it is always used.
30 Eliminate code which checked REG_N_CALLS_CROSSED.
32 2011-01-21 Jakub Jelinek <jakub@redhat.com>
34 PR tree-optimization/47355
35 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
36 NOP has non-debug uses beyond PHIs in new_bb.
38 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
41 * cfgexpand.c (account_used_vars_for_block): Only account vars
42 that are annotated as used.
43 (estimated_stack_frame_size): Don't set TREE_USED.
44 * tree-dfa.c (create_var_ann): Mark variable as used.
46 2011-01-21 Richard Guenther <rguenther@suse.de>
49 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
51 2011-01-21 Richard Guenther <rguenther@suse.de>
53 PR tree-optimization/47365
54 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
55 (vn_reference_lookup_pieces): Adjust.
56 (vn_reference_lookup): Likewise.
57 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
58 (vn_reference_lookup_3): Only look through kills if in
60 (vn_reference_lookup_pieces): Adjust.
61 (vn_reference_lookup): Likewise.
62 (visit_reference_op_load): Likewise.
63 (visit_reference_op_store): Likewise.
64 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
65 (compute_avail): Likewise.
66 (eliminate): Likewise.
68 2011-01-21 Jakub Jelinek <jakub@redhat.com>
70 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
71 DECL_IGNORED_P non-reg vars if they are used.
73 PR tree-optimization/47391
74 * varpool.c (const_value_known_p): Return false if
77 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
80 * config/i386/i386.c (ix86_local_alignment): Handle
81 case for va_list_type_node is nil.
82 (ix86_canonical_va_list_type): Likewise.
84 2011-01-21 Alan Modra <amodra@gmail.com>
86 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
87 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
89 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
91 * config/arm/arm.md (define_attr type): Rename f_load
92 and f_store to f_fpa_load and f_fpa_store. Update.
93 (write_conflict): Deal with rename fallout.
94 (*push_fp_multi): Likewise.
95 * config/arm/fpa.md (f_load): Use f_fpa_load.
96 (f_store): Use f_fpa_store.
97 (*movsf_fpa): Likewise.
98 (*movdf_fpa): Likewise.
99 (*movxf_fpa): Likewise.
100 (*thumb2_movsf_fpa): Likewise.
101 (*thumb2_movdf_fpa): Likewise.
102 (*thumb2_movxf_fpa): Likewise.
103 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
104 f_loadd and f_stored.
105 (*thumb2_movdi_vfp): Likewise.
106 (*thumb2_movsf_vfp): Fix attribute to f_loads.
107 (*thumb2_movsi_vfp): Likewise.
108 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
109 Use f_loads instead of f_load.
110 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
112 2011-01-20 Anatoly Sokolov <aesok@post.ru>
114 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
115 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
116 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
117 (xtensa_mode_dependent_address_p): New function.
118 (constantpool_address_p): Make static. Change return type to bool.
119 Change argument type to const_rtx. Use CONST_INT_P predicate.
121 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
124 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
126 2011-01-20 Jakub Jelinek <jakub@redhat.com>
129 * cfgexpand.c (expand_debug_expr): Instead of generating
130 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
133 2011-01-20 Richard Guenther <rguenther@suse.de>
136 * tree-inline.c (remap_gimple_op_r): Recurse manually for
137 the pointer operand of MEM_REFs.
139 2011-01-20 Jakub Jelinek <jakub@redhat.com>
141 PR tree-optimization/46130
142 * ipa-split.c (consider_split): If return_bb contains non-virtual
143 PHIs other than for retval or if split_function would not adjust it,
146 2011-01-20 Richard Guenther <rguenther@suse.de>
148 PR tree-optimization/47167
149 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
150 Revert previous change, only avoid enumeral type changes.
152 2011-01-19 Dodji Seketeli <dodji@redhat.com>
155 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
156 (gen_scheduled_generic_parms_dies): New functions.
157 (gen_struct_or_union_type_die): Schedule template parameters DIEs
158 generation for the end of CU compilation.
159 (dwarf2out_finish): Generate template parameters DIEs here.
161 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
164 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
165 debug bind stmt on merge edges.
167 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
171 * function.c (instantiate_expr): Instantiate incoming rtl of
172 implicit arguments, and recurse on VALUE_EXPRs.
173 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
174 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
176 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
178 * c-parser.c (c_parser_for_statement): Initialize
179 collection_expression.
181 2011-01-19 Joseph Myers <joseph@codesourcery.com>
183 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
185 2011-01-19 Joseph Myers <joseph@codesourcery.com>
187 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
188 (LINK_SHLIB_SPEC): Don't use %(link_path).
189 (SUBTARGET_EXTRA_SPECS): Remove link_path.
191 2011-01-19 Joseph Myers <joseph@codesourcery.com>
193 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
194 (NO_SHARED_LIB_SUPPORT): Remove.
195 (LINK_SHLIB_SPEC): Remove one conditional definition.
197 2011-01-19 Joseph Myers <joseph@codesourcery.com>
199 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
201 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
202 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
203 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
204 %{call_shared} and conditionals on these options not being passed.
205 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
208 2011-01-19 Jakub Jelinek <jakub@redhat.com>
210 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
213 * ipa-split.c: Spelling fixes.
215 2011-01-19 Richard Henderson <rth@redhat.com>
217 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
220 * longlong.h [__mn10300__] (count_leading_zeros): New.
221 [__mn10300__] (umul_ppmm, smul_ppmm): New.
222 [__mn10300__] (add_ssaaaa, subddmmss): New.
223 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
224 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
226 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
228 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
230 2011-01-19 Richard Henderson <rth@redhat.com>
232 * config/mn10300/mn10300.md (addsi3_flags): New.
233 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
234 (subsi3_flags, subc_internal, subdi3): New.
235 (subdi3_internal, *subdi3_degenerate): New.
236 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
238 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
239 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
240 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
241 * config/mn10300/mn10300-protos.h: Update.
242 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
243 (return_ret): Likewise. Rename from return_internal_regs.
244 (return_internal): Remove.
246 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
247 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
248 (mn10300_legitimate_constant_p): Likewise.
249 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
250 (mn10300_frame_size): New.
251 (mn10300_expand_prologue): Use it.
252 (mn10300_expand_epilogue): Likewise.
253 (mn10300_initial_offset): Likewise.
254 * config/mn10300/mn10300-protos.h: Update.
255 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
256 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
257 (prologue, epilogue, return_internal): Tidy output code.
258 (mn10300_store_multiple_operation, return): Likewise.
259 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
260 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
261 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
262 (load_pic, am33_load_pic): New.
263 (mn10300_load_pic0, mn10300_load_pic1): New.
265 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
266 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
267 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
268 (cc_flags_for_mode, cc_flags_for_code): New.
269 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
270 overflow flag is not valid. Validate that the flags we need
271 for the comparison are valid.
272 (mn10300_output_cmp): Remove.
273 (mn10300_output_add): New.
274 (mn10300_select_cc_mode): Use cc_flags_for_code.
275 (mn10300_split_cbranch): New.
276 (mn10300_match_ccmode): New.
277 (mn10300_split_and_operand_count): New.
278 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
280 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
281 (addsi3): ... here. Use mn10300_output_add.
282 (*addsi3_flags): New.
283 (*am33_subsi3, *mn10300_subsi3): Merge...
284 (subsi3): ... here. Use attribute isa.
285 (*subsi3_flags): New.
286 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
288 (*am33_andsi3, *mn10300_andsi3): Merge...
290 (*andsi3_flags): New.
291 (andsi3 splitters): New.
292 (*am33_iorsi3, *mn10300_iorsi3): Merge...
294 (*iorsi3_flags): New.
295 (*am33_xorsi3, *mn10300_xorsi3): Merge...
297 (*xorsi3_flags): New.
298 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
299 (one_cmplsi2): ... here.
300 (*one_cmplsi2_flags): New.
301 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
302 instead of "dax" in constraints. Use mn10300_split_cbranch.
303 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
304 use matching constraints to eliminate a self-comparison.
305 (*integer_conditional_branch): Rename from integer_conditional_branch.
306 Use int_mode_flags to match CC_REG.
307 (*cbranchsi4_btst, *btstsi): New.
308 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
309 mn10300_split_cbranch.
310 (*am33_cmpsf): Rename from am33_cmpsf.
311 (*float_conditional_branch): Rename from float_conditional_branch.
312 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
313 (zero_extendqisi2): ... here.
314 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
315 (zero_extendhisi2): ... here.
316 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
317 (extendqisi2): ... here.
318 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
319 (extendhisi2): ... here.
320 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
322 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
324 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
326 (consecutive add peephole): Remove.
327 * config/mn10300/predicates.md (label_ref_operand): New.
328 (int_mode_flags): New.
329 (CCZN_comparison_operator): New.
331 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
332 (throughput_42_latency_43): New reservation.
333 (mulsidi3, umulsidi3): New expanders.
334 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
335 the MDR register to allocation; separately allocate the low and
336 high parts of the DImode result.
337 (umulsidi3_internal): Similarly.
338 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
339 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
340 (udivsi3, umodsi3): Remove.
341 (udivmodsi4, divmodsi4): New expanders.
342 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
343 (*divmodsi4): Simiarly.
346 * config/mn10300/constraints.md ("z"): New constraint.
347 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
348 (FIXED_REGISTERS): Don't fix MDR.
349 (CALL_USED_REGSITERS): Reformat nicely.
350 (REG_ALLOC_ORDER): Add MDR.
351 (enum regclass): Add MDR_REGS.
352 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
353 (IRA_COVER_CLASSES): Add MDR_REGS.
354 (REGNO_REG_CLASS): Handle MDR_REG.
355 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
356 (mn10300_register_move_cost): Likewise.
357 * config/mn10300/mn10300.md (MDR_REG): New.
358 (*movsi_internal): Handle moves to/from MDR_REGS.
360 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
362 (mn10300_secondary_reload): Tidy combination reload classes.
363 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
364 addresses for AM33. Allow symbolic offsets for reg+imm.
365 (mn10300_regno_in_class_p): New.
366 (mn10300_legitimize_reload_address): New.
367 * config/mn10300/mn10300.h (enum reg_class): Remove
368 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
369 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
371 (REG_CLASS_NAMES): Update to match.
372 (REG_CLASS_CONTENTS): Likewise.
373 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
374 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
375 (REGNO_IN_RANGE_P): Remove.
376 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
377 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
378 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
379 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
380 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
381 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
382 (REGNO_GENERAL_P): New.
383 (HAVE_POST_MODIFY_DISP): New.
384 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
385 (LEGITIMIZE_RELOAD_ADDRESS): New.
386 * config/mn10300/mn10300-protos.h: Update.
388 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
389 DATA_REGS for AM33 stack-pointer destination.
390 (mn10300_preferred_output_reload_class): Likewise.
391 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
392 into a form appropriate for ...
393 (TARGET_SECONDARY_RELOAD): New.
394 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
395 * config/mn10300/mn10300-protos.h: Update.
396 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
397 reload_insi; use the "A" constraint for the scratch; handle AM33
398 moves of sp to non-address registers.
400 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
401 (*movqi_internal): ... here.
402 (*am33_movhi, *mn10300_movhi): Merge into...
403 (*movhi_internal): ... here.
404 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
405 as the source/destination of moves from/to SP.
406 (movsf): Only allow for AM33-2.
407 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
408 any integer constant constraint. Only allow for AM33-2. Tidy
409 all of the alternative outputs.
410 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
411 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
413 (udivsi3, umodsi3): New patterns for MN103 only.
415 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
417 * doc/tm.texi.in: Spell out that a lack of register class unions
419 * doc/tm.texi: Regenerate.
421 2011-01-19 Jakub Jelinek <jakub@redhat.com>
423 PR rtl-optimization/47337
424 * dce.c (check_argument_store): New function.
425 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
427 PR tree-optimization/47290
428 * tree-eh.c (infinite_empty_loop_p): New function.
429 (cleanup_empty_eh): Use it.
431 2011-01-18 Steve Ellcey <sje@cup.hp.com>
434 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
435 (a64_expand_widen_sum): Ditto.
436 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
437 (vec_extract_evenodd_help): Ditto.
438 (vec_extract_evenv4hi): Ditto.
439 (vec_extract_oddv4hi): Ditto.
440 (vec_extract_evenv2si): Ditto.
441 (vec_extract_oddv2si): Ditto.
442 (vec_extract_evenv2sf): Ditto.
443 (vec_extract_oddv2sf): Ditto.
444 (vec_pack_trunc_v4hi: Ditto.
445 (vec_pack_trunc_v2si): Ditto.
446 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
447 (vec_interleave_highv8qi): Ditto.
449 (vec_extract_oddv8qi): Ditto.
450 (vec_interleave_lowv4hi): Ditto.
451 (vec_interleave_highv4hi): Ditto.
452 (vec_interleave_lowv2si): Ditto.
453 (vec_interleave_highv2si): Ditto.
455 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
457 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
458 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
459 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
460 (pa_c_mode_for_suffix): New.
461 (TARGET_EXPAND_BUILTIN): Define.
462 (TARGET_C_MODE_FOR_SUFFIX): Define.
463 (pa_builtins): Define.
464 (pa_init_builtins): Register __float128 type and init new support
466 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
467 * config/pa/quadlib.c (_U_Qfcopysign): New.
469 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
472 * explow.c (allocate_dynamic_stack_space): Do not assume more than
473 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
476 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
478 PR tree-optimization/47179
479 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
480 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
482 2011-01-18 Richard Guenther <rguenther@suse.de>
484 PR rtl-optimization/47216
485 * emit-rtl.c: Include tree-flow.h.
486 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
487 of replicating it with different semantics.
488 * Makefile.in (emit-rtl.o): Adjust.
490 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
492 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
494 (cortex_a9_dp): Handle neon types correctly.
496 2011-01-18 Jakub Jelinek <jakub@redhat.com>
498 PR rtl-optimization/47299
499 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
500 subtarget. Use normal multiplication if both operands are
502 * expmed.c (expand_widening_mult): Don't try to optimize constant
503 multiplication if op0 has VOIDmode. Convert op1 constant to mode
506 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
508 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
509 spacing after 'e.g.', typos, comma, hyphenation.
511 2011-01-17 Richard Henderson <rth@redhat.com>
513 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
514 (rx_restricted_mem_operand): New.
515 (rx_shift_operand): Use register_operand.
516 (rx_source_operand, rx_compare_operand): Likewise.
517 * config/rx/rx.md (addsi3_flags): New expander.
518 (adddi3): Rewrite as expander.
519 (adc_internal, *adc_flags, adddi3_internal): New patterns.
520 (subsi3_flags): New expander.
521 (subdi3): Rewrite as expander.
522 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
524 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
525 (rx_init_builtins): Remove sat builtin.
526 (rx_expand_builtin): Likewise.
527 * config/rx/rx.md (ssaddsi3): New.
528 (*sat): Rename from sat. Represent the CC_REG input.
530 * config/rx/predicates.md (rshift_operator): New.
531 * config/rx/rx.c (rx_expand_insv): Remove.
532 * config/rx/rx-protos.h: Update.
533 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
534 operand to the canonical position.
535 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
536 (*bitclr, *bitclr_in_memory): Similarly.
537 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
538 (insv): Retain the zero_extract in the expansion.
540 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
541 (bswaphi2, bitinvert, revw): Likewise.
543 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
544 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
545 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
546 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
547 (bitset, bitset_in_memory): Likewise.
548 (bitinvert, bitinvert_in_memory): Likewise.
549 (bitclr, bitclr_in_memory): Likewise.
550 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
551 (rx_strend, rx_cmpstrn): Likewise.
552 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
553 (bitop peep2 patterns): Remove.
555 * config/rx/rx.c (rx_match_ccmode): New.
556 * config/rx/rx-protos.h: Update.
557 * config/rx/rx.md (abssi2): Clobber, don't set flags.
558 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
559 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
560 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
561 (fix_truncsfsi2, floatsisf2): Likewise.
562 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
563 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
564 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
565 (*subsi3_flags, *xorsi3_flags): New.
567 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
569 * config/rx/rx.c (rx_print_operand): Remove workaround for
570 unsplit comparison operations.
572 * config/rx/rx.md (movsicc): Split after reload.
573 (*movsicc): Merge *movsieq and *movsine via match_operator.
574 (*stcc): New pattern.
576 * config/rx/rx.c (rx_float_compare_mode): Remove.
577 * config/rx/rx.h (rx_float_compare_mode): Remove.
578 * config/rx/rx.md (cstoresi4): Split after reload.
579 (*sccc): New pattern.
581 * config/rx/predicates.md (label_ref_operand): New.
582 (rx_z_comparison_operator): New.
583 (rx_zs_comparison_operator): New.
584 (rx_fp_comparison_operator): New.
585 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
586 Validate that the flags are set properly for the comparison.
587 (rx_gen_cond_branch_template): Remove.
588 (rx_cc_modes_compatible): Remove.
589 (mode_from_flags): New.
590 (flags_from_code): Rename from flags_needed_for_conditional.
591 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
592 (rx_select_cc_mode): Likewise.
593 (rx_split_fp_compare): New.
594 (rx_split_cbranch): New.
595 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
596 (*cbranchsi4): Use match_operator and rx_split_cbranch.
597 (*cbranchsf4): Similarly.
598 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
599 match_operator and rx_split_cbranch.
600 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
601 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
602 (*cmpsi): Rename from cmpsi.
603 (*tstsi): Rename from tstsi.
604 (*cmpsf): Rename from cmpsf; use CC_Fmode.
605 (*conditional_branch): Rename from conditional_branch.
606 (*reveresed_conditional_branch): Remove.
607 (b<code>): Remove expander.
608 * config/rx/rx-protos.h: Update.
610 * config/rx/rx.c (rx_compare_redundant): Remove.
611 * config/rx/rx.md (cmpsi): Don't use it.
612 * config/rx/rx-protos.h: Update.
614 * config/rx/rx-modes.def (CC_F): New mode.
615 * config/rx/rx.c (rx_select_cc_mode): New.
616 * config/rx/rx.h (SELECT_CC_MODE): Use it.
617 * config/rx/rx-protos.h: Update.
619 2011-01-17 Richard Henderson <rth@redhat.com>
621 * except.c (dump_eh_tree): Fix stray ; after for statement.
623 2011-01-17 Richard Guenther <rguenther@suse.de>
625 PR tree-optimization/47313
626 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
627 handling before copying the body. Properly deal with
628 by-reference result in SSA form.
630 2011-01-17 Ian Lance Taylor <iant@google.com>
633 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
634 (struct_value_alias_set): Don't define.
635 (sparc_option_override): Don't set sparc_sr_alias_set and
636 struct_value_alias_set.
637 (save_or_restore_regs): Use gen_frame_mem rather than calling
639 (sparc_struct_value_rtx): Likewise.
641 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
644 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
646 (_mm_maskstore_pd): Likewise.
647 (_mm_maskload_ps): Likewise.
648 (_mm_maskstore_ps): Likewise.
649 (_mm256_maskload_pd): Change mask to __m256i.
650 (_mm256_maskstore_pd): Likewise.
651 (_mm256_maskload_ps): Likewise.
652 (_mm256_maskstore_ps): Likewise.
654 * config/i386/i386-builtin-types.def: Updated.
655 (ix86_expand_special_args_builtin): Likewise.
657 * config/i386/i386.c (bdesc_special_args): Update
658 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
659 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
660 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
661 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
663 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
664 Use <avxpermvecmode> on mask register.
665 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
667 2011-01-17 Olivier Hainque <hainque@adacore.com>
668 Michael Haubenwallner <michael.haubenwallner@salomon.at>
669 Eric Botcazou <ebotcazou@adacore.com>
672 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
673 if <= USHRT_MAX in 32-bit mode.
675 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
677 * doc/install.texi (Configuration, Specific): Wrap long
678 lines in examples. Allow line wrapping in long options
679 and URLs where beneficial for PDF output.
681 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
683 * config/mips/mips.c (mips_classify_symbol): Don't return
684 SYMBOL_PC_RELATIVE for nonlocal labels.
686 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
688 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
690 2011-01-15 Jan Hubicka <jh@suse.cz>
692 PR tree-optimization/47276
693 * ipa.c (function_and_variable_visibility): Do not try to mark alias
694 declarations as needed.
696 2011-01-15 Martin Jambor <mjambor@suse.cz>
698 * common.opt (fdevirtualize): New flag.
699 * doc/invoke.texi (Option Summary): Document it.
700 * opts.c (default_options_table): Add devirtualize flag.
701 * ipa-prop.c (detect_type_change): Return immediately if
702 devirtualize flag is not set.
703 (detect_type_change_ssa): Likewise.
704 (compute_known_type_jump_func): Likewise.
705 (ipa_analyze_virtual_call_uses): Likewise.
707 2011-01-14 Martin Jambor <mjambor@suse.cz>
709 PR tree-optimization/45934
710 PR tree-optimization/46302
711 * ipa-prop.c (type_change_info): New type.
712 (stmt_may_be_vtbl_ptr_store): New function.
713 (check_stmt_for_type_change): Likewise.
714 (detect_type_change): Likewise.
715 (detect_type_change_ssa): Likewise.
716 (compute_complex_assign_jump_func): Check for dynamic type change.
717 (compute_complex_ancestor_jump_func): Likewise.
718 (compute_known_type_jump_func): Likewise.
719 (compute_scalar_jump_functions): Likewise.
720 (ipa_analyze_virtual_call_uses): Likewise.
721 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
723 2011-01-14 Joseph Myers <joseph@codesourcery.com>
725 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
726 * config/i386/i386.opt (msse5): New Alias.
728 2011-01-14 Joseph Myers <joseph@codesourcery.com>
730 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
731 * config/sparc/linux64.h (CC1_SPEC): Likewise.
732 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
733 * config/sparc/sparc.h (CC1_SPEC): Likewise.
735 2011-01-14 Joseph Myers <joseph@codesourcery.com>
737 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
739 * config/sparc/linux64.h (CC1_SPEC): Likewise.
740 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
741 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
742 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
744 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
746 2011-01-14 Joseph Myers <joseph@codesourcery.com>
748 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
751 2011-01-14 Mike Stump <mikestump@comcast.net>
753 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
754 * config/fr30/fr30.md: Likweise
755 (movsi_push): Likewise.
756 (movsi_pop): Likewise.
757 (enter_func): Likewise.
758 * config/moxie/moxie.md (movsi_push): Likewise.
759 (movsi_pop): Likewise.
761 2011-01-14 Joseph Myers <joseph@codesourcery.com>
763 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
764 %{no_archive} %{exact_version}.
765 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
766 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
767 %{no_archive} %{exact_version}.
768 * config/mips/openbsd.h (LINK_SPEC): Likewise.
769 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
770 * config/mips/vxworks.h: Likewise.
772 2011-01-14 Joseph Myers <joseph@codesourcery.com>
774 * config/microblaze/microblaze.h (ASM_SPEC): Remove
777 2011-01-14 Joseph Myers <joseph@codesourcery.com>
779 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
780 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
782 2011-01-14 Joseph Myers <joseph@codesourcery.com>
784 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
787 2011-01-14 Joseph Myers <joseph@codesourcery.com>
789 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
791 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
792 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
794 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
797 2011-01-14 Joseph Myers <joseph@codesourcery.com>
799 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
800 (CC1_SPEC): Don't handle -profile.
802 2011-01-14 Joseph Myers <joseph@codesourcery.com>
804 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
805 * config/mips/mips.h (CC1_SPEC): Likewise.
807 2011-01-14 Joseph Myers <joseph@codesourcery.com>
809 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
810 * config/mips/mips.h (CC1_SPEC): Likewise.
812 2011-01-14 Joseph Myers <joseph@codesourcery.com>
814 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
815 * config/m32r/linux.h (LINK_SPEC): Likewise.
816 * config/mips/linux.h (LINK_SPEC): Likewise.
817 * config/mips/linux64.h (LINK_SPEC): Likewise.
818 * config/sparc/linux.h (LINK_SPEC): Likewise.
819 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
820 LINK_SPEC): Likewise.
821 * config/xtensa/linux.h (LINK_SPEC): Likewise.
823 2011-01-14 Joseph Myers <joseph@codesourcery.com>
825 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
827 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
829 2011-01-14 Joseph Myers <joseph@codesourcery.com>
831 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
832 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
834 2011-01-14 Joseph Myers <joseph@codesourcery.com>
836 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
838 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
840 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
841 supports -Bstatic/-Bdynamic.
842 * configure: Regenerate.
844 2011-01-14 Jan Hubicka <jh@suse.cz>
845 Jack Howarth <howarth@bromo.med.uc.edu>
848 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
849 when checking debug_info_level. Test write_symbols instead of
850 debug_hooks->var_location when setting flag_var_tracking_uninit.
852 2011-01-14 Richard Guenther <rguenther@suse.de>
854 PR tree-optimization/47179
855 * target.def (ref_may_alias_errno): New target hook.
856 * targhooks.h (default_ref_may_alias_errno): Declare.
857 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
858 (default_ref_may_alias_errno): New function.
859 * target.h (struct ao_ref_s): Declare.
860 * tree-ssa-alias.c: Include target.h.
861 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
862 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
863 (targhooks.o): Likewise.
864 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
865 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
867 2011-01-14 Richard Guenther <rguenther@suse.de>
869 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
871 2011-01-14 Richard Guenther <rguenther@suse.de>
873 PR tree-optimization/47280
874 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
876 (tree_ssa_forward_propagate_single_use_vars): Deal with
877 CFG changes from associate_plusminus.
879 2011-01-14 Richard Guenther <rguenther@suse.de>
883 2011-01-11 Richard Guenther <rguenther@suse.de>
885 PR tree-optimization/46076
886 * tree-ssa.c (useless_type_conversion_p): Conversions from
887 unprototyped to empty argument list function types are useless.
889 2011-01-14 Richard Guenther <rguenther@suse.de>
891 PR tree-optimization/47286
892 * tree-ssa-structalias.c (new_var_info): Register variables are global.
894 2011-01-14 Martin Jambor <mjambor@suse.cz>
897 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
899 2011-01-13 Anatoly Sokolov <aesok@post.ru>
901 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
902 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
903 * config/xtensa/xtensa.c (xtensa_libcall_value,
904 xtensa_function_value_regno_p): New functions.
905 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
907 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
910 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
912 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
913 New function prototype.
914 * config/i386/winnt.c (i386_pe_assemble_visibility):
915 Warn only if attribute was specified by user.
917 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
920 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
922 (floatunsdidf2_fcfidu): Ditto.
924 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
926 * config/s390/s390.c (print_operand_address): Replace 'error' with
927 'output_operand_lossage'.
928 (print_operand): Likewise.
930 2011-01-13 Jeff Law <law@redhat.com>
932 PR rtl-optimization/39077
933 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
934 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
935 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
936 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
937 * gcse.c (prune_insertions_deletions): New function.
938 (compute_pre_data): Use it.
940 2011-01-13 Dodji Seketeli <dodji@redhat.com>
943 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
945 (prune_unused_types_mark): Use it.
947 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
949 PR rtl-optimization/45352
950 * sel-sched.c: Update copyright years.
951 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
952 in the advancing loop when we have issued issue_rate insns.
954 2011-01-12 Richard Henderson <rth@redhat.com>
956 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
957 (TARGET_MD_ASM_CLOBBERS): New.
959 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
960 (TARGET_DELEGITIMIZE_ADDRESS): New.
962 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
963 (clzsi2, *bsch): New patterns.
965 * config/mn10300/mn10300.md (INT): New mode iterator.
966 (*mov<INT>_clr): New pattern, and peep2 to generate it.
968 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
969 flag_split_wide_types.
971 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
972 (mn10300_trampoline_init): Rewrite without a template, an immediate
973 load and a direct branch.
974 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
976 2011-01-12 Anatoly Sokolov <aesok@post.ru>
978 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
979 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
980 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
981 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
983 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
986 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
989 2011-01-12 Jan Hubicka <jh@suse.cz>
992 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
993 (PLUGIN_COND_CLOSE): New macro.
994 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
996 2011-01-12 Richard Guenther <rguenther@suse.de>
999 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1000 register variables in a MEM_REF.
1002 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1004 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1005 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1006 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1007 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1008 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1009 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1010 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1011 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1012 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1013 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1014 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1015 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1016 * config/gnu-user.h: New. Copied from linux.h.
1017 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1018 GNU_USER_TARGET_STARTFILE_SPEC.
1019 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1020 GNU_USER_TARGET_ENDFILE_SPEC.
1021 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1022 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1023 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1024 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1025 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1026 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1027 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1028 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1029 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1030 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1031 * config/arm/linux-eabi.h (CC1_SPEC): Use
1032 GNU_USER_TARGET_CC1_SPEC.
1033 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1034 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1035 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1036 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1037 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1038 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1039 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1040 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1042 2011-01-12 Richard Guenther <rguenther@suse.de>
1045 * doc/invoke.texi (ffast-math): Document it is turned on
1048 2011-01-12 Jan Hubicka <jh@suse.cz>
1050 PR tree-optimization/47233
1051 * opts.c (common_handle_option): Disable ipa-reference with profile
1054 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1056 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1059 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1061 * c-parser.c (c_lex_one_token): Updated and reindented some
1062 comments. No changes in code.
1064 2011-01-11 Ian Lance Taylor <iant@google.com>
1066 * godump.c (go_output_var): Don't output the variable if there is
1067 already a type with the same name.
1069 2011-01-11 Ian Lance Taylor <iant@google.com>
1071 * godump.c (go_format_type): Don't generate float80.
1073 2011-01-11 Richard Henderson <rth@redhat.com>
1075 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1076 declaration. Rewrite for both speed and size.
1077 (mn10300_address_cost_1): Remove.
1078 (mn10300_register_move_cost): New.
1079 (mn10300_memory_move_cost): New.
1080 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1081 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1082 extensions, shifts, BSWAP, CLZ.
1083 (mn10300_wide_const_load_uses_clr): Remove.
1084 (TARGET_REGISTER_MOVE_COST): New.
1085 (TARGET_MEMORY_MOVE_COST): New.
1086 * config/mn10300/mn10300-protos.h: Update.
1087 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1089 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1090 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1091 * config/mn10300/mn10300-protos.h: Update.
1092 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1093 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1094 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1095 (*test_int_bitfield, *test_byte_bitfield): Remove.
1096 (*bit_test, *subreg_bit_test): Remove.
1097 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1099 * config/mn10300/constraints.md ("c"): Rename from "A".
1100 ("A", "D"): New constraint letters.
1101 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1102 (fmssf4, fnmasf4, fnmssf4): Likewise.
1104 * config/mn10300/mn10300.md (isa): New attribute.
1105 (enabled): New attribute.
1107 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1108 (abssf2, negsf2): Define only for hardware fp.
1109 (sqrtsf2): Reformat.
1110 (addsf3, subsf3, mulsf3): Merge expander and insn.
1112 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1113 (DEBUGGER_AUTO_OFFSET): Remove.
1114 (DEBUGGER_ARG_OFFSET): Remove.
1116 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1117 Emit register stores with the same offsets as the hardware.
1118 (mn10300_store_multiple_operation): Don't check that the register
1119 save offsets are monotonic.
1120 * config/mn10300/mn10300-protos.h: Update.
1122 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1124 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1125 in terms of the value on the stack, not the MDR register.
1127 2011-01-11 Jan Hubicka <jh@suse.cz>
1131 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1132 (symbol_alias_set_destroy, symbol_alias_set_contains,
1133 propagate_aliases_backward): Declare.
1134 * lto-streamer-out.c (struct sets): New sturcture.
1135 (trivally_defined_alias): New function.
1136 (output_alias_pair_p): Rewrite.
1137 (output_unreferenced_globals): Fix output of alias pairs.
1138 (produce_symtab): Likewise.
1139 * ipa.c (function_and_variable_visibility): Set weak alias destination
1141 * varasm.c (symbol_alias_set_t): Remove.
1142 (symbol_alias_set_destroy): Export.
1143 (propagate_aliases_forward, propagate_aliases_backward): New functions
1145 (compute_visible_aliases): ... this one; remove.
1146 (trivially_visible_alias): New
1147 (trivially_defined_alias): New.
1148 (remove_unreachable_alias_pairs): Rewrite.
1149 (finish_aliases_1): Reorganize code checking if alias is defined.
1150 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1153 2011-01-11 Richard Guenther <rguenther@suse.de>
1155 PR tree-optimization/46076
1156 * tree-ssa.c (useless_type_conversion_p): Conversions from
1157 unprototyped to empty argument list function types are useless.
1159 2011-01-11 Richard Guenther <rguenther@suse.de>
1162 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1163 volatile MEMs as MEM_READONLY_P.
1165 2011-01-11 Richard Guenther <rguenther@suse.de>
1167 PR tree-optimization/47239
1168 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1170 2011-01-11 Jeff Law <law@redhat.com>
1172 PR tree-optimization/47086
1173 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1174 IVs from statements that might throw.
1176 2011-01-10 Jan Hubicka <jh@suse.cz>
1179 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1181 2011-01-10 Jan Hubicka <jh@suse.cz>
1184 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1185 when correcting profile.
1187 2011-01-10 Jan Hubicka <jh@suse.cz>
1190 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1192 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1193 Restore DECL_FINI_PRIORITY.
1195 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1197 * doc/gimple.texi: Fix quoting of multi-word return values in
1198 @deftypefn statements. Ensure presence of return value. Wrap
1199 overlong @deftypefn lines.
1200 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1201 descriptions of removed functions.
1202 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1203 of multi-word return value in @deftypefn statement.
1205 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1207 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1208 (Conditional Expressions, Logical Operators)
1209 (Statement and operand traversals): Do not indent smallexample
1210 code. Fix duplicate function argument in example.
1212 2011-01-10 Jeff Law <law@redhat.com>
1214 PR tree-optimization/47141
1215 * ipa-split.c (split_function): Handle case where we are
1216 returning a value and the return block has a virtual operand phi.
1218 2011-01-10 Jan Hubicka <jh@suse.cz>
1220 PR tree-optimization/47234
1221 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1222 (pass_feedback_split_functions): Declare.
1223 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1225 * ipa-split.c (gate_split_functions): Update comments; disable
1226 split-functions for profile_arc_flag and branch_probabilities.
1227 (gate_feedback_split_functions): New function.
1228 (execute_feedback_split_functions): New function.
1229 (pass_feedback_split_functions): New global var.
1231 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1234 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1235 calling gimple_call_set_cannot_inline.
1237 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1239 * config/darwin-sections.def: Remove unused section.
1241 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1244 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1246 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1249 * c-parser.c (c_parser_declaration_or_fndef): Improved
1252 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1254 * config/i386/winnt.c (i386_pe_start_function): Make sure
1255 to switch back to function's section.
1257 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1261 * plugin.c: Move include of dlfcn.h from here...
1262 * system.h: ... to here.
1264 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1266 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1268 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1269 two extra empty pages in PDF output.
1271 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1274 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1275 for error recovery purposes behave as if it was not specified so
1276 that the default type is usd.
1278 2011-01-07 Jan Hubicka <jh@suse.cz>
1280 PR tree-optmization/46469
1281 * ipa.c (function_and_variable_visibility): Clear needed flags on
1282 nodes with external decls; handle weakrefs merging correctly.
1284 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1286 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1289 2011-01-07 Jan Hubicka <jh@suse.cz>
1291 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1292 and no longer claim that gold is required for linker plugin.
1293 * configure: Regenerate.
1294 * gcc.c (PLUGIN_COND): New macro.
1295 (LINK_COMMAND_SPEC): Use it.
1296 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1297 * config.in (HAVE_LTO_PLUGIN): New.
1298 * configure.ac (--with-lto-plugin): New parameter; autodetect
1301 2011-01-07 Jan Hubicka <jh@suse.cz>
1303 PR tree-optimization/46367
1304 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1305 when we can update original.
1306 (cgraph_mark_inline_edge): Sanity check.
1307 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1309 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1311 * config/spu/spu.h (ASM_COMMENT_START): Define.
1313 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1317 (SWITCH_KEEP_FOR_GCC): Likewise.
1318 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1319 (do_spec_1): Handle "%>".
1321 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1323 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1326 * config/i386/i386.c (ix86_delegitimize_address): If
1327 simplify_gen_subreg fails, return orig_x.
1330 * value-prof.c (gimple_stringop_fixed_value): Handle
1331 lhs of the call properly.
1333 2011-01-07 Jan Hubicka <jh@suse.cz>
1336 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1338 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1340 * target.def (function_switched_text_sections): New hook.
1341 * doc/tm.texi: Regenerated.
1342 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1343 * final.c (default_function_switched_text_sections): New.
1344 (final_scan_insn): Call function_switched_text_sections when a
1345 mid-function section change occurs.
1346 * output.h (default_function_switched_text_sections): Declare.
1347 * config/darwin-protos.h (darwin_function_switched_text_sections):
1349 * config/darwin.c (darwin_function_switched_text_sections): New.
1350 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1352 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1354 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1355 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1356 the secondary code fragment when outputting for DWARF == 2.
1358 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1360 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1361 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1363 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1364 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1366 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1369 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1370 when it is not empty.
1372 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1375 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1376 (case ${target}): Add btver1.
1377 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1378 -march=native recognize btver1 processors.
1379 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1380 btver1 def_and_undef
1381 * config/i386/i386.c (struct processor_costs btver1_cost): New
1383 (m_BTVER1): New definition.
1384 (m_AMD_MULTIPLE): Includes m_BTVER1.
1385 (initial_ix86_tune_features): Add btver1 tune.
1386 (processor_target_table): Add btver1 entry.
1387 (static const char *const cpu_names): Add btver1 entry.
1388 (software_prefetching_beneficial_p): Add btver1.
1389 (ix86_option_override_internal): Add btver1 instruction sets.
1390 (ix86_issue_rate): Add btver1.
1391 (ix86_adjust_cost): Add btver1.
1392 * config/i386/i386.h (TARGET_BTVER1): New definition.
1393 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1394 (enum processor_type): Add PROCESSOR_BTVER1.
1395 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1397 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1400 * config/i386/i386.c (legitimize_tls_address)
1401 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1402 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1403 (tls_initial_exec_64_sun): New pattern.
1405 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1407 * doc/invoke.texi (Overall Options): Improve wording and markup
1408 of the description of -wrapper.
1410 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1412 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1413 rdynamic, threads): New Driver options.
1415 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1418 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1419 if coming from .tdata.
1420 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1422 2011-01-06 Jan Hubicka <jh@suse.cz>
1425 * collect2.c (main): Do not enable LTOmode when plugin is active.
1427 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1430 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1431 --version output if supported.
1432 * configure: Regenerate.
1434 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1436 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1439 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1442 * c-convert.c (convert): When converting a complex expression
1443 other than COMPLEX_EXPR to a different complex type, ensure
1444 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1445 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1446 when converting COMPLEX_TYPE.
1448 2011-01-06 Ira Rosen <irar@il.ibm.com>
1450 PR tree-optimization/47139
1451 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1452 only the last reduction value is used outside the loop. Update
1455 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1457 * config/rtems.opt: New.
1458 * config.gcc (*-*-rtems*): Use rtems.opt.
1460 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1462 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1463 processors do not support 3DNow instructions.
1465 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1467 * config/spu/spu.c (spu_option_override): Set parameter
1468 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1470 2011-01-05 Jan Hubicka <jh@suse.cz>
1472 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1473 at the command line.
1475 2011-01-05 Martin Jambor <mjambor@suse.cz>
1478 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1479 deltas on streamed outgoing edges.
1480 (output_node_opt_summary): Output info for outgoing edges only when
1481 the node is in new parameter set.
1482 (output_cgraph_opt_summary): New parameter set, passed to the two
1483 aforementioned functions. Update its forward declaration and its
1486 2011-01-05 Tom Tromey <tromey@redhat.com>
1488 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1489 operator to c_finish_omp_atomic.
1490 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1491 (build_unary_op): Update.
1492 (build_modify_expr): Update.
1493 (build_asm_expr): Update.
1495 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1497 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1498 newly inserted insns.
1500 (spu_emit_branch_hint): Likewise.
1501 (insert_hbrp_for_ilb_runout): Likewise.
1502 (spu_machine_dependent_reorg): Call df_finish_pass after
1503 schedule_insns returns.
1505 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1507 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
1509 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
1511 PR tree-optimization/47005
1512 * tree-sra.c (struct access): Add 'non_addressable' bit.
1513 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
1514 (decide_one_param_reduction): Return 0 if the parameter is passed by
1515 reference and one of the accesses in the group is non_addressable.
1517 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1519 PR tree-optimization/47056
1520 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
1521 (mark_load): Likewise. Handle FUNCTION_DECL specially.
1522 (mark_store): Likewise. Pass STMT to ipa_record_reference.
1524 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1526 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
1527 initializer. Skip view conversions from aggregate types.
1529 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
1532 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
1534 2011-01-04 Philipp Thomas <pth@suse.de>
1536 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
1539 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1541 * function.c (thread_prologue_and_epilogue_insns): Do not crash
1542 on empty epilogue sequences.
1544 2011-01-04 Joseph Myers <joseph@codesourcery.com>
1546 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
1547 non-static): New Driver options.
1549 2011-01-04 Jie Zhang <jie@codesourcery.com>
1552 * gcc.c (default_compilers[]): Set combinable field to 0
1553 for all assembly languages.
1555 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
1557 * config/mips/loongson3a.md: New file.
1558 * config/mips/mips.md: Include loongson3a.md.
1559 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
1562 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
1565 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
1566 instead of convert_memory_address_addr_space on the base expression.
1568 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1570 * config/spu/spu.c (spu_option_override): Update error text
1571 for bad -march= / -mtune= values.
1573 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1575 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
1576 if branch-hint optimization will be performed.
1578 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1580 PR tree-optimization/47148
1581 * ipa-split.c (split_function): Convert arguments to
1582 DECL_ARG_TYPE if possible.
1584 PR tree-optimization/47155
1585 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
1588 PR rtl-optimization/47157
1589 * combine.c (try_combine): If undobuf.other_insn becomes
1590 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
1591 and set *new_direct_jump_p too.
1593 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
1595 PR tree-optimization/47021
1596 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
1598 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1600 * gcc.c (process_command): Update copyright notice dates.
1601 * gcov.c (print_version): Likewise.
1602 * gcov-dump.c (print_version): Likewise.
1603 * mips-tfile.c (main): Likewise.
1604 * mips-tdump.c (main): Likewise.
1606 2011-01-03 Martin Jambor <mjambor@suse.cz>
1608 PR tree-optimization/46801
1609 * tree-sra.c (type_internals_preclude_sra_p): Check whether
1610 aggregate fields start at byte boundary instead of the bit-field flag.
1612 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1615 * gcc.c (main): Revert revision 168407.
1617 2011-01-03 Martin Jambor <mjambor@suse.cz>
1619 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
1621 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1623 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
1624 vector optab to expand vector/scalar shift, update gimple to vector.
1626 2011-01-03 Martin Jambor <mjambor@suse.cz>
1628 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
1631 2011-01-03 Martin Jambor <mjambor@suse.cz>
1633 PR tree-optimization/46984
1634 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
1636 (cgraph_create_indirect_edge): Fixed line length.
1637 (cgraph_indirect_call_info): Declare.
1638 (cgraph_make_edge_direct) Update declaration.
1639 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
1640 (cgraph_create_indirect_edge): Use it.
1641 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
1643 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
1644 the new thunk_delta representation.
1645 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
1647 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
1648 (ipa_read_indirect_edge_info): Likewise.
1649 * lto-cgraph.c (output_edge_opt_summary): New function.
1650 (output_node_opt_summary): Call it on all outgoing edges.
1651 (input_edge_opt_summary): New function.
1652 (input_node_opt_summary): Call it on all outgoing edges.
1654 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
1657 * gcc.c (main): Don't check have_o when settting combine_inputs.
1659 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
1661 * regrename.c: Add general comment describing the pass.
1662 (struct du_head): Remove 'length' field.
1663 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
1664 (regrename_optimize): Do not sort chains. Rework comments, add others.
1665 Force renaming to the preferred class (if any) in the first pass and do
1666 not consider registers that belong to it in the second pass.
1667 (create_new_chain): Do not set 'length' field.
1668 (scan_rtx_reg): Likewise.
1670 2011-01-02 Jakub Jelinek <jakub@redhat.com>
1672 PR tree-optimization/47140
1673 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
1674 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
1677 PR rtl-optimization/47028
1678 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
1679 parm_birth_insn instead of at the beginning of first bb.
1681 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
1683 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
1684 Remove the word "see" before "@pxref".
1685 * doc/rtl.texi: Remove the word "see" before "@pxref".
1687 2011-01-01 Jan Hubicka <jh@suse.cz>
1689 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
1692 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
1695 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
1698 Copyright (C) 2011 Free Software Foundation, Inc.
1700 Copying and distribution of this file, with or without modification,
1701 are permitted in any medium without royalty provided the copyright
1702 notice and this notice are preserved.