OSDN Git Service

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