emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
[gcc.git] / gcc / ChangeLog
1 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
2
3 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
4
5 2011-01-24 Paul Koning <ni1d@arrl.net>
6
7 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8 WORDS_BIG_ENDIAN.
9
10 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11
12 PR target/46519
13 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14 (block_info): Add scanned and prev.
15 (move_or_delete_vzeroupper_2): Return if the basic block
16 has been scanned and the upper 128bit state is unchanged
17 from the last scan.
18 (move_or_delete_vzeroupper_1): Return true if the exit
19 state is changed.
20 (move_or_delete_vzeroupper): Visit basic blocks using the
21 work-list based algorithm based on vt_find_locations in
22 var-tracking.c.
23
24 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25
26 2011-01-24 Nick Clifton <nickc@redhat.com>
27
28 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
29 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
31 then define __v850e1__.
32 * doc/invoke.texi: Document -mv850es.
33
34 2011-01-24 Richard Henderson <rth@redhat.com>
35
36 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
37 compound unordered comparisons.
38 * config/rx/rx.c (rx_split_fp_compare): Remove.
39 * config/rx/rx-protos.h: Update.
40 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
41 (cbranchsf4): Don't call rx_split_fp_compare.
42 (*cbranchsf4): Use rx_split_cbranch.
43 (*cmpsf): Don't accept "i" constraint.
44 (*conditional_branch): Only valid after reload.
45 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
46
47 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
48
49 PR target/47385
50 * config/rs6000/altivec.md (vector constant splitters): Add
51 support for creating vector single precision constants if -mvsx is
52 used and we would create the constant using Altivec primitives.
53
54 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
55 Richard Sandiford <rdsandiford@googlemail.com>
56
57 PR rtl-optimization/47166
58 * reload1.c (emit_reload_insns): Disable the spill_reg_store
59 mechanism for PRE_MODIFY and POST_MODIFY.
60 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
61 reloadreg.
62
63 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
64
65 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
66
67 2011-01-22 Jan Hubicka <jh@suse.cz>
68
69 PR lto/47333
70 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
71
72 2011-01-22 Jan Hubicka <jh@suse.cz>
73
74 PR tree-optimization/43884
75 PR lto/44334
76 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
77 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
78
79 2011-01-22 Anatoly Sokolov <aesok@post.ru>
80
81 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
82 * config/s390/s390.c (s390_register_move_cost,
83 s390_memory_move_cost): New.
84 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
85
86 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
87
88 PR middle-end/47401
89 * except.c (sjlj_assign_call_site_values): Move setting the
90 crtl->uses_eh_lsda flag to ...
91 (sjlj_mark_call_sites): ... here.
92 (sjlj_emit_function_enter): Support NULL dispatch label.
93 (sjlj_build_landing_pads): In a function with no landing pads
94 that still has must-not-throw regions, generate code to register
95 a personality function with empty LSDA.
96
97 2011-01-21 Richard Henderson <rth@redhat.com>
98
99 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
100
101 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
102
103 * compare-elim.c: New file.
104 * Makefile.in (OBJS-common): Add it.
105 (compare-elim.o): New.
106 * common.opt (fcompare-elim): New.
107 * opts.c (default_options_table): Add OPT_fcompare_elim.
108 * tree-pass.h (pass_compare_elim_after_reload): New.
109 * passes.c (init_optimization_passes): Add it.
110 * recog.h: Protect against re-inclusion.
111 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
112 * doc/invoke.texi (-fcompare-elim): Document it.
113 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
114 * doc/tm.texi: Rebuild.
115
116 2011-01-22 Nick Clifton <nickc@redhat.com>
117
118 * config/rx/rx.md (cstoresf4): Pass comparison operator to
119 rx_split_fp_compare.
120
121 2011-01-22 Nick Clifton <nickc@redhat.com>
122
123 * config/rx/rx.md (UNSPEC_CONST): New.
124 (deallocate_and_return): Wrap the amount popped off the stack in
125 an UNSPEC_CONST in order to stop it being rejected by
126 -mmax-constant-size.
127 (pop_and_return): Add a "(return)" rtx.
128 (call): Drop the immediate operand.
129 (call_internal): Likewise.
130 (call_value): Likewise.
131 (call_value_internal): Likewise.
132 (sibcall_internal): Likewise.
133 (sibcall_value_internal): Likewise.
134 (sibcall): Likewise. Generate an explicit call using
135 sibcall_internal.
136 (sibcall_value): Likewise.
137 (mov<>): FAIL if a constant operand is not legitimate.
138 (addsi3_unpsec): New pattern.
139
140 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
141 CONSTs.
142 (ok_for_max_constant): New function.
143 (gen_safe_add): New function.
144 (rx_expand_prologue): Use gen_safe_add.
145 (rx_expand_epilogue): Likewise.
146 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
147 UNSPEC CONSTs.
148
149 2011-01-21 Jeff Law <law@redhat.com>
150
151 PR tree-optimization/47053
152 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
153 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
154 statements are deleted.
155 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
156 is nonempty, then purge dead edges and cleanup the CFG.
157
158 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
159
160 PR debug/47402
161 Temporarily revert:
162 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
163 PR debug/47106
164 * tree-dfa.c (create_var_ann): Mark variable as used.
165
166 2011-01-21 Jakub Jelinek <jakub@redhat.com>
167
168 PR middle-end/45566
169 * except.c (convert_to_eh_region_ranges): Emit queued no-region
170 notes from other section in hot/cold partitioning even if
171 last_action is -3. Increment call_site_base.
172
173 PR rtl-optimization/47366
174 * fwprop.c (forward_propagate_into): Return bool. If
175 any changes are made, -fnon-call-exceptions is used and
176 REG_EH_REGION note is present, call purge_dead_edges
177 and return true if it purged anything.
178 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
179 any EH edges were purged.
180
181 2011-01-21 Jeff Law <law@redhat.com>
182
183 PR rtl-optimization/41619
184 * caller-save.c (setup_save_areas): Break out code to determine
185 which hard regs are live across calls by examining the reload chains
186 so that it is always used.
187 Eliminate code which checked REG_N_CALLS_CROSSED.
188
189 2011-01-21 Jakub Jelinek <jakub@redhat.com>
190
191 PR tree-optimization/47355
192 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
193 NOP has non-debug uses beyond PHIs in new_bb.
194
195 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
196
197 PR debug/47106
198 * cfgexpand.c (account_used_vars_for_block): Only account vars
199 that are annotated as used.
200 (estimated_stack_frame_size): Don't set TREE_USED.
201 * tree-dfa.c (create_var_ann): Mark variable as used.
202
203 2011-01-21 Richard Guenther <rguenther@suse.de>
204
205 PR middle-end/47395
206 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
207
208 2011-01-21 Richard Guenther <rguenther@suse.de>
209
210 PR tree-optimization/47365
211 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
212 (vn_reference_lookup_pieces): Adjust.
213 (vn_reference_lookup): Likewise.
214 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
215 (vn_reference_lookup_3): Only look through kills if in
216 VN_WALKREWRITE mode.
217 (vn_reference_lookup_pieces): Adjust.
218 (vn_reference_lookup): Likewise.
219 (visit_reference_op_load): Likewise.
220 (visit_reference_op_store): Likewise.
221 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
222 (compute_avail): Likewise.
223 (eliminate): Likewise.
224
225 2011-01-21 Jakub Jelinek <jakub@redhat.com>
226
227 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
228 DECL_IGNORED_P non-reg vars if they are used.
229
230 PR tree-optimization/47391
231 * varpool.c (const_value_known_p): Return false if
232 decl is volatile.
233
234 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
235
236 PR bootstrap/47215
237 * config/i386/i386.c (ix86_local_alignment): Handle
238 case for va_list_type_node is nil.
239 (ix86_canonical_va_list_type): Likewise.
240
241 2011-01-21 Alan Modra <amodra@gmail.com>
242
243 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
244 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
245
246 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
247
248 * config/arm/arm.md (define_attr type): Rename f_load
249 and f_store to f_fpa_load and f_fpa_store. Update.
250 (write_conflict): Deal with rename fallout.
251 (*push_fp_multi): Likewise.
252 * config/arm/fpa.md (f_load): Use f_fpa_load.
253 (f_store): Use f_fpa_store.
254 (*movsf_fpa): Likewise.
255 (*movdf_fpa): Likewise.
256 (*movxf_fpa): Likewise.
257 (*thumb2_movsf_fpa): Likewise.
258 (*thumb2_movdf_fpa): Likewise.
259 (*thumb2_movxf_fpa): Likewise.
260 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
261 f_loadd and f_stored.
262 (*thumb2_movdi_vfp): Likewise.
263 (*thumb2_movsf_vfp): Fix attribute to f_loads.
264 (*thumb2_movsi_vfp): Likewise.
265 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
266 Use f_loads instead of f_load.
267 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
268
269 2011-01-20 Anatoly Sokolov <aesok@post.ru>
270
271 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
272 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
273 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
274 (xtensa_mode_dependent_address_p): New function.
275 (constantpool_address_p): Make static. Change return type to bool.
276 Change argument type to const_rtx. Use CONST_INT_P predicate.
277
278 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
279
280 PR debug/46583
281 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
282
283 2011-01-20 Jakub Jelinek <jakub@redhat.com>
284
285 PR debug/47283
286 * cfgexpand.c (expand_debug_expr): Instead of generating
287 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
288 etc. handling.
289
290 2011-01-20 Richard Guenther <rguenther@suse.de>
291
292 PR middle-end/47370
293 * tree-inline.c (remap_gimple_op_r): Recurse manually for
294 the pointer operand of MEM_REFs.
295
296 2011-01-20 Jakub Jelinek <jakub@redhat.com>
297
298 PR tree-optimization/46130
299 * ipa-split.c (consider_split): If return_bb contains non-virtual
300 PHIs other than for retval or if split_function would not adjust it,
301 refuse to split.
302
303 2011-01-20 Richard Guenther <rguenther@suse.de>
304
305 PR tree-optimization/47167
306 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
307 Revert previous change, only avoid enumeral type changes.
308
309 2011-01-19 Dodji Seketeli <dodji@redhat.com>
310
311 PR c++/47291
312 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
313 (gen_scheduled_generic_parms_dies): New functions.
314 (gen_struct_or_union_type_die): Schedule template parameters DIEs
315 generation for the end of CU compilation.
316 (dwarf2out_finish): Generate template parameters DIEs here.
317
318 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
319
320 PR debug/46240
321 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
322 debug bind stmt on merge edges.
323
324 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
325
326 PR debug/47079
327 PR debug/46724
328 * function.c (instantiate_expr): Instantiate incoming rtl of
329 implicit arguments, and recurse on VALUE_EXPRs.
330 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
331 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
332
333 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
334
335 * c-parser.c (c_parser_for_statement): Initialize
336 collection_expression.
337
338 2011-01-19 Joseph Myers <joseph@codesourcery.com>
339
340 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
341
342 2011-01-19 Joseph Myers <joseph@codesourcery.com>
343
344 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
345 (LINK_SHLIB_SPEC): Don't use %(link_path).
346 (SUBTARGET_EXTRA_SPECS): Remove link_path.
347
348 2011-01-19 Joseph Myers <joseph@codesourcery.com>
349
350 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
351 (NO_SHARED_LIB_SUPPORT): Remove.
352 (LINK_SHLIB_SPEC): Remove one conditional definition.
353
354 2011-01-19 Joseph Myers <joseph@codesourcery.com>
355
356 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
357 %{call_shared}.
358 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
359 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
360 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
361 %{call_shared} and conditionals on these options not being passed.
362 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
363 %{call_shared}.
364
365 2011-01-19 Jakub Jelinek <jakub@redhat.com>
366
367 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
368 simplify.
369
370 * ipa-split.c: Spelling fixes.
371
372 2011-01-19 Richard Henderson <rth@redhat.com>
373
374 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
375 (*mulsi3): Likewise.
376
377 * longlong.h [__mn10300__] (count_leading_zeros): New.
378 [__mn10300__] (umul_ppmm, smul_ppmm): New.
379 [__mn10300__] (add_ssaaaa, subddmmss): New.
380 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
381 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
382
383 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
384
385 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
386
387 2011-01-19 Richard Henderson <rth@redhat.com>
388
389 * config/mn10300/mn10300.md (addsi3_flags): New.
390 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
391 (subsi3_flags, subc_internal, subdi3): New.
392 (subdi3_internal, *subdi3_degenerate): New.
393 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
394
395 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
396 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
397 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
398 * config/mn10300/mn10300-protos.h: Update.
399 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
400 (return_ret): Likewise. Rename from return_internal_regs.
401 (return_internal): Remove.
402
403 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
404 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
405 (mn10300_legitimate_constant_p): Likewise.
406 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
407 (mn10300_frame_size): New.
408 (mn10300_expand_prologue): Use it.
409 (mn10300_expand_epilogue): Likewise.
410 (mn10300_initial_offset): Likewise.
411 * config/mn10300/mn10300-protos.h: Update.
412 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
413 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
414 (prologue, epilogue, return_internal): Tidy output code.
415 (mn10300_store_multiple_operation, return): Likewise.
416 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
417 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
418 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
419 (load_pic, am33_load_pic): New.
420 (mn10300_load_pic0, mn10300_load_pic1): New.
421
422 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
423 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
424 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
425 (cc_flags_for_mode, cc_flags_for_code): New.
426 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
427 overflow flag is not valid. Validate that the flags we need
428 for the comparison are valid.
429 (mn10300_output_cmp): Remove.
430 (mn10300_output_add): New.
431 (mn10300_select_cc_mode): Use cc_flags_for_code.
432 (mn10300_split_cbranch): New.
433 (mn10300_match_ccmode): New.
434 (mn10300_split_and_operand_count): New.
435 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
436 to the function.
437 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
438 (addsi3): ... here. Use mn10300_output_add.
439 (*addsi3_flags): New.
440 (*am33_subsi3, *mn10300_subsi3): Merge...
441 (subsi3): ... here. Use attribute isa.
442 (*subsi3_flags): New.
443 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
444 when possible.
445 (*am33_andsi3, *mn10300_andsi3): Merge...
446 (andsi3): ... here.
447 (*andsi3_flags): New.
448 (andsi3 splitters): New.
449 (*am33_iorsi3, *mn10300_iorsi3): Merge...
450 (iorsi3): ... here.
451 (*iorsi3_flags): New.
452 (*am33_xorsi3, *mn10300_xorsi3): Merge...
453 (xorsi3): ... here.
454 (*xorsi3_flags): New.
455 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
456 (one_cmplsi2): ... here.
457 (*one_cmplsi2_flags): New.
458 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
459 instead of "dax" in constraints. Use mn10300_split_cbranch.
460 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
461 use matching constraints to eliminate a self-comparison.
462 (*integer_conditional_branch): Rename from integer_conditional_branch.
463 Use int_mode_flags to match CC_REG.
464 (*cbranchsi4_btst, *btstsi): New.
465 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
466 mn10300_split_cbranch.
467 (*am33_cmpsf): Rename from am33_cmpsf.
468 (*float_conditional_branch): Rename from float_conditional_branch.
469 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
470 (zero_extendqisi2): ... here.
471 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
472 (zero_extendhisi2): ... here.
473 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
474 (extendqisi2): ... here.
475 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
476 (extendhisi2): ... here.
477 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
478 (ashlsi3): ... here.
479 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
480 (lshrsi3): ... here.
481 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
482 (ashrsi3): ... here.
483 (consecutive add peephole): Remove.
484 * config/mn10300/predicates.md (label_ref_operand): New.
485 (int_mode_flags): New.
486 (CCZN_comparison_operator): New.
487
488 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
489 (throughput_42_latency_43): New reservation.
490 (mulsidi3, umulsidi3): New expanders.
491 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
492 the MDR register to allocation; separately allocate the low and
493 high parts of the DImode result.
494 (umulsidi3_internal): Similarly.
495 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
496 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
497 (udivsi3, umodsi3): Remove.
498 (udivmodsi4, divmodsi4): New expanders.
499 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
500 (*divmodsi4): Simiarly.
501 (ext_internal): New.
502
503 * config/mn10300/constraints.md ("z"): New constraint.
504 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
505 (FIXED_REGISTERS): Don't fix MDR.
506 (CALL_USED_REGSITERS): Reformat nicely.
507 (REG_ALLOC_ORDER): Add MDR.
508 (enum regclass): Add MDR_REGS.
509 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
510 (IRA_COVER_CLASSES): Add MDR_REGS.
511 (REGNO_REG_CLASS): Handle MDR_REG.
512 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
513 (mn10300_register_move_cost): Likewise.
514 * config/mn10300/mn10300.md (MDR_REG): New.
515 (*movsi_internal): Handle moves to/from MDR_REGS.
516
517 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
518 POST_MODIFY.
519 (mn10300_secondary_reload): Tidy combination reload classes.
520 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
521 addresses for AM33. Allow symbolic offsets for reg+imm.
522 (mn10300_regno_in_class_p): New.
523 (mn10300_legitimize_reload_address): New.
524 * config/mn10300/mn10300.h (enum reg_class): Remove
525 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
526 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
527 SP_OR_GENERAL_REGS.
528 (REG_CLASS_NAMES): Update to match.
529 (REG_CLASS_CONTENTS): Likewise.
530 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
531 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
532 (REGNO_IN_RANGE_P): Remove.
533 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
534 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
535 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
536 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
537 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
538 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
539 (REGNO_GENERAL_P): New.
540 (HAVE_POST_MODIFY_DISP): New.
541 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
542 (LEGITIMIZE_RELOAD_ADDRESS): New.
543 * config/mn10300/mn10300-protos.h: Update.
544
545 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
546 DATA_REGS for AM33 stack-pointer destination.
547 (mn10300_preferred_output_reload_class): Likewise.
548 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
549 into a form appropriate for ...
550 (TARGET_SECONDARY_RELOAD): New.
551 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
552 * config/mn10300/mn10300-protos.h: Update.
553 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
554 reload_insi; use the "A" constraint for the scratch; handle AM33
555 moves of sp to non-address registers.
556
557 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
558 (*movqi_internal): ... here.
559 (*am33_movhi, *mn10300_movhi): Merge into...
560 (*movhi_internal): ... here.
561 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
562 as the source/destination of moves from/to SP.
563 (movsf): Only allow for AM33-2.
564 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
565 any integer constant constraint. Only allow for AM33-2. Tidy
566 all of the alternative outputs.
567 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
568 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
569 for MN103.
570 (udivsi3, umodsi3): New patterns for MN103 only.
571
572 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
573
574 * doc/tm.texi.in: Spell out that a lack of register class unions
575 can lead to ICEs.
576 * doc/tm.texi: Regenerate.
577
578 2011-01-19 Jakub Jelinek <jakub@redhat.com>
579
580 PR rtl-optimization/47337
581 * dce.c (check_argument_store): New function.
582 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
583
584 PR tree-optimization/47290
585 * tree-eh.c (infinite_empty_loop_p): New function.
586 (cleanup_empty_eh): Use it.
587
588 2011-01-18 Steve Ellcey <sje@cup.hp.com>
589
590 PR target/46997
591 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
592 (a64_expand_widen_sum): Ditto.
593 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
594 (vec_extract_evenodd_help): Ditto.
595 (vec_extract_evenv4hi): Ditto.
596 (vec_extract_oddv4hi): Ditto.
597 (vec_extract_evenv2si): Ditto.
598 (vec_extract_oddv2si): Ditto.
599 (vec_extract_evenv2sf): Ditto.
600 (vec_extract_oddv2sf): Ditto.
601 (vec_pack_trunc_v4hi: Ditto.
602 (vec_pack_trunc_v2si): Ditto.
603 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
604 (vec_interleave_highv8qi): Ditto.
605 (mix1_r): Ditto.
606 (vec_extract_oddv8qi): Ditto.
607 (vec_interleave_lowv4hi): Ditto.
608 (vec_interleave_highv4hi): Ditto.
609 (vec_interleave_lowv2si): Ditto.
610 (vec_interleave_highv2si): Ditto.
611
612 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
613
614 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
615 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
616 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
617 (pa_c_mode_for_suffix): New.
618 (TARGET_EXPAND_BUILTIN): Define.
619 (TARGET_C_MODE_FOR_SUFFIX): Define.
620 (pa_builtins): Define.
621 (pa_init_builtins): Register __float128 type and init new support
622 builtins.
623 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
624 * config/pa/quadlib.c (_U_Qfcopysign): New.
625
626 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
627
628 PR middle-end/46894
629 * explow.c (allocate_dynamic_stack_space): Do not assume more than
630 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
631 are defined.
632
633 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
634
635 PR tree-optimization/47179
636 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
637 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
638
639 2011-01-18 Richard Guenther <rguenther@suse.de>
640
641 PR rtl-optimization/47216
642 * emit-rtl.c: Include tree-flow.h.
643 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
644 of replicating it with different semantics.
645 * Makefile.in (emit-rtl.o): Adjust.
646
647 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
648
649 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
650 include.
651 (cortex_a9_dp): Handle neon types correctly.
652
653 2011-01-18 Jakub Jelinek <jakub@redhat.com>
654
655 PR rtl-optimization/47299
656 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
657 subtarget. Use normal multiplication if both operands are
658 constants.
659 * expmed.c (expand_widening_mult): Don't try to optimize constant
660 multiplication if op0 has VOIDmode. Convert op1 constant to mode
661 before using it.
662
663 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
664
665 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
666 spacing after 'e.g.', typos, comma, hyphenation.
667
668 2011-01-17 Richard Henderson <rth@redhat.com>
669
670 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
671 (rx_restricted_mem_operand): New.
672 (rx_shift_operand): Use register_operand.
673 (rx_source_operand, rx_compare_operand): Likewise.
674 * config/rx/rx.md (addsi3_flags): New expander.
675 (adddi3): Rewrite as expander.
676 (adc_internal, *adc_flags, adddi3_internal): New patterns.
677 (subsi3_flags): New expander.
678 (subdi3): Rewrite as expander.
679 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
680
681 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
682 (rx_init_builtins): Remove sat builtin.
683 (rx_expand_builtin): Likewise.
684 * config/rx/rx.md (ssaddsi3): New.
685 (*sat): Rename from sat. Represent the CC_REG input.
686
687 * config/rx/predicates.md (rshift_operator): New.
688 * config/rx/rx.c (rx_expand_insv): Remove.
689 * config/rx/rx-protos.h: Update.
690 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
691 operand to the canonical position.
692 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
693 (*bitclr, *bitclr_in_memory): Similarly.
694 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
695 (insv): Retain the zero_extract in the expansion.
696
697 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
698 (bswaphi2, bitinvert, revw): Likewise.
699
700 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
701 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
702 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
703 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
704 (bitset, bitset_in_memory): Likewise.
705 (bitinvert, bitinvert_in_memory): Likewise.
706 (bitclr, bitclr_in_memory): Likewise.
707 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
708 (rx_strend, rx_cmpstrn): Likewise.
709 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
710 (bitop peep2 patterns): Remove.
711
712 * config/rx/rx.c (rx_match_ccmode): New.
713 * config/rx/rx-protos.h: Update.
714 * config/rx/rx.md (abssi2): Clobber, don't set flags.
715 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
716 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
717 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
718 (fix_truncsfsi2, floatsisf2): Likewise.
719 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
720 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
721 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
722 (*subsi3_flags, *xorsi3_flags): New.
723
724 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
725
726 * config/rx/rx.c (rx_print_operand): Remove workaround for
727 unsplit comparison operations.
728
729 * config/rx/rx.md (movsicc): Split after reload.
730 (*movsicc): Merge *movsieq and *movsine via match_operator.
731 (*stcc): New pattern.
732
733 * config/rx/rx.c (rx_float_compare_mode): Remove.
734 * config/rx/rx.h (rx_float_compare_mode): Remove.
735 * config/rx/rx.md (cstoresi4): Split after reload.
736 (*sccc): New pattern.
737
738 * config/rx/predicates.md (label_ref_operand): New.
739 (rx_z_comparison_operator): New.
740 (rx_zs_comparison_operator): New.
741 (rx_fp_comparison_operator): New.
742 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
743 Validate that the flags are set properly for the comparison.
744 (rx_gen_cond_branch_template): Remove.
745 (rx_cc_modes_compatible): Remove.
746 (mode_from_flags): New.
747 (flags_from_code): Rename from flags_needed_for_conditional.
748 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
749 (rx_select_cc_mode): Likewise.
750 (rx_split_fp_compare): New.
751 (rx_split_cbranch): New.
752 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
753 (*cbranchsi4): Use match_operator and rx_split_cbranch.
754 (*cbranchsf4): Similarly.
755 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
756 match_operator and rx_split_cbranch.
757 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
758 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
759 (*cmpsi): Rename from cmpsi.
760 (*tstsi): Rename from tstsi.
761 (*cmpsf): Rename from cmpsf; use CC_Fmode.
762 (*conditional_branch): Rename from conditional_branch.
763 (*reveresed_conditional_branch): Remove.
764 (b<code>): Remove expander.
765 * config/rx/rx-protos.h: Update.
766
767 * config/rx/rx.c (rx_compare_redundant): Remove.
768 * config/rx/rx.md (cmpsi): Don't use it.
769 * config/rx/rx-protos.h: Update.
770
771 * config/rx/rx-modes.def (CC_F): New mode.
772 * config/rx/rx.c (rx_select_cc_mode): New.
773 * config/rx/rx.h (SELECT_CC_MODE): Use it.
774 * config/rx/rx-protos.h: Update.
775
776 2011-01-17 Richard Henderson <rth@redhat.com>
777
778 * except.c (dump_eh_tree): Fix stray ; after for statement.
779
780 2011-01-17 Richard Guenther <rguenther@suse.de>
781
782 PR tree-optimization/47313
783 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
784 handling before copying the body. Properly deal with
785 by-reference result in SSA form.
786
787 2011-01-17 Ian Lance Taylor <iant@google.com>
788
789 PR target/47219
790 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
791 (struct_value_alias_set): Don't define.
792 (sparc_option_override): Don't set sparc_sr_alias_set and
793 struct_value_alias_set.
794 (save_or_restore_regs): Use gen_frame_mem rather than calling
795 set_mem_alias_set.
796 (sparc_struct_value_rtx): Likewise.
797
798 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
799
800 PR target/47318
801 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
802 __m128i.
803 (_mm_maskstore_pd): Likewise.
804 (_mm_maskload_ps): Likewise.
805 (_mm_maskstore_ps): Likewise.
806 (_mm256_maskload_pd): Change mask to __m256i.
807 (_mm256_maskstore_pd): Likewise.
808 (_mm256_maskload_ps): Likewise.
809 (_mm256_maskstore_ps): Likewise.
810
811 * config/i386/i386-builtin-types.def: Updated.
812 (ix86_expand_special_args_builtin): Likewise.
813
814 * config/i386/i386.c (bdesc_special_args): Update
815 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
816 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
817 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
818 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
819
820 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
821 Use <avxpermvecmode> on mask register.
822 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
823
824 2011-01-17 Olivier Hainque <hainque@adacore.com>
825 Michael Haubenwallner <michael.haubenwallner@salomon.at>
826 Eric Botcazou <ebotcazou@adacore.com>
827
828 PR target/46655
829 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
830 if <= USHRT_MAX in 32-bit mode.
831
832 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
833
834 * doc/install.texi (Configuration, Specific): Wrap long
835 lines in examples. Allow line wrapping in long options
836 and URLs where beneficial for PDF output.
837
838 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
839
840 * config/mips/mips.c (mips_classify_symbol): Don't return
841 SYMBOL_PC_RELATIVE for nonlocal labels.
842
843 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
844
845 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
846
847 2011-01-15 Jan Hubicka <jh@suse.cz>
848
849 PR tree-optimization/47276
850 * ipa.c (function_and_variable_visibility): Do not try to mark alias
851 declarations as needed.
852
853 2011-01-15 Martin Jambor <mjambor@suse.cz>
854
855 * common.opt (fdevirtualize): New flag.
856 * doc/invoke.texi (Option Summary): Document it.
857 * opts.c (default_options_table): Add devirtualize flag.
858 * ipa-prop.c (detect_type_change): Return immediately if
859 devirtualize flag is not set.
860 (detect_type_change_ssa): Likewise.
861 (compute_known_type_jump_func): Likewise.
862 (ipa_analyze_virtual_call_uses): Likewise.
863
864 2011-01-14 Martin Jambor <mjambor@suse.cz>
865
866 PR tree-optimization/45934
867 PR tree-optimization/46302
868 * ipa-prop.c (type_change_info): New type.
869 (stmt_may_be_vtbl_ptr_store): New function.
870 (check_stmt_for_type_change): Likewise.
871 (detect_type_change): Likewise.
872 (detect_type_change_ssa): Likewise.
873 (compute_complex_assign_jump_func): Check for dynamic type change.
874 (compute_complex_ancestor_jump_func): Likewise.
875 (compute_known_type_jump_func): Likewise.
876 (compute_scalar_jump_functions): Likewise.
877 (ipa_analyze_virtual_call_uses): Likewise.
878 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
879
880 2011-01-14 Joseph Myers <joseph@codesourcery.com>
881
882 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
883 * config/i386/i386.opt (msse5): New Alias.
884
885 2011-01-14 Joseph Myers <joseph@codesourcery.com>
886
887 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
888 * config/sparc/linux64.h (CC1_SPEC): Likewise.
889 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
890 * config/sparc/sparc.h (CC1_SPEC): Likewise.
891
892 2011-01-14 Joseph Myers <joseph@codesourcery.com>
893
894 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
895 -mcpu options.
896 * config/sparc/linux64.h (CC1_SPEC): Likewise.
897 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
898 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
899 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
900 Likewise.
901 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
902
903 2011-01-14 Joseph Myers <joseph@codesourcery.com>
904
905 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
906 -fvec-eabi.
907
908 2011-01-14 Mike Stump <mikestump@comcast.net>
909
910 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
911 * config/fr30/fr30.md: Likweise
912 (movsi_push): Likewise.
913 (movsi_pop): Likewise.
914 (enter_func): Likewise.
915 * config/moxie/moxie.md (movsi_push): Likewise.
916 (movsi_pop): Likewise.
917
918 2011-01-14 Joseph Myers <joseph@codesourcery.com>
919
920 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
921 %{no_archive} %{exact_version}.
922 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
923 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
924 %{no_archive} %{exact_version}.
925 * config/mips/openbsd.h (LINK_SPEC): Likewise.
926 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
927 * config/mips/vxworks.h: Likewise.
928
929 2011-01-14 Joseph Myers <joseph@codesourcery.com>
930
931 * config/microblaze/microblaze.h (ASM_SPEC): Remove
932 %{microblaze1}.
933
934 2011-01-14 Joseph Myers <joseph@codesourcery.com>
935
936 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
937 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
938
939 2011-01-14 Joseph Myers <joseph@codesourcery.com>
940
941 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
942 -nodefaultlib.
943
944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
945
946 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
947 for mcpu not cpu.
948 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
949 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
950 not cpu.
951 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
952 Don't handle -shlib.
953
954 2011-01-14 Joseph Myers <joseph@codesourcery.com>
955
956 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
957 (CC1_SPEC): Don't handle -profile.
958
959 2011-01-14 Joseph Myers <joseph@codesourcery.com>
960
961 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
962 * config/mips/mips.h (CC1_SPEC): Likewise.
963
964 2011-01-14 Joseph Myers <joseph@codesourcery.com>
965
966 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
967 * config/mips/mips.h (CC1_SPEC): Likewise.
968
969 2011-01-14 Joseph Myers <joseph@codesourcery.com>
970
971 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
972 * config/m32r/linux.h (LINK_SPEC): Likewise.
973 * config/mips/linux.h (LINK_SPEC): Likewise.
974 * config/mips/linux64.h (LINK_SPEC): Likewise.
975 * config/sparc/linux.h (LINK_SPEC): Likewise.
976 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
977 LINK_SPEC): Likewise.
978 * config/xtensa/linux.h (LINK_SPEC): Likewise.
979
980 2011-01-14 Joseph Myers <joseph@codesourcery.com>
981
982 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
983 %{version:-v}.
984 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
985
986 2011-01-14 Joseph Myers <joseph@codesourcery.com>
987
988 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
989 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
990
991 2011-01-14 Joseph Myers <joseph@codesourcery.com>
992
993 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
994
995 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
996
997 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
998 supports -Bstatic/-Bdynamic.
999 * configure: Regenerate.
1000
1001 2011-01-14 Jan Hubicka <jh@suse.cz>
1002 Jack Howarth <howarth@bromo.med.uc.edu>
1003
1004 PR target/46037
1005 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1006 when checking debug_info_level. Test write_symbols instead of
1007 debug_hooks->var_location when setting flag_var_tracking_uninit.
1008
1009 2011-01-14 Richard Guenther <rguenther@suse.de>
1010
1011 PR tree-optimization/47179
1012 * target.def (ref_may_alias_errno): New target hook.
1013 * targhooks.h (default_ref_may_alias_errno): Declare.
1014 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1015 (default_ref_may_alias_errno): New function.
1016 * target.h (struct ao_ref_s): Declare.
1017 * tree-ssa-alias.c: Include target.h.
1018 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1019 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1020 (targhooks.o): Likewise.
1021 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1022 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1023
1024 2011-01-14 Richard Guenther <rguenther@suse.de>
1025
1026 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1027
1028 2011-01-14 Richard Guenther <rguenther@suse.de>
1029
1030 PR tree-optimization/47280
1031 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1032 return CFG changes.
1033 (tree_ssa_forward_propagate_single_use_vars): Deal with
1034 CFG changes from associate_plusminus.
1035
1036 2011-01-14 Richard Guenther <rguenther@suse.de>
1037
1038 PR middle-end/47281
1039 Revert
1040 2011-01-11 Richard Guenther <rguenther@suse.de>
1041
1042 PR tree-optimization/46076
1043 * tree-ssa.c (useless_type_conversion_p): Conversions from
1044 unprototyped to empty argument list function types are useless.
1045
1046 2011-01-14 Richard Guenther <rguenther@suse.de>
1047
1048 PR tree-optimization/47286
1049 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1050
1051 2011-01-14 Martin Jambor <mjambor@suse.cz>
1052
1053 PR middle-end/46823
1054 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1055
1056 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1057
1058 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1059 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1060 * config/xtensa/xtensa.c (xtensa_libcall_value,
1061 xtensa_function_value_regno_p): New functions.
1062 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1063
1064 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1065
1066 PR c++/47213
1067 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1068 PE specific hook.
1069 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1070 New function prototype.
1071 * config/i386/winnt.c (i386_pe_assemble_visibility):
1072 Warn only if attribute was specified by user.
1073
1074 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1075
1076 PR target/47251
1077 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1078 floating point.
1079 (floatunsdidf2_fcfidu): Ditto.
1080
1081 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1082
1083 * config/s390/s390.c (print_operand_address): Replace 'error' with
1084 'output_operand_lossage'.
1085 (print_operand): Likewise.
1086
1087 2011-01-13 Jeff Law <law@redhat.com>
1088
1089 PR rtl-optimization/39077
1090 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1091 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1092 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1093 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1094 * gcse.c (prune_insertions_deletions): New function.
1095 (compute_pre_data): Use it.
1096
1097 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1098
1099 PR debug/PR46973
1100 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1101 static function.
1102 (prune_unused_types_mark): Use it.
1103
1104 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1105
1106 PR rtl-optimization/45352
1107 * sel-sched.c: Update copyright years.
1108 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1109 in the advancing loop when we have issued issue_rate insns.
1110
1111 2011-01-12 Richard Henderson <rth@redhat.com>
1112
1113 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1114 (TARGET_MD_ASM_CLOBBERS): New.
1115
1116 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1117 (TARGET_DELEGITIMIZE_ADDRESS): New.
1118
1119 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1120 (clzsi2, *bsch): New patterns.
1121
1122 * config/mn10300/mn10300.md (INT): New mode iterator.
1123 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1124
1125 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1126 flag_split_wide_types.
1127
1128 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1129 (mn10300_trampoline_init): Rewrite without a template, an immediate
1130 load and a direct branch.
1131 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1132
1133 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1134
1135 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1136 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1137 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1138 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1139
1140 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1141
1142 PR debug/47209
1143 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1144 of type.
1145
1146 2011-01-12 Jan Hubicka <jh@suse.cz>
1147
1148 PR driver/47244
1149 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1150 (PLUGIN_COND_CLOSE): New macro.
1151 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1152
1153 2011-01-12 Richard Guenther <rguenther@suse.de>
1154
1155 PR lto/47259
1156 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1157 register variables in a MEM_REF.
1158
1159 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1160
1161 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1162 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1163 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1164 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1165 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1166 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1167 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1168 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1169 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1170 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1171 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1172 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1173 * config/gnu-user.h: New. Copied from linux.h.
1174 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1175 GNU_USER_TARGET_STARTFILE_SPEC.
1176 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1177 GNU_USER_TARGET_ENDFILE_SPEC.
1178 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1179 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1180 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1181 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1182 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1183 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1184 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1185 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1186 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1187 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1188 * config/arm/linux-eabi.h (CC1_SPEC): Use
1189 GNU_USER_TARGET_CC1_SPEC.
1190 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1191 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1192 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1193 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1194 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1195 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1196 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1197 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1198
1199 2011-01-12 Richard Guenther <rguenther@suse.de>
1200
1201 PR other/46946
1202 * doc/invoke.texi (ffast-math): Document it is turned on
1203 with -Ofast.
1204
1205 2011-01-12 Jan Hubicka <jh@suse.cz>
1206
1207 PR tree-optimization/47233
1208 * opts.c (common_handle_option): Disable ipa-reference with profile
1209 feedback.
1210
1211 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1212
1213 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1214 error message.
1215
1216 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1217
1218 * c-parser.c (c_lex_one_token): Updated and reindented some
1219 comments. No changes in code.
1220
1221 2011-01-11 Ian Lance Taylor <iant@google.com>
1222
1223 * godump.c (go_output_var): Don't output the variable if there is
1224 already a type with the same name.
1225
1226 2011-01-11 Ian Lance Taylor <iant@google.com>
1227
1228 * godump.c (go_format_type): Don't generate float80.
1229
1230 2011-01-11 Richard Henderson <rth@redhat.com>
1231
1232 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1233 declaration. Rewrite for both speed and size.
1234 (mn10300_address_cost_1): Remove.
1235 (mn10300_register_move_cost): New.
1236 (mn10300_memory_move_cost): New.
1237 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1238 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1239 extensions, shifts, BSWAP, CLZ.
1240 (mn10300_wide_const_load_uses_clr): Remove.
1241 (TARGET_REGISTER_MOVE_COST): New.
1242 (TARGET_MEMORY_MOVE_COST): New.
1243 * config/mn10300/mn10300-protos.h: Update.
1244 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1245
1246 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1247 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1248 * config/mn10300/mn10300-protos.h: Update.
1249 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1250 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1251 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1252 (*test_int_bitfield, *test_byte_bitfield): Remove.
1253 (*bit_test, *subreg_bit_test): Remove.
1254 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1255
1256 * config/mn10300/constraints.md ("c"): Rename from "A".
1257 ("A", "D"): New constraint letters.
1258 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1259 (fmssf4, fnmasf4, fnmssf4): Likewise.
1260
1261 * config/mn10300/mn10300.md (isa): New attribute.
1262 (enabled): New attribute.
1263
1264 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1265 (abssf2, negsf2): Define only for hardware fp.
1266 (sqrtsf2): Reformat.
1267 (addsf3, subsf3, mulsf3): Merge expander and insn.
1268
1269 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1270 (DEBUGGER_AUTO_OFFSET): Remove.
1271 (DEBUGGER_ARG_OFFSET): Remove.
1272
1273 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1274 Emit register stores with the same offsets as the hardware.
1275 (mn10300_store_multiple_operation): Don't check that the register
1276 save offsets are monotonic.
1277 * config/mn10300/mn10300-protos.h: Update.
1278
1279 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1280
1281 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1282 in terms of the value on the stack, not the MDR register.
1283
1284 2011-01-11 Jan Hubicka <jh@suse.cz>
1285
1286 PR lto/45721
1287 PR lto/45375
1288 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1289 (symbol_alias_set_destroy, symbol_alias_set_contains,
1290 propagate_aliases_backward): Declare.
1291 * lto-streamer-out.c (struct sets): New sturcture.
1292 (trivally_defined_alias): New function.
1293 (output_alias_pair_p): Rewrite.
1294 (output_unreferenced_globals): Fix output of alias pairs.
1295 (produce_symtab): Likewise.
1296 * ipa.c (function_and_variable_visibility): Set weak alias destination
1297 as needed in lto.
1298 * varasm.c (symbol_alias_set_t): Remove.
1299 (symbol_alias_set_destroy): Export.
1300 (propagate_aliases_forward, propagate_aliases_backward): New functions
1301 based on ...
1302 (compute_visible_aliases): ... this one; remove.
1303 (trivially_visible_alias): New
1304 (trivially_defined_alias): New.
1305 (remove_unreachable_alias_pairs): Rewrite.
1306 (finish_aliases_1): Reorganize code checking if alias is defined.
1307 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1308 in LTO mode.
1309
1310 2011-01-11 Richard Guenther <rguenther@suse.de>
1311
1312 PR tree-optimization/46076
1313 * tree-ssa.c (useless_type_conversion_p): Conversions from
1314 unprototyped to empty argument list function types are useless.
1315
1316 2011-01-11 Richard Guenther <rguenther@suse.de>
1317
1318 PR middle-end/45235
1319 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1320 volatile MEMs as MEM_READONLY_P.
1321
1322 2011-01-11 Richard Guenther <rguenther@suse.de>
1323
1324 PR tree-optimization/47239
1325 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1326
1327 2011-01-11 Jeff Law <law@redhat.com>
1328
1329 PR tree-optimization/47086
1330 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1331 IVs from statements that might throw.
1332
1333 2011-01-10 Jan Hubicka <jh@suse.cz>
1334
1335 PR lto/45375
1336 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1337
1338 2011-01-10 Jan Hubicka <jh@suse.cz>
1339
1340 PR lto/45375
1341 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1342 when correcting profile.
1343
1344 2011-01-10 Jan Hubicka <jh@suse.cz>
1345
1346 PR lto/46083
1347 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1348 DECL_FINI_PRIORITY.
1349 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1350 Restore DECL_FINI_PRIORITY.
1351
1352 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1353
1354 * doc/gimple.texi: Fix quoting of multi-word return values in
1355 @deftypefn statements. Ensure presence of return value. Wrap
1356 overlong @deftypefn lines.
1357 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1358 descriptions of removed functions.
1359 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1360 of multi-word return value in @deftypefn statement.
1361
1362 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1363
1364 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1365 (Conditional Expressions, Logical Operators)
1366 (Statement and operand traversals): Do not indent smallexample
1367 code. Fix duplicate function argument in example.
1368
1369 2011-01-10 Jeff Law <law@redhat.com>
1370
1371 PR tree-optimization/47141
1372 * ipa-split.c (split_function): Handle case where we are
1373 returning a value and the return block has a virtual operand phi.
1374
1375 2011-01-10 Jan Hubicka <jh@suse.cz>
1376
1377 PR tree-optimization/47234
1378 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1379 (pass_feedback_split_functions): Declare.
1380 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1381 tree-profile.
1382 * ipa-split.c (gate_split_functions): Update comments; disable
1383 split-functions for profile_arc_flag and branch_probabilities.
1384 (gate_feedback_split_functions): New function.
1385 (execute_feedback_split_functions): New function.
1386 (pass_feedback_split_functions): New global var.
1387
1388 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 PR lto/46760
1391 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1392 calling gimple_call_set_cannot_inline.
1393
1394 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1395
1396 * config/darwin-sections.def: Remove unused section.
1397
1398 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1399
1400 PR c++/47218
1401 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1402
1403 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1404
1405 PR objc/47232
1406 * c-parser.c (c_parser_declaration_or_fndef): Improved
1407 error message.
1408
1409 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1410
1411 * config/i386/winnt.c (i386_pe_start_function): Make sure
1412 to switch back to function's section.
1413
1414 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1415
1416 PR gcc/46902
1417 PR testsuite/46912
1418 * plugin.c: Move include of dlfcn.h from here...
1419 * system.h: ... to here.
1420
1421 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1422
1423 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1424 file name.
1425 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1426 two extra empty pages in PDF output.
1427
1428 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1429
1430 PR objc/47078
1431 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1432 for error recovery purposes behave as if it was not specified so
1433 that the default type is usd.
1434
1435 2011-01-07 Jan Hubicka <jh@suse.cz>
1436
1437 PR tree-optmization/46469
1438 * ipa.c (function_and_variable_visibility): Clear needed flags on
1439 nodes with external decls; handle weakrefs merging correctly.
1440
1441 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1442
1443 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1444 not false.
1445
1446 2011-01-07 Jan Hubicka <jh@suse.cz>
1447
1448 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1449 and no longer claim that gold is required for linker plugin.
1450 * configure: Regenerate.
1451 * gcc.c (PLUGIN_COND): New macro.
1452 (LINK_COMMAND_SPEC): Use it.
1453 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1454 * config.in (HAVE_LTO_PLUGIN): New.
1455 * configure.ac (--with-lto-plugin): New parameter; autodetect
1456 HAVE_LTO_PLUGIN.
1457
1458 2011-01-07 Jan Hubicka <jh@suse.cz>
1459
1460 PR tree-optimization/46367
1461 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1462 when we can update original.
1463 (cgraph_mark_inline_edge): Sanity check.
1464 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1465
1466 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1467
1468 * config/spu/spu.h (ASM_COMMENT_START): Define.
1469
1470 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 PR driver/42445
1473 * gcc.c (%>S): New.
1474 (SWITCH_KEEP_FOR_GCC): Likewise.
1475 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1476 (do_spec_1): Handle "%>".
1477
1478 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1479
1480 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1481
1482 PR target/47201
1483 * config/i386/i386.c (ix86_delegitimize_address): If
1484 simplify_gen_subreg fails, return orig_x.
1485
1486 PR bootstrap/47187
1487 * value-prof.c (gimple_stringop_fixed_value): Handle
1488 lhs of the call properly.
1489
1490 2011-01-07 Jan Hubicka <jh@suse.cz>
1491
1492 PR lto/45375
1493 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1494
1495 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1496
1497 * target.def (function_switched_text_sections): New hook.
1498 * doc/tm.texi: Regenerated.
1499 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1500 * final.c (default_function_switched_text_sections): New.
1501 (final_scan_insn): Call function_switched_text_sections when a
1502 mid-function section change occurs.
1503 * output.h (default_function_switched_text_sections): Declare.
1504 * config/darwin-protos.h (darwin_function_switched_text_sections):
1505 Likewise.
1506 * config/darwin.c (darwin_function_switched_text_sections): New.
1507 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1508
1509 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1510
1511 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1512 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1513 the secondary code fragment when outputting for DWARF == 2.
1514
1515 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1516
1517 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1518 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1519 Remove.
1520 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1521 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1522
1523 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1524
1525 PR debug/46704
1526 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1527 when it is not empty.
1528
1529 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1530
1531 Bobcat Enablement
1532 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1533 (case ${target}): Add btver1.
1534 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1535 -march=native recognize btver1 processors.
1536 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1537 btver1 def_and_undef
1538 * config/i386/i386.c (struct processor_costs btver1_cost): New
1539 btver1 cost table.
1540 (m_BTVER1): New definition.
1541 (m_AMD_MULTIPLE): Includes m_BTVER1.
1542 (initial_ix86_tune_features): Add btver1 tune.
1543 (processor_target_table): Add btver1 entry.
1544 (static const char *const cpu_names): Add btver1 entry.
1545 (software_prefetching_beneficial_p): Add btver1.
1546 (ix86_option_override_internal): Add btver1 instruction sets.
1547 (ix86_issue_rate): Add btver1.
1548 (ix86_adjust_cost): Add btver1.
1549 * config/i386/i386.h (TARGET_BTVER1): New definition.
1550 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1551 (enum processor_type): Add PROCESSOR_BTVER1.
1552 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1553
1554 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1555
1556 PR target/43309
1557 * config/i386/i386.c (legitimize_tls_address)
1558 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1559 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1560 (tls_initial_exec_64_sun): New pattern.
1561
1562 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1563
1564 * doc/invoke.texi (Overall Options): Improve wording and markup
1565 of the description of -wrapper.
1566
1567 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1568
1569 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1570 rdynamic, threads): New Driver options.
1571
1572 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1573
1574 PR target/38118
1575 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1576 if coming from .tdata.
1577 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1578
1579 2011-01-06 Jan Hubicka <jh@suse.cz>
1580
1581 PR lto/47188
1582 * collect2.c (main): Do not enable LTOmode when plugin is active.
1583
1584 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1585
1586 PR other/45915
1587 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1588 --version output if supported.
1589 * configure: Regenerate.
1590
1591 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1592
1593 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1594 Driver options.
1595
1596 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1597
1598 PR c/47150
1599 * c-convert.c (convert): When converting a complex expression
1600 other than COMPLEX_EXPR to a different complex type, ensure
1601 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1602 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1603 when converting COMPLEX_TYPE.
1604
1605 2011-01-06 Ira Rosen <irar@il.ibm.com>
1606
1607 PR tree-optimization/47139
1608 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1609 only the last reduction value is used outside the loop. Update
1610 documentation.
1611
1612 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1613
1614 * config/rtems.opt: New.
1615 * config.gcc (*-*-rtems*): Use rtems.opt.
1616
1617 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1618
1619 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1620 processors do not support 3DNow instructions.
1621
1622 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1623
1624 * config/spu/spu.c (spu_option_override): Set parameter
1625 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1626
1627 2011-01-05 Jan Hubicka <jh@suse.cz>
1628
1629 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1630 at the command line.
1631
1632 2011-01-05 Martin Jambor <mjambor@suse.cz>
1633
1634 PR lto/47162
1635 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1636 deltas on streamed outgoing edges.
1637 (output_node_opt_summary): Output info for outgoing edges only when
1638 the node is in new parameter set.
1639 (output_cgraph_opt_summary): New parameter set, passed to the two
1640 aforementioned functions. Update its forward declaration and its
1641 callee too.
1642
1643 2011-01-05 Tom Tromey <tromey@redhat.com>
1644
1645 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1646 operator to c_finish_omp_atomic.
1647 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1648 (build_unary_op): Update.
1649 (build_modify_expr): Update.
1650 (build_asm_expr): Update.
1651
1652 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1653
1654 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1655 newly inserted insns.
1656 (pad_bb): Likewise.
1657 (spu_emit_branch_hint): Likewise.
1658 (insert_hbrp_for_ilb_runout): Likewise.
1659 (spu_machine_dependent_reorg): Call df_finish_pass after
1660 schedule_insns returns.
1661
1662 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1663
1664 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
1665
1666 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
1667
1668 PR tree-optimization/47005
1669 * tree-sra.c (struct access): Add 'non_addressable' bit.
1670 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
1671 (decide_one_param_reduction): Return 0 if the parameter is passed by
1672 reference and one of the accesses in the group is non_addressable.
1673
1674 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1675
1676 PR tree-optimization/47056
1677 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
1678 (mark_load): Likewise. Handle FUNCTION_DECL specially.
1679 (mark_store): Likewise. Pass STMT to ipa_record_reference.
1680
1681 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1682
1683 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
1684 initializer. Skip view conversions from aggregate types.
1685
1686 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
1687
1688 PR bootstrap/47055
1689 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
1690
1691 2011-01-04 Philipp Thomas <pth@suse.de>
1692
1693 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
1694 obvious typo.
1695
1696 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1697
1698 * function.c (thread_prologue_and_epilogue_insns): Do not crash
1699 on empty epilogue sequences.
1700
1701 2011-01-04 Joseph Myers <joseph@codesourcery.com>
1702
1703 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
1704 non-static): New Driver options.
1705
1706 2011-01-04 Jie Zhang <jie@codesourcery.com>
1707
1708 PR driver/47137
1709 * gcc.c (default_compilers[]): Set combinable field to 0
1710 for all assembly languages.
1711
1712 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
1713
1714 * config/mips/loongson3a.md: New file.
1715 * config/mips/mips.md: Include loongson3a.md.
1716 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
1717 TUNE_LOONGSON_3A.
1718
1719 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
1720
1721 PR middle-end/47017
1722 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
1723 instead of convert_memory_address_addr_space on the base expression.
1724
1725 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1726
1727 * config/spu/spu.c (spu_option_override): Update error text
1728 for bad -march= / -mtune= values.
1729
1730 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1731
1732 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
1733 if branch-hint optimization will be performed.
1734
1735 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1736
1737 PR tree-optimization/47148
1738 * ipa-split.c (split_function): Convert arguments to
1739 DECL_ARG_TYPE if possible.
1740
1741 PR tree-optimization/47155
1742 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
1743 when computing uns.
1744
1745 PR rtl-optimization/47157
1746 * combine.c (try_combine): If undobuf.other_insn becomes
1747 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
1748 and set *new_direct_jump_p too.
1749
1750 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
1751
1752 PR tree-optimization/47021
1753 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
1754
1755 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1756
1757 * gcc.c (process_command): Update copyright notice dates.
1758 * gcov.c (print_version): Likewise.
1759 * gcov-dump.c (print_version): Likewise.
1760 * mips-tfile.c (main): Likewise.
1761 * mips-tdump.c (main): Likewise.
1762
1763 2011-01-03 Martin Jambor <mjambor@suse.cz>
1764
1765 PR tree-optimization/46801
1766 * tree-sra.c (type_internals_preclude_sra_p): Check whether
1767 aggregate fields start at byte boundary instead of the bit-field flag.
1768
1769 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1770
1771 PR driver/47137
1772 * gcc.c (main): Revert revision 168407.
1773
1774 2011-01-03 Martin Jambor <mjambor@suse.cz>
1775
1776 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
1777
1778 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1779
1780 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
1781 vector optab to expand vector/scalar shift, update gimple to vector.
1782
1783 2011-01-03 Martin Jambor <mjambor@suse.cz>
1784
1785 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
1786 a thunk.
1787
1788 2011-01-03 Martin Jambor <mjambor@suse.cz>
1789
1790 PR tree-optimization/46984
1791 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
1792 HOST_WIDE_INT.
1793 (cgraph_create_indirect_edge): Fixed line length.
1794 (cgraph_indirect_call_info): Declare.
1795 (cgraph_make_edge_direct) Update declaration.
1796 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
1797 (cgraph_create_indirect_edge): Use it.
1798 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
1799 callees.
1800 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
1801 the new thunk_delta representation.
1802 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
1803 HOST_WIDE_INT.
1804 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
1805 (ipa_read_indirect_edge_info): Likewise.
1806 * lto-cgraph.c (output_edge_opt_summary): New function.
1807 (output_node_opt_summary): Call it on all outgoing edges.
1808 (input_edge_opt_summary): New function.
1809 (input_node_opt_summary): Call it on all outgoing edges.
1810
1811 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
1812
1813 PR driver/47137
1814 * gcc.c (main): Don't check have_o when settting combine_inputs.
1815
1816 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
1817
1818 * regrename.c: Add general comment describing the pass.
1819 (struct du_head): Remove 'length' field.
1820 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
1821 (regrename_optimize): Do not sort chains. Rework comments, add others.
1822 Force renaming to the preferred class (if any) in the first pass and do
1823 not consider registers that belong to it in the second pass.
1824 (create_new_chain): Do not set 'length' field.
1825 (scan_rtx_reg): Likewise.
1826
1827 2011-01-02 Jakub Jelinek <jakub@redhat.com>
1828
1829 PR tree-optimization/47140
1830 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
1831 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
1832 to bit_value_binop.
1833
1834 PR rtl-optimization/47028
1835 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
1836 parm_birth_insn instead of at the beginning of first bb.
1837
1838 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
1839
1840 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
1841 Remove the word "see" before "@pxref".
1842 * doc/rtl.texi: Remove the word "see" before "@pxref".
1843
1844 2011-01-01 Jan Hubicka <jh@suse.cz>
1845
1846 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
1847 memory.
1848
1849 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
1850
1851 PR target/38662
1852 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
1853
1854 \f
1855 Copyright (C) 2011 Free Software Foundation, Inc.
1856
1857 Copying and distribution of this file, with or without modification,
1858 are permitted in any medium without royalty provided the copyright
1859 notice and this notice are preserved.