OSDN Git Service

dwarf2cfi: Convert queued_reg_save to a VEC.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-23  Richard Henderson  <rth@redhat.com>
2
3         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
4         (queued_reg_saves): Don't GTY.  Change to a VEC.
5         (queue_reg_save): Update to match.
6         (dwarf2out_flush_queued_reg_saves): Likewise.
7         (clobbers_queued_reg_save): Likewise.
8         (reg_saved_in): Likewise.
9         (execute_dwarf2_frame): Free queued_reg_saves.
10
11 2011-07-23  Richard Henderson  <rth@redhat.com>
12
13         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
14
15 2011-07-23  Richard Henderson  <rth@redhat.com>
16
17         * dwarf2cfi.c (add_cfi_args_size): Split out from...
18         (dwarf2out_args_size): ... here.
19         (add_cfi_restore): Split out from ...
20         (dwarf2out_frame_debug_cfa_restore): ... here.
21         (def_cfa_0): Split out from ...
22         (def_cfa_1): ... here.
23         (cfi_oprnd_equal_p, cfi_equal_p): New.
24         (change_cfi_row): New.
25         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
26         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
27         (output_cfis): Remove.
28         * dwarf2out.c (output_fde): Simplify output_cfi loop.
29         (dwarf2out_switch_text_section): Don't call output_cfis.
30         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
31         * dwarf2out.h: Update decls.
32         (enum dw_val_class): Add dw_val_class_none.
33
34 2011-07-23  Richard Henderson  <rth@redhat.com>
35
36         * dwarf2cfi.c (update_row_reg_save): New.
37         (dwarf2out_frame_debug_cfa_expression): Use it.
38         (dwarf2out_frame_debug_cfa_restore): Likewise.
39         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
40
41 2011-07-23  Richard Henderson  <rth@redhat.com>
42
43         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
44
45 2011-07-23  Richard Henderson  <rth@redhat.com>
46
47         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
48         (cie_cfi_row): New.
49         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
50         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
51         (cur_row, remember_row): New.
52         (def_cfa_1): Use cur_row instead of the old_* variables.
53         (dwarf2out_frame_debug_restore_state): Similarly.
54         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
55         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
56         (dwarf2out_frame_debug_adjust_cfa): Likewise.
57         (dwarf2out_frame_debug_cfa_offset): Likewise.
58         (dwarf2out_frame_debug_expr): Likewise.
59         (execute_dwarf2_frame): Set up cur_row.
60         * dwarf2out.h (struct cfa_loc): Mark for GTY.
61
62 2011-07-23  Richard Henderson  <rth@redhat.com>
63
64         * basic-block.h (EDGE_PRESERVE): New.
65         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
66         * bb-reorder.c: Include except.h.
67         (fix_up_crossing_landing_pad): New.
68         (find_rarely_executed_basic_blocks_and_crossing_edges): Place 
69         landing pads in the right partition.  Duplicate as necessary.
70         (partition_hot_cold_basic_blocks): Fix up DF info after
71         duplicating landing pads.
72         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
73         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
74         is set properly.  Validate that EH edges are not CROSSING.
75         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
76         (dw2_build_landing_pads): ... here.
77         (convert_to_eh_region_ranges): Remove code to fixup crossing
78         landing pads.
79         * except.h (expand_dw2_landing_pad_for_region): Declare.
80         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
81
82 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
83
84         PR target/49816
85         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
86
87 2011-07-22  Jason Merrill  <jason@redhat.com>
88
89         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
90
91 2011-07-22  Richard Henderson  <rth@redhat.com>
92
93         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
94
95 2011-07-22  Richard Henderson  <rth@redhat.com>
96
97         * jump.c (maybe_propagate_label_ref): Split out of...
98         (mark_all_labels): ... here.  Do not attempt label_ref
99         propagation while in cfglayout mode.
100
101 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
102
103         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
104         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
105         (dwarf_attr_name): Handle DW_AT_GNU_macros.
106         (dwarf2out_define): If the vector is empty and
107         lineno is 0, emit a dummy entry first.
108         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
109         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
110         optimize_macinfo_range): New functions.
111         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
112         mergeable, optimize longer strings using
113         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
114         optimize longer sequences of define/undef ops from headers
115         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
116         emit a section headers.
117         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
118         and macinfo_section_label to DEBUG_MACRO_SECTION
119         resp. DEBUG_MACRO_SECTION_LABEL.
120         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
121         instead of DW_AT_macro_info.
122
123         PR other/32998
124         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
125         options.
126         * dwarf2out.c: Include opts.h.
127         (dchar_p): New typedef.  Define heap VEC for it.
128         (producer_string): New variable.
129         (gen_producer_string): New function.
130         (gen_compile_unit_die): Use it.
131         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer
132         if needed.
133         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
134         * doc/invoke.texi: Document -grecord-gcc-switches and
135         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
136         to -frecord-gcc-switches description.
137
138 2011-07-22  Jason Merrill  <jason@redhat.com>
139
140         PR c++/30112
141         * c-decl.c (c_linkage_bindings): Define.
142
143 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
144
145         PR debug/49815
146         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
147
148 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
149
150         * config/i386/i386.c (ix86_option_override_internal): Disallow
151         MS ABI in x32 mode.
152         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
153         only for TARGET_LP64.
154         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of
155         TARGET_64BIT.
156
157 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
158
159         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
160         avoid warnings when GCC is built with a C++ compiler.
161
162 2011-07-22  Martin Jambor  <mjambor@suse.cz>
163
164         PR lto/49796
165         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
166         if decl node is in another partition, call cgraph_get_node only
167         once.
168
169 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
170
171         * config.gcc (x86_64-*-linux*): Set
172         default_gnu_indirect_function to yes.
173
174 2011-07-22  Richard Guenther  <rguenther@suse.de>
175
176         PR tree-optimization/45819
177         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
178         preserve volatile and notrap flags.
179
180 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
181             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
182
183         PR bootstrap/49794
184         * configure.ac: Test AM_ICONV with CXX.
185         * configure: Regenerate.
186         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
187
188 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
189
190         PR bootstrap/49797
191         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
192         (set_cloog_options): Use it.
193
194 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
195
196         PR c++/49756
197         * gcc.c (main): Call stack_limit_increase (64MB).
198         * toplev.c (toplev_main): Likewise.
199
200 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
201
202         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
203         instead of force_reg.
204
205 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
206
207         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
208         needed and use force_reg after convert.
209         (ix86_expand_call): Likewise.
210         (ix86_expand_special_args_builtin): Likewise.
211         (ix86_expand_builtin): Likewise.
212
213 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
214
215         PR middle-end/47654
216         PR middle-end/49649
217         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
218         in parameter.  Initialize v1 and v2 based on the values returned
219         by clast_name_to_lb_ub.
220         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
221         values.
222         (type_for_clast_bin): Same.
223         (type_for_clast_expr): Same.
224         (type_for_clast_eq): Update calls to type_for_clast_expr.
225         (type_for_clast_for): Same.
226         (build_iv_mapping): Same.
227         * graphite-ppl.h (value_min): New.
228
229 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
230
231         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
232         types whenever possible.
233
234 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
235
236         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
237         and ub fields.
238         (new_clast_name_index): Add lb and ub parameters.
239         (free_clast_name_index): New.
240         (clast_name_to_lb_ub): New.
241         (save_clast_name_index): Add lb and ub parameters.
242         (compute_bounds_for_param): New.
243         (type_for_level): Removed.
244         (type_for_clast_for): Removed level parameter.  Do not call
245         type_for_level.
246         (graphite_create_new_loop): Store the lb and ub for the clast_name
247         of the iterator of the loop that has been generated.
248         (graphite_create_new_loop_guard): Remove parameter level.
249         (create_params_index): Store the lb and ub of each parameter.
250         (gloog): Use free_clast_name_index.  Pass to create_params_index
251         the current scop.
252
253 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
254
255         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
256         (max_precision_type): Inline max_signed_precision_type.
257         (type_for_clast_red): Use max_precision_type.
258         (type_for_clast_bin): Same.
259         (type_for_clast_for): Same.
260
261 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
262
263         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
264         type_for_interval.
265         (gcc_type_for_value): Renamed type_for_value.
266         (gcc_type_for_clast_term): Renamed type_for_clast_term.
267         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
268         (gcc_type_for_clast_red): Renamed type_for_clast_red.
269         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
270         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
271         (graphite_translate_clast_equation): Update calls.
272         (compute_type_for_level): Renamed type_for_level.
273         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
274         (build_iv_mapping): Update calls.
275         (graphite_create_new_loop_guard): Same.
276
277 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
278
279         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
280         comment.
281
282 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
283
284         * graphite-clast-to-gimple.c (struct ivs_params): New.
285         (clast_name_to_gcc): Use ivs_params to pass around parameters.
286         (clast_to_gcc_expression): Same.
287         (clast_to_gcc_expression_red): Same.
288         (gcc_type_for_clast_term): Same.
289         (gcc_type_for_clast_expr): Same.
290         (gcc_type_for_clast_red): Same.
291         (gcc_type_for_clast_bin): Same.
292         (gcc_type_for_clast_eq): Same.
293         (graphite_translate_clast_equation): Same.
294         (graphite_create_guard_cond_expr): Same.
295         (graphite_create_new_guard): Same.
296         (graphite_create_new_loop): Same.
297         (build_iv_mapping): Same.
298         (translate_clast_user): Same.
299         (graphite_create_new_loop_guard): Same.
300         (translate_clast): Same.
301         (translate_clast_for_loop): Same.
302         (translate_clast_for): Same.
303         (translate_clast_guard): Same.
304         (initialize_cloog_names): Fix typo.
305         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
306
307 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
308
309         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
310         (new_clast_name_index): Add level parameter.
311         (clast_name_to_level): New.
312         (save_clast_name_index): Add level parameter.
313         (newivs_to_depth_to_newiv): Removed.
314         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
315         (graphite_create_new_loop): Add level parameter.  Pass level to
316         save_clast_name_index.
317         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
318         (create_params_index): Pass level to save_clast_name_index.
319
320 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
321
322         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
323         recompute type, lb, and ub.  Get them from...
324         (graphite_create_new_loop_guard): ...here.  Pass in parameter
325         pointers to type, lb, and ub.
326         (translate_clast_for_loop): Update function calls.
327         (translate_clast_for): Same.
328
329 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
330
331         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
332         psct_dynamic_dim.
333         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
334         (gcc_type_for_iv_of_clast_loop): Update use of level.
335         (gloog): Start counting nesting level from 0.
336         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
337         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
338         psct_dynamic_dim on level.
339
340 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
341
342         * config/i386/i386.c (ix86_legitimize_address): Convert to
343         Pmode if needed.
344
345 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
346
347         * config/i386/i386.c (function_value_64): Always return pointers
348         in Pmode.
349         (ix86_promote_function_mode): New.
350         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
351
352 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
353
354         PR tree-optimization/49749
355         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
356         remove no-longer-used maxrank variable.
357
358 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
359
360         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
361
362 2011-07-21  Jason Merrill  <jason@redhat.com>
363
364         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
365         * recog.h (struct insn_data_d): Check it instead of
366         HAVE_DESIGNATED_INITIALIZERS.
367         * genoutput.c (output_insn_data): Likewise.
368
369 2011-07-21  Richard Guenther  <rguenther@suse.de>
370
371         PR tree-optimization/49770
372         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
373         valueized any operand.  Renamed from ...
374         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
375         (valueize_shared_reference_ops_from_ref): Return whether we
376         valueized any operand.
377         (vn_reference_lookup): Only when we valueized any operand
378         use the valueized reference for alias analysis.  Do not preserve
379         the original reference tree in this case.
380
381 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
382
383         * config/i386/i386.c (ix86_decompose_address): Reject all but
384         register operands and subregs of DImode hard registers in index.
385
386 2011-07-21  Kai Tietz  <ktietz@redhat.com>
387
388         * fold-const.c (fold_unary_loc): Preserve indirect
389         comparison cast to none-boolean type.
390         * tree-ssa.c (useless_type_conversion_p): Preserve cast
391         from/to boolean-type.
392         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
393         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
394         * tree-cfg.c (verify_gimple_comparison): Check result
395         type of comparison expression.
396         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
397         of condition result and disallow type-cast sinking into comparison.
398
399 2011-07-21  Richard Guenther  <rguenther@suse.de>
400
401         * tree-ssa-forwprop.c (combine_conversions): Return whether
402         we have to run cfg-cleanup.  Properly remove dead stmts.
403         (ssa_forward_propagate_and_combine): Adjust.
404
405 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
406
407         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
408
409 2011-07-21  Kai Tietz  <ktietz@redhat.com>
410
411         * tree-ssa-propagate.c (substitute_and_fold): Use
412         do_dce flag to deside, if BB's statements are scanned
413         in last to first, or first to last order.
414
415 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
416
417         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
418
419 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
420             Uros Bizjak  <ubizjak@gmail.com>
421             Richard Henderson  <rth@redhat.com>
422
423         * config/i386/constraints.md (w): New.
424
425         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
426         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
427
428         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
429         instead of TARGET_64BIT.
430
431         * config/i386/i386.md (indirect_jump): Replace
432         nonimmediate_operand with indirect_branch_operand.
433         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
434         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
435         Convert operand 0 to Pmode for x32 if not PIC.
436         (*tablejump_1): Replace nonimmediate_operand with
437         indirect_branch_operand.  Replace constraint "m" with "w".
438         (*call_vzeroupper): Replace constraint "m" with "w".
439         (*call): Likewise.
440         (*call_rex64_ms_sysv_vzeroupper): Likewise.
441         (*call_rex64_ms_sysv): Likewise.
442         (*call_value_vzeroupper): Likewise.
443         (*call_value): Likewise.
444         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
445         (*call_value_rex64_ms_sysv): Likewise.
446         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
447
448         * config/i386/predicates.md (indirect_branch_operand): New.
449         (call_insn_operand): Support x32.
450
451 2011-07-20  Michael Eager  <eager@eagercon.com>
452
453         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
454
455 2011-07-20  Richard Henderson  <rth@redhat.com>
456
457         * cfg.c (dump_bb_info): Dump basic_block->flags.
458         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
459
460 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
461
462         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
463         of DImode hard registers in index.
464         (ix86_legitimate_address_p): Allow subregs of base and index to span
465         more than a word.  Assert that subregs of base and index satisfy
466         register_no_elim_operand predicates.  Reject addresses where
467         base and index have different modes.
468
469 2011-07-20  Robert Millan  <rmh@gnu.org>
470
471         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
472
473 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
474
475         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
476         removing now-unnecessary assignment.
477
478 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
479
480         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
481         memory address space to the type's address space.
482
483 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
484
485         PR target/36467
486         PR target/49687
487         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
488         and expand appropriately if there is a CONST_INT in operand2.
489         (usmulqihi3): New insn.
490         (*sumulqihi3): New insn.
491         (*osmulqihi3): New insn.
492         (*oumulqihi3): New insn.
493         (*muluqihi3.uconst): New insn_and_split.
494         (*muluqihi3.sconst): New insn_and_split.
495         (*mulsqihi3.sconst): New insn_and_split.
496         (*mulsqihi3.uconst): New insn_and_split.
497         (*mulsqihi3.oconst): New insn_and_split.
498         (*ashifthi3.signx.const): New insn_and_split.
499         (*ashifthi3.signx.const7): New insn_and_split.
500         (*ashifthi3.zerox.const): New insn_and_split.
501         (mulsqihi3): New insn.
502         (muluqihi3): New insn.
503         (muloqihi3): New insn.
504         * config/avr/predicates.md (const_2_to_7_operand): New.
505         (const_2_to_6_operand): New.
506         (u8_operand): New.
507         (s8_operand): New.
508         (o8_operand): New.
509         (s9_operand): New.
510         (register_or_s9_operand): New.
511
512 2011-07-20  Kai Tietz  <ktietz@redhat.com>
513
514         * builtins.c (fold_builtin_expect): See through the cast
515         from truthvalue_type_node to long.
516
517 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
518
519         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
520         where we can use them from the standard and altivec instruction
521         sets, instead of always using the 3 operand VSX forms that require
522         the destination to overlap one of the inputs.
523         (vsx_fms*): Ditto.
524         (vsx_fnma*): Ditto.
525         (vsx_fnms*): Ditto.
526
527         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
528         for DF types.
529         (fmsdf4_fpr): Ditto.
530         (nfmadf4_fpr): Ditto.
531         (nfmsdf4_fpr): Ditto.
532
533 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
534
535         * genrecog.c (make_insn_sequence): Correct position numbering
536         when filtering out match_scratch and match_dup.
537
538 2011-07-20  Richard Guenther  <rguenther@suse.de>
539
540         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
541         against already removed statements.
542         (forward_propagate_into_comparison): Remove dead defining stmts.
543         (forward_propagate_into_gimple_cond): Likewise.
544         (forward_propagate_into_cond): Simplify.
545         (ssa_forward_propagate_and_combine): Handle changed cfg from
546         forward_propagate_into_comparison.
547         * tree-ssa-phiopt.c (conditional_replacement): Use proper
548         locations for newly built statements.
549
550 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
551
552         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
553
554 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
555
556         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
557         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
558
559 2011-07-20  Richard Guenther  <rguenther@suse.de>
560
561         PR middle-end/18908
562         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
563         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
564         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
565
566 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
567
568         * config/frv/frv.c (frv_register_move_cost): Define explicitly
569         costs for subclasses of GR_REGS.
570
571 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
572
573         PR target/49780
574         * config/i386/predicates.md (no_seg_addres_operand): No more special.
575         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
576         of DImode hard registers in base.
577         (ix86_legitimate_address_p): Allow SImode and DImode base and index
578         registers.
579
580 2011-07-20  Richard Guenther  <rguenther@suse.de>
581
582         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
583         (unify_nodes): Deal with that.
584         (solve_graph): Likewise.
585
586 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
587
588         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
589         canonicalize left operand from ZERO_EXTEND to AND.
590
591 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
592
593         * target.def (class_max_nregs): New hook.
594         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
595         * doc/tm.texi: Regenerate.
596         * targhooks.c (default_class_max_nregs): New function.
597         * targhooks.h (default_class_max_nregs): Declare.
598         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
599         x_ira_reg_class_min_nregs arrays to unsigned char.
600         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
601         hook instead of CLASS_MAX_NREGS macro.
602         * reginfo.c (restore_register_info): Ditto.
603         * ira-conflicts.c (process_regs_for_copy): Use
604         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
605         Change type rclass and aclass vars to reg_class_t.
606         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
607         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
608         reg_class_t.
609         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
610         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
611
612         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
613         * config/i386/i386.c (ix86_class_max_nregs): New function.
614         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
615         instead of CLASS_MAX_NREGS macro.
616         (TARGET_CLASS_MAX_NREGS): Define.
617         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
618         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
619         * config/avr/avr.c (class_max_nregs): Remove function.
620         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
621         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
622         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
623         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
624         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
625         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
626         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
627         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
628         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
629         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
630         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
631         * config/score/score.h (CLASS_MAX_NREGS): Remove.
632         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
633         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
634         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
635
636 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
637
638         * cif-code.def (OVERWRITABLE): Fix typo and move around.
639         (TARGET_OPTIMIZATION_MISMATCH): Delete.
640         (EH_PERSONALITY): Fix typo.
641         (NON_CALL_EXCEPTIONS): Fix message.
642         (OPTIMIZATION_MISMATCH): Adjust message.
643         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
644
645 2011-07-19  Ian Lance Taylor  <iant@google.com>
646
647         * doc/install.texi (Configuration): Document
648         --enable-build-poststage1-with-cxx.
649
650 2011-07-19  Robert Millan  <rmh@gnu.org>
651
652         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
653         (GLIBC_DYNAMIC_LINKER): Remove.
654
655         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
656         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
657         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
658         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
659         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
660         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
661
662         * config/mips/linux.h: Remove everything except for ...
663         (GLIBC_DYNAMIC_LINKER): ... this macro.
664
665         * config/mips/linux64.h: Remove everything except for ...
666         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
667         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
668         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
669         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
670         (GNU_USER_LINK_EMULATIONN32): New macros.
671
672         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
673         Use the new headers.
674
675 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
676
677         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
678         Add offset_known_p and size_known_p fields.
679         (MEM_OFFSET_KNOWN_P): Update accordingly.
680         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
681         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
682         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
683         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
684         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
685         (init_emit_regs): Likewise.
686
687 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
688
689         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
690         (MEM_OFFSET): Change from returning an rtx to returning a
691         HOST_WIDE_INT.
692         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
693         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
694         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
695         (clear_mem_offset): Declare.
696         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
697         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
698         MEM_OFFSET to get a HOST_WIDE_INT offset.
699         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
700         (adjust_offset_for_component_ref): Take a bool "known_p"
701         parameter and a HOST_WIDE_INT "offset" parameter.
702         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
703         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
704         than an rtx.  Use clear_mem_offset to clear the offset.
705         * cfgcleanup.c (merge_memattrs): Likewise.
706         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
707         * function.c (assign_parm_find_stack_rtl): Likewise.
708         (assign_parm_setup_stack): Likewise.
709         * print-rtl.c (print_rtx): Likewise.
710         * reload.c (find_reloads_subreg_address): Likewise.
711         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
712         * var-tracking.c (INT_MEM_OFFSET): Likewise.
713         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
714         (get_mem_align_offset): Likewise.
715         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
716         (clear_mem_offset): New function.
717         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
718         offset rather than an rtx.  Assume both the expressio and offset
719         are available.
720         (r10k_needs_protection_p_1): Update accordingly, checking the
721         expression and offset availability here instead.
722
723 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
724
725         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
726         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
727         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
728         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
729         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
730         (clear_mem_size): Declare.
731         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
732         (clear_mem_size): New function.
733         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
734         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
735         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
736         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
737         to clear the size.
738         (nonoverlapping_memrefs_p): Likewise.
739         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
740         (expand_builtin_init_trampoline): Likewise.
741         * calls.c (compute_argument_addresses): Likewise.
742         * cfgcleanup.c (merge_memattrs): Likewise.
743         * dce.c (find_call_stack_args): Likewise.
744         * dse.c (record_store, scan_insn): Likewise.
745         * dwarf2out.c (dw_sra_loc_expr): Likewise.
746         * expr.c (emit_block_move_hints): Likewise.
747         * function.c (assign_parm_find_stack_rtl): Likewise.
748         * print-rtl.c (print_rtx): Likewise.
749         * reload.c (find_reloads_subreg_address): Likewise.
750         * rtlanal.c (may_trap_p_1): Likewise.
751         * var-tracking.c (track_expr_p): Likewise.
752         * varasm.c (assemble_trampoline_template): Likewise.
753         * config/arm/arm.c (arm_print_operand): Likewise.
754         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
755         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
756         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
757         (expand_constant_setmem_prologue): Likewise.
758         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
759         * config/rs6000/rs6000.c (expand_block_move): Likewise.
760         (adjacent_mem_locations): Likewise.
761         * config/s390/s390.c (s390_expand_setmem): Likewise.
762         (s390_expand_insv): Likewise.
763         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
764         (*extendqi<mode>2_short_displ): Likewise.
765         * config/sh/sh.c (expand_block_move): Likewise.
766         * config/sh/sh.md (extv, extzv): Likewise.
767
768 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
769
770         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
771         (mem_attrs_htab_eq): ...here.
772         (find_mem_attrs): Replace with...
773         (set_mem_attrs): ...this function.  Take a mem_attrs structure
774         rather than individual fields.
775         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
776         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
777         (set_mem_size, change_address, adjust_address_1, offset_address)
778         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
779         Update accordingly.
780
781 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
782
783         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
784         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
785         Provide a dummy definition of MEM_ADDR_SPACE for generators.
786         (target_rtl): Add x_mode_mem_attrs.
787         (mode_mem_attrs): New macro.
788         (get_mem_attrs): New function.
789         * emit-rtl.c (get_mem_attrs): Rename to...
790         (find_mem_attrs): ...this.
791         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
792         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
793         (set_mem_size, change_address, adjust_address_1, offset_address)
794         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
795         Update accordingly.
796         (init_emit_regs): Initialize mode_mem_attrs.
797
798 2011-07-19  Richard Guenther  <rguenther@suse.de>
799
800         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
801         TRUTH_*_EXPR handling.
802         * tree-ssa-operands.c (get_expr_operands): Likewise.
803         * tree-ssa-pre.c (fully_constant_expression): Likewise.
804         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
805         Likewise.
806         (is_and_or_or): Likewise.
807         (is_norm_cond_subset_of): Likewise.
808
809 2011-07-19  Richard Guenther  <rguenther@suse.de>
810
811         * tree.h (fold_build_pointer_plus_loc): New helper function.
812         (fold_build_pointer_plus_hwi_loc): Likewise.
813         (fold_build_pointer_plus): Define.
814         (fold_build_pointer_plus_hwi): Likewise.
815         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
816         (fold_builtin_memory_op): Likewise.
817         (fold_builtin_stpcpy): Likewise.
818         (fold_builtin_memchr): Likewise.
819         (fold_builtin_strstr): Likewise.
820         (fold_builtin_strchr): Likewise.
821         (fold_builtin_strrchr): Likewise.
822         (fold_builtin_strpbrk): Likewise.
823         (fold_builtin_strcat): Likewise.
824         (expand_builtin_memory_chk): Likewise.
825         (fold_builtin_memory_chk): Likewise.
826         * c-typeck.c (build_unary_op): Likewise.
827         * cgraphunit.c (thunk_adjust): Likewise.
828         * fold-const.c (build_range_check): Likewise.
829         (fold_binary_loc): Likewise.
830         * omp-low.c (extract_omp_for_data): Likewise.
831         (expand_omp_for_generic): Likewise.
832         (expand_omp_for_static_nochunk): Likewise.
833         (expand_omp_for_static_chunk): Likewise.
834         * tree-affine.c (add_elt_to_tree): Likewise.
835         * tree-data-ref.c (split_constant_offset_1): Likewise.
836         * tree-loop-distribution.c (generate_memset_zero): Likewise.
837         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
838         * tree-predcom.c (ref_at_iteration): Likewise.
839         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
840         (add_to_parts): Likewise.
841         (create_mem_ref): Likewise.
842         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
843         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
844         (number_of_iterations_le): Likewise.
845         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
846         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
847         (vect_create_addr_base_for_vector_ref): Likewise.
848         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
849         (vect_create_cond_for_alias_checks): Likewise.
850         * tree-vrp.c (extract_range_from_assert): Likewise.
851         * config/alpha/alpha.c (alpha_va_start): Likewise.
852         (alpha_gimplify_va_arg_1): Likewise.
853         * config/i386/i386.c (ix86_va_start): Likewise.
854         (ix86_gimplify_va_arg): Likewise.
855         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
856         * config/mep/mep.c (mep_expand_va_start): Likewise.
857         (mep_gimplify_va_arg_expr): Likewise.
858         * config/mips/mips.c (mips_va_start): Likewise.
859         (mips_gimplify_va_arg_expr): Likewise.
860         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
861         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
862         (rs6000_gimplify_va_arg): Likewise.
863         * config/s390/s390.c (s390_va_start): Likewise.
864         (s390_gimplify_va_arg): Likewise.
865         * config/sh/sh.c (sh_va_start): Likewise.
866         (sh_gimplify_va_arg_expr): Likewise.
867         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
868         * config/spu/spu.c (spu_va_start): Likewise.
869         (spu_gimplify_va_arg_expr): Likewise.
870         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
871         Likewise.
872         (xstormy16_gimplify_va_arg_expr): Likewise.
873         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
874         (xtensa_gimplify_va_arg_expr): Likewise.
875
876 2011-07-19  Richard Guenther  <rguenther@suse.de>
877
878         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
879         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
880         handling.
881
882         PR middle-end/18908
883         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
884         result of BIT_*_EXPR to bitfield precision.
885
886 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
887
888         PR tree-optimization/49742
889         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
890         as a potential write.
891
892 2011-07-19  Richard Guenther  <rguenther@suse.de>
893
894         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
895         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
896         (forward_propagate_comparison): Simplify, remove obsolete code.
897
898 2011-07-19  Richard Guenther  <rguenther@suse.de>
899
900         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
901         BIT_XOR_EXPR, same as the RTL expander does.
902         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
903         (verify_gimple_assign_unary): Likewise.
904         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
905         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
906         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
907
908 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
909
910         PR tree-optimization/49768
911         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
912         if offset is smaller than bitoffset, but offset+size is bigger
913         than bitoffset.
914
915 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
916
917         PR tree-optimization/49771
918         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
919         zero step, set segment length to the size of the data-ref's type.
920
921 2011-07-18  Martin Jambor  <mjambor@suse.cz>
922
923         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
924         comments.
925         (ipcp_values_pool): Declare.
926         (ipcp_sources_pool): Likewise.
927         (ipcp_lattice): Changed to forward declaration.
928         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
929         cannot_devirtualize.
930         (ipa_node_params): New fields descriptors, lattices, known_vals,
931         clone_for_all_contexts and node dead, removed fields params and
932         count_scale.
933         (ipa_set_param_count): Removed.
934         (ipa_get_param_count): Made to work with descriptors vector.
935         (ipa_get_param): Updated.
936         (ipa_param_cannot_devirtualize_p): Removed.
937         (ipa_param_types_vec_empty): Likewise.
938         (ipa_set_param_used): New function.
939         (ipa_get_param_used): Updated to use descriptors vector.
940         (ipa_func_list): Removed.
941         (ipa_init_func_list): Removed declaration.
942         (ipa_push_func_to_list_1): Likewise.
943         (ipa_pop_func_from_list): Likewise.
944         (ipa_push_func_to_list): Removed.
945         (ipa_lattice_from_jfunc): Remove declaration.
946         (ipa_get_jf_pass_through_result): Declare.
947         (ipa_get_jf_ancestor_result): Likewise.
948         (ipa_value_from_jfunc): Likewise.
949         (ipa_get_lattice): Update.
950         (ipa_lat_is_single_const): New function.
951         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
952         (ipa_init_func_list): Likewise.
953         (ipa_pop_func_from_list): Likewise.
954         (ipa_get_param_decl_index): Fix coding style.
955         (count_formal_params): Removed.
956         (count_formal_params_1): Renamed to count_formal_params.
957         (ipa_populate_param_decls): Update to use descriptors vector.
958         (ipa_initialize_node_params): Likewise.
959         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
960         (ipa_analyze_params_uses): Likewise.
961         (ipa_free_node_params_substructures): Likewise and free also lattices
962         and known values.
963         (duplicate_array): Removed.
964         (ipa_edge_duplication_hook): Add the new edge to the list of edge
965         clones.
966         (ipa_node_duplication_hook): Update to use new lattices.
967         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
968         (ipa_free_all_structures_after_iinln): Likewise.
969         (ipa_write_node_info): Update to use new lattices.
970         (ipa_read_node_info): Likewise.
971         (ipa_get_jf_pass_through_result): New function.
972         (ipa_get_jf_ancestor_result): Likewise.
973         (ipa_value_from_jfunc): Likewise.
974         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
975         * ipa-cp.c: Reimplemented.
976         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
977         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
978         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
979         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
980         * doc/invoke.texi (devirt-type-list-size): Removed description.
981         (ipa-cp-value-list-size): Added description.
982
983 2011-07-18  Richard Henderson  <rth@redhat.com>
984
985         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
986         before calling create_basic_block.
987
988 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
989
990         PR middle-end/49675
991         * tree.c (build_common_builtin_nodes): Register
992         __builtin_return_address, __cyg_profile_func_enter
993         and __cyg_profile_func_exit.
994
995 2011-07-18  Richard Henderson  <rth@redhat.com>
996
997         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
998         (add_labels_and_missing_jumps): ... here.
999         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
1000
1001 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
1002
1003         PR target/47744
1004         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1005         of DImode hard registers in PLUS address chains.
1006
1007 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1008
1009         PR bootstrap/49769
1010         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
1011         (alpha*-*-freebsd*): Likewise.
1012         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1013         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1014         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
1015         crtprec80.o, crtfastmath.o to extra_parts for all targets.
1016         (ia64*-*-elf*): Remove extra_parts.
1017         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
1018         (sparc64-*-linux*): Likewise.
1019         (sparc64-*-freebsd*): Likewise.
1020
1021         Revert:
1022         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
1023         (ia64*-*-linux*): Likewise.
1024         (mips64*-*-linux*): Likewise.
1025         (mips*-*-linux*): Likewise.
1026
1027 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
1028
1029         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
1030
1031 2011-07-18  Richard Guenther  <rguenther@suse.de>
1032
1033         * gimplify.c (gimplify_expr): Use input_location, not saved_location
1034         when building new trees.
1035
1036 2011-07-18  Richard Guenther  <rguenther@suse.de>
1037
1038         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
1039         expansion result to bitfield precision if required.
1040
1041 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1042
1043         * config.gcc (i[3456x]86-*-netware*): Remove.
1044
1045         * gthr-nks.h: Remove.
1046         * configure.ac (enable_threads): Remove nks.
1047         * configure: Regenerate.
1048
1049         * config/i386/i386.c (ix86_encode_section_info): Remove netware
1050         reference.
1051         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
1052         <netware.h> reference.
1053
1054         * config/i386/netware-libgcc.c,
1055         gcc/config/i386/netware-libgcc.def,
1056         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
1057         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
1058         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
1059         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
1060
1061         * doc/extend.texi (Function Attributes,
1062         callee_pop_aggregate_return): Remove i?86-netware reference.
1063         * doc/install.texi (Configuration, --enable-threads): Remove nks.
1064
1065 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1066
1067         PR target/49746
1068         Revert:
1069         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1070
1071         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1072         patterns.
1073
1074 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
1075
1076         PR middle-end/49732
1077         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1078
1079 2011-07-16  Matthias Klose  <doko@ubuntu.com>
1080
1081         * doc/install.texi: Document --enable-static-libjava.
1082
1083 2011-07-15  Richard Henderson  <rth@redhat.com>
1084
1085         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1086         Replace all three arguments by returning a VEC of edges.
1087         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
1088         pointers and counts.
1089         (fix_edges_for_rarely_executed_code): Merge ...
1090         (rest_of_handle_partition_blocks): ... into...
1091         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
1092         any work was performed.
1093         (pass_partition_blocks): Clear todo_flags_finish.
1094
1095 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
1096             Jakub Jelinek  <jakub@redhat.com>
1097             Jonathan Wakely  <jwakely.gcc@gmail.com>
1098
1099         PR libstdc++/49745
1100         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
1101         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
1102
1103 2011-07-15  Jason Merrill  <jason@redhat.com>
1104
1105         PR testsuite/49741
1106         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
1107         rather than --tool_opts.
1108
1109 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
1110
1111         * doc/plugins.texi (Building GCC plugins): gengtype needs its
1112         corresponding gtype.state.
1113
1114 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1115
1116         PR target/49723
1117         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1118
1119 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1120
1121         PR target/48220
1122         * doc/md.texi (Standard Names): Document window_save.
1123         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
1124         expand_debug_expr and expand_debug_source_expr.  If the target has
1125         a window_save instruction, adjust the ENTRY_VALUE_EXP.
1126         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
1127         SSA_NAME_VAR is a parameter.
1128         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
1129         * var-tracking.c (parm_reg_t): New type and associated vector type.
1130         (windowed_parm_regs): New variable.
1131         (adjust_insn): If the target has a window_save instruction and this
1132         is the instruction, make its effect on parameter registers explicit.
1133         (next_non_note_insn_var_location): New function.
1134         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
1135         (vt_add_function_parameter): If the target has a window_save insn,
1136         adjust the incoming RTL and record that in windowed_parm_regs.
1137         (vt_finalize): Free windowed_parm_regs.
1138
1139 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
1140
1141         * doc/invoke.texi (C6X Options): New section.
1142         * doc/md.texi (TI C6X family): New section.
1143         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
1144         tic6x-*-uclinux.
1145         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
1146         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
1147         Provide C6X definitions.
1148         * config/c6x/c6x.md: New file.
1149         * config/c6x/constraints.md: New file.
1150         * config/c6x/predicates.md: New file.
1151         * config/c6x/c6x-sched.md.in: New file.
1152         * config/c6x/c6x-sched.md: New file.
1153         * config/c6x/gensched.sh: New file.
1154         * config/c6x/c6x-mult.md.in: New file.
1155         * config/c6x/genmult.sh: New file.
1156         * config/c6x/c6x-mult.md: New file.
1157         * config/c6x/sync.md: New file.
1158         * config/c6x/c6x-protos.h: New file.
1159         * config/c6x/sfp-machine.h: New file.
1160         * config/c6x/c6x.c: New file.
1161         * config/c6x/c6x.h: New file.
1162         * config/c6x/crti.s: New file.
1163         * config/c6x/crtn.s: New file.
1164         * config/c6x/lib1funcs.asm: New file.
1165         * config/c6x/c6x-modes.def: New file.
1166         * config/c6x/genopt.sh: New file.
1167         * config/c6x/c6x.opt: New file.
1168         * config/c6x/c6x-tables.opt: New file.
1169         * config/c6x/c6x-opts.h: New file.
1170         * config/c6x/c6x-isas.def: New file.
1171         * config/c6x/elf.h: New file.
1172         * config/c6x/elf-common.h: New file.
1173         * config/c6x/uclinux-elf.h: New file.
1174         * config/c6x/t-c6x: New file.
1175         * config/c6x/t-c6x-elf: New file.
1176         * config/c6x/t-c6x-uclinux: New file.
1177         * config/c6x/t-c6x-softfp: New file.
1178         * config/c6x/gtd.c: New file.
1179         * config/c6x/gtf.c: New file.
1180         * config/c6x/ltd.c: New file.
1181         * config/c6x/ltf.c: New file.
1182         * config/c6x/ged.c: New file.
1183         * config/c6x/gef.c: New file.
1184         * config/c6x/led.c: New file.
1185         * config/c6x/lef.c: New file.
1186         * config/c6x/eqd.c: New file.
1187         * config/c6x/eqf.c: New file.
1188         * config/c6x/libgcc-c6xeabi.ver: New file.
1189
1190         Revert
1191         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
1192         PR rtl-optimization/11320
1193         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1194         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1195         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1196         current_sched_info->compute_jump_reg_dependencies. Record which
1197         registers are used and which registers are set by the jump.
1198         Clear deps->reg_conditional_sets after a barrier.
1199         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1200         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1201         (init_deps): Initialize reg_conditional_sets.
1202         (free_deps): Clear reg_conditional_sets.
1203         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1204         Mark registers live on entry of the fallthrough block and conditionally
1205         set as set by the jump. Mark registers live on entry of non-fallthrough
1206         blocks as used by the jump.
1207         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1208         Mark new parameters as unused.
1209
1210 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
1211
1212         PR tree-opt/49309
1213         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1214         Use fold_build2_loc instead of build2.
1215         Use the correct type for the new tree.
1216
1217 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1218
1219         PR rtl-optimization/11320
1220         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
1221         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
1222
1223 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
1224
1225         PR target/49487
1226         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1227         of REG.
1228         (*rotw<mode>): Use const_int_operand for operand2.
1229         Use match_scatch for operand3.
1230         (*rotb<mode>): Ditto
1231         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1232
1233 2011-07-14  Richard Guenther  <rguenther@suse.de>
1234
1235         PR tree-optimization/49651
1236         * tree-ssa-structalias.c (get_constraint_for_1): Properly
1237         handle dereferences with subvariables.
1238
1239 2011-07-14  Richard Guenther  <rguenther@suse.de>
1240
1241         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
1242         (fold_stmt_1): Do it here directly on gimple and as a first thing.
1243
1244 2011-07-14  Richard Guenther  <rguenther@suse.de>
1245
1246         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
1247         not bool_var when folding bool_var != 1 or bool_var == 0.
1248
1249 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1250
1251         * haifa-sched.c (schedule_insns): Remove outdated comment.
1252         (schedule_block): When computing a known value for TODO_SPEC,
1253         just set it rather than using logical operations.
1254         (try_ready): Likewise.  Use a local variable rather than a
1255         pointer to TODO_SPEC.  Reorder an if statement to move the
1256         easy case to the then block.
1257         * sched-deps.c (dep_spec_p): New static function.
1258         (update_dep): Use it to decide whether to call
1259         change_spec_dep_to_hard.
1260         (get_back_and_forw_lists): Use it.
1261         (sd_resolve_dep): Likewise.
1262         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
1263         (haifa_note_mem_dep): Likewise.
1264         (check_dep): Likewise.
1265         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
1266         (sched_free_deps): Free in two passes.
1267
1268 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
1269
1270         PR middle-end/49736
1271         * expr.c (all_zeros_p): Undo bogus part of last change.
1272
1273 2011-07-14  Matthias Klose <doko@ubuntu.com>
1274
1275         * doc/extend.texi (optimize attribute): Fix typo.
1276
1277 2011-07-14  Richard Guenther  <rguenther@suse.de>
1278
1279         * gimplify.c (gimplify_expr): Only do required conversions.
1280
1281 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
1282
1283         PR target/43746
1284         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
1285         i.e. use default_elf_select_section.
1286         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
1287         (READONLY_DATA_SECTION_ASM_OP): Remove.
1288         (TARGET_ASM_NAMED_SECTION): Move from here...
1289         * config/avr/avr.c: ...to here.
1290         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
1291         (avr_asm_named_section): Make static.
1292
1293 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1294
1295         PR bootstrap/49739
1296         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
1297         and crtfastmath.o for Linux/x86.
1298
1299 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1300
1301         * haifa-sched.c: Include "hashtab.h"
1302         (sched_no_dce): New global variable.
1303         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
1304         SHADOW_P): New macros.
1305         (last_clock_var, cycle_issued_insns): Move declarations.
1306         (must_backtrack): New static variable.
1307         (struct delay_pair): New structure.
1308         (delay_htab, delay_htab_i2): New static variables.
1309         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
1310         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
1311         functions.
1312         (dep_cost_1): If delay pairs exist, try to look up the insns and
1313         use the correct pair delay if we find them.
1314         (rank-for_schedule): Tweak priority for insns that must be scheduled
1315         soon to avoid backtracking.
1316         (queue_insn): Detect conditions which force backtracking.
1317         (ready_add): Likewise.
1318         (struct sched_block_state): Add member shadows_only_p.
1319         (struct haifa_save_data): New structure.
1320         (backtrack_queue): New static variable.
1321         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
1322         unschedule_insns_until, restore_last_backtrack_point,
1323         free_topmost_backtrack_point, free_backtrack_queue,
1324         estimate_insn_tick, estimate_shadow_tick): New functions.
1325         (prune_ready_list): New arg shadows_only_p.  All callers changed.
1326         If true, remove everything that isn't SHADOW_P.  Look up delay
1327         pairs and estimate ticks to avoid scheduling the first insn too early.
1328         (verify_shadows): New function.
1329         (schedule_block): Add machinery to enable backtracking.
1330         (sched_init): Take sched_no_dce into account when setting
1331         DF_LR_RUN_DCE.
1332         (free_delay_pairs): New function.
1333         (init_h_i_d): Initialize INSN_EXACT_TICK.
1334         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
1335         * sched-deps.c (sd_unresolve_dep): New function.
1336         * sched-int. (struct haifa_sched_info): New fields save_state
1337         and restore_state.
1338         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
1339         feeds_backtrack_insn and shadow_p.
1340         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
1341         (sched_no_dce): Declare variable.
1342         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
1343         sd_unresolve_dep): Declare functions.
1344         * modulo-sched.c (sms_sched_info): Clear the two new fields.
1345         * sched-rgn.c (rgn_const_sched_info): Likewise.
1346         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1347         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
1348         (ebb_sched_info): Add them for the two new fields.
1349         (add_deps_for_risky_insns): Call add_delay_dependencies.
1350
1351 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1352
1353         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
1354         Rename -mr11.
1355         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
1356         (rs6000_call_indirect_aix): Ditto.
1357         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
1358         (call_indirect_aix<ptrsize>_internal): Ditto.
1359         (call_indirect_aix<ptrsize>_nor11): Ditto.
1360         (call_indirect_aix<ptrsize>_internal2): Ditto.
1361         (call_value_indirect_aix<ptrsize>): Ditto.
1362         (call_value_indirect_aix<ptrsize>_internal): Ditto.
1363         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1364         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1365         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
1366
1367 2011-07-13  Jason Merrill  <jason@redhat.com>
1368
1369         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
1370
1371 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1372
1373         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
1374         * config/spu/spu.md ("clrsb<mode>2"): New expander.
1375
1376 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
1377
1378         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
1379         * configure: Regenerate.
1380
1381 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1382
1383         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1384         (asm_file_start): Remove.
1385         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1386         free_bb_for_insn around code that modifies insns before
1387         restarting df analysis.
1388
1389 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1390
1391         PR target/49541
1392         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
1393         (LINK_SPEC): ... here.
1394
1395 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1396
1397         * haifa-sched.c (struct sched_block_state): New.
1398         (schedule_block): Move some local variables into such a structure.
1399
1400 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1401
1402         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
1403         * config/i386/t-crtpc: Remove.
1404         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1405         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
1406         tmake_file.
1407         (x86_64-*-darwin*): Likewise.
1408         (i[34567]86-*-linux*): Likewise.
1409         (x86_64-*-linux*): Likewise.
1410
1411         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1412         Handle -mpc32, -mpc64, -mpc80.
1413
1414 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1415
1416         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1417         * config/alpha/t-crtfm: Remove.
1418         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1419         * config/i386/t-crtfm: Remove.
1420         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1421         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1422         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1423         * config/sparc/t-crtfm: Remove.
1424
1425         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1426         (alpha*-*-freebsd*): Likewise.
1427         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1428         (x86_64-*-darwin*): Likewise.
1429         (i[34567]86-*-linux*): Likewise.
1430         (x86_64-*-linux*): Likewise.
1431         (x86_64-*-mingw*): Likewise.
1432         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1433         (ia64*-*-freebsd*): Likewise.
1434         (ia64*-*-linux*): Likewise.
1435         (mips64*-*-linux*): Likewise.
1436         (mips*-*-linux*): Likewise.
1437         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1438         (sparc64-*-linux*): Likewise.
1439         (sparc64-*-freebsd*): Likewise.
1440
1441 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1442
1443         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1444         * config/darwin-crt3.c: Move to ../libgcc/config.
1445         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1446         ($(T)crt3$(objext)): Remove.
1447         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1448         ($(T)crt2$(objext)): Remove.
1449         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1450         (powerpc64-*-darwin*): Likewise.
1451
1452 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1453
1454         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1455
1456         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1457         (addsi_1_zext): This.
1458
1459 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1460
1461         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1462         * doc/tm.texi: Regenerate.
1463         * target.def (mergeable_rodata_prefix): New defhookpod.
1464         * varasm.c (mergeable_string_section, mergeable_constant_section):
1465         Use it. Allocate name with alloca.
1466
1467 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1468
1469         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1470
1471 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1472
1473         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1474         overlap check.
1475
1476 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1477
1478         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
1479         (count_type_elements): Delete.
1480         (complete_ctor_at_level_p): Declare.
1481         * expr.c (flexible_array_member_p): New function, split out from...
1482         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
1483         parameter with for_ctor_p.  When for_ctor_p is true, return the
1484         number of elements that should appear in the top-level constructor,
1485         otherwise return an estimate of the number of scalars.
1486         (categorize_ctor_elements): Replace p_must_clear with p_complete.
1487         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
1488         (complete_ctor_at_level_p): New function, borrowing union logic
1489         from old categorize_ctor_elements_1.
1490         (mostly_zeros_p): Return true if the constructor is not complete.
1491         (all_zeros_p): Update call to categorize_ctor_elements.
1492         * gimplify.c (gimplify_init_constructor): Update call to
1493         categorize_ctor_elements.  Don't call count_type_elements.
1494         Unconditionally prevent clearing for variable-sized types,
1495         otherwise rely on categorize_ctor_elements to detect
1496         incomplete initializers.
1497
1498 2011-07-13  Richard Guenther  <rguenther@suse.de>
1499
1500         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1501         the final type is integral.
1502
1503 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1504
1505         * sched-int.h (struct _dep): Add member cost.
1506         (DEP_COST, UNKNOWN_DEP_COST): New macros.
1507         * sched-deps.c (init_dep_1): Initialize DEP_COST.
1508         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1509         (sched_change_pattern): Reset it for dependent insns.
1510
1511 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1512
1513         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1514         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1515         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1516         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1517         (CRT0_S, MCRT0_S): Remove.
1518         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1519         Remove.
1520         (s-crt0): Remove.
1521         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1522
1523 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
1524
1525         * cse.c (insert_with_costs): Put semi-colon after empty loop body
1526         on the next line.
1527         * emit-rtl.c (push_to_sequence): Likewise.
1528         * haifa-sched.c (max_issue): Likewise.
1529         * matrix-reorg.c (add_allocation_site): Likewise.
1530         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1531         * reload.c (alternative_allows_const_pool_ref): Likewise.
1532         * sched-rgn.c (rgn_add_block): Likewise.
1533         (rgn_fix_recovery_cfg): Likewise.
1534         * tree.c (attribute_list_contained): Likewise.
1535
1536 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
1537
1538         * config/i386/i386.c: Tidy processor feature bitmasks.
1539         (m_P4_NOCONA): New.
1540
1541 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
1542
1543         PR rtl-opt/49474
1544         * cprop.c (find_implicit_sets): Correct the condition.
1545
1546 2011-07-12  Richard Henderson  <rth@redhat.com>
1547
1548         PR target/49713
1549         * dwarf2out.h (dwarf_frame_regnum): Remove.
1550         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
1551         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
1552         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1553         (execute_dwarf2_frame): Initialize them.
1554         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1555         users of the macros with the variables.
1556         (expand_builtin_dwarf_sp_column): Revert last change.
1557         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
1558         result of DWARF_FRAME_REGNUM into a local variable.
1559
1560 2011-07-12  Richard Henderson  <rth@redhat.com>
1561
1562         PR target/49714
1563         * config/i386/i386.c (x86_output_mi_thunk): Use
1564         machopic_indirect_call_target instead of machopic_indirection_name
1565         directly.
1566
1567 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
1568             Eric Botcazou  <ebotcazou@adacore.com>
1569
1570         * prefix.h: Wrap up in extern "C" block.
1571
1572 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
1573
1574         AMD bdver2 Enablement
1575         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1576         (case ${target}): Add bdver2.
1577         * config/i386/driver-i386.c (host_detect_local_cpu): Let
1578         -march=native recognize bdver2 processors.
1579         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1580         bdver2 def_and_undef
1581         * config/i386/i386.c (struct processor_costs bdver2_cost): New
1582         bdver2 cost table.
1583         (m_BDVER2): New definition.
1584         (m_AMD_MULTIPLE): Includes m_BDVER2.
1585         (initial_ix86_tune_features): Add bdver2 tuning.
1586         (processor_target_table): Add bdver2 entry.
1587         (static const char *const cpu_names): Add bdver2 entry.
1588         (ix86_option_override_internal): Add bdver2 instruction sets.
1589         (ix86_issue_rate): Add bdver2.
1590         (ix86_adjust_cost): Add bdver2.
1591         (has_dispatch): Add bdver2.
1592         * config/i386/i386.h (TARGET_BDVER2): New definition.
1593         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1594         (enum processor_type): Add PROCESSOR_BDVER2.
1595         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1596         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1597         description.
1598
1599 2011-07-12  Richard Henderson  <rth@redhat.com>
1600
1601         PR target/49714
1602         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1603         destination address in memory on some paths.
1604
1605 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
1606
1607         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1608         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1609         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1610         * function.c (locate_and_pad_parm): Take it into account.
1611         * target.def (function_arg_round_boundary): New hook.
1612         * targhooks.c (default_function_arg_round_boundary): New function.
1613         * targhooks.h (default_function_arg_round_boundary): Declare.
1614         * doc/tm.texi: Regenerate.
1615
1616 2011-07-12  Richard Guenther  <rguenther@suse.de>
1617
1618         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1619         Do not perform no-op changes.
1620
1621 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
1622
1623         * config/arm/predicates.md (neon_struct_operand): Make a normal
1624         predicate.
1625         (neon_struct_or_register_operand): New predicate.
1626         * config/arm/neon.md (movmisalign<mode>): Replace predicates
1627         with neon_struct_or_register_operand.
1628         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1629         neon_struct_operand instead of memory_operand.
1630
1631 2011-07-12  Martin Jambor  <mjambor@suse.cz>
1632
1633         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1634         * cgraph.c (cgraph_get_node_or_alias): Removed.
1635         (change_decl_assembler_name): Changed all calls to
1636         cgraph_get_node_or_alias to a call to cgraph_get_node.
1637         (cgraph_make_decl_local): Likewise.
1638         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1639         * varasm.c (default_binds_local_p_1): Likewise.
1640         (decl_binds_to_current_def_p): Likewise.
1641
1642 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
1643
1644         PR tree-optimization/49712
1645         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1646
1647 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
1648
1649         * genautomata.c (add_arc): Return void.  All callers changed.
1650         (make_automaton): Remove dead code.
1651
1652 2011-07-11  Richard Henderson  <rth@redhat.com>
1653
1654         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1655         (DW_FRAME_POINTER_REGNUM): New.
1656         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1657         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1658         (dwf_regno): New.
1659         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1660         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1661         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1662         Use it.
1663         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1664         * dwarf2out.h (dwarf_frame_regnum): New.
1665         (struct cfa_loc): Document the domain of the reg member.
1666
1667 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
1668
1669         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1670         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
1671
1672 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
1673
1674         PR debug/49676
1675         * dwarf2out.c (int_shift_loc_descriptor): New function.
1676         (int_loc_descriptor): If shorter, emit i as
1677         (i >> shift), shift, DW_OP_shl for suitable shift value.
1678         Similarly, try to optimize large negative values using
1679         DW_OP_neg of a positive value if shorter.
1680         (size_of_int_shift_loc_descriptor): New function.
1681         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1682         changes.
1683         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1684         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1685         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1686         is shorter.
1687         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1688         addend as added DW_OP_plus if it is shorter.
1689
1690 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1691
1692         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1693         (DTORS_SECTION_ASM_OP): Define.
1694
1695 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1696
1697         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1698         * config/t-dfprules: Move to ../libgcc/config.
1699         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1700         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1701         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1702         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1703         Likewise.
1704         (i[34567]86-*-cygwin*): Likewise.
1705         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
1706         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1707         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1708         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1709         D64PBIT_FUNCS, D128PBIT_FUNCS.
1710
1711 2011-07-11  Richard Guenther  <rguenther@suse.de>
1712
1713         * tree-vrp.c (simplify_conversion_using_ranges): Manually
1714         translate the source value-range through the conversion chain.
1715
1716 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
1717
1718         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1719
1720 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1721
1722         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1723         a bi-arch compiler defaulting to 31-bit. In this case:
1724         (tmake_file): Add s390/t-linux64.
1725         * doc/install.texi: Add s390-linux to the list of targets supporting
1726         --enable-targets=all.
1727
1728 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1729             Matthias Klose <doko@debian.org>
1730
1731         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1732         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1733         (tm_file): Add mips/linux64.h.
1734         (tmake_file): Add mips/t-linux64.
1735         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1736         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1737         instead of hardcoded mabi=n32.
1738         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1739         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1740         convention.
1741
1742 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1743
1744         * passes.c (init_optimization_passes): Add invariant motion pass
1745         after induction variable optimization.
1746
1747 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
1748
1749         PR target/39633
1750         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1751         offsets 1..5 set cc0 in a usable way.
1752
1753 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
1754
1755         * tree.h (call_expr_arg): Remove.
1756         (call_expr_argp): Likewise.
1757
1758 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
1759
1760         * config/sparc/sparc.md (save_register_window_1): Rename to...
1761         (window_save): ...this.
1762         * config/sparc/sparc.c (emit_save_register_window): Rename to...
1763         (emit_window_save): ...this.
1764         (sparc_expand_prologue): Adjust to above renaming.
1765
1766 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1767
1768         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1769         of movabs for x32.
1770
1771 2011-07-10  Richard Henderson  <rth@redhat.com>
1772
1773         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1774         run final, instead of emitting text directly.
1775
1776 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1777
1778         * config/i386/i386.c (ix86_option_override_internal): Turn on
1779         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
1780         small PIC models for TARGET_X32.
1781
1782 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
1783
1784         PR target/49684
1785         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1786         $(LIBGCC2_CFLAGS).
1787
1788         PR bootstrap/49680
1789         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1790         stray notes and debug insns by using prev_nonnote_nondebug_insn
1791         instead of PREV_INSN.
1792
1793 2011-07-09  Richard Henderson  <rth@redhat.com>
1794
1795         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1796         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1797         * dwarf2out.c: ... here.
1798         (output_all_cfis): Remove.
1799         (dwarf2out_switch_text_section): Use output_cfis directly.
1800         (size_of_locs): Export.
1801         (output_loc_sequence, output_loc_sequence_raw): Export.
1802         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1803         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1804         output_cfa_loc_raw): Move to ...
1805         * dwarfcfi.c: ... here.
1806         * dwarf2out.h: Update decls.
1807
1808 2011-07-09  Richard Henderson  <rth@redhat.com>
1809
1810         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1811         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1812         * dwarf2cfi.c: ... here.
1813         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1814         (DWARF_ROUND, DWARF_CIE_ID): Remove.
1815         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1816         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1817         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1818
1819 2011-07-09  Richard Henderson  <rth@redhat.com>
1820
1821         * dwarf2cfi.c (cie_return_save): New.
1822         (queue_reg_save): Use compare_reg_or_pc.
1823         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1824         (dwarf2out_frame_debug_expr): Likewise.
1825         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1826         (initial_return_save): Likewise.
1827         (execute_dwarf2_frame): Save and restore initial return save from
1828         the cie to the fde.
1829         * config/mips/mips.c (mips_frame_set): Remove special case for
1830         DWARF_FRAME_RETURN_COLUMN.
1831
1832 2011-07-09  Richard Henderson  <rth@redhat.com>
1833
1834         * dwarf2cfi.c (lookup_cfa): Remove.
1835         (execute_dwarf2_frame): Assert queues are empty on entry.
1836         Setup initial cfa directly, not via lookup_cfa.
1837         Don't clear args_size state here.
1838
1839 2011-07-09  Richard Henderson  <rth@redhat.com>
1840
1841         * dwarf2cfi.c (add_cfi_vec): New.
1842         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
1843         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
1844         (execute_dwarf2_frame): Set add_cfi_vec.
1845
1846 2011-07-09  Richard Henderson  <rth@redhat.com>
1847
1848         * defaults.h (ASM_COMMENT_START): Move here...
1849         * dwarf2asm.c: ... from here.
1850         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1851         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1852         * varasm.c: Likewise.
1853
1854 2011-07-09  Richard Henderson  <rth@redhat.com>
1855
1856         PR debug/49686
1857         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1858         (create_cfi_notes): ... do it here instead.
1859
1860 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
1861
1862         PR debug/49676
1863         * dwarf2out.c (size_of_int_loc_descriptor): New function.
1864         (address_of_int_loc_descriptor): Use it.
1865         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1866
1867 2011-07-09  Richard Henderson  <rth@redhat.com>
1868
1869         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1870         (prologue, epilogue): New.
1871         (return, *rts): New.
1872         (blockage, setd, seti): New.
1873         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1874         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1875         (pdp11_saved_regno): New.
1876         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1877         generate rtl instead of text.
1878         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1879         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
1880         * config/pdp11/pdp11-protos.h: Update.
1881
1882 2011-07-09  Richard Henderson  <rth@redhat.com>
1883
1884         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1885         try to insert an rtl prologue here.
1886         (rs6000_output_function_epilogue): Similarly.
1887         * config/rs6000/rs6000.md (prologue): Emit a barrier to
1888         satisfy !TARGET_SCHED_PROLOG.
1889         (epilogue, sibcall_epilogue): Likewise.
1890
1891 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
1892
1893         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1894         (FP_REG_P): Delete.
1895         (IN_OR_GLOBAL_P): Likewise.
1896
1897 2011-07-08  Jason Merrill  <jason@redhat.com>
1898
1899         PR c++/45437
1900         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1901         compound assignment.
1902
1903         * cgraph.c (cgraph_add_to_same_comdat_group): New.
1904         * cgraph.h: Declare it.
1905         * ipa.c (function_and_variable_visibility): Make sure thunks
1906         have the right visibility.
1907
1908 2011-07-08  Richard Henderson  <rth@redhat.com>
1909
1910         PR bootstrap/49680
1911         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1912         any tablejump vector.
1913
1914         PR bootstrap/49680
1915         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1916         end of the prologue.
1917
1918 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
1919
1920         PR target/49621
1921         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1922         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
1923         * config/rs6000/vector.md (vector_select_<mode>,
1924         vector_select_<mode>_uns): Change second operand of NE to
1925         CONST0_RTX (<MODE>mode) instead of const0_rtx.
1926         * config/rs6000/altivec.md (*altivec_vsel<mode>,
1927         *altivec_vsel<mode>_uns): Expect second operand of NE to be
1928         zero_constant of the corresponding vector mode.
1929         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1930         Likewise.
1931
1932 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1933
1934         * graphite-dependences.c (build_alias_set_powerset): Remove
1935         continue from loop, add one more assert.
1936
1937 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1938
1939         PR target/46779
1940         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1941         In particular, allow 8-bit values in r28 and r29.
1942         (avr_hard_regno_scratch_ok): Disallow any register that might be
1943         part of the frame pointer.
1944         (avr_hard_regno_rename_ok): Same.
1945         (avr_legitimate_address_p): Don't allow SUBREGs.
1946
1947 2011-07-08  Julian Brown  <julian@codesourcery.com>
1948
1949         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1950         big-endian mode.
1951         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1952         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1953         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1954         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1955         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1956         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1957         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1958         registers in big-endian mode.
1959
1960 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
1961
1962         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1963         in terms of another.
1964         (write_attr_value): Write a cast if necessary.
1965
1966         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1967         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1968         (REG_WORDS_BIG_ENDIAN): Document.
1969         * doc/tm.texi: Regenerate.
1970         * reload.c (operands_match_p): Take it into account.
1971         (reload_adjust_reg_for_mode): Likewise.
1972         * rtlanal.c (subreg_get_info): Likewise.
1973
1974 2011-07-08  Richard Guenther  <rguenther@suse.de>
1975
1976         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1977         folding.
1978
1979 2011-07-08  Kai Tietz  <ktietz@redhat.com>
1980
1981         * fold-const.c (fold_truth_andor): Factored out truth_andor
1982         label from fold_binary as function.
1983         (fold_binary_loc): Replace truth_andor lable
1984         by function fold_truth_andor.
1985
1986 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
1987
1988         PR middle-end/49519
1989         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1990         check if address is stored in register. If so - give up.
1991         (check_sibcall_argument_overlap_1): Do not perform check of
1992         overlapping when it is call to address.
1993
1994 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1995
1996         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1997         of magic '31'.
1998
1999 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
2000
2001         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
2002         GET_MODE_BITSIZE where appropriate.
2003         (widen_leading, expand_parity, expand_ctz, expand_ffs,
2004         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
2005         expand_float, expand_fix): Likewise.
2006         * expr.c (convert_move, convert_modes, expand_expr_real_2,
2007         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2008         * stor-layout.c (get_mode_bounds): Likewise.
2009         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
2010         Likewise.
2011         * convert.c (convert_to_integer): Likewise.
2012         * expmed.c (expand_shift_1): Likewise.
2013
2014         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
2015         a bitsize.
2016
2017         * optabs.c (expand_binop): Tighten conditions for doubleword
2018         expansions.
2019         (widen_bswap): Assert that mode bitsize and precision are the same.
2020         * stor-layout.c (get_best_mode): Skip modes that have lower
2021         precision than bitsize.
2022         * recog.c (simplify_while_replacing): Assert that bitsize and
2023         precision are the same.
2024
2025 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2026
2027         * Makefile.in (LIBGCOV): Remove.
2028         (libgcc.mvars): Remove LIBGCOV.
2029         * libgov.c: Move to ../libgcc.
2030
2031 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2032
2033         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
2034
2035 2011-07-08  Martin Jambor  <mjambor@suse.cz>
2036
2037         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
2038         is too big for total scalarization.
2039
2040 2011-07-07  Richard Henderson  <rth@redhat.com>
2041
2042         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
2043         (DBX_DEBUGGING_INFO): Undef.
2044
2045 2011-07-07  Richard Henderson  <rth@redhat.com>
2046
2047         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
2048         Handle some opcodes specially for debugging.
2049         * print-rtl.c: Include dwarf2out.h
2050         (print_rtx): Handle NOTE_INSN_CFI.
2051         * Makefile.in (print-rtl.o): Update.
2052
2053 2011-07-07  Richard Henderson  <rth@redhat.com>
2054
2055         * tree-pass.h (pass_dwarf2_frame): Declare.
2056         * passes.c (init_optimization_passes): Add it.
2057         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
2058         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
2059         make static, do not call add_cfis_to_fde.
2060         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
2061         dwarf2out_frame_init): Merge into...
2062         (execute_dwarf2_frame): ... here.  New function.
2063         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
2064         saved_do_cfi_asm to a tri-state variable.
2065         (gate_dwarf2_frame, pass_dwarf2_frame): New.
2066         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
2067         if it has yet to be done.  Don't call dwarf2cfi_function_init.
2068         * dwarf2out.h, debug.h: Update decls.
2069         * final.c (final_start_function): Don't call
2070         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
2071         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
2072         * toplev.c (lang_dependent_init): Likewise.
2073
2074 2011-07-07  Richard Henderson  <rth@redhat.com>
2075
2076         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
2077         FDE_TABLE_INCREMENT): Replace with...
2078         (fde_vec): ... this, a new vector.
2079         (current_fde): Remove.  Replace all users with cfun->fde.
2080         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
2081         (size_of_aranges, dwarf2out_finish): Likewise.
2082         (dwarf2out_alloc_current_fde): Break out from ...
2083         (dwarf2out_begin_prologue): ... here.
2084         (dwarf2out_frame_init): Remove.
2085         * dwarf2cfi.c: Update all users of current_fde.
2086         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
2087         * dwarf2out.h: Update decls.
2088         (dw_fde_node): Add fde_index member.
2089         * function.h (struct function): Add fde member.
2090
2091 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2092             Richard Henderson  <rth@redhat.com>
2093
2094         * dwarf2cfi.c (add_cfi): Remove.
2095         (dwarf2out_cfi_label): Remove force argument.  Only generate the
2096         label name.
2097         (add_fde_cfi): Simplify the different code paths.
2098         (add_cie_cfi): New.
2099         (old_cfa, old_cfa_remember): New.
2100         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
2101         (last_reg_save_label): Remove.
2102         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
2103         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2104         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2105         dwarf2out_frame_debug_cfa_expression,
2106         dwarf2out_frame_debug_cfa_restore,
2107         dwarf2out_frame_debug_cfa_window_save,
2108         dwarf2out_frame_debug_expr): Remove label parameter.
2109         (cfi_label_required_p, add_cfis_to_fde): New.
2110         (dwarf2out_frame_debug_after_prologue): New.
2111         (dwarf2cfi_frame_init): Initialize old_cfa.
2112         (dwarf2out_frame_debug_restore_state): Likewise.
2113         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
2114         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
2115         * final.c (final_start_function): Call
2116         dwarf2out_frame_debug_after_prologue.
2117
2118 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2119             Richard Henderson  <rth@redhat.com>
2120
2121         * dwarf2cfi.c (cfi_insn): New.
2122         (dwarf2out_cfi_label): Don't emit cfi label here.
2123         (add_fde_cfi): Create a NOTE_INSN_CFI.
2124         (dwarf2out_frame_debug): Setup cfi_insn.
2125         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
2126         (dwarf2out_cfi_begin_epilogue): Make static.
2127         (dwarf2out_frame_debug_restore_state): Make static.
2128         * dwarf2out.c (output_cfi_directive): Make static.
2129         (dwarf2out_emit_cfi): New.
2130         * dwarf2out.h: Update.
2131         * final.c (final): Remove CFI notes.
2132         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
2133         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
2134         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
2135         * insn-notes.def (NOTE_INSN_CFI): New.
2136         (NOTE_INSN_CFI_LABEL): New.
2137         * rtl.h (union rtunion_def): Add rt_cfi member.
2138         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
2139
2140 2011-07-07  Richard Henderson  <rth@redhat.com>
2141
2142         * dwarf2cfi.c: New file.
2143         * Makefile.in (OBJS): Add it.
2144         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
2145         * gengtype.c (open_base_files): Include dwarf2out.h.
2146         * coretypes.h (enum var_init_status): Move from ...
2147         * rtl.h: ... here.
2148         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
2149         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
2150         expand_builtin_dwarf_sp_column, init_return_column_size,
2151         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
2152         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
2153         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
2154         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
2155         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
2156         compute_barrier_args_size, dwarf2out_args_size,
2157         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
2158         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
2159         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
2160         queue_reg_save, dwarf2out_flush_queued_reg_saves,
2161         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
2162         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2163         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2164         dwarf2out_frame_debug_cfa_expression,
2165         dwarf2out_frame_debug_cfa_restore,
2166         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
2167         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
2168         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
2169         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
2170         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
2171         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
2172         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
2173         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
2174         dw_loc_descr_node): Move to dwarf2out.h.
2175         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
2176         mem_loc_descriptor): Export.
2177         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
2178         (dwarf2out_frame_init): Extract CIE generation code to
2179         dwarf2cfi_frame_init.
2180
2181 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
2182
2183         PR target/49660
2184         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
2185         MASK_V8PLUS, remove commented out flag and reorder.
2186
2187 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
2188
2189         PR c/49644
2190         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
2191         one non-complex and one complex argument, call c_save_expr on both
2192         operands.
2193
2194 2011-07-07  Martin Jambor  <mjambor@suse.cz>
2195
2196         PR middle-end/49495
2197         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
2198         (verify_cgraph_node): Some functinality moved to
2199         verify_edge_corresponds_to_fndecl, call it.
2200
2201 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2202
2203         * config.gcc (*local*): Remove.
2204         * doc/install-old.texi: Don't mention local configurations.
2205
2206 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
2207
2208         PR debug/49522
2209         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
2210         referencing debug insns that have been reset.
2211         (dead_debug_insert_before): Don't assert reg is non-NULL,
2212         instead return immediately if it is NULL.
2213
2214 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2215
2216         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2217
2218 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2219
2220         * hw-doloop.c: New file.
2221         * hw-doloop.h: New file.
2222         * Makefile.in (OBJS): Add hw-doloop.o.
2223         (hw-doloop.o): New rule.
2224         ($(obj_out_file)): Add hw-doloop.h dependency.
2225         * config/bfin/bfin.c: Include "hw-doloop.h".
2226         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
2227         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
2228         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
2229         type changed to hwloop_info.  Return bool, true if the loop was
2230         successfully optimized.  Remove code that was moved to
2231         hw-doloop.c, and adjust other parts.
2232         (hwloop_fail): New static function, containing parts that used
2233         to be in bfin_optimize_loop.
2234         (bfin_discover_loop, bfin_discover_loops, free_loops,
2235         bfin_reorder_loops): Remove.
2236         (hwloop_pattern_reg): New static function.
2237         (bfin_doloop_hooks): New variable.
2238         (bfin_reorg_loops): Remove most code, call reorg_loops.
2239         * config/bfin/bfin.md (doloop_end splitter): Also enable if
2240         loop counter is a memory_operand.
2241
2242 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2243
2244         * config.gcc: Support --with-multilib-list for x86 Linux targets.
2245
2246         * configure.ac: Mention x86-64 for --with-multilib-list.
2247         * configure: Regenerated.
2248
2249         * config/i386/gnu-user64.h (SPEC_64): Support x32.
2250         (SPEC_32): Likewise.
2251         (ASM_SPEC): Likewise.
2252         (LINK_SPEC): Likewise.
2253         (TARGET_THREAD_SSP_OFFSET): Likewise.
2254         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
2255         (SPEC_X32): New.
2256
2257         * config/i386/i386.h (TARGET_X32): New.
2258         (TARGET_LP64): New.
2259         (LONG_TYPE_SIZE): Likewise.
2260         (POINTER_SIZE): Likewise.
2261         (POINTERS_EXTEND_UNSIGNED): Likewise.
2262         (OPT_ARCH64): Support x32.
2263         (OPT_ARCH32): Likewise.
2264
2265         * config/i386/i386.opt (mx32): New.
2266
2267         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
2268         (GLIBC_DYNAMIC_LINKERX32): Likewise.
2269         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
2270         (GLIBC_DYNAMIC_LINKERX32): Likewise.
2271
2272         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
2273         (BIONIC_DYNAMIC_LINKERX32): Likewise.
2274         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
2275
2276         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
2277
2278         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
2279
2280         * doc/invoke.texi: Document -mx32.
2281
2282 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
2283
2284         * doc/invoke.texi (mwords-little-endian): Deprecate.
2285         * config/arm/arm.opt (mwords-little-endian): Likewise.
2286         * config/arm/arm.c (arm_option_override): Warn about the deprecation
2287         of -mwords-little-endian.
2288
2289 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
2290
2291         * reload1.c (choose_reload_regs): Use mode sizes to check whether
2292         an old reload register completely defines the required value.
2293
2294 2011-07-07  Richard Guenther  <rguenther@suse.de>
2295
2296         * fold-const.c (fold_unary_loc): Do not strip sign-changes
2297         for NEGATE_EXPR.
2298
2299 2011-07-07  Richard Guenther  <rguenther@suse.de>
2300
2301         * tree-vrp.c (simplify_conversion_using_ranges): New function.
2302         (simplify_stmt_using_ranges): Call it.
2303
2304 2011-07-07  Kai Tietz  <ktietz@redhat.com>
2305
2306         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
2307         (lookup_logical_inverted_value): Likewise.
2308         (simplify_bitwise_binary_1): Likewise.
2309         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
2310
2311 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2312
2313         * gcc.c (%[Spec]): Don't document.
2314         (struct spec_list): Update comment.
2315         (do_spec_1): Don't handle %[Spec].
2316         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
2317
2318 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2319
2320         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
2321         default based on TARGET_ASM_NAMED_SECTION.
2322         * common/common-target.def (have_named_sections): Default to true.
2323         * common/config/default-common.c: Don't include tm.h.
2324         * common/config/picochip/picochip-common.c
2325         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
2326         * common/config/m32c/m32c-common.c: Remove.
2327         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
2328         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2329         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2330         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2331         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2332         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2333         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2334
2335 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
2336
2337         PR middle-end/49640
2338         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
2339         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
2340
2341 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2342
2343         PR libmudflap/49550
2344         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
2345
2346 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2347
2348         PR target/39150
2349         * configure.ac (gcc_cv_as_hidden): Also accept
2350         x86_64-*-solaris2.1[0-9]*.
2351         (gcc_cv_as_cfi_directive): Likewise.
2352         (gcc_cv_as_comdat_group_group): Likewise.
2353         (set_have_as_tls): Likewise.
2354         * configure: Regenerate.
2355         * config.gcc (i[34567]86-*-solaris2*): Also handle
2356         x86_64-*-solaris2.1[0-9]*.
2357         * config.host (i[34567]86-*-solaris2*): Likewise.
2358         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
2359         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
2360         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
2361         (TARGET_LD_EMULATION): Use it.
2362         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
2363         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
2364         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
2365         (ASM_CPU64_DEFAULT_SPEC): Define.
2366         (ASM_CPU_SPEC): Use %(asm_cpu_default).
2367         (ASM_SPEC): Redefine.
2368         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
2369         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
2370         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
2371         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
2372         configuration.
2373         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
2374
2375 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2376
2377         * config/sol2.h (ASM_SPEC): Split into ...
2378         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
2379         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
2380         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
2381         (ASM_SPEC): Use ASM_SPEC_BASE.
2382         * config/sparc/sol2.h (ASM_SPEC): Redefine.
2383
2384 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
2385
2386         * config/avr/avr.md (*reload_insi): Change predicate #1 to
2387         const_int_operand.  Ditto for peep2 producing this insn.
2388         Add argument to output_reload_insisf call.
2389         (*movsi,*movsf): Add argument to output_movsisf call.
2390         (*reload_insf): New insn and new peep2 to produce it.
2391         * config/avr/avr-protos.h (output_movsisf): Change prototype.
2392         (output_reload_insisf): Change prototype.
2393         * config/avr/avr.c (avr_asm_len): New function.
2394         (output_reload_insisf): Rewrite.
2395         (output_movsisf): Change prototype.  output_reload_insisf for
2396         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
2397         (adjust_insn_length): Add argument to output_movsisf and
2398         output_reload_insisf call.
2399
2400 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2401
2402         * emit-rtl.c (paradoxical_subreg_p): New function.
2403         * rtl.h (paradoxical_subreg_p): Declare.
2404         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
2405         apply_distributive_law, simplify_comparison, simplify_set): Use it.
2406         * cse.c (record_jump_cond, cse_insn): Likewise.
2407         * expr.c (force_operand): Likewise.
2408         * rtlanal.c (num_sign_bit_copies1): Likewise.
2409         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
2410         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
2411         (push_reload): Use precision to check for paradoxical subregs.
2412         * expmed.c (extract_bit_field_1): Likewise.
2413
2414         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2415         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2416         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2417         simplify_set, simplify_logical, expand_compound_operation,
2418         make_extraction, force_to_mode, if_then_else_cond, extended_count,
2419         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2420         record_value_for_reg): Likewise.
2421         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2422         * simplify-rtx. c (simplify_unary_operation_1,
2423         simplify_binary_operation_1, simplify_const_relational_operation):
2424         Likewise.
2425
2426         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2427         instead of GET_MODE_BITSIZE where appropriate.
2428         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2429         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2430         init_num_sign_bit_copies_in_rep): Likewise.
2431         * cse.c (fold_rtx, cse_insn): Likewise.
2432         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2433         * simplify-rtx.c (simplify_unary_operation_1,
2434         simplify_const_unary_operation, simplify_binary_operation_1,
2435         simplify_const_binary_operation, simplify_ternary_operation,
2436         simplify_const_relational_operation, simplify_subreg): Likewise.
2437         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2438         simplify_if_then_else, simplify_set, expand_compound_operation,
2439         expand_field_assignment, make_extraction, if_then_else_cond,
2440         make_compound_operation, force_to_mode, make_field_assignment,
2441         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2442         extended_count, try_widen_shift_mode, simplify_shift_const_1,
2443         simplify_comparison, record_promoted_value, simplify_compare_const,
2444         record_dead_and_set_regs_1): Likewise.
2445
2446         Revert:
2447         * simplify-rtx.c (simplify_const_binary_operation): Use the
2448         shift_truncation_mask hook instead of performing modulo by width.
2449         Compare against mode precision, not bitsize.
2450         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2451         Use shift_truncation_mask instead of constructing the value manually.
2452
2453 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2454
2455         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2456         declaration.
2457         (rs6000_save_toc_in_prologue_p): Ditto.
2458
2459         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2460         up the static chain (r11) during indirect function calls.
2461         (-msave-toc-indirect): New undocumented debug switch.
2462
2463         * config/rs6000/rs6000.c (struct machine_function): Add
2464         save_toc_in_prologue field to note whether the prologue needs to
2465         save the TOC value in the reserved stack location.
2466         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
2467         to save the TOC in the prologue, do so.
2468         (rs6000_trampoline_init): Don't allow creating AIX style
2469         trampolines if -mno-r11 is in effect.
2470         (rs6000_call_indirect_aix): New function to create AIX style
2471         indirect calls, adding support for -mno-r11 to suppress loading
2472         the static chain, and saving the TOC in the prologue instead of
2473         the call body.
2474         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2475         TOC in the prologue.
2476
2477         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2478         register numbers.
2479         (TOC_REGNUM): Ditto.
2480         (STATIC_CHAIN_REGNUM): Ditto.
2481         (ARG_POINTER_REGNUM): Ditto.
2482         (SFP_REGNO): Delete, unused.
2483         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2484         function descriptor offsets.
2485         (TOC_SAVE_OFFSET_64BIT): Ditto.
2486         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2487         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2488         (AIX_FUNC_DESC_SC_32BIT): Ditto.
2489         (AIX_FUNC_DESC_SC_64BIT): Ditto.
2490         (ptrload): New mode attribute for the appropriate load of a pointer.
2491         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2492         (call_indirect_aix64): Ditto.
2493         (call_value_indirect_aix32): Ditto.
2494         (call_value_indirect_aix64): Ditto.
2495         (call_indirect_nonlocal_aix32_internal): Ditto.
2496         (call_indirect_nonlocal_aix32): Ditto.
2497         (call_indirect_nonlocal_aix64_internal): Ditto.
2498         (call_indirect_nonlocal_aix64): Ditto.
2499         (call): Rewrite AIX indirect function calls.  Add support for
2500         eliminating the static chain, and for moving the save of the TOC
2501         to the function prologue.
2502         (call_value): Ditto.
2503         (call_indirect_aix<ptrsize>): Ditto.
2504         (call_indirect_aix<ptrsize>_internal): Ditto.
2505         (call_indirect_aix<ptrsize>_internal2): Ditto.
2506         (call_indirect_aix<ptrsize>_nor11): Ditto.
2507         (call_value_indirect_aix<ptrsize>): Ditto.
2508         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2509         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2510         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2511         (call_nonlocal_aix32): Relocate in the rs6000.md file.
2512         (call_nonlocal_aix64): Ditto.
2513
2514         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2515         -mno-r11 documentation.
2516
2517 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2518
2519         PR other/49658
2520         * doc/extend.texi (Compound Literals): Fix typo.
2521
2522 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
2523
2524         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2525
2526 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
2527
2528         * configure.ac (plugin-version.h): Generate
2529         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2530         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2531         macros.
2532
2533         * configure: Regenerate.
2534
2535         * doc/plugins.texi (Building GCC plugins): Mention
2536         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2537
2538 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2539
2540         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2541         * combine.c (make_extraction, gen_lowpart_or_truncate,
2542         apply_distributive_law, simplify_comparison,
2543         reg_truncated_to_mode, record_truncated_value): Use it.
2544         * cse.c (notreg_cost): Likewise.
2545         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2546         * expr.c (convert_move, convert_modes): Likewise.
2547         * optabs.c (expand_binop, expand_unop): Likewise.
2548         * postreload.c (move2add_last_label): Likewise.
2549         * regmove.c (optimize_reg_copy_3): Likewise.
2550         * rtlhooks.c (gen_lowpart_general): Likewise.
2551         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2552
2553 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
2554
2555         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2556
2557 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2558
2559         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2560         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2561         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2562         (simplify_const_unary_operation, simplify_binary_operation_1,
2563         simplify_const_binary_operation, simplify_const_relational_operation):
2564         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
2565         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2566         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2567         simplify_shift_const_1, simplify_comparison): Likewise.
2568         * expr.c (convert_modes): Likewise.
2569         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2570         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2571         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2572
2573         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2574
2575 2011-07-06  Richard Guenther  <rguenther@suse.de>
2576
2577         PR tree-optimization/49645
2578         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2579         register variables.
2580         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2581         in type qualification here ...
2582         (copy_reference_ops_from_ref): ... not here.
2583         (vn_reference_lookup_3): ... or here.
2584         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2585         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2586
2587 2011-07-06  Ian Lance Taylor  <iant@google.com>
2588
2589         * doc/install.texi (Configuration): It's
2590         --enable-gnu-indirect-function, not --enable-indirect-function.
2591
2592 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2593
2594         * simplify-rtx.c (simplify_const_binary_operation): Use the
2595         shift_truncation_mask hook instead of performing modulo by width.
2596         Compare against mode precision, not bitsize.
2597         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2598         Use shift_truncation_mask instead of constructing the value manually.
2599
2600 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2601
2602         PR middle-end/47383
2603         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2604         address computation and convert to address_mode if needed.
2605
2606 2011-07-06  Richard Guenther  <rguenther@suse.de>
2607
2608         * tree.c (build_common_tree_nodes_2): Merge with
2609         build_common_tree_nodes.
2610         * tree.h (build_common_tree_nodes): Adjust prototype.
2611         (build_common_tree_nodes_2): Remove.
2612         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2613         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2614
2615 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
2616
2617         PR tree-optimization/49618
2618         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2619         t recurse on the decl.
2620         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2621         return true if expr isn't known to be defined in current
2622         TU or some other LTO partition.
2623
2624 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2625
2626         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2627         override CASE_VALUES_THRESHOLD.
2628
2629         * stmt.c (toplevel): Include params.h.
2630         (case_values_threshold): Use the --param case-values-threshold
2631         value if non-zero, otherwise use machine dependent value.
2632         (expand_case): Use case_values_threshold.
2633
2634         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2635
2636         * doc/invoke.texi (--param case-values-threshold): Document.
2637
2638 2011-07-05  Richard Henderson  <rth@redhat.com>
2639
2640         * dwarf2out.c (dwarf2out_cfi_label): Make static.
2641         (dwarf2out_flush_queued_reg_saves): Make static.
2642         (dwarf2out_reg_save): Remove.
2643         (dwarf2out_return_save): Remove.
2644         (dwarf2out_return_reg): Remove.
2645         (dwarf2out_reg_save_reg): Remove.
2646         (dwarf2out_def_cfa): Merge into ...
2647         (dwarf2out_frame_init): ... here.
2648         * dwarf2out.h, tree.h: Remove declarations as necessary.
2649
2650 2011-07-05  Richard Henderson  <rth@redhat.com>
2651
2652         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2653         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2654         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2655         the alloc insn.
2656
2657         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2658         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2659         (process_epilogue): Don't call dwarf2out_def_cfa.
2660
2661         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2662         indicate the return address save.
2663         (process_cfa_register): Likewise.
2664
2665         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2666         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2667
2668         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2669         for ar.pfs save at alloc insn.
2670
2671 2011-07-05  Richard Henderson  <rth@redhat.com>
2672
2673         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2674         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2675         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2676         stack pointer save.
2677         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2678         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
2679         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2680         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2681
2682 2011-07-05  Richard Henderson  <rth@redhat.com>
2683
2684         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
2685         VUNSPEC_* constants here instead of via define_constants.
2686         (VUNSPEC_PEM): New constant.
2687         (procedure_entry_mask): New insn.
2688         (prologue): New expander.
2689         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2690         (vax_expand_prologue): Rename from vax_output_function_prologue;
2691         emit rtl instead of text.
2692         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2693         (print_operand): Add 'x' prefix.
2694
2695 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2696
2697         PR middle-end/47715
2698         * calls.c (precompute_register_parameters): Promote the function
2699         argument before checking non-legitimate constant.
2700
2701 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2702
2703         PR tree-optimization/47654
2704         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2705         (lst_do_strip_mine_loop): Return an int.
2706         (lst_do_strip_mine): Same.
2707         (scop_do_strip_mine): Same.
2708         (scop_do_block): Loop blocking should strip-mine at least two loops.
2709         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2710         (scop_do_interchange): Same.
2711         * graphite-poly.h (scop_do_interchange): Update declaration.
2712         (scop_do_strip_mine): Same.
2713
2714 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2715
2716         * graphite-clast-to-gimple.c (precision_for_value): Removed.
2717         (precision_for_interval): Removed.
2718         (gcc_type_for_interval): Use mpz_sizeinbase.
2719
2720 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2721
2722         * graphite-ppl.h (value_max): Correct computation of max.
2723
2724 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2725
2726         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2727
2728 2011-07-05  Richard Guenther  <rguenther@suse.de>
2729
2730         * c-decl.c (c_init_decl_processing): Defer building common
2731         tree nodes to c_common_nodes_and_builtins.
2732
2733 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
2734
2735         PR tree-optimization/49580
2736         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2737         the loop's number of iterations.
2738         * tree-parloops.c (transform_to_exit_first_loop): Add the
2739         handling of the loop's number of iterations before the call
2740         to gimple_duplicate_sese_tail.
2741         Insert the stmt caclculating the new rhs of the loop's
2742         condition stmt to the preheader instead of iters_bb.
2743
2744 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2745
2746         PR rtl-optimization/47449
2747         * fwprop.c (forward_propagate_subreg): Don't propagate hard
2748         register nor zero/sign extended hard register.
2749
2750 2011-07-05  Richard Guenther  <rguenther@suse.de>
2751
2752         PR tree-optimization/49518
2753         PR tree-optimization/49628
2754         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2755         irrelevant and invariant data-references.
2756         (vect_analyze_data_ref_access): For invariant loads clear the
2757         group association.
2758
2759 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
2760
2761         PR rtl-optimization/49619
2762         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2763         pass VOIDmode as op0_mode to recursive call, and return temp even
2764         when different from tor, just if it is not IOR of the original
2765         PLUS arguments.
2766
2767         PR rtl-optimization/49472
2768         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2769         negating MULT, negate the second operand instead of first.
2770         (simplify_binary_operation_1) <case MULT>: If one operand is
2771         a NEG and the other is MULT, don't attempt to optimize by negation
2772         of the MULT operand if it only moves the NEG operation around.
2773
2774         PR debug/49602
2775         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2776         get_current_def return value if it can't be trusted to be
2777         the current value of the variable in the current bb.
2778
2779 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
2780
2781         PR target/49600
2782         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2783         general register to memory for !TARGET_INTER_UNIT_MOVES.
2784
2785 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2786
2787         PR target/44643
2788         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2789         instead of TREE_READONLY.
2790
2791 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2792
2793         * doc/extend.texi (AVR Built-in Functions): Update documentation
2794         of __builtin_avr_fmul*.
2795         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2796         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2797         * config/avr/avr.md (fmul): Rename to fmul_insn.
2798         (fmuls): Rename to fmuls_insn.
2799         (fmulsu): Rename to fmulsu_insn.
2800         (fmul,fmuls,fmulsu): New expander.
2801         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2802         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2803         * config/avr/libgcc.S (__fmul): New function.
2804         (__fmuls): New function.
2805         (__fmulsu,__fmulsu_exit): New function.
2806
2807 2011-07-04  Richard Guenther  <rguenther@suse.de>
2808
2809         PR tree-optimization/49615
2810         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2811         basic-block index check.
2812
2813 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
2814
2815         * longlong.h (count_leading_zeros, count_trailing_zeros,
2816         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2817         resp. 64.
2818
2819 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
2820
2821         PR tree-optimization/49610
2822         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2823         a basic block.
2824
2825 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2826             Olivier Hainque  <hainque@adacore.com>
2827             Nicolas Setton  <setton@adacore.com>
2828
2829         * tree.h (TYPE_ARTIFICIAL): New flag.
2830         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2831         the DIE of the type if it is artificial.
2832         (gen_array_type_die): Likewise.
2833         (gen_enumeration_type_die): Likewise.
2834         (gen_struct_or_union_type_die): Likewise.
2835         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2836         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2837
2838 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
2839
2840         * tree-object-size.c (pass_through_call): Handle
2841         BUILT_IN_ASSUME_ALIGNED.
2842
2843 2011-07-01  Martin Jambor  <mjambor@suse.cz>
2844
2845         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2846
2847 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2848
2849         PR middle-end/48016
2850         * explow.c (update_nonlocal_goto_save_area): Use proper mode
2851         for stack save area.
2852         * function.c (expand_function_start): Likewise.
2853
2854 2011-07-01  Richard Guenther  <rguenther@suse.de>
2855
2856         PR middle-end/49596
2857         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2858         may have unknown refs.
2859
2860 2011-07-01  Kai Tietz  <ktietz@redhat.com>
2861
2862         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2863
2864 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2865
2866         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2867         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2868         (Specific, mips-sgi-irix6): Likewise.
2869
2870 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2871
2872         PR libmudflap/49549
2873         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2874
2875 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
2876
2877         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2878         [idx]= and [idx1 ... idx2]= before initializers if needed for
2879         array initializers.
2880
2881 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
2882
2883         * config.gcc (score-*-elf): Remove score7.o.
2884         * config/score/t-score-elf: Likewise.
2885         * config/score/score.c: Merge score7 to score.c and
2886         remove forwarding functions.
2887         * config/score/score7.c: Deleted.
2888         * config/score/score7.h: Deleted.
2889
2890 2011-07-01  Richard Guenther  <rguenther@suse.de>
2891
2892         PR tree-optimization/49603
2893         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
2894
2895 2011-06-30  Martin Jambor  <mjambor@suse.cz>
2896
2897         * tree-sra.c (struct access): Rename total_scalarization to
2898         grp_total_scalarization
2899         (completely_scalarize_var): New function.
2900         (sort_and_splice_var_accesses): Set total_scalarization in the
2901         representative access.
2902         (analyze_access_subtree): Propagate total scalarization accross the
2903         tree, no holes in totally scalarized trees, simplify coverage
2904         computation.
2905         (analyze_all_variable_accesses): Call completely_scalarize_var instead
2906         of completely_scalarize_record.
2907
2908 2011-06-30  Richard Henderson  <rth@redhat.com>
2909
2910         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2911         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2912         * config/i386/i386.c: Don't include dwarf2out.h.
2913         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2914         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2915         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
2916         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2917         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2918
2919 2011-06-30  Richard Henderson  <rth@redhat.com>
2920
2921         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2922         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2923         * final.c (final_scan_insn): Look for it, and invoke
2924         dwarf2out_frame_debug before the insn if found.
2925
2926 2011-06-30  Richard Henderson  <rth@redhat.com>
2927
2928         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2929         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2930
2931 2011-06-30  Richard Henderson  <rth@redhat.com>
2932
2933         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2934         Define a vector of this type.
2935         (regs_saved_in_regs): Use a VEC.
2936         (num_regs_saved_in_regs): Remove.
2937         (compare_reg_or_pc): New.
2938         (record_reg_saved_in_reg): Split out from...
2939         (dwarf2out_flush_queued_reg_saves): ... here.
2940         (clobbers_queued_reg_save): Update for VEC.
2941         (reg_saved_in): Likewise.
2942         (dwarf2out_frame_debug_init): Likewise.
2943         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2944         (dwarf2out_frame_debug_cfa_register): Likewise.
2945
2946 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2947
2948         PR tree-optimization/49572
2949         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2950         type of the RHS instead of that of the LHS for the expression type.
2951
2952 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2953
2954         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2955         unconditionally.
2956
2957 2011-06-30  Richard Guenther  <rguenther@suse.de>
2958
2959         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2960         * tree-ssa-structalias.c (create_variable_info_for): Do not
2961         add initial constraints for non-var-decls.  Properly handle
2962         globals in other ltrans partitions.
2963         (intra_create_variable_infos): Manually create constraints for
2964         the fake no-alias parameter.
2965         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2966         and assert there are no clones.
2967
2968 2011-06-30  Richard Guenther  <rguenther@suse.de>
2969
2970         PR tree-optimization/46787
2971         * tree-data-ref.c (dr_address_invariant_p): Remove.
2972         (find_data_references_in_stmt): Invariant accesses are ok now.
2973         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
2974         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2975         invariant loads.
2976
2977 2011-06-30  Martin Jambor  <mjambor@suse.cz>
2978
2979         PR tree-optimization/49094
2980         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2981         (build_accesses_from_assign): Use it.
2982
2983 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
2984
2985         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2986         handling of BUILT_IN_ASSUME_ALIGNED.
2987
2988         PR debug/49364
2989         * dwarf2out.c (output_abbrev_section): Don't return early
2990         if abbrev_die_table_in_use is 1.
2991         (dwarf2out_finish): Instead don't call output_abbrev_section
2992         nor emit abbrev_section_label in that case.
2993
2994 2011-06-30  Nick Clifton  <nickc@redhat.com>
2995
2996         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2997         for the V850E.
2998
2999 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
3000
3001         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3002         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
3003
3004 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
3005
3006         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3007         both pattern and original statements if necessary.
3008         (vect_transform_loop): Likewise.
3009         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
3010         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
3011         Mark the pattern statement only if the original statement doesn't
3012         have its own uses.
3013         (process_use): Call vect_mark_relevant with additional parameter.
3014         (vect_mark_stmts_to_be_vectorized): Likewise.
3015         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
3016         (vect_analyze_stmt): Handle both pattern and original statements
3017         if necessary.
3018         (vect_transform_stmt): Don't store vectorized pattern statement
3019         in the original statement.
3020         (vect_is_simple_use_1): Use related pattern statement only if the
3021         original statement is irrelevant.
3022         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3023
3024 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
3025
3026         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
3027         option.
3028         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
3029         entry.
3030         (TARGET_AVX128_OPTIMAL): New definition.
3031         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3032         X86_TUNE_AVX128_OPTIMAL entry.
3033         (ix86_option_override_internal): Enable the generation
3034         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
3035         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
3036         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
3037
3038 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3039
3040         PR tree-optimization/49539
3041         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
3042         names by means of stmt_references_abnormal_ssa_name.
3043         (associate_plusminus): Call can_propagate_from before propagating
3044         from definition statements.
3045         (ssa_forward_propagate_and_combine): Remove superfluous newline.
3046
3047 2011-06-29  Richard Guenther  <rguenther@suse.de>
3048
3049         * doc/invoke.texi: Document -scev dump modifier.
3050         * tree-pass.h (TDF_SCEV): New dump flag.
3051         * tree-dump.c (dump_option_value_in): Add scev.
3052         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
3053         * tree-scalar-evolution.c: Likewise.
3054
3055 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
3056
3057         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
3058         (cxa_type_match): Correct declaration.
3059         (__gnu_unwind_pr_common): Reconstruct additional indirection
3060         when __cxa_type_match returns succeeded_with_ptr_to_base.
3061
3062 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3063
3064         PR rtl-optimization/49114
3065         * reload.c (struct replacement): Remove SUBREG_LOC member.
3066         (push_reload): Do not set it.
3067         (push_replacement): Likewise.
3068         (subst_reload): Remove dead code.
3069         (copy_replacements): Remove assertion.
3070         (copy_replacements_1): Do not handle SUBREG_LOC.
3071         (move_replacements): Likewise.
3072         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
3073         Detect subregs via recursive descent instead of via SUBREG_LOC.
3074
3075 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3076
3077         * config/avr/avr.c (avr_encode_section_info): Dispatch to
3078         default_encode_section_info.
3079
3080 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
3081
3082         PR tree-optimization/49545
3083         * builtins.c (get_object_alignment_1): Update function comment.
3084         Do not use DECL_ALIGN for functions, but test
3085         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
3086         * fold-const.c (get_pointer_modulus_and_residue): Don't check
3087         for functions here.
3088         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3089
3090 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
3091
3092         PR debug/49567
3093         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
3094         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
3095
3096 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3097
3098         PR target/34734
3099         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
3100         about uninitialized data attributed 'progmem' from here...
3101         (avr_encode_section_info): ...to this new function.
3102         (TARGET_ENCODE_SECTION_INFO): New define.
3103         (avr_section_type_flags): For data in ".progmem.data", remove
3104         section flag SECTION_WRITE.
3105
3106 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3107
3108         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
3109         _xmulhisi3_exit.
3110         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
3111         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
3112         (__umulhisi3): Ditto.
3113         * config/avr/avr.md (mulhisi3): New insn expender.
3114         (umulhisi3): New insn expender.
3115         (*mulhisi3_call): New insn.
3116         (*umulhisi3_call): New insn.
3117
3118 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
3119
3120         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
3121
3122 2011-06-28  Richard Henderson  <rth@redhat.com>
3123
3124         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
3125         all code and arguments that handled pushes.  Update all callers.
3126
3127 2011-06-28  Richard Henderson  <rth@redhat.com>
3128
3129         * config/arm/arm.c (arm_output_function_prologue): Don't call
3130         thumb1_output_function_prologue.
3131         (arm_expand_prologue): Avoid dead store.
3132         (number_of_first_bit_set): Use ctz_hwi.
3133         (thumb1_emit_multi_reg_push): New.
3134         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
3135         to emit the entire prologue as rtl.
3136         (thumb1_output_interwork): Split out from
3137         thumb1_output_function_prologue.
3138         (thumb1_output_function_prologue): Remove.
3139         (arm_attr_length_push_multi): Handle thumb1.
3140         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
3141         (prologue_thumb1_interwork): New.
3142         (*push_multi): Allow thumb1; use push_mult_memory_operand.
3143         * config/arm/predicates.md (push_mult_memory_operand): New.
3144
3145 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
3146
3147         * config/sparc/sync.md (*stbar): Delete.
3148         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
3149
3150 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
3151
3152         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
3153
3154 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3155
3156         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
3157         (TARGET_64BIT_DEFAULT): Define.
3158         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
3159         of tm_file.
3160         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
3161
3162 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
3163
3164         * common.opt (in_lto_p): New Variable entry.
3165         * flags.h (in_lto_p): Move to common.opt.
3166         * gcc.c: Include params.h.
3167         (set_option_handlers): Also use common_handle_option and
3168         target_handle_option.
3169         (main): Call global_init_params, finish_params and init_options_struct.
3170         * opts.c (debug_type_names): Move from toplev.c.
3171         (print_filtered_help): Access quiet_flag through opts pointer.
3172         (common_handle_option): Return early in the driver for some options.
3173         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
3174         opts pointer.
3175         * toplev.c (in_lto_p): Move to common.opt.
3176         (debug_type_names): Move to opts.c.
3177         * Makefile.in (OBJS): Remove opts.o.
3178         (OBJS-libcommon-target): Add opts.o.
3179         (gcc.o): Update dependencies.
3180
3181 2011-06-28  Kai Tietz  <ktietz@redhat.com>
3182
3183         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
3184
3185 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3186
3187         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
3188         with '=' constraint modifier.
3189         (*divdf3_vfp): Likewise.
3190         ("*mulsf3_vfp"): Likewise.
3191         ("*muldf3_vfp"): Likewise.
3192         ("*mulsf3negsf_vfp"): Likewise.
3193         ("*muldf3negdf_vfp"): Likewise.
3194
3195 2011-06-28  Nick Clifton  <nickc@redhat.com>
3196
3197         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
3198         relaxation when performing an incremental link.
3199
3200 2011-06-28  Kai Tietz  <ktietz@redhat.com>
3201
3202         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
3203         within BB from last to first.
3204
3205 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
3206
3207         * genattr-common.c: New.  Based on genattr.c.
3208         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
3209         (MOSTLYCLEANFILES): Add insn-attr-common.h.
3210         (opts.o): Update dependencies.
3211         (.PRECIOUS): Add insn-attr-common.h.
3212         (simple_rtl_generated_h): Add insn-attr-common.h.
3213         (build/genattr-common.o): New.
3214         (genprogrtl): Add attr-common.
3215         * genattr.c (main): Include insn-attr-common.h.  Don't generate
3216         definitions of DELAY_SLOTS or INSN_SCHEDULING.
3217         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
3218
3219 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
3220
3221         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
3222         avr-*-* and avr-*-rtems* targets.
3223
3224         * config/avr/elf.h: New file.
3225         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
3226         (TARGET_ASM_SELECT_SECTION): Define.
3227         (INIT_SECTION_ASM_OP): Undefine.
3228         (FINI_SECTION_ASM_OP): Undefine.
3229         (READONLY_DATA_SECTION_ASM_OP): Undefine.
3230         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
3231         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
3232         * config/avr/avr.h:
3233         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
3234         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
3235         (MAX_OFILE_ALIGNMENT): Move to elf.h.
3236         (STRING_LIMIT): Move to elf.h.
3237         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
3238         (ASM_DECLARE_OBJECT_NAME): Remove.
3239         (ESCAPES): Remove.
3240         (ASM_OUTPUT_SKIP): Remove.
3241         (DWARF2_DEBUGGING_INFO): Remove.
3242         (OBJECT_FORMAT_ELF): Remove.
3243         (USER_LABEL_PREFIX): Remove.
3244         (ASM_OUTPUT_EXTERNAL): Remove.
3245         (ASM_OUTPUT_ASCII): Remove.
3246         (TYPE_ASM_OP): Remove.
3247         (SIZE_ASM_OP): Remove.
3248         (WEAK_ASM_OP): Remove.
3249         (STRING_ASM_OP): Remove.
3250         (SET_ASM_OP): Remove.
3251         (ASM_WEAKEN_LABEL): Remove.
3252         (TYPE_OPERAND_FMT): Remove.
3253         (ASM_DECLARE_FUNCTION_SIZE): Remove.
3254         (ASM_FINISH_DECLARE_OBJECT): Remove.
3255         (NO_DOLLAR_IN_LABEL): Remove.
3256         (ASM_GENERATE_INTERNAL_LABEL): Remove.
3257         (ASM_OUTPUT_CASE_LABEL): Remove.
3258         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
3259         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
3260         (gas_output_ascii): Remove.
3261         (gas_output_limited_string): Remove.
3262         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3263         * config/avr/avr-protos.h
3264         (gas_output_ascii): Remove prototye.
3265         (gas_output_limited_string): Remove prototype.
3266
3267 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
3268
3269         PR target/48637
3270         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
3271         asm operands.
3272
3273 2011-06-27  Jan Hubicka  <jh@suse.cz>
3274
3275         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
3276         node instead of references in node.
3277
3278 2011-06-27  Richard Henderson  <rth@redhat.com>
3279
3280         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
3281         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
3282         inside ifdef.
3283
3284 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3285
3286         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
3287
3288         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
3289         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
3290         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
3291         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
3292         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
3293         (evaluate_stmt, execute_fold_all_builtins): Handle
3294         BUILT_IN_ASSUME_ALIGNED.
3295         * tree-ssa-dce.c (propagate_necessity): Likewise.
3296         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3297         call_may_clobber_ref_p_1): Likewise.
3298         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
3299         (expand_builtin_assume_aligned): New function.
3300         * doc/extend.texi (__builtin_assume_aligned): Document.
3301
3302         PR debug/49544
3303         * cselib.c (promote_debug_loc): If cselib_preserve_constants
3304         and l has two DEBUG_INSN owned locs instead of just one, adjust
3305         the second location's setting_insn too.
3306
3307 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3308
3309         PR libmudflap/38738
3310         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
3311
3312 2011-06-27  Nick Clifton  <nickc@redhat.com>
3313
3314         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
3315         bit position of highest bit set into a count of the high zero bits.
3316
3317 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3318
3319         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
3320
3321 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3322
3323         PR lto/48492
3324         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
3325         to a NULL parent.
3326
3327 2011-06-27  Richard Guenther  <rguenther@suse.de>
3328
3329         PR tree-optimization/49394
3330         * passes.c (execute_one_pass): Restore current_pass after
3331         applying IPA transforms.
3332
3333 2011-06-27  Kai Tietz  <ktietz@redhat.com>
3334
3335         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
3336         out of type precision after operation.
3337         (find_bswap): Take for limit value the integer auto-promotion
3338         into account.
3339
3340 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3341
3342         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
3343         forward scan as well.
3344
3345 2011-06-27  Tristan Gingold  <gingold@adacore.com>
3346
3347         PR target/44241
3348         * config/vms/vms-protos.h: New file.
3349         * config/vms/vms-crtlmap.map: New file.
3350         * config/vms/vms.c: New file.
3351         * config/vms/make-crtlmap.awk: New file.
3352         * config/vms/vms-crtl.h: File removed.
3353         * config/vms/vms-crtl-64.h: File removed.
3354         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
3355         * config/alpha/vms64.h: Do not include vms-crtl-64.h
3356         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
3357         clear some builtins on VMS.  Calls vms_patch_builtins.
3358         (avms_asm_output_external): Remove.
3359         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
3360         (struct crtl_name_spec): Remove
3361         (DO_CTRL_NAMES): Remove.
3362         * config/ia64/vms.h (struct crtl_name_spec): Remove
3363         (DO_CTRL_NAMES): Remove.
3364         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
3365         clear some builtins on VMS.  Calls vms_patch_builtins.
3366         (ia64_asm_output_external): Remove DO_CRTL_NAME.
3367         * config/ia64/vms64.h: Do not include vms-crtl-64.h
3368         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
3369
3370 2011-06-27  Tristan Gingold  <gingold@adacore.com>
3371
3372         * config/alpha/alpha.c (alpha_end_function): Always generate .end
3373         directive on VMS.
3374
3375 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3376
3377         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
3378         the function receives nonlocal gotos.
3379
3380 2011-06-27  Richard Guenther  <rguenther@suse.de>
3381
3382         PR tree-optimization/49536
3383         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3384         For non-scalar inner types use a scalar type according to
3385         the scalar inner mode.
3386
3387 2011-06-27  Richard Guenther  <rguenther@suse.de>
3388
3389         PR tree-optimization/49365
3390         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
3391
3392 2011-06-27  Richard Guenther  <rguenther@suse.de>
3393
3394         PR tree-optimization/49169
3395         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
3396         the alignment of function decls.
3397
3398 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
3399
3400         PR target/47997
3401         * config/darwin.c (darwin_mergeable_string_section): Place string
3402         constants in '.cstring' rather than '.const' when CF/NSStrings are
3403         active.
3404
3405 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3406
3407         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
3408         (emit_save_register_window): Likewise.
3409         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
3410         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
3411         Swap back %o7/%i7 in register naming.
3412
3413 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
3414
3415         PR driver/49371
3416         * config/darwin.c (darwin_override_options): Improve warning when
3417         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3418         is given with fpie/fPIE.
3419         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3420         * config/darwin9.h (PIE_SPEC): New.
3421
3422 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3423
3424         * timevar.c (timevar_print): Increase width for display of timevar
3425         name.
3426
3427 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
3428
3429         PR c++/46400
3430         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3431         instead of TYPE_CHAIN for chain_next for types.
3432
3433 2011-06-24  Richard Henderson  <rth@redhat.com>
3434
3435         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3436         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3437         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3438         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3439         (sparc_flat_expand_prologue): Emit individual instructions
3440         instead of one of the above.
3441
3442 2011-06-24  Easwaran Raman  <eraman@google.com>
3443
3444         PR rtl-optimization/49429
3445         PR target/49454
3446         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
3447         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3448         used to copy y into x.
3449         * calls.c (initialize_argument_information): Mark
3450         an argument addressable if it is passed by invisible reference.
3451         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
3452         if it is passed by reference.
3453
3454 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3455
3456         PR rtl-optimization/49504
3457         * rtlanal.c (nonzero_bits1): Properly handle addition or
3458         subtraction of a pointer in Pmode if pointers extend unsigned.
3459         (num_sign_bit_copies1): Likewise.
3460
3461 2011-06-24  Martin Jambor  <mjambor@suse.cz>
3462
3463         PR tree-optimizations/49516
3464         * tree-sra.c (sra_modify_assign): Choose the safe path for
3465         aggregate copies if we also did scalar replacements.
3466
3467 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3468
3469         PR target/49335
3470         * config/arm/predicates.md (add_operator): New.
3471         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3472
3473 2011-06-24  Andi Kleen  <ak@linux.intel.com>
3474
3475         * tree-sra.c (type_internals_preclude_sra_p): Add msg
3476         parameter. Split up ifs and report reason in *msg.
3477         (reject): Add.
3478         (find_var_candiate): Add msg variable.
3479         Split up ifs and report reason to reject.
3480         (find_param_candidates): Add msg variable.
3481         Pass msg to type_internals_preclude_sra_p.
3482
3483 2011-06-23  Jeff Law  <law@redhat.com>
3484
3485         PR middle-end/48770
3486         * reload.h (reload): Change to return a bool.
3487         * ira.c (ira): If requested by reload, run a fast DCE pass after
3488         reload has completed.  Fix comment typo.
3489         * reload1.c (need_dce): New file scoped static.
3490         (reload): Set reload_completed here.  Return whether or not a DCE
3491         pass after reload is needed.
3492         (delete_dead_insn): Set need_dce as needed.
3493
3494         PR middle-end/49465
3495         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3496         to detect threading through joiner block.  If there was already
3497         an edge to the new target, then do not change the PHI nodes.
3498
3499 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
3500
3501         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3502         get_pointer_alignment to see if base isn't sufficiently aligned.
3503
3504 2011-06-23  Jan Hubicka  <jh@suse.cz>
3505
3506         PR tree-optimize/49373
3507         * tree-pass.h (all_late_ipa_passes): Declare.
3508         * cgraphunit.c (init_lowered_empty_function): Fix properties.
3509         (cgraph_optimize): Execute late passes; remove unreachable funcions
3510         after materialization.
3511         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3512         LTOing.
3513         * passes.c (all_late_ipa_passes): Declare.
3514         (dump_passes, register_pass): Handle late ipa passes.
3515         (init_optimization_passes): Move ipa_pta to late passes; schedule
3516         fixup_cfg at beggining of all_passes.
3517         (apply_ipa_transforms): New function.
3518         (execute_one_pass): When doing simple ipa pass, apply all transforms.
3519
3520 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
3521
3522         * params.c: Include common/common-target.h.  Don't include tm.h.
3523         (lang_independent_params): Move from toplev.c.
3524         (global_init_params): New.
3525         * params.h (global_init_params): Declare.
3526         * target.def (default_params): Move to common-target.def.
3527         * toplev.c (lang_independent_options): Remove.
3528         (lang_independent_params): Move to params.c.
3529         (general_init): Use global_init_params.
3530         * common/common-target.def (option_default_params): Move from
3531         target.def.
3532         * common/config/ia64/ia64-common.c: Include params.h.
3533         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3534         from ia64.c.
3535         * common/config/rs6000/rs6000-common.c: Include params.h.
3536         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3537         from rs6000.c.
3538         * common/config/sh/sh-common.c: Include params.h.
3539         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3540         from sh.c.
3541         * common/config/spu/spu-common.c: Include params.h.
3542         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3543         from spu.c.
3544         * config/ia64/ia64.c (ia64_option_default_params,
3545         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3546         * config/rs6000/rs6000.c (rs6000_option_default_params,
3547         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3548         * config/sh/sh.c (sh_option_default_params,
3549         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3550         * config/spu/spu.c (spu_option_default_params,
3551         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3552         * Makefile.in (OBJS): Remove params.o.
3553         (OBJS-libcommon-target): Add params.o.
3554         (params.o, $(common_out_object_file)): Update dependencies.
3555         * doc/tm.texi: Regenerate.
3556
3557 2011-06-23  Alan Modra  <amodra@gmail.com>
3558
3559         PR bootstrap/49383
3560         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3561         invocation for 2011-06-09 changes.
3562
3563 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3564
3565         PR libgomp/49490
3566         * omp-low.c (expand_omp_for_static_nochunk): Only
3567         use n ceil/ nthreads size for the first n % nthreads threads in the
3568         team instead of all threads except for the last few ones which
3569         get less work or none at all.
3570
3571         PR debug/49496
3572         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3573         uses.
3574
3575 2011-06-22  Richard Guenther  <rguenther@suse.de>
3576
3577         PR tree-optimization/49493
3578         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3579         Refer to the alias target of variables.
3580         (associate_varinfo_to_alias_1): Remove.
3581         (ipa_pta_execute): Do not associate aliases with anything.
3582         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3583         (cgraph_function_node): Likewise.
3584         (cgraph_function_or_thunk_node): Likewise.
3585         (varpool_variable_node): Likewise.
3586
3587 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3588
3589         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3590         * config.gcc (arm*-*-linux*): Default to gnu tls.
3591         (arm*-*-*): Add --with-tls option.
3592         (all_defaults): Add 'tls'.
3593
3594 2011-06-22  Richard Henderson  <rth@redhat.com>
3595
3596         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3597         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3598         (dwarf2out_frame_debug_cfa_window_save): Rename from
3599         dwarf2out_window_save; make static.
3600         * tree.h (dwarf2out_window_save): Don't declare.
3601
3602         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3603         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3604         (emit_save_register_window): Rename from gen_save_register_window;
3605         emit the insn and add REG_CFA_* notes.
3606         (sparc_expand_prologue): Update to match.
3607         * config/sparc/sparc.md (save_register_window_1): Simplify from
3608         save_register_window<P:mode>.
3609
3610 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3611
3612         PR target/49497
3613         * config/i386/i386.md (*lea_general_2): Always allow SImode.
3614         (*lea_general_2_zext): Likewise.
3615         (imul to lea peepholes): Use const359_operand and check
3616         TARGET_PARTIAL_REG_STALL.
3617
3618         * config/i386/predicates.md (const359_operand): New.
3619
3620 2011-06-22  Michael Matz  <matz@suse.de>
3621
3622         * cgraphunit.c (assemble_thunk): Use correct return type.
3623
3624 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3625             Dmitry Melnik  <dm@ispras.ru>
3626
3627         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3628         (neon_output_shift_immediate): Ditto.
3629         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3630         prototype.
3631         (neon_output_shift_immediate): Ditto.
3632         * config/arm/neon.md (vashl<mode>3): Modified constraint.
3633         (vashr<mode>3_imm): New insn pattern.
3634         (vlshr<mode>3_imm): Ditto.
3635         (vashr<mode>3): Modified constraint.
3636         (vlshr<mode>3): Ditto.
3637         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3638         predicate.
3639         (imm_for_neon_rshift_operand): Ditto.
3640         (imm_lshift_or_reg_neon): Ditto.
3641         (imm_rshift_or_reg_neon): Ditto.
3642
3643         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3644
3645 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3646
3647         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3648         builtin calls even if likelyvalue is not CONSTANT.
3649         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3650         Return get_value_for_expr of first operand
3651         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3652         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3653         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3654         their non-checking counterparts.
3655         (call_may_clobber_ref_p_1): Likewise.
3656         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3657         like their non-checking counterparts.
3658         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3659         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3660         like their non-checking counterparts.
3661         (find_func_clobbers): Likewise.
3662         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3663         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3664
3665         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3666         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3667         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3668         of base type reference as argument.
3669         (resolve_addr_in_expr): Likewise.  Fix keep computation.
3670         (convert_descriptor_to_signed): Renamed to...
3671         (convert_descriptor_to_mode): ... this.  For wider types convert to
3672         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3673         (typed_binop): New function.
3674         (scompare_loc_descriptor, ucompare_loc_descriptor,
3675         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3676         default to unsigned type instead of signed.
3677
3678         PR debug/47858
3679         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3680         (gimple_build_debug_source_bind_stat): New prototype.
3681         (gimple_build_debug_source_bind): Define.
3682         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3683         gimple_debug_source_bind_get_value,
3684         gimple_debug_source_bind_get_value_ptr,
3685         gimple_debug_source_bind_set_var,
3686         gimple_debug_source_bind_set_value): New inlines.
3687         * gimple.c (gimple_build_debug_source_bind_stat): New function.
3688         * gimple-pretty-print.c (dump_gimple_debug): Handle
3689         GIMPLE_DEBUG_SOURCE_BIND.
3690         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3691         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3692         * tree-parloops.c (eliminate_local_variables,
3693         separate_decls_in_region): Likewise.
3694         (separate_decls_in_region_debug): Renamed from
3695         separate_decls_in_region_debug_bind.  Handle
3696         gimple_debug_source_bind_p.
3697         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3698         prototypes.
3699         (DECL_HAS_DEBUG_ARGS_P): Define.
3700         (struct tree_function_decl): Add has_debug_args_flag field.
3701         * tree.c (debug_args_for_decl): New variable.
3702         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3703         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3704         (rewrite_debug_stmt_uses): New function.
3705         (rewrite_stmt): Use it to rewrite debug stmt uses.
3706         * rtl.def (DEBUG_PARAMETER_REF): New.
3707         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3708         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3709         DEBUG_PARAMETER_REF.
3710         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3711         * print-rtl.c (print_rtx): Likewise.
3712         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3713         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3714         debug stmts in the first bb.
3715         * tree-inline.c (remap_ssa_name): If remapping default def
3716         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3717         a source bind debug stmt.
3718         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3719         (maybe_move_debug_stmts_to_successors): Likewise.
3720         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
3721         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3722         debug args vector from old_decl to new_decl.
3723         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3724         or modified parameters, add debug bind stmts before call
3725         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3726         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3727         on DECL_DEBUG_EXPRs from debug args vector.
3728         (expand_debug_source_expr): New function.
3729         (expand_debug_locations): Use it for source bind insns.
3730         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3731         * var-tracking.c (prepare_call_arguments): Add debug args
3732         to call_arguments if any.
3733         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3734         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3735         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3736         (get_ref_die_offset, parameter_ref_descriptor): New functions.
3737         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3738         (gen_subprogram_die): Handle parameters identified by
3739         DEBUG_PARAMETER_REF.
3740
3741 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3742
3743         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3744         * doc/install.texi (Configuration): Document --with-tls.
3745         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3746         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3747         (arm_tls_descseq_addr): New.
3748         (legitimize_tls_address): Add tlsdesc support.
3749         (arm_cannot_copy_insn_p): Check for tlscall.
3750         (arm_emit_tls_decoration): Likewise.
3751         * config/arm/arm.h (TARGET_GNU2_TLS): New.
3752         (OPTION_DEFAULT_SPECS): Add with-tls support.
3753         * config/arm/arm.md (R1_REGNUM): Define.
3754         (tlscall): New.
3755         * config/arm/arm.opt (tls_type): New enumeration type and values.
3756         (mtls-dialect): New switch.
3757         * config/arm/arm-opts.h (enum tls_type): New.
3758
3759 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3760
3761         * attribs.c (register_attribute): Added assert to check that all
3762         attribute specs are registered with a name that is not empty and
3763         does not start with '_'.
3764         (decl_attributes): Avoid the lookup of the "naked" attribute spec
3765         if the function has no attributes.
3766         * tree.c (is_attribute_with_length_p): Removed.
3767         (is_attribute_p): Removed.
3768         (private_is_attribute_p): New.
3769         (private_lookup_attribute): New.
3770         (lookup_attribute): Removed.
3771         (lookup_ident_attribute): New.
3772         (remove_attribute): Require the first argument to be in the form
3773         'text', not '__text__'.  Updated asserts.
3774         (merge_attributes): Use lookup_ident_attributes instead of
3775         lookup_attribute.
3776         (merge_dllimport_decl_attributes): Use remove_attribute.
3777         (attribute_list_contained): Likewise.
3778         (attribute_list_equal): Immediately return 1 if the arguments are
3779         identical pointers.
3780         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
3781         'int'.  Require the first argument to be in the form 'text', not
3782         '__text__'.  Require the second argument to be an identifier.
3783         (lookup_attribute): Made inline.  Require the first argument to be
3784         in the form 'text', not '__text__'.
3785         (private_is_attribute_p, private_lookup_attribute): New.
3786         Updated comments.
3787
3788 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3789
3790         * builtins.c: Add sync_ or SYNC__ to builtin names.
3791         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3792         * omp-low.c: Add sync_ or SYNC__ to builtin names.
3793
3794 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
3795
3796         PR target/33049
3797         * config/avr/avr.md (extzv): New expander.
3798         (*extzv): New insn.
3799         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3800         * config/avr/constraints.md (C04): New constraint.
3801         * doc/md.texi (Machine Constraints): Document it.
3802
3803 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
3804
3805         PR middle-end/49489
3806         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3807         unsignedp argument instead of 1 for clrsb_optab.
3808         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3809         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
3810         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3811         * optabs.c (widen_leading): Call widen_operand and expand_unop
3812         with 0 as unsignedp argument instead of 1 for clrsb_optab.
3813         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3814
3815 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
3816
3817         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3818
3819 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
3820
3821         * gensupport.c (add_define_attr): New static function.
3822         (is_predicable): Allow multi-alternative lists for the "predicable"
3823         attribute.
3824         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3825         (process_one_cond_exec): Call alter_attrs_for_insn.
3826         * doc/md.texi (Defining Attributes): Mention some standard names.
3827         (Conditional Execution): Update documentation for "predicable".
3828
3829         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3830         __builtin_clrsbll): Document.
3831         * doc/rtl.texi (clrsb): New entry.
3832         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
3833         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
3834         (expand_unop): Handle clrsb_optab.
3835         (init_optabs): Initialize it.
3836         * optabs.h (enum optab_index): New entry OTI_clrsb.
3837         (clrsb_optab): Define.
3838         * genopinit.c (optabs): Add an entry for it.
3839         * builtins.c (expand_builtin): Handle clrsb builtin functions.
3840         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3841         BUILT_IN_CLRSBLL): New.
3842         * rtl.def (CLRSB): New code.
3843         * dwarf2out.c (mem_loc_descriptor): Handle it.
3844         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3845         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3846         and popcount.
3847         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3848         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3849         (__ctzDI2): Move declaration.
3850         * config/bfin/bfin.md (clrsbsi2): New expander.
3851         (signbitssi2): Use the CLRSB rtx.
3852         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
3853         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3854
3855 2011-06-21  Richard Guenther  <rguenther@suse.de>
3856
3857         * ipa-inline-transform.c (inline_transform): Fix previous change.
3858
3859 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
3860
3861         PR tree-optimization/49478
3862         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3863         with constant operand.
3864
3865 2011-06-21  Richard Guenther  <rguenther@suse.de>
3866
3867         * ipa-inline-transform.c (inline_transform): Fix typo.
3868
3869 2011-06-21  Richard Guenther  <rguenther@suse.de>
3870
3871         PR tree-optimization/49483
3872         * tree-vect-stmts.c (vectorizable_assignment): Also handle
3873         VIEW_CONVERT_EXPR conversions.
3874
3875 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
3876
3877         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3878         * config/avr/avr-tables.opt: New file (generated).
3879         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3880         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3881         avr-mcus.def.
3882         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3883         (avr_option_override): Don't process -mmcu= argument here.  Set
3884         avr_current_device using avr_mcu_index.
3885         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3886         * config/avr/avr.opt (mmcu=): Use Enum.
3887         * config/avr/t-avr (avr-devices.o): Update dependencies.
3888         ($(srcdir)/config/avr/avr-tables.opt): New.
3889         * target.def (help): Remove.
3890         * doc/tm.texi.in (TARGET_HELP): Remove.
3891         * doc/tm.texi: Regenerate.
3892         * opts.c: Don't include target.h.
3893         (common_handle_option): Don't call targetm.help.
3894         * system.h (TARGET_HELP): Poison.
3895         * Makefile.in (opts.o): Update dependencies.
3896
3897 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3898
3899         * config/usegld.h: New file.
3900         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3901         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
3902         (LIB_SPEC): Likewise.  Search /lib.
3903         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3904         (RDYNAMIC_SPEC): Handle GNU ld.
3905         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3906         Define.
3907         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3908         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3909         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3910         (STACK_CHECK_STATIC_BUILTIN): Define.
3911         * config/sol2.opt (compat-bsd): Remove.
3912         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3913         * config/sol2-bi.h: New file.
3914         * config/sol2-gld.h: Remove.
3915         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3916         (NO_DBX_BNSYM_ENSYM): Remove.
3917         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3918         (STACK_CHECK_STATIC_BUILTIN): Remove.
3919         Test USE_GLD instead of TARGET_GNU_LD.
3920         * config/i386/sol2-10.h: Rename to ...
3921         * config/i386/sol2-bi.h .. this.
3922         (SUBTARGET_EXTRA_SPECS): Redefine.
3923         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3924         (MULTILIB_DEFAULTS): Remove.
3925         (DEFAULT_ARCH32_P): Define.
3926         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3927         (ARCH64_SUBDIR): Define.
3928         Test USE_GLD instead of TARGET_GNU_LD.
3929         (I386_EMULATION): Rename to ...
3930         (ARCH32_EMULATION): ... this.
3931         (X86_64_EMULATION): Rename to ...
3932         (ARCH64_EMULATION): ... this.
3933         (TARGET_LD_EMULATION): Remove.
3934         (LINK_ARCH_SPEC): Remove.
3935         * config/i386/sol2-gas.h: Remove.
3936         * config/i386/t-sol2-10: Rename to ...
3937         * config/i386/t-sol2-64: ... this.
3938         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3939         (AS_SPARC64_FLAG): Define.
3940         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3941         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3942         depending on TARGET_CPU_DEFAULT.
3943         (CPP_CPU_SPEC): Redefine.
3944         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3945         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3946         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3947         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3948         ASM_ARCH_DEFAULT_SPEC): Redefine.
3949         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3950         LINK_ARCH_DEFAULT_SPEC.
3951         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3952         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3953         (ARCH64_SUBDIR): Define.
3954         (LINK_ARCH64_SPEC): Redefine.
3955         (CC1_SPEC): Redefine.
3956         (OPTION_DEFAULT_SPECS): Redefine.
3957         (MULTILIB_DEFAULTS): Define.
3958         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3959         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3960         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3961         (NO_DBX_BNSYM_ENSYM): Remove.
3962         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3963         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3964         (TARGET_ASM_NAMED_SECTION): Likewise.
3965         (STACK_CHECK_STATIC_BUILTIN): Remove.
3966         * config/sparc/sol2-bi.h: Remove.
3967         * config/sparc/sol2-gas-bi.h: Remove.
3968         * config/sparc/sol2-gas.h: Remove.
3969         * config/sparc/sol2-gld-bi.h: Remove.
3970         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3971         common parts ...
3972         (*-*-solaris2*): ... here.
3973
3974 2011-06-21  Christian Bruel  <christian.bruel@st.com>
3975
3976         PR other/43564
3977         * ipa-inline.c (can_inline_edge_p): Check
3978         !DECL_DISREGARD_INLINE_LIMITS.
3979
3980 2011-06-21  Christian Bruel  <christian.bruel@st.com>
3981
3982         PR middle-end/49139
3983         * cgraphunit.c (process_function_and_variable_attributes): warn when
3984         always_inline functions that are not inline.
3985         * ipa-inline-transform.c (inline_transform): Always call
3986         optimize_inline.
3987         * tree-inline.c (tree_inlinable_function_p): Use error instead
3988         of sorry.
3989         (expand_call_inline): Likewise.
3990
3991 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
3992
3993         * Makefile.in (dg_target_exps): Set.
3994         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3995         instead of 7, try to divide it more evenly.
3996
3997 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
3998
3999         PR target/49089
4000         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
4001         (avx256_split_unaligned_store): New definition.
4002         (ix86_option_override_internal): Enable avx256 unaligned load/store
4003         splitting only when avx256_split_unaligned_load/store is set.
4004
4005 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4006
4007         * regrename.c (scan_rtx_reg): Handle the case where we write to an
4008         open chain in a smaller mode without failing the entire block.
4009
4010 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
4011
4012         PR middle-end/47725
4013         * combine.c (cant_combine_insn_p): Don't check zero/sign
4014         extended hard registers.
4015
4016 2011-06-21  Alan Modra  <amodra@gmail.com>
4017
4018         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
4019         CONST high part large-toc address.
4020         (rs6000_tls_referenced_p): Make static.
4021         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
4022
4023 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
4024
4025         PR middle-end/47725
4026         * combine.c (cant_combine_insn_p): Check zero/sign extended
4027         hard registers.
4028
4029 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4030
4031         PR target/49385
4032         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
4033         one of the operands is a register.
4034
4035 2011-06-20  Kai Tietz  <ktietz@redhat.com>
4036
4037         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
4038         operations in combination with binary and.
4039
4040 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4041
4042         * regrename.c (do_replace): Don't update notes.
4043
4044 2011-06-20  Alan Modra  <amodra@gmail.com>
4045
4046         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
4047         of toc-relative address in CONST.
4048         (rs6000_delegitimize_address): Recognize changed address.
4049         (rs6000_legitimize_reload_address): Likewise.
4050         (rs6000_emit_move): Don't force these constants to memory.
4051         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
4052         toc-relative address in CONST.
4053         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
4054         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
4055
4056 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4057
4058         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
4059         (count_trailing_zeros): Likewise.
4060
4061 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4062
4063         PR other/49325
4064         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
4065         .init_array can be used with .ctors on targets.
4066         * configure: Regenerated.
4067
4068 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4069
4070         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
4071         if the element type is volatile.
4072
4073 2011-06-18  Jan Hubicka  <jh@suse.cz>
4074
4075         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
4076         extra name aliases.
4077         (lto_symtab_resolve_can_prevail_p): Likewise.
4078         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
4079         * cgraphbuild.c (record_reference): Remove extra body alias code.
4080         (mark_load): Likewise.
4081         (mark_store): Likewise.
4082         * cgraph.h (varpool_node): Remove extra_name filed;
4083         add alias_of and extraname_alias.
4084         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
4085         (varpool_alias_aliased_node): New inline function.
4086         (varpool_variable_node): New function.
4087         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
4088         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
4089         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
4090         (input_varpool_node): Likewise.
4091         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
4092         (varpool_externally_visible_p): Remove extra body alias code.
4093         (function_and_variable_visibility): Likewise.
4094         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
4095         (ipa_pta_execute): Use it.
4096         * varpool.c (varpool_remove_node): Remove extra name alias code.
4097         (varpool_mark_needed_node): Likewise.
4098         (varpool_analyze_pending_decls): Analyze aliases.
4099         (assemble_aliases): New functoin.
4100         (varpool_assemble_decl): Use it.
4101         (varpool_create_variable_alias): New function.
4102         (varpool_extra_name_alias): Rewrite.
4103         (varpool_for_node_and_aliases): New function.
4104
4105 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
4106
4107         PR target/49411
4108         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
4109         last_arg_constant and last argument doesn't match its predicate,
4110         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
4111         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
4112         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
4113         spelling of error message.
4114         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
4115         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
4116         const_0_to_255_operand instead of const_int_operand.
4117
4118         Revert:
4119         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
4120
4121         * config/i386/sse.md (blendbits): Remove mode attribute.
4122         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4123         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4124         Check integer value of operand 3 in insn constraint.
4125
4126 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
4127
4128         PR rtl-optimization/48542
4129         * reload.c (find_equiv_reg): Stop looking when finding a
4130         setjmp-type call.
4131         * reload1.c (reload_as_needed): Invalidate all reload
4132         registers when crossing a setjmp-type call.
4133
4134 2011-06-16  Jeff Law  <law@redhat.com>
4135
4136         * tree-ssa-threadupdate.c (struct redirection_data): New field
4137         intermediate_edge.
4138         (THREAD_TARGET2): Define.
4139         (redirection_data_eq): Also check that the intermediate edge is equal.
4140         (lookup_redirection_data): Drop useless argument.  Extract the
4141         outgoing_edge and intermediate edge from E.  Callers updated.
4142         (copy_phi_args, update_destination_phis): New functions.
4143         (fix_duplicate_block_edges): Likewise.
4144         (create_edge_and_update_destination_phis): Duplicate all the edges
4145         hung off e->aux.  Use copy_phi_args.
4146         (create_duplicates): Use fix_duplicate_block_edges.
4147         (fixup_template_block): Likewise.
4148         (redirect_edges): If necessary, redirect the joiner block's incoming
4149         edge to the duplicate of the joiner block.
4150         (thread_block): Don't muck up loops when threading through a joiner
4151         block.
4152         (thread_through_loop_header): Handle threading through a joiner block.
4153         (mark_threaded_blocks, register_jump_thread): Likewise.
4154         * tree-flow.h (register_jump_thread): Add new argument.  Callers
4155         updated.
4156         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
4157         (thread_across_edge): Handle threading through a joiner block.
4158
4159 2011-06-16  Martin Jambor  <mjambor@suse.cz>
4160
4161         PR tree-optimization/49343
4162         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
4163         calculate offset, provide 2nd operand for the new COMPONENT_REF.
4164
4165 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
4166
4167         * config/darwin-protos.h (machopic_select_rtx_section): Move to
4168         inside RTX_CODE ifdef.
4169
4170 2011-06-16  Tom de Vries  <tom@codesourcery.com>
4171
4172         PR target/45098
4173         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
4174         Disallow NULL pointer for pointer arithmetic.
4175
4176 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4177
4178         PR target/49398
4179         Revert.
4180         2011-06-10  Wei Guozhi  <carrot@google.com>
4181
4182         PR target/45335
4183         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4184         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4185         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4186         related peephole2.
4187         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4188         related peephole2.
4189         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4190         (arm_legitimate_ldrd_p): New prototype.
4191         (arm_output_ldrd): New prototype.
4192         * config/arm/arm.c (arm_check_ldrd_operands): New function.
4193         (arm_legitimate_ldrd_p): New function.
4194         (arm_output_ldrd): New function.
4195
4196 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4197
4198         PR middle-end/46500
4199         * doc/tm.texi.in: Update Copyright date.
4200         * doc/tm.texi: Regenerate.
4201         * targhooks.c (default_setup_incoming_varargs): Replace
4202         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4203         (default_pretend_outgoing_varargs_named): Likewise.
4204         (hook_pass_by_reference_must_pass_in_stack): Likewise.
4205         (hook_callee_copies_named): Likewise.
4206         (default_function_arg_advance): Likewise.
4207         (default_function_arg): Likewise.
4208         (default_function_incoming_arg): Likewise.
4209         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4210         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4211         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4212         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4213         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4214         * targhooks.h (default_setup_incoming_varargs): Likewise.
4215         (default_pretend_outgoing_varargs_named): Likewise.
4216         (hook_pass_by_reference_must_pass_in_stack): Likewise.
4217         (hook_callee_copies_named): Likewise.
4218         (default_function_arg_advance): Likewise.
4219         (default_function_arg): Likewise.
4220         (default_function_incoming_arg): Likewise.
4221         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4222         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4223         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4224         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4225         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4226         * target.def (pass_by_reference): Likewise.
4227         (setup_incoming_varargs, strict_argument_naming): Likewise.
4228         (pretend_outgoing_varargs_named, callee_copies): Likewise.
4229         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
4230         (function_incoming_arg): Likewise.
4231         * target.h: Don't include "tm.h" .
4232         (cumulative_args_t): New typedef.
4233         [GCC_TM_H] (get_cumulative_args): New static inline function.
4234         [GCC_TM_H] (pack_cumulative_args): Likewise.
4235         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
4236         argument type with cumulative_args_t.
4237         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
4238         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
4239         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4240         (frv_arg_partial_bytes, frv_function_arg): Likewise.
4241         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
4242         (frv_function_arg_1): Likewise.
4243         * config/s390/s390.c (s390_pass_by_reference): Likewise.
4244         (s390_function_arg_advance, s390_function_arg): Likewise.
4245         * config/m32c/m32c.c (m32c_function_arg): Likewise.
4246         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
4247         (m32c_strict_argument_naming): Likewise.
4248         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
4249         (spu_function_arg_advance): Likewise.
4250         (spu_setup_incoming_varargs): Likewise.  Make static.
4251         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
4252         Remove prototype.
4253         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
4254         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4255         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
4256         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
4257         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
4258         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
4259         (mep_pass_by_reference, mep_function_arg): Likewise.
4260         (mep_function_arg_advance): Likewise.
4261         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4262         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
4263         (m32r_function_arg, m32r_function_arg_advance): Likewise.
4264         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
4265         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4266         (ix86_function_arg, ix86_pass_by_reference): Likewise.
4267         (ix86_setup_incoming_varargs): Likewise.
4268         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4269         (sh_strict_argument_naming): Likewise.
4270         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
4271         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
4272         (sh_function_arg_advance, sh_function_arg): Likewise.
4273         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4274         (pdp11_function_arg_advance): Likewise.
4275         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4276         Likewise.
4277         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
4278         * config/avr/avr.c (avr_function_arg): Likewise.
4279         (avr_function_arg_advance): Likewise.
4280         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4281         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
4282         (xtensa_function_arg_1): Likewise.
4283         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
4284         Likewise.
4285         (xstormy16_function_arg): Likewise.
4286         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4287         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4288         (fr30_function_arg_advance): Likewise.
4289         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4290         (lm32_function_arg, lm32_function_arg_advance): Likewise.
4291         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4292         (moxie_function_arg, moxie_function_arg_advance): Likewise.
4293         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
4294         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4295         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
4296         (cris_function_arg, cris_function_incoming_arg): Likewise.
4297         (cris_function_arg_advance, cris_function_arg_1): Likewise.
4298         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4299         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
4300         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
4301         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4302         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
4303         (mn10300_arg_partial_bytes): Likewise.
4304         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4305         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
4306         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
4307         (ia64_function_arg_1): Likewise.
4308         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4309         (m68k_function_arg): Likewise.
4310         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
4311         (rs6000_function_arg, setup_incoming_varargs): Likewise.
4312         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
4313         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
4314         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
4315         (picochip_arg_advance): Likewise.
4316         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4317         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
4318         (mcore_function_arg_advance): Likewise.
4319         * config/score/score.c (score_pass_by_reference): Likewise.
4320         (score_function_arg_advance): Likewise.
4321         (score_arg_partial_bytes): Likewise.  Make static.
4322         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
4323         * config/arm/arm.c (arm_arg_partial_bytes): Replace
4324         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4325         (arm_function_arg, arm_function_arg_advance): Likewise.
4326         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
4327         * config/pa/pa.c (pa_pass_by_reference): Likewise.
4328         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
4329         (pa_function_arg): Likewise.
4330         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
4331         (mips_function_arg, mips_function_arg_advance): Likewise.
4332         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
4333         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
4334         * config/vax/vax.c (vax_function_arg): Likewise.
4335         (vax_function_arg_advance): Likewise.
4336         * config/h8300/h8300.c (h8300_function_arg): Likewise.
4337         (h8300_function_arg_advance): Likewise.
4338         * config/v850/v850.c (v850_pass_by_reference): Likewise.
4339         (v850_strict_argument_naming, v850_function_arg): Likewise.
4340         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
4341         (v850_setup_incoming_varargs): Likewise.
4342         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4343         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
4344         (mmix_function_arg, mmix_pass_by_reference): Likewise.
4345         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
4346         with const void *.
4347         * config/bfin/bfin.c (setup_incoming_varargs): Replace
4348         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4349         (bfin_function_arg_advance, bfin_function_arg): Likewise.
4350         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
4351         * calls.c (emit_call_1): Change type of args_so_far to
4352         cumulative_args_t.  Changed all callers.
4353         (initialize_argument_information): Likewise.
4354         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
4355         * dse.c (get_call_args): Likewise.
4356         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4357         * function.c (pass_by_reference, reference_callee_copied): Likewise.
4358         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
4359         New member args_so_far_v.  Changed all users.
4360         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
4361         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4362         * config/mips/mips.c (mips_output_args_xfer): Likewise.
4363         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4364         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4365         * config/microblaze/microblaze.c (microblaze_expand_prologue):
4366         Likewise.
4367         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
4368         m32r_pass_by_reference.
4369
4370 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
4371
4372         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
4373         argument to be a VEC of statements.
4374         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
4375         assert that pattern statements have to have their vector type set.
4376         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
4377         Change the first argument to be a VEC of statements.  Update
4378         documentation.
4379         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
4380         (vect_handle_widen_mult_by_const): New function.
4381         (vect_recog_widen_mult_pattern):  Change the first argument to be a
4382         VEC of statements.  Update documentation.  Check that the constant is
4383         INTEGER_CST.  Support multiplication by a constant that fits an
4384         intermediate type - call vect_handle_widen_mult_by_const.
4385         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
4386         call.  Handle additional pattern statements if necessary.
4387
4388 2011-06-16  Nick Clifton  <nickc@redhat.com>
4389
4390         PR target/49427
4391         * config.gcc: Set cpu_type to v850 for any V850 architecture.
4392         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
4393         md_file, extra_modes, out_file and extra_options are these are all
4394         deduced from cpu_type.
4395
4396 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
4397
4398         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
4399         truncation mask to 63.
4400
4401 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
4402
4403         PR target/49313
4404         PR target/29524
4405         * longlong.h: Add AVR support:
4406         (count_leading_zeros): New macro.
4407         (count_trailing_zeros): New macro.
4408         (COUNT_LEADING_ZEROS_0): New macro.
4409         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
4410         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
4411         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4412         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
4413         (LIB2FUNCS_EXCLUDE): Add _clz.
4414         * config/avr/libgcc.S (XCALL): Move up in file.
4415         (XJMP): New C Macro.
4416         (DEFUN): New asm macro.
4417         (ENDF): New asm macro.
4418         (__ffssi2): New function.
4419         (__ffshi2): New function.
4420         (__loop_ffsqi2): New function.
4421         (__ctzsi2): New function.
4422         (__ctzhi2): New function.
4423         (__clzdi2): New function.
4424         (__clzsi2): New function.
4425         (__clzhi2): New function.
4426         (__paritydi2): New function.
4427         (__paritysi2): New function.
4428         (__parityhi2): New function.
4429         (__parityqi2): New function.
4430         (__popcounthi2): New function.
4431         (__popcountsi2): New function.
4432         (__popcountdi2): New function.
4433         (__popcountqi2): New function.
4434         (__bswapsi2): New function.
4435         (__bswapdi2): New function.
4436         (__ashldi3): New function.
4437         (__ashrdi3): New function.
4438         (__lshrdi3): New function.
4439         Fix suspicous lines.
4440
4441 2011-06-16  Richard Guenther  <rguenther@suse.de>
4442
4443         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4444         the same as x != 0.
4445         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4446         to (bool) X & 1.
4447         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4448         equality compares against zero for the lower bit.
4449
4450 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
4451
4452         PR tree-optimization/49419
4453         * tree-vrp.c (execute_vrp): Call init_range_assertions
4454         before estimate_numbers_of_iterations, call
4455         free_number_of_iterations_estimates before calling
4456         remove_range_assertions.
4457
4458 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4459
4460         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4461         (struct partial_schedule): Add rows_length field.
4462         (verify_partial_schedule): Check rows_length.
4463         (ps_insert_empty_row): Handle rows_length.
4464         (create_partial_schedule): Likewise.
4465         (free_partial_schedule): Likewise.
4466         (reset_partial_schedule): Likewise.
4467         (create_ps_insn): Remove rest_count argument.
4468         (remove_node_from_ps): Update rows_length.
4469         (add_node_to_ps): Update rows_length and call create_ps_insn
4470         without passing row_rest_count.
4471         (rotate_partial_schedule): Update rows_length.
4472
4473 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4474
4475         * ddg.c (add_intra_loop_mem_dep): New function.
4476         (build_intra_loop_deps): Call it.
4477
4478 2011-06-13  Jeff Law  <law@redhat.com>
4479
4480         * df-problems.c (df_lr_local_compute): Manually CSE
4481         PIC_OFFSET_TABLE_REGNUM.
4482         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4483         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4484
4485 2011-06-13  Jan Hubicka  <jh@suse.cz>
4486
4487         * cgraphunit.c (handle_alias_pairs): New function.
4488         (cgraph_finalize_compilation_unit): Use it.
4489         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4490         as externally visible.
4491
4492 2011-06-15  Richard Guenther  <rguenther@suse.de>
4493
4494         * expr.c (expand_expr_real_2): Reduce all integral types to
4495         bitfield precision.
4496         (expand_expr_real_1): Likewise.
4497
4498 2011-06-15  Martin Jambor  <mjambor@suse.cz>
4499
4500         PR tree-optimization/48613
4501         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4502         ipa_node_params_vector is NULL.
4503
4504 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
4505
4506         PR debug/49382
4507         * dwarf2out.c (dw_loc_list_node): Add force field.
4508         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4509         location in the list, even if it is modified before first real insn.
4510         (output_loc_list): Emit empty ranges with force flag set.
4511         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4512
4513 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
4514
4515         PR target/49349
4516         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4517         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
4518         above a fence.  Update comments.
4519         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4520         placed just above it.  Do not allow NULL place_to_insert.
4521
4522 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
4523
4524         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4525         (slpeel_tree_peel_loop_to_edge): Don't call
4526         remove_dead_stmts_from_loop.
4527         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4528         remove irrelevant pattern statements.  For irrelevant statements
4529         check if it is the last statement of a detected pattern, use
4530         corresponding pattern statement instead.
4531         (destroy_loop_vec_info): No need to remove pattern statements,
4532         only free stmt_vec_info.
4533         (vect_transform_loop): For irrelevant statements check if it is
4534         the last statement of a detected pattern, use corresponding
4535         pattern statement instead.
4536         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4537         pattern statements.  Set basic block for the new statement.
4538         (vect_pattern_recog): Update documentation.
4539         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4540         operands of pattern statements.
4541         (vectorizable_call): Fix printing.  In case of a pattern statement
4542         use the lhs of the original statement when creating a dummy
4543         statement to replace the original call.
4544         (vect_analyze_stmt): For irrelevant statements check if it is
4545         the last statement of a detected pattern, use corresponding
4546         pattern statement instead.
4547         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4548         statements use gsi of the original statement.
4549
4550 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4551
4552         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4553         common/common-target-def.h.
4554         * target.def (default_target_flags, handle_option,
4555         supports_split_stack, optimization_table, init_struct,
4556         except_unwind_info, unwind_tables_default, have_named_sections):
4557         Move to common/common-target.def.
4558         * target.h (enum opt_levels, struct default_options): Move to
4559         common/common-target.h.
4560         * targhooks.c (default_except_unwind_info,
4561         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4562         default_target_handle_option, empty_optimization_table): Move to
4563         common/common-targhooks.c.
4564         * targhooks.h (default_except_unwind_info,
4565         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4566         default_target_handle_option, empty_optimization_table): Move to
4567         common/common-targhooks.h.
4568         * common/common-target-def.h: Include common/common-targhooks.h.
4569         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4570         defined.
4571         * common/common-target.def (handle_option, option_init_struct,
4572         option_optimization_table, default_target_flags,
4573         except_unwind_info, supports_split_stack, unwind_tables_default,
4574         have_named_sections): Move from target.def.
4575         (HOOK_PREFIX): Undefine at end of file.
4576         * common/common-target.h: Include input.h.
4577         (enum opt_levels, struct default_options): Move from target.h.
4578         * common/common-targhooks.c, common/common-targhooks.h: New.
4579         * config.gcc (target_has_targetm_common): Default to yes.
4580         (moxie*): Set target_has_targetm_common=no.
4581         (hppa*-*-*): Don't set target_has_targetm_common=yes.
4582         * doc/tm.texi: Regenerate.
4583         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4584         (C_TARGET_DEF_H): Add common/common-targhooks.h.
4585         (GCC_OBJS): Remove vec.o.
4586         (OBJS): Remove hooks.o and vec.o.
4587         (OBJS-libcommon-target): Add vec.o, hooks.o and
4588         common/common-targhooks.o.
4589         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4590         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4591         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4592         cfglayout.o, $(out_object_file), $(common_out_object_file)):
4593         Update dependencies.
4594         (common/common-targhooks.o): New.
4595         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
4596         * common/config/pa/pa-common.c: Include more headers.  Take
4597         copyright dates from pa.c.
4598         (pa_option_optimization_table, pa_handle_option,
4599         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4600         TARGET_HANDLE_OPTION): Move from pa.c.
4601         * common/config/alpha/alpha-common.c,
4602         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4603         common/config/bfin/bfin-common.c,
4604         common/config/cris/cris-common.c,
4605         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4606         common/config/h8300/h8300-common.c,
4607         common/config/i386/i386-common.c,
4608         common/config/ia64/ia64-common.c,
4609         common/config/iq2000/iq2000-common.c,
4610         common/config/lm32/lm32-common.c,
4611         common/config/m32c/m32c-common.c,
4612         common/config/m32r/m32r-common.c,
4613         common/config/m68k/m68k-common.c,
4614         common/config/mcore/mcore-common.c,
4615         common/config/mep/mep-common.c,
4616         common/config/microblaze/microblaze-common.c,
4617         common/config/mips/mips-common.c,
4618         common/config/mmix/mmix-common.c,
4619         common/config/mn10300/mn10300-common.c,
4620         common/config/pdp11/pdp11-common.c,
4621         common/config/picochip/picochip-common.c,
4622         common/config/rs6000/rs6000-common.c,
4623         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4624         common/config/score/score-common.c, common/config/sh/sh-common.c,
4625         common/config/sparc/sparc-common.c,
4626         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4627         common/config/vax/vax-common.c,
4628         common/config/xstormy16/xstormy16-common.c,
4629         common/config/xtensa/xtensa-common.c: New.
4630         * config/alpha/alpha.c: Include common/common-target.h.
4631         (alpha_option_optimization_table, alpha_handle_option,
4632         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4633         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4634         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4635         * config/arm/arm.c (arm_option_optimization_table,
4636         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4637         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4638         arm-common.c.
4639         * config/avr/avr.c (avr_option_optimization_table,
4640         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4641         to avr-common.c.
4642         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4643         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4644         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4645         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4646         * config/cris/cris.c (cris_option_optimization_table,
4647         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4648         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4649         cris-common.c.
4650         * config/fr30/fr30.c (fr30_option_optimization_table,
4651         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4652         to fr30-common.c.
4653         * config/frv/frv.c (frv_option_optimization_table,
4654         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4655         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4656         * config/h8300/h8300.c (h8300_option_optimization_table,
4657         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4658         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4659         * config/i386/i386-protos.h (ix86_handle_option): Declare.
4660         * config/i386/i386.c: Include common/common-target.h.
4661         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4662         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4663         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4664         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4665         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4666         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4667         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4668         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4669         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4670         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4671         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4672         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4673         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4674         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4675         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4676         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4677         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4678         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4679         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4680         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4681         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4682         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4683         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4684         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4685         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4686         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4687         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4688         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4689         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4690         ix86_option_optimization_table, ix86_option_init_struct,
4691         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4692         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4693         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4694         i386-common.c.
4695         * config/i386/t-i386 (i386.o): Update dependencies.
4696         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4697         * config/ia64/ia64.c (ia64_option_optimization_table,
4698         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4699         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4700         ia64_handle_option): Move to ia64-common.c.
4701         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4702         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4703         * config/lm32/lm32.c (lm32_option_optimization_table,
4704         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4705         to lm32-common.c.
4706         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4707         m32c-common.c.
4708         * config/m32r/m32r.c (m32r_option_optimization_table,
4709         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4710         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4711         m32r_handle_option): Move to m32r-common.c.
4712         (m32r_memory_move_cost): Remove comment referring to
4713         TARGET_HANDLE_OPTION.
4714         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4715         Move to m68k-common.c.
4716         * config/mcore/mcore.c (mcore_option_optimization_table,
4717         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4718         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4719         * config/mep/mep.c (mep_option_optimization_table,
4720         mep_handle_option, TARGET_HANDLE_OPTION,
4721         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4722         Move to mep-common.c.
4723         * config/microblaze/microblaze.c
4724         (microblaze_option_optimization_table,
4725         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4726         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4727         * config/mips/mips.c (mips_handle_option,
4728         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4729         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4730         mips-common.c.
4731         * config/mmix/mmix.c (mmix_option_optimization_table,
4732         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4733         Move to mmix-common.c.
4734         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4735         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4736         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4737         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4738         * config/pa/pa.c: Include common/common-target.h.
4739         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4740         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4741         pa_handle_option): Move to pa-common.c.
4742         (pa_option_override): Use targetm_common.except_unwind_info.
4743         (pa_asm_output_mi_thunk, pa_function_section): Use
4744         targetm_common.have_named_sections.
4745         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4746         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4747         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4748         pdp11_handle_option, pdp11_option_init_struct): Move to
4749         pdp11-common.c.
4750         * config/picochip/picochip.c (picochip_option_optimization_table,
4751         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4752         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4753         * config/rs6000/rs6000.c: Include common/common-target.h.
4754         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4755         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4756         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4757         rs6000_handle_option): Move to rs6000-common.c.
4758         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4759         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4760         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4761         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4762         * config/s390/s390.c (processor_flags_table,
4763         s390_option_optimization_table, s390_option_init_struct,
4764         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4765         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4766         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4767         * config/s390/s390.h (processor_flags_table): Declare.
4768         * config/score/score.c (score_option_optimization_table,
4769         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4770         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4771         score_handle_option): Move to score-common.c.
4772         * config/sh/sh.c (sh_option_optimization_table,
4773         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4774         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4775         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4776         * config/sparc/sparc.c: Include common/common-target.h.
4777         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4778         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4779         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4780         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4781         spu_option_init_struct): Move to spu-common.c.
4782         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4783         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4784         * config/v850/v850.c (small_memory_physical_max,
4785         v850_handle_memory_optionn v850_handle_option,
4786         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4787         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4788         v850-common.c.
4789         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4790         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4791         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4792         Move to xtensa-common.c.
4793         * cfglayout.c: Include common/common-target.h.
4794         (fixup_reorder_chain): Use targetm_common.have_named_sections.
4795         * cfgrtl.c: Include common/common-target.h.
4796         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4797         targetm_common.have_named_sections.
4798         * dbxout.c: Include common/common-target.h.
4799         (dbxout_function_end): Use targetm_common.have_named_sections.
4800         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4801         targetm_common.except_unwind_info.
4802         * dwarf2out.c: Include common/common-target.h.
4803         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4804         dwarf2out_begin_prologue, dwarf2out_frame_init,
4805         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4806         targetm_common.except_unwind_info.
4807         * except.c: Include common/common-target.h.
4808         (init_eh, finish_eh_generation,
4809         output_one_function_exception_table): Use
4810         targetm_common.except_unwind_info.
4811         (switch_to_exception_section): Use targetm_common.have_named_sections.
4812         * explow.c: Include common/common-target.h.
4813         * expr.c: Include common/common-target.h.
4814         (build_personality_function): Use targetm_common.except_unwind_info.
4815         * function.c: Include common/common-target.h.
4816         (expand_function_end): Use targetm_common.except_unwind_info.
4817         * haifa-sched.c: Include common/common-target.h.
4818         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4819         * lto-opts.c: Include common/common-target.h instead of target.h.
4820         (lto_reissue_options): Use targetm_common.handle_option.
4821         * opts.c: Include common/common-target.h.
4822         (target_handle_option): Use targetm_common.handle_option.
4823         (init_options_struct): Update comment referring to
4824         targetm.target_option.optimization.  Use
4825         targetm_common.default_target_flags,
4826         targetm_common.unwind_tables_default and
4827         targetm_common.option_init_struct.
4828         (default_options_optimization): Use
4829         targetm_common.option_optimization_table.
4830         (finish_options): Use targetm_common.except_unwind_info,
4831         targetm_common.unwind_tables_default,
4832         targetm_common.have_named_sections and
4833         targetm_common.supports_split_stack.
4834         * toplev.c: Include common/common-target.h.
4835         (process_options): Use targetm_common.have_named_sections.
4836         * tree-tailcall.c: Include common/common-target.h.
4837         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4838         * tree.c: Include common/common-target.h.
4839         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4840         * varasm.c: Include common/common-target.h.
4841         (resolve_unique_section, hot_function_section,
4842         default_function_section): Use targetm_common.have_named_sections.
4843
4844 2011-06-14  Easwaran Raman  <eraman@google.com>
4845
4846         PR rtl-optimization/44194
4847         * dse.c: Include tree-flow.h
4848         (insn_info): Add new field non_frame_wild_read.
4849         (group_info): Add new fields escaped_n and escaped_p.
4850         (kill_on_calls): New variable.
4851         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4852         (dse_step0): Initialize kill_on_calls.
4853         (can_escape): New function.
4854         (set_usage_bits): Add additional parameter; record information
4855         about escaped locations.
4856         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4857         (dse_step2_nospill): Set kill_on_calls based on
4858         group->escaped_n and group->escaped_n.
4859         (add_wild_read): Refactor into...
4860         (reset_active_stores): ... New function, and
4861         (free_read_records): ... New function.
4862         (add_non_frame_wild_read): New function.
4863         (scan_insn): Call add_non_frame_wild_read on non-const calls.
4864         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4865         (dse_step5_nospill): Call scan_reads_nospill for instructions
4866         marked as non_frame_wild_read.
4867         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4868
4869 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4870
4871         * common/common-target-def.h, common/common-target.def,
4872         common/common-target.h, common/config/default-common.c,
4873         common/config/pa/pa-common.c: New files.
4874         * Makefile.in (common_out_file, common_out_object_file,
4875         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4876         (OBJS-libcommon-target): Include $(common_out_object_file).
4877         (prefix.o): Update dependencies.
4878         ($(common_out_object_file), common/common-target-hooks-def.h,
4879         s-common-target-hooks-def-h): New.
4880         (s-tm-texi): Also check timestamp on common-target.def.
4881         (build/genhooks.o): Update dependencies.
4882         * config.gcc (common_out_file, target_has_targetm_common): Define.
4883         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4884         TARGET_ALWAYS_STRIP_DOTDOT.
4885         * configure.ac (common_out_object_file): Define.
4886         (common_out_file, common_out_object_file): Substitute.
4887         (common): Create directory.
4888         * configure: Regenerate.
4889         * doc/tm.texi.in (targetm_common): Document.
4890         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4891         * doc/tm.texi: Regenerate.
4892         * genhooks.c (hook_array): Also include common/common-target.def.
4893         * prefix.c (tm.h): Don't include.
4894         (common/common-target.h): Include.
4895         (ALWAYS_STRIP_DOTDOT): Don't define.
4896         (update_path): Use targetm_common.always_strip_dotdot instead of
4897         ALWAYS_STRIP_DOTDOT.
4898         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4899
4900 2011-06-14  David Li  <davidxl@google.com>
4901
4902         * passes.c (execute_function_todo): Remove TODO_dump_func.
4903         (execute_one_pass): Remove TODO_dump_func.
4904         (execute_function_dump): New function.
4905         * tree-vrp.c: Remove TODO_dump_func.
4906         * regrename.c: Remove TODO_dump_func.
4907         * fwprop.c: Remove TODO_dump_func.
4908         * tree-into-ssa.c: Remove TODO_dump_func.
4909         * tree-complex.c: Remove TODO_dump_func.
4910         * tracer.c: Remove TODO_dump_func.
4911         * tree-loop-distribution.c: Remove TODO_dump_func.
4912         * postreload-gcse.c: Remove TODO_dump_func.
4913         * postreload.c: Remove TODO_dump_func.
4914         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4915         * tree-tailcall.c: Remove TODO_dump_func.
4916         * ipa-cp.c: Remove TODO_dump_func.
4917         * final.c: Remove TODO_dump_func.
4918         * tree-emutls.c: Remove TODO_dump_func.
4919         * omp-low.c: Remove TODO_dump_func.
4920         * tree-ssa-dse.c: Remove TODO_dump_func.
4921         * tree-ssa-uncprop.c: Remove TODO_dump_func.
4922         * auto-inc-dec.c: Remove TODO_dump_func.
4923         * reorg.c: Remove TODO_dump_func.
4924         * tree-ssa-copyrename.c: Remove TODO_dump_func.
4925         * tree-ssa-ccp.c: Remove TODO_dump_func.
4926         * compare-elim.c: Remove TODO_dump_func.
4927         * mode-switching.c: Remove TODO_dump_func.
4928         * modulo-sched.c: Remove TODO_dump_func.
4929         * tree-call-cdce.c: Remove TODO_dump_func.
4930         * cse.c: Remove TODO_dump_func.
4931         * web.c: Remove TODO_dump_func.
4932         * tree-stdarg.c: Remove TODO_dump_func.
4933         * lto-streamer-out.c: Remove TODO_dump_func.
4934         * tree-ssa-math-opts.c: Remove TODO_dump_func.
4935         * tree-ssa-dom.c: Remove TODO_dump_func.
4936         * tree-nrv.c: Remove TODO_dump_func.
4937         * loop-init.c: Remove TODO_dump_func.
4938         * gimple-low.c: Remove TODO_dump_func.
4939         * ipa-inline.c: Remove TODO_dump_func.
4940         * tree-ssa-sink.c: Remove TODO_dump_func.
4941         * jump.c: Remove TODO_dump_func.
4942         * ifcvt.c: Remove TODO_dump_func.
4943         * tree-ssa-loop.c: Remove TODO_dump_func.
4944         * recog.c: Remove TODO_dump_func.
4945         * dse.c: Remove TODO_dump_func.
4946         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4947         * matrix-reorg.c: Remove TODO_dump_func.
4948         * tree-eh.c: Remove TODO_dump_func.
4949         * regmove.c: Remove TODO_dump_func.
4950         * function.c: Remove TODO_dump_func.
4951         * tree-vectorizer.c: Remove TODO_dump_func.
4952         * ipa-split.c: Remove TODO_dump_func.
4953         * gcse.c: Remove TODO_dump_func.
4954         * tree-if-conv.c: Remove TODO_dump_func.
4955         * init-regs.c: Remove TODO_dump_func.
4956         * tree-ssa-phiopt.c: Remove TODO_dump_func.
4957         * implicit-zee.c: Remove TODO_dump_func.
4958         * lower-subreg.c: Remove TODO_dump_func.
4959         * bt-load.c: Remove TODO_dump_func.
4960         * tree-dfa.c: Remove TODO_dump_func.
4961         * except.c: Remove TODO_dump_func.
4962         * emit-rtl.c: Remove TODO_dump_func.
4963         * store-motion.c: Remove TODO_dump_func.
4964         * cfgexpand.c: Remove TODO_dump_func.
4965         * tree-cfgcleanup.c: Remove TODO_dump_func.
4966         * cfgcleanup.c: Remove TODO_dump_func.
4967         * tree-ssa-pre.c: Remove TODO_dump_func.
4968         * tree-sra.c: Remove TODO_dump_func.
4969         * tree-mudflap.c: Remove TODO_dump_func.
4970         * tree-ssa-copy.c: Remove TODO_dump_func.
4971         * cfglayout.c: Remove TODO_dump_func.
4972         * tree-ssa-forwprop.c: Remove TODO_dump_func.
4973         * tree-ssa-dce.c: Remove TODO_dump_func.
4974         * ira.c: Remove TODO_dump_func.
4975         * tree-ssa.c: Remove TODO_dump_func.
4976         * integrate.c: Remove TODO_dump_func.
4977         * tree-optimize.c: Remove TODO_dump_func.
4978         * tree-ssa-phiprop.c: Remove TODO_dump_func.
4979         * tree-object-size.c: Remove TODO_dump_func.
4980         * combine.c: Remove TODO_dump_func.
4981         * bb-reorder.c: Remove TODO_dump_func.
4982         * cprop.c: Remove TODO_dump_func.
4983         * var-tracking.c: Remove TODO_dump_func.
4984         * tree-profile.c: Remove TODO_dump_func.
4985         * tree-vect-generic.c: Remove TODO_dump_func.
4986         * reg-stack.c: Remove TODO_dump_func.
4987         * sched-rgn.c: Remove TODO_dump_func.
4988         * tree-ssa-structalias.c: Remove TODO_dump_func.
4989         * tree-switch-conversion.c: Remove TODO_dump_func.
4990         * tree-cfg.c: Remove TODO_dump_func.
4991         * tree-ssa-reassoc.c: Remove TODO_dump_func.
4992         * combine-stack-adj.c: Remove TODO_dump_func.
4993         * dce.c: Remove TODO_dump_func.
4994         * tree-ssanames.c: Remove TODO_dump_func.
4995         * regcprop.c: Remove TODO_dump_func.
4996
4997 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4998
4999         PR middle-end/47364
5000         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
5001         and properly handle result not in Pmode.
5002
5003 2011-06-14  Robert Millan  <rmh@gnu.org>
5004
5005         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
5006         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
5007         `config/linux.h'.
5008
5009         * config/i386/kfreebsd-gnu64.h: New file.
5010         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
5011         with `i386/kfreebsd-gnu64.h'.
5012
5013         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
5014         (GNU_USER_LINK_EMULATION64): New macros.
5015         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
5016         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
5017         of hardcoding `elf_i386' and `elf_x86_64'.
5018
5019 2011-06-14  Nick Clifton  <nickc@redhat.com>
5020
5021         PR target/49403
5022         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
5023
5024         PR target/49402
5025         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
5026
5027 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
5028
5029         PR fortran/49103
5030         * tree.h (DECL_NONSHAREABLE): Define.
5031         (struct tree_decl_common): Change decl_common_unused to
5032         decl_nonshareable_flag.
5033         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
5034         Ignore vars with DECL_NONSHAREABLE bit set.
5035         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
5036         on stores to automatic aggregate vars.
5037
5038         PR rtl-optimization/49390
5039         Revert:
5040         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
5041
5042         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5043         MEM_ALIAS_SET.
5044
5045 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
5046             Tom de Vries  <tom@codesourcery.com>
5047
5048         PR target/45098
5049         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
5050         Document changed semantics.
5051         (max_stmt_executions, max_stmt_executions_int): Declare.
5052         * tree-data-ref.c (estimated_loop_iterations)
5053         (estimated_loop_iterations_int): Move functions...
5054         * tree-ssa-loop-niter.c (estimated_loop_iterations)
5055         (estimated_loop_iterations_int): here.
5056         (record_estimate): Change nb_iterations_upper_bound and
5057         nb_iterations_estimate semantics.
5058         (max_stmt_executions, max_stmt_executions_int): New function.
5059         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
5060         (max_stmt_executions_tree): this.
5061         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
5062         estimated_loop_iterations_tree.
5063         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
5064         max_stmt_executions_int instead of estimated_loop_iterations_int.
5065         * predict.c (predict_loops): Idem.
5066         * tree-parloops.c (parallelize_loops): Idem.
5067         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
5068         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
5069         (init_omega_for_ddr_1): Idem.
5070         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
5071         (loop_prefetch_arrays): Idem
5072         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
5073         max_stmt_executions instead of estimated_loop_iterations.
5074         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
5075         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
5076         instead of nb_iterations_upper_bound.
5077
5078 2011-06-13  Jan Hubicka  <jh@suse.cz>
5079
5080         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
5081
5082 2011-06-14  Richard Henderson  <rth@redhat.com>
5083
5084         PR debug/48459
5085         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
5086         (based_loc_descr): Assert it's true.
5087         (compute_frame_pointer_to_fb_displacement): Set it, rather than
5088         aborting immediately.
5089
5090 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
5091             Mingfeng Wu  <mingfeng@faraday-tech.com>
5092
5093         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
5094
5095 2011-06-13  Jan Hubicka  <jh@suse.cz>
5096
5097         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
5098
5099 2011-06-13  Jan Hubicka  <jh@suse.cz>
5100
5101         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
5102         similarly to DECL_COMDAT.
5103         * cgraphunit.c (cgraph_analyze_function): Likewise.
5104         * ipa.c (function_and_variable_visibility): Likewise.
5105
5106 2011-06-13  Jan Hubicka  <jh@suse.cz>
5107
5108         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
5109         BINFO_VIRTUALS when streaming for ltrans unit.
5110
5111 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
5112
5113         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
5114         (movdi_internal64): Same.
5115
5116 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
5117
5118         PR target/44618
5119         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
5120         a set of similar patterns, where the MATCH_OPERAND for the function
5121         argument is replaced with individual references to hardware registers.
5122         (save_fpregs_<mode>): Ditto
5123         (restore_gpregs_<mode>): Ditto
5124         (return_and_restore_gpregs_<mode>): Ditto
5125         (return_and_restore_fpregs_<mode>): Ditto
5126         (return_and_restore_fpregs_aix_<mode>): Ditto
5127
5128 2011-06-13  Jan Hubicka  <jh@suse.cz>
5129
5130         * ipa-utils.c (postorder_stack): New structure.
5131         (ipa_reverse_postorder): Handle aliases.
5132
5133 2011-06-13  Jan Hubicka  <jh@suse.cz>
5134
5135         * ipa-inline.c (reset_edge_caches): Walk aliases.
5136         (update_caller_keys): Do not test inlinability of aliases.
5137         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
5138         (do_estimate_growth): Fix typo.
5139
5140 2011-06-13  Jan Hubicka  <jh@suse.cz>
5141
5142         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
5143         (can_remove_node_now_p): ... here; handle same comdat groups.
5144         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
5145         (inline_call): Update use of can_remove_node_now_p.
5146
5147 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5148
5149         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
5150         condition to disallow non-identical memory locations.
5151         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
5152         preference to bit manipulation instructions.
5153
5154 2011-06-13  Jan Hubicka  <jh@suse.cz>
5155
5156         * cgraph.c (cgraph_for_node_thunks_and_aliases,
5157         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
5158         (nonremovable_p): New function.
5159         (cgraph_can_remove_if_no_direct_calls_p): New function.
5160         (used_from_object_file_p): New functoin.
5161         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
5162         references from aliases.
5163         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
5164         * ipa-inline.c (check_caller_edge): New function.
5165         (want_inline_function_called_once_p): Use it; accept aliases called
5166         once, too.
5167         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
5168
5169 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5170
5171         PR target/48454
5172         * config/arm/neon.md (vec_pack_trunc): Set the lengths
5173         correctly for the case with Quad vectors.
5174
5175 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
5176            Ira Rosen  <ira.rosen@linaro.org>
5177
5178         PR tree-optimization/49352
5179         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
5180         all, make sure loop_use_stmt after the loop is a def stmt of a used
5181         SSA_NAME that is the only one defined inside of the loop.  Don't
5182         check for COND_EXPR and GIMPLE_BINARY_RHS.
5183         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
5184         check_reduction is true.
5185
5186 2011-06-11  Jan Hubicka  <jh@suse.cz>
5187
5188         PR middle-end/49373
5189         * ipa.c (cgraph_externally_visible_p): Check resolution info.
5190
5191 2011-06-11  Jan Hubicka  <jh@suse.cz>
5192
5193         PR middle-end/48836
5194         * ipa-inline-transform.c: Include tree-pass.h
5195         (inline_transform): Set TODO_update_ssa_only_virtuals.
5196         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
5197
5198 2011-06-11  Jan Hubicka  <jh@suse.cz>
5199
5200         PR middle-end/49378
5201         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
5202         aliases and thunks.
5203
5204 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
5205
5206         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
5207         Take number of iterations to peel into account for equally frequent
5208         misalignment values.
5209
5210 2011-06-11  Jan Hubicka  <jh@suse.cz>
5211
5212         * lto-streamer-out.c (produce_symtab): Stream out the newly
5213         represented aliases.
5214
5215 2011-06-11  Jan Hubicka  <jh@suse.cz>
5216
5217         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
5218         varying args.
5219         (ipa_update_after_lto_read): Likewise.
5220         (ipa_write_node_info): Do not sream call_with_var_arguments.
5221         (ipa_read_node_info): Likewise.
5222
5223 2011-06-11  Jan Hubicka  <jh@suse.cz>
5224
5225         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
5226
5227 2011-06-11  Jan Hubicka  <jh@suse.cz>
5228
5229         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
5230         (lto_symtab_resolve_can_prevail_p): Likewise.
5231         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
5232         * cgraph.c (same_body_aliases_done): New global var.
5233         (cgraph_same_body_alias_1): Rename to ...
5234         (cgraph_create_function_alias): ... this one; reorg to new
5235         representation.
5236         (cgraph_same_body_alias): Use cgraph_create_function_alias;
5237         record references when asked to.
5238         (cgraph_add_thunk): Fix formating.
5239         (cgraph_get_node): Kill same body alias code.
5240         (cgraph_node_for_asm): Likewise.
5241         (cgraph_remove_same_body_alias): Remove.
5242         (cgraph_remove_node): Kill same body alias code.
5243         (cgraph_mark_address_taken_node): Mark also the aliased function
5244         as having address taken.
5245         (dump_cgraph_node): Dump same body aliases.
5246         (cgraph_for_node_thunks_and_aliases): Update for new alias
5247         representation.
5248         (cgraph_for_node_and_aliases): Likewise.
5249         * cgraph.h (same_body): Kll pointer.
5250         (same_body_alias): Update comment.
5251         (same_body_aliases_done): Declare.
5252         (cgraph_remove_same_body_alias): Remove declaration.
5253         (cgraph_create_function_alias): Declare.
5254         (cgraph_process_same_body_aliases): Declare.
5255         (cgraph_function_with_gimple_body_p): Check for alias.
5256         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
5257         (cgraph_alias_aliased_node): New function.
5258         (cgraph_function_node): Update for new aliases.
5259         (cgraph_function_or_thunk_node): Likewise.
5260         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
5261         (inline_call): Remove dead aliases.
5262         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
5263         name hack for same body aliases.
5264         (clone_of_p): Look through aliases.
5265         (verify_cgraph_node): Verify aliases.
5266         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
5267         (cgraph_process_same_body_aliases): New function.
5268         (process_function_and_variable_attributes): Disable weakref warning on
5269         alias.
5270         (cgraph_analyze_functions): Handle aliases.
5271         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
5272         (assemble_thunks): Rename to ...
5273         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
5274         (cgraph_expand_function): Remove alias output code.
5275         (cgraph_output_in_order): Skip aliases.
5276         (cgraph_preserve_function_body_p): Aliases don't need preserving.
5277         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
5278         (ipa_record_reference): Do not assert on alias references.
5279         (ipa_ref_has_aliases_p): New function.
5280         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
5281         (ipa_ref_has_aliases_p): Declare.
5282         * lto-cgraph.c (lto_output_node): Handle aliases.
5283         (input_node): Likewise.
5284         * lto-streamer-out.c (lto_output): Skip aliases.
5285         (produce_symtab): Kill same_body_alias code.
5286         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
5287         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
5288         * ipa-inline.c (update_caller_keys): Walk aliases.
5289         (inline_small_functions): Fix thinko in previous patch.
5290         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
5291         (function_and_variable_visibility): Do not walk same body aliases.
5292         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
5293         (ipa_pta_execute): Use it.
5294
5295 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
5296
5297         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
5298         (*vec_dupv2df): Rename from vec_dupv2df.
5299         (vec_dupv2df): New expander.
5300
5301 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
5302
5303         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
5304
5305 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
5306
5307         * config/i386/i386.md: Use default value in "isa" attribute.
5308         * config/i386/sse.md: Ditto.
5309         * config/i386/mmx.md: Ditto.
5310
5311 2011-06-10  Wei Guozhi  <carrot@google.com>
5312
5313         PR target/45335
5314         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5315         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5316         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5317         related peephole2.
5318         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5319         related peephole2.
5320         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5321         (arm_legitimate_ldrd_p): New prototype.
5322         (arm_output_ldrd): New prototype.
5323         * config/arm/arm.c (arm_check_ldrd_operands): New function.
5324         (arm_legitimate_ldrd_p): New function.
5325         (arm_output_ldrd): New function.
5326
5327 2011-06-10  David Li  <davidxl@google.com>
5328
5329         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5330         * passes.c (passr_eq): New function.
5331         (create_pass_tab): New function.
5332         (pass_traverse): New function.
5333         (dump_one_pass): New function.
5334         (dump_pass_list): New function.
5335         (dump_passes): New function.
5336
5337 2011-06-10  Jan Hubicka  <jh@suse.cz>
5338
5339         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
5340         setting the nothrow flag.
5341         * ipa-reference.c (propagate): Skip aliases.
5342         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
5343         (propagate_nothrow): Skip aliases; do not update cgraph.
5344         (local_pure_const): Do not update cgraph.
5345         * tree-profile.c (tree_profiling): Do fixup_cfg.
5346
5347 2011-06-10  Jan Hubicka  <jh@suse.cz>
5348
5349         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
5350         (cgraph_local_node_p): ... here; handle aliases.
5351         (has_addr_references_p): Break out from ...;
5352         (cgraph_remove_unreachable_nodes) ... here.
5353
5354 2011-06-10  Jan Hubicka  <jh@suse.cz>
5355
5356         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
5357         * common.opt (flag_inline_functions_called_once): Do not
5358         initialize to 1.
5359
5360 2011-06-10  Jan Hubicka  <jh@suse.cz>
5361
5362         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
5363         (ipcp_initialize_node_lattices): Do not deal with aliases;
5364         Do not try to propagate through thunks.
5365         (ipcp_change_tops_to_bottom): Do not deal with aliases.
5366
5367 2011-06-10  Jan Hubicka  <jh@suse.cz>
5368
5369         * ipa-prop.c (ipa_write_node_info): Stream jump functions
5370         for indirect calls.
5371         (ipa_read_node_info): Likewise.
5372
5373 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5374
5375         PR lto/49302
5376         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
5377         (build_and_insert_call): Likewise.
5378         (build_and_insert_ref): New.
5379         (gimple_expand_builtin_pow): Minor cleanup.
5380         (gimple_expand_builtin_cabs): New.
5381         (execute_cse_sincos): Add case for BUILT_IN_CABS.
5382
5383 2011-06-10  Jan Hubicka  <jh@suse.cz>
5384
5385         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
5386         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
5387         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
5388         (ipcp_propagate_stage): Skip aliases when propagating.
5389         (ipcp_need_redirect_p): Skip aliases.
5390         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
5391         collect_callers_of_node.
5392         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
5393         for aliases.
5394         (ipa_compute_jump_functions): Look through aliases.
5395
5396 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5397
5398         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
5399
5400 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5401
5402         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
5403         Adjust comments.
5404         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
5405
5406 2011-06-10  Jan Hubicka  <jh@suse.cz>
5407
5408         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
5409         Update call of gimple_get_virt_method_for_binfo.
5410         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
5411         refuse_thunks parameter.
5412         (gimple_fold_call): Update.
5413         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5414
5415 2011-06-10  Jan Hubicka  <jh@suse.cz>
5416
5417         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5418         (not_all_callers_have_enough_arguments_p): ... this one; turn into
5419         worker for cgraph_for_node_and_aliases.
5420         (convert_callers_for_node): Break out from ...
5421         (convert_callers): ... here.
5422         (modify_function): Use collect_callers_of_node.
5423         (ipa_early_sra): Use cgraph_for_node_and_aliases.
5424
5425 2011-06-10  Richard Guenther  <rguenther@suse.de>
5426
5427         PR tree-optimization/49361
5428         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5429         when not already in gimple form.
5430
5431 2011-06-10  Richard Guenther  <rguenther@suse.de>
5432
5433         PR bootstrap/49344
5434         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5435         FOR_EACH_PHI_OR_STMT_USE.
5436
5437 2011-06-10  Jan Hubicka  <jh@suse.cz>
5438
5439         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5440         (clone_inlined_nodes): ... here.
5441         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5442         to real destination prior inlining.
5443         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5444         can_early_inline_edge_p, want_early_inline_function_p,
5445         want_early_inline_function_p, want_inline_small_function_p,
5446         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5447         edge_badness, update_all_callee_keys, lookup_recursive_calls,
5448         add_new_edges_to_heap, inline_small_functions, flatten_function,
5449         inline_always_inline_functions, early_inline_small_functions): Use
5450         cgraph_function_or_thunk_node.
5451         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5452         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5453         (do_estimate_edge_growth_1): Break out from ...
5454         (do_estimate_growth) ... here; walk aliases.
5455         (inline_generate_summary): Skip aliases.
5456
5457 2011-06-10  Richard Guenther  <rguenther@suse.de>
5458
5459         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5460         forward when combining, visit inserted stmts when a stmt was changed.
5461
5462 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
5463
5464         * tree.h (error_operand_p): Add.
5465         * dbxout.c (dbxout_type_fields): Use the latter.
5466         * c-decl.c (add_stmt): Likewise.
5467         * gimplify.c (omp_add_variable, omp_notice_variable,
5468         gimplify_scan_omp_clauses): Likewise.
5469
5470 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
5471
5472         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5473         when a value is actually passed in regs.
5474
5475 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5476             Laurent Rougé  <laurent.rouge@menta.fr>
5477
5478         * doc/invoke.texi (SPARC options): Add -mflat.
5479         * config/sparc/sparc.opt: Likewise.
5480         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5481         (sparc_flat_expand_prologue): Declare.
5482         (sparc_flat_expand_epilogue): Likewise.
5483         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5484         (CPP_ENDIAN_SPEC): Replace with...
5485         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
5486         (CPP_SPEC): Adjust to above change.
5487         (EXTRA_SPECS): Likewise.
5488         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5489         (INCOMING_REGNO): Likewise.
5490         (OUTGOING_REGNO): Likewise.
5491         (LOCAL_REGNO): Likewise.
5492         (SETUP_FRAME_ADDRESSES): Likewise.
5493         (FIXED_REGISTERS): Set 0 for %fp.
5494         (CALL_USED_REGISTERS): Likewise.
5495         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5496         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5497         (RETURN_ADDR_REGNUM): Define.
5498         (RETURN_ADDR_RTX): Use it.
5499         (INCOMING_RETURN_ADDR_REGNUM): Define.
5500         (INCOMING_RETURN_ADDR_RTX): Use it.
5501         (DWARF_FRAME_RETURN_COLUMN): Likewise.
5502         (EH_RETURN_REGNUM): Define.
5503         (EH_RETURN_STACKADJ_RTX): Use it.
5504         (EH_RETURN_HANDLER_RTX): Delete.
5505         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5506         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5507         Delete.
5508         (struct machine_function): Add frame_size, apparent_frame_size,
5509         frame_base_reg, frame_base_offset, n_global_fp_regs and
5510         save_local_in_regs_p fields.
5511         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5512         sparc_frame_base_offset, sparc_n_global_fp_regs,
5513         sparc_save_local_in_regs_p): New macros.
5514         (sparc_option_override): Error out if -fcall-saved-REG is specified
5515         for Out registers.
5516         (eligible_for_restore_insn): Fix formatting.
5517         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
5518         (eligible_for_sibcall_delay): Likewise.
5519         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5520         (sparc_legitimate_address_p): Adjust to above change.
5521         (save_global_or_fp_reg_p): New predicate.
5522         (return_addr_reg_needed_p): Likewise.
5523         (save_local_or_in_reg_p): Likewise.
5524         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
5525         (SORR_SAVE, SORR_RESTORE): Delete.
5526         (sorr_pred_t): New typedef.
5527         (sorr_act_t): New enum.
5528         (save_or_restore_regs): Rename to...
5529         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
5530         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5531         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
5532         mechanism.  Add CFI information for double-word saves in 32-bit mode.
5533         (emit_adjust_base_to_offset): New function extracted from...
5534         (emit_save_or_restore_regs): ...this.  Rename the rest to...
5535         (emit_save_or_restore_regs_global_fp_regs): ...this.
5536         (emit_save_or_restore_regs_local_in_regs): New function.
5537         (gen_create_flat_frame_[123]): New functions.
5538         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
5539         (sparc_flat_expand_prologue): New function.
5540         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5541         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
5542         (sparc_flat_expand_epilogue): New function.
5543         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5544         (output_return): Likewise.
5545         (output_sibcall): Likewise.
5546         (sparc_output_mi_thunk): Likewise.
5547         (sparc_frame_pointer_required): Likewise.
5548         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5549         function optimization.
5550         * config/sparc/sparc.md (flat): New attribute.
5551         (prologue): Add TARGET_FLAT handling.
5552         (save_register_window): Disable if TARGET_FLAT.
5553         (create_flat_frame_[123]): New patterns.
5554         (epilogue): Add TARGET_FLAT handling.
5555         (sibcall_epilogue): Likewise.
5556         (eh_return): New expander.
5557         (eh_return_internal): New insn and splitter.
5558         (return_internal): Add TARGET_FLAT handling.
5559         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5560         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5561         (nonlocal_goto): Add TARGET_FLAT handling.
5562         * config/sparc/t-elf: Add -mflat multilib.
5563         * config/sparc/t-leon: Likewise.
5564
5565 2011-06-10  Jan Hubicka  <jh@suse.cz>
5566
5567         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5568         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5569         (self_recursive_p): Use cgraph_function_node.
5570         (propagate_pure_const): Likewise.
5571         (propagate_nothrow): Likewise.
5572         * ipa-reference.c (ipa_reference_get_not_read_global): Use
5573         cgraph_function_node.
5574         (propagate_bits): Likewise.
5575         (propagate): Likewise.
5576
5577 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5578             Richard Earnshaw  <rearnsha@arm.com>
5579
5580         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5581         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5582         (*thumb2_movdi_vfp): Delete.
5583         (*arm_movdi_vfp_cortexa8): Delete.
5584         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5585         (*movdi_vfp_cortexa8): Likewise.
5586
5587 2011-06-10  Richard Guenther  <rguenther@suse.de>
5588
5589         * stor-layout.c (initialize_sizetypes): Give names to all
5590         sizetype kinds.
5591
5592 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
5593
5594         PR tree-optimization/49318
5595         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5596         irrelevant pattern statements.
5597
5598 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5599
5600         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5601
5602         PR bootstrap/49354
5603         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5604         to last assignment.
5605
5606 2011-06-09  Jan Hubicka  <jh@suse.cz>
5607
5608         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5609         do not recompute reachable flag.
5610         (cgraph_finalize_function, cgraph_analyze_functions): Set
5611         redefined_extern_inline here.
5612
5613 2011-06-09  Jan Hubicka  <jh@suse.cz>
5614
5615         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5616         (cgraph_only_called_directly_p): ... this one; bring offline.
5617         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5618         varpool_used_from_object_file_p): Drop names from the declaratoin.
5619         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5620         collect_callers_of_node): New.
5621         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5622         (cgraph_edge_recursive_p): Use cgraph_function_node.
5623         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5624         (cgraph_node_cannot_be_local_p_1): Break out from ...
5625         (cgraph_node_can_be_local_p): ... here; walk aliases.
5626         (cgraph_for_node_thunks_and_aliases): New function.
5627         (cgraph_for_node_and_aliases): New function.
5628         (cgraph_make_node_local_1): Break out from ...
5629         (cgraph_make_node_local) ... here; use
5630         cgraph_for_node_thunks_and_aliases.
5631         (cgraph_set_nothrow_flag_1): Break out from ...
5632         (cgraph_set_nothrow_flag) ... here;
5633         use cgraph_for_node_thunks_and_aliases.
5634         (cgraph_set_const_flag_1): Break out from ...
5635         (cgraph_set_const_flag) ... here;
5636         use cgraph_for_node_thunks_and_aliases.
5637         (cgraph_set_pure_flag_1): Break out from ...
5638         (cgraph_set_pure_flag) ... here;
5639         use cgraph_for_node_thunks_and_aliases.
5640         (cgraph_propagate_frequency_1): Break out from ...
5641         (cgraph_propagate_frequency) ... here; use
5642         cgraph_for_node_thunks_and_aliases.
5643         (cgraph_used_from_object_file_p): Do not care about aliases.
5644         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5645         New functions.
5646         (collect_callers_of_node_1, collect_callers_of_node): New functions.
5647
5648 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5649
5650         PR rtl-optimization/49154
5651         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5652         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5653         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5654         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5655         * config/cris/cris.h (cris_register_move_cost): Remove
5656         !TARGET_V32 code.  Tweak comments.
5657
5658 2011-06-09  Jan Hubicka  <jh@suse.cz>
5659
5660         * cgraphbuild.c (record_eh_tables): Mark personality function as having
5661         address taken.
5662
5663 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5664
5665         PR rtl-optimization/49154
5666         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5667         is a matching slot in the hashtable, assign it to classes_ptr.
5668
5669         PR rtl-optimization/49154
5670         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5671         register classes.
5672         * doc/tm.texi: Regenerate.
5673
5674 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5675
5676         PR target/49307
5677         * config/sh/sh.md (UNSPEC_CHKADD): New.
5678         (chk_guard_add): New define_insn_and_split.
5679         (symGOT_load): Use chk_guard_add instead of blockage.
5680
5681 2011-06-09  Kai Tietz  <ktietz@redhat.com>
5682
5683         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5684
5685 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5686
5687         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5688
5689 2011-06-09  Wei Guozhi  <carrot@google.com>
5690
5691         PR target/46975
5692         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5693         (peephole2 for conditional move): Generate 16 bit instructions.
5694
5695 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
5696
5697         * config/i386/i386.md (*movdi_internal_rex64): Merge
5698         alternatives 6 and 8.
5699
5700 2011-06-09  David Li  <davidxl@google.com>
5701
5702         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5703         * passes.c (passr_eq): New function.
5704         (create_pass_tab): New function.
5705         (pass_traverse): New function.
5706         (dump_one_pass): New function.
5707         (dump_pass_list): New function.
5708         (dump_passes): New function.
5709
5710 2011-06-09  David Li  <davidxl@google.com>
5711
5712         * tree-complex.c (tree_lower_complex): Gate cleanup.
5713         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5714         (execute_optimize_stdarg): Ditto.
5715         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5716         (execute_cleanup_eh_1): Ditto.
5717         (execute_cleanup_eh): Ditto.
5718         * gcse.c (gate_rtl_pre): Ditto.
5719         (execute_rtl_pre): Ditto.
5720         * except.c (finish_eh_generation): Ditto.
5721         (convert_to_eh_region_ranges): Ditto.
5722         * cprop.c (one_cprop_pass): Ditto.
5723
5724 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
5725
5726         PR target/48673
5727         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5728         in all basic blocks.
5729
5730 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5731
5732         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5733         (HAVE_ENABLE_EXECUTE_STACK): Define.
5734         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5735         (HAVE_ENABLE_EXECUTE_STACK): Define.
5736         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5737         (HAVE_ENABLE_EXECUTE_STACK): Define.
5738         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5739         (ENABLE_EXECUTE_STACK): Remove.
5740         (HAVE_ENABLE_EXECUTE_STACK): Define.
5741         [IN_LIBGCC2]: Don't include <windows.h>.
5742         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5743         (HAVE_ENABLE_EXECUTE_STACK): Define.
5744         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5745         (HAVE_ENABLE_EXECUTE_STACK): Define.
5746         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5747         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5748         (HAVE_ENABLE_EXECUTE_STACK): Define.
5749         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5750         (HAVE_ENABLE_EXECUTE_STACK): Define.
5751         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5752         (HAVE_ENABLE_EXECUTE_STACK): Define.
5753         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5754         (HAVE_ENABLE_EXECUTE_STACK): Define.
5755         * config/alpha/alpha.c (alpha_trampoline_init): Test
5756         HAVE_ENABLE_EXECUTE_STACK.
5757         * config/i386/i386.c (ix86_trampoline_init): Likewise.
5758         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5759         (sparc64_initialize_trampoline): Likewise.
5760         * libgcc2.c [L_enable_execute_stack]: Remove.
5761         * system.h (ENABLE_EXECUTE_STACK): Poison.
5762         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5763         * doc/tm.texi: Regenerate.
5764         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5765
5766 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
5767
5768         PR middle-end/49308
5769         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5770         variable.  After resetting and rescanning insn continue with previous
5771         statement.
5772
5773 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5774
5775         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5776         (gcc_cv_ld_hidden): Likewise.
5777         * configure: Regenerate.
5778         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5779         (ix86_stack_protect_fail): Mark unused.
5780         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5781         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5782         [TARGET_MACHO]: Don't define.
5783         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5784         (TARGET_STACK_PROTECT_FAIL): Likewise.
5785         (rs6000_stack_protect_fail): Mark unused.
5786         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5787         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
5788
5789 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5790
5791         * varasm.c (get_section): Print location of other conflict
5792         for section conflicts.
5793
5794 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5795
5796         * config/i386/driver-i386.c (host_detect_local_cpu):
5797         Add model 0x2d Intel CPU.
5798
5799 2011-06-08  Andi Kleen  <ak@linux.intel.com>
5800
5801         * reginfo.c (global_regs_decl): Add.
5802         (globalize_reg): Add decl parameter. Compute location.  Pass location
5803         to warnings and add inform. Store decl in global_regs_decl.
5804         * rtl.h (globalize_reg): Update prototype.
5805         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5806
5807 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
5808
5809         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5810
5811 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5812
5813         PR target/49305
5814         * config/sh/predicates.md (general_movsrc_operand): Check
5815         mode for memory with indexed address for QI and HImode.
5816         (general_movdst_operand): Likewise.
5817
5818 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
5819
5820         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5821
5822 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
5823
5824         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5825         (num_ssa_operands): Likewise.
5826         (op_iter_init_phiuse): Forward-declare.
5827         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5828
5829 2011-06-08  Nick Clifton  <nickc@redhat.com>
5830
5831         * doc/invoke.texi (ARM Options): Update description of
5832         -mthumb-interwork.
5833
5834 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
5835
5836         * config/i386/driver-i386.c (host_detect_local_cpu): Support
5837         unknown Intel family 0x6 CPUs.
5838
5839 2011-06-08  Martin Jambor  <mjambor@suse.cz>
5840
5841         * tree-sra.c (mark_rw_status): Removed.
5842         (analyze_access_subtree): New parameter parent instead of
5843         mark_read and mark_write, propagate from that.
5844
5845 2011-06-08  Julian Brown  <julian@codesourcery.com>
5846
5847         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5848         for double-precision helper functions in hard-float mode if only
5849         single-precision arithmetic is supported in hardware.
5850
5851 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
5852
5853         PR rtl-optimization/49303
5854         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
5855         code_motion_path_driver returned 0 or 1.
5856         (sel_region_finish): Clear h_d_i_d.
5857
5858 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5859
5860         * config/sh/sh.c (prepare_move_operands): Set pic register
5861         appropriately for global and local dynamic tls models even
5862         if flag_pic is unset.
5863
5864 2011-06-07  Jason Merrill  <jason@redhat.com>
5865
5866         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5867
5868 2011-06-07  Xinliang David Li  <davidxl@google.com>
5869         * passes.c (enable_disable_pass): Handle assembler name.
5870         (is_pass_explicitly_enabled_or_disabled): Ditto.
5871
5872 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5873
5874         PR tree-optimization/48497
5875         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5876
5877 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5878
5879         PR tree-optimization/46728
5880         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5881         to use gimple_val_nonnegative_real_p.
5882         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5883         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5884
5885 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
5886
5887         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5888
5889 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
5890
5891         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5892         constant vectors.
5893
5894 2011-06-07  Richard Guenther  <rguenther@suse.de>
5895
5896         * stor-layout.c (initialize_sizetypes): Initialize all
5897         sizetypes based on target definitions.
5898         (set_sizetype): Remove.
5899         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5900         * tree.h (set_sizetype): Remove.
5901
5902 2011-06-07  Nick Clifton  <nickc@redhat.com>
5903
5904         * config.gcc: Unify V850 architecture options and add support for
5905         newer V850 architectures.
5906         * config/v850/t-v850e: Delete.
5907
5908 2011-06-07  Richard Guenther  <rguenther@suse.de>
5909
5910         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5911         Call set_sizetype from here.
5912
5913 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
5914
5915         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5916         (*maddhisi4tb, *maddhisi4tt): New define_insns.
5917
5918 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
5919             Andrew Stubbs  <ams@codesourcery.com>
5920
5921         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5922         multiplies.
5923         * doc/md.texi (Canonicalization of Instructions): Document widening
5924         multiply canonicalization.
5925
5926 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
5927
5928         PR gcov-profile/49299
5929         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
5930
5931 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
5932
5933         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5934         a pointer.
5935         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5936         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5937         vect_recog_pow_pattern): Likewise.
5938         (vect_pattern_recog_1): Remove declaration.
5939         (widened_name_p): Remove declaration.  Add new argument to specify
5940         whether to check that both types are either signed or unsigned.
5941         (vect_recog_widen_mult_pattern): Update documentation.  Handle
5942         unsigned patterns and multiplication by constants.
5943         (vect_pattern_recog_1): Update vect_recog_func references.  Use
5944         statement information from the statement returned from pattern
5945         detection functions.
5946         (vect_pattern_recog): Update vect_recog_func reference.
5947         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5948         multiplication by a constant use the type of the other operand.
5949
5950 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
5951
5952         PR rtl-optimization/49145
5953         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5954
5955 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
5956
5957         PR debug/49262
5958         * dwarf2out.c (native_encode_initializer): Decrement count in each
5959         iteration.
5960
5961         PR debug/49294
5962         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5963         non-MODE_INT modes.
5964
5965         PR c++/49264
5966         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5967         if stmt folded into nothing.
5968         * tree-inline.c (fold_marked_statements): If a builtin at the end of
5969         a bb folded into nothing, just update cgraph edges and move to next bb.
5970         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5971         to be NULL.  Don't compute count and frequency if new_call is NULL.
5972
5973 2011-06-04  Diego Novillo  <dnovillo@google.com>
5974
5975         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5976         (cgraph.o): Likewise.
5977         (cgraphunit.o): Likewise.
5978         * cgraphunit.c: Include lto-streamer.h
5979         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5980         if LTO is enabled.
5981         * lto-streamer-in.c (unpack_value_fields): Call
5982         streamer_hooks.unpack_value_fields if set.
5983         (lto_materialize_tree): For unhandled nodes, first try to
5984         call lto_streamer_hooks.alloc_tree, if it exists.
5985         (lto_input_ts_decl_common_tree_pointers): Move reading of
5986         DECL_INITIAL to lto_streamer_read_tree.
5987         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5988         (lto_streamer_read_tree): New.
5989         (lto_reader_init): Rename from lto_init_reader.
5990         Move initialization code to lto/lto.c.
5991         * lto-streamer-out.c (pack_value_fields): Call
5992         streamer_hooks.pack_value_fields if set.
5993         (lto_output_tree_ref): For tree nodes that are not normally indexable,
5994         call streamer_hooks.indexable_with_decls_p before giving up.
5995         (lto_output_ts_decl_common_tree_pointers): Move handling
5996         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5997         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5998         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
5999         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
6000         (lto_streamer_write_tree): New.
6001         (lto_output): Call lto_streamer_init directly.
6002         (lto_writer_init): Remove.
6003         * lto-streamer.c (streamer_hooks): New.
6004         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
6005         instead of lto_preload_common_nodes.
6006         (lto_is_streamable): Move from lto-streamer.h
6007         (lto_streamer_hooks_init): New.
6008         (streamer_hooks): New.
6009         (streamer_hooks_init): New.
6010         * lto-streamer.h (struct output_block): Forward declare.
6011         (struct lto_input_block): Likewise.
6012         (struct data_in): Likewise.
6013         (struct bitpack_d): Likewise.
6014         (struct streamer_hooks): Declare.
6015         (streamer_hooks): Declare.
6016         (lto_streamer_hooks_init): Declare.
6017         (lto_streamer_write_tree): Declare.
6018         (lto_streamer_read_tree): Declare.
6019         (streamer_hooks_init): Declare.
6020         (lto_is_streamable): Move to lto-streamer.c
6021
6022 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6023
6024         * longlong.h (smul_ppmm): The resulting register pair contains the
6025         higher order word first.
6026
6027 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6028
6029         PR tree-optimization/46728
6030         * builtins.c (powi_table): Remove.
6031         (powi_lookup_cost): Remove.
6032         (powi_cost): Remove.
6033         (expand_powi_1): Remove.
6034         (expand_powi): Remove.
6035         (expand_builtin_pow_root): Remove.
6036         (expand_builtin_pow): Remove.
6037         (expand_builtin_powi): Eliminate handling of constant exponent.
6038         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
6039
6040 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6041
6042         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
6043
6044 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6045
6046         * dce.c (reset_unmarked_insns_debug_uses): New.
6047         (delete_unmarked_insns): Skip debug insns.
6048         (prescan_insns_for_dce): Likewise.
6049         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
6050         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
6051         active reg can be found.
6052         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
6053         (convert_regs_1): Use it.
6054
6055 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6056
6057         * tree-pretty-print.c (dump_function_header): Add flags.
6058         Don't dump decl_uid with nouid.
6059         * tree-pretty-print.h (dump_function_header): Adjust.
6060         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
6061         * passes.c (pass_init_dump_file): Pass dump_flags on.
6062         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
6063
6064 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6065
6066         PR bootstrap/49270
6067         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
6068
6069 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
6070
6071         PR tree-optimization/49243
6072         * calls.c (setjmp_call_p): Also check if fndecl has the
6073         returns_twice attribute.
6074
6075 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6076
6077         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
6078         -ffast-math etc.
6079
6080 2011-06-06  Richard Henderson  <rth@redhat.com>
6081             Georg-Johann Lay  <avr@gjlay.de>
6082
6083         PR target/42210
6084         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
6085         New predicates.
6086         * config/avr/avr.md ("insv"): New insn expander.
6087         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
6088         "*insv.not.io", "*insv.reg"): New insns.
6089
6090 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
6091
6092         PR target/49285
6093         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
6094         to nonimmediate_operand from memory_operand for the operand that is to
6095         be forced to memory by the expander.  Lose the constraints.
6096
6097 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6098
6099         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
6100         EH return when delayed branches are disabled.
6101
6102 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
6103
6104         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
6105         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
6106         calculation.
6107         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
6108         Simplify MODE_V1DF and MODE_V2SF handling.
6109         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
6110         Simplify MODE_SF handling.
6111
6112 2011-06-04  Jan Hubicka  <jh@suse.cz>
6113
6114         PR tree-optimization/48893
6115         PR tree-optimization/49091
6116         PR tree-optimization/49179
6117         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
6118         Bounds check.
6119
6120 2011-06-04  Jan Hubicka  <jh@suse.cz>
6121
6122         PR lto/48954
6123         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
6124         bitmaps.
6125
6126 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
6127
6128         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
6129
6130 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
6131
6132         PR target/49281
6133         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
6134         to be strictly smaller than 1 << shiftcount.
6135
6136 2011-06-04  Jan Hubicka  <jh@suse.cz>
6137
6138         PR tree-optimize/48929
6139         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
6140         of empty predicate.
6141
6142 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
6143
6144         PR debug/48333
6145         * calls.c (emit_call_1): Prefer the __builtin declaration of
6146         builtin functions.
6147
6148 2011-06-03   Diego Novillo  <dnovillo@google.com>
6149
6150         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
6151         (lto_input_tree_pointers): Likewise.
6152         * lto-streamer-out.c (pack_value_fields): Likewise.
6153         (lto_output_tree_pointers): Likewise.
6154         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
6155         and OPTIMIZATION_NODE.
6156
6157 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6158
6159         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
6160         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
6161         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
6162         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
6163         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
6164         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
6165         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
6166         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
6167         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
6168         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
6169         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
6170         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
6171         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
6172         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
6173         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
6174         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
6175         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
6176         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
6177         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
6178         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
6179         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
6180         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
6181         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
6182         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
6183         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
6184         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
6185         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
6186         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
6187         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
6188         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
6189         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
6190         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
6191         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
6192         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
6193         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
6194         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
6195         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
6196         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
6197         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
6198         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
6199         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
6200         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
6201         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
6202         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
6203         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
6204         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
6205         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
6206         * system.h (MD_UNWIND_SUPPORT): Poison.
6207         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
6208         * doc/tm.texi: Regenerate.
6209         * unwind-dw2.c: Include md-unwind-support.h instead of
6210         MD_UNWIND_SUPPORT.
6211         * config/ia64/unwind-ia64.c: Likewise.
6212         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6213
6214 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
6215
6216         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
6217
6218 2011-06-03  Richard Henderson  <rth@redhat.com>
6219             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6220
6221         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
6222         (sigill_hdlr): Correct insn, insn size.
6223         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
6224
6225 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6226
6227         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
6228         t-slibgcc-dummy.
6229         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
6230         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
6231         * config/mips/t-iris: Remove.
6232         * config/mips/t-irix6: New file.
6233         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
6234
6235 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6236
6237         * Makefile.in (LIB2ADDEHDEP): Remove.
6238         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
6239         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
6240         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
6241         * config/t-darwin (LIB2ADDEHDEP): Remove.
6242         * config/t-freebsd (LIB2ADDEHDEP): Remove.
6243         * config/t-linux (LIB2ADDEHDEP): Remove.
6244
6245 2011-06-03  Diego Novillo  <dnovillo@google.com>
6246
6247         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
6248         (lto_register_var_decl_in_symtab): Likewise.
6249         (lto_register_function_decl_in_symtab): Likewise.
6250         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
6251         logic to uniquify_nodes.
6252
6253 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6254
6255         * config/alpha/t-osf5: Remove.
6256         * config/alpha/t-osf-pthread: Remove.
6257         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
6258         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
6259
6260 2011-06-03  Julian Brown  <julian@codesourcery.com>
6261
6262         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
6263         (strongarm1110): Use strongarm tuning.
6264         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
6265         * config/arm/arm.c (arm_strongarm_tune): New.
6266         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6267         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
6268         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
6269         setting, using previous defaults or 1 for Cortex-A5.
6270         (arm_option_override): Set max_insns_skipped from current tuning.
6271
6272 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
6273
6274         * doc/install.texi (Options specification): Document --with-specs.
6275
6276 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6277
6278         * config/arm/neon.md (orndi3_neon): Actually split it.
6279
6280 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
6281
6282         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
6283         * var-tracking.c (reverse_op): Limite recurse depth to 5.
6284
6285 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
6286
6287         PR debug/47590
6288         * target.def (delay_sched2, delay_vartrack): New.
6289         * doc/tm.texi.in: Update.
6290         * doc/tm.texi: Rebuild.
6291         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
6292         * var-tracking.c (gate_handle_var_tracking): Likewise.
6293         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
6294         (bfin_flag_var_tracking): Drop.
6295         (output_file_start): Don't save and override flag_var_tracking.
6296         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
6297         (bfin_reorg): Test original variables.
6298         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6299         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
6300         (ia64_flag_var_tracking): Drop.
6301         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6302         (ia64_file_start): Don't save and override flag_var_tracking.
6303         (ia64_override_options_after_change): Ditto
6304         flag_schedule_insns_after_reload.
6305         (ia64_reorg): Test original variables.
6306         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
6307         (picochip_flag_var_tracking): Drop.
6308         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6309         (picochip_option_override): Don't save and override
6310         flag_schedule_insns_after_reload.
6311         (picochip_asm_file_start): Ditto flag_var_tracking.
6312         (picochip_reorg): Test original variables.
6313         * config/spu/spu.c (spu_flag_var_tracking): Drop.
6314         (TARGET_DELAY_VARTRACK): Define.
6315         (spu_var_tracking): New.
6316         (spu_machine_dependent_reorg): Call it.
6317         (asm_file_start): Don't save and override flag_var_tracking.
6318
6319 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
6320
6321         PR target/49163
6322         * config/sh/predicates.md (general_movsrc_operand): Return 0
6323         for memory and memory subreg of which address is an invalid
6324         indexed address for QI and HImode.
6325         (general_movdst_operand): Likewise.
6326
6327 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
6328
6329         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
6330         edges only, when there is a non-local label in the function.
6331         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
6332
6333 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
6334
6335         * config/i386/constraints.md (Y3): New register constraint.
6336         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
6337         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
6338         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
6339         *sse2_interleave_lowv2df.
6340
6341 2011-06-02  Julian Brown  <julian@codesourcery.com>
6342
6343         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
6344         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
6345         (arm_cortex_a5_tune): New.
6346
6347 2011-06-02  Julian Brown  <julian@codesourcery.com>
6348
6349         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
6350         * config/arm/arm.c (arm_default_branch_cost): New.
6351         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6352         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
6353         (arm_fa726_tune): Set branch_cost field using
6354         arm_default_branch_cost.
6355         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
6356         current_tune structure.
6357         * dojump.c (tm_p.h): Include file.
6358
6359 2011-06-02  Julian Brown  <julian@codesourcery.com>
6360
6361         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
6362         tuning.
6363         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
6364         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
6365         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
6366         field.
6367         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
6368         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
6369         (arm_fa726te_tune): Add prefer_constant_pool setting.
6370         (arm_v6t2_tune, arm_cortex_tune): New.
6371         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
6372         prefer_constant_pool setting.
6373
6374 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
6375
6376         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
6377         switch statement.
6378         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
6379         (*movdf_internal) <case 6,7,8>: Ditto.
6380
6381         * config/i386/constraints.md (Y4): New register constraint.
6382         * config/i386/sse.md (vec_set<mode>_0): Merge with
6383         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
6384         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
6385         *vec_extractv2di_1_sse.
6386         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
6387         and *vec_concatv2di_rex64_sse.
6388
6389 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
6390
6391         PR target/48807
6392         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
6393         of cgraph_local_info for null before attempting to use it.
6394
6395 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
6396
6397         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
6398         (current_function_dynamic_alloc_count): Delete.
6399         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
6400         (expand_builtin_nonlocal_goto): Remove obsolete comment.
6401         (expand_builtin_update_setjmp_buf): Remove dead code.
6402         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
6403         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
6404         support.
6405         * function.c (instantiate_virtual_regs): Likewise.
6406         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
6407         for a block with a single abnormal incoming edge.
6408         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
6409         (SETJMP_VIA_SAVE_AREA): Delete.
6410         * config/sparc/sparc-protos.h (load_got_register): Declare.
6411         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6412         (load_got_register): Make global.
6413         (sparc_frame_pointer_required): Add 'static'.
6414         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
6415         (sparc_builtin_setjmp_frame_value): New function.
6416         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6417         (save_stack_nonlocal): New expander.
6418         (restore_stack_nonlocal): Likewise.
6419         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6420         (nonlocal_goto_internal): New insn.
6421         (goto_handler_and_restore): Delete.
6422         (builtin_setjmp_setup): Likewise.
6423         (do_builtin_setjmp_setup): Likewise.
6424         (setjmp): Likewise.
6425         (builtin_setjmp_receiver): New expander.
6426
6427 2011-06-01  David Li  <davidxl@google.com>
6428
6429         PR middle-end/49261
6430         * tree-pretty-print.c (dump_function_header): Format cleanup.
6431
6432 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
6433
6434         PR target/49238
6435         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6436         needed when original operands are used for msw_skip comparison.
6437
6438 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6439
6440         PR debug/49250
6441         * var-tracking.c (add_uses, add_stores): Don't call
6442         cselib_subst_to_values on ENTRY_VALUE.
6443
6444 2011-06-01  Diego Novillo  <dnovillo@google.com>
6445
6446         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6447         output_record_start with LTO_null instead of output_zero.
6448         (lto_output_ts_binfo_tree_pointers): Likewise.
6449         (lto_output_tree): Likewise.
6450         (output_eh_try_list): Likewise.
6451         (output_eh_region): Likewise.
6452         (output_eh_lp): Likewise.
6453         (output_eh_regions): Likewise.
6454         (output_bb): Likewise.
6455         (output_function): Likewise.
6456         (output_unreferenced_globals): Likewise.
6457         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6458         instead of NUM_TREE_CODES.
6459         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6460         (lto_output_int_in_range): Change << to >> when shifting VAL.
6461
6462 2011-06-01  Diego Novillo  <dnovillo@google.com>
6463
6464         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6465         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6466
6467 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6468
6469         PR target/45074
6470         * optabs.h (valid_multiword_target_p): Declare.
6471         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6472         doing multi-word operations.
6473         * optabs.c (expand_binop): Likewise.
6474         (expand_doubleword_bswap): Likewise.
6475         (expand_absneg_bit): Likewise.
6476         (expand_unop): Likewise.
6477         (expand_copysign_bit): Likewise.
6478         (multiword_target_p): New function.
6479
6480 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6481
6482         PR rtl-optimization/48830
6483         PR rtl-optimization/48808
6484         PR rtl-optimization/48792
6485         * reload.c (push_reload): Check contains_reg_of_mode.
6486         * reload1.c (strip_paradoxical_subreg): New function.
6487         (gen_reload_chain_without_interm_reg_p): Use it to handle
6488         paradoxical subregs.
6489         (emit_output_reload_insns, gen_reload): Likewise.
6490
6491 2011-06-01  David Li  <davidxl@google.com>
6492
6493         * predict.c : Change pass name
6494         * ipa.c: Ditto.
6495         * dce.c: Ditto.
6496         * tree-profile.c: Ditto.
6497         * except.c: Ditto.
6498
6499 2011-06-01  David Li  <davidxl@google.com>
6500
6501         * tree-pretty-print.c (dump_function_header): New function.
6502         * final.c (rest_of_clean_state): Use header dumper.
6503         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6504         * passes.c (pass_init_dump_file): Use header dumper.
6505
6506 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6507
6508         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6509         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6510         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6511         New functions.
6512         (mem_loc_descriptor): Use them.
6513
6514         * var-tracking.c (create_entry_value): New function.
6515         (vt_add_function_parameter): Use it.
6516
6517 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6518
6519         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6520         Include <signal.h>, <ucontext.h>.
6521         (sigill_caught): Define.
6522         (sigill_hdlr): New function.
6523         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6524         insns can be executed.
6525         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6526         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6527
6528 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6529
6530         * config/t-slibgcc-darwin: Move to ...
6531         * config/t-slibgcc-dummy: ... this.  Clarify comments.
6532         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6533         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6534         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6535         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
6536         Remove i386/t-crtstuff from tmake_file.
6537         (i[34567]86-*-solaris2*): Remove t-svr4,
6538         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6539         t-slibgcc-dummy.
6540         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6541         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6542         sparc/t-crtfm from tmake_file.
6543         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6544         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6545         Remove extra_parts.
6546         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6547         * config/i386/t-nwld (SHLIB_LINK): Remove.
6548         * config/i386/t-rtems-i386: Rename to ...
6549         * config/i386/t-rtems: ... this.
6550         ($(T)crti.o, $(T)crtn.o): Remove.
6551         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6552         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6553         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6554         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6555         EXTRA_MULTILIB_PARTS): Remove.
6556         * config/sparc/t-sol2-64: Likewise.
6557         * config/sparc/t-sol2: Remove.
6558         * config/sparc/t-crtin: Remove.
6559         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6560         * config/i386/gmon-sol2.c: Remove.
6561         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6562         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6563         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6564         * config/i386/sol2-gc1.asm: Remove.
6565         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6566         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6567         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6568         * config/t-slibgcc-sld: Remove.
6569
6570 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6571
6572         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6573         base_type_for_mode with op_mode instead of mode.
6574
6575 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
6576
6577         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
6578         Cortex-A15.
6579         * config/arm/arm-tune.md: Regenerate.
6580         * config/arm/arm-tables.opt: Regenerate.
6581         * config/arm/arm.c (FL_DIV): Rename...
6582         (FL_THUMB_DIV): ... to this.
6583         (FL_ARM_DIV): Define.
6584         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6585         (arm_arch_hwdiv): Remove.
6586         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6587         (arm_issue_rate): Add cortexr5.
6588         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6589         __ARM_ARCH_EXT_IDIV__.
6590         (TARGET_IDIV): Define.
6591         (arm_arch_hwdiv): Remove.
6592         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6593         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6594         (divsi3, udivsi3): New patterns.
6595         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6596         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6597
6598 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6599
6600         * ipa-utils.c (ipa_dfs_info): New field scc_no.
6601         * ipa-utils.c (searchc): Set scc_no.
6602
6603 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6604
6605         * ipa-utils.c (searchc_env): New field allow_overwritable.
6606         (searchc): do not ignore edges to overwritable nodes if indicated
6607         by env->allow_overwritable.
6608         (ipa_reduced_postorder): Set env.allow_overwritable.
6609
6610 2011-06-01  Richard Guenther  <rguenther@suse.de>
6611
6612         * tree.c (free_lang_data): Do not reset boolean_type_node nor
6613         char_type_node.
6614         * lto-streamer.c (lto_record_common_node): Take node pointer,
6615         do not register types.
6616         (lto_preload_common_nodes): Explicitly skip preloading nodes
6617         that differ between frontends.
6618
6619 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6620
6621         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6622         NON_FLOAT_REGS.
6623
6624 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6625
6626         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6627         parameter value for dump. Dump cost on outermost call only.
6628         (rs6000_memory_move_cost): Dump cost on outermost call only.
6629
6630 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6631
6632         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6633         DW_OP_GNU_convert ops.
6634
6635         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6636         cselib_preserve_constants.
6637         (cselib_lookup_1): If cselib_preserve_constants,
6638         a new VALUE is being created for REG and there is a VALUE for the
6639         same register in wider mode, add another loc with lowpart SUBREG of
6640         the wider VALUE.
6641         (cselib_subst_to_values): Handle ENTRY_VALUE.
6642         * var-tracking.c  (replace_expr_with_values): Return NULL for
6643         ENTRY_VALUE too.
6644         * dwarf2out.c (convert_descriptor_to_signed): New function.
6645         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6646         instead of two shifts.
6647         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6648         the right mode if needed.
6649         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6650         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6651         convert_descriptor_to_signed.
6652         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6653         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6654
6655         PR target/48688
6656         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6657
6658 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6659
6660         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6661         of X87MODEI12 and SWI48x instead of SSEMODEI24.
6662         (SWI248x): New mode iterator, rename from X87MODEI.
6663         (X87MODEI): Remove mode iterator.
6664         (X87MODEI12): Ditto.
6665         (SSEMODEI24): Ditto.
6666
6667 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6668
6669         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6670         * doc/invoke.texi: Document max-vartrack-expr-depth.
6671         * var-tracking.c (EXPR_DEPTH): New.
6672         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6673
6674 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6675
6676         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6677         * config/i386/sse.md: Add n to negated FMA pattern names.
6678
6679 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6680
6681         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6682
6683 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6684
6685         * gengtype-state.c (read_state_params_structs): Initialize previous.
6686
6687 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6688
6689         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6690         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6691
6692 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6693
6694         * config/i386/i386.md (*movtf_internal): Avoid allocating general
6695         registers.  Penalize F*r->o alternative to prevent partial memory
6696         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
6697         CONST_DOUBLE immediates when optimizing function for size.  Do not move
6698         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6699         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6700         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6701         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6702         alternatives.
6703         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6704
6705         (fp_register_operand splitters): Use fp_register_operand
6706         constraint.  Do not use FP_REG_P in insn condition.
6707         (any_fp_register_operand splitters): Use any_fp_register_operand
6708         constraint.  Do not use ANY_FP_REG_P in insn condition.
6709
6710 2011-05-31  Jan Hubicka  <jh@suse.cz>
6711
6712         * cgraph.h (cgraph_inline_failed_t): Give enum a name
6713         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6714         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6715         (lto_output_edge): Use output_enum and var_len_unsigned.
6716         (lto_output_varpool_node): Likewise.
6717         (input_overwrite_node): Do not take resolution parameter;
6718         extract it from a bitpack.
6719         (input_node): Do not read resolution; use input_enum and
6720         var_len_unsigned.
6721         (input_varpool_node): Likewise.
6722         (input_edge): Likewise.
6723         (input_cgraph_1): Likewise.
6724
6725 2011-05-31  Richard Guenther  <rguenther@suse.de>
6726
6727         * gimple.c (gimple_register_canonical_type): Do not register
6728         any types via gimple_register_type.
6729
6730 2011-05-31  Jan Hubicka  <jh@suse.cz>
6731
6732         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6733         of thunks.
6734
6735 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6736
6737         PR rtl-optimization/49235
6738         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6739         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6740
6741 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
6742
6743         PR tree-optimization/49093
6744         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6745         data references.
6746
6747 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
6748
6749         PR debug/49047
6750         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6751         for concrete functions containing the code of cloned functions.
6752
6753 2011-05-31  Richard Guenther  <rguenther@suse.de>
6754
6755         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6756         to ...
6757         (forward_propagate_into_comparison_1): ... this.
6758         (forward_propagate_comparison): Rename to ...
6759         (forward_propagate_into_comparison): ... this.  Split out
6760         real forward propagation code to ...
6761         (forward_propagate_comparison): ... this.
6762         (forward_propagate_into_gimple_cond): Remove looping.
6763         (forward_propagate_into_cond): Likewise.
6764         (simplify_not_neg_expr): Return whether we have done something.
6765         (simplify_gimple_switch): Likewise.
6766         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6767         (ssa_forward_propagate_and_combine): ... this.  Re-structure
6768         to do a forward forward-propagation walk on BBs and a backward
6769         stmt combining walk on BBs.  Consistently re-scan changed statements.
6770         (pass_forwprop): Adjust.
6771
6772 2011-05-30  Ian Lance Taylor  <iant@google.com>
6773
6774         * godump.c (go_format_type): Correct length of name added to
6775         obstack for anonymous field.
6776
6777 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6778
6779         PR target/49186
6780         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6781         part of the second operand is 0.
6782
6783 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
6784
6785         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6786         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
6787         to memory for !TARGET_MEMORY_MISMATCH_STALL.
6788         (*movdf_internal_rex64): Do not penalize F->r alternative.
6789         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6790         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
6791         when optimizing function for size.  Do not move CONST_DOUBLEs
6792         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6793         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
6794         SUBREGs.  Do not check for MEM_P operands in the insn condition,
6795         check for ANY_FP_REGNO_P instead.
6796         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6797         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6798         function for speed.
6799         * config/i386/i386.c (ix86_option_override_internal): Do not
6800         set TARGET_INTEGER_DFMODE_MOVES here.
6801
6802 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6803
6804         PR target/49168
6805         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6806
6807 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
6808
6809         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6810         DW_TAG_rvalue_reference_type even for
6811         -gdwarf-4 -fno-debug-types-section.
6812
6813 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6814
6815         PR tree-optimization/46728
6816         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6817         (build_and_insert_binop): New.
6818         (gimple_expand_builtin_pow): Reorder args for
6819         build_and_insert_call; use build_and_insert_binop; add more
6820         optimizations for fractional exponents.
6821
6822 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
6823
6824         PR bootstrap/49190
6825
6826         Revert:
6827         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
6828
6829         * tree.h (struct tree_identifier): Inherit from tree_typed, not
6830         tree_common.
6831         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6832         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6833         TS_BASE instead of TS_COMMON.
6834         * varasm.c (assemble_name): Remove assert.
6835
6836 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
6837
6838         * config.gcc: Keep obselete list sorted.
6839
6840 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
6841             Eric Botcazou  <ebotcazou@adacore.com>
6842
6843         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6844         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6845         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6846         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6847         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6848
6849 2011-05-30  Richard Guenther  <rguenther@suse.de>
6850
6851         * gimple.c (gimple_types_compatible_p_1): Compare record
6852         and union type members properly.
6853
6854 2011-05-30  Richard Guenther  <rguenther@suse.de>
6855
6856         PR tree-optimization/49210
6857         * ipa-split.c (split_function): Care for the case where the call
6858         result is not trivially convertible to the result holding variable.
6859
6860 2011-05-30  Richard Guenther  <rguenther@suse.de>
6861
6862         PR tree-optimization/49218
6863         * tree-vrp.c (adjust_range_with_scev): Properly check whether
6864         overflow occured.
6865
6866 2011-05-30  Richard Guenther  <rguenther@suse.de>
6867
6868         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6869         New function split out from ...
6870         (forward_propagate_into_gimple_cond): ... here.  Adjust.
6871         (forward_propagate_into_cond): Likewise.
6872         (forward_propagate_comparison): Also propagate into
6873         comparisons on assignment RHS.  Change return value to
6874         behave similar to forward_propagate_into_cond.
6875         (tree_ssa_forward_propagate_single_use_vars): Handle
6876         strict-overflow warnings properly for forward_propagate_comparison.
6877
6878 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6879
6880         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6881         from plugin linker.
6882         * configure: Regenerate.
6883
6884 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
6885
6886         PR tree-optimization/49199
6887         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
6888         non-reduction operands are either defined in the loop or by induction.
6889
6890 2011-05-29  Xinliang David Li  <davidxl@google.com>
6891
6892         * opts-global.c (handle_common_deferred_options): Handle new options.
6893         * passes.c (register_one_dump_file): Call register_pass_name.
6894         (execute_one_pass): Check explicit enable/disable flag.
6895         (passr_hash): New function.
6896         (passr_eq): Ditto.
6897         (register_pass_name): Ditto.
6898         (get_pass_by_name): Ditto.
6899         (pass_hash): Ditto.
6900         (pass_eq): Ditto.
6901         (enable_pass): Ditto.
6902         (disable_pass): Ditto.
6903         (is_pass_explicitly_enabled_or_disabled): Ditto.
6904
6905 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
6906
6907         * config/i386/i386.md (*movoi_internal_avx): Use
6908         standard_sse_constant_opcode for alternative 0.
6909         (*movti_internal_sse): Ditto.
6910         (*movti_internal_rex64): Use standard_sse_constant_opcode for
6911         alternative 2.
6912         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6913         sselog1 type moves.
6914         (*movsi_internal): Ditto.
6915         (*movdi_internal): Ditto.  Add ssecvt type moves.
6916
6917 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6918
6919         PR target/48830
6920         * rtlanal.c (simplify_subreg_regno): Adjust comment.
6921
6922 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
6923
6924         PR rtl-optimization/49095
6925         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6926         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6927
6928 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
6929
6930         PR target/43995
6931         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6932         recurse_p argument.  Only follow register copies if it is set,
6933         and prevent mips_find_pic_call_symbol from recursing.
6934         (mips_find_pic_call_symbol): Add a recurse_p argument.
6935         Pass it to mips_pic_call_symbol_from_set.
6936         (mips_annotate_pic_calls): Update accordingly.
6937
6938 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
6939
6940         * emit-rtl.c (try_split): Use a loop to search for
6941         NOTE_INSN_CALL_ARG_LOCATIONs.
6942
6943 2011-05-29  Richard Guenther  <rguenther@suse.de>
6944
6945         PR tree-optimization/49217
6946         * ipa-pure-const.c (propagate_pure_const): Fix typos.
6947
6948 2011-05-28  Jan Hubicka  <jh@suse.cz>
6949
6950         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6951         length.
6952         (string_slot_free): Remove
6953         (create_output_block): Initialize obstack.
6954         (destroy_output_block): Free obstack.
6955         (lto_string_index): Add PERSISTENT parameter; do not duplicate
6956         the string unless it needs to be added into the hash.
6957         (lto_output_string_with_length): Add persistent attribute;
6958         handle NULL strings.
6959         (lto_output_string): Add PERSISTENT parameter.
6960         (output_string_cst, output_identifier): Simplify.
6961         (lto_output_location_bitpack): Update.
6962         (lto_output_builtin_tree): Update.
6963         * lto-streamer.h (struct output_block): Add obstack.
6964         (lto_output_string, lto_output_string_with_length): Remove
6965         declarations; functions are static now.
6966
6967 2011-05-28  Jan Hubicka  <jh@suse.cz>
6968
6969         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6970         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6971         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6972         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6973         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6974         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6975         unpack_ts_decl_with_vis_value_fields,
6976         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6977         lto_get_builtin_tree): Use enum and variable length i/o.
6978         * basic-block.h (profile_status_d): Add PROFILE_LAST.
6979         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6980         New functions.
6981         (bp_pack_enum, bp_unpack_enum): New macros.
6982
6983 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6984
6985         * genrecog.c: Remove redundant forward declarations.
6986
6987 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6988
6989         * config.gcc: Deprecate mips*-*-openbsd*.
6990
6991 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
6992
6993         PR bootstrap/49195
6994         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6995         for match_op_dup.
6996
6997 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
6998
6999         PR middle-end/48981
7000         * gengtype.c (vec_prefix_type): New function.
7001         (note_def_vec): Use vec_prefix_type and change the length
7002         attribute to be based on the prefix.
7003         * vec.c: Include coretypes.h before vec.h.
7004         (struct vec_prefix): Remove.
7005         (vec_gc_p_reserve): Change the offsetof to sizeof.
7006         (vec_gc_p_reserve_exact): Likewise.
7007         (vec_heap_p_reserve): Likewise.
7008         (vec_heap_p_reserve_exact): Likewise.
7009         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
7010         (vec_stack_p_reserve): Change the offsetof to sizeof.
7011         (vec_stack_p_reserve_exact): Likewise.
7012         * vec.h (struct vec_prefix): New struct definition.
7013         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
7014         (VEC_T_GTY(T,B)): Likewise.
7015         (DEF_VEC_FUNC_P(T)): Use prefix field.
7016         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
7017         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
7018
7019 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7020
7021         PR tree-optimization/46728
7022         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
7023         (powi_as_mults): Add gimple_set_location.
7024         (build_and_insert_call): New.
7025         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
7026         0.5, 0.25, 0.75, 1./3., or 1./6.
7027
7028 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
7029
7030         * doc/contrib.texi: Update copyright years.
7031         (Contributors): Add Zdenek Sojka.
7032
7033 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7034
7035         * c-decl.c (c_push_function_context): Copy the current statement
7036         list stack.
7037         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
7038         (finish_struct): Call building_stmt_list_p instead of checking
7039         cur_stmt_list.
7040         * c-parser.c (c_parser_postfix_expression): Likewise.
7041         * c-typeck.c (c_end_compound_stmt): Likewise.
7042         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
7043         * tree-iterator.c (stmt_list_cache): Change to a VEC.
7044         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
7045         (free_stmt_list): Likewise.
7046         * tree.h (struct tree_statement_list): Include typed_tree instead
7047         of tree_common.
7048         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
7049         as TS_TYPED instead of TS_COMMON.
7050
7051 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7052             Uros Bizjak  <ubizjak@gmail.com>
7053
7054         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
7055         (HAVE_AS_IX86_TLSGDPTL): Define.
7056         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
7057         (HAVE_AS_IX86_TLSLDMPLT): Define.
7058         * configure: Regenerate.
7059         * config.in: Regenerate.
7060         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
7061         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
7062         TARGET_SUN_TLS, use @tlsgdplt or @plt.
7063         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
7064         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
7065         @tlsldmplt or @plt.
7066         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
7067
7068 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7069
7070         * sched-int.h (struct _haifa_deps_insn_data): New members cond
7071         and reverse_cond.
7072         (INSN_COND, INSN_REVERSE_COND): New macros.
7073         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
7074         once.
7075         (sched_get_condition_with_rev): Cache the results, and look them up
7076         if possible.
7077         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
7078         are clobbered by the current insn.
7079         * target.def (exposed_pipline): New sched data hook.
7080         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
7081         * doc/tm.texi: Regenerate.
7082
7083 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7084
7085         PR tree-optimization/49170
7086         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
7087         sincos or cexp.
7088
7089 2011-05-27  Richard Guenther  <rguenther@suse.de>
7090
7091         PR middle-end/49189
7092         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
7093         of comparisons.
7094
7095 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7096
7097         * haifa-sched.c (sched_scan_info): Remove.
7098         (schedule_block): Call sched_extend_luids rather than sched_init_luids
7099         with NULL args.
7100         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
7101         Remove functions.
7102         (sched_scan): Remove.
7103         (sched_extend_luids): Renamed from luids_extend_insn and no longer
7104         static.  All callers changed.
7105         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
7106         static.  All callers changed.
7107         (sched_init_luids): Remove all arguments except the first.  All
7108         callers changed.  Don't use sched_scan.
7109         (haifa_init_h_i_d): Likewise.
7110         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
7111         manually rather than using sched_init_luids.  Likewise with
7112         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
7113         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
7114         rather than sched_init_luids with NULL args.
7115         * sel-sched-ir.c (new_insns): Remove variable.
7116         (sched_scan): New static function, previously in haifa-sched.c.  Remove
7117         all arguments but the first two; all callers changed.
7118         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
7119         rather than sched_init_luids.
7120         (sel_init_bbs): Remove second argument.  All callers changed.
7121         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
7122         with NULL arguments.
7123         (create_insn_rtx_from_pattern): Likewise.
7124         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
7125         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
7126         (sched_init_insn_luid, sched_extend_luids): Declare.
7127         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
7128         declarations.
7129
7130 2011-05-27  Richard Guenther  <rguenther@suse.de>
7131
7132         PR middle-end/49177
7133         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
7134         A CMP B ? (T) true : (T) false for non-integral types T again.
7135
7136 2011-05-27  Jan Hubicka  <jh@suse.cz>
7137
7138         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
7139         so 0 means NULL string.
7140         (lto_output_string_with_length): ... here.
7141         (lto_output_string, output_string_cst, output_identifier): Update
7142         handling of NULL strings.
7143         (lto_output_location_bitpack): New function.
7144         (lto_output_location): Use it.
7145         (lto_output_tree_ref): Use output_record_start.
7146         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
7147         len values.
7148         * lto-streamer-in.c (string_for_index): Break out from ...; offset
7149         values by 1.
7150         (input_string_internal): ... here;
7151         (input_string_cst, input_identifier, lto_input_string): Update handling
7152         of NULL strings.
7153         (lto_input_location_bitpack): New function
7154         (lto_input_location): Use it.
7155         (unpack_ts_type_common_value_fields): Pack align & alias in var len
7156         values.
7157         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
7158         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
7159         (bp_pack_value): Sanity check the value range.
7160         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
7161         New functions.
7162         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
7163         New functions.
7164
7165 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
7166
7167         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
7168         call_arg_location instructions down the floor.
7169
7170 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
7171
7172         PR rtl-optimization/49154
7173         * ira.c (setup_pressure_classes): Process class without sublcasses
7174         as a candidate for pressure classes.
7175
7176 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
7177
7178         PR rtl-optimization/48575
7179         * genrecog.c (position_type): New enum.
7180         (position): New structure.
7181         (decision): Use position structure instead of a string.
7182         (root_pos, peep2_insn_pos_list): New variables.
7183         (next_position, compare_positions): New functions.
7184         (new_decision): Use position structures instead of strings.
7185         (maybe_both_true): Likewise.
7186         (change_state): Likewise.
7187         (write_tree): Likewise.
7188         (make_insn_sequence): Likewise.
7189
7190 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7191
7192         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
7193         TS_BASE instead of TS_COMMON.
7194         (find_decls_types_r): Check for TS_TYPED structure before looking at
7195         TREE_TYPE.
7196         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
7197         Add chain field.
7198         (BLOCK_CHAIN): Use new chain field.
7199
7200 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
7201
7202         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
7203         moves expensive on Power7 also.
7204
7205 2011-05-26  Richard Guenther  <rguenther@suse.de>
7206
7207         * fold-const.c (fold_unary_loc): Remove bogus code.
7208
7209 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7210
7211         * tree.h (struct tree_identifier): Inherit from tree_typed, not
7212         tree_common.
7213         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7214         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7215         TS_BASE instead of TS_COMMON.
7216         * varasm.c (assemble_name): Remove assert.
7217
7218 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
7219
7220         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
7221         substituted first.
7222         * libgcc-std.ver: Delete file.
7223
7224 2011-05-26  Richard Guenther  <rguenther@suse.de>
7225
7226         PR tree-optimization/48702
7227         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
7228         only when we know the base address is within bounds.
7229         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
7230         assume the base address of TARGET_MEM_REFs is in bounds.
7231
7232 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7233
7234         PR target/49099
7235         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
7236         declaration in TARGET_SOLARIS.
7237
7238 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
7239
7240         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
7241         The instruction is then expanded explicitly.
7242         (supported_compare): Callable instruction.
7243         (compare): Likewise.
7244
7245 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
7246
7247         PR c++/49165
7248         * gimplify.c (shortcut_cond_r): Don't special case
7249         COND_EXPRs if they have void type on one of their arms.
7250
7251 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
7252
7253         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
7254         to reduce duplication, and to achieve a slightly more logical order
7255         of operations.
7256
7257 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
7258
7259         PR tree-optimization/49161
7260         * tree-vrp.c (struct case_info): New type.
7261         (compare_case_labels): Sort case_info structs instead of
7262         trees, and not primarily by CASE_LABEL uids but by
7263         label_for_block indexes.
7264         (find_switch_asserts): Put case labels into struct case_info
7265         array instead of TREE_VEC, adjust sorting, compare label_for_block
7266         values instead of CASE_LABELs.
7267
7268 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7269
7270         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
7271         ("orndi3_neon"): Likewise.
7272         ("bic<mode>3_neon"): Likewise.
7273
7274 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
7275
7276         PR tree-optimization/49038
7277         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
7278         Ensure at least one epilogue iteration if required by data
7279         accesses with gaps.
7280         * tree-vectorizer.h (struct _loop_vec_info): Add new field
7281         to mark loops that require peeling for gaps.
7282         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
7283         (vect_get_known_peeling_cost): Take peeling for gaps into
7284         account.
7285         (vect_transform_loop): Generate epilogue if required by data
7286         access with gaps.
7287         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
7288         loop as requiring an epilogue if there are gaps in the end of
7289         the strided group.
7290
7291 2011-05-25  Ian Lance Taylor  <iant@google.com>
7292
7293         * godump.c (go_format_type): Output the first field with a usable
7294         Go type, if any.
7295
7296 2011-05-25  Ian Lance Taylor  <iant@google.com>
7297
7298         * godump.c (go_format_type): Check for invalid type names, pointer
7299         target types, and struct field types.
7300
7301 2011-05-25  Jason Merrill  <jason@redhat.com>
7302
7303         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
7304
7305 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
7306
7307         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
7308
7309 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7310
7311         * config/i386/i386.md (*movqi_extv_1)): Put back
7312         "register_operand" check in "type" calculation.
7313         (*movqi_extzv_2): Likewise.
7314
7315 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7316
7317         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
7318
7319 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
7320
7321         PR bootstrap/49160
7322         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
7323         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
7324         __divxc3, __divtc3): Wrap definitions in #ifndef.
7325
7326 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7327
7328         PR target/49142
7329         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
7330         "register_operand" check and replace q_regs_operand with
7331         QIreg_operand in "type" calculation.
7332         (*movqi_extv_1): Likewise.
7333         (*movqi_extzv_2_rex64): Likewise.
7334         (*movqi_extzv_2): Likewise.
7335
7336         * config/i386/predicates.md (QIreg_operand): New.
7337
7338 2011-05-25  Richard Guenther  <rguenther@suse.de>
7339
7340         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7341         type-based offset disambiguation, streamline MEM_REF and
7342         TARGET_MEM_REF handling.
7343
7344 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7345
7346         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
7347         (bdesc_special_args): Add pause intrinsic.
7348
7349         * config/i386/i386.md (UNSPEC_PAUSE): New.
7350         (pause): Likewise.
7351         (*pause): Likewise.
7352         * config/i386/ia32intrin.h (__pause): Likewise.
7353
7354         * doc/extend.texi (X86 Built-in Functions): Add documentation for
7355         pause intrinsic.
7356
7357 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7358
7359         PR tree-optimization/46728
7360         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
7361         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
7362
7363 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
7364
7365         * tree.h (struct tree_exp): Inherit from struct tree_typed.
7366         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
7367         instead of TS_COMMON.
7368
7369 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
7370
7371         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
7372         LIBGCC2_GNU_PREFIX is defined.
7373         (__N): New macro.
7374         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
7375         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
7376         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
7377         __clz_tab): Define using __N.
7378         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
7379         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
7380         * target.def (libfunc_gnu_prefix): New hook.
7381         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
7382         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
7383         * doc/tm.texi: Regenerate.
7384         * system.h (LIBGCC2_GNU_PREFIX): Poison.
7385         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
7386         account.
7387         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
7388         (init_optabs): Likewise for the bswap libfuncs.
7389         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
7390         and divide.
7391         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
7392         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
7393         * libgcc-std.ver: Remove.
7394         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
7395         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
7396         libgcc-std.ver.
7397         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7398         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
7399         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
7400         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
7401         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
7402         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7403         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7404         * config/fixed-bit.h (FIXED_OP): Define differently depending on
7405         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
7406         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
7407
7408 2011-05-25  Jan Hubicka  <jh@suse.cz>
7409
7410         * lto-streamer-out.c (output_record_start): Use lto_output_enum
7411         (lto_output_tree): Use output_record_start.
7412         * lto-streamer-in.c (input_record_start): Use lto_input_enum
7413         (lto_get_pickled_tree): Use input_record_start.
7414         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7415         (lto_value_range_error): New function.
7416         * lto-streamer.h (lto_value_range_error): Declare.
7417         (lto_output_int_in_range, lto_input_int_in_range): New functions.
7418         (lto_output_enum, lto_input_enum): New macros.
7419
7420 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7421
7422         * common.opt (flag_stack_usage_info): New variable.
7423         (-Wstack-usage): New option.
7424         * doc/invoke.texi (Warning options): Document -Wstack-usage.
7425         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7426         <OPT_fstack_usage>: Likewise.
7427         * toplev.c (output_stack_usage): Handle -Wstack-usage.
7428         * calls.c (expand_call): Test flag_stack_usage_info variable instead
7429         of flag_stack_usage.
7430         (emit_library_call_value_1): Likewise.
7431         * explow.c (allocate_dynamic_stack_space): Likewise.
7432         * function.c (instantiate_virtual_regs ): Likewise.
7433         (prepare_function_start): Likewise.
7434         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7435         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7436         * config/arm/arm.c (arm_expand_prologue): Likewise.
7437         (thumb1_expand_prologue): Likewise.
7438         * config/avr/avr.c (expand_prologue): Likewise.
7439         * config/i386/i386.c (ix86_expand_prologue): Likewise.
7440         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7441         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7442         * config/mips/mips.c (mips_expand_prologue): Likewise.
7443         * config/pa/pa.c (hppa_expand_prologue): Likewise.
7444         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7445         * config/s390/s390.c (s390_emit_prologue): Likewise.
7446         * config/sh/sh.c (sh_expand_prologue): Likewise.
7447         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7448         * config/spu/spu.c (spu_expand_prologue): Likewise.
7449
7450 2011-05-25  Richard Guenther  <rguenther@suse.de>
7451
7452         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7453         (gimple_canonical_types_compatible_p): Likewise.
7454
7455 2011-05-25  Jan Hubicka  <jh@suse.cz>
7456
7457         PR middle-end/49062
7458         * ipa.c (function_and_variable_visibility): Only add to same
7459         comdat group list if DECL_ONE_ONLY.
7460
7461 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
7462
7463         PR rtl-optimization/49014
7464         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7465
7466 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7467
7468         PR target/49128
7469         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7470
7471 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7472
7473         PR rtl-optimization/48757
7474         * ira-build.c (loop_with_eh_edge_p): Rename to
7475         loop_with_complex_edge_p, check edges on complexity, make function
7476         conditional.
7477         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7478         conditional.
7479
7480 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7481
7482         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7483         force flag_ira_share_save_slots to 0.
7484
7485 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7486
7487         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7488         (vt_initialize): Set PROLOGUE_BB unconditionally.
7489         Add block comment about CFA_BASE_RTX machinery.
7490         Reset FP_CFA_OFFSET to -1 on all invalid paths.
7491         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7492
7493 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7494
7495         PR objc/48187
7496         * c-parser.c (c_parser_objc_class_instance_variables): More robust
7497         parsing of syntax error in ObjC instance variable lists.  In
7498         particular, avoid an infinite loop if there is a stray ']'.
7499         Updated error message.
7500
7501 2011-05-24  Ian Lance Taylor  <iant@google.com>
7502
7503         * godump.c (go_define): Don't accept a string immediately after
7504         another operand.
7505
7506 2011-05-24  Ian Lance Taylor  <iant@google.com>
7507
7508         * godump.c (struct godump_container): Add invalid_hash field.
7509         (go_format_type): Return false if type is found in invalid_hash.
7510         (go_output_typedef): Add invalid type to invalid_hash.
7511         (go_finish): Create and delete invalid_hash.
7512
7513 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7514
7515         PR tree-optimization/46728
7516         * tree-ssa-math-opts.c (powi_table): New.
7517         (powi_lookup_cost): New.
7518         (powi_cost): New.
7519         (powi_as_mults_1): New.
7520         (powi_as_mults): New.
7521         (gimple_expand_builtin_powi): New.
7522         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7523         (gate_cse_sincos): Remove sincos/cexp restriction.
7524
7525 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7526
7527         PR target/3746
7528         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7529         mips-tdump native.
7530         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7531         * mips-tdump.c: Likewise.
7532
7533 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7534
7535         PR target/49128
7536         * config/i386/driver-i386.c (host_detect_local_cpu): Always
7537         add -mno-XXX.  Handle FMA.
7538
7539 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7540
7541         PR rtl-optimization/48633
7542         * ira-build.c (loop_with_eh_edge_p): New function.
7543         (mark_loops_for_removal): Use it.
7544
7545 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7546
7547         PR rtl-optimization/48971
7548         * ira.c (setup_pressure_classes): Don't check register move cost
7549         for classes with one registers.  Don't add pressure class if there
7550         is a pressure class with the same available hard registers.
7551         Check contains_reg_of_mode.  Fix a typo in collecting
7552         temp_hard_regset.  Ignore hard registers not belonging to a class.
7553
7554 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
7555
7556         PR target/49133
7557         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7558
7559 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7560             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7561
7562         PR gcov-profile/48845
7563         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7564
7565 2011-05-24  Richard Guenther  <rguenther@suse.de>
7566
7567         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7568         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7569         (gimple_types_compatible_p_1): Adjust.
7570         (iterative_hash_canonical_type): Do not bother about complete vs.
7571         incomplete types.
7572         (gimple_canonical_types_compatible_p): Likewise.
7573
7574 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7575
7576         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7577
7578 2011-05-24  Richard Guenther  <rguenther@suse.de>
7579
7580         PR bootstrap/49078
7581         * gimple.c (gimple_register_canonical_type): Revert
7582         previous change.
7583         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7584         does not for a tree for the case where it matters.  Cache
7585         pointer-type alias-sets.
7586
7587 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
7588
7589         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7590         (OBJS): Remove options.o, opts-common.o and prefix.o.
7591         (OBJS-libcommon-target): New.
7592         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7593         (BACKEND): Include libcommon-target.a.
7594         (MOSTLYCLEANFILES): Include libcommon-target.a.
7595         (libcommon-target.a): New.
7596         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7597         prefix.o.
7598
7599 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
7600
7601         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
7602         parts of output shared with the driver.
7603         * optc-gen.awk: Don't generate parts of output not shared with the
7604         driver.
7605         * opth-gen.awk: Remove GCC_DRIVER conditionals.
7606         * doc/options.texi (SourcerInclude): Mention options-save.c.
7607         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7608         (OBJS): Add options-save.o.
7609         (options-save.c, options-save.o): New.
7610         (options.o): Update dependencies.
7611         (gcc-options.o): Remove.
7612         (mostlyclean): Remove options-save.c.
7613
7614 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7615
7616         PR debug/49032
7617         * dbxout.c: Include cgraph.h.
7618         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7619         and without value expr, return NULL if no varpool node exists for
7620         it or if it is not needed.
7621         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7622
7623         PR c/49120
7624         * c-decl.c (start_decl): Convert expr to void_type_node.
7625
7626 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
7627
7628         PR rtl-optimization/48826
7629         * emit-rtl.c (try_split): When splitting a call that is followed
7630         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7631
7632 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7633
7634         * cfgexpand.c (expand_debug_expr): For unused non-addressable
7635         parameters passed in memory prefer using DECL_INCOMING_RTL over
7636         the pseudos it will be copied into.
7637
7638 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7639
7640         PR target/47315
7641         * config/i386/i386.c (ix86_option_override_internal): Save the
7642         initial options after checking vzeroupper.
7643
7644 2011-05-23  David Li  <davidxl@google.com>
7645
7646         PR tree-optimization/48988
7647         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7648         Initialize has_valid_pred for each pred chain.
7649
7650 2011-05-23  Richard Guenther  <rguenther@suse.de>
7651
7652         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7653         (iterative_hash_gimple_type): Always hash type names.
7654
7655 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7656
7657         * c-typeck.c (build_function_call_vec): Tweak call to
7658         check_function_arguments.
7659
7660 2011-05-23  Richard Guenther  <rguenther@suse.de>
7661
7662         PR tree-optimization/49115
7663         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7664         is not necessarily carried out, do not claim it kills the ref.
7665         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7666
7667 2011-05-23  Richard Guenther  <rguenther@suse.de>
7668
7669         PR middle-end/15419
7670         * builtins.c (fold_builtin_memory_op): Be less restrictive about
7671         what pointer types we accept for folding.
7672
7673 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7674
7675         * gthr-gnat.c: Remove.
7676         * gthr-gnat.h: Remove.
7677         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7678         * config/t-freebsd (LIB2ADDEH): Likewise.
7679         * config/t-linux (LIB2ADDEH): Likewise.
7680         * config/t-sol2 (LIB2ADDEH): Likewise.
7681         * config/ia64/t-vms (LIB2ADDEH): Likewise.
7682         * configure.ac (target_thread_file): Remove gnat handling.
7683         * configure: Regenerate.
7684         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7685
7686 2011-05-23  Tristan Gingold  <gingold@adacore.com>
7687             Eric Botcazou  <ebotcazou@adacore.com>
7688
7689         * gcov.c (create_file_names): If no object directory is specified,
7690         keep the directory of the file.
7691
7692 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7693
7694         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7695         * configure: Regenerate.
7696
7697 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7698
7699         PR middle-end/48973
7700         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7701         failed and the comparison has a single bit signed type, use
7702         constm1_rtx instead of const1_rtx for true value.
7703         (do_store_flag): If ops->type is single bit signed type, disable
7704         signel bit test optimization and pass -1 instead of 1 as last
7705         parameter to emit_store_flag_force.
7706
7707 2011-05-23  Tom de Vries  <tom@codesourcery.com>
7708
7709         PR target/45098
7710         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7711         function.
7712         (infer_loop_bounds_from_undefined): Use new function.
7713
7714 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7715
7716         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7717         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
7718         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7719         and -O0 otherwise.
7720         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7721
7722 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7723
7724         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7725         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7726         returns true.
7727
7728 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7729
7730         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7731
7732 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7733
7734         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7735         UNSPEC_MOVE_PIC pattern.
7736
7737 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7738
7739         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7740         (sparc-*-rtems*): Likewise.
7741         (sparc64-*-elf*): Likewise.
7742         (sparc64-*-rtems*): Likewise.
7743         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
7744         * config/sparc/t-crtin: New file.
7745         * config/sparc/t-sol2 (crti.o): Delete rule.
7746         (crtn.o): Likewise.
7747         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7748         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7749         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7750         (ENDFILE_SPEC): Add crtn.o.
7751
7752 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7753
7754         PR middle-end/48689
7755         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7756         CODE_CONTAINS_STRUCT (TS_COMMON).
7757
7758 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
7759
7760         PR middle-end/49029
7761         * expmed.c (extract_fixed_bit_field): Test whether target can be used
7762         only after deciding which mode to use.
7763
7764 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7765
7766         PR target/45098
7767         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7768         for call to get_shiftadd_cost.
7769
7770 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
7771
7772         PR target/49104
7773         * config/i386/cpuid.h (bit_MMXEXT): New define.
7774
7775 2011-05-22  Nick Clifton  <nickc@redhat.com>
7776
7777         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7778         initialisation of non-existant args[2] element.  Use args[] array
7779         not arg[] array to pass arguments to build_function_type_list.
7780
7781 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
7782
7783         PR tree-optimization/49087
7784         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7785
7786 2011-05-21  Jason Merrill  <jason@redhat.com>
7787
7788         PR c++/49092
7789         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7790         static storage duration.
7791
7792 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7793
7794         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7795         frame pointer.
7796
7797 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7798
7799         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7800         false if there are call-saved registers here...
7801         (sparc_can_use_return_insn_p): ...but here instead.
7802         (save_or_restore_regs): Fix thinko.
7803         (sparc_expand_prologue): Use current_function_is_leaf.
7804         (sparc_frame_pointer_required): Likewise.
7805
7806 2011-05-21  Nick Clifton  <nickc@redhat.com>
7807
7808         PR target/49098
7809         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7810
7811 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7812
7813         * gengtype.c (walk_type): Implemented "atomic" GTY option.
7814         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7815
7816 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
7817
7818         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
7819         * optc-gen.awk: Move common code to opt-read.awk.
7820         * opth-gen.awk: Likewise.
7821         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7822
7823 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
7824
7825         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7826
7827 2011-05-20  Tom de Vries  <tom@codesourcery.com>
7828
7829         PR target/45098
7830         * tree-ssa-loop-ivopts.c: Include expmed.h.
7831         (get_shiftadd_cost): New function.
7832         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
7833
7834 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
7835
7836         PR bootstrap/49086
7837         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7838         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7839
7840 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
7841
7842         * Makefile.in: Update comment referring to $(OBJS-common).
7843
7844 2011-05-20  Ian Lance Taylor  <iant@google.com>
7845
7846         * godump.c (go_output_typedef): Put enum constants in the macro
7847         hash table to avoid duplicate Go const definitions.
7848
7849 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
7850
7851         * Makefile.in (LIBDEPS): Add libcommon.a.
7852         (LIBS): Likewise.
7853         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7854         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7855         pretty-print.o and version.o.
7856         (OBJS-libcommon): New.
7857         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7858         (BACKEND): Add libcommon.a.
7859         (MOSTLYCLEANFILES): Likewise.
7860         (libcommon.a): New.
7861         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7862         (cpp$(exeext)): Likewise.
7863         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7864         pretty-print.o and input.o.
7865         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7866         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7867         (errors.o): Remove.
7868         (mips-tfile): Don't explicitly use version.o.
7869         (mips-tdump): Likewise.
7870         (gcov.o): Depend on $(DIAGNOSTIC_H).
7871         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7872         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7873         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7874         * gcov-dump.c: Include intl.h and diagnostic.h.
7875         (main): Initialize diagnostics.
7876         * gcov.c: Include diagnostic.h.
7877         (fnotice): Remove.
7878         (main): Initialize diagnostics.
7879         * lto-wrapper.c: Include diagnostic.h.
7880         (main): Initialize diagnostics.
7881
7882 2011-05-20  Michael Matz  <matz@suse.de>
7883
7884         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7885
7886 2011-05-20  Michael Matz  <matz@suse.de>
7887             Richard Guenther  <rguenther@suse.de>
7888
7889         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7890         use lto_streamer_cache_append directly instead of returning a VEC.
7891         (preload_common_node): Remove.
7892         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7893         track seen nodes.
7894         (lto_streamer_cache_create): Call lto_preload_common_nodes.
7895
7896 2011-05-20  Richard Guenther  <rguenther@suse.de>
7897
7898         PR tree-optimization/49079
7899         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7900         MEM_REFs correctly for the trailing array access detection.
7901         Special case constants the same way as decls for overall size
7902         constraining.
7903
7904 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
7905
7906         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7907         argument expansion.
7908
7909 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
7910
7911         PR tree-optimization/49073
7912         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7913         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
7914         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7915
7916 2011-05-20  Richard Guenther  <rguenther@suse.de>
7917
7918         PR middle-end/48849
7919         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7920         of pointer types the same way the middle-end does.
7921
7922 2011-05-20  Richard Guenther  <rguenther@suse.de>
7923
7924         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7925         or pointer-to chains.  Delay all fixup to uniquify_nodes.
7926
7927 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
7928
7929         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7930         (fma4_fmaddsub): Likewise
7931
7932 2011-05-19  Jan Hubicka  <jh@suse.cz>
7933
7934         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7935         (GIMPLE_TYPE_PAIR_SIZE): New macro.
7936         (type_pair_cache): New static var.
7937         (lookup_type_pair): Use fixed sized custom hash; make inline.
7938         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7939         calls of lookup_type_pair.
7940         (print_gimple_types_stats): Remove cache stats.
7941         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7942         and gtc_ob.
7943
7944 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
7945
7946         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7947         when TARGET_RDRND is active.
7948         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7949         Generate dummy SImode target register when target is NULL.
7950
7951 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
7952
7953         * config/arm/arm-fpus.def: New.
7954         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7955         arm-fpus.def.
7956         * config/arm/arm-tables.opt: Regenerate.
7957         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7958         (arm_option_override): Don't decode FPU name to string here.
7959         * config/arm/arm.opt (mfpu=): Use Enum.
7960         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7961         Update dependencies.
7962
7963 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
7964
7965         * collect2.c: Include diagnostic.h.
7966         (fatal_perror, fatal, error, fancy_abort): Remove.
7967         (main): Set progname.  Call xmalloc_set_program_name and
7968         diagnostic_initialize.
7969         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7970         scan_libraries, resolve_lib_name): Call fatal_error instead of
7971         fatal and fatal_perror.
7972         * collect2.h (error, fatal, fatal_perror): Don't declare.
7973         * tlink.c: Include diagnostic-core.h.
7974         (recompile_files): Call fatal_error instead of fatal_perror.
7975         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7976         pretty-print.o and input.o.
7977         (collect2.o, tlink.o): Update dependencies.
7978
7979 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7980
7981         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7982
7983 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7984
7985         PR target/40483
7986         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7987         COMDAT group syntax, both SPARC and x86 variants.
7988         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7989         * configure: Regenerate.
7990         * config/sol2.h (TARGET_SOLARIS): Define.
7991         (PUSHSECTION_FORMAT): Remove.
7992         (SECTION_NAME_FORMAT): Define.
7993         * config/sol2.c: Include hashtab.h.
7994         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7995         expansion, using SECTION_NAME_FORMAT.
7996         (solaris_comdat_htab): New variable.
7997         (struct comdat_entry): Define.
7998         (comdat_hash): New function.
7999         (comdat_eq): New function.
8000         (solaris_elf_asm_comdat_section): New function.
8001         (solaris_define_comdat_signature): New function.
8002         (solaris_code_end): New function.
8003         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
8004         (solaris_code_end): Declare.
8005         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
8006         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
8007         solaris_code_end.
8008         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
8009         Remove ATTRIBUTE_UNUSED.
8010         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
8011         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
8012         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
8013         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
8014         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
8015         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
8016         (PUSHSECTION_FORMAT): Remove.
8017         (SECTION_NAME_FORMAT): Redefine.
8018
8019 2011-05-19  Kai Tietz  <ktietz@redhat.com>
8020
8021         * tree-cfg.c (verify_gimple_assign_binary): Barf on
8022         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
8023         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
8024
8025 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
8026             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8027
8028         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
8029
8030 2011-05-19  Richard Guenther  <rguenther@suse.de>
8031
8032         PR middle-end/48985
8033         * tree-object-size.c (addr_object_size): If the pointed-to
8034         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
8035
8036 2011-05-19  Richard Guenther  <rguenther@suse.de>
8037
8038         * gimple.c (gimple_types_compatible_p_1): Compare names of
8039         the types themselves.
8040         (iterative_hash_gimple_type): And hash them that way.
8041         (gimple_register_type_1): If we register a main variant properly
8042         initialize the leader to ourselves.
8043
8044 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8045
8046         PR target/45098
8047         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
8048         get_loop_invariant_expr_id.
8049         (get_loop_invariant_expr_id): Use get_expr_id.
8050         (parm_decl_cost): New function.
8051         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
8052         Improve bound cost estimation.  Use different inv_expr_id for elim and
8053         express cases.
8054
8055 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8056
8057         PR target/45098
8058         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
8059         cost_base.cost == 0.
8060
8061 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8062
8063         PR target/49002
8064         * config/i386/sse.md
8065         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
8066         load cast.
8067
8068 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
8069
8070         PR tree-optimization/49039
8071         * tree-vrp.c (extract_range_from_binary_expr): For
8072         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
8073         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
8074
8075 2011-05-18  Tom de Vries  <tom@codesourcery.com>
8076
8077         PR target/45098
8078         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
8079
8080 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
8081
8082         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
8083         (*tls_global_dynamic_64): Ditto.
8084         (*tls_local_dynamic_base_32_gnu): Ditto.
8085         (*tls_local_dynamic_base_64): Ditto.
8086         (tls_initial_exec_64_sun): Ditto.
8087
8088 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
8089
8090         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
8091         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
8092         bf592-none.
8093         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
8094         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8095         * config/bfin/bfin.c (bfin_cpus): Add bf592.
8096         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8097         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
8098         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
8099         * config/bfin/elf.h (LIB_SPEC): Add bf592.
8100
8101 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
8102
8103         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
8104         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
8105         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
8106         target_thread_pointer, arm_structure_size_boundary, struct
8107         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
8108         struct abi_name, arm_all_abis): Remove.
8109         (arm_option_override) Don't process most enumerated option values here.
8110         Don't process target_fpe_name here.  Work with integer not string for
8111         structure size boundary; use separate diagnostics for each case.
8112         * config/arm/arm.h (enum float_abi_type, enum
8113         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
8114         to arm-opts.h.
8115         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
8116         arm_structure_size_boundary): Remove.
8117         * config/arm/arm.opt (mabi=): Use Enum and Init.
8118         (arm_abi_type): New Enum and EnumValue entries.
8119         (mfloat-abi=): Use Enum and Init.
8120         (float_abi_type): New Enum and EnumValue entries.
8121         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
8122         (mfp16-format=): Use Enum and Init.
8123         (arm_fp16_format_type): New Enum and EnumValue entries.
8124         (mstructure-size-boundary=): Use UInteger and Init.
8125         (mtp=): Use Enum and Init.
8126         (arm_tp_type): New Enum and EnumValue entries.
8127
8128 2011-05-18  Richard Guenther  <rguenther@suse.de>
8129
8130         PR tree-optimization/49018
8131         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
8132         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
8133         gimple_has_side_effects.
8134
8135 2011-05-18  Richard Guenther  <rguenther@suse.de>
8136
8137         * gimple.c (gimple_register_type_1): New function, split out from ...
8138         (gimple_register_type): ... here.  Avoid infinite recursion.
8139
8140 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
8141
8142         PR tree-optimization/41881
8143         * tree-vectorizer.h (struct _loop_vec_info): Add new field
8144         reduction_chains along with a macro for its access.
8145         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
8146         (destroy_loop_vec_info): Free reduction chains.
8147         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
8148         (vect_is_slp_reduction): New function.
8149         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
8150         (vect_create_epilog_for_reduction): Support SLP reduction chains.
8151         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
8152         definition types for reduction chains.
8153         (vect_supported_load_permutation_p): Don't allow permutations for
8154         reduction chains.
8155         (vect_analyze_slp_instance): Support reduction chains.
8156         (vect_analyze_slp): Try to build SLP instance from reduction chains.
8157         (vect_get_constant_vectors):  Handle reduction chains.
8158         (vect_schedule_slp_instance): Mark the first statement of the
8159         reduction chain as reduction.
8160
8161 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
8162
8163         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
8164         names for group elements access.
8165         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
8166         reduction chains as well.  Remove data reference and interleaving
8167         related words from the fields names.
8168         * tree-vect-loop.c (vect_transform_loop): Use new names for group
8169         elements access.
8170         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
8171         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
8172         vect_update_interleaving_chain, vect_same_range_drs,
8173         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
8174         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
8175         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
8176         vect_analyze_group_access, vect_analyze_data_ref_access,
8177         vect_create_data_ref_ptr, vect_transform_strided_load,
8178         vect_record_strided_load_vectors): Likewise.
8179         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
8180         vect_model_load_cost, vectorizable_store, vectorizable_load,
8181         vect_remove_stores, new_stmt_vec_info): Likewise.
8182         * tree-vect-slp.c (vect_build_slp_tree,
8183         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
8184
8185 2011-05-18  Richard Guenther  <rguenther@suse.de>
8186
8187         PR middle-end/48989
8188         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
8189         operand verification.
8190         (verify_gimple_assign_binary): Likewise.
8191         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
8192         to non-1-precision BOOLEAN_TYPEs.
8193
8194 2011-05-18  Tom de Vries  <tom@codesourcery.com>
8195
8196         PR target/45098
8197         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
8198
8199 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
8200
8201         PR tree-optimization/49000
8202         * tree-ssa.c (execute_update_addresses_taken): Call
8203         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
8204         be rewritten and decl has been marked for renaming, reset
8205         the debug stmt.
8206
8207 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
8208
8209         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
8210         enum_opts_set when testing if attributes have set -mfpmath=.
8211
8212 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
8213
8214         * config/mips/mips.c (mips_handle_option): Remove unused variable.
8215
8216 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
8217
8218         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
8219         info->entry with 0
8220         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
8221         id.transform_lang_insert_block with NULL.
8222
8223 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
8224
8225         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
8226         (output_fp_compare): Change args 3 and 4 to bool.
8227         (ix86_expand_call): Change arg 6 to bool.
8228         (ix86_attr_length_immediate_default): Change arg 2 to bool.
8229         (ix86_attr_length_vex_default): Change arg 3 to bool.
8230         * config/i386/i386.md: Update all uses.
8231         * config/i386/i386.c: Ditto.
8232         (ix86_flags_dependent): Change return type to bool.
8233
8234 2011-05-17  Richard Guenther  <rguenther@suse.de>
8235
8236         * gimple.c (type_hash_pair_compare): Fix comparison.
8237
8238 2011-05-17  Richard Guenther  <rguenther@suse.de>
8239
8240         * gimple.c (iterative_hash_gimple_type): Simplify singleton
8241         case some more, fix final hash value of the non-singleton case.
8242
8243 2011-05-17  Richard Guenther  <rguenther@suse.de>
8244
8245         PR bootstrap/49013
8246         Revert
8247         2011-05-16  Richard Guenther  <rguenther@suse.de>
8248
8249         * gimple.c (gimple_types_compatible_p_1): Use names of the
8250         type itself, not its main variant.
8251         (iterative_hash_gimple_type): Likewise.
8252
8253 2011-05-17  Richard Guenther  <rguenther@suse.de>
8254
8255         * gimple.c (gimple_register_canonical_type): Use the main-variant
8256         leader for computing the canonical type.
8257
8258 2011-05-17  Nick Clifton  <nickc@redhat.com>
8259
8260         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
8261         moves.
8262
8263         * config/rx/rx.md: Add peephole to remove redundant extensions
8264         after loads.
8265         (bitset_in_memory): Use rx_restricted_mem_operand.
8266         (bitinvert_in_memory): Likewise.
8267         (bitclr_in_memory): Likewise.
8268
8269 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
8270             Nick Clifton  <nickc@redhat.com>
8271
8272         * config/rx/rx.md: Add peepholes to match a register move followed
8273         by a comparison of the moved register.  Replace these with an
8274         addition of zero that does both actions in one instruction.
8275
8276 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
8277
8278         PR target/48986
8279         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
8280         predicate to allow CONST_INT.
8281         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
8282
8283 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
8284
8285         * opts-common.c (opt_enum_arg_to_value): New.
8286         * opts.h (opt_enum_arg_to_value): Declare.
8287         * config/i386/i386.opt (fpmath): Remove.
8288         (mfpmath=): Use Enum, Init and Save.
8289         (fpmath_unit): New Enum and EnumValue entries.
8290         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
8291         name for function fpmath state.
8292         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
8293         * config/i386/i386.c: Include diagnostic.h.
8294         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
8295         (ix86_target_string): Take enum fpmath_unit value instead of string.
8296         (ix86_debug_options): Update call to ix86_target_string.
8297         (ix86_option_override_internal): Don't process fpmath strings here.
8298         (x86_function_specific_save, ix86_function_specific_restore):
8299         Don't handle fpmath state specially.
8300         (ix86_function_specific_print): Pass fpmath state to
8301         ix86_target_string instead of printing in this function.
8302         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
8303         Handle enum attributes.
8304         (IX86_ATTR_ENUM, ix86_opt_enum): New.
8305         (ix86_valid_target_attribute_tree): Update option_strings
8306         handling.  Handle fpmath as enum option.
8307         (ix86_can_inline_p): Update field names for function fpmath state.
8308         (ix86_expand_builtin): Update call to ix86_target_string.
8309         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
8310         (ix86_fpmath): Remove.
8311         * config/i386/t-i386 (i386.o): Update dependencies.
8312
8313 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
8314
8315         PR preprocessor/48677
8316         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
8317         from decoded_options[0], not from itself.
8318
8319 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
8320
8321         * config/i386/constraints.md (z): New constraint.
8322         * config/i386/i386.c (c): New mode attribute.
8323         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
8324         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
8325         constraint for operand 0.
8326         (*call_vzeroupper): Ditto.
8327         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
8328         (*call_rex64_ms_sysv_vzeroupper): Ditto.
8329         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
8330         Use "lzm" constraint for operand 0.
8331         (*call_pop_vzeroupper): Ditto.
8332         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
8333         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
8334         constraint for operand 0.
8335         (*sibcall_vzeroupper): Ditto.
8336         (*sibcall_rex64_ms_sysv): Ditto.
8337         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
8338         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
8339         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
8340         (*sibcall_pop_vzeroupper): Ditto.
8341         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
8342         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
8343         mode iterator.  Use "<c>zm" constraint for operand 1.
8344         (*call_value_vzeroupper): Ditto.
8345         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
8346         for operand 1.
8347         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
8348         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
8349         *call_value_pop_1.  Use "lzm" constraint for operand 1.
8350         (*call_value_pop_vzeroupper): Ditto.
8351         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
8352         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
8353         mode iterator.  Use "Uz" constraint for operand 1.
8354         (*sibcall_value_vzeroupper): Ditto.
8355         (*sibcall_value_rex64_ms_sysv): Ditto.
8356         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
8357         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
8358         constraint for operand 1.
8359         (*sibcall_value_pop_vzeroupper): Ditto.
8360         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
8361         and "z" constraint for operand 2.
8362         (*tls_global_dynamic_32_gnu): Ditto.
8363         (*tls_local_dynamic_base_32_gnu): Ditto.
8364         (*tls_local_dynamic_base_64): Ditto.
8365         (*tls_local_dynamic_32_once): Ditto.
8366         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
8367         Update all callers.
8368         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
8369
8370 2011-05-16  Richard Guenther  <rguenther@suse.de>
8371
8372         * gimple.c (gimple_types_compatible_p_1): Use names of the
8373         type itself, not its main variant.
8374         (iterative_hash_gimple_type): Likewise.
8375
8376 2011-05-16  Richard Guenther  <rguenther@suse.de>
8377
8378         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
8379         always visit pointer target and function result and argument types.
8380
8381 2011-05-16  Jason Merrill  <jason@redhat.com>
8382
8383         PR c++/48999
8384         * tree-inline.c (copy_statement_list): Put back recursion.
8385
8386 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
8387
8388         PR target/27663
8389         PR target/41076
8390         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
8391         * config/avr/avr.md ("*ior<mode>qi.byte0",
8392         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
8393
8394 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
8395
8396         PR target/45099
8397         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
8398         register is needed for a function argument.
8399
8400 2011-05-16  Richard Guenther  <rguenther@suse.de>
8401
8402         * gimple.c (struct type_hash_pair): New type.
8403         (type_hash_pair_compare): New function.
8404         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
8405
8406 2011-05-16  Revital Eres  <revital.eres@linaro.org>
8407
8408         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
8409
8410 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
8411
8412         * config/i386/i386.md (floating point move splitters): Fix
8413         usage of standard_80387_constant_p.
8414         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
8415
8416 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
8417
8418         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8419
8420 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8421
8422         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8423         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8424         (tree_ssa_lim_finalize): Likewise.
8425
8426 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
8427
8428         * config/i386/constraint.md (Yd, Yx): New register constraints.
8429         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
8430         Yd conditional register constraint.
8431         (*movtf_internal): Use standard_sse_constant_opcode.
8432         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
8433         Yx conditional register constraint.
8434         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
8435         Yd conditional register constraint.  Use standard_sse_constant_p to
8436         check for valid SSE constants and call standard_sse_constant_opcode to
8437         output SSE insn.
8438         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8439         constants and call standard_sse_constant_opcode to output SSE insn.
8440         * config/i386/i386.c (ix86_option_ovverride_internal): Set
8441         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
8442         optimize_size is set.
8443         (standard_sse_constant_opcode): Output conditional AVX insn templates.
8444
8445 2011-05-14  Tobias Burnus  <burnus@net-b.de>
8446
8447         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8448
8449 2011-05-13  Martin Jambor  <mjambor@suse.cz>
8450
8451         * ipa-prop.c (ipa_cst_from_jfunc): New function.
8452         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8453         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8454         (evaluate_conditions_for_ipcp_clone): Removed.
8455         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8456         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8457         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8458
8459 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8460
8461         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8462         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8463         lieu of MAY_HAVE_DEBUG_STMTS.
8464         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8465         debug statements if !MAY_HAVE_DEBUG_STMTS.
8466
8467 2011-05-13  Martin Thuresson  <martint@google.com>
8468
8469         PR gcov-profile/47793
8470         * libgcov.c (gcov_exit): Support relative profile paths.
8471         * doc/invoke.texi (-fprofile-dir): Update for above change.
8472
8473 2011-05-13  Richard Guenther  <rguenther@suse.de>
8474
8475         * gimple.c (gimple_canonical_types_compatible_p): Do not use
8476         type-pair caching, do not compare hashes.
8477
8478 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
8479
8480         PR middle-end/48965
8481         * tree-cfg.c (edge_to_cases_cleanup): Return true.
8482         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8483
8484 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8485
8486         * gimplify.c (gimplify_expr): Make sure operand is boolified.
8487         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8488         compatible type for TRUTH_NOT_EXPR.
8489
8490 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8491
8492         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8493         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
8494         can_create_pseudo_p ().
8495
8496 2011-05-13  Richard Guenther  <rguenther@suse.de>
8497
8498         PR lto/48978
8499         * gimple.c (iterative_hash_gimple_type): Revert change in
8500         pointer target and function result and argument hashing.
8501
8502 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
8503
8504         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8505         (*movxf_internal_nointeger): Ditto.
8506         (*movdf_internal_rex64): Ditto.
8507         (*movdf_internal): Ditto.
8508         (*movdf_internal_nointeger): Ditto.
8509         (*movsf_internal): Ditto.
8510         (sincos splitters): Use can_create_pseudo ().
8511
8512 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
8513
8514         * config/i386/i386-opts.h: New.
8515         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8516         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8517         ix86_section_threshold): Remove.
8518         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
8519         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8520         OPT_mbranch_cost_.
8521         (ix86_option_override_internal): Don't decode strings for options
8522         other than -march=, -mtune= and -mfpmath=.  Don't allow for
8523         __attribute__ uses in remaining diagnostics for options with
8524         string arguments.  Don't check for integer arguments being negative.
8525         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8526         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8527         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8528         ix86_branch_cost, ix86_section_threshold): Remove.
8529         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8530         HeaderInclude.
8531         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8532         but not Var.
8533         (masm=): Use Enum and Init.
8534         (asm_dialect): New Enum and EnumValue entries.
8535         (mbranch-cost=): Use UInteger.
8536         (mlarge-data-threshold=): Use UInteger and Init.
8537         (mcmodel=): Use Enum and Init.
8538         (cmodel): New Enum and EnumValue entries.
8539         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8540         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8541         mregparm=): Use UInteger.
8542         (mstringop-strategy=): Use Enum and Init.
8543         (stringop_alg): New Enum and EnumValue entries.
8544         (mtls-dialect=): Use Enum and Init.
8545         (tls_dialect): New Enum and EnumValue entries.
8546         (mabi=): Use Enum and Init.
8547         (calling_abi): New Enum and EnumValue entries.
8548         (mveclibabi=): Use Enum and Init.
8549         (ix86_veclibabi): New Enum and EnumValue entries.
8550
8551 2011-05-13  Nick Clifton  <nickc@redhat.com>
8552
8553         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8554         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8555
8556 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8557
8558         PR middle-end/48984
8559         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8560         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8561         (gimple_boolify): Check for cast for boolean_type_node instead for
8562         BOOLEAN_TYPE.
8563
8564 2011-05-13  Richard Guenther  <rguenther@suse.de>
8565
8566         PR tree-optimization/48172
8567         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8568         multiplying by number of iterations for equal step.
8569         (vect_create_cond_for_alias_checks): Likewise.
8570
8571 2011-05-13  Andreas Schwab  <schwab@redhat.com>
8572
8573         * configure.ac: Use AS_HELP_STRING throughout.
8574         * configure: Regenerate.
8575
8576 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8577
8578         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8579         (ix86_emit_restore_regs_using_mov): Likewise.
8580         (ix86_emit_restore_sse_regs_using_mov): Likewise.
8581
8582 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
8583
8584         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8585         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8586         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8587         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8588         RTX_OK_FOR_OLO10_P): ...here.
8589         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8590         SYMBOLIC_CONST.
8591
8592 2011-05-12  Kai Tietz  <ktietz@redhat.com>
8593
8594         * gimplify.c (gimple_boolify): Re-boolify expression
8595         arguments even if expression type is of kind BOOLEAN_TYPE.
8596         (gimplify_boolean_expr): Removed.
8597         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8598         and XOR. Additional take care that we keep expression's type.
8599         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8600         of TRUTH_AND|OR|XOR_EXPR.
8601
8602 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8603
8604         PR tree-optimization/48975
8605         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8606         on all bbs here and free and clear ifc_bbs at the end.
8607
8608 2011-05-12  Richard Guenther  <rguenther@suse.de>
8609
8610         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8611         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
8612         until after simple checks.
8613         (gimple_types_compatible_p): Likewise.
8614         (iterative_hash_gimple_type): Always hash pointer targets
8615         and function return and argument types.
8616         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8617         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
8618         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8619         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
8620         completely in the simple compare section.
8621         (gimple_register_canonical_type): Query the cache again after
8622         registering.
8623
8624 2011-05-12  Richard Guenther  <rguenther@suse.de>
8625
8626         PR tree-optimization/48172
8627         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8628         the number of iterations from the segment size calculation.
8629         (vect_create_cond_for_alias_checks): Adjust.
8630
8631 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8632
8633         PR debug/48967
8634         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8635         if validate_subreg fails.
8636
8637 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
8638
8639         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8640         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8641         early.
8642
8643 2011-05-12  DJ Delorie  <dj@redhat.com>
8644
8645         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8646         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8647         created builtin into rx_builtins array.
8648         (rx_builtin_decl): New function.
8649         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
8650
8651 2011-05-12  DJ Delorie  <dj@redhat.com>
8652             Nick Clifton  <nickc@redhat.com>
8653
8654         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8655         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8656         (rx_is_legitimate_address): Add pre-decrement and post-increment
8657         addressing in HImode and QImode.  Fix test for out of range
8658         REG+INT addressing.
8659         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8660         (rx_align_for_label): Test label before extracting its usage count.
8661         (rx_adjust_insn_lengths): Fix selection of insn codes.
8662         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8663
8664 2011-05-11  Jason Merrill  <jason@redhat.com>
8665
8666         * tree.c (type_hash_canon): Use struct tree_type_non_common.
8667
8668 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8669
8670         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8671         reindent the subsequent block.
8672
8673 2011-05-11  Satoru Takabayashi  <satorux@google.com>
8674             Paul Pluzhnikov  <ppluzhnikov@google.com>
8675
8676         * doc/install.texi (Configuration): Document --with-linker-hash-style.
8677         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8678         * config.in: Add LINKER_HASH_STYLE.
8679         * configure.ac: Add --with-linker-hash-style.
8680         * configure: Regenerate.
8681
8682 2011-05-11  Richard Guenther  <rguenther@suse.de>
8683
8684         PR middle-end/48964
8685         * gimple.c (iterative_hash_canonical_type): Fix typo.
8686
8687 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
8688
8689         * config/i386/i386.c (legitimize_tls_address)
8690         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8691         expanders directly for TARGET_GNU2_TLS.  Determine pic and
8692         __tls_get_addr symbol reference here.  Update call to
8693         gen_tls_global_dynamic_{32,64} for added arguments.
8694         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8695         expanders directly for TARGET_GNU2_TLS.  Determine
8696         __tls_get_addr symbol reference here.  Update call to
8697         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
8698         unique UNSPEC REG_EQUIV to libcall block.
8699         (ix86_tls_get_addr): Declare static.
8700         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8701         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8702         Do not determine pic and __tls_get_addr symbol reference here. Do not
8703         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8704         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8705         (tls_global_dynamic_64): Add operand 2.  Do not determine
8706         __tls_get_addr symbol reference here.  Do not call
8707         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8708         (tls_local_dynamic_base64): Ditto for operand 1.
8709
8710 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8711
8712         * function.c (expand_function_start): Initialize stack_check_probe_note
8713         only if the generic stack checking mechanism is used.
8714
8715 2011-05-11  Richard Guenther  <rguenther@suse.de>
8716
8717         PR tree-optimization/15256
8718         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8719         (A & B) | C, combine (A op CST1) op CST2.
8720         (tree_ssa_forward_propagate_single_use_vars): Only bother to
8721         visit assigns that have uses.
8722
8723 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
8724
8725         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8726         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8727         (unpack_ts_type_common_value_fields): ...this.  Update comment.
8728         (unpack_value_fields): Adjust for renaming.
8729         (lto_input_ts_type_tree_pointers): Split into...
8730         (lto_input_ts_type_common_tree_pointer): ...this and...
8731         (lto_input_ts_type_non_common_tree_pointers): ...this.
8732         (lto_input_tree_pointers): Adjust for above split.
8733         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8734         (pack_ts_type_common_value_fields): ...this.  Update comment.
8735         (lto_output_ts_type_tree_pointers): Split into...
8736         (lto_output_ts_type_common_tree_pointers): ...this and...
8737         (lto_output_ts_type_non_common_tree_pointers): ...this.
8738         (lto_output_tree_pointers): Adjust for above split.
8739         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8740         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8741         * stor-layout.c (vector_type_mode): Adjust location of mode field.
8742         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8743         Define.
8744         (struct tree_type): Split into...
8745         (struct tree_type_common: ...this and...
8746         (struct tree_type_with_lang_specific): ...this and...
8747         (struct tree_type_non_common): ...this.  Adjust accessor macros
8748         accordingly.
8749         (TYPE_VALUES_RAW): Define.
8750         (union tree_node): Update for above changes.
8751         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8752         TS_TYPE_NON_COMMON.
8753         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8754         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8755         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8756         * treestructu.def (TS_TYPE): Remove.
8757         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8758         Define.
8759
8760 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
8761
8762         PR debug/48159
8763         * tree-ssa.c (reset_debug_uses): New function.
8764         * tree-flow.h (reset_debug_uses): New prototype.
8765         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8766         * tree-loop-distribution.c (generate_loops_for_partition): Call
8767         reset_debug_uses on the stmts that will be removed.  Keep around
8768         all debug stmts, don't count them as bits in partition bitmap.
8769         (generate_builtin): Don't count debug stmts or labels as bits in
8770         partition bitmap.
8771
8772 2011-05-11  Richard Guenther  <rguenther@suse.de>
8773
8774         * gimple.c (gimple_type_hash_1): Merge with ...
8775         (gimple_type_hash): ... this.
8776         (gtc_visit): Remove mode parameter and simplify accordingly.
8777         (gimple_types_compatible_p_1): Likewise.
8778         (gimple_types_compatible_p): Likewise.
8779         (iterative_hash_gimple_type): Likewise.
8780         (visit): Likewise.
8781         (gimple_type_eq): Adjust.
8782
8783 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8784
8785         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8786         enters the branch create an anti edge in the opposite direction
8787         to prevent the creation of reg-moves.
8788         * modulo-sched.c: Adjust comment to reflect the fact we are
8789         scheduling closing branch.
8790         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8791         (stage_count): New field in struct partial_schedule.
8792         (calculate_stage_count): New function.
8793         (normalize_sched_times): Rename to reset_sched_times and handle
8794         incrementing the sched time of the nodes by a constant value
8795         passed as parameter.
8796         (duplicate_insns_of_cycles): Skip closing branch.
8797         (sms_schedule_by_order): Schedule closing branch.
8798         (ps_insn_find_column): Handle closing branch.
8799         (sms_schedule): Call reset_sched_times and adjust the code to
8800         support scheduling of the closing branch.
8801         (ps_insert_empty_row): Update calls to normalize_sched_times
8802         and rotate_partial_schedule functions.
8803
8804 2011-05-11  Richard Guenther  <rguenther@suse.de>
8805
8806         PR middle-end/48953
8807         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8808
8809 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
8810
8811         * opts.c (finish_options): Move warning settings from process_options.
8812         * toplev.c (process_options): Move warning settings to finish_options.
8813
8814 2011-05-11  Richard Guenther  <rguenther@suse.de>
8815
8816         PR tree-optimization/18041
8817         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8818         (simplify_bitwise_binary): ... this.  Handle operand conversions
8819         by applying them to the result instead.
8820         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
8821
8822 2011-05-11  Richard Guenther  <rguenther@suse.de>
8823
8824         * gimple.c (gimple_canonical_types_compatible_p): Split out
8825         from gimple_types_compatible_p and friends.  Do not recurse
8826         to pointed-to types.
8827         (gimple_canonical_type_eq): Use it.
8828         (iterative_hash_canonical_type): Split out from
8829         iterative_hash_gimple_type and friends.  Do not recurse
8830         to pointed-to types.
8831         (gimple_canonical_type_hash): Use it, allocate the hash here.
8832
8833 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8834
8835         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8836         recognizing doloop.
8837
8838 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8839
8840         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8841         instead of PREV_INSN.
8842
8843 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8844
8845         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8846         * loop-doloop.c (doloop_condition_get): Likewise.
8847         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8848         (doloop_end): New.
8849         * config/arm/arm.md (*addsi3_compare0): Remove "*".
8850
8851 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
8852
8853         * tree.def (CASE_LABEL_EXPR): Add an operand.
8854         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8855
8856 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8857
8858         * c-decl.c (c_override_global_bindings_to_false): Remove.
8859         (global_bindings_p): Don't check
8860         c_override_global_bindings_to_false.
8861         * c-tree.h (c_override_global_bindings_to_false): Remove.
8862         * c-typeck.c (composite_type): Don't set
8863         c_override_global_bindings_to_false.
8864
8865 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
8866
8867         PR target/48857, 48495
8868         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8869         (VSX_MODE): Ditto.
8870         (VSX_MOVE_MODE): Ditto.
8871         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8872         VSX vector types.  Add V2DImode.
8873         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8874         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8875         (MODES_TIEABLE_P): Ditto.
8876
8877         * config/rs6000/rs6000.c (rs6000_emit_move): Use
8878         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8879         VSX_VECTOR_MODE.
8880         (init_cumulative_args): Ditto.
8881         (rs6000_function_arg_boundary): Ditto.
8882         (rs6000_function_arg_advance_1): Ditto.
8883         (rs6000_function_arg): Ditto.
8884         (rs6000_function_ok_for_sibcall): Ditto.
8885         (emit_frame_save): Ditto.
8886         (rs6000_function_value): Ditto.
8887         (rs6000_libcall_value): Ditto.
8888
8889 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8890
8891         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8892         i386/darwin-lib.h to $libgcc_tm_file.
8893         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8894
8895 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8896
8897         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8898
8899 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8900
8901         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
8902         * config/rs6000/rs6000-tables.opt: New file (generated).
8903         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8904         rs6000/rs6000-tables.opt to extra_options.
8905         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8906         * config/rs6000/rs6000.c (rs6000_select): Remove.
8907         (processor_target_table): Move contents to rs6000-cpus.def.
8908         (darwin_rs6000_override_options): Check
8909         global_options_set.x_rs6000_cpu_index instead of
8910         rs6000_select[1].string.
8911         (rs6000_option_override_internal): Likewise.
8912         (rs6000_handle_option): Don't assert that global structures are in
8913         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
8914         (rs6000_default_cpu): New variable.
8915         (rs6000_file_start): Set it instead of local default_cpu.  Check
8916         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8917         global_options_set.x_rs6000_tune_index instead of rs6000_select.
8918         (rs6000_darwin_file_start): Check rs6000_default_cpu and
8919         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8920         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8921         rs6000_select): Remove.
8922         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8923         Remove.
8924         (mcpu=, mtune=): Use Var, Init, Enum and Save.
8925         * config/rs6000/t-rs6000
8926         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8927         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8928         global_options_set.x_rs6000_cpu_index instead of
8929         rs6000_select[1].string.
8930         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8931         global_options_set.x_rs6000_cpu_index instead of
8932         rs6000_select[1].string.
8933
8934 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
8935
8936         * config.gcc (libgcc_tm_file): Define instead of including files
8937         from ../../libgcc/config/ in tm_file.
8938         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
8939         * configure: Regenerate.
8940         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8941         libgcc_tm.h, cs-libgcc_tm.h): New.
8942         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8943         (clean): Remove libgcc_tm.h.
8944         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8945         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8946         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8947
8948 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
8949
8950         PR target/48896
8951         * config/avr/avr.c (avr_ret_register): Return unsigned int
8952         instead of int.
8953         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8954         it to avr_libcall_value.
8955         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8956         expand_expr.
8957         (avr_expand_binop_builtin): Ditto.
8958         (avr_expand_unop_builtin): Ditto.
8959
8960 2011-05-10  DJ Delorie  <dj@redhat.com>
8961
8962         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8963         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8964         * config/rx/rx.c (rx_align_for_label): Add label and
8965         uses_threshold parameters.  Do not align when the label is not
8966         used enough.
8967         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8968
8969 2011-05-10  Richard Guenther  <rguenther@suse.de>
8970
8971         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8972         a series of conversions and apply foldings similar to what
8973         fold-const does.
8974         (tree_ssa_forward_propagate_single_use_vars): Call it.
8975
8976 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
8977
8978         PR tree-optimization/48611
8979         PR tree-optimization/48794
8980         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8981         referenced from RESX or EH_DISPATCH arguments.
8982
8983         PR debug/48928
8984         * dfp.c (decimal_to_decnumber): Handle conversion from
8985         dconst{1,2,m1,half}.
8986
8987 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8988
8989         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8990         for !flag_prefer_avx128.
8991         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8992
8993 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
8994
8995         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8996         (fold_ternary_loc): Use expr_location_or.
8997
8998 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8999
9000         PR debug/48853
9001         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
9002         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
9003         Pmode and mem_mode is not VOIDmode.
9004
9005 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
9006
9007         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
9008         TYPE_QUAL_RESTRICT): Convert to enum.
9009
9010 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9011
9012         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
9013         (const_pow2_1_to_8_operand): Ditto.
9014         (const_pow2_1_to_128_operand): Ditto.
9015         (const_pow2_1_to_32768_operand): Ditto.
9016         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
9017         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
9018         in insn constraint to check integer value of operand 3.
9019         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
9020
9021         (PINSR_MODE): New mode iterator.
9022         (sse2p4_1): New mode attribute.
9023         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
9024         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
9025         iterator.  Use const_int_operand instead of
9026         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
9027         exact_log2 in insn constraint to check integer value of operand 3.
9028
9029 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9030
9031         * config/i386/sse.md (blendbits): Remove mode attribute.
9032         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9033         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9034         Check integer value of operand 3 in insn constraint.
9035
9036 2011-05-09  Richard Guenther  <rguenther@suse.de>
9037
9038         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
9039         for diagnostics.
9040         (lto_symtab_merge): Likewise.  Do not register types here.
9041         (lto_symtab_merge_decls_2): Likewise.
9042         (lto_symtab_merge_decls_1): Likewise.
9043         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9044         * gimple.c (enum gtc_mode): Declare.
9045         (gimple_types_compatible_p): Make static.
9046
9047 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9048
9049         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
9050         temporary register to match Pmode.
9051
9052 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9053
9054         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
9055         and *vec_concatv4si_1_avx.
9056
9057 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9058
9059         PR rtl-optimization/48927
9060         * ira-conflicts.c (commutative_constraint_p): Use
9061         recog_data.alternative_enabled_p to disable alternatives where
9062         "enabled" attribute is false.
9063         (get_dup_num): Ditto.
9064         * ira-lives.c (single_reg_class): Ditto.
9065         (ira_implicitly_set_insn_hard_regs): Ditto.
9066
9067 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
9068
9069         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
9070         (dataflow_set_preserve_mem_locs): Likewise.
9071
9072 2011-05-09  Philipp Thomas  <pth@suse.de>
9073
9074         * config/mep/mep.c (mep_validate_vliw): Syntax description
9075         should not be translated.
9076
9077 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
9078
9079         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
9080         * config/mips/mips-tables.opt: New file (generated).
9081         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
9082         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
9083         MIPS_ARCH_OPTION_NATIVE): Define.
9084         * config/mips/mips.c (mips_cpu_info_table): Move contents to
9085         mips-cpus.def.
9086         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
9087         mips_parse_cpu): Remove.
9088         (mips_cpu_info_from_opt, mips_default_arch): New.
9089         (mips_handle_option): Don't assert that global structures are in
9090         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
9091         (mips_option_override): Use new variables and functions to set
9092         state of these options.  Use strcmp to check for individual CPU names.
9093         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
9094         definition.
9095         * config/mips/mips.opt (march=): Use ToLower and Enum.
9096         (mips): Use ToLower, Enum and Var.
9097         (mtune=): Use ToLower and Enum.
9098         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
9099
9100 2011-05-08  Jan Hubicka  <jh@suse.cz>
9101
9102         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
9103         Arrange type pairs to be UID ordered.
9104         (gimple_lookup_type_leader): Make inline.
9105
9106 2011-05-09  Nick Clifton  <nickc@redhat.com>
9107
9108         PR target/48899
9109         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
9110         PROCESSOR_DEFAULT.
9111
9112         PR target/48897
9113         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
9114         variable 's'.
9115
9116 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
9117
9118         * combine.c (simplify_comparison): Abstract out parts into...
9119         (simplify_compare_const): ... new function.
9120         (try_combine): Generalize parallel arithmetic/compare combining
9121         to call simplify_compare_const() and CANONICALIZE_COMPARE().
9122
9123 2011-05-08  Jan Hubicka  <jh@suse.cz>
9124
9125         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
9126         (cgraph_create_virtual_clone): Call hooks once virtual clone
9127         is finished.
9128         * cgraph.h (cgraph_clone_node): Update prototype.
9129         * ipa-cp.c (ipcp_estimate_growth): Use
9130         estimate_ipcp_clone_size_and_time.
9131         * ipa-inline-transform.c (clone_inlined_nodes): Update.
9132         * lto-cgraph.c (input_node): Update.
9133         * ipa-inline.c (recursive_inlining): Update.
9134         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
9135         (evaluate_conditions_for_known_args): Break out from ...
9136         (evaluate_conditions_for_edge): ... here.
9137         (evaluate_conditions_for_ipcp_clone): New function.
9138         (inline_node_duplication_hook): Update clone summary based
9139         on parameter map.
9140         (estimate_callee_size_and_time): Rename to ...
9141         (estimate_node_size_and_time): take NODE instead of EDGE;
9142         take POSSIBLE_TRUTHS as argument.
9143         (estimate_callee_size_and_time): Update.
9144         (estimate_ipcp_clone_size_and_time): New function.
9145         (do_estimate_edge_time): Update.
9146
9147 2011-05-08  Richard Guenther  <rguenther@suse.de>
9148
9149         PR middle-end/48908
9150         PR middle-end/48905
9151         * expmed.c (expand_shift_1): Compute adjusted constant shift
9152         amount manually.
9153
9154 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9155
9156         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
9157
9158 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9159
9160         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
9161
9162 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
9163
9164         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
9165
9166 2011-05-07  Jan Hubicka  <jh@suse.cz>
9167
9168         * ipa-inline-transform.c (inline_call): Account when program size
9169         decreases.
9170         * ipa-inline.c (relative_time_benefit): New function.
9171         (edge_badness): Reorganize to be power 2 based; fix thinko when
9172         computing badness for negative growth; update comments to match
9173         reality; better dumps.
9174
9175 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
9176
9177         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
9178         type to bool and adjust comment.
9179         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
9180         (fold_mathfn_compare): Remove calls to global_bindings_p.
9181         (fold_inf_compare): Likewise.
9182         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
9183         * c-tree.h (global_bindings_p): Adjust prototype.
9184         * c-decl.c (global_bindings_p): Return bool and simplify.
9185
9186 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
9187
9188         PR tree-optimization/48837
9189         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
9190         when accumulator transformation is performed.
9191
9192 2011-05-06  Jan Hubicka  <jh@suse.cz>
9193
9194         * i386.h (ix86_tune_indices): Add
9195         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
9196         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
9197         * i386.c (initial_ix86_tune_features): Add
9198         X86_SOFTARE_PREFETCHING_BENEFICIAL.
9199         (software_prefetching_beneficial_p): Remove predicate.
9200         (ix86_option_override_internal): Use new macro.
9201
9202 2011-05-06  Jan Hubicka  <jh@suse.cz>
9203
9204         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
9205
9206 2011-05-06  Jan Hubicka  <jh@suse.cz>
9207
9208         * cgraph.c (cgraph_add_thunk): Create real function node instead
9209         of alias node; finalize it and mark needed/reachale; arrange visibility
9210         to be right and add it into the corresponding same comdat group list.
9211         (dump_cgraph_node): Dump thunks.
9212         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
9213         cgraph_function_with_gimple_body_p,
9214         cgraph_first_function_with_gimple_body,
9215         cgraph_next_function_with_gimple_body): New functions.
9216         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
9217         New macros.
9218         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
9219         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9220         * cgraphunit.c (cgraph_finalize_function): Only look into possible
9221         devirtualization when optimizing.
9222         (verify_cgraph_node): Verify thunks.
9223         (cgraph_analyze_function): Analyze thunks.
9224         (cgraph_mark_functions_to_output): Output thunks only in combination
9225         with function they are assigned to.
9226         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
9227         alias into normal node.
9228         (assemble_thunks): New functoin.
9229         (cgraph_expand_function): Use it.
9230         * lto-cgraph.c (lto_output_node): Stream thunks.
9231         (input_overwrite_node): Stream in thunks.
9232         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
9233         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
9234         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
9235         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
9236         (inline_analyze_function): Do not care about thunk jump functions.
9237         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
9238         * ipa-prop.c (ipa_prop_write_jump_functions): Use
9239         cgraph_function_with_gimple_body_p.
9240         * passes.c (do_per_function_toporder): Use
9241         cgraph_function_with_gimple_body_p.
9242         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9243         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
9244         (function_called_by_processed_nodes_p): Likewise.
9245
9246 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
9247
9248         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
9249         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
9250         entries.
9251         (mabi=): Replace with separate entries for mabi=altivec,
9252         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
9253         mabi=ieeelongdouble and mabi=ibmlongdouble.
9254         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
9255         check for -mabi=spe without SPE ABI support here.
9256         (rs6000_handle_option): Replace OPT_mabi_ handling with
9257         OPT_mabi_altivec and OPT_mabi_spe handling.
9258
9259 2011-05-06  Cary Coutant  <ccoutant@google.com>
9260
9261         * dwarf2out.c (contains_subprogram_definition): New function.
9262         (should_move_die_to_comdat): Call it.
9263
9264 2011-05-06  Jeff Law  <law@redhat.com>
9265
9266         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
9267         remove_ctrl_stmt_and_useless_edges.
9268         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
9269         (fixup_template_block, thread_single_edge): Likewise.
9270         (mark_threaded_blocks): Use THREAD_TARGET.
9271
9272 2011-05-06  Alan Modra  <amodra@gmail.com>
9273
9274         PR target/48900
9275         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9276         const0_rtx as the arg to the dummy __tls_get_addr libcall.
9277
9278 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
9279
9280         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
9281         constraint modifier to "r".
9282
9283 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
9284
9285         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
9286         fall through for OPT_mcmodel_.
9287
9288 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9289
9290         * config/s390/s390.c (s390_asm_trampoline_template): Comment
9291         instruction sizes.
9292         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
9293
9294 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9295
9296         PR target/47930
9297         * config/arm/arm.opt (marm): Document it.
9298         (mthumb): Reject negative variant.
9299
9300 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
9301
9302         PR target/48898
9303         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9304         Fix typo in "ccvt" variable name.
9305
9306 2011-05-06  Tristan Gingold  <gingold@adacore.com>
9307
9308         PR target/48895
9309         * config/vms/vms-ar.c (main): Remove cwd variable.
9310
9311 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
9312
9313         PR debug/48902
9314         * var-tracking.c (prepare_call_arguments): Move else before #endif.
9315
9316 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
9317
9318         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
9319         * gimplify.c (gimplify_switch_expr): Likewise.
9320         * omp-low.c (expand_omp_sections): Likewise.
9321         * tree-eh.c (lower_try_finally_switch): Likewise.
9322         (lower_eh_dispatch): Likewise.
9323         * tree.h (build_case_label): Declare.
9324         * tree.c (build_case_label): Define.
9325
9326 2011-05-05  Jason Merrill  <jason@redhat.com>
9327
9328         PR c++/40975
9329         * tree-inline.c (copy_tree_r): Use copy_statement_list.
9330         (copy_statement_list): Don't recurse.
9331         * stor-layout.c (copy_self_referential_tree_r): Don't allow
9332         STATEMENT_LIST.
9333
9334 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9335
9336         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
9337         through from -mfpu= handling.
9338         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
9339
9340 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
9341
9342         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
9343         POST_MODIFY.
9344
9345 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
9346
9347         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
9348         for 11.31.
9349         (hppa[12]*-*-hpux11*): Ditto.
9350         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
9351         * config/ia64/hpux-unix2003.h: New.
9352         * config/pa/pa-hpux1131.opt: New.
9353         * config/pa/pa-hpux1131.h: New.
9354         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
9355         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
9356         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
9357
9358 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
9359
9360         PR debug/48853
9361         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
9362         instead of mode as 3rd argument to recursive call.
9363         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
9364         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
9365         VOIDmode.
9366         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
9367         don't give up if mode is Pmode and mem_mode is not VOIDmode.
9368         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
9369         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
9370
9371 2011-05-05  Julian Brown  <julian@codesourcery.com>
9372
9373         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
9374         parenthesis in D-register case.
9375
9376 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9377
9378         * opt-functions.awk (var_type_struct): Handle Enum options.
9379         * optc-gen.awk: Don't check range of variables of character type.
9380         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
9381         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
9382         rs6000_sdata_name, rs6000_explicit_options): Remove.
9383         (rs6000_option_override_internal): Check for -malign-power here.
9384         Use global_options_set instead of rs6000_explicit_options.
9385         (rs6000_parse_fpu_option): Remove.
9386         (rs6000_handle_option): Access variables via opts and opts_set
9387         pointers.  Use error_at and warning_at.  Add fall-through
9388         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
9389         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
9390         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
9391         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
9392         here.  Don't use rs6000_parse_fpu_option.
9393         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
9394         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
9395         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
9396         (mrecip=): Use Var.
9397         (mspe): Use Var and Save.
9398         (mtraceback=): Use Enum and Var.
9399         (rs6000_traceback_type): New Enum and EnumValue entries.
9400         (mfloat-gprs=): Use Enum, Var and Save.
9401         (rs6000_float_gprs): New Enum and EnumValue entries.
9402         (mlong-double-): use Var and Save.
9403         (msched-costly-dep=, minsert-sched-nops=): Use Var.
9404         (malign-): Use Enum and Var.
9405         (rs6000_alignment_flags): New Enum and EnumValue entries.
9406         (mfpu=): Use Enum.
9407         (fpu_type_t): New Enum and EnumValue entries.
9408         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9409         global_options_set instead of rs6000_explicit_options.
9410         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9411         global_options_set instead of rs6000_explicit_options.
9412         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9413         global_options_set instead of rs6000_explicit_options.
9414         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9415         global_options_set instead of rs6000_explicit_options.
9416         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9417         global_options_set instead of rs6000_explicit_options.
9418         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9419         global_options_set instead of rs6000_explicit_options.
9420         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9421         definition.
9422         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9423         global_options_set instead of rs6000_explicit_options.
9424         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9425         (rs6000_cmodel): New Enum and EnumValue entries.
9426         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9427         global_options_set instead of rs6000_explicit_options.
9428         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9429         (mtls-size=): Use Enum and Var.
9430         (rs6000_tls_size): New Enum and EnumValue entries.
9431
9432 2011-05-05  Michael Matz  <matz@suse.de>
9433
9434         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9435         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9436         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9437         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9438         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9439         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9440         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9441         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9442         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9443         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9444         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9445         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9446         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9447         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9448         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9449         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9450
9451 2011-05-05  Richard Guenther  <rguenther@suse.de>
9452
9453         * expmed.c (expand_variable_shift): Rename to ...
9454         (expand_shift_1): ... this.  Take an expanded shift amount.
9455         For rotates recurse directly not building trees for the shift amount.
9456         (expand_variable_shift): Wrap around expand_shift_1.
9457         (expand_shift): Adjust.
9458
9459 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
9460
9461         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9462
9463 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9464
9465         * tree.h (get_pending_sizes): Remove prototype.
9466         (put_pending_size): Likewise.
9467         (put_pending_sizes): Likewise.
9468         * stor-layout.c (pending_sizes): Delete.
9469         (get_pending_sizes): Likewise.
9470         (put_pending_size): Likewise.
9471         (put_pending_sizes): Likewise.
9472         (variable_size): Do not call put_pending_size and tidy up.
9473         * function.h (struct function): Remove dont_save_pending_sizes_p.
9474         * lto-streamer-in.c (input_function): Do not stream it.
9475         * lto-streamer-out.c (output_function): Likewise.
9476         * tree-inline.c (initialize_cfun): Do not copy it.
9477         * c-decl.c (store_parm_decls): Do not set it.
9478         * omp-low.c (create_task_copyfn): Likewise.
9479         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9480
9481 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
9482
9483         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9484         conditions.
9485         (*movdf_internal): Ditto.
9486         (*movdf_internal_nointeger): Ditto.
9487         (*movsf_internal): Ditto.
9488
9489 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9490
9491         * c-decl.c (finish_decl): Don't call get_pending_sizes.
9492         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
9493         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
9494         (c_variable_size): Remove.
9495         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
9496         call put_pending_sizes.
9497         (get_parm_info): Add parameter expr.  Use it to set
9498         arg_info->pending_sizes.
9499         (store_parm_decls): Use arg_info->pending_sizes instead or calling
9500         get_pending_sizes.
9501         * c-parser.c (c_parser_parms_declarator): Update call to
9502         c_parser_parms_list_declarator.
9503         (c_parser_parms_list_declarator): Take parameter expr.  Update
9504         call to push_parm_decl.  Update recursive call.  Don't call
9505         get_pending_sizes.  Update calls to get_parm_info.
9506         (c_parser_objc_method_definition): Update calls to
9507         c_parser_objc_method_decl and objc_start_method_definition.
9508         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9509         (c_parser_objc_method_decl): Add parameter expr.  Update call to
9510         grokparm.
9511         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9512         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9513         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9514
9515 2011-05-05  Michael Hope  <michael.hope@linaro.org>
9516
9517         PR pch/45979
9518         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9519         __ARM_EABI__ hosts.
9520
9521 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9522
9523         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9524         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9525         (spu_output_mi_thunk): New function.
9526
9527 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9528
9529         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9530         targetm.asm_out.print_operand.
9531         * config/sol2.c: Include target.h.
9532
9533 2011-05-04  Jan Hubicka  <jh@suse.cz>
9534
9535         * ipa-inline.c (reset_edge_caches): New function.
9536         (update_caller_keys): Add check_inlinablity_for; do not
9537         reset edge caches; remove now unnecesary loop.
9538         (update_callee_keys): Add comments; reset node_growth_cache of callee.
9539         (update_all_callee_keys): Likewise.
9540         (inline_small_functions): Sanity check cache; update code
9541         recomputing it.
9542
9543 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
9544
9545         PR rtl-optimization/47612
9546         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9547         as the last insn of the sequence to be moved.
9548
9549 2011-05-04  Tobias Burnus  <burnus@net-b.de>
9550
9551         PR fortran/48864
9552         * doc/invoke.texi (Ofast): Document that it
9553         enables Fortran's -fno-protect-parens.
9554
9555 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9556
9557         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9558
9559 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9560
9561         * stor-layout.c (variable_size): Do not issue errors.
9562
9563 2011-05-04  Richard Guenther  <rguenther@suse.de>
9564
9565         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9566         for array-ref indices.
9567         (tree_coverage_counter_addr): Likewise.
9568         (build_fn_info_type): Use size_int for index types.
9569         (build_gcov_info): Likewise.
9570
9571 2011-05-04  Richard Guenther  <rguenther@suse.de>
9572
9573         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9574         to build_int_cst.
9575         * c-typeck.c (really_start_incremental_init): Use bitsize_int
9576         for constructor indices.
9577         (push_init_level): Likewise.
9578
9579 2011-05-04  Richard Guenther  <rguenther@suse.de>
9580
9581         * explow.c (promote_mode): Move variable declarations before code.
9582
9583 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
9584
9585         * tree.h (build_function_type_array): Declare.
9586         (build_varargs_function_type_array): Declare.
9587         (build_function_type_vec, build_varargs_function_type_vec): Define.
9588         * tree.c (build_function_type_array_1): New function.
9589         (build_function_type_array): New function.
9590         (build_varargs_function_type_array): New function.
9591
9592 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
9593
9594         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9595         before setting STMT_VINFO_TYPE.
9596
9597 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9598
9599         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9600         instead of spu_pass_by_reference.
9601
9602 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9603
9604         * calls.c (emit_library_call_value_1): Invoke
9605         promote_function_mode hook on libcall arguments.
9606         * explow.c (promote_function_mode, promote_mode): Handle TYPE
9607         argument being NULL.
9608         * targhooks.c (default_promote_function_mode): Lisewise.
9609         * config/s390/s390.c (s390_promote_function_mode): Likewise.
9610         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9611
9612         * doc/tm.texi: Document that TYPE argument might be NULL.
9613
9614 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9615
9616         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9617
9618 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9619
9620         From Bernd Schmidt
9621         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9622
9623 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9624
9625         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9626         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9627         Move ...
9628         * mips-tfile.c: ... here.
9629         Don't include coretypes.h, tm.h, filenames.h.
9630         (saber_stop): Remove definition and all calls.
9631         [__SABER__]: Remove.
9632         (__LINE__): Remove default.
9633         (Size_t, Ptrdiff_t): Remove definitions.
9634         Replace by size_t, ptrdiff_t.
9635         [!MIPS_DEBUGGING_INFO]: Remove.
9636         (SHASH_SIZE, THASH_SIZE): Remove defaults.
9637         (progname): Add const.
9638         (STATIC): Remove.
9639         Replace all uses by static.
9640         (ALIGN_SYMTABLE_OFFSET): Remove default.
9641         * mips-tdump.c: Don't include coretypes.h, tm.h.
9642         Remove !MIPS_IS_STAB guard.
9643         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9644         $(TM_H), filenames.h dependencies.
9645         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9646
9647 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9648
9649         From Jie Zhang
9650         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9651         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9652
9653 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9654
9655         From Bernd Schmidt
9656         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9657         account and save/restore RETS.
9658         (PROFILE_BEFORE_PROLOGUE): Define.
9659         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
9660         the push insn to use predecrement.
9661
9662 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9663
9664         From Jie Zhang
9665         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9666
9667 2011-05-04  Nick Clifton  <nickc@redhat.com>
9668
9669         * config/mn10300/mn10300.c: Include cfgloop.h.
9670         (DUMP): New macro.
9671         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
9672         Lcc or a FLcc insn into the instruction stream.
9673         (mn10300_block_contains_call): New function.  Returns true if the
9674         given basic block contains a CALL insn.
9675         (mn10300_loop_contains_call_insn): New function.  Returns true if
9676         the given loop contains a CALL insn.
9677         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
9678         to use the SETLB and Lcc or FLcc insns.
9679         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9680         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9681         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
9682         disable the SETLB optimization.
9683         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9684         __SETLB__ or __NO_SETLB__.
9685         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9686         (movsf_internal): Handle MDR register.
9687         (cmpsi): Make visible.
9688         (setlb): New pattern.
9689         (Lcc): New pattern.
9690         (FLcc): New pattern.
9691
9692 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9693
9694         PR target/48860
9695         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9696         for reg<->xmm moves.
9697         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9698         (vec_concatv2di_rex64_sse): Ditto.
9699         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9700         (*vec_extractv2di_1_rex64): Ditto.
9701
9702         Revert:
9703         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9704
9705         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9706         reg<->xmm moves.
9707         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9708
9709 2011-05-04  Richard Guenther  <rguenther@suse.de>
9710
9711         * tree.h (int_const_binop): Remove notrunc argument.
9712         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
9713         create integer constants that are properly truncated.
9714         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9715         (const_binop): Remove zero notrunc argument to int_const_binop.
9716         (size_binop_loc): Likewise.
9717         (fold_div_compare): Likewise.
9718         (maybe_canonicalize_comparison_1): Likewise.
9719         (fold_comparison): Likewise.
9720         (fold_binary_loc): Likewise.
9721         (multiple_of_p): Likewise.
9722         * expr.c (store_constructor): Likewise.
9723         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9724         (maybe_fold_stmt_addition): Likewise.
9725         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9726         * stor-layout.c (layout_type): Likewise.
9727         * tree-data-ref.c (tree_fold_divides_p): Likewise.
9728         * tree-sra.c (build_ref_for_offset): Likewise.
9729         (build_user_friendly_ref_for_offset): Likewise.
9730         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9731         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9732         * tree-ssa-loop-niter.c (inverse): Likewise.
9733         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9734         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9735         * tree-switch-conversion.c (check_range): Likewise.
9736         (build_constructors): Likewise.
9737         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9738         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9739         (extract_range_from_assert): Likewise.
9740         (vrp_int_const_binop): Likewise.
9741         (extract_range_from_binary_expr): Likewise.
9742         (extract_range_from_unary_expr): Likewise.
9743         (check_array_ref): Likewise.
9744         (find_case_label_range): Likewise.
9745         (simplify_div_or_mod_using_ranges): Likewise.
9746         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9747         comparing case labels for merging.
9748
9749 2011-05-03  Mark Wielaard  <mjw@redhat.com>
9750
9751         * dwarf2out.c (debug_str_hash_forced): Removed.
9752         (gen_label_for_indirect_string): Removed.
9753         (get_debug_string_label): Removed.
9754         (AT_string_form): Generate label directly.
9755         (output_indirect_string): Test indirect_string_node for
9756         DW_FORM_strp instead of checking label and refcount.
9757         (prune_indirect_string): Removed.
9758         (prune_unused_types): Don't check debug_str_hash_forced or
9759         call prune_indirect_string.
9760
9761 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9762
9763         PR other/48093
9764         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9765
9766 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9767
9768         PR debug/47994
9769         PR debug/47919
9770         * combine.c (try_combine): Skip debug insns at m_split tests.
9771
9772 2011-04-26  Mark Wielaard  <mjw@redhat.com>
9773
9774         PR42288
9775         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9776         when info_section_emitted.
9777
9778 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
9779
9780         * config/mips/mips-opts.h: New.
9781         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9782         to mips-opts.h.
9783         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9784         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9785         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
9786         via opts pointer.
9787         * config/mips/mips.h (enum mips_code_readable_setting): Move to
9788         mips-opts.h.
9789         (mips_abi, mips_code_readable): Don't declare.
9790         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9791         (mabi=): Use Enum and Var.
9792         (mips_abi): New Enum and EnumValue entries.
9793         (mcode-readable=): Use Enum and Var.
9794         (mips_code_readable_setting): New Enum and EnumValue entries.
9795         (mr10k-cache-barrier=): Use Enum and Var.
9796         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9797
9798 2011-05-03  Jan Hubicka  <jh@suse.cz>
9799
9800         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9801         replace hash by pointer map.
9802         (cgraph_node_set_element_def, cgraph_node_set_element,
9803         const_cgraph_node_set_element, varpool_node_set_element_def,
9804         varpool_node_set_element, const_varpool_node_set_element): Remove.
9805         (free_cgraph_node_set, free_varpool_node_set): New function.
9806         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9807         * tree-emutls.c: Free varpool node set.
9808         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9809         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9810         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9811         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9812         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9813         Move here from ipa.c; implement using pointer_map
9814         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9815         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9816         debug_cgraph_node_set, varpool_node_set_new,
9817         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9818         dump_varpool_node_set, debug_varpool_node_set):
9819         Move to ipa-uitls.c.
9820         * passes.c (ipa_write_summaries): Update.
9821
9822 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9823
9824         From Mike Frysinger:
9825         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9826         bf542/bf544/bf547/bf548/bf549.
9827
9828 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
9829
9830         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9831
9832 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9833
9834         From Bernd Schmidt:
9835         * config/bfin/bfin.md (MOVCC): New mode_macro.
9836         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9837         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
9838         comments from generated assembly.
9839
9840 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9841
9842         From Bernd Schmidt
9843         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9844         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9845         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9846         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9847         * config/bfin/lib1funcs.asm (___muldi3): New function.
9848
9849 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9850
9851         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9852         build_function_type_list instead of build_function_type.
9853         Rearrange initialization of `args' to do so.
9854
9855 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9856
9857         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9858         instead of build_function_type.
9859
9860 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9861
9862         * config/rs6000/rs6000.c (spe_init_builtins): Call
9863         build_function_type_list instead of build_function_type.
9864         (paired_init_builtins, altivec_init_builtins): Likewise.
9865         (builtin_function_type): Likewise.
9866
9867 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9868
9869         * config/sh/sh.c (sh_media_init_builtins): Call
9870         build_function_type_list instead of build_function_type.
9871
9872 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9873
9874         * config/sparc/sparc.c (sparc_file_end): Call
9875         build_function_type_list instead of build_function_type.
9876
9877 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9878
9879         * config/alpha/alpha.c (alpha_init_builtins): Call
9880         build_function_type_list instead of build_function_type.
9881
9882 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9883
9884         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9885         build_function_type_list instead of build_function_type.
9886
9887 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9888
9889         * config/iq2000/i2000.c (iq2000_init_builtins): Call
9890         build_function_type_list instead of build_function_type.
9891         Delete `endlink' variable.
9892
9893 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9894
9895         * config/avr/avr.c (avr_init_builtins): Call
9896         build_function_type_list instead of build_function_type.
9897
9898 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9899
9900         * config/picochip/picochip.c (picochip_init_builtins): Call
9901         build_function_type_list instead of build_function_type.
9902         Delete `endlink' variable.
9903
9904 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
9905
9906         * config/bfin/bfin.c (bfin_init_builtins): Call
9907         build_function_type_list instead of build_function_type.
9908
9909 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9910
9911         From Bernd Schmidt
9912         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9913         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
9914
9915 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9916
9917         From Jie Zhang:
9918         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9919         libbffastfp overrides libgcc when -mfast-fp.
9920
9921 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9922
9923         Originally from Bernd Schmidt
9924         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9925         * config/bfin/bfin.c (override_options): Test it and error if
9926         TARGET_FDPIC.
9927
9928 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
9929
9930         Originally From Bernd Schmidt
9931         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9932         FD-PIC.
9933
9934 2011-05-03  Jeff Law  <law@redhat.com>
9935
9936         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9937         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9938         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
9939         than accessing AUX field directly.  Free the AUX field before
9940         clearing it.
9941         (thread_block, thread_through_loop_header): Likewise.
9942         (thread_single_edge, mark_threaded_blocks): Likewise.
9943         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
9944         (register_jump_thread): Do not attempt to thread to a NULL edge.
9945
9946 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
9947
9948         * function.c (init_function_start): Call decide_function_section.
9949         * varasm.c (decide_function_section): New function.
9950         (assemble_start_function): When not using
9951         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9952         or first_function_block_is_cold.
9953         * rtl.h (decide_function_section): Declare.
9954
9955 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
9956             Jakub Jelinek  <jakub@redhat.com>
9957
9958         PR target/48774
9959         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9960         only succeed if req_mode is the same as set_mode.
9961
9962 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
9963
9964         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9965         * genemit.c (gen_exp): Handle RETURN.
9966         * emit-rtl.c (verify_rtx_sharing): Likewise.
9967         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9968         * rtl.c (copy_rtx): RETURN is shared.
9969         * rtl.h (enum global_rtl_index): Add GR_RETURN.
9970         (ret_rtx): New.
9971         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9972         * config/s390/s390.c (s390_emit_epilogue): Likewise.
9973         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9974         * config/cris/cris.c (cris_expand_return): Likewise.
9975         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9976         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9977         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9978         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9979         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9980         Likewise.
9981         * config/v850/v850.c (expand_epilogue): Likewise.
9982         * config/bfin/bfin.c (bfin_expand_call): Likewise.
9983         * config/arm/arm.md (epilogue): Likewise.
9984         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9985         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9986         variable to ret_reg.
9987
9988 2011-05-03  Richard Guenther  <rguenther@suse.de>
9989
9990         PR lto/48846
9991         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9992         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9993         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9994
9995 2011-05-03  Richard Guenther  <rguenther@suse.de>
9996
9997         * c-decl.c (grokdeclarator): Instead of looking at
9998         TREE_OVERFLOW check if the constant fits in the index type.
9999
10000 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10001
10002         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
10003         (vec_store_lanes<mode><mode>): Likewise.
10004
10005 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10006
10007         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
10008         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
10009         convert_optab_index values.
10010         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
10011         * genopinit.c (optabs): Initialize the new optabs.
10012         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
10013         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
10014         (expand_STORE_LANES): New functions.
10015         * tree.h (build_array_type_nelts): Declare.
10016         * tree.c (build_array_type_nelts): New function.
10017         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
10018         (vect_model_load_cost): Likewise.
10019         (vect_store_lanes_supported, vect_load_lanes_supported)
10020         (vect_record_strided_load_vectors): Declare.
10021         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
10022         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
10023         (vect_transform_strided_load): Split out statement recording into...
10024         (vect_record_strided_load_vectors): ...this new function.
10025         * tree-vect-stmts.c (create_vector_array, read_vector_array)
10026         (write_vector_array, create_array_ref): New functions.
10027         (vect_model_store_cost): Add store_lanes_p argument.
10028         (vect_model_load_cost): Add load_lanes_p argument.
10029         (vectorizable_store): Try to use store-lanes functions for
10030         interleaved stores.
10031         (vectorizable_load): Likewise load-lanes and loads.
10032         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
10033         to vect_model_store_cost.
10034         (vect_build_slp_tree): Likewise vect_model_load_cost.
10035
10036 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10037
10038         * hooks.h (hook_bool_mode_uhwi_false): Declare.
10039         * hooks.c (hook_bool_mode_uhwi_false): New function.
10040         * target.def (array_mode_supported_p): New hook.
10041         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
10042         * doc/tm.texi: Regenerate.
10043         * stor-layout.c (mode_for_array): New function.
10044         (layout_type): Use it.
10045         * config/arm/arm.c (arm_array_mode_supported_p): New function.
10046         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
10047
10048 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
10049
10050         PR target/48723
10051         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
10052         for -fstack-check if the size to allocate is negative.
10053
10054 2011-05-02  Lawrence Crowl  <crowl@google.com>
10055
10056         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
10057         (timevar_cond_start): New for starting a timer only when it is not
10058         already running.
10059         (timevar_cond_stop): New for stopping a timer when it was not already
10060         running.
10061
10062         * timevar.c (timevar_stop): Enable start/stop timers to start again.
10063         (timevar_cond_start): New as above.
10064         (timevar_cond_stop): New as above.
10065
10066         * timevar.def: Add start/stop timers for compiler phases,
10067         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
10068         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
10069         and TV_PHASE_FINALIZE.
10070         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
10071         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
10072         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
10073         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
10074         Make unused TV_OVERLOAD into a start/stop timer.
10075
10076         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
10077         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
10078         to indicate that they are start/stop timers.
10079
10080         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
10081         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
10082         Move initialization to do_compile.
10083         (do_compile): Add initialization from above.
10084         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
10085
10086         * c-decl.c (c_write_global_declarations): Add start/stop of
10087         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
10088
10089         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
10090         or TV_PARSE_INLINE, as appropriate.
10091         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
10092         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
10093
10094 2011-05-02  Jason Merrill  <jason@redhat.com>
10095
10096         PR c++/40975
10097         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
10098
10099 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
10100
10101         PR c/35445
10102         * c-decl.c (finish_decl): Only create a composite if the types are
10103         compatible.
10104
10105 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
10106
10107         * config/fr30/fr30-protos.h (Mmode): Don't define.
10108         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
10109         definition where used.
10110         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
10111         define.  Expand definitions where used.
10112         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
10113         Expand definitions where used.
10114         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
10115         rx_function_arg, rx_function_arg_advance,
10116         rx_function_arg_boundary): Expand definitions of those macros.
10117         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
10118         definition where used.
10119
10120 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
10121
10122         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10123         reg<->xmm moves.
10124         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
10125         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
10126         with *movv2sf_internal_rex64_avx.
10127         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
10128         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
10129         Use %v prefix in insn mnemonic to handle TARGET_AVX.
10130         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
10131         "vex" in "prefix" attribute calculation.
10132         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
10133
10134 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
10135
10136         PR target/47951
10137         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
10138         inputs match the output.
10139
10140 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
10141
10142         PR target/47955
10143         * config/m68k/m68k.c (m68k_expand_prologue): Set
10144         current_function_static_stack_size.
10145
10146 2011-05-02   Jan Hubicka  <jh@suse.cz>
10147
10148         * lto-streamer.c (lto_streamer_cache_insert_1,
10149         lto_streamer_cache_lookup, lto_streamer_cache_create,
10150         lto_streamer_cache_delete): Use pointer map instead of hashtable.
10151         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
10152
10153 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
10154
10155         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
10156         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
10157         config/m68k/t-opts: New files.
10158         * config/m68k/m68k-tables.opt: New file (generated).
10159         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
10160         extra_options and m68k/t-opts to tmake_file.
10161         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
10162         (all_isas): Initialize using m68k-isas.def.
10163         (all_microarchs): Initialize using m68k-microarchs.def.
10164         (m68k_find_selection): Remove.
10165         (m68k_handle_option): Don't assert that global structures are in
10166         use.  Use error_at.  Access variables via opts pointer.  Don't
10167         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
10168         directly for -m68020-40 and -m68020-60.
10169         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
10170         m68k_tune_entry here.
10171         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
10172         to m68k-opts.h.
10173         (m68k_library_id_string): Remove declaration.
10174         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
10175         (m68k_library_id_string): New Variable.
10176         (march=, mcpu=, mtune=): Use Enum and Var.
10177
10178 2011-05-02  Richard Guenther  <rguenther@suse.de>
10179
10180         * varasm.c (output_constructor_regular_field): Compute zero-based
10181         index with double-ints.  Make sure to ICE instead of producing
10182         wrong code.
10183         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
10184         in asserts.  Properly use a signed type.
10185
10186 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
10187
10188         * config/i386/sse.md (V): New mode iterator.
10189         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
10190         TARGET_SSE2.
10191         (V_256): Rename from AVX256MODE.
10192         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
10193         condition to all users.
10194         (VF1): Ditto.
10195         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
10196         condition to all users.
10197         (VF_128): Make V4SF mode unconditional.
10198         (VF_256): Rename from AVX256MODEF2P.
10199         (VI4F_128): Rename from SSEMODE4S.
10200         (VI8F_128): Rename from SSEMODE2D.
10201         (VI4F_256): Rename from AVX256MODE8P.
10202         (VI8F_256): Rename from AVX256MODE4P.
10203         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
10204         (ssescalarmodesuffix): Remove SF and DF modes.
10205         (SSEMODE124): Remove.
10206         (SSEMODE1248): Ditto.
10207         (SSEMODEF2P): Ditto.
10208         (AVXMODEF2P): Ditto.
10209         (AVXMODEFDP): Ditto.
10210         (AVXMODEFSP): Ditto.
10211         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
10212         unconditional.
10213         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
10214         unconditional.
10215         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
10216         xop_pcmov_<mode>256.  Use V mode iterator.
10217
10218         Adjust RTX patterns globally for renamed mode attributes.
10219
10220 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10221
10222         * haifa-sched.c (sched_emit_insn): Emit insn before first
10223         non-scheduled insn.  Inform back-end about new insn.  Add
10224         new insn to scheduled_insns list.
10225
10226 2011-05-02  Richard Guenther  <rguenther@suse.de>
10227
10228         PR tree-optimization/48822
10229         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
10230         (process_scc): Indicate which iteration we start.
10231
10232 2011-05-02  Jan Hubicka  <jh@suse.cz>
10233
10234         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
10235         (lto_section_overrun): New.
10236         * lto-section-out.c (append_block): Rename to ...
10237         (lto_append_block): ... this one; export.
10238         (lto_output_1_stream): Move lto lto-streamer.h
10239         (lto_output_data_stream): Update.
10240         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
10241         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
10242         functions.
10243
10244 2011-05-02  Richard Guenther  <rguenther@suse.de>
10245
10246         * tree.c (tree_code_counts): New global array.
10247         (record_node_allocation_statistics): Count individual tree codes.
10248         (dump_tree_statistics): Dump individual code stats.
10249
10250 2011-05-01  Jan Hubicka  <jh@suse.cz>
10251
10252         * ipa-inline.c (caller_growth_limits): Fix thinko when
10253         looking for largest stack frame.
10254         * ipa-inline.h (dump_inline_summary): Declare.
10255         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
10256         on stack usage.
10257         (dump_inline_summary): Export.
10258         (debug_inline_summary): Declare as DEBUG_FUNCTION.
10259
10260 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
10261
10262         * reginfo.c (memory_move_cost): Change rclass argument type form
10263         'enum reg_class' to reg_class_t.
10264         * reload.h (memory_move_cost): Update prototype.
10265         * postreload.c reload_cse_simplify_set): Change type dclass var to
10266         reg_class_t.
10267         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
10268         Update prototype.
10269         (ira_allocate_and_set_costs): Change aclass argument type form
10270         'enum reg_class' to reg_class_t.
10271         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
10272         Change aclass argument type to reg_class_t.
10273         (update_conflict_hard_reg_costs): Change type aclass and pref vars
10274         to reg_class_t.
10275         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
10276         memory_move_cost call.
10277
10278         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
10279         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
10280         Change type tmp var to reg_class_t.
10281
10282 2011-04-30  Jan Hubicka  <jh@suse.cz>
10283
10284         * ipa-inline.c (can_inline_edge_p): Disregard limits when
10285         inlining into function with flatten attribute.
10286         (want_inline_small_function_p): Be more realistic about inlining
10287         cold calls where callee size grows.
10288
10289 2011-04-30  Jan Hubicka  <jh@suse.cz>
10290
10291         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
10292         flags.
10293
10294 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
10295
10296         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10297         PRINT_OPERAND_PUNCT_VALID_P): Remove.
10298         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
10299         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
10300         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10301         (print_operand): Rename to...
10302         (sparc_print_operand): ...this. Make static. Adjust
10303         sparc_print_operand function call.
10304         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
10305         functions.
10306
10307 2011-04-30  Jan Hubicka  <jh@suse.cz>
10308
10309         PR middle-end/48752
10310         * ipa-inline.c (early_inliner): Disable when doing late
10311         addition of function.
10312
10313 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
10314
10315         * dwarf2out.c (get_address_mode): New inline.
10316         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
10317         if not dwarf_strict emit
10318         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
10319         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
10320         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
10321         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
10322         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
10323         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
10324         mem_loc_descriptor callers.
10325         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10326         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
10327         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
10328         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
10329         (base_types): New variable.
10330         (get_base_type_offset, calc_base_type_die_sizes,
10331         base_type_for_mode, mark_base_types, base_type_cmp,
10332         move_marked_base_types): New functions.
10333         (calc_die_sizes): Assert that die_offset is 0 or equal to
10334         next_die_offset.
10335         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
10336         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
10337         callers.  If not dwarf_strict, call mem_loc_descriptor even for
10338         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
10339         (gen_subprogram_die): Don't give up on call site parameters
10340         with non-integral or large integral modes.  Adjust
10341         mem_loc_descriptor callers.
10342         (prune_unused_types): Call prune_unused_types_mark on base_types
10343         vector entries.
10344         (resolve_addr): Call mark_base_types.
10345         (dwarf2out_finish): Call move_marked_base_types.
10346
10347         PR tree-optimization/48809
10348         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
10349         type.
10350         (gen_inbound_check): Don't compute index_expr - range_min in utype
10351         again, instead reuse SSA_NAME initialized in build_arrays.
10352         Remove two useless gsi_for_stmt calls.
10353
10354 2011-04-29  Jeff Law  <law@redhat.com>
10355
10356         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
10357
10358 2011-04-29  Martin Jambor  <mjambor@suse.cz>
10359
10360         * cgraph.h (cgraph_postorder): Remove declaration.
10361         * ipa-utils.h (ipa_free_postorder_info): Declare.
10362         (ipa_reverse_postorder): Likewise.
10363         * cgraphunit.c: Include ipa-utils.h.
10364         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
10365         * ipa-inline.c: Include ipa-utils.h.
10366         (ipa_inline): Update call to ipa_reverse_postorder.
10367         * ipa-pure-const.c (propagate_pure_const): Update call to
10368         ipa_reduced_postorder and ipa_print_order.  Call
10369         ipa_free_postorder_info to clean up.
10370         (propagate_nothrow): Likewise.
10371         * ipa-reference.c (propagate): Removed a useless call to
10372         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
10373         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
10374         * ipa.c: Include ipa-utils.h.
10375         (ipa_profile): Update call to ipa_reverse_postorder.
10376         (cgraph_postorder): Moved to...
10377         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
10378         (ipa_utils_print_order): Renamed to ipa_print_order.
10379         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
10380         comments.
10381         (ipa_free_postorder_info): New function.
10382         * passes.c: Include ipa-utils.h.
10383         (do_per_function_toporder): Update call to ipa_reverse_postorder.
10384         (ipa_write_summaries): Likewise.
10385         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
10386         (cgraphunit.o): Likewise.
10387         (ipa.o): Likewise.
10388         (ipa-inline.o): Likewise.
10389
10390 2011-04-29  Jan Hubicka  <jh@suse.cz>
10391
10392         * gcc.dg/tree-ssa/inline-10.c: New testcase.
10393         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
10394         * ipa-inline.h (clause_t): Turn into unsigned int.
10395         * ipa-inline-analysis.c (add_clause): Do more simplification.
10396         (and_predicates): Shortcut more cases.
10397         (predicates_equal_p): Move forward; check that clauses are properly
10398         ordered.
10399         (or_predicates): Shortcut more cases.
10400         (edge_execution_predicate): Rewrite as...
10401         (set_cond_stmt_execution_predicate): ... this function; handle
10402         __builtin_constant_p.
10403         (set_switch_stmt_execution_predicate): New .
10404         (compute_bb_predicates): New.
10405         (will_be_nonconstant_predicate): Update TODO.
10406         (estimate_function_body_sizes): Use compute_bb_predicates
10407         and free them later, always try to estimate if stmt is constant.
10408         (estimate_time_after_inlining, estimate_size_after_inlining):
10409         Gracefully handle optimized out edges.
10410         (read_predicate): Fix off by one error.
10411
10412 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10413
10414         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10415
10416 2011-04-27  Xinliang David Li  <davidxl@google.com>
10417
10418         * tree-profile.c (init_ic_make_global_vars): Set
10419         tls attribute on ic vars.
10420         * coverage.c (coverage_end_function): Initialize
10421         function_list with zero.
10422
10423 2011-04-29  Richard Guenther  <rguenther@suse.de>
10424
10425         * builtins.c (fold_builtin_classify_type): Use integer_type_node
10426         for the type of the result.
10427         (fold_builtin_isascii): Likewise.
10428         (fold_builtin_toascii): Use integer_type_node where appropriate.
10429         (fold_builtin_logb): Likewise.
10430         (fold_builtin_frexp): Likewise.
10431         (fold_builtin_strstr): Likewise.
10432         (fold_builtin_strpbrk): Likewise.
10433         (fold_builtin_fputs): Likewise.
10434         (fold_builtin_sprintf): Likewise.
10435         (fold_builtin_snprintf): Likewise.
10436         (fold_builtin_printf): Likewise.
10437         (do_mpfr_remquo): Use a proper type for the assigned constant.
10438         (do_mpfr_lgamma_r): Likewise.
10439         * dwarf2out.c (resolve_one_addr): Use size_int.
10440         * except.c (init_eh): Likewise.
10441         (assign_filter_values): Use integer_type_node for filter values.
10442         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10443         indices.
10444         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10445         for EH region numbers.
10446         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10447         for the shift amount.
10448
10449 2011-04-29  Richard Guenther  <rguenther@suse.de>
10450
10451         * expr.h (expand_shift): Rename to ...
10452         (expand_variable_shift): ... this.
10453         (expand_shift): Take a constant shift amount.
10454         * expmed.c (expand_shift): Rename to ...
10455         (expand_variable_shift): ... this.
10456         (expand_shift): New wrapper around expand_variable_shift.
10457         * expr.c (convert_move, emit_group_load_1, emit_group_store,
10458         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10459         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10460         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10461         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10462         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10463         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10464         emit_store_flag_1, emit_store_flag): Likewise.
10465         * builtins.c (expand_builtin_signbit): Likewise.
10466         * calls.c (load_register_parameters): Likewise.
10467         * function.c (assign_parm_setup_block): Likewise.
10468         * lower-subreg.c (resolve_shift_zext): Likewise.
10469         * optabs.c (widen_bswap, expand_abs_nojump,
10470         expand_one_cmpl_abs_nojump, expand_float): Likewise.
10471         * spu/spu.c (spu_expand_extv): Likewise.
10472         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10473
10474 2011-04-29  Richard Guenther  <rguenther@suse.de>
10475
10476         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10477         for the remapped region number.
10478         * predict.c (build_predict_expr): Use integer_type_node for the
10479         predict kind.
10480         * fold-const.c (fold_binary_loc): Use integer_type_node for
10481         the shift amount.  Use a proper type for the PLUS_EXPR operand.
10482
10483 2011-04-29  Michael Matz  <matz@suse.de>
10484
10485         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10486         other trees that just builtins.
10487         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10488
10489 2011-04-29  Richard Guenther  <rguenther@suse.de>
10490
10491         * tree-nested.c (get_trampoline_type): Use size_int.
10492         (get_nl_goto_field): Likewise.
10493         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10494         for all indexes.
10495         (lower_eh_constructs_2): Likewise.
10496         (lower_resx): Likewise.
10497         (lower_eh_dispatch): Likewise.
10498         * tree-mudflap.c (mf_build_string): Use size_int.
10499         (mudflap_register_call): Use integer_type_node for the flag.
10500         (mudflap_enqueue_constant): Use size_int.
10501         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10502         instead of rebuilding it.
10503
10504 2011-04-29  Richard Guenther  <rguenther@suse.de>
10505
10506         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10507         Handle OBJ_TYPE_REF.
10508         (find_func_aliases_for_call): Use it more consistently.
10509
10510 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
10511
10512         * haifa-sched.c (last_nondebug_scheduled_insn): New.
10513         (rank_for_schedule): Use it.
10514         (schedule_block): Set it.
10515
10516 2011-04-28  David Li  <davidxl@google.com>
10517
10518         * tree.c (crc32_string): Use crc32_byte.
10519         (crc32_byte): New function.
10520         * tree.h (crc32_byte): New function.
10521         * gcov.c (read_graph_file): Handle new cfg_cksum.
10522         (read_count_file): Ditto.
10523         * profile.c (instrument_values): Ditto.
10524         (get_exec_counts): Ditto.
10525         (read_profile_edge_counts): Ditto.
10526         (compute_branch_probabilities): Ditto.
10527         (compute_value_histograms): Ditto.
10528         (branch_prob): Ditto.
10529         (end_branch_prob): Ditto.
10530         * coverage.c (read_counts_file): Ditto.
10531         (get_coverage_counts): Ditto.
10532         (tree_coverage_counter_addr): Ditto.
10533         (coverage_checksum_string): Ditto.
10534         (coverage_begin_output): Ditto.
10535         (coverage_end_function): Ditto.
10536         (build_fn_info_type): Ditto.
10537         (build_fn_info_value): Ditto.
10538         * libgcov.c (gcov_exit): Ditto.
10539         * gcov-dump.c (tag_function): Ditto.
10540         (compute_checksum): Remove.
10541
10542 2011-04-29  Alan Modra  <amodra@gmail.com>
10543
10544         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10545         unspec plus offset.  Tidy macho code.
10546
10547 2011-04-29  Martin Jambor  <mjambor@suse.cz>
10548
10549         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10550         node instead of a decl.  Update all callers.
10551         * cgraph.h: Update declaration.
10552
10553 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
10554
10555         PR tree-optimization/48765
10556         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10557         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10558         to indicate if loop aware SLP is being used.  Scan the statements
10559         and update the vectorization factor according to the type of
10560         vectorization before statement analysis.
10561         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10562         pass it to vect_analyze_loop_operations.
10563         (vectorizable_reduction): Set number of copies to 1 in case of pure
10564         SLP statement.
10565         * tree-vect-stmts.c (vectorizable_conversion,
10566         vectorizable_assignment, vectorizable_shift,
10567         vectorizable_operation, vectorizable_type_demotion,
10568         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10569         Likewise.
10570         (vectorizable_condition): Move the check that it is not SLP
10571         vectorization before the number of copies check.
10572         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10573         to vectorize the loop using SLP.
10574
10575 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
10576
10577         PR middle-end/48597
10578         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10579         inline asm.
10580
10581 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
10582
10583         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10584         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10585         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10586         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10587         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10588         linux*.h headers.
10589         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10590         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10591         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10592         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10593         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10594         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10595         REG_NAME.
10596         * config/i386/linux.h (REG_NAME): Don't define.
10597         * config/i386/linux64.h (REG_NAME): Don't define.
10598         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10599         Undefine before defining.
10600
10601 2011-04-28  Jan Hubicka  <jh@suse.cz>
10602
10603         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10604         nonconstant_names array.
10605         (estimate_function_body_sizes): Build nonconstant_names array; handle
10606         BUILT_IN_CONSTANT_P.
10607
10608 2011-04-28  Richard Guenther  <rguenther@suse.de>
10609
10610         PR bootstrap/48804
10611         Revert
10612         2011-04-28  Richard Guenther  <rguenther@suse.de>
10613
10614         * tree-ssa-structalias.c (solve_constraints): Build succ graph
10615         as late as possible.
10616
10617 2011-04-28  Richard Guenther  <rguenther@suse.de>
10618
10619         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10620         (debug_constraint): Do it here.
10621         (dump_constraints): And here.
10622         (rewrite_constraints): And here.
10623         (dump_constraint_edge): Remove.
10624         (dump_constraint_graph): Rewrite to produce DOT output.
10625         (solve_constraints): Build succ graph as late as possible.
10626         Dump constraint graphs before and after solving.
10627
10628 2011-04-28  Richard Guenther  <rguenther@suse.de>
10629
10630         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10631         New function split out from ...
10632         (find_func_aliases): ... here.  Call it.
10633         (find_func_aliases_for_call): Likewise.
10634
10635 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10636
10637         * internal-fn.h (internal_fn_name_array): Declare.
10638         (internal_fn_flags_array): Likewise.
10639
10640 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10641
10642         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
10643         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10644         Move from sse.md.
10645         (ssemodefsuffix): Remove.
10646         (ssevecmodesuffix): New mode attribute.
10647         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10648         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10649         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10650         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10651         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10652         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10653         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10654         ssemodesuffix mode attribute.
10655         (float splitters): Use ssevecmodesuffix mode attribute.
10656         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10657         (sseinsmode): Rename from avxvecmode.
10658         (avxsizesuffix): Rename from avxmodesuffix.
10659         (sseintvecmode): Rename from avxpermvecmode.
10660         (ssedoublevecmode): Rename from ssedoublesizemode.
10661         (ssehalfvecmode): Rename from avxhalfvecmode.
10662         (ssescalarmode): Rename from avxscalarmode.
10663         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10664         templates for ssemodesuffix mode attribute.
10665         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10666         mode attribute.
10667
10668         Adjust RTX patterns globally for renamed mode attributes.
10669
10670 2011-04-27  Jan Hubcika  <jh@suse.cz>
10671
10672         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10673         * ipa-inline-analysis.c: Include alloc-pool.h.
10674         (edge_predicate_pool): New.
10675         (trye_predicate_p): New function
10676         (false_predicate_p): New function.
10677         (add_clause): Sanity check that false clauses are "optimized";
10678         never add clauses to predicate that is already known to be false.
10679         (and_predicate): Use flase_predicate_p.
10680         (evaulate_predicate): Rename to ...
10681         (evaluate_predicate): ... this one; update all callers; assert
10682         that false is not listed among possible truths.
10683         (dump_predicate): Use true_predicate_p.
10684         (account_size_time): Use false_predicate_p.
10685         (evaulate_conditions_for_edge): Rename to ...
10686         (evaluate_conditions_for_edge) ... this one.
10687         (edge_set_predicate): New function.
10688         (inline_edge_duplication_hook): Duplicate edge predicates.
10689         (inline_edge_removal_hook): Free edge predicates.
10690         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10691         (dump_inline_summary): Update.
10692         (estimate_function_body_sizes): Set edge predicates.
10693         (estimate_calls_size_and_time): Handle predicates.
10694         (estimate_callee_size_and_time): Update.
10695         (remap_predicate): Add toplev_predicate; update comment.
10696         (remap_edge_predicates): New function.
10697         (inline_merge_summary): Compute toplev predicate; update.
10698         (read_predicate): New function.
10699         (read_inline_edge_summary): Use it.
10700         (inline_read_section): Likewise.
10701         (write_predicate): New function.
10702         (write_inline_edge_summary): Use it.
10703         (inline_write_summary): Likewise.
10704         (inline_free_summary): Free alloc pool and edge summary vec.
10705
10706 2011-04-27  Richard Guenther  <rguenther@suse.de>
10707
10708         * tree-ssa-structalias.c (changed_count): Remove.
10709         (changed): Use a bitmap.
10710         (unify_nodes): Adjust.
10711         (do_sd_constraint): Likewise.
10712         (do_ds_constraint): Likewise.
10713         (do_complex_constraint): Likewise.
10714         (solve_graph): Likewise.
10715
10716 2011-04-27  Jan Hubicka  <jh@suse.cz>
10717
10718         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10719
10720 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10721
10722         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10723         (avx_vperm2f128_*_operand): Ditto.
10724         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10725         Use avx_vpermilp_parallel in insn condition.
10726         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10727         Use avx_vperm2f128_parallel in insn condition.
10728
10729 2011-04-27  Richard Guenther  <rguenther@suse.de>
10730
10731         * Makefile.in (tree-ssa-structalias.o): Remove
10732         gt-tree-ssa-structalias.h dependency.
10733         (GTFILES): Remove tree-ssa-structalias.c.
10734         * tree.c (allocate_decl_uid): New function.
10735         (make_node_stat): Use it.
10736         (copy_node_stat): Likewise.
10737         * tree.h (allocate_decl_uid): Declare.
10738         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10739         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10740         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10741         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10742         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10743         (struct heapvar_map): Likewise.
10744         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10745         heapvar_insert): Likewise.
10746         (make_heapvar_for): Rename to ...
10747         (make_heapvar): ... this.  Simplify.
10748         (fake_var_decl_obstack): New global var.
10749         (build_fake_var_decl): New function.
10750         (make_constraint_from_heapvar): Adjust.
10751         (handle_lhs_call): Likewise.
10752         (create_function_info_for): Likewise.
10753         (intra_create_variable_infos): Likewise.
10754         (init_alias_vars): Allocate fake_var_decl_obstack.
10755         (init_alias_heapvars, delete_alias_heapvars): Remove.
10756         (compute_points_to_sets): Do not call init_alias_heapvars.
10757         (ipa_pta_execute): Likewise.
10758         (delete_points_to_sets): Free fake_var_decl_obstack.
10759
10760 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10761
10762         * config/spu/divmovti4.c (union qword_UTItype): New data type.
10763         (si_from_UTItype, si_to_UTItype): New functions.
10764         (__udivmodti4): Use them to implement type-punning.
10765         * config/spu/multi3.c (union qword_TItype): New data type.
10766         (si_from_TItype, si_to_TItype): New functions.
10767         (__multi3): Use them to implement type-punning.
10768
10769 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10770
10771         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10772
10773 2011-04-27  Jan Hubicka  <jh@suse.cz>
10774
10775         * ipa-prop.c (function_insertion_hook_holder): New holder.
10776         (ipa_add_new_function): New function.
10777         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10778         Register/deregister holder.
10779
10780 2011-04-27  Richard Guenther  <rguenther@suse.de>
10781
10782         PR tree-optimization/48772
10783         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10784
10785 2011-04-27  Richard Guenther  <rguenther@suse.de>
10786
10787         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10788         TARGET_MEM_REF handling.
10789
10790 2011-04-27  Nick Clifton  <nickc@redhat.com>
10791
10792         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10793         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10794         (REG_CLASS_NAMES): Likewise.
10795         (REG_CLASS_CONTENTS): Likewise.
10796         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
10797         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
10798         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
10799         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
10800         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
10801         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10802         duplicate register classes.
10803         (frv_class_likely_spilled_p): Likewise.
10804         (frv_register_move_cost): Likewise.
10805
10806         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10807         end of the regno_reg_class array.
10808
10809 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
10810
10811         PR c/48742
10812         * c-typeck.c (build_binary_op): Don't wrap arguments if
10813         int_operands is true.
10814
10815 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
10816
10817         PR target/48767
10818         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10819         targetm.calls.must_pass_in_stack for void type.
10820
10821 2011-04-26  Jan Hubicka  <jh@suse.cz>
10822
10823         * cgraphbuild.c (build_cgraph_edges): Update call
10824         of cgraph_create_edge and cgraph_create_indirect_edge.
10825         * cgraph.c (cgraph_create_edge_including_clones,
10826         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10827         cgraph_update_edges_for_call_stmt_node): Do not take nest
10828         argument; do not initialize call_stmt_size/time.
10829         (dump_cgraph_node): Do not dump nest.
10830         (cgraph_clone_edge): Do not take loop_nest argument;
10831         do not propagate it; do not clone call_stmt_size/time.
10832         (cgraph_clone_node): Likewise.
10833         (cgraph_create_virtual_clone): Update.
10834         * cgraph.h (struct cgraph_edge): Remove
10835         call_stmt_size/call_stmt_time/loop_nest.
10836         (cgraph_create_edge, cgraph_create_indirect_edge,
10837         cgraph_create_edge_including_clones, cgraph_clone_node): Update
10838         prototype.
10839         * tree-emutls.c (gen_emutls_addr): Update.
10840         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10841         loop_nest; handle indirect calls, too.
10842         (clone_inlined_nodes): Do not care about updating inline summaries.
10843         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10844         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10845         stream call_stmt_size/call_stmt_time/loop_nest.
10846         * ipa-inline.c (edge_badness): Update.
10847         (ipa_inline): dump summaries after inlining.
10848         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10849         New.
10850         (inline_edge_summary): New function.
10851         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10852         (inline_edge_removal_hook): Handle edge summaries.
10853         (inline_edge_duplication_hook): New hook.
10854         (inline_summary_alloc): Alloc hooks.
10855         (initialize_growth_caches): Do not register removal hooks.
10856         (free_growth_caches); Do not free removal hook.
10857         (dump_inline_edge_summary): New function.
10858         (dump_inline_summary): Use it.
10859         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10860         (inline_update_callee_summaries): New function.
10861         (inline_merge_summary): Use it.
10862         (do_estimate_edge_time, do_estimate_edge_growth): Update.
10863         (read_inline_edge_summary): New function.
10864         (inline_read_section): Use it.
10865         (write_inline_edge_summary): New function.
10866         (inline_write_summary): Use it.
10867         (inline_free_summary): Free edge new holders.
10868         * tree-inline.c (copy_bb): Update.
10869
10870 2011-04-26  Jason Merrill  <jason@redhat.com>
10871
10872         * tree-eh.c (lower_try_finally_switch): Create the label along with
10873         the CASE_LABEL_EXPR.
10874
10875 2011-04-26  David S. Miller  <davem@davemloft.net>
10876             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10877
10878         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10879         * configure: Regenerate.
10880
10881 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
10882
10883         PR target/48258
10884         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10885         reduction.
10886         (VEC_reduc): New code iterator and splitters for vector reduction.
10887         (VEC_reduc_name): Ditto.
10888         (VEC_reduc_rtx): Ditto.
10889         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10890         (reduc_<VEC_reduc_name>_v4sf): Ditto.
10891
10892         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10893         support for extracting SF on VSX.
10894
10895         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10896         generating xscvspdp.
10897         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10898         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10899         double add, minimum, maximum vector reduction.
10900         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10901         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10902         optimize double vector reduction.
10903         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10904
10905 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
10906
10907         * config/fr30/fr30.h (inhibit_libc): Don't define.
10908         * config/m32r/m32r-protos.h: Correct comment.
10909         * config/v850/v850.h (GHS_default_section_names,
10910         GHS_current_section_names): Use tree, not union tree_node *.
10911
10912 2011-04-26  Xinliang David Li  <davidxl@google.com>
10913
10914         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
10915         * c-family/c-opts.c (c_common_handle_option): Set
10916         warn_maybe_uninitialized.
10917         * opts.c (common_handle_option): Ditto.
10918         * common.opt:  New option.
10919         * tree-ssa.c (warn_uninit): Add one more parameter.
10920         (warn_uninitialized_var): Pass warning code.
10921         * tree-flow.h: Interface change.
10922
10923 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10924
10925         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
10926         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10927         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10928
10929 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10930
10931         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10932         * config/mips/mips.opt (mmips-tfile): Remove.
10933
10934         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10935         mips-tdump reference to ...
10936         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
10937         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10938         reference by Tru64 UNIX.
10939
10940 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
10941
10942         PR debug/48768
10943         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10944         is error_mark_node, set value to NULL.
10945
10946         PR tree-optimization/48734
10947         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10948         if return value from maybe_fold_*_comparsions isn't something
10949         the code is prepared to handle.
10950
10951 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
10952
10953         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10954         mode check.
10955         (ext_QIreg_nomode_operands): Remove.
10956         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10957         (*andsi_1): Ditto.
10958         (*andhi_1): Ditto.
10959
10960 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
10961
10962         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10963
10964 2011-04-26  Richard Guenther  <rguenther@suse.de>
10965
10966         * c-typeck.c (build_unary_op): Do not expand array-refs via
10967         pointer arithmetic.  Only adjust qualifiers for function types.
10968
10969 2011-04-26  Richard Guenther  <rguenther@suse.de>
10970
10971         PR middle-end/48694
10972         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10973         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
10974         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
10975         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
10976
10977 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
10978
10979         * doc/extend.texi: Document __underlying_type.
10980
10981 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
10982
10983         * config/rs6000/titan.md (automata_option "progress"): Remove.
10984
10985 2011-04-25  Jeff Law  <law@redhat.com>
10986
10987         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10988
10989 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10990
10991         * system.h (ENUM_BITFIELD): Remove.
10992
10993 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
10994             Eric Botcazou  <ebotcazou@adacore.com>
10995
10996         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10997         for STORE_FLAG_VALUE==-1 case.
10998
10999 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
11000
11001         PR target/43804
11002         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11003         LEGITIMATE_PIC_OPERAND_P.
11004
11005 2011-04-24  Jan Hubicka  <jh@suse.cz>
11006
11007         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
11008         WPA hack.
11009         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
11010         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
11011         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
11012         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
11013         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
11014         Sanity check predicate length.
11015         (remap_predicate): Likewise; sanity check jump functions.
11016         (inline_read_section, inline_write_summary): Sanity check
11017         predicate length.
11018
11019 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11020
11021         PR other/48748
11022         * doc/extend.texi (Type Traits): Document __is_standard_layout,
11023         __is_literal_type, and __is_trivial; update throughout about
11024         possibly cv-qualified void types.
11025
11026 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11027
11028         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
11029         testsuite and make it version agnostic.
11030
11031 2011-04-22  Jan Hubicka  <jh@suse.cz>
11032
11033         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
11034
11035 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
11036
11037         PR c/48685
11038         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
11039         to VOID_TYPE even around MODIFY_EXPR.
11040
11041 2011-04-22  Mike Stump  <mikestump@comcast.net>
11042
11043         * gensupport.c (read_md_rtx): Fix typo in comment.
11044         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
11045         comment.
11046
11047 2011-04-22  Jan Hubicka  <jh@suse.cz>
11048
11049         * gengtype.c (open_base_files): Add ipa-inline.h include.
11050         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
11051         ipa-prop.c; update all uses.
11052         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
11053         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
11054         merge summary of inlined function into former caller.
11055         * ipa-inline.c (max_benefit): Remove.
11056         (edge_badness): Compensate for removal of benefits.
11057         (update_caller_keys): Use
11058         reset_node_growth_cache/reset_edge_growth_cache.
11059         (update_callee_keys): Likewise.
11060         (update_all_callee_keys): Likewise.
11061         (inline_small_functions): Do not collect max_benefit; do not reset
11062         estimated_growth; call free_growth_caches and initialize_growth_caches.
11063         * ipa-inline.h (struct condition, type clause_t, struct predicate,
11064         struct size_time_entry): New structures.
11065         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
11066         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
11067         and estimated_growth.
11068         (edge_growth_cache_entry): New structure.
11069         (node_growth_cache, edge_growth_cache): New global vars.
11070         (estimate_growth): Turn into inline.
11071         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
11072         initialize_growth_caches, free_growth_caches): Declare.
11073         (estimate_edge_growth): Rewrite.
11074         (estimate_edge_time): Implement as inline cache lookup.
11075         (reset_node_growth_cache, reset_edge_growth_cache): New inline
11076         functions.
11077         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
11078         (NUM_CONDITIONS): New constant.
11079         (predicate_conditions): New enum.
11080         (IS_NOT_CONSTANT): New constant.
11081         (edge_removal_hook_holder): New var.
11082         (node_growth_cache, edge_growth_cache): New global vars.
11083         (true_predicate, single_cond_predicate, false_predicate,
11084         not_inlined_predicate, add_condition, add_clause, and_predicates,
11085         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
11086         dump_clause, dump_predicate, account_size_time,
11087         evaulate_conditions_for_edge): New functions.
11088         (inline_summary_alloc): Move to heap.
11089         (inline_node_removal_hook): Clear condition and entry vectors.
11090         (inline_edge_removal_hook): New function.
11091         (initialize_growth_caches, free_growth_caches): New function.
11092         (dump_inline_summary): Update.
11093         (edge_execution_predicate): New function.
11094         (will_be_nonconstant_predicate): New function.
11095         (estimate_function_body_sizes): Compute BB and constantness predicates.
11096         (compute_inline_parameters): Do not clear estimated_growth.
11097         (estimate_edge_size_and_time): New function.
11098         (estimate_calls_size_and_time): New function.
11099         (estimate_callee_size_and_time): New function.
11100         (remap_predicate): New function.
11101         (inline_merge_summary): New function.
11102         (do_estimate_edge_time): New function based on...
11103         (estimate_edge_time): ... this one.
11104         (do_estimate_edge_growth): New function.
11105         (do_estimate_growth): New function based on....
11106         (estimate_growth): ... this one.
11107         (inline_analyze_function): Analyze after deciding on jump functions.
11108         (inline_read_section): New function.
11109         (inline_read_summary): Use it.
11110         (inline_write_summary): Write all the new data.
11111         * ipa-prop.c (ipa_get_param_decl_index): Export.
11112         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
11113         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
11114         Declare.
11115         (ipa_get_lattice): Move here from ipa-cp.c
11116         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
11117         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
11118         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
11119         cgraph_edge_inlinable_p): Remove.
11120         * cgraphunit.c: Include ipainline.h
11121         (cgraph_process_new_functions): Update call of
11122         compute_inline_parameters.
11123
11124 2011-04-22  Richard Guenther  <rguenther@suse.de>
11125
11126         * tree.c (build_int_cst): Properly create canonicalized integer
11127         constants.
11128         (build_int_cst_type): Remove scary comments.
11129
11130 2011-04-22  Xinliang David Li  <davidxl@google.com>
11131
11132         * toplev.c (process_options): Enable -Werror=coverage-mismatch
11133         by default when -Wno-error is not specified.
11134         * opts-global.c (decode_options): Remove call to
11135         control_warning_options.
11136
11137 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
11138
11139         PR tree-optimization/48717
11140         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
11141         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
11142
11143 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
11144
11145         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
11146         definition where used.
11147
11148 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
11149
11150         PR c/48716
11151         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
11152         TREE_STATIC variables declared inside of some OpenMP construct.
11153
11154 2011-04-22  Martin Jambor  <mjambor@suse.cz>
11155
11156         PR middle-end/48585
11157         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
11158
11159 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
11160
11161         PR c/36750
11162         * c-typeck.c (pop_init_level): Do not warn about initializing
11163         with ` = {0}'.
11164
11165 2011-04-22  Alan Modra  <amodra@gmail.com>
11166
11167         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
11168         when returning call_cookie.
11169         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
11170         pointers, to functions with no more vector args than the current
11171         function, and some non-local calls for ABI_V4.
11172         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
11173         sibcall_nonlocal_aix64): Combine to ..
11174         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
11175         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
11176         (sibcall_value_nonlocal_aix<mode>): ..likewise.
11177         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
11178         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
11179         operand.
11180         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
11181         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
11182         sibcall_value_symbolic_64): Delete.
11183
11184 2011-04-21  Xinliang David Li  <davidxl@google.com>
11185
11186         * cgraph.h: Remove pid.
11187         * cgraph.c: Remove pid.
11188         * value-prof.c (init_node_map): New function.
11189         (del_node_map): New function.
11190         (find_func_by_funcdef_no): New function.
11191         (gimple_ic_transform): Call new function.
11192         * cgraphunit.c (cgraph_finalize_function): Remove pid.
11193         * function.c (get_last_funcdef_no): New function.
11194         * function.h (get_last_funcdef_no): New function.
11195         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
11196         to libgcov function.
11197         (tree-profiling): Call node map init and delete function.
11198
11199 2011-04-21  Ian Lance Taylor  <iant@google.com>
11200
11201         * godump.c (go_format_type): Use exported Go name for anonymous
11202         field name.
11203
11204 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11205
11206         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
11207         Call builtin_function_type_list instead of builtin_function_type.
11208         (UNARY, BINARY, TRINARY, QUAD): Likewise.
11209
11210 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11211
11212         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
11213         build_function_type_list instead of build_function_type.
11214         Delete variable `endlink'.
11215
11216 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11217
11218         * config/s390/s390.c (s390_init_builtins): Call
11219         build_function_type_list instead of build_function_type.
11220
11221 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11222
11223         * config/ia64/ia64.c (ia64_init_builtins): Call
11224         build_function_type_list instead of builtin_function_type.
11225
11226 2011-04-21  Easwaran Raman  <eraman@google.com>
11227
11228         * cfgexpand.c (stack_var): Remove OFFSET...
11229         (add_stack_var): ...and its reference here...
11230         (expand_stack_vars): ...and here.
11231         (stack_var_cmp): Sort by descending order of size.
11232         (partition_stack_vars): Change heuristic.
11233         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
11234         (dump_stack_var_partition): Add newline after each partition.
11235
11236 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
11237             Jeff Law  <law@redhat.com>
11238
11239         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
11240         * gengtype.c (matching_file_name_substitute): Likewise.
11241
11242 2011-04-21  Richard Guenther  <rguenther@suse.de>
11243
11244         PR lto/48703
11245         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
11246
11247 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
11248
11249         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
11250
11251 2011-04-21  Richard Guenther  <rguenther@suse.de>
11252
11253         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
11254         file name.
11255
11256 2011-04-21  Richard Guenther  <rguenther@suse.de>
11257
11258         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11259         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
11260         Use DECL_P, not SSA_VAR_P.
11261         (ptr_derefs_may_alias_p): Likewise.
11262         (ptr_deref_may_alias_ref_p_1): Likewise.
11263         (decl_refs_may_alias_p): Likewise.
11264         (refs_may_alias_p_1): Likewise.
11265         (ref_maybe_used_by_call_p_1): Likewise.
11266         (call_may_clobber_ref_p_1): Likewise.
11267         (indirect_ref_may_alias_decl_p): Assume indirect refrences
11268         are either MEM_REF or TARGET_MEM_REF.
11269         (indirect_refs_may_alias_p): Likewise.
11270         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
11271         for MEM_EXPR of indirect calls.
11272
11273 2011-04-21  Tristan Gingold  <gingold@adacore.com>
11274
11275         * vmsdbgout.c (write_srccorr): Compute file length from the string.
11276         (dst_file_info_struct): Remove flen field.
11277         (lookup_filename): Remove code that set flen field.
11278
11279 2011-04-21  Tristan Gingold  <gingold@adacore.com>
11280
11281         * config/ia64/ia64.c (ia64_start_function): Add a guard.
11282
11283 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
11284
11285         PR target/48708
11286         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
11287         vec_extract and vec_concat for non-SSE4_1 targets.
11288
11289 2011-04-21  Richard Guenther  <rguenther@suse.de>
11290
11291         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
11292         return statements.
11293
11294 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
11295
11296         * config/i386/cygming.h (union tree_node, TREE): Don't define or
11297         undefine.
11298         (FILE): Don't undefine.
11299
11300 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
11301
11302         * config/alpha/alpha.c (struct machine_function): Use rtx, not
11303         struct rtx_def *.
11304         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
11305         struct rtx_def *.
11306         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
11307         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
11308         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
11309         rtx_def *.
11310         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
11311         definitions where used.
11312         * config/microblaze/microblaze.h (struct microblaze_args): Use
11313         rtx, not struct rtx_def *.
11314         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
11315         rtx_def *.
11316         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
11317         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
11318         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
11319         not struct rtx_def *.
11320         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
11321         struct rtx_def *.
11322         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
11323         rtx_def *.
11324         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
11325
11326 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11327
11328         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
11329         operand_equal_p to compare DR_BASE_ADDRESSes.
11330         (vect_check_interleaving): Likewise.
11331
11332 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11333
11334         PR target/46329
11335         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
11336         for all Neon struct constants.
11337
11338 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11339
11340         * target.def (legitimate_constant_p): New hook.
11341         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
11342         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
11343         * doc/tm.texi: Regenerate.
11344         * hooks.h (hook_bool_mode_rtx_true): Declare.
11345         * hooks.c (hook_bool_mode_rtx_true): Define.
11346         * system.h (LEGITIMATE_CONSTANT_P): Poison.
11347         * calls.c (precompute_register_parameters): Replace uses of
11348         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
11349         (emit_library_call_value_1): Likewise.
11350         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
11351         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
11352         * ira-costs.c (scan_one_insn): Likewise.
11353         * recog.c (general_operand, immediate_operand): Likewise.
11354         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
11355         * reload1.c (init_eliminable_invariants): Likewise.
11356
11357         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
11358         mode argument.
11359         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
11360         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
11361         argument.
11362         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11363         * config/alpha/predicates.md (input_operand): Update call to
11364         alpha_legitimate_constant_p.
11365
11366         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
11367         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
11368         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
11369         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11370         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
11371         (arm_legitimate_constant_p): New functions.
11372         (arm_cannot_force_const_mem): Make static.
11373
11374         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
11375
11376         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
11377         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
11378         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
11379         instead of bfin_legitimate_constant_p.
11380         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
11381         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11382
11383         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
11384
11385         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
11386
11387         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
11388         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
11389         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11390         (frv_legitimate_constant_p): Make static.  Add a mode argument.
11391
11392         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
11393         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
11394         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
11395
11396         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
11397         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
11398         * config/i386/i386.c (legitimate_constant_p): Rename to...
11399         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
11400         argument.
11401         (ix86_cannot_force_const_mem): Update accordingly.
11402         (ix86_legitimate_address_p): Likewise.
11403         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11404         * config/i386/i386.md: Update commentary.
11405
11406         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
11407         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
11408         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11409         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
11410
11411         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11412
11413         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11414         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11415         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11416         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
11417
11418         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11419         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11420         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11421
11422         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11423         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11424         (m32r_legitimate_constant_p): New function.
11425
11426         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11427         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11428         LEGITIMATE_CONSTANT_P.
11429         (LEGITIMATE_CONSTANT_P): Delete.
11430         * config/m68k/m68k.c (m68k_expand_prologue): Call
11431         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11432         (m68k_legitimate_constant_p): New function.
11433         * config/m68k/m68k.md: Update comments.
11434
11435         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11436         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11437         (mcore_legitimate_constant_p): New function.
11438
11439         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11440         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11441         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11442         Add a mode argument.
11443         (mep_legitimate_address): Update accordingly.
11444         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11445
11446         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11447         Delete.
11448         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11449         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11450         static.  Check OP's mode for VOIDmode.
11451         (microblaze_legitimate_constant_p): New function.
11452         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11453
11454         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11455         * config/mips/mips.c (mips_legitimate_constant_p): New function.
11456         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11457         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11458         * config/mips/predicates.md: Update comments.
11459
11460         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11461         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11462         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11463         (mmix_legitimate_constant_p): Make static, return a bool, and take
11464         a mode argument.
11465         (mmix_print_operand_address): Update accordingly.
11466
11467         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11468         Delete.
11469         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11470         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11471         static.  Add a mode argument.
11472         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11473
11474         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11475
11476         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11477         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11478         (pa_legitimate_constant_p): New function.
11479
11480         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11481
11482         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11483         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11484         (pdp11_legitimate_constant_p): New function.
11485
11486         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11487         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11488         (rs6000_legitimate_constant_p): New function.
11489
11490         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11491         (rx_legitimate_constant_p): ...this.
11492         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11493         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11494         (rx_legitimate_constant_p): ...this.
11495         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11496         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11497
11498         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11499         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11500         * config/s390/s390.c (legitimate_constant_p): Rename to...
11501         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
11502         and add a mode argument.
11503         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11504
11505         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11506
11507         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11508         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11509         (sh_legitimate_constant_p): New function.
11510
11511         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11512         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11513         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11514         (legitimate_constant_p): Rename to...
11515         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
11516         argument.
11517         (constant_address_p): Update accordingly.
11518
11519         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11520         argument and return a bool.
11521         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11522         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11523         (spu_legitimate_constant_p): Add a mode argument and return a bool.
11524         (spu_rtx_costs): Update accordingly.
11525         * config/spu/predicates.md (vec_imm_operand): Likewise.
11526
11527         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11528
11529         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11530         * config/v850/v850.c (v850_legitimate_constant_p): New function.
11531         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11532
11533         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11534         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11535         * config/vax/vax.c (legitimate_constant_p): Likewise.
11536
11537         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11538         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11539         (xtensa_legitimate_constant_p): New function.
11540
11541 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11542
11543         * target.def (cannot_force_const_mem): Add a mode argument.
11544         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11545         * doc/tm.texi: Regenerate.
11546         * hooks.h (hook_bool_mode_rtx_false): Declare.
11547         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11548         (hook_bool_mode_const_rtx_true): Likewise.
11549         (hook_bool_mode_rtx_false): New function.
11550         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11551         to be non-VOID.  Update call to cannot_force_const_mem.
11552         (find_reloads): Update accordingly.
11553         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11554         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11555         argument.
11556         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11557         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11558         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11559         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11560         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11561         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11562         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11563         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11564         (m68k_cannot_force_const_mem): ...this new function.
11565         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11566         argument.
11567         (mips_const_insns, mips_legitimize_const_move): Update calls.
11568         (mips_secondary_reload_class): Likewise.
11569         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11570         (pa_cannot_force_const_mem): ...this new function.
11571         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11572         (rs6000_cannot_force_const_mem): ...this new function.
11573         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11574         argument.
11575         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11576         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11577         to...
11578         (xtensa_cannot_force_const_mem): ...this new function.
11579
11580 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11581
11582         * config/mips/mips.c (mips16_build_function_stub): Call
11583         build_function_type_list instead of build_function_type.
11584         (mips16_build_call_stub): Likewise.
11585
11586 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11587
11588         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11589         instead of build_function_type.
11590
11591 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11592
11593         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11594         instead of build_function_type.
11595
11596 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
11597
11598         PR target/48678
11599         * config/i386/i386.md (insv): Change operand 0 constraint to
11600         "register_operand".  Change operand 1 and 2 constraint to
11601         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
11602         * config/i386/sse.md (sse4_1_pinsrb): Export.
11603         (sse2_pinsrw): Ditto.
11604         (sse4_1_pinsrd): Ditto.
11605         (sse4_1_pinsrq): Ditto.
11606         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11607         * config/i386/i386.c (ix86_expand_pinsr): New.
11608
11609 2011-04-20  Easwaran Raman  <eraman@google.com>
11610
11611         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11612         containing union type only with -fstrict-aliasing.
11613
11614 2011-04-20  Jim Meyering  <meyering@redhat.com>
11615
11616         Remove useless if-before-free tests.
11617         * calls.c (expand_call, save_area): Likewise.
11618         * cfgcleanup.c (try_forward_edges): Likewise.
11619         * collect2.c (collect_execute): Likewise.
11620         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11621         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11622         * coverage.c (coverage_checksum_string): Likewise.
11623         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11624         * cselib.c (cselib_init): Likewise.
11625         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11626         (df_set_clean_cfg): Likewise.
11627         * function.c (free_after_compilation): Likewise.
11628         * gcc.c (do_spec_1, main): Likewise.
11629         * gcov.c (create_file_names): Likewise.
11630         * gensupport.c (identify_predicable_attribute): Likewise.
11631         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11632         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11633         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11634         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11635         * ipa-pure-const.c (local_pure_const): Likewise.
11636         * ipa-reference.c (propagate): Likewise.
11637         * ira-costs.c (free_ira_costs): Likewise.
11638         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11639         * matrix-reorg.c (mat_free): Likewise.
11640         * prefix.c (get_key_value): Likewise.
11641         * profile.c (compute_value_histograms): Likewise.
11642         * reload1.c (free_reg_equiv): Likewise.
11643         * sched-deps.c (free_deps): Likewise.
11644         * sel-sched-ir.c (fence_clear): Likewise.
11645         * sese.c (set_rename, if_region_set_false_region): Likewise.
11646         * tree-data-ref.c (free_rdg): Likewise.
11647         * tree-eh.c (lower_try_finally): Likewise.
11648         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11649         * tree-ssa-live.c (delete_var_map): Likewise.
11650         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11651         * tree-ssa-pre.c (phi_trans_add): Likewise.
11652
11653 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
11654
11655         PR tree-optimization/48611
11656         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11657         beyond ERT_MUST_NOT_THROW region.
11658
11659 2011-04-20  Catherine Moore  <clm@codesourcery.com>
11660
11661         * config/mips/mips.opt (mfix-24k): New.
11662         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11663         * config/mips/mips.md (length): Increase by 4 for stores if
11664         fixing 24K errata.
11665         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11666         all noreorder if fixing 24K errata.
11667         * doc/invoke.texi: Document mfix-24k.
11668
11669 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
11670
11671         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11672         quad-word modes, reduce to 9-bit index range when above 1016 limit.
11673
11674 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11675
11676         * config/arm/arm.c (arm_gen_constant): Move movw support ....
11677         (const_ok_for_op): ... to here.
11678
11679 2011-04-20  Kai Tietz  <ktietz@redhat.com>
11680
11681         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11682         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11683
11684 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11685
11686         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11687
11688 2011-04-20  Richard Guenther  <rguenther@suse.de>
11689
11690         PR tree-optimization/47892
11691         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11692         are if-convertible.
11693
11694 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
11695
11696         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11697
11698 2011-04-20  Tristan Gingold  <gingold@adacore.com>
11699
11700         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11701
11702 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
11703
11704         PR target/18145
11705
11706         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11707         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11708         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11709         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11710         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11711
11712         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11713         New prototype.
11714
11715         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11716         (avr_asm_named_section, avr_asm_output_aligned_common,
11717         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11718         New functions to update...
11719         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11720         (avr_asm_init_sections): Overwrite section callbacks for
11721         data_section, bss_section.
11722         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11723         from here to...
11724         (avr_file_end): ...here.
11725
11726 2011-04-20  Richard Guenther  <rguenther@suse.de>
11727
11728         PR middle-end/48695
11729         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11730         objects and types here.  Adjust for their offset before comparing.
11731
11732 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11733
11734         * tree-vect-stmts.c (vectorizable_store): Only chain one related
11735         statement per copy.
11736
11737 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11738
11739         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11740         (GIMPLE_H): Include $(INTERNAL_FN_H).
11741         (OBJS-common): Add internal-fn.o.
11742         (internal-fn.o): New rule.
11743         * internal-fn.def: New file.
11744         * internal-fn.h: Likewise.
11745         * internal-fn.c: Likewise.
11746         * gimple.h: Include internal-fn.h.
11747         (GF_CALL_INTERNAL): New gf_mask.
11748         (gimple_statement_call): Put fntype into a union with a new
11749         internal_fn field.
11750         (gimple_build_call_internal): Declare.
11751         (gimple_build_call_internal_vec): Likewise.
11752         (gimple_call_same_target_p): Likewise.
11753         (gimple_call_internal_p): New function.
11754         (gimple_call_internal_fn): Likewise.
11755         (gimple_call_fntype): Return null for internal calls.
11756         (gimple_call_set_fntype): Assert that the function is not internal.
11757         (gimple_call_set_fn): Likewise.
11758         (gimple_call_set_fndecl): Likewise.
11759         (gimple_call_set_internal_fn): New function.
11760         (gimple_call_addr_fndecl): Handle null functions.
11761         (gimple_call_return_type): Likewise null types.
11762         * gimple.c (gimple_build_call_internal_1): New function.
11763         (gimple_build_call_internal): Likewise.
11764         (gimple_build_call_internal_vec): Likewise.
11765         (gimple_call_same_target_p): Likewise.
11766         (gimple_call_flags): Handle calls to internal functions.
11767         (gimple_call_fnspec): New function.
11768         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11769         (gimple_has_side_effects): Handle null functions.
11770         (gimple_rhs_has_side_effects): Likewise.
11771         (gimple_call_copy_skip_args): Handle calls to internal functions.
11772         * cfgexpand.c (expand_call_stmt): Likewise.
11773         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11774         * gimple-fold.c (gimple_fold_call): Handle null functions.
11775         (gimple_fold_stmt_to_constant_1): Don't fold
11776         calls to internal functions.
11777         * gimple-low.c (gimple_check_call_args): Handle calls to internal
11778         functions.
11779         * gimple-pretty-print.c (dump_gimple_call): Likewise.
11780         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11781         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11782         (do_warn_unused_result): Likewise.
11783         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11784         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11785         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11786         the target of a call.
11787         (initialize_hash_element): Update accordingly.
11788         (hashable_expr_equal_p): Use gimple_call_same_target_p.
11789         (iterative_hash_hashable_expr): Handle calls to internal functions.
11790         (print_expr_hash_elt): Likewise.
11791         * tree-ssa-pre.c (can_value_number_call): Likewise.
11792         (eliminate): Handle null functions.
11793         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11794         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11795         (find_func_aliases): Likewise.
11796         * value-prof.c (gimple_ic_transform): Likewise.
11797         (gimple_indirect_call_to_profile): Likewise.
11798         * lto-streamer-in.c (input_gimple_stmt): Likewise.
11799         * lto-streamer-out.c (output_gimple_stmt): Likewise.
11800
11801 2011-04-19  Jan Hubicka  <jh@suse.cz>
11802
11803         * ipa-inline-transform.c (save_inline_function_body): Add comments.
11804         * ipa-inline.c (inline_small_functions): Compute summaries first,
11805         populate heap later.
11806
11807 2011-04-19  Jan Hubicka  <jh@suse.cz>
11808
11809         * cgraph.h (save_inline_function_body): Remove.
11810         * ipa-inline-transform.c: New file, broke out of...
11811         * ipa-inline.c: ... this one; Update toplevel comment.
11812         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11813         make global.
11814         (update_noncloned_frequencies): Move to ipa-inline-transform.c
11815         (cgraph_mark_inline_edge): Rename to inline_call; move to
11816         ipa-inline-transform.c.
11817         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11818         move to ipa-inline-transform.c
11819         (recursive_inlining, inline_small_functions, flatten_function,
11820         ipa_inline, inline_always_inline_functions,
11821         early_inline_small_functions): Update.
11822         (inline_transform): Move to ipa-inline-transform.c.
11823         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11824         Declare.
11825         * Makefile.in (ipa-inline-transform.o): New file.
11826         * cgraphunit.c (save_inline_function_body): Move to
11827         ipa-inline-transform.c
11828
11829 2011-04-19  DJ Delorie  <dj@redhat.com>
11830
11831         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11832         registers if we already know there aren't any.
11833         (m32c_emit_epilogue): Don't emit a barrier here.
11834         (m32c_emit_eh_epilogue): Likewise.
11835         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11836         operands at expand time.
11837         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11838         int" wchar type.
11839         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11840         duplicates.  Provide aliases instead.
11841         * config/m32c/prologue.md (eh_return): Emit a barrier here.
11842         (eh_epilogue): Add a "(return)" here as a hint to other parts of
11843         the compiler.
11844
11845 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
11846
11847         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11848         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11849         (general_or_i64_p, sparc_register_move_cost): New function.
11850
11851 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11852
11853         * doc/install.texi (Configuration, --enable-threads): Remove mach.
11854         Add lynx, mipssde.  Sort table.
11855
11856 2011-04-19  Xinliang David Li  <davidxl@google.com>
11857
11858         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11859         not negative.
11860
11861 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
11862
11863         PR target/48678
11864         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11865         is a SUBREG with non-MODE_INT mode inside of it.
11866
11867 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11868
11869         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11870         also according to actual contants.
11871         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11872         (gimple_fold_call): Use it.
11873         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11874
11875 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11876
11877         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11878         non-pointer assignments.
11879
11880 2011-04-19  Martin Jambor  <mjambor@suse.cz>
11881
11882         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11883         account anc_offset and otr_type from the indirect edge info.
11884         * ipa-prop.c (get_ancestor_addr_info): New function.
11885         (compute_complex_ancestor_jump_func): Assignment analysis moved to
11886         get_ancestor_addr_info, call it.
11887         (ipa_note_param_call): Do not initialize information about polymorphic
11888         calls, return the indirect call graph edge.  Remove the last
11889         parameter, adjust all callers.
11890         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11891         parameters.  Initialize polymorphic information in the indirect edge.
11892
11893 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11894
11895         PR lto/48148
11896         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11897         the types if they have different enumeration identifiers.
11898
11899 2011-04-19  Jan Hubicka  <jh@suse.cz>
11900
11901         * cgraph.h (cgraph_optimize_for_size_p): Declare.
11902         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11903         * predict.c (cgraph_optimize_for_size_p): Break out from ...
11904         (optimize_function_for_size_p) ... here.
11905
11906 2011-04-19  Richard Guenther  <rguenther@suse.de>
11907
11908         PR lto/48207
11909         * tree.c (free_lang_data): Do not reset the decl-assembler-name
11910         langhook.
11911
11912 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11913
11914         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11915         if DECL_NO_INLINE_WARNING_P is set on the function.
11916
11917 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
11918
11919         PR fortran/47976
11920         * reload1.c (inc_for_reload): Return void. All callers changed.
11921         (emit_input_reload_insns): Don't try to delete previous output
11922         reloads to a register, or record spill_reg_store for autoincs.
11923
11924 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
11925
11926         * gengtype.h: Updated copyright year.
11927         (struct input_file_st): Add inpisplugin field.
11928         (type_fileloc): New function.
11929         * gengtype.c
11930         (write_typed_struct_alloc_def): Add gcc_assert.
11931         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11932         (write_typed_alloc_defns): Don't output for plugin files.
11933         (input_file_by_name): Clear inpisplugin field.
11934         (main): Set inpisplugin field for plugin files.
11935
11936 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
11937
11938         * gengtype-state.c (string_eq): New.
11939         (read_state): Use string_eq instead of strcmp when creating the
11940         state_ident_tab.
11941
11942 2011-04-19  Wei Guozhi  <carrot@google.com>
11943
11944         PR target/47855
11945         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11946         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11947         linkage.
11948         * config/arm/constraints.md (Uu): New constraint.
11949         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11950
11951 2011-04-19  Tristan Gingold  <gingold@adacore.com>
11952
11953         * config.gcc (-*-*-*vms): Added.
11954         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11955         definitions moved.
11956         * config/vms/vms-ld.c: New file.
11957         * config/vms/vms-ar.c: New file.
11958         * config/vms/t-vmsnative: New file.
11959
11960 2011-04-18  Xinliang David Li  <davidxl@google.com>
11961
11962         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11963
11964 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
11965
11966         PR middle-end/48661
11967         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11968         if TREE_TYPE (v) is non-NULL.
11969
11970         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11971         gimple_get_virt_mehtod_for_binfo.
11972         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11973         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11974         callers.
11975         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11976
11977 2011-04-18  Michael Matz  <matz@suse.de>
11978             Steve Ellcey  <sje@cup.hp.com>
11979
11980         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11981         use its mode as source mode if it isn't VOIDmode.
11982
11983 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
11984
11985         * doc/passes.texi: Fill crossref nodes.
11986
11987 2011-04-18  Jim Meyering  <meyering@redhat.com>
11988
11989         Fix doubled-word typos in comments and strings
11990         * config/alpha/vms-unwind.h: s/for for/for/
11991         * config/arm/unwind-arm.h: Likewise.
11992         * config/microblaze/microblaze.c: Likewise.
11993         * config/sh/constraints.md: s/in in/in/
11994         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11995
11996 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
11997
11998         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11999         (AVX_FLOAT_MODE_P): Ditto.
12000         (AVX128_VEC_FLOAT_MODE_P): Ditto.
12001         (AVX256_VEC_FLOAT_MODE_P): Ditto.
12002         (AVX_VEC_FLOAT_MODE_P): Ditto.
12003         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
12004         (UNSPEC_MASKSTORE): Ditto.
12005         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
12006         Merge from <sse>_movmsk<ssemodesuffix> and
12007         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
12008         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
12009         iterator.
12010         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
12011         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
12012         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
12013
12014 2011-04-18  Jan Hubicka  <jh@suse.cz>
12015
12016         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
12017
12018         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
12019         (want_inline_function_called_once_p): Break out the logic from
12020         ipa_inline.
12021         (edge_badness): Ensure that profile is not misupdated.
12022         (lookup_recursive_calls): Prioritize by call frequencies.
12023         (inline_small_functions): Move program size estimates here;
12024         actually process whole queue even when unit growth has been
12025         met. (to properly compute inline_failed reasons and for the
12026         case unit size decrease.) Revisit comments on recursive inlining.
12027         (ipa_inline): Remove unit summary code; first inline hot calls
12028         of functions called once, cold calls next.
12029         (order, nnodes): Remove unused variables.
12030         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
12031         (GTFILES): Remove ipa-inline.c
12032         * sel-sched.c (fill_insns): Silence uninitialized var warning.
12033
12034 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12035
12036         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
12037
12038 2011-04-18  Jie Zhang  <jie@codesourcery.com>
12039             Richard Earnshaw  <rearnsha@arm.com>
12040
12041         * arm.c (neon_builtin_type_bits): Remove.
12042         (typedef enum neon_builtin_mode): New.
12043         (T_MAX): Don't define.
12044         (typedef enum neon_builtin_datum): Remove bits, codes[],
12045         num_vars and base_fcode.  Add mode, code and fcode.
12046         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
12047         VAR10): Change accordingly.
12048         (neon_builtin_data[]): Change accordingly
12049         (arm_init_neon_builtins): Change accordingly.
12050         (neon_builtin_compare): Remove.
12051         (locate_neon_builtin_icode): Remove.
12052         (arm_expand_neon_builtin): Change accordingly.
12053
12054         * arm.h (enum arm_builtins): Move to ...
12055         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
12056
12057         * arm.c (arm_builtin_decl): Declare.
12058         (TARGET_BUILTIN_DECL): Define.
12059         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
12060         (arm_builtin_decls[]): New.
12061         (arm_init_neon_builtins): Store builtin declarations in
12062         arm_builtin_decls[].
12063         (arm_init_tls_builtins): Likewise.
12064         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
12065         (arm_builtin_decl): New.
12066
12067 2011-04-18  Richard Guenther  <rguenther@suse.de>
12068
12069         * tree.c (upper_bound_in_type): Build properly canonicalized
12070         INTEGER_CSTs.
12071         (lower_bound_in_type): Likewise.
12072
12073 2011-04-18  Richard Guenther  <rguenther@suse.de>
12074
12075         * gimple.h (gimple_call_addr_fndecl): New function.
12076         (gimple_call_fndecl): Use it.
12077         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
12078         for direct calls.
12079         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
12080         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
12081
12082 2011-04-18  Richard Guenther  <rguenther@suse.de>
12083
12084         PR middle-end/48650
12085         * tree.c (build_string): STRING_CST is now derived from tree_typed.
12086
12087 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12088
12089         PR lto/48492
12090         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
12091         DECL_IN_CONSTANT_POOL without RTL.
12092
12093 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
12094             Ira Rosen  <ira.rosen@linaro.org>
12095
12096         PR target/48252
12097         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
12098         to match neon_vzip/vuzp/vtrn_internal.
12099         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
12100         outputs explicitly dependent on both inputs.
12101         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
12102
12103 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
12104
12105         PR tree-optimization/48616
12106         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
12107         whether the shift is by scalar or vector based on whether all SLP
12108         scalar stmts have the same rhs.
12109
12110 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
12111
12112         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
12113         memory operands.
12114
12115 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
12116
12117         PR target/43700
12118         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
12119         registers.
12120
12121 2011-04-17  Jan Hubicka  <jh@suse.cz>
12122
12123         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
12124         * cgrpahunit.c (cgraph_finalize_function): Do not set
12125         finalized_by_frontend.
12126         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12127         finalized_by_frontend.
12128
12129 2011-04-17  Jan Hubicka  <jh@suse.cz>
12130
12131         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
12132         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
12133         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
12134         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
12135         method.
12136         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
12137         gimple-fold.c
12138         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
12139
12140 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
12141
12142         PR lto/48538
12143         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
12144         is non-null before accessing it.
12145         (input_cgraph): Remove trailing spaces.
12146
12147 2011-04-17  Revital Eres  <revital.eres@linaro.org>
12148
12149         * params.def (sms-min-sc): New param flag.
12150         * modulo-sched.c (sms_schedule): Use it.
12151         * doc/invoke.texi (sms-min-sc): Document it.
12152
12153 2011-04-17  Jan Hubicka  <jh@suse.cz>
12154
12155         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
12156         present, also set gimple_call_set_cannot_inline.
12157         * ipa-inline.c: Update toplevel comment.
12158         (MAX_TIME): Remove.
12159         (cgraph_clone_inlined_nodes): Fix linebreaks.
12160         (cgraph_check_inline_limits): Restructure to ...
12161         (caller_growth_limits): ... this one; be more tolerant
12162         on growth in nested inline chains; add explanatory comment;
12163         fix stack accounting thinko introduced by previous patch.
12164         (cgraph_default_inline_p): Remove.
12165         (report_inline_failed_reason): New function.
12166         (can_inline_edge_p): New function.
12167         (can_early_inline_edge_p): New function.
12168         (leaf_node_p): Move upwards in file.
12169         (want_early_inline_function_p): New function.
12170         (want_inline_small_function_p): New function.
12171         (want_inline_self_recursive_call_p): New function.
12172         (cgraph_edge_badness): Rename to ...
12173         (edge_badness) ... this one; fix linebreaks.
12174         (update_edge_key): Update call of edge_baddness; add
12175         detailed dump about queue updates.
12176         (update_caller_keys): Use can_inline_edge_p and
12177         want_inline_small_function_p.
12178         (cgraph_decide_recursive_inlining): Rename to...
12179         (recursive_inlining): Use can_inline_edge_p and
12180         want_inline_self_recursive_call_p; simplify and remove no longer
12181         valid FIXME.
12182         (cgraph_set_inline_failed): Remove.
12183         (add_new_edges_to_heap): Use can_inline_edge_p and
12184         want_inline_small_function_p.
12185         (cgraph_decide_inlining_of_small_functions): Rename to ...
12186         (inline_small_functions): ... this one; cleanup; use
12187         can/want predicates; cleanup debug ouput; work edges till fibheap
12188         is exhausted and do not stop once unit growth is reached; remove
12189         later loop processing remaining edges.
12190         (cgraph_flatten): Rename to ...
12191         (flatten_function): ... this one; use can_inline_edge_p
12192         and can_early_inline_edge_p predicates.
12193         (cgraph_decide_inlining): Rename to ...
12194         (ipa_inline): ... this one; remove unreachable nodes before
12195         inlining functions called once; simplify the pass.
12196         (cgraph_perform_always_inlining): Rename to ...
12197         (inline_always_inline_functions): ... this one; use
12198         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
12199         (cgraph_decide_inlining_incrementally): Rename to ...
12200         (early_inline_small_functions): ... this one; simplify
12201         using new predicates; cleanup; make dumps prettier.
12202         (cgraph_early_inlining): Rename to ...
12203         (early_inliner): newer inline regular functions into always-inlines;
12204         fix updating of call stmt summaries.
12205         (pass_early_inline): Update for new names.
12206         (inline_transform): Fix formating.
12207         (gate_cgraph_decide_inlining): Rename to ...
12208         (pass_ipa_inline): ... this one.
12209         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
12210         * ipa-inline-analysis.c (dump_inline_summary): Update.
12211         (compute_inline_parameters): Do not compute disregard_inline_limits;
12212         look for mismatching arguments.
12213         (estimate_growth): Fix handlig of non-trivial self recursion.
12214         (inline_read_summary): Do not read info->disregard_inline_limits.
12215         (inline_write_summary): Do not write info->disregard_inline_limits.
12216         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
12217         and move all checks into can_inline_edge_p predicate; re-enable code
12218         comparing optimization levels.
12219         (expand_call_inline): Do not test inline_forbidden_into_p.
12220         * Makefile.in (ipa-inline.o): Update arguments.
12221
12222 2011-04-17  Revital Eres  <revital.eres@linaro.org>
12223
12224         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
12225
12226 2011-04-17  Revital Eres  <revital.eres@linaro.org>
12227
12228         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
12229
12230 2011-04-17  Michael Matz  <matz@suse.de>
12231
12232         PR tree-optimization/48622
12233         PR lto/48645
12234         * ipa-inline-analysis.c (inline_read_summary): Read size/time
12235         in same order as they're written.
12236
12237 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12238
12239         * config/pa/predicates.md: Reorganize and simplify predicates.
12240         Eliminate duplicate code checks.
12241         (arith_operand): Rename to arith14_operand
12242         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
12243         * config/pa/pa.md: Use renamed operands.
12244         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
12245         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
12246         arith11_operand, adddi3_operand, indexed_memory_operand,
12247         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
12248         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
12249         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
12250         move_dest_operand, move_src_operand, prefetch_cc_operand,
12251         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
12252         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
12253         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
12254         div_operand, int5_operand, movb_comparison_operator,
12255         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
12256         arith_double_operand, ireg_operand, lhs_lshift_operand,
12257         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
12258         integer_store_memory_operand): Likewise.
12259         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
12260         (integer_store_memory_operand, read_only_operand,
12261         function_label_operand, borx_reg_operand,
12262         non_hard_reg_operand): Likewise.
12263         (eq_neq_comparison_operator): Delete unused operator.
12264         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
12265         function_label_operand.
12266         (emit_move_sequence): Likewise.
12267
12268 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
12269
12270         * config/i386/sse.md (sseunpackmode): New mode attribute.
12271         (ssepackmode): Ditto.
12272         (vec_pack_trunc_<mode>): Macroize expander from
12273         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
12274         (vec_unpacks_lo_<mode>): Macroize expander from
12275         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12276         (vec_unpacks_hi_<mode>): Macroize expander from
12277         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12278         (vec_unpacku_lo_<mode>): Macroize expander from
12279         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12280         (vec_unpacku_hi_<mode>): Macroize expander from
12281         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12282         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
12283         ix86_expand_sse4_unpack.
12284         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
12285
12286 2011-04-16  Jan Hubicka  <jh@suse.cz>
12287
12288         * cgraphbuild.c: Include ipa-inline.h.
12289         (reset_inline_failed): Use initialize_inline_failed.
12290         * cgraph.c: Include ipa-inline.h.
12291         (cgraph_create_node_1): Do not initialize estimated_growth.
12292         (initialize_inline_failed): More to ipa-inline-analysis.c
12293         (dump_cgraph_node): Do not dump inline flags.
12294         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
12295         and disregard_inline_limits flags.
12296         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
12297         time, size, estimated_growth.
12298         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
12299         Update.
12300         * cgraphunit.c (cgraph_decide_is_function_needed): Use
12301         DECL_DISREGARD_INLINE_LIMITS.
12302         (cgraph_analyze_function): Do not initialize
12303         node->local.disregard_inline_limits.
12304         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12305         inlinable, versionable and disregard_inline_limits.
12306         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
12307         cgraph_check_inline_limits, cgraph_default_inline_p,
12308         cgraph_edge_badness, update_caller_keys, update_callee_keys,
12309         add_new_edges_to_heap): Update.
12310         (cgraph_decide_inlining_of_small_function): Update; set
12311         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
12312         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
12313         cgraph_decide_inlining_incrementally): Update.
12314         * ipa-inline.h (inline_summary): Add inlinable, versionable,
12315         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
12316         time, size and estimated_growth parameters.
12317         (estimate_edge_growth): Update.
12318         (initialize_inline_failed): Declare.
12319         * ipa-split.c: Include ipa-inline.h
12320         (execute_split_functions): Update.
12321         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
12322         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
12323         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
12324         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
12325         estimated_growth to INT_MIN.
12326         (inline_node_duplication_hook): Likewise.
12327         (dump_inline_summary): Dump new fields.
12328         (compute_inline_parameters): Update.
12329         (estimate_edge_time, estimate_time_after_inlining,
12330         estimate_size_after_inlining, estimate_growth, inline_read_summary,
12331         inline_write_summary):
12332         (initialize_inline_failed): Move here from cgraph.c.
12333         * tree-sra.c: Include ipa-inline.h.
12334         (ipa_sra_preliminary_function_checks): Update.
12335         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
12336         ipa-inline.h.
12337
12338 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
12339
12340         * config/i386/sse.md (V16): New mode iterator.
12341         (VI1, VI8): Ditto.
12342         (AVXMODEQI, AVXMODEDI): Remove.
12343         (sse2, sse3): New mode attribute.
12344         (mov<mode>): Use V16 mode iterator.
12345         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
12346         (push<mode>1): Use V16 mode iterator.
12347         (movmisalign<mode>): Ditto.
12348         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12349         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
12350         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12351         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
12352         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
12353         avx_movdqu<avxmodesuffix>.
12354         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
12355         *avx_movdqu<avxmodesuffix>.
12356         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
12357         avx_lddqu<avxmodesuffix>.
12358         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
12359         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
12360         avx_movnt<AVXMODEDI:mode>.
12361         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
12362         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
12363
12364 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12365
12366         PR target/48629
12367         * haifa-sched.c (prune_ready_list, schedule_block): Use
12368         sched_pressure_p rather than flag_sched_pressure.
12369
12370 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
12371
12372         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12373         cgraph_get_node instead of cgraph_get_create_node.
12374
12375 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
12376
12377         * cfgexpand.c (expand_debug_expr): Use
12378         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
12379
12380 2011-04-15  Michael Matz  <matz@suse.de>
12381
12382         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
12383         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
12384         * function.c (gimplify_parameters): Ditto.
12385         * gimplify.c (gimplify_vla_decl): Ditto.
12386
12387         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
12388         (gimple_call_set_alloca_for_var): New inline function.
12389         (gimple_call_alloca_for_var_p): Ditto.
12390         * gimple.c (gimple_build_call_from_tree): Remember
12391         CALL_ALLOCA_FOR_VAR_P state.
12392         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
12393
12394         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
12395         calls if they were for VLA objects.
12396
12397 2011-04-15  Martin Jambor  <mjambor@suse.cz>
12398
12399         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
12400         of ADR_EXPRs.
12401
12402 2011-04-15  Martin Jambor  <mjambor@suse.cz>
12403
12404         PR middle-end/48601
12405         * tree-emutls.c (lower_emutls_function_body): Call
12406         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
12407         result is non-NULL.
12408
12409 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
12410
12411         * c-decl.c (detect_field_duplicates): Call
12412         objc_detect_field_duplicates instead of objc_get_interface_ivars.
12413
12414 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
12415
12416         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12417         * gimple.c (gimple_asm_clobbers_memory_p): Define.
12418         * ipa-pure-const.c (check_stmt): Call it.
12419         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12420
12421 2011-04-15  Richard Guenther  <rguenther@suse.de>
12422
12423         PR tree-optimization/48290
12424         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12425         Properly decide inhibiting propagation based on the valueized
12426         operand.  Do loop-closed SSA form preserving here ...
12427         (init_copy_prop): ... not here.
12428
12429 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12430
12431         PR target/48612
12432         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12433         (*ieee_smax<mode>3): Likewise.
12434
12435 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12436
12437         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12438         Replace match_operand with match_dup for the third operand in
12439         these expanders.
12440
12441 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12442
12443         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12444         to track processing of conditionals.  Update all callers.
12445         (try_combine, simplify_if_then_else): Update.
12446
12447 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12448
12449         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12450         -fsched-pressure.
12451
12452 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
12453
12454         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12455         instead of match_operand for operand 3.
12456
12457 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
12458
12459         * recog.h (insn_operand_data): Add an "allows_mem" field.
12460         * genoutput.c (output_operand_data): Initialize it.
12461         * optabs.c (maybe_legitimize_operand_same_code): New function.
12462         (maybe_legitimize_operand): Use it when matching the original
12463         op->value.
12464
12465 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12466
12467         * gimplify.c: Fix issues in comments throughout.
12468         (voidify_wrapper_expr): Fix long line.
12469         (build_stack_save_restore): Likewise.
12470         (gimplify_loop_expr): Likewise.
12471         (gimplify_compound_lval): Likewise.
12472         (gimplify_init_ctor_eval): Likewise.
12473         (gimplify_modify_expr_rhs): Likewise.
12474         (omp_notice_threadprivate_variable): Likewise.
12475
12476 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12477
12478         * cfgexpand.c (expand_call_stmt): Convert the function type to the
12479         original one if this is not a builtin function.
12480
12481 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
12482
12483         PR target/48605
12484         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12485         offset it as needed based on top 2 bits in operands[3], change
12486         MEM mode to SFmode and mask those 2 bits away from operands[3].
12487
12488 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12489
12490         * c-parser.c (c_parser_objc_protocol_definition): Updated for
12491         change from objc_declare_protocols() to objc_declare_protocol().
12492
12493 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
12494
12495         * config/i386/sse.md (sse4_1): New mode attribute.
12496         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12497         avx_blend<ssemodesuffix><avxmodesuffix> and
12498         sse4_1_blend<ssemodesuffix> using VF mode iterator.
12499         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12500         avx_blendv<ssemodesuffix><avxmodesuffix> and
12501         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12502         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12503         avx_dp<ssemodesuffix><avxmodesuffix> and
12504         sse4_1_dp<ssemodesuffix> using VF mode iterator.
12505         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12506         (sse4_1_packusdw): Merge with *avx_packusdw.
12507         (sse4_1_pblendvb): Merge with *avx_pblendvb.
12508         (sse4_1_pblendw): Merge with *avx_pblendw.
12509         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12510         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12511         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12512         VF mode iterator.
12513         (sse4_1_round<ssescalarmodesuffix>): Merge with
12514         *avx_round<ssescalarmodesuffix>.
12515         (aesenc): Merge with *avx_aesenc.
12516         (aesenclast): Merge with *avx_aesenclast.
12517         (aesdec): Merge with *avx_aesdec.
12518         (aesdeclast): Merge with *avx_aesdeclast.
12519         (pclmulqdq): Merge with *pclmulqdq.
12520         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12521         New predicate.
12522         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12523
12524 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
12525
12526         PR middle-end/48608
12527         * cfgexpand.c (get_decl_align_unit): Renamed to ...
12528         (align_local_variable): This.  Update DECL_ALIGN.
12529         (add_stack_var): Updated.
12530         (expand_one_stack_var): Likewise.
12531
12532 2011-04-14  Richard Guenther  <rguenther@suse.de>
12533
12534         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12535         Remove.
12536         (dse_initialize_block_local_data, dse_leave_block,
12537         record_voperand_set, get_stmt_uid): Likewise.
12538         (dse_possible_dead_store_p): Allow any kind of killing stmt.
12539         (dse_optimize_stmt): Remove voperand set handling code.
12540         Simplify and improve to handle any kind of killing stmt.
12541         (dse_record_phi): Remove.
12542         (dse_enter_block): Simplify.
12543         (tree_ssa_dse): Likewise.
12544         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12545
12546 2011-04-14  Jan Hubicka  <jh@suse.cz>
12547
12548         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12549         * cgraph.h (struct inline_summary): Move to ipa-inline.h
12550         (cgraph_local_info): Remove inline_summary.
12551         * ipa-cp.c: Include ipa-inline.h.
12552         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12553         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12554         accesor.
12555         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12556         (input_overwrite_node): Do not set inline summary.
12557         (input_node): Do not stream inline summary.
12558         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12559         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12560         growth; we do not have inline parameters computed for that anyway.
12561         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12562         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12563         (inline_summary_t): New type and VECtor.
12564         (debug_inline_summary, dump_inline_summaries): Declare.
12565         (inline_summary): Use VOCtor.
12566         (estimate_edge_growth): Kill hack computing call stmt size directly.
12567         * lto-section-in.c (lto_section_name): Add inline section.
12568         * ipa-inline-analysis.c: Include lto-streamer.h
12569         (node_removal_hook_holder, node_duplication_hook_holder): New holders
12570         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12571         (inline_summary_vec): Define.
12572         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12573         dump_inline_summaries): New functions.
12574         (estimate_function_body_sizes): Properly compute size/time of outgoing
12575         calls.
12576         (compute_inline_parameters): Alloc inline_summary; do not compute
12577         size/time of incomming calls.
12578         (estimate_edge_time): Avoid missing time summary hack.
12579         (inline_read_summary): Read inline summary info.
12580         (inline_write_summary): Write inline summary info.
12581         (inline_free_summary): Free all hooks and inline summary vector.
12582         * lto-streamer.h: Add LTO_section_inline_summary section.
12583         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12584         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12585
12586 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12587
12588         * tree-vectorizer.h (vect_strided_store_supported): Add a
12589         HOST_WIDE_INT argument.
12590         (vect_strided_load_supported): Likewise.
12591         (vect_permute_store_chain): Return void.
12592         (vect_transform_strided_load): Likewise.
12593         (vect_permute_load_chain): Delete.
12594         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12595         count argument.  Check that the count is a power of two.
12596         (vect_strided_load_supported): Likewise.
12597         (vect_permute_store_chain): Return void.  Update after above changes.
12598         Assert that the access is supported.
12599         (vect_permute_load_chain): Likewise.
12600         (vect_transform_strided_load): Return void.
12601         * tree-vect-stmts.c (vectorizable_store): Update calls after
12602         above interface changes.
12603         (vectorizable_load): Likewise.
12604         (vect_analyze_stmt): Don't check for strided powers of two here.
12605
12606 2011-04-14  Richard Guenther  <rguenther@suse.de>
12607
12608         PR tree-optimization/48590
12609         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12610         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12611         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12612         BUILT_IN_STACK_SAVE.
12613         * tree-ssa-dce.c (propagate_necessity): Handle
12614         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12615
12616 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12617
12618         * c-parser.c (c_parser_objc_class_declaration): Updated call to
12619         objc_declare_class.
12620
12621 2011-04-14  Richard Guenther  <rguenther@suse.de>
12622
12623         * tree.h (get_object_alignment_1): Declare.
12624         * builtins.c (get_object_alignment_1): Split out worker from ...
12625         (get_object_alignment): ... here.
12626         * fold-const.c (get_pointer_modulus_and_residue): Use
12627         get_object_alignment_1.
12628
12629 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12630
12631         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12632         type parameter.
12633         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12634         parameter.  Generalise code to handle arrays as well as vectors.
12635         (vect_setup_realignment): Update accordingly.
12636         * tree-vect-stmts.c (vectorizable_store): Likewise.
12637         (vectorizable_load): Likewise.
12638
12639 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12640
12641         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12642         within the per-copy loop.
12643
12644 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12645
12646         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12647         in the dump file.
12648
12649 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12650
12651         * doc/options.texi (Negative): Explicitly mention that the
12652         Negative chain must be circular.
12653
12654 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
12655
12656         * function.h (block_chainon): Declare.
12657         * function.c (block_chainon): Define.
12658
12659 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
12660             Eric Weddington  <eric.weddington@atmel.com>
12661             Georg-Johann Lay  <avr@gjlay.de>
12662
12663         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12664         New Includes
12665         (avr_init_builtins, avr_expand_builtin,
12666         avr_expand_delay_cycles, avr_expand_unop_builtin,
12667         avr_expand_binop_builtin ): New functions.
12668         (avr_builtin_id): New enum
12669         (struct avr_builtin_description): New struct
12670         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12671         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12672
12673         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12674         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12675         UNSPECV_DELAY_CYCLES): new enumeration values
12676         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12677         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12678         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12679         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12680         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12681         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12682         "fmulsu"): New insns
12683
12684         * config/avr/avr-c.c: fix line endings
12685         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12686         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12687         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12688         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12689         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12690
12691         * doc/extend.texi (AVR Built-in Functions): New node
12692         (Target Builtins): Add documentation of AVR
12693         built-in functions.
12694
12695 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
12696
12697         PR target/44643
12698         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12699         alone. Error if non-const data has attribute progmem.
12700
12701 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12702
12703         * tree.h (struct tree_constructor): Include tree_typed instead of
12704         tree_common.
12705         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12706         TS_TYPED instead of TS_COMMON.
12707
12708 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
12709
12710         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12711         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12712         (sse2_psadbw): Merge with *avx_psadbw.
12713         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12714         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12715         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12716         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12717         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12718         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12719         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12720         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12721         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12722         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12723         (ssse3_palignrti): Merge with *avx_palignrti.
12724
12725 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12726
12727         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12728         * tree-ssanames.c (fini_ssanames): VEC_free it.
12729         (make_ssa_name_fn): Update for VECness of free_ssanames.
12730         (release_ssa_name, release_dead_ssa_names): Likewise.
12731         * tree.h (struct tree_ssa_name): Include tree_typed instead of
12732         tree_common.
12733         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12734         TS_TYPED instead of TS_COMMON.
12735
12736 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12737
12738         * postreload-gcse.c (gcse_after_reload_main): Add calls to
12739         statistics_counter_event.
12740         * tree-ssa-copyrename.c (stats): Define.
12741         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
12742         statistics_counter_event.
12743         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12744         (bswap_stats, widen_mul_stats): Define.
12745         (insert_reciprocals): Increment rdivs_inserted.
12746         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
12747         rfuncs_inserted.  Add calls to statistics_counter_event.
12748         (execute_cse_sincos_1): Increment inserted.
12749         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
12750         statistics_counter_event.
12751         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
12752         of bswap_stats.  Add calls to statistics_counter_event.
12753         (convert_mult_to_widen): Increment widen_mults_inserted.
12754         (convert_plusminus_to_widen): Increment maccs_inserted.
12755         (convert_mult_to_fma): Increment fmas_inserted.
12756         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
12757         calls to statistics_counter_event.
12758
12759 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
12760
12761         PR rtl-optimization/48455
12762         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12763         `temp_costs->mem_cost'.
12764
12765 2011-04-13  Jan Hubicka  <jh@suse.cz>
12766
12767         * ipa-inline.h: New file.
12768         * ipa-inline-analysis.c: New file. Broken out of ...
12769         * ipa-inline.c: ... this file; update toplevel comment;
12770         include ipa-inline.h
12771         (inline_summary): Move to ipa-inline.h
12772         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12773         ipa-inline-analysis.c.
12774         (cgraph_estimate_time_after_inlining): Rename to
12775         estiamte_time_after_inlining; move to ipa-inline-analysis.c
12776         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12777         to estimate_edge_growth.
12778         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12779         rename to estimate_size_after_inlining.
12780         (cgraph_mark_inline_edge): Update for new naming convention.
12781         (cgraph_check_inline_limits): Likewise.
12782         (cgraph_edge_badness): Likewise.
12783         (cgraph_decide_recursive_inlining): Likewise.
12784         (cgraph_decide_inlining_of_small_functions): Likewise.
12785         (cgraph_decide_inlining_incrementally): Likewise.
12786         (cgraph_estimate_growth): Rename to estimate_growth; move to
12787         ipa-inline-analysis.c.
12788         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12789         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12790         (compute_inline_parameters): Likewise.
12791         (compute_inline_parameters_for_current): Likewise.
12792         (pass_inline_parameters): Likewise.
12793         (inline_indirect_intraprocedural_analysis): Likewise.
12794         (analyze_function): Rename to inline_analyze_function; likewise.
12795         (add_new_function): Move to ipa-inline-analysis.c.
12796         (inline_generate_summary): Likewise.
12797         (inline_read_summary): Likewise.
12798         (inline_write_summary): Likewise.
12799         * Makefile.in (ipa-inline-analysis.c): New file.
12800
12801 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12802
12803         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12804         * configure: Regenerate.
12805
12806 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12807
12808         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12809         instead of tree_common.
12810         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12811         Likewise.
12812         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12813         TS_TYPED rather than TS_COMMON.
12814         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12815
12816 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
12817
12818         PR target/45263
12819         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12820         r20 around calls of __tablejump_elpm__
12821
12822 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
12823
12824         PR middle-end/48591
12825         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12826         NULL.
12827         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12828
12829 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
12830
12831         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12832         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12833         (cfi_vec): New typedef.
12834         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12835         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12836         (cie_cfi_vec): New static variable.
12837         (cie_cfi_head): Delete.
12838         (add_cfi): Accept a cfi_vec * as first argument. All callers and
12839         declaration changed. Use vector rather than list operations.
12840         (new_cfi): Don't initialize the dw_cfi_next field.
12841         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12842         rather than list operations.
12843         (lookup_cfa): Use vector rather than list operations.
12844         (output_cfis): New argument upto. Accept a cfi_vec rather than
12845         a dw_cfi_ref list head as argument. All callers changed.
12846         Iterate over the vector using upto as a maximum index.
12847         (output_all_cfis): New static function.
12848         (output_fde): Use vector rather than list operations. Use the
12849         new upto argument for output_cfis rather than manipulating a
12850         list.
12851         (dwarf2out_begin_prologue): Change initializations to match
12852         new struct members.
12853         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12854         from the vector length rather than searching for the end of a list.
12855         Use output_all_cfis.
12856         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12857
12858 2011-04-13  Nick Clifton  <nickc@redhat.com>
12859
12860         * config/rx/rx.md (movmemsi): Do not use this pattern when
12861         volatile pointers are involved.
12862
12863 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
12864
12865         * config/i386/sse.md (pinsrbits): Remove.
12866         (sse2_packsswb): Merge with *avx_packsswb.
12867         (sse2_packssdw): Merge with *avx_packssdw.
12868         (sse2_packuswb): Merge with *avx_packuswb.
12869         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12870         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12871         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12872         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12873         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12874         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12875         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12876         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12877         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12878         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12879         (sse2_loadld): Merge with *avx_loadld.
12880         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12881         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12882         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12883         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12884         (vec_concatv2di): Merge with *vec_concatv2di_avx.
12885
12886 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
12887
12888         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12889         calling TREE_CHAIN.
12890         * print-tree.c (print_node): Likewise.
12891         * tree-inline.c (copy_tree_r): Likewise.
12892         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12893         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12894         instead of TS_COMMON.
12895         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12896         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12897         (copy_node_stat): Zero TREE_CHAIN only if necessary.
12898         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12899         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12900         ...and these...
12901         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12902         * tree.h: ...here.
12903         (TREE_CHAIN): Check for a TS_COMMON structure.
12904         (TREE_TYPE): Check for a TS_TYPED structure.
12905
12906 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
12907
12908         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12909         cgraph_get_create_node instead of cgraph_node.
12910
12911 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12912
12913         * c-parser.c (c_parser_initelt): Updated call to
12914         objc_build_message_expr.
12915         (c_parser_postfix_expression): Likewise.
12916
12917 2011-04-12  Kai Tietz  <ktietz@redhat.com>
12918
12919         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12920         MASK_MS_BITFIELD_LAYOUT bit.
12921
12922 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
12923
12924         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12925         assert it is always true.
12926         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12927         moves.
12928
12929 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
12930
12931         * c-parser.c (c_lex_one_token): Rewritten conditional used when
12932         compiling Objective-C to be more efficient.
12933
12934 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
12935
12936         * opts-common.c (decode_cmdline_options_to_array): Remove variable
12937         argv_copied.
12938
12939 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12940
12941         * recog.h, genoutput.c, optabs.c: Revert last patch.
12942
12943 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12944
12945         PR target/48090
12946         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
12947
12948 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12949
12950         * recog.h (insn_operand_data): Add an "allows_mem" field.
12951         * genoutput.c (output_operand_data): Initialize it.
12952         * optabs.c (maybe_legitimize_operand_same_code): New function.
12953         (maybe_legitimize_operand): Use it when matching the original
12954         op->value.
12955
12956 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12957
12958         * genpreds.c (process_define_predicate): Move most processing
12959         to gensupport.c.  Continue to validate the expression.
12960         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12961         (process_define_predicate): Move processing to gensupport.c.
12962         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12963         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12964         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
12965         argument.
12966         (valid_predicate_name_p): New function, split out from old
12967         genpreds.c:process_define_predicate.
12968         (process_define_predicate): New function, combining code from
12969         old genpreds.c and genrecog.c functions.
12970         (process_rtx): Call it for DEFINE_PREDICATE and
12971         DEFINE_SPECIAL_PREDICATE.
12972
12973 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
12974
12975         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12976         size of a '%A' memory reference.
12977         (T_DREG, T_QREG): New neon_builtin_type_bits.
12978         (arm_init_neon_builtins): Assert that the load and store operands
12979         are neon_struct_operands.
12980         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12981         (NEON_ARG_MEMORY): New builtin_arg.
12982         (neon_dereference_pointer): New function.
12983         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12984         Handle NEON_ARG_MEMORY.
12985         (arm_expand_neon_builtin): Update after above interface changes.
12986         Use NEON_ARG_MEMORY for loads and stores.
12987         * config/arm/predicates.md (neon_struct_operand): New predicate.
12988         * config/arm/iterators.md (V_two_elem): Tweak formatting.
12989         (V_three_elem): Use BLKmode for accesses that have no associated mode.
12990         (V_four_elem): Tweak formatting.
12991         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12992         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12993         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12994         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12995         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12996         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12997         (neon_vst4<mode>): Replace pointer operand with a memory operand.
12998         Use %A in the output template.
12999         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
13000         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
13001         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
13002         the width of the memory access.  Remove post-increment.
13003         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
13004
13005 2011-04-12  Nick Clifton  <nickc@redhat.com>
13006
13007         * config/v850/v850.c (expand_prologue): Do not use the CALLT
13008         instruction for interrupt handlers if the target is the basic V850
13009         architecture.
13010         (expand_epilogue): Likewise.
13011
13012 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13013
13014         PR rtl-optimization/48549
13015         * combine.c (propagate_for_debug): Also stop after BB_END of
13016         this_basic_block.  Process LAST and just stop processing after it.
13017         (combine_instructions): If last_combined_insn has been deleted,
13018         set last_combined_insn to its PREV_INSN.
13019
13020 2011-04-12  Richard Guenther  <rguenther@suse.de>
13021
13022         PR tree-optimization/46076
13023         * gimple.h (struct gimple_statement_call): Add fntype field.
13024         (gimple_call_fntype): Adjust.
13025         (gimple_call_set_fntype): New function.
13026         * gimple.c (gimple_build_call_1): Set the call function type.
13027         * gimplify.c (gimplify_call_expr): Preserve the function
13028         type the frontend used for the call.
13029         (gimplify_modify_expr): Likewise.
13030         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
13031         function type.
13032         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
13033         function type.
13034         * tree-ssa.c (useless_type_conversion_p): Function pointer
13035         conversions are useless.
13036
13037 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13038
13039         * cgraph.h (cgraph_node): Remove function declaration.
13040         (cgraph_create_node): Declare.
13041         (cgraph_get_create_node): Likewise.
13042         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
13043         Updated all callers.
13044         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
13045         the decl does not already exist.  Call cgraph_get_create_node instead
13046         of cgraph_node.
13047         (cgraph_get_create_node): New function.
13048         (cgraph_same_body_alias): Update comment.
13049         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
13050         assert it does not return NULL.
13051         (cgraph_update_edges_for_call_stmt): Likewise.
13052         (cgraph_clone_edge): Likewise.
13053         (cgraph_create_virtual_clone): Likewise.
13054         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
13055         instead of cgraph_node.
13056         (cgraph_add_new_function): Call cgraph_create_node or
13057         cgraph_get_create_node instead of cgraph_node.
13058         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
13059         instead of cgraph_node.
13060         (record_eh_tables): Likewise.
13061         (mark_address): Likewise.
13062         (mark_load): Likewise.
13063         (build_cgraph_edges): Call cgraph_get_create_node instead
13064         of cgraph_node.
13065         (rebuild_cgraph_edges): Likewise.
13066         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
13067         instead of cgraph_node.
13068         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
13069         cgraph_node.
13070         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
13071         cgraph_create_node instead of cgraph_node.
13072         * c-decl.c (finish_function): Call cgraph_get_create_node instead
13073         of cgraph_node.
13074         * lto-cgraph.c (input_node): Likewise.
13075         * lto-streamer-in.c (input_function): Likewise.
13076         * varasm.c (mark_decl_referenced): Likewise.
13077         (assemble_alias): Likewise.
13078
13079 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13080
13081         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
13082         instead of cgraph_node and assert it does not return NULL.
13083         * lto-streamer-in.c (lto_read_body): Likewise.
13084         * omp-low.c (new_omp_context): Likewise.
13085         (create_task_copyfn): Likewise.
13086         * tree-emutls.c (lower_emutls_function_body): Likewise.
13087         * matrix-reorg.c (transform_allocation_sites): Likewise.
13088
13089 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13090
13091         PR c/48552
13092         * c-typeck.c (build_asm_expr): Error out on attempts to use
13093         void type outputs or inputs for constraints that allow reg or
13094         don't allow memory.
13095
13096 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
13097             Richard Earnshaw  <rearnsha@arm.com>
13098
13099         PR target/48250
13100         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
13101         to use sign-magnitude offsets. Reject unsupported unaligned
13102         cases. Add detailed description in comments.
13103         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
13104         condition from TARGET_32BIT to TARGET_ARM.
13105
13106 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
13107
13108         * tree.h (struct typed_tree): New.
13109         (struct tree_common): Include it instead of tree_base.
13110         (TREE_TYPE): Update for new location of type field.
13111         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
13112         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
13113         (union tree_node): Add typed field.
13114         * treestruct.def (TS_TYPED): New.
13115         * lto-streamer.c (check_handled_ts_structures): Handle it.
13116         * tree.c (MARK_TS_TYPED): New macro.
13117         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
13118
13119 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
13120
13121         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
13122         (force_nonfallthru): Do not alter the loop nest if no basic block
13123         was created.
13124
13125 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
13126
13127         * config/i386/sse.md (VI): New mode iterator.
13128         (SSEMODEI): Remove.
13129         (AVX256MODEI): Ditto.
13130         (AVXMODEF4P): Ditto.
13131         (avxvecpsmode): Ditto.
13132         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
13133         (sse2_andnot<mode>3): New expander.
13134         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
13135         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
13136         (<any_logic:code><mode>3): Use VI mode iterator.
13137         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
13138         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
13139         (*andnottf3): Handle AVX three-operand constraints.
13140         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
13141
13142 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13143             Robert Millan  <rmh@gnu.org>
13144
13145         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
13146         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
13147         GNU_USER_DYNAMIC_LINKER64): Define.
13148         (REG_NAME): Don't undefine.
13149         (MD_UNWIND_SUPPORT): Undefine.
13150         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
13151         (REG_NAME): Don't undefine.
13152         (MD_UNWIND_SUPPORT): Undefine.
13153         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
13154
13155 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13156
13157         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
13158         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
13159
13160 2011-04-11  Xinliang David Li  <davidxl@google.com>
13161
13162         * value-profile.c (check_ic_target): New function.
13163         (gimple_ic_transform): Sanity check indirect call target.
13164         * gimple-low.c (gimple_check_call_args): Interface change.
13165         (gimple_check_call_matching_types): New function.
13166         * tree-inline.c (tree_can_inline_p): Call new function.
13167
13168 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
13169
13170         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
13171         tree-pretty-print.h & realmpfr.h.
13172
13173 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
13174
13175         PR middle-end/48464
13176         * ira.c (setup_pressure_classes): Fix typo in loop condition.
13177         (setup_allocno_and_important_classes): Ditto.
13178
13179 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13180
13181         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
13182         GNU_USER_DYNAMIC_LINKER.
13183         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
13184         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13185         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
13186         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13187         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13188         GNU_USER_TARGET_OS_CPP_BUILTINS.
13189         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
13190         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13191         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13192         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13193         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
13194         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13195         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13196         GNU_USER_TARGET_OS_CPP_BUILTINS.
13197         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13198         GNU_USER_DYNAMIC_LINKER.
13199         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13200         GNU_USER_TARGET_OS_CPP_BUILTINS.
13201         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
13202         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13203         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
13204         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13205         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
13206         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
13207         GNU_USER_DYNAMIC_LINKER64): Remove.
13208         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
13209         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13210         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13211         GNU_USER_DYNAMIC_LINKER.
13212         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13213         GNU_USER_TARGET_OS_CPP_BUILTINS.
13214         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13215         GNU_USER_TARGET_OS_CPP_BUILTINS.
13216         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
13217         to GNU_USER_TARGET_OS_CPP_BUILTINS.
13218         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13219         GNU_USER_TARGET_OS_CPP_BUILTINS.
13220         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
13221         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
13222         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13223         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
13224         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13225         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13226         GNU_USER_DYNAMIC_LINKER.
13227         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13228         GNU_USER_TARGET_OS_CPP_BUILTINS.
13229         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
13230         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13231         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13232         GNU_USER_DYNAMIC_LINKER.
13233         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13234         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13235         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
13236         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13237         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13238         GNU_USER_DYNAMIC_LINKER.
13239         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
13240         GNU_USER_DYNAMIC_LINKERN32.
13241         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
13242         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
13243         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
13244         GNU_USER_DYNAMIC_LINKER32.
13245         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
13246         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13247         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13248         GNU_USER_DYNAMIC_LINKER.
13249         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13250         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13251         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
13252         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13253         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13254         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
13255         GNU_USER_DYNAMIC_LINKER32.
13256         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13257         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
13258         GNU_USER_DYNAMIC_LINKER.
13259         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
13260         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13261         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13262         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
13263         GNU_USER_DYNAMIC_LINKER64.
13264         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
13265         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13266         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13267         GNU_USER_DYNAMIC_LINKER.
13268         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
13269         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13270         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13271         GNU_USER_DYNAMIC_LINKER.
13272         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
13273         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13274         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13275         GNU_USER_DYNAMIC_LINKER32.
13276         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13277         GNU_USER_DYNAMIC_LINKER64.
13278         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13279         GNU_USER_DYNAMIC_LINKER64.
13280         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
13281         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13282         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
13283         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13284         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13285
13286 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13287
13288         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
13289         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
13290         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
13291         GNU_USER_DYNAMIC_LINKER.
13292         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13293         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
13294         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
13295         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
13296         GNU_USER_DYNAMIC_LINKER64.
13297         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13298         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
13299         GNU_USER_LINK_EMULATION.
13300         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
13301         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
13302         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
13303         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
13304         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
13305         CPP_SPEC, CC1_SPEC): Remove.
13306         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
13307         (GNU_USER_DYNAMIC_LINKER): Define.
13308         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
13309         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
13310         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
13311         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
13312         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
13313         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
13314         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13315         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
13316         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
13317         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
13318         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
13319         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
13320         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
13321         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
13322         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
13323         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13324         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13325         GNU_USER_DYNAMIC_LINKER.
13326         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13327         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
13328         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13329         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
13330         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13331         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
13332         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
13333         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
13334         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
13335         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
13336
13337 2011-04-11  Kai Tietz  <ktietz@redhat.com>
13338
13339         PR target/9601
13340         PR target/11772
13341         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
13342         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
13343         comment.
13344         (ix86_is_msabi_thiscall): Removed.
13345         (ix86_is_type_thiscall): Likewise.
13346         (ix86_get_callcvt): New function.
13347         (ix86_comp_type_attributes): Simplify check.
13348         (ix86_function_regparm): Use ix86_get_callcvt for calling
13349         convention attribute checks.
13350         (ix86_return_pops_args): Likewise.
13351         (ix86_static_chain): Likewise.
13352         (x86_this_parameter): Likewise.
13353         (x86_output_mi_thunk): Likewise.
13354         (ix86_function_type_abi): Optimize check for types without attributes.
13355         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
13356         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
13357         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
13358         by flag-values.
13359         (IX86_BASE_CALLCVT): Helper macro.
13360         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13361         Use ix86_get_callcvt for calling convention attribute checks and avoid
13362         symbol-decoration for stdcall in TARGET_RTD case.
13363         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
13364         Likewise.
13365         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
13366         for declaration.
13367
13368 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
13369
13370         * config/i386/sse.md (VI_128): New mode iterator.
13371         (VI12_128): Rename from SSEMODE12.
13372         (VI14_128): Rename from SSEMODE14.
13373         (VI124_128): New mode iterator.
13374         (VI24_128): Rename from SSEMODE248.
13375         (VI248_128): Rename from SSEMODE248.
13376         (SSEMODE124C8): Remove.
13377         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13378         (*sse2_<plusminus_insn><mode>3): Merge with
13379         *avx_<plusminus_insn><mode>3.
13380         (*mulv8hi3): Merge with *avx_mulv8hi3.
13381         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
13382         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
13383         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
13384         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
13385         (ashr<mode>3): Merge with *avx_ashr<mode>3.
13386         (lshr<mode>3): Merge with *avx_lshr<mode>3.
13387         (ashl<mode>3): Merge with *avx_ashl<mode>3.
13388         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
13389         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
13390         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13391         (*<smaxmin:code>v8hi3): Ditto.
13392         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
13393         (*<smaxmin:code>v16qi3): Ditto.
13394         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
13395         (*sse2_eq<mode>3): Ditto.
13396         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
13397         (*sse2_gt<mode>3): Ditto.
13398         (vcondv2di): Split out of vcond<mode>.
13399         (vconduv2di): Split out of vcondu<mode>.
13400
13401 2011-04-11  Richard Guenther  <rguenther@suse.de>
13402
13403         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
13404         before calling tree_low_cst.
13405
13406 2011-04-11  Richard Guenther  <rguenther@suse.de>
13407
13408         * stor-layout.c (layout_type): Compute all array index size operations
13409         in the original type.
13410         (initialize_sizetypes): Add comment.
13411         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13412
13413 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13414
13415         * common.opt (Tbss=, Tdata=, Ttext=): New options.
13416
13417 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13418
13419         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13420         of cgraph_node, handle NULL return value.
13421         (cgraph_global_info): Likewise.
13422         (cgraph_rtl_info): Likewise.
13423         * tree-inline.c (estimate_num_insns): Likewise.
13424         * gimplify.c (unshare_body): Likewise.
13425         (unvisit_body): Likewise.
13426         (gimplify_body): Likewise.
13427         * predict.c (optimize_function_for_size_p): Likewise.
13428         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13429         (call_may_clobber_ref_p_1): Likewise.
13430         * varasm.c (function_section_1): Likewise.
13431         (assemble_start_function): Likewise.
13432
13433 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13434
13435         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13436         of cgraph_node.
13437         * final.c (rest_of_clean_state): Likewise.
13438         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13439         * passes.c (pass_init_dump_file): Likewise.
13440         (execute_all_ipa_transforms): Likewise.
13441         (function_called_by_processed_nodes_p): Likewise.
13442         * predict.c (maybe_hot_frequency_p): Likewise.
13443         (probably_never_executed_bb_p): Likewise.
13444         (compute_function_frequency): Likewise.
13445         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13446         (unnest_nesting_tree_1): Likewise.
13447         (lower_nested_functions): Likewise.
13448         * tree-optimize.c (execute_fixup_cfg): Likewise.
13449         (tree_rest_of_compilation): Likewise.
13450         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13451         * tree-sra.c (ipa_early_sra): Likewise.
13452         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13453         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13454         * ipa.c (record_cdtor_fn): Likewise.
13455         * ipa-inline.c (cgraph_early_inlining): Likewise.
13456         (compute_inline_parameters_for_current): Likewise.
13457         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13458         * ipa-pure-const.c (local_pure_const): Likewise.
13459         * ipa-split.c (split_function): Likewise.
13460         (execute_split_functions): Likewise.
13461         * cgraphbuild.c (build_cgraph_edges): Likewise.
13462         (rebuild_cgraph_edges): Likewise.
13463         (cgraph_rebuild_references): Likewise.
13464         (remove_cgraph_callee_edges): Likewise.
13465         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13466         (verify_cgraph_node): Likewise.
13467         (cgraph_analyze_functions): Likewise.
13468         (cgraph_preserve_function_body_p): Likewise.
13469         (save_inline_function_body): Likewise.
13470         (save_inline_function_body): Likewise.
13471         * tree-inline.c (copy_bb): Likewise.
13472         (optimize_inline_calls): Likewise.
13473
13474 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13475
13476         PR tree-optimization/48195
13477         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13478         ipa_check_create_edge_args.
13479         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13480         ipa_check_create_edge_args.
13481         * ipa-inline.c (inline_generate_summary): Do not call
13482         ipa_check_create_node_params and ipa_check_create_edge_args.
13483         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13484         ipa_check_create_edge_args.
13485
13486 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
13487
13488         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13489         instead of loop.
13490         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13491         * function.c (record_hard_reg_sets): Likewise.
13492         * ira.c (compute_regs_asm_clobbered): Likewise.
13493         * sched-deps.c (sched_analyze_1): Likewise.
13494         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13495
13496 2011-04-09  Xinliang David Li  <davidxl@google.com>
13497
13498         PR tree-optimization/PR48484
13499         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13500         has_valid_pred lazily
13501
13502 2011-04-09  Duncan Sands  <baldrick@free.fr>
13503
13504         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13505
13506 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13507
13508         * combine.c (combine_validate_cost): Adjust comments.  Set registered
13509         cost of I0 to zero at the end, if any.
13510
13511 2011-04-08  Xinliang David Li  <davidxl@google.com>
13512
13513         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13514         to insane profile data.
13515
13516 2011-04-08  Xinliang David Li  <davidxl@google.com>
13517
13518         * ipa-cp.c (ipcp_update_profiling): Correct
13519          negative scale factor due to insane profile data.
13520
13521 2011-04-08  Xinliang David Li  <davidxl@google.com>
13522
13523         * final.c (dump_basic_block_info): New function.
13524         (final): Dump basic block.
13525         (final_scan_insn): Remove old dump.
13526
13527 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
13528
13529         PR target/47829
13530         * config.gcc (i386-*-freebsd): Disable unwind table generation for
13531         crtbegin/crtend.
13532
13533 2011-04-08  Michael Matz  <matz@suse.de>
13534
13535         PR middle-end/48389
13536         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13537         functions.
13538         (rebuild_jump_labels): Call rebuild_jump_labels_1.
13539         * rtl.h (rebuild_jump_labels_chain): Declare.
13540         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13541         insns inserted on edges.
13542
13543 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
13544
13545         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13546         * config/arm/arm-arches.def: New.
13547         * config/arm/arm-opts.h: New.
13548         * config/arm/genopt.sh: New.
13549         * config/arm/arm-tables.opt: New (generated).
13550         * config/arm/arm.c (arm_handle_option, arm_target_help,
13551         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13552         (all_architectures): Get most table contents from arm-arches.def.
13553         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13554         arm_selected_tune here.
13555         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13556         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13557         (march=, mcpu=, mtune=): Use Enum and Var.
13558         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13559         (arm.o): Update dependencies.
13560
13561 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
13562
13563         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13564         of header_file.
13565         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13566         (write_typed_alloc_defns): Likewise.
13567         (main): Calls write_typed_alloc_defns with output_header.
13568
13569 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
13570
13571         PR inline-asm/48435
13572         * ira-color.c (setup_profitable_hard_regs): Add comments.
13573         Don't take prohibited hard regs into account.
13574         (setup_conflict_profitable_regs): Rename to
13575         get_conflict_profitable_regs.
13576         (check_hard_reg_p): Check prohibited hard regs.
13577
13578 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
13579
13580         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13581         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13582         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13583
13584 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13585
13586         PR target/48366
13587         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13588         move from floating point to shift amount register.
13589         (emit_move_sequence): Remove secondary reload support for floating
13590         point to shift amount amount register copies.
13591         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13592         amount register copies.
13593         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13594         register, return false if mode isn't a scalar integer mode.
13595         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13596
13597 2011-04-08  Richard Guenther  <rguenther@suse.de>
13598
13599         * gimple.c (gimple_call_flags): Remove kludge.
13600
13601 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13602
13603         * sel-sched.c (sel_region_init): Move call to
13604         sel_setup_region_sched_flags after setup_current_loop_nest.
13605
13606 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
13607
13608         PR rtl-optimization/48272
13609         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13610         init_insn_reg_pressure_info.  Adjust a caller.
13611         * sched-int.h (init_insn_reg_pressure_info): Declare.
13612         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13613         when sched-pressure is enabled.
13614
13615 2011-04-08  Richard Guenther  <rguenther@suse.de>
13616
13617         * gimple.c (gimple_set_modified): Do not queue calls to
13618         MODIFIED_NORETURN_CALLS here ...
13619         * tree-ssa-operands.c (update_stmt_operands): ... but here.
13620
13621 2011-04-08  Richard Guenther  <rguenther@suse.de>
13622
13623         PR lto/48467
13624         * toplev.c (lang_dependent_init): Do not open asm_out_file
13625         in WPA mode, nor perform debug machinery initialization.
13626         (finalize): Do not unlink asm_out_file in WPA mode.
13627
13628 2011-04-08  Richard Guenther  <rguenther@suse.de>
13629
13630         * gimple.h (gimple_call_fntype): New function.
13631         (gimple_call_return_type): Use it.
13632         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13633         * gimple-low.c (gimple_check_call_args): Likewise.
13634         * gimple.c (gimple_call_flags): Likewise.
13635         (gimple_call_arg_flags): Likewise.
13636         (gimple_call_return_flags): Likewise.
13637         * tree-cfg.c (verify_gimple_call): Likewise.
13638         (do_warn_unused_result): Likewise.
13639         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13640         * value-prof.c (gimple_ic_transform): Fix fndecl check.
13641
13642 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
13643
13644         PR rtl-optimization/48235
13645         * sel-sched.c (code_motion_process_successors): Recompute the last
13646         insn in basic block if control flow changed.
13647         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
13648         Update condition for ilist_remove.
13649
13650 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13651
13652         PR rtl-optimization/48302
13653         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13654         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
13655         it to record added preheader blocks.
13656         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
13657         on to sel_add_loop_preheaders.
13658         (sel_region_init): Move call to setup_current_loop_nest after
13659         sel_init_bbs.
13660
13661 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13662
13663         PR target/48273
13664         * cfgloop.h (loop_has_exit_edges): New helper.
13665         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13666         non-clonable.
13667         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13668         that have no exit edges.
13669
13670 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13671
13672         PR rtl-optimization/48442
13673         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
13674         all callers.  Adjust assert.
13675
13676 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
13677
13678         PR tree-optimization/48377
13679         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13680         is_packed to true even for types with smaller TYPE_ALIGN than
13681         TYPE_SIZE.
13682
13683 2011-04-08  Richard Guenther  <rguenther@suse.de>
13684
13685         PR bootstrap/48513
13686         * doc/tm.texi: Re-generate.
13687
13688 2011-04-08  Wei Guozhi  <carrot@google.com>
13689
13690         PR target/47855
13691         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13692         * config/arm/arm.c (arm_attr_length_push_multi): New function.
13693         * config/arm/arm.md (*push_multi): Change the length computation to
13694         call a C function.
13695
13696 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
13697
13698         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13699         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13700         * doc/tm.texi: Regenerate.
13701         * system.h (ASM_OUTPUT_BSS): Poison.
13702         * varasm.c (asm_output_bss): Remove function.
13703         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13704
13705         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13706         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13707         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13708         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13709         Likewise.
13710         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13711         Likewise.
13712         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13713         Likewise.
13714         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13715
13716 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13717
13718         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13719         EnumValue lines.
13720
13721 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13722
13723         * config/m68k/m68k.c (m68k_handle_option): Don't handle
13724         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13725         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13726         OPT_mcpu32.
13727         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13728         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13729         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13730         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13731         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13732         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13733         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13734         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13735         options.  Don't map other m68k options manually.  Don't handle
13736         old-style options as canonical.
13737         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13738         * doc/install.texi (m68k-*-*): Document binutils version requirement.
13739
13740 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
13741
13742         * basic-block.h (force_nonfallthru): Move to...
13743         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13744         (force_nonfallthru): ...here.
13745         * cfghooks.c (force_nonfallthru): New function.
13746         * cfgrtl.c (force_nonfallthru): Rename into...
13747         (rtl_force_nonfallthru): ...this.
13748         (commit_one_edge_insertion): Do not set AUX field.
13749         (commit_edge_insertions): Do not discover new basic blocks.
13750         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13751         (cfg_layout_rtl_cfg_hooks): Likewise.
13752         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13753         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
13754         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13755
13756 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
13757
13758         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13759         Remove macros.
13760
13761 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
13762
13763         * config/i386/sse.md: Update copyright year.
13764         (avxcvtvecmode): Remove.
13765         (sse_movhlps): Merge with *avx_movhlps.
13766         (sse_movlhps): Merge with *avx_movlhps.
13767         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13768         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13769         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13770         (sse_loadhps): Merge with *avx_loadhps.
13771         (sse_storelps): Merge with *avx_storelps.
13772         (sse_loadlps): Merge with *avx_loadlps.
13773         (sse_movss): Merge with *avx_movss.
13774         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13775         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13776         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13777         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13778         (vec_set<mode>_0): Ditto.
13779         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13780         (sse4_1_insertps): Merge with *avx_insertps.
13781         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13782         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13783         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13784         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13785         (sse2_storehpd): Merge with *avx_storehpd.
13786         (sse2_loadhpd): Merge with *avx_loadhpd.
13787         (sse2_loadlpd): Merge with *avx_loadlpd.
13788         (sse2_movsd): Merge with *avx_movsd.
13789         (*vec_concatv2df): Merge with *vec_concatv2df.
13790
13791 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
13792
13793         PR debug/48343
13794         * combine.c (combine_instructions): Add last_combined_insn,
13795         update it if insn is after it, pass it to all try_combine calls.
13796         (try_combine): Add last_combined_insn parameter, pass it instead of
13797         i3 to propagate_for_debug.
13798
13799 2011-04-07  Nick Clifton  <nickc@redhat.com>
13800
13801         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13802         to handle MDR <-> data register transfers.
13803         (movhi_internal): Likewise.
13804
13805 2011-04-07  Alan Modra  <amodra@gmail.com>
13806
13807         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13808         previous stack info.
13809
13810 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13811
13812         PR target/43920
13813         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
13814         flow_find_cross_jump.  Swap variables to implement backward replacement.
13815         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13816
13817 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13818
13819         PR target/43920
13820         * cfgcleanup.c (walk_to_nondebug_insn): New function.
13821         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
13822         and bb2.
13823         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13824         src1 or src2.  Redirect edges to the last basic block.  Update
13825         frequency and count on multiple basic blocks in case of fallthru.
13826
13827 2011-04-07  Tom de Vries  <tom@codesourcery.com>
13828
13829         PR target/43920
13830         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13831         function.
13832         (old_insns_match_p): Change return type.  Replace return false/true
13833         with return dir_none/dir_both.  Use can_replace_by.
13834         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
13835         direction from dir_p.  Register replacement direction in dir, last_dir
13836         and afterlast_dir.  Handle new return type of old_insns_match_p using
13837         merge_dir.  Return replacement direction in dir_p.
13838         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13839         return type of old_insns_match_p.
13840         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13841         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13842         flow_find_cross_jump.
13843         * basic-block.h (enum replace_direction): New type.
13844         (flow_find_cross_jump): Add parameter to declaration.
13845
13846 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
13847
13848         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13849         (AVXMODEDCVTPS2DQ): Ditto.
13850         (VEC_FLOAT_MODE): Ditto.
13851         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
13852         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13853         (<any_logic:code><mode>3): Use VF mode iterator.
13854         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13855         Use VF mode iterator.
13856         (copysign<mode>3): Use VF mode iterator.
13857         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
13858         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13859         (*<any_logic:code><MODEF:mode>3): Merge with
13860         *avx_<any_logic:code><MODEF:mode>3.
13861         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13862         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13863         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13864         (avx_cvtdq2ps<avxmodesuffix>): Remove.
13865         (sse2_cvtdq2ps): Use %v modifier.
13866         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13867         (avx_cvtps2dq<avxmodesuffix>): Remove.
13868         (sse2_cvtps2dq): Use %v modifier.
13869         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13870         (avx_cvttps2dq<avxmodesuffix>): Remove.
13871         (sse2_cvttps2dq): Use %v modifier.
13872         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13873         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13874         (sse2_cvtsd2siq): Fix insn template.
13875         (sse2_cvtsd2siq_2): Ditto.
13876         (sse2_cvttsd2siq): Ditto.
13877         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13878         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13879
13880 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13881
13882         * gcov-io.c: Use GCC Runtime Library Exception.
13883
13884 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
13885
13886         PR debug/48466
13887         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13888         as base_reg whatever register reg has been eliminated to, instead
13889         of hardcoding STACK_POINTER_REGNUM.
13890
13891 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
13892
13893         * doc/tm.texi.in: Document C target hooks as separate from general
13894         target hooks.
13895         * doc/tm.texi: Regenerate.
13896         * genhooks.c (struct hook_desc): Add docname field.
13897         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
13898         docname field.
13899         (hook_array): Include c-target.def.
13900         (emit_documentation): Use docname field in output.
13901         (emit_init_macros): Take docname argument.  Only emit definitions
13902         for hooks matching docname.
13903         (main): Expect additional arguments in all cases.  Pass argument
13904         to emit_init_macros.
13905         * target.def: Move initial macro definitions and comments to
13906         target-hooks-macros.h.
13907         (gcc_targetcm): Move to c-family/c-target.def.
13908         * target.h (targetcm): Move declaration to c-family/c-target.h.
13909         * targhooks.c (default_handle_c_option): Move to
13910         c-family/c-opts.c.
13911         * targhooks.h (default_handle_c_option): Move declaration to
13912         c-family/c-common.h.
13913         * target-hooks-macros.h: New file.
13914         * config.gcc (target_has_targetcm): Define and use to add to
13915         c_target_objs and cxx_target_objs.
13916         * config/default-c.c: New file.
13917         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13918         of target.h and target-def.h.
13919         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13920         (darwin_objc_construct_string, darwin_cfstring_ref_p,
13921         darwin_check_cfstring_format_arg): Make static.
13922         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13923         TARGET_STRING_OBJECT_REF_TYPE_P,
13924         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13925         * config/darwin-protos.h (darwin_objc_construct_string,
13926         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13927         declare.
13928         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13929         TARGET_STRING_OBJECT_REF_TYPE_P,
13930         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
13931         * config/t-darwin (darwin-c.o): Update dependencies.
13932         * system.h (TARGET_HAS_TARGETCM): Poison.
13933         * Makefile.in (TARGET_H): Update.
13934         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13935         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13936         (default-c.o): New target.
13937         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
13938         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
13939         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
13940         c-target.def.
13941         (build/genhooks.o): Update dependencies.
13942
13943 2011-04-06  Richard Guenther  <rguenther@suse.de>
13944
13945         * ipa-inline.c (enum inlining_mode): Remove.
13946         (cgraph_flatten): Use some other token.
13947         (cgraph_edge_early_inlinable_p): New function, split out from ...
13948         (cgraph_perform_always_inlining): New function, split out from ...
13949         (cgraph_decide_inlining_incrementally): ... here.
13950         (cgraph_mark_inline_edge): Adjust.
13951         (cgraph_early_inlining): Re-structure.
13952         (pass_early_inline): Require SSA form.
13953
13954 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
13955             Julian Brown  <julian@codesourcery.com>
13956             Mark Shinwell  <shinwell@codesourcery.com>
13957
13958         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13959         LO_REGS only for Thumb-1.
13960         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13961         be used in short instructions when optimising for size on Thumb-2.
13962
13963 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
13964
13965         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13966         associated with user returns to be preserved.
13967
13968 2011-04-06  Tristan Gingold  <gingold@adacore.com>
13969
13970         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13971         symbol_queue_size, DBXOUT_DECR_NESTING,
13972         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13973         if XCOFF_DEBUGGING_INFO.
13974
13975 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
13976
13977         * config/i386/i386.md (attribute isa): New.
13978         (attribute enabled): New.
13979         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13980         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13981         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13982         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13983         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13984         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13985         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13986         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13987
13988         * config/i386/sse.md (VF): New mode iterator.
13989         (VF1): Ditto.
13990         (VF2): Ditto.
13991         (VF_128): Ditto.
13992         (SSEMODEF4): Remove.
13993         (attribute sse): Handle V8SF and V4DF modes.
13994         (<absneg:code><mode>2): Use VF mode iterator.
13995         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
13996         mode iterator.
13997         (<plusminus_insn><mode>3): Use VF mode iterator.
13998         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13999         Use VF mode iterator.
14000         (<sse>_vm<plusminus_insn><mode>3): Merge with
14001         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
14002         (mul<mode>3): Use VF mode iterator.
14003         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
14004         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
14005         mode iterator.
14006         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
14007         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
14008         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
14009         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
14010         mode iterator.
14011         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
14012         Use VF1 mode iterator.
14013         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
14014         (sqrt<VF2:mode>2): New expander.
14015         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
14016         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
14017         and sqrtv2df2.  Use VF mode iterator.
14018         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
14019         mode iterator.
14020         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
14021         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
14022         Use VF1 mode iterator.
14023         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
14024         (<smaxmin:code><mode>3): Use VF mode iterator.
14025         (*<smaxmin:code><mode>3_finite): Merge with
14026         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
14027         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14028         (<sse>_vm<smaxmin:code><mode>2): Merge with
14029         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
14030         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
14031         mode iterator.
14032         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
14033         mode iterator.
14034         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
14035         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
14036         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
14037         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
14038         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
14039         VF mode iterator.
14040         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
14041         Use VF_128 mode iterator.
14042         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
14043         mode iterator.
14044         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
14045         VF_128 mode iterator.
14046         (vcond<mode>): Use VF mode iterator.
14047         * config/i386/predicates.md (sse_comparison_operator): Merge with
14048         avx_comparison_float_operator.  Do not declare as special_predicate.
14049         * config/i386/i386.c (struct builtin_description): Update for renamed
14050         compare patterns.
14051         (ix86_expand_args_builtin): Ditto.
14052         (ix86_expand_sse_compare_mask): Ditto.
14053
14054 2011-04-06  Richard Guenther  <rguenther@suse.de>
14055
14056         * tree-inline.c (estimate_num_insns): For calls simply account
14057         for all passed arguments and a used return value.
14058
14059 2011-04-06  Richard Guenther  <rguenther@suse.de>
14060
14061         PR tree-optimization/47663
14062         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
14063         call_stmt_time fields.
14064         (cgraph_edge_inlinable_p): Declare.
14065         (cgraph_edge_recursive_p): New inline function.
14066         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
14067         (cgraph_clone_edge): Copy it.
14068         * ipa-inline.c (cgraph_estimate_edge_time): New function.
14069         Account for call stmt time.
14070         (cgraph_estimate_time_after_inlining): Take edge argument.
14071         (cgraph_estimate_edge_growth): Account call stmt size.
14072         (cgraph_estimate_size_after_inlining): Take edge argument.
14073         (cgraph_mark_inline_edge): Adjust.
14074         (cgraph_check_inline_limits): Likewise.
14075         (cgraph_recursive_inlining_p): Remove.
14076         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
14077         (cgraph_decide_recursive_inlining): Take edge argument and
14078         adjust.
14079         (cgraph_decide_inlining_of_small_functions): Do not avoid
14080         diags for recursive inlining here.
14081         (cgraph_flatten): Adjust.
14082         (cgraph_decide_inlining_incrementally): Likewise.
14083         (estimate_function_body_sizes): Remove call cost handling.
14084         (compute_inline_parameters): Initialize caller edge call costs.
14085         (cgraph_estimate_edge_growth): New function.
14086         (cgraph_estimate_growth): Use it.
14087         (cgraph_edge_badness): Likewise.
14088         (cgraph_check_inline_limits): Take an edge argument.
14089         (cgraph_decide_inlining_of_small_functions): Adjust.
14090         (cgraph_decide_inlining): Likewise.
14091         * tree-inline.c (estimate_num_insns): Only account for call
14092         return value if it is used.
14093         (expand_call_inline): Avoid diagnostics on recursive inline
14094         functions here.
14095         * lto-cgraph.c (lto_output_edge): Output edge call costs.
14096         (input_edge): Input edge call costs.
14097
14098 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14099
14100         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
14101
14102 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
14103
14104         * doc/invoke.texi (Spec Files): Fix typo.
14105
14106 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14107
14108         * profile.c (branch_prob): Move declaration of local variable.  Remove
14109         obsolete ??? comment.  Expand the location explicitly instead of using
14110         the LOCATION_FILE and LOCATION_LINE macros.
14111
14112 2011-04-06  Wei Guozhi  <carrot@google.com>
14113
14114         PR target/47855
14115         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
14116         (arm_cond_branch): Likewise.
14117         (arm_cond_branch_reversed): Likewise.
14118         (arm_jump): Likewise.
14119         (push_multi): Likewise.
14120         * config/arm/constraints.md (Py): New constraint.
14121
14122 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14123
14124         PR bootstrap/48471
14125         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
14126         Move these...
14127         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
14128         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
14129         #ifdef DBX_DEBUGGING_INFO.
14130
14131 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
14132
14133         PR bootstrap/48403
14134         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
14135         if old and new states differ.
14136
14137 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
14138
14139         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
14140         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
14141         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
14142         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
14143         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
14144         mcfv4e): Use Alias.
14145         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
14146         ColdFire options to -mcpu= options.
14147
14148 2011-04-05  Jeff Law  <law@redhat.com>
14149
14150         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
14151         check if BB is a successor of LOOP->header and return
14152         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
14153
14154 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
14155
14156         * cprop.c (struct reg_use): Remove.
14157         (reg_use_table): Make an array of RTX.
14158         (find_used_regs, constprop_register, local_cprop_pass,
14159         bypass_block): Simplify users of reg_use_table.
14160         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
14161         on one of the uses found by find_used_regs.
14162
14163 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14164
14165         PR bootstrap/48469
14166         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
14167         declaration.
14168
14169 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14170
14171         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
14172         as an rtx.
14173         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
14174
14175 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
14176
14177         PR middle-end/48441
14178         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
14179
14180 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14181
14182         * combine.c: Include obstack.h.
14183         (struct insn_link): Define.
14184         (uid_log_links): Adjust type.
14185         (FOR_EACH_LOG_LINK): New macro.
14186         (insn_link_obstack): Declare.
14187         (alloc_insn_link): Define.
14188         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
14189         type of link variables.
14190         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
14191         (try_combine, record_promoted_values, distribute_notes): Likewise.
14192         (distribute_links): Likewise.  Tweak prototype.
14193         (clear_log_links): Delete.
14194         (adjust_for_new_dest): Call alloc_insn_link.
14195         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
14196
14197 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14198
14199         * gcse.c (modify_mem_list): Convert to an array of VECs.
14200         (canon_modify_mem_list, compute_transp): Tweak formatting.
14201         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
14202         (load_killed_in_block_p): Likewise.
14203         (record_last_mem_set_info): Likewise.
14204         (clear_modify_mem_tables): Likewise.
14205
14206 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14207
14208         PR middle-end/48461
14209         * function.c (emit_use_return_register_into_block): Only define if
14210         HAVE_return.
14211
14212 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
14213
14214         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
14215
14216 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
14217
14218         * config/rx/rx-opts.h: New.
14219         * config/rx/rx.c (rx_cpu_type): Remove.
14220         (rx_handle_option): Don't assert that global structures are in
14221         use.  Access variables via opts pointer.  Defer most handling of
14222         OPT_mint_register_.  Use error_at.
14223         (rx_option_override): Handle deferred OPT_mint_register_ here.
14224         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
14225         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
14226         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
14227         (rx_cpu_types): New Enum and EnumValue entries.
14228         (mint-register=): Use Defer and use Var accordingly.
14229
14230 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14231
14232         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
14233         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
14234         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
14235         Move these...
14236         (debug_free_queue, debug_nesting, symbol_queue_index):
14237         ...and these...
14238         * dbxout.c: ...to here.  Make static.
14239
14240 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14241
14242         * gcse.c (modify_pair): Define.  Define a VEC of it.
14243         (canon_modify_mem_list): Convert to an array of VECs.
14244         (free_insn_expr_list_list): Delete.
14245         (clear_modify_mem_tables): Call VEC_free instead.
14246         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
14247         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
14248         (canon_list_insert, compute_transp): Likewise.
14249
14250 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14251
14252         PR target/43920
14253         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
14254         for size.
14255
14256 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14257
14258         PR target/43920
14259         * function.c (emit_use_return_register_into_block): New function.
14260         (thread_prologue_and_epilogue_insns): Use
14261         emit_use_return_register_into_block.
14262
14263 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14264
14265         PR target/43920
14266         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
14267         insn.
14268
14269 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14270
14271         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
14272
14273 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
14274
14275         * config/arm/arm.md (define_constants for unspec): Replace with
14276         define_c_enum.
14277         (define_constants for unspecv): Replace with define_c_enum.
14278         * config/arm/neon.md (define_constants for unspec): Replace with
14279         define_c_enum.
14280
14281 2011-04-04  Richard Henderson  <rth@redhat.com>
14282
14283         PR bootstrap/48400
14284         * dwarf2out.c (output_line_info): Always emit line info from
14285         at least one section.
14286         (dwarf2out_init): Create text_section_line_info here ...
14287         (set_cur_line_info_table): ... not here.
14288
14289 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
14290
14291         PR target/48380
14292         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
14293         not called.
14294
14295         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
14296
14297 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
14298
14299         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
14300         (expr_equiv_p): Remove.
14301         (insert_set_in_table): Look at <dest, src> pair instead of expr.
14302         (hash_scan_set): Update call to insert_set_in_table.
14303         (dump_hash_table): Dump <dest, src> pair.
14304         (lookup_set): Simplify.  Lookup <dest, src> pair.
14305         (compute_transp): Remove, fold heavily simplified code into...
14306         (compute_local_properties): ...here.  Expect COMP and TRANSP
14307         unconditionally.
14308         (find_avail_set): Take set directly from struct expr.
14309         (find_bypass-set): Likewise.
14310         (bypass_block): Likewise.
14311         (cprop_insn): Likewise.  Remove redundant INSN_P test.
14312
14313         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
14314         checks on form of COND from find_implicit_sets to here.
14315         (find_implicit_sets): Cleanup control flow. Split critical edges
14316         if it exposes implicit sets.  Allocate/resize implicit_sets as
14317         necessary.
14318         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
14319         changed something.  Run df_analyze after find_implicit_sets if any
14320         edges were split.  Do not allocate implicit_sets here.
14321
14322         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
14323         (gcse_obstack): Renamed to cprop_obstack.
14324         (GNEW, GNEWVEC, GNEWVAR): Remove.
14325         (gmalloc): Remove.
14326         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
14327         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
14328         (gcse_alloc): Likewise, and rename to cprop_alloc.
14329         (alloc_gcse_men, free_gcse_mem): Remove.
14330         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
14331         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
14332         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
14333
14334         * cprop.c (oprs_not_set_p): Remove.
14335         (mark_set, mark_clobber): Remove.
14336         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
14337         (reg_not_set_p): New function.
14338         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
14339         (cprop_insn): Likewise.
14340         (cprop_jump): Use FOR_EACH_EDGE.
14341
14342 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
14343
14344         PR bootstrap/48403
14345         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
14346         (rank_for_schedule): Use scheduled_insns vector instead of
14347         last_scheduled_insn.
14348         (ok_for_early_queue_removal): Likewise.
14349         (queue_to_ready): Search forward in nonscheduled_insns_begin if
14350         we have a dbg_cnt.
14351         (choose_ready): Likewise.
14352         (commit_schedule): Use VEC_iterate.
14353         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
14354         a dbg_cnt, use it and ensure the first insn is in the ready list.
14355         (haifa_sched_init): Allocate scheduled_insns.
14356         (sched_extend_ready_list): Don't allocate it; reserve space.
14357         (haifa_sched_finish): Free it.
14358
14359 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
14360
14361         * optc-gen.awk: Always remove type from Variable entry before
14362         recording in var_seen.
14363
14364 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
14365
14366         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
14367         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
14368         call to tidy_fallthru_edges.
14369
14370 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
14371
14372         * doc/options.texi (ToLower): Document.
14373         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
14374         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
14375         * opts.h (cl_option): Add cl_tolower field.
14376         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
14377         arguments with lowercase strings.
14378         * config/rx/rx.opt (mcpu=): Add ToLower.
14379         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
14380         argument.
14381
14382 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
14383
14384         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
14385
14386 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
14387
14388         * config/vax/vax.c: Include reload.h.
14389
14390 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
14391
14392         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
14393         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14394         (sparc_preferred_reload_class): New function.
14395
14396 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
14397
14398         PR debug/48401
14399         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14400         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
14401
14402 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
14403
14404         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
14405         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
14406
14407 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
14408
14409         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
14410         (ASM_OUTPUT_ALIGNED_BSS): Define.
14411
14412 2011-04-03  Michael Matz  <matz@suse.de>
14413
14414         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14415         and next_slot members.
14416         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14417         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14418         (lto_streamer_cache_append): Declare.
14419         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14420         unsigned index, remove offset parameter, ensure that we append
14421         or update existing entries.
14422         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14423         parameter, update next_slot for append.
14424         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14425         parameter.
14426         (lto_streamer_cache_insert_at): Likewise.
14427         (lto_streamer_cache_append): New function.
14428         (lto_streamer_cache_lookup): Use unsigned index.
14429         (lto_streamer_cache_get): Likewise.
14430         (lto_record_common_node): Don't test tree_node_can_be_shared.
14431         (preload_common_node): Adjust call to lto_streamer_cache_insert.
14432         (lto_streamer_cache_delete): Don't free offsets member.
14433         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14434         (lto_output_string_with_length): Use lto_output_data_stream.
14435         (lto_output_tree_header): Remove ix parameter, don't write it.
14436         (lto_output_builtin_tree): Likewise.
14437         (lto_write_tree): Adjust callers to above, don't track and write
14438         offset, write unsigned index.
14439         (output_unreferenced_globals): Don't emit all global vars.
14440         (write_global_references): Use unsigned indices.
14441         (lto_output_decl_state_refs): Likewise.
14442         (write_symbol): Likewise.
14443         * lto-streamer-in.c (lto_input_chain): Move earlier.
14444         (input_function): Use unsigned index.
14445         (input_alias_pairs): Don't read and then ignore all global vars.
14446         (lto_materialize_tree): Remove ix_p parameter, don't read index,
14447         don't pass it back, use lto_streamer_cache_append.
14448         (lto_register_var_decl_in_symtab): Use unsigned index.
14449         (lto_register_function_decl_in_symtab): Likewise.
14450         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14451         index.
14452         (lto_get_builtin_tree): Don't read index, use
14453         lto_streamer_cache_append.
14454         (lto_read_tree): Adjust call to lto_materialize_tree.
14455
14456         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14457         don't use function calls in arguments to MIN.
14458
14459         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14460         twice.
14461
14462         * gimple.c (gimple_type_leader_entry): Mark deletable.
14463
14464 2011-04-03  Alan Modra  <amodra@gmail.com>
14465
14466         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14467
14468 2011-04-03  Michael Matz  <matz@suse.de>
14469
14470         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14471         an integer.
14472         * tree.h (tree_decl_non_common.vindex): Adjust comment.
14473
14474 2011-04-03  Michael Matz  <matz@suse.de>
14475
14476         * cgraphbuild.c (record_reference): Canonicalize constructor values.
14477         * gimple-fold.c (canonicalize_constructor_val): Accept being called
14478         without function context.
14479         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14480         current_function_decl and cfun.
14481
14482 2011-04-03  Michael Matz  <matz@suse.de>
14483
14484         * tree.c (decl_init_priority_insert): Don't create entry for
14485         default priority.
14486         (decl_fini_priority_insert): Ditto.
14487         (fields_compatible_p, find_compatible_field): Remove.
14488         * tree.h (fields_compatible_p, find_compatible_field): Remove.
14489         * gimple.c (gimple_compare_field_offset): Adjust block comment.
14490
14491 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
14492
14493         * combine.c (try_combine): Remove useless local variable.
14494
14495 2011-04-03  Richard Guenther  <rguenther@suse.de>
14496             Ira Rosen  <ira.rosen@linaro.org>
14497
14498         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14499         non-variable offsets and compare the remaining bases of the two
14500         accesses instead of looking for exact same data-ref.
14501
14502 2011-04-02  Kai Tietz  <ktietz@redhat.com>
14503
14504         PR target/48416
14505         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14506
14507         * i386.c (ix86_is_msabi_thiscall): New helper function.
14508         (ix86_is_type_thiscall): New helper function.
14509         (ix86_comp_type_attributes): Handle thiscall for method-functions
14510         special.
14511         (init_cumulative_args): Likewise.
14512         (find_drap_reg): Likewise.
14513         (ix86_static_chain): Likewise.
14514         (x86_this_parameter): Likewise.
14515         (x86_output_mi_thunk): Likewise.
14516
14517 2011-04-01  Olivier Hainque  <hainque@adacore.com>
14518             Nicolas Setton  <setton@adacore.com>
14519             Eric Botcazou  <ebotcazou@adacore.com>
14520
14521         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14522         (add_gnat_descriptive_type_attribute): New function.
14523         (gen_array_type_die): Call it.
14524         (gen_enumeration_type_die): Likewise.
14525         (gen_struct_or_union_type_die): Likewise.
14526         (modified_type_die): Likewise.
14527         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14528         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14529         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14530
14531 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14532
14533         PR bootstrap/48148
14534         * dwarf2out.c (resolve_addr): Don't call force_decl_die
14535         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14536
14537         Revert:
14538         2011-03-17  Richard Guenther  <rguenther@suse.de>
14539
14540         PR bootstrap/48148
14541         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14542         origin for decls in other ltrans units.
14543         (input_varpool_node): Likewise.
14544
14545 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14546
14547         PR middle-end/48335
14548         * expr.c (expand_assignment): Handle all possibilities
14549         if TO_RTX is CONCAT.
14550         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14551         (store_split_bit_field): If SUBREG_REG (op0) or
14552         op0 itself has smaller mode than word, return it
14553         for offset 0 and const0_rtx for out-of-bounds stores.
14554         If word is const0_rtx, skip it.
14555
14556 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
14557
14558         * config/h8300/h8300.c (print_operand_address): Rename to...
14559         (h8300_print_operand_address): ...this. Make static. Adjust comments.
14560         Call h8300_print_operand and h8300_print_operand_address instead of
14561         print_operand and print_operand_address. Declare.
14562         (print_operand): Renake to...
14563         (h8300_print_operand): ...this. Make static. Adjust comments.
14564         Call h8300_print_operand instead of print_operand. Declare.
14565         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14566         (h8300_register_move_cost): Likewise.
14567         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14568         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14569         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14570         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14571         * config/h8300/h8300-protos.h (print_operand): Delete.
14572         (print_operand_address): Delete.
14573
14574 2011-04-01  Richard Henderson  <rth@redhat.com>
14575
14576         PR 48400
14577         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14578         in strict mode before dwarf4.  Re-order tests to early out
14579         before switching sections.
14580
14581 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
14582
14583         * config/h8300/constraints.md: New file.
14584         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
14585         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14586         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14587         * config/h8300/predicates.md (bit_operand): Likewise.
14588         (incdec_operand): Use satisfies_constraint_M and
14589         satisfies_constraint_O.  Don't use C code block.
14590         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14591         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14592         (compute_mov_length): Use satisfies_constraint_G.
14593         (fix_bit_operand): Use satisfies_constraint_U.
14594         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14595         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14596         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14597         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14598         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14599         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14600         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14601         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14602         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14603         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14604         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14605         (EXTRA_MEMORY_CONSTRAINT): Delete.
14606
14607 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
14608             Michael Meissner  <meissner@linux.vnet.ibm.com>
14609
14610         PR target/48262
14611         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14612         operands, as per the specifications.
14613
14614         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14615         (vec_extract_evenv4sf): Ditto.
14616         (vec_extract_evenv8hi): Ditto.
14617         (vec_extract_evenv16qi): Ditto.
14618         (vec_extract_oddv4si): Ditto.
14619
14620 2011-03-31  Mark Wielaard  <mjw@redhat.com>
14621
14622         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14623         high_pc attribute if the CU has no associated code. Only output
14624         DW_AT_entry_pc for CU if not generating strict dwarf and
14625         dwarf_version < 4.
14626
14627 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
14628
14629         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14630         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14631         out of ...
14632         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14633         * final.c (final_start_function): Call the new function rather
14634         than using a NULL argument for dwarf2out_frame_debug.
14635
14636         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14637         that contains the prologue.
14638
14639         * haifa-sched.c (queue_insn): New arg REASON.  All callers
14640         changed.  Print it in debugging output.
14641
14642         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14643
14644         * sched-ebb.c (begin_schedule_ready): Remove second argument.
14645         Split most of the code into...
14646         (begin_move_insn): ... here.  New function.
14647         (ebb_sched_info): Add a pointer to it.
14648         * haifa-sched.c (scheduled_insns): New static variable.
14649         (sched_extend_ready_list): Allocate it.
14650         (schedule_block): Use it to record the order of scheduled insns.
14651         Perform RTL changes to move insns only after all scheduling
14652         decisions have been made.
14653         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14654         begin_move_insn field.
14655         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14656         * sched-int.h (struct haifa_sched_info): Remove second argument
14657         from begin_schedule_ready hook.  Add new member begin_move_insn.
14658         * sched-rgn.c (begin_schedule_ready): Remove second argument.
14659         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14660
14661         * haifa-sched.c (prune_ready_list): New function, broken out of
14662         schedule_block.
14663         (schedule_block): Use it.
14664
14665 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14666
14667         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14668
14669 2011-04-01  Kai Tietz  <ktietz@redhat.com>
14670
14671         * config.gcc (*-*-mingw*): Allow as option the
14672         posix threading model.
14673         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
14674         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14675         definition.
14676         (CPP_SPEC): Add pthread/no-pthread handling.
14677         (LIB_SPEC): Likewise.
14678         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14679         (LIB_SPEC): Likewise.
14680         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14681         flag to pass -pthread option for shared libgcc build.
14682         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14683         for shared libgcc build.
14684         * config/i386/t-mingw-pthread: New file.
14685         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14686         New define to enable use of library pthread by default.
14687         * config/i386/mingw.opt (pthread): New driver option.
14688         (no-pthread): New driver option.
14689         * config/i386/cygming.opt: Make sure trailing empty line is retained.
14690         * config/i386/mingw-w64.opt: Likewise.
14691
14692 2011-04-01  Gary Funck  <gary@intrepid.com>
14693
14694         * c-decl.c (grokdeclarator): Fix formatting.
14695
14696 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14697
14698         * expr.c (emit_block_move_via_movmem): Use n_generator_args
14699         instead of n_operands.
14700         (set_storage_via_setmem): Likewise.
14701         * optabs.c (maybe_gen_insn): Likewise.
14702         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14703         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14704         (mips_expand_builtin_direct): Likewise.
14705         * config/spu/spu.c (expand_builtin_args): Likewise.
14706
14707 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14708
14709         * recog.h (insn_data_d): Add n_generator_args.
14710         * genoutput.c (data): Likewise.
14711         (output_insn_data): Print it.
14712         (max_opno, num_dups): Delete.
14713         (scan_operands): Just fill in "d->operand[...]".
14714         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14715
14716 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14717
14718         * gensupport.h (pattern_stats): New structure.
14719         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14720         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14721         (max_operand_1, max_operand_vec): Delete.
14722         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14723
14724 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
14725
14726         * emit-rtl.c (emit_pattern_after_setloc): New function.
14727         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14728         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14729         (emit_pattern_after): New function.
14730         (emit_insn_after, emit_jump_insn_after): Call it.
14731         (emit_call_insn_after, emit_debug_insn_after): Likewise.
14732         (emit_pattern_before_setloc): New function.
14733         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14734         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14735         Likewise.
14736         (emit_pattern_before): New function.
14737         (emit_insn_before, emit_jump_insn_before): Call it.
14738         (emit_call_insn_before, emit_debug_insn_before): Likewise.
14739
14740 2011-03-31  Richard Henderson  <rth@redhat.com>
14741
14742         * dwarf2out.c (dw_separate_line_info_ref): Remove.
14743         (dw_separate_line_info_entry): Remove.
14744         (enum dw_line_info_opcode): New.
14745         (dw_line_info_entry): Use it.
14746         (dw_line_info_table, dw_line_info_table_p): New.
14747         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14748         (line_info_table, line_info_label_num): Remove.
14749         (line_info_table_in_use): Remove.
14750         (separate_line_info_table): Remove.
14751         (separate_line_info_table_allocated): Remove.
14752         (separate_line_info_table_in_use): Remove.
14753         (LINE_INFO_TABLE_INCREMENT): Remove.
14754         (line_info_label_num): New.
14755         (cur_line_info_table): New.
14756         (text_section_line_info, cold_text_section_line_info): New.
14757         (separate_line_info): New.
14758         (SEPARATE_LINE_CODE_LABEL): Remove.
14759         (print_dwarf_line_table): Remove.
14760         (debug_dwarf): Don't dump it.
14761         (output_one_line_info_table): New.
14762         (output_line_info): Use it.
14763         (new_line_info_table): New.
14764         (set_cur_line_info_table): New.
14765         (dwarf2out_switch_text_section): Use it.
14766         (dwarf2out_begin_function): Likewise.
14767         (push_dw_line_info_entry): New.
14768         (dwarf2out_source_line): Rewrite for new line info tables.
14769         (dwarf2out_init): Remove dead initailizations.
14770
14771 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
14772
14773         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
14774         various flags.
14775         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14776         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14777         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14778         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14779         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14780         * opt-functions.awk (flag_init, switch_bit_fields): New.
14781         (switch_flags): Don't handle flags moved to bit-fields.  Don't
14782         generate CL_MISSING_OK or CL_SAVE.
14783         * optc-gen.awk: Update to generate bit-field output as well as
14784         flags field.
14785         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14786         bit-field instead of CL_REJECT_DRIVER flag.
14787         * opts-common.c (generate_canonical_option,
14788         decode_cmdline_option): Use bit-fields instead of CL_* flags.
14789         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14790         instead of CL_REJECT_NEGATIVE flag.
14791         * toplev.c (print_switch_values): Use cl_report bit-field instead
14792         of CL_REPORT flag.
14793
14794 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
14795
14796         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14797         a zero minimum index only if it is redundant.
14798
14799 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
14800
14801         PR rtl-optimization/48381
14802         * ira-color.c (assign_hard_reg): Use hard reg set intersection
14803         instead of ira_class_hard_reg_index for calculating conflicting
14804         hard registers.
14805
14806 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
14807
14808         * cprop.c: Clean up hash table building.
14809         (reg_avail_info): Remove.
14810         (oprs_available_p): Remove.
14811         (record_last_reg_set_info): Remove.
14812         (record_last_set_info): Remove.
14813         (reg_available_p): New function.
14814         (gcse_constant_p): Do not treat unfolded conditions as constants.
14815         (make_set_regs_unavailable): New function.
14816         (hash_scan_set): Simplify with new reg_available_p.
14817         (compute_hash_table_work): Traverse insns stream only once.
14818         Do not compute reg_avail_info. Traverse insns in reverse order.
14819         Record implicit sets after recording explicit sets from the block.
14820
14821 2011-03-31  Michael Matz  <matz@suse.de>
14822
14823         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14824
14825 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
14826
14827         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14828         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14829         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14830         (h8300_mode_dependent_address_p): New function.
14831         (h8300_get_index): Make static.
14832
14833 2011-03-31  Jeff Law  <law@redhat.com>
14834
14835         * reload1.c (elimination_effects): Fix typo in recent change.
14836
14837         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14838         typo potentially leading to null pointer dereference.
14839
14840         * caller-save.c (new_saved_hard_reg): Eliminate return value.
14841         (setup_save_areas): Corresponding changes to avoid useless
14842         assignments.
14843
14844         * jump.c (reversed_comparison_code_parts): Avoid successive return
14845         statements when REVERSE_CONDITION is defined.
14846
14847         * expr.c (expand_assignment): Avoid useless assignments.
14848         (expand_expr_real_1): Likewise.
14849         (expand_expr_real_2): Avoid useless statements.
14850
14851         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14852
14853         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14854
14855         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14856         statements.
14857
14858         * stmt.c (expand_expr_stmt): Avoid useless assignment.
14859
14860 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
14861
14862         PR target/47109
14863         * doc/tm.texi.in (TARGET_VERSION): Remove.
14864         * doc/tm.texi: Regenerate.
14865         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14866         * collect2.c (main): Don't use TARGET_VERSION.
14867         * mips-tdump.c (main): Don't use TARGET_VERSION.
14868         * mips-tfile.c (main): Don't use TARGET_VERSION.
14869         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14870         * config/rs6000/vxworksae.h: Remove.
14871         * config/alpha/alpha.h (TARGET_VERSION): Remove.
14872         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14873         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14874         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14875         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14876         * config/arm/arm.h (TARGET_VERSION): Remove.
14877         * config/arm/coff.h (TARGET_VERSION): Remove.
14878         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14879         * config/arm/elf.h (TARGET_VERSION): Remove.
14880         * config/arm/freebsd.h (TARGET_VERSION): Remove.
14881         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14882         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14883         * config/arm/pe.h (TARGET_VERSION): Remove.
14884         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14885         * config/arm/semi.h (TARGET_VERSION): Remove.
14886         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14887         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14888         * config/arm/vxworks.h (TARGET_VERSION): Remove.
14889         * config/avr/avr.h (TARGET_VERSION): Remove.
14890         * config/bfin/bfin.h (TARGET_VERSION): Remove.
14891         * config/fr30/fr30.h (TARGET_VERSION): Remove.
14892         * config/frv/frv.h (TARGET_VERSION): Remove.
14893         * config/h8300/h8300.h (TARGET_VERSION): Remove.
14894         * config/i386/cygwin.h (TARGET_VERSION): Remove.
14895         * config/i386/darwin.h (TARGET_VERSION): Remove.
14896         * config/i386/darwin64.h (TARGET_VERSION): Remove.
14897         * config/i386/djgpp.h (TARGET_VERSION): Remove.
14898         * config/i386/freebsd.h (TARGET_VERSION): Remove.
14899         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14900         * config/i386/gnu.h (TARGET_VERSION): Remove.
14901         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14902         * config/i386/i386elf.h (TARGET_VERSION): Remove.
14903         * config/i386/linux.h (TARGET_VERSION): Remove.
14904         * config/i386/linux64.h (TARGET_VERSION): Remove.
14905         * config/i386/lynx.h (TARGET_VERSION): Remove.
14906         * config/i386/mingw32.h (TARGET_VERSION): Remove.
14907         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14908         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14909         * config/i386/netware.h (TARGET_VERSION): Remove.
14910         * config/i386/nto.h (TARGET_VERSION): Remove.
14911         * config/i386/openbsd.h (TARGET_VERSION): Remove.
14912         * config/i386/vxworks.h (TARGET_VERSION): Remove.
14913         * config/ia64/elf.h (TARGET_VERSION): Remove.
14914         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14915         * config/ia64/hpux.h (TARGET_VERSION): Remove.
14916         * config/ia64/linux.h (TARGET_VERSION): Remove.
14917         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14918         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14919         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14920         * config/lm32/lm32.h (TARGET_VERSION): Remove.
14921         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14922         * config/m32c/m32c.h (TARGET_VERSION): Remove.
14923         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14924         * config/m32r/m32r.h (TARGET_VERSION): Remove.
14925         * config/m68k/linux.h (TARGET_VERSION): Remove.
14926         * config/m68k/m68k.h (TARGET_VERSION): Remove.
14927         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14928         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14929         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14930         * config/mep/mep.h (TARGET_VERSION): Remove.
14931         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14932         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14933         * config/mips/iris6.h (MACHINE_TYPE): Remove.
14934         * config/mips/linux.h (TARGET_VERSION): Remove.
14935         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14936         * config/mips/vxworks.h (TARGET_VERSION): Remove.
14937         * config/mmix/mmix.h (TARGET_VERSION): Remove.
14938         * config/mn10300/linux.h (TARGET_VERSION): Remove.
14939         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14940         * config/pa/pa.h (TARGET_VERSION): Remove.
14941         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14942         * config/picochip/picochip.h (TARGET_VERSION): Remove.
14943         * config/rs6000/aix.h (TARGET_VERSION): Remove.
14944         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14945         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14946         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14947         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14948         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14949         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14950         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14951         * config/rs6000/linux.h (TARGET_VERSION): Remove.
14952         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14953         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14954         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14955         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14956         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14957         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14958         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14959         * config/s390/linux.h (TARGET_VERSION): Remove.
14960         * config/s390/s390.h (TARGET_VERSION): Remove.
14961         * config/s390/tpf.h (TARGET_VERSION): Remove.
14962         * config/score/score.h (TARGET_VERSION): Remove.
14963         * config/sh/linux.h (TARGET_VERSION): Remove.
14964         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14965         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14966         * config/sh/sh.h (TARGET_VERSION): Remove.
14967         * config/sh/sh64.h (TARGET_VERSION): Remove.
14968         * config/sh/superh.h (TARGET_VERSION): Remove.
14969         * config/sh/vxworks.h (TARGET_VERSION): Remove.
14970         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14971         * config/sparc/linux.h (TARGET_VERSION): Remove.
14972         * config/sparc/linux64.h (TARGET_VERSION): Remove.
14973         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14974         TARGET_NAME32, TARGET_NAME): Remove.
14975         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14976         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14977         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14978         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14979         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14980         * config/spu/spu.h (TARGET_VERSION): Remove.
14981         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14982         * config/v850/v850.h (TARGET_VERSION): Remove.
14983         * config/vax/linux.h (TARGET_VERSION): Remove.
14984         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14985         * config/xtensa/elf.h (TARGET_VERSION): Remove.
14986         * config/xtensa/linux.h (TARGET_VERSION): Remove.
14987
14988 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
14989
14990         PR target/48142
14991         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14992         frame-related from frame-unrelated adjustments to the stack pointer.
14993
14994 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
14995
14996         * common.opt (fdebug-types-section): Move earlier.
14997         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14998
14999 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
15000
15001         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
15002         var.
15003
15004 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
15005
15006         * tree.h (CASE_CHAIN): Define.
15007         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
15008         (gimple_redirect_edge_and_branch): Likewise.
15009
15010 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15011
15012         PR middle-end/48367
15013         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
15014         calculation.
15015
15016 2011-03-30  Jeff Law  <law@redhat.com>
15017
15018         * PR bootstrap/48371
15019         * reload1.c (reload): Fix botch in last change.
15020
15021         * reload.h (struct reload): Fix typo introduced in last change.
15022
15023 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15024
15025         * config/arm/arm.opt (mhard-float, msoft-float): Mark
15026         Undocumented.  Remove help text.
15027         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
15028         -mhard-float.
15029
15030 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15031
15032         * doc/options.texi (NegativeAlias): Document.
15033         (Alias): Mention NegativeAlias.
15034         * opt-functions.awk: Handle NegativeAlias.
15035         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
15036         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
15037         * opts.h (CL_NEGATIVE_ALIAS): Define.
15038         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
15039         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
15040         OPT_mspe_.
15041         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
15042         Alias entries.
15043         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15044         mno-spe and mno-isel instead of mspe=no and -misel=no.
15045
15046 2011-03-29  Mark Wielaard  <mjw@redhat.com>
15047
15048         * common.opt (fdebug-types-section): New flag.
15049         * doc/invoke.texi: Document new -fno-debug-types-section flag.
15050         * dwarf2out.c (use_debug_types): New define.
15051         (struct die_struct): Mark die_id with GTY desc use_debug_types.
15052         (print_die): Guard output of type unit signatures using
15053         use_debug_types.
15054         (build_abbrev_table): Replace assert of dwarf_version >= 4
15055         with assert on use_debug_types.
15056         (size_of_die): Likewise.
15057         (unmark_dies): Likewise.
15058         (value_format): Decide AT_ref_external form on use_debug_types.
15059         (output_die): Replace dwarf_version version check guard with
15060         use_debug_types where appropriate.
15061         (modified_type_die): Likewise.
15062         (gen_reference_type_die): Likewise.
15063         (dwarf2out_start_source_file): Likewise.
15064         (dwarf2out_end_source_file): Likewise.
15065         (prune_unused_types_walk_attribs): Likewise.
15066         (dwarf2out_finish): Likewise.
15067
15068 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15069
15070         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
15071
15072 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15073
15074         PR rtl-optimization/48332
15075         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
15076         mode of input operand N and modeN to its actual mode.
15077
15078 2011-03-30  Jeff Law  <law@redhat.com>
15079
15080         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
15081         define accessor macro.
15082         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
15083         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
15084         (reg_equiv_init): Likewise.
15085         (reg_equivs_size): New variable.
15086         (reg_equiv_init_size): Remove.
15087         (allocate_initial_values): Move prototype to here from....
15088         * integrate.h (allocate_initial_values): Remove prototype.
15089         * integrate.c: Include reload.h.
15090         (allocate_initial_values): Corresponding changes.
15091         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
15092         (fix_reg_equiv_init, no_equiv): Corresponding changes.
15093         (update_equiv_regs): Corresponding changes.
15094         (ira): Corresponding changes.
15095         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
15096         (push_secondary_reload): Corresponding changes.
15097         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
15098         (make_memloc, find_reloads_address): Corresponding changes.
15099         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
15100         (find_reloads_address_1): Corresponding changes.
15101         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
15102         (refers_to_regno_for_reload_p): Corresponding changes.
15103         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
15104         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
15105         * reload1.c: Include ggc.h.
15106         (grow_reg_equivs): New function.
15107         (replace_pseudos_in, reload): Corresponding changes.
15108         (calculate_needs_all_insns, alter_regs): Corresponding changes.
15109         (eliminate_regs_1, elimination_effects): Corresponding changes.
15110         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
15111         (delete_output_reload): Likewise.
15112         * caller-save.c (mark_referenced_regs): Corresponding changes.
15113         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
15114         * frv/predicates.md (frv_load_operand): Corresponding changes.
15115         * microblaze/microblaze.c (double_memory_operand): Corresponding
15116         changes.
15117         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
15118         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
15119         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
15120         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
15121         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
15122         changes.
15123         * pa/pa.c (emit_move_sequence): Corresponding changes.
15124         * vax/vax.c (nonindexed_address_p): Corresponding changes.
15125
15126 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15127
15128         PR target/47551
15129         * config/arm/arm.c (coproc_secondary_reload_class): Handle
15130         structure modes.  Don't check neon_vector_mem_operand for
15131         vector or structure modes.
15132
15133 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15134             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15135
15136         PR target/43590
15137         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
15138         operand 1 and reshuffle the operands to match.
15139         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
15140
15141 2011-03-30  Christian Schüler  <cschueler@gmx.de>
15142
15143         PR driver/48208
15144         * config/c.opt (F): Added 'Driver' to -F option.
15145
15146         PR driver/48260
15147         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
15148           handler function.
15149         * config/darwin.opt: Added '-arch' option.
15150
15151 2011-03-30  Nick Clifton  <nickc@redhat.com>
15152
15153         * config/rx/rx.md: Add peepholes and patterns to combine
15154         extending loads and simple arithmetic instructions.
15155         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
15156         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
15157         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
15158         modes to use pre-decrement and post-increment addressing.
15159         (rx_is_restricted_memory_address): Add range checking of REG+INT
15160         addresses.
15161         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
15162         (rx_memory_move_cost): Adjust cost of stores.
15163         (rx_adjust_insn_length): New function.
15164
15165 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
15166
15167         PR c/48305
15168         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15169         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
15170         matching arg00/arg01 types.
15171
15172 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
15173
15174         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
15175         last_location to UNKNOWN_LOCATION.
15176
15177 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
15178
15179         PR target/48349
15180         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
15181         FLOAT_SSE_REGS.
15182
15183 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15184             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15185
15186         PR bootstrap/48337
15187         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
15188         Init(PROCESSOR_V7).
15189         (sparc_cpu): Likewise.
15190         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
15191         PROCESSOR_V7.
15192
15193 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15194
15195         PR target/48336
15196         PR middle-end/48342
15197         PR rtl-optimization/48345
15198         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
15199         hard regs for given mode from profitable regs when doing secondary
15200         allocation.
15201
15202 2011-03-29  Jeff Law  <law@redhat.com>
15203
15204         PR bootstrap/48327
15205         * tree-ssa-threadupdate.c (struct redirection_data): Remove
15206         do_not_duplicate field.
15207         (lookup_redirection_data): Corresponding changes.
15208         (create_duplicates): Always create a template block.
15209         (redirect_edges): Remove code which reused the original block
15210         when it was going to become unreachable code.
15211         (thread_block): Don't set do_not_duplicate field.
15212
15213 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
15214
15215         * lto-opts.c (register_user_option_p, lto_register_user_option):
15216         Make type argument unsigned.
15217         * lto-streamer.h (lto_register_user_option): Make type argument
15218         unsigned.
15219         * opth-gen.awk: Make CL_* macros unsigned.
15220         * opts-common.c (find_opt): Make lang_mask argument unsigned.
15221         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
15222         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
15223         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
15224         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
15225         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
15226         (find_opt): Make lang_mask argument unsigned.
15227
15228 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15229
15230         PR rtl-optimization/48331
15231         PR rtl-optimization/48334
15232         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
15233         for any used algorithm.
15234
15235 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15236
15237         * ira-conflicts.c (build_object_conflicts): Add unused attribute
15238         to parent_max.
15239
15240 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
15241
15242         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
15243         (alpha_option_override): Don't set alpha_sr_alias_set.
15244         (emit_frame_store_1): Use gen_frame_mem rather than calling
15245         set_mem_alias_set.
15246         (alpha_expand_epilogue): Ditto.
15247
15248 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
15249
15250         PR tree-optimization/48290
15251         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
15252         vectorization, check that relevant phis in the basic block after
15253         the inner loop are really inner loop's exit phis.
15254
15255 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
15256
15257         PR debug/48190
15258         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
15259         (cached_dw_loc_list_def): New structure.
15260         (cached_dw_loc_list): New typedef.
15261         (cached_dw_loc_list_table): New variable.
15262         (cached_dw_loc_list_table_hash): New function.
15263         (cached_dw_loc_list_table_eq): Likewise.
15264         (add_location_or_const_value_attribute): Take a bool cache_p.
15265         Cache the list when the parameter is true.
15266         (gen_formal_parameter_die): Update caller.
15267         (gen_variable_die): Likewise.
15268         (dwarf2out_finish): Likewise.
15269         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
15270         while generating debug info for the decl.
15271         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
15272         (dwarf2out_init): Initialize cached_dw_loc_list_table.
15273         (resolve_addr): Cache the result of resolving a chain of
15274         location lists.
15275
15276 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
15277
15278         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
15279         conflict object hard regset nodes have intersecting hard reg sets.
15280
15281         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
15282         after regstat_init_n_sets_and_refs.
15283
15284         * ira.c: Add more comments at the top.
15285         (setup_stack_reg_pressure_class, setup_pressure_classes):
15286         Add comments how we compute the register pressure classes.
15287         (setup_allocno_and_important_classes): Add more comments.
15288         (setup_class_translate_array, reorder_important_classes)
15289         (setup_reg_class_relations): Add comments.
15290
15291         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
15292         start of the file.
15293
15294         * ira-color.c: Add 2011 to the Copyright line.
15295         (assign_hard_reg):  Add more comments.
15296         (improve_allocation): Ditto.
15297
15298         * ira-costs.c: Add 2011 to the Copyright line.
15299         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
15300         comments.
15301         (setup_regno_cost_classes_by_mode): Ditto.
15302
15303         Initial patches from ira-improv branch:
15304
15305         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
15306
15307         * ira-build.c (ira_create_object): Remove initialization of
15308         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
15309         (ira_create_allocno): Remove initialization of
15310         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
15311         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
15312         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15313         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
15314         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
15315         Initialize ALLOCNO_ADD_DATA.
15316         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
15317         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
15318         ALLOCNO_REG.
15319         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
15320         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
15321
15322         * ira.c (ira_reallocate): Remove.
15323         (setup_pressure_classes): Call
15324         ira_init_register_move_cost_if_necessary.  Use
15325         ira_register_move_cost instead of ira_get_register_move_cost.
15326         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
15327         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
15328
15329         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
15330         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15331         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
15332         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
15333         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
15334         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
15335         Fix formatting.
15336         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
15337         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15338         (struct allocno_color_data): New.
15339         (allocno_color_data_t): New typedef.
15340         (allocno_color_data): New definition.
15341         (ALLOCNO_COLOR_DATA): New macro.
15342         (struct object_color_data): New.
15343         (object_color_data_t): New typedef.
15344         (object_color_data): New definition.
15345         (OBJECT_COLOR_DATA): New macro.
15346         (update_copy_costs, calculate_allocno_spill_cost): Call
15347         ira_init_register_move_cost_if_necessary.  Use
15348         ira_register_move_cost instead of ira_get_register_move_cost.
15349         (move_spill_restore, update_curr_costs): Ditto.
15350         (allocno_spill_priority): Make it inline.
15351         (color_pass): Allocate and free allocno_color_dat and object_color_data.
15352         (struct coalesce_data, coalesce_data_t): New.
15353         (allocno_coalesce_data): New definition.
15354         (ALLOCNO_COALESCE_DATA): New macro.
15355         (merge_allocnos, coalesced_allocno_conflict_p): Use
15356         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
15357         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
15358         (coalesce_allocnos): Ditto.
15359         (setup_coalesced_allocno_costs_and_nums): Ditto.
15360         (collect_spilled_coalesced_allocnos): Ditto.
15361         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
15362         (setup_slot_coalesced_allocno_live_ranges): Ditto.
15363         (coalesce_spill_slots): Ditto.
15364         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
15365         free allocno_coalesce_data.
15366
15367         * ira-conflicts.c: Fix formatting.
15368         (process_regs_for_copy): Call
15369         ira_init_register_move_cost_if_necessary.  Use
15370         ira_register_move_cost instead of ira_get_register_move_cost.
15371         (build_object_conflicts): Optimize.
15372
15373         * ira-costs.c (record_reg_classes): Optimize.  Call
15374         ira_init_register_move_cost_if_necessary.  Use
15375         ira_register_move_cost, ira_may_move_in_cost, and
15376         ira_may_move_out_cost instead of ira_get_register_move_cost and
15377         ira_get_may_move_cost.
15378         (record_address_regs): Ditto.
15379         (scan_one_insn): Optimize.
15380         (find_costs_and_classes): Optimize.
15381         (process_bb_node_for_hard_reg_moves): Call
15382         ira_init_register_move_cost_if_necessary.  Use
15383         ira_register_move_cost instead of ira_get_register_move_cost.
15384
15385         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
15386         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
15387         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
15388         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
15389         definitions.
15390         (ira_initiate_emit_data, ira_finish_emit_data)
15391         (create_new_allocno): New functions.
15392         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
15393         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
15394         Use ira_register_move_cost instead of ira_get_register_move_cost.
15395
15396         * ira-int.h: Fix some comments.
15397         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
15398         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15399         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
15400         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
15401         add_data.
15402         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
15403         bitfield after mode.  Make hard_regno a short int.  Make
15404         hard_regno short.  Remove first_coalesced_allocno and
15405         next_coalesced_allocno.  Move mem_optimized_dest_p,
15406         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
15407         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
15408         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
15409         temp, colorable_p.  Add new member add_data.
15410         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
15411         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15412         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15413         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15414         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15415         (ALLOCNO_ADD_DATA): New macro.
15416         (ira_emit_data_t): New typedef.
15417         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
15418         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15419         from struct ira_allocno.
15420         (ALLOCNO_EMIT_DATA): New macro.
15421         (ira_allocno_emit_data, allocno_emit_reg): New.
15422         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
15423         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
15424         (OBJECT_ADD_DATA): New macro.
15425         (ira_reallocate): Remove.
15426         (ira_initiate_emit_data, ira_finish_emit_data): New.
15427         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15428         (ira_init_register_move_cost_if_necessary): New.
15429         (ira_object_conflict_iter_next): Merge into
15430         ira_object_conflict_iter_cond.
15431         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
15432
15433         * ira-live.c (process_single_reg_class_operands): Call
15434         ira_init_register_move_cost_if_necessary.  Use
15435         ira_register_move_cost instead of ira_get_register_move_cost.
15436
15437         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
15438
15439         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15440
15441         * ira-costs.c: Fix formatting.
15442         (cost_classes, cost_classes_num): Remove.
15443         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15444         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15445         (cost_classes_del, cost_classes_htab): New.
15446         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15447         (initiate_regno_cost_classes, setup_cost_classes): New.
15448         (setup_regno_cost_classes_by_aclass): New.
15449         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15450         (record_reg_classes): Use regno_cost_classes instead of
15451         cost_classes.  Move checking opposite operand up.
15452         (record_address_regs): Use regno_cost_classes
15453         instead of cost_classes.
15454         (scan_one_insn): Ditto.  Use always general register.
15455         (print_allocno_costs): Use regno_cost_classes instead of
15456         cost_classes.
15457         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
15458         (find_costs_and_classes): Set up cost classes for each registers.
15459         Use also their mode for this.  Use regno_cost_classes instead of
15460         cost_classes.
15461         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15462         cost_classes.
15463         (free_ira_costs, ira_init_costs): Don't use cost_classes.
15464         (ira_costs, ira_set_pseudo_classes): Call
15465         initiate_regno_cost_classes and finish_regno_cost_classes.
15466
15467         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
15468
15469         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15470
15471         * target.def (ira_cover_classes): Remove.
15472
15473         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15474
15475         * doc/tm.texi.in: Ditto.
15476
15477         * ira-conflicts.c: Remove mentioning cover classes from the file.
15478         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
15479         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
15480
15481         * targhooks.c (default_ira_cover_classes): Remove.
15482
15483         * targhooks.h (default_ira_cover_classes): Ditto.
15484
15485         * haifa-sched.c: Remove mentioning cover classes from the file.
15486         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15487         ira_pressure_classes and ira_pressure_classes_num instead of
15488         ira_reg_class_cover_size and ira_reg_class_cover.  Use
15489         sched_regno_pressure_class instead of sched_regno_cover_class.
15490         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15491         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15492
15493         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
15494         classes from the file.
15495         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15496         (struct object_hard_regs, struct object_hard_regs_node): New.
15497         (struct ira_object): New members profitable_hard_regs,
15498         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15499         (struct ira_allocno): Rename cover_class to aclass.  Rename
15500         cover_class_cost and updated_cover_class_cost to class_cost and
15501         updated_class_cost.  Remove splay_removed_p and
15502         left_conflict_size.  Add new members colorable_p.
15503         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15504         (ALLOCNO_COLORABLE_P): New macro.
15505         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15506         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15507         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15508         (OBJECT_...): Rename parameter C to O.
15509         (OBJECT_PROFITABLE_HARD_REGS): New macro.
15510         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15511         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15512         (struct target_ira_int): New members x_ira_max_memory_move_cost,
15513         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15514         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15515         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15516         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
15517         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
15518         x_ira_reg_class_subunion.
15519         (ira_max_memory_move_cost, ira_max_register_move_cost)
15520         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15521         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15522         (ira_important_class_nums, ira_reg_class_superunion): New macros.
15523         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15524         (ira_reg_class_union): Rename to ira_reg_class_subunion.
15525         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15526         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15527         (ira_tune_allocno_costs_and_cover_classes): Rename to
15528         ira_tune_allocno_costs.
15529         (ira_debug_hard_regs_forest): New.
15530         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15531         (ira_object_conflict_iter_next): Fix comments.
15532         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15533         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15534         cover_class to aclass.
15535         (ira_allocate_and_accumulate_costs): Ditto.
15536         (ira_allocate_and_set_or_copy_costs): Ditto.
15537
15538         * opts.c (decode_options): Remove ira_cover_class check.
15539
15540         * ira-color.c: Remove mentioning cover classes from the file.  Use
15541         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15542         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15543         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15544         (splay-tree.h): Remove include.
15545         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15546         before copy_freq_compare_func.
15547         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15548         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15549         New definitions.
15550         (hard_regs_roots, hard_regs_node_vec): Ditto.
15551         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15552         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15553         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15554         (create_new_object_hard_regs_node): Ditto.
15555         (add_new_object_hard_regs_node_to_forest): Ditto.
15556         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15557         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15558         Ditto.
15559         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15560         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15561         (remove_unused_object_hard_regs_nodes): Ditto.
15562         (enumerate_object_hard_regs_nodes): Ditto.
15563         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15564         (object_hard_regs_subnode_t): Ditto.
15565         (struct object_hard_regs_subnode): Ditto.
15566         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15567         (setup_object_hard_regs_subnode_index): Ditto.
15568         (get_object_hard_regs_subnodes_num): Ditto.
15569         (form_object_hard_regs_nodes_forest): Ditto.
15570         (finish_object_hard_regs_nodes_tree): Ditto.
15571         (finish_object_hard_regs_nodes_forest): Ditto.
15572         (allocnos_have_intersected_live_ranges_p): Rename to
15573         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15574         (pseudos_have_intersected_live_ranges_p): Rename to
15575         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15576         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15577         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15578         (update_copy_costs): Remove assert.  Skip cost update if the hard
15579         reg does not belong the class.
15580         (assign_hard_reg): Process only profitable hard regs.
15581         (uncolorable_allocnos_num): Make it scalar.
15582         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15583         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15584         and ira_reg_class_max_nregs.
15585         (bucket_allocno_compare_func): Check frequency first.
15586         (sort_bucket): Add compare function as a parameter.
15587         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15588         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15589         (push_allocno_to_stack): Rewrite for checking new allocno
15590         colorability.
15591         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
15592         (push_only_colorable): Pass new parameter to sort_bucket.
15593         (push_allocno_to_spill): Remove.
15594         (allocno_spill_priority_compare): Make it inline and rewrite.
15595         (splay_tree_allocate, splay_tree_free): Remove.
15596         (allocno_spill_sort_compare): New function.
15597         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
15598         build and use splay tree.  Choose first allocno in uncolorable
15599         allocno bucket to spill.  Remove setting spill cost.
15600         (all_conflicting_hard_regs): Remove.
15601         (setup_allocno_available_regs_num): Check only profitable hard
15602         regs.  Print info about hard regs nodes.
15603         (setup_allocno_left_conflicts_size): Remove.
15604         (put_allocno_into_bucket): Don't call
15605         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
15606         (improve_allocation): New.
15607         (color_allocnos): Call setup_profitable_hard_regs,
15608         form_object_hard_regs_nodes_forest, improve_allocation,
15609         finish_object_hard_regs_nodes_forest.  Setup spill cost.
15610         (print_loop_title): Use pressure classes.
15611         (color_allocnso): Ditto.
15612         (do_coloring): Remove allocation and freeing splay_tree_node_pool
15613         and allocnos_for_spilling.
15614         (ira_sort_regnos_for_alter_reg): Don't setup members
15615         {first,next}_coalesced_allocno.
15616         (color): Remove allocating and freeing removed_splay_allocno_vec.
15617         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15618         prohibited_class_mode_regs.
15619
15620         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
15621         formatting.
15622         (update_allocno_pressure_excess_length): Use pressure classes.
15623         (inc_register_pressure, dec_register_pressure): Check for pressure
15624         class.
15625         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15626         pressure class.  Use ira_reg_class_nregs instead of
15627         ira_reg_class_max_nregs.
15628         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15629         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15630         (single_reg_class): Use ira_reg_class_nregs instead of
15631         ira_reg_class_max_nregs.
15632         (process_bb_node_lives): Use pressure classes.
15633
15634         * ira-emit.c: Remove mentioning cover classes from the file.  Use
15635         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15636         (change_loop): Use pressure classes.
15637         (modify_move_list): Call ira_set_allocno_class instead of
15638         ira_set_allocno_cover_class.
15639
15640         * ira-build.c: Remove mentioning cover classes from the file.  Use
15641         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15642         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
15643         ALLOCNO_UPDATED_CLASS_COST instead of
15644         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15645         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15646         (ira_create_allocno): Remove initialization of
15647         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
15648         ALLOCNO_COLORABLE_P.
15649         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15650         Update conflict regs for the objects.
15651         (create_cap_allocno): Remove assert.  Don't propagate
15652         ALLOCNO_AVAILABLE_REGS_NUM.
15653         (ira_free_allocno_costs): New function.
15654         (finish_allocno): Change a part of code into call of
15655         ira_free_allocno_costs.
15656         (low_pressure_loop_node_p): Use pressure classes.
15657         (object_range_compare_func): Don't compare classes.
15658         (setup_min_max_conflict_allocno_ids): Ditto.
15659
15660         * loop-invariant.c: Remove mentioning cover classes from the file.
15661         Use ira_pressure_classes and ira_pressure_classes_num instead of
15662         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
15663         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15664         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15665         Use reg_allocno_class instead of reg_cover_class.
15666         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15667         STACK_REG_COVER_CLASS.
15668         (get_regno_cover_class): Rename to get_regno_pressure_class.
15669         (move_loop_invariants): Initialize and finalize regstat.
15670
15671         * ira.c: Remove mentioning cover classes from the file.  Add
15672         comments about coloring without cover classes.  Use ALLOCNO_CLASS
15673         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15674         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15675         setup_class_subset_and_memory_move_costs.
15676         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15677         (setup_cover_and_important_classes): Rename to
15678         setup_allocno_and_important_classes.
15679         (setup_class_translate_array): New.
15680         (setup_class_translate): Call it for allocno and pressure classes.
15681         (cover_class_order): Rename to allocno_class_order.
15682         (comp_reg_classes_func): Use ira_allocno_class_translate instead
15683         of ira_class_translate.
15684         (reorder_important_classes): Set up ira_important_class_nums.
15685         (setup_reg_class_relations): Set up ira_reg_class_superunion.
15686         (print_class_cover): Rename to print_classes.  Add parameter.
15687         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15688         Print pressure classes too.
15689         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
15690         setup_reg_subclasses.
15691         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15692         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15693         (setup_prohibited_class_mode_regs): Use
15694         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15695         (clarify_prohibited_class_mode_regs): New function.
15696         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15697         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15698         (ira_init_once): Initialize them.
15699         (free_register_move_costs): Process them.
15700         (ira_init): Move calls of find_reg_classes and
15701         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15702         Call clarify_prohibited_class_mode_regs.
15703         (ira_no_alloc_reg): Remove.
15704         (too_high_register_pressure_p): Use pressure classes.
15705
15706         * sched-deps.c: Remove mentioning cover classes from the file.
15707         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15708         ira_pressure_classes and ira_pressure_classes_num instead of
15709         ira_reg_class_cover_size and ira_reg_class_cover.
15710         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15711         sched_regno_pressure_class instead of sched_regno_cover_class.
15712         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
15713         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15714
15715         * ira.h: Add 2010 to Copyright.
15716         (ira_no_alloc_reg): Remove external.
15717         (struct target_ira): Rename x_ira_hard_regno_cover_class,
15718         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15719         x_ira_class_translate to x_ira_hard_regno_allocno_class,
15720         x_ira_allocno_classes_num, x_ira_allocno_classes, and
15721         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
15722         x_ira_pressure_classes, x_ira_pressure_class_translate, and
15723         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
15724         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
15725         x_ira_no_alloc_regs.
15726         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15727         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15728         ira_allocno_classes_num and ira_allocno_classes.
15729         (ira_class_translate): Rename to ira_allocno_class_translate.
15730         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15731         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15732         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15733         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15734         (ira_no_alloc_regs): New.
15735
15736         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
15737         classes from the file.  Use ALLOCNO_CLASS instead of
15738         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
15739         ALLOCNO_COVER_CLASS_COST.
15740         (regno_cover_class): Rename to regno_aclass.
15741         (record_reg_classes): Use ira_reg_class_subunion instead of
15742         ira_reg_class_union.
15743         (record_address_regs): Check overflow.
15744         (scan_one_insn): Ditto.
15745         (print_allocno_costs): Print total mem cost fore regional allocation.
15746         (print_pseudo_costs): Use REG_N_REFS.
15747         (find_costs_and_classes): Use classes intersected with them on the
15748         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
15749         ira_reg_class_union.  Use ira_allocno_class_translate and
15750         regno_aclass instead of ira_class_translate and regno_cover_class.
15751         Modify code for finding regno_aclass.  Setup preferred classes for
15752         the next pass.
15753         (setup_allocno_cover_class_and_costs): Rename to
15754         setup_allocno_class_and_costs.  Use regno_aclass instead of
15755         regno_cover_class.  Use ira_set_allocno_class instead of
15756         ira_set_allocno_cover_class.
15757         (init_costs, finish_costs): Use regno_aclass instead of
15758         regno_cover_class.
15759         (ira_costs): Use setup_allocno_class_and_costs instead of
15760         setup_allocno_cover_class_and_costs.
15761         (ira_tune_allocno_costs_and_cover_classes): Rename to
15762         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
15763         by processing objects.  Use ira_reg_class_max_nregs instead of
15764         ira_reg_class_nregs.
15765
15766         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15767
15768         * sched-int.h: Remove mentioning cover classes from the file.
15769         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15770
15771         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
15772         classes from the file.
15773         (struct reg_pref): Rename coverclass into allocnoclass.
15774         (reg_cover_class): Rename to reg_allocno_class.
15775
15776         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15777
15778         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15779
15780         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15781
15782         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15783
15784         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15785
15786         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15787
15788         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15789
15790         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15791
15792         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15793
15794         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15795
15796         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15797         (i386_ira_cover_classes): Ditto.
15798
15799         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15800
15801         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15802
15803         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15804
15805         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15806
15807         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15808
15809         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15810
15811         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15812         (mips_ira_cover_classes): Ditto.
15813
15814         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15815
15816         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15817
15818         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15819
15820         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15821
15822         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15823
15824         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15825         (IRA_COVER_CLASSES_VSX): Ditto.
15826
15827         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15828         (rs6000_ira_cover_classes): Ditto.
15829
15830         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15831
15832         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15833
15834         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15835
15836         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15837
15838         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15839
15840         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15841
15842         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15843
15844         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15845
15846         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15847
15848         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15849
15850 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
15851
15852         PR debug/48253
15853         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15854         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15855         dw_fde_unlikely_section_end_label, cold_in_std_section,
15856         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15857         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15858         fields.
15859         (output_fde): Use dw_fde_second_{begin,end} if second is
15860         true, otherwise dw_fde_{begin,end}.
15861         (output_call_frame_info): Test dw_fde_second_begin != NULL
15862         instead of dw_fde_switched_sections.
15863         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15864         fields, initialize new fields.  Initialize in_std_section
15865         unconditionally from the first partition.
15866         (dwarf2out_end_epilogue): Don't override dw_fde_end when
15867         dw_fde_second_begin is non-NULL.
15868         (dwarf2out_switch_text_section): Stop initializing removed
15869         dw_fde_struct fields, initialize new fields, initialize
15870         also dw_fde_end here.  Set dw_fde_switch_cfi even when
15871         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
15872         (struct var_loc_list_def): Add last_before_switch field.
15873         (arange_table, arange_table_allocated, arange_table_in_use,
15874         ARANGE_TABLE_INCREMENT, add_arange): Removed.
15875         (size_of_aranges): Count !in_std_section and !second_in_std_section
15876         hunks in fdes, instead of looking at arange_table_in_use.
15877         (output_aranges): Add aranges_length argument, don't call
15878         size_of_aranges here.  Instead of using aranges_table*
15879         emit ranges for fdes when !in_std_section resp.
15880         !second_in_std_section.
15881         (dw_loc_list): Break ranges crossing section switch.
15882         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
15883         use dw_fde_second_end instead of dw_fde_end as end of last range.
15884         (gen_subprogram_die): Don't call add_arange.  Use
15885         dw_fde_{begin,end} for first partition and if switched
15886         section dw_fde_second_{begin,end} for the second.
15887         (var_location_switch_text_section_1,
15888         var_location_switch_text_section): New functions.
15889         (dwarf2out_begin_function): Initialize cold_text_section even
15890         when function_section () isn't text_section.
15891         (prune_unused_types): Don't walk arange_table.
15892         (dwarf2out_finish): Don't needlessly test
15893         flag_reorder_blocks_and_partition when testing cold_text_section_used.
15894         If info_section_emitted, call size_of_aranges and if it indicates
15895         non-empty .debug_aranges, call output_aranges with the computed
15896         size.  Stop using removed dw_fde_struct fields, use
15897         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15898         for second.
15899
15900         PR debug/48203
15901         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15902         create ENTRY_VALUE if incoming or address of incoming's MEM
15903         is a hard REG.
15904         * dwarf2out.c (mem_loc_descriptor): Don't emit
15905         DW_OP_GNU_entry_value of DW_OP_fbreg.
15906         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15907         on ENTRY_VALUE is able to find the canonical parameter VALUE.
15908         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15909         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15910         ENTRY_VALUE_EXPs.
15911         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15912         is a REG_P or MEM_P with REG_P address, compute hash directly
15913         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15914         (preserve_only_constants): Don't clear VALUES forwaring
15915         ENTRY_VALUE to some other VALUE.
15916
15917 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
15918
15919         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15920         instead of GEN_INT.
15921
15922 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
15923
15924         * cfgexpand.c (expand_gimple_cond): Always set the source location and
15925         block before expanding the statement.
15926         (expand_gimple_stmt_1): Likewise.  Set them here...
15927         (expand_gimple_stmt): ...and not here.  Tidy.
15928         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15929         unknown.
15930
15931 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
15932
15933         * Makefile.in: New rule for cprop.o.
15934         * gcse.c: Move constant/copy propagation to cprop.c.
15935         (compute_local_properties): Only handle expression tables.
15936         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15937         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15938         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15939         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
15940         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
15941         compute_cprop_data, find_used_regs, try_replace_reg,
15942         find_avail_set, cprop_jump, constprop_register, cprop_insn,
15943         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15944         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15945         find_bypass_set, reg_killed_on_edge, bypass_block,
15946         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15947         execute_rtl_cprop, pass_rtl_cprop): Move to...
15948         * cprop.c: ...here.  New file, constant/copy propagation for RTL
15949         moved from gcse.c to here with minor cleanups in duplicated code.
15950
15951 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
15952
15953         * config/i386/i386.c (flag_opts): Fix a typo in
15954         -mavx256-split-unaligned-store.
15955
15956 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
15957
15958         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15959         LIBCALL_VALUE): Remove macros.
15960         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15961         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15962         (h8300_function_value, h8300_libcall_value,
15963         h8300_function_value_regno_p): New functions.
15964
15965 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
15966
15967         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15968
15969 2011-03-28  Jeff Law  <law@redhat.com>
15970
15971         * tree-ssa-threadupdate.c (redirect_edges): Call
15972         create_edge_and_update_destination_phis as needed.
15973         (create_edge_and_update_destination_phis): Accept new BB argument.
15974         All callers updated.
15975         (thread_block): Do not update the profile when threading around
15976         intermediate blocks.
15977         (thread_single_edge): Likewise.
15978         (determine_bb_domination_status): If BB is not a successor of the
15979         loop header, return NONDOMINATING.
15980         (register_jump_thread): Note when we register a jump thread around
15981         an intermediate block.
15982         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15983         (thread_across_edge): Use it.
15984
15985 2011-03-28  Tristan Gingold  <gingold@adacore.com>
15986
15987         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15988         when for_return is 2.
15989
15990 2011-03-28  Jeff Law  <law@redhat.com>
15991
15992         * var-tracking.c (canonicalize_values_mark): Delete unused
15993         lhs assignment.
15994         (canonicalize_values_star, set_variable_part): Likewise.
15995         (clobber_variable_part, delete_variable_part): Likewise.
15996
15997 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
15998
15999         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
16000
16001 2011-03-28  Martin Jambor  <mjambor@suse.cz>
16002
16003         * tree-inline.c (expand_call_inline): Do not check that destination
16004         node is analyzed.
16005         (optimize_inline_calls): Assert that destination node is analyzed.
16006         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
16007         not call tree_lowering_passes.
16008         * cgraph.h (cgraph_analyze_function): Declare.
16009         * cgraphunit.c (cgraph_analyze_function): Make public.
16010
16011 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
16012
16013         * config/sparc/sparc-opts.h: New.
16014         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
16015         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
16016         (sparc_option_override): Store processor_type enumeration rather
16017         than string in cpu_default.  Remove name and enumeration from
16018         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
16019         without using sparc_select.  Use target_flags_explicit instead of
16020         fpu_option_set.
16021         * config/sparc/sparc.h (enum processor_type): Move to
16022         sparc-opts.h.
16023         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
16024         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
16025         HeaderInclude entry.
16026         (mcpu=, mtune=): Use Var and Enum.
16027         (sparc_processor_type): New Enum and EnumValue entries.
16028
16029 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16030             Iain Sandoe  <iains@gcc.gnu.org>
16031
16032         PR target/48245
16033         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
16034
16035 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16036
16037         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
16038         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
16039         Insert new statements at it in lieu of STMT.
16040         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
16041         * tree-vect-stmts.c (vectorizable_store): Likewise.
16042         (vectorizable_load): Likewise.
16043
16044 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
16045
16046         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
16047         (divtf3): Ditto.
16048         (multf3): Ditto.
16049         (subtf3): Ditto.
16050
16051 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16052
16053         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
16054         unaligned 256bit load/store.
16055         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
16056         (*avx_movdqu<avxmodesuffix>): Likewise.
16057
16058 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16059
16060         PR target/48288
16061         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
16062         * config/pa/pa.md (iordi3): Use new predicate in expander.
16063         (iorsi3): Likewise.
16064
16065 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
16066
16067         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
16068         FUNCTION_VALUE_REGNO_P): Remove macros.
16069         * config/mips/mips-protos.h (mips_function_value): Remove.
16070         * config/mips/mips.c (mips_function_value): Rename to...
16071         (mips_function_value_1): ... this. Make static.  Handle receiving
16072         the function type in 'fn_decl_or_type' argument.
16073         (mips_function_value, mips_libcall_value,
16074         mips_function_value_regno_p): New function.
16075         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16076         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16077
16078 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16079
16080         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
16081         and -mavx256-split-unaligned-store.
16082         (ix86_option_override_internal): Split 32-byte AVX unaligned
16083         load/store by default.
16084         (ix86_avx256_split_vector_move_misalign): New.
16085         (ix86_expand_vector_move_misalign): Use it.
16086
16087         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
16088         -mavx256-split-unaligned-store.
16089
16090         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
16091         256bit load/store.  Generate unaligned store on misaligned memory
16092         operand.
16093         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
16094         256bit load/store.
16095         (*avx_movdqu<avxmodesuffix>): Likewise.
16096
16097         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
16098         -mavx256-split-unaligned-store.
16099
16100 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16101
16102         PR target/38598
16103         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
16104         Update commentary.
16105
16106 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16107
16108         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
16109         opno arguments with an expand_operand.  Use create_input_operand.
16110         (mips_prepare_builtin_target): Delete.
16111         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
16112         functions.
16113         (mips_expand_builtin_direct): Use create_output_operand and
16114         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
16115         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
16116         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
16117
16118 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
16119
16120         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
16121         function.
16122         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16123
16124 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
16125
16126         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
16127         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
16128         basic blocks and call commit_edge_insertions directly.
16129         (fixup_abnormal_edges): Move from here to...
16130         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
16131         on the edges and return whether some have actually been inserted.
16132         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
16133         compensation code.
16134
16135 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
16136
16137         PR rtl-optimization/48144
16138         * sel-sched-ir.c (merge_history_vect): Factor out from ...
16139         (merge_expr_data): ... here.
16140         (av_set_intersect): Rename to av_set_code_motion_filter.
16141         Update all callers.  Call merge_history_vect when an expression
16142         is found in both sets.
16143         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
16144
16145 2011-03-26  Alan Modra  <amodra@gmail.com>
16146
16147         * config/rs6000/predicates.md (word_offset_memref_op): Handle
16148         cmodel medium addresses.
16149         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
16150         64-bit gpr loads and stores.
16151         (rs6000_secondary_reload_ppc64): New function.
16152         * config/rs6000/rs6000-protos.h: Declare it.
16153         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
16154
16155 2011-03-26  Alan Modra  <amodra@gmail.com>
16156
16157         PR target/47487
16158         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
16159         GNU Go in traceback table.
16160
16161 2011-03-25  Richard Henderson  <rth@redhat.com>
16162
16163         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
16164         if there are exactly 6 operands.
16165         (set_storage_via_setmem): Similarly.
16166
16167 2011-03-25  Kai Tietz  <ktietz@redhat.com>
16168
16169         * collect2.c (write_c_file_stat): Handle backslash
16170         as right-hand directory separator.
16171         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
16172         checking just for slash.
16173         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
16174         instead of checking for trailing slash.
16175         * gcc.c (record_temp_file): Use filename_cmp instead
16176         of strcmp.
16177         (do_spec_1): Likewise.
16178         (replace_outfile_spec_function): Likewise.
16179         (is_directory): Use filename_ncmp instead of strncmp.
16180         (print_multilib_info): Likewise.
16181         * gcov.c (find_source): Use filename_cmp instead
16182         instead of strcmp.
16183         (make_gcov_file_name): Fix order of slash/backslash
16184         checks.
16185         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
16186         (add_standard_paths): Likewise.
16187         * mips-tfile.c (saber_stop): Handle backslash.
16188         * prefix.c (update_path): Use filename_ncmp instead of
16189         strncmp.
16190         * profile.c (output_location): Use filename_cmp instead
16191         of strcmp.
16192         * read-md.c (handle_toplevel_file): Handle backslash.
16193         * tlink.c (frob_extension):  Likewise.
16194         * tree-cfg.c (same_line_p): Use filename_cmp instead of
16195         strcmp.
16196         * tree-dump.c (dequeue_and_dump): Handle backslash.
16197         * tree.c (get_file_function_name): Likewise.
16198         * gengtype.c (read_input_list): Likewise.
16199         (get_file_realbasename): Likewise.
16200         (get_output_file_with_visibility): Use filename_cmp
16201         instead of strcmp.
16202
16203 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
16204
16205         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
16206         case to VFPv1.
16207
16208 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
16209
16210         * fold-const.c (expr_location_or): New function.
16211         (fold_truth_not_expr): Call it.
16212
16213 2011-03-25  Jeff Law  <law@redhat.com>
16214
16215         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
16216         va_end.
16217         * c-family/c-common.c (def_fn_type): Likewise.
16218         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
16219         * emit-rtl.c (gen_rtvec): Likewise.
16220         * lto/lto-lang.c (def_fn_type): Likewise.
16221
16222 2011-03-25  Richard Guenther  <rguenther@suse.de>
16223
16224         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
16225         also generate copies.
16226         (fini_copy_prop): Handle constant values properly.
16227
16228 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
16229
16230         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
16231         mode size instead of bitsize with DWARF2_ADDR_SIZE.
16232         (hash_loc_operands, compare_loc_operands): Handle
16233         DW_OP_GNU_entry_value.
16234
16235 2011-03-25  Kai Tietz  <ktietz@redhat.com>
16236
16237         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
16238         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
16239         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
16240         comment and use macro TARGET_64BIT_MS_ABI instead.
16241         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
16242         and change default behavior for 32-bit MS_ABI.
16243         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
16244         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
16245         32-bit, too.
16246         (ix86_cfun_abi): Likewise.
16247         (ix86_maybe_switch_abi): Adjust comment.
16248         (init_cumulative_args): Check for bit-ness in MS_ABI case.
16249         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
16250         instead of checking for SYSV_ABI.
16251         (ix86_nsaved_sseregs): Likewise.
16252         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
16253         to 16 bytes.
16254         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
16255         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
16256         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
16257         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
16258         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
16259
16260 2011-03-25  Richard Guenther  <rguenther@suse.de>
16261
16262         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
16263         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16264         (verify_gimple): Remove.
16265         * tree-cfg.c (verify_gimple_call): Merge verification
16266         from verify_stmts.
16267         (verify_gimple_phi): Merge verification from verify_stmts.
16268         (verify_gimple_label): New function.
16269         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
16270         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16271         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
16272         (verify_stmts): Rename to verify_gimple_in_cfg.
16273         (verify_gimple_in_cfg): New function.
16274         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
16275         * tree-ssa.c (verify_ssa): Likewise.
16276         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
16277
16278 2011-03-25  Richard Guenther  <rguenther@suse.de>
16279
16280         * passes.c (init_optimization_passes): Add FRE pass after
16281         early SRA.
16282
16283 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
16284             Andrew Stubbs  <ams@codesourcery.com>
16285
16286         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
16287         for Cortex-A8.
16288         (arm_movdi_vfp_cortexa8): New pattern.
16289         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
16290         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
16291         instructions when tuning for Cortex-A8.  Set attribute "arch".
16292         * config/arm/arm.md: Move include arm-tune.md up a bit.
16293         (define_attr "arch"): Add "onlya8" and "nota8" values.
16294         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
16295
16296 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
16297
16298         PR bootstrap/48282
16299         Revert:
16300         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16301
16302         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16303         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
16304         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16305         * passes.c (init_optimization_passes): Move
16306         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16307
16308 2011-03-25  Kai Tietz  <ktietz@redhat.com>
16309
16310         * c-typeck.c (comptypes_internal): Replace target
16311         hook call of comp_type_attributes by version in tree.c file.
16312         * gimple.c (gimple_types_compatible_p_1): Likewise.
16313         * tree-ssa.c (useless_type_conversion_p): Likewise.
16314         * tree.c (build_type_attribute_qual_variant): Likewise.
16315         (attribute_value_equal): New static helper function.
16316         (comp_type_attributes): New function.
16317         (merge_attributes): Use attribute_value_equal for comparison.
16318         (attribute_list_contained): Likewise.
16319         * tree.h (comp_type_attributes): New prototype.
16320
16321 2011-03-25  Richard Guenther  <rguenther@suse.de>
16322
16323         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
16324         of complex types at -O0.
16325         (verify_gimple_assign_binary): Likewise.
16326         (verify_gimple_assign_ternary): Likewise.
16327
16328 2011-03-24  Mark Wielaard  <mjw@redhat.com>
16329
16330         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
16331         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
16332
16333 2011-03-24  Mark Wielaard  <mjw@redhat.com>
16334
16335         PR debug/48041
16336         * dwarf2out.c (output_abbrev_section): Only write table when
16337         abbrev_die_table_in_use > 1.
16338
16339 2011-02-24  Richard Henderson  <rth@redhat.com>
16340
16341         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
16342         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
16343         (alpha_expand_unaligned_load_words): Use extql.
16344         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
16345         (emit_insxl): Handle all modes for consistency.
16346
16347 2011-02-24  Richard Henderson  <rth@redhat.com>
16348
16349         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
16350         (alpha_expand_unaligned_load): Likewise.
16351         (alpha_expand_unaligned_store): Likewise.
16352         (alpha_expand_unaligned_load_words): Likewise.
16353         (alpha_expand_unaligned_store_words): Likewise.
16354         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
16355         (alpha_split_lock_test_and_set_12): Likewise.
16356         (print_operand, alpha_fold_builtin_extxx): Likewise.
16357         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
16358         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
16359         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
16360         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
16361         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
16362         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
16363         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
16364         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
16365         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
16366         (extwl, extll, extql): Similarly.
16367         (inswh, inslh, insqh): Similarly.
16368         (mskbl, mskwl, mskll, mskql): Similarly.
16369         (mskwh, msklh, mskqh): Similarly.
16370
16371 2011-02-24  Richard Henderson  <rth@redhat.com>
16372
16373         * config/alpha/alpha.md (attribute isa): Add er, ner.
16374         (attribute enabled): Handle them.
16375         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
16376
16377 2011-02-24  Richard Henderson  <rth@redhat.com>
16378
16379         * config/alpha/alpha.md (attribute isa): Add vms.
16380         (attribute enabled): Handle it.
16381         (*movsf): Merge *movsf_{nofix,fix,nofp}.
16382         (*movdf): Merge *movdf_{nofix,fix,nofp}.
16383         (*movtf): Rename from *movtf_internal for consistency.
16384         (*movsi): Merge with *movsi_nt_vms.
16385         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
16386         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
16387         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
16388         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
16389
16390 2011-02-24  Richard Henderson  <rth@redhat.com>
16391
16392         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
16393         (extendqisi2, extendhisi2): Likewise.
16394         (extendqidi2): Simplify BWX/non-BWX expansions.
16395         (extendhidi2): Similarly.
16396
16397 2011-02-24  Richard Henderson  <rth@redhat.com>
16398
16399         * config/alpha/alpha.md (attribute isa): New.
16400         (attribute enabled): New.
16401         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
16402         (zero_extendqisi2, zero_extendqidi2): Similarly.
16403         (zero_extendhisi2, zero_extendhidi2): Similarly.
16404         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
16405
16406 2011-02-24  Richard Henderson  <rth@redhat.com>
16407
16408         * config/alpha/predicates.md (input_operand): Revert last change;
16409         update comment to mention 32-bit VMS rather than Windows.
16410
16411 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16412
16413         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16414         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
16415         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16416         * passes.c (init_optimization_passes): Move
16417         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16418
16419 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16420
16421         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16422
16423 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16424
16425         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16426         correctly.
16427
16428 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
16429
16430         PR debug/48204
16431         * simplify-rtx.c (simplify_const_unary_operation): Call
16432         real_convert when changing mode class with FLOAT_EXTEND.
16433
16434 2011-03-24  Nick Clifton  <nickc@redhat.com>
16435
16436         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16437         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16438         * config/rx/rx.c (rx_option_override): Set align_jumps,
16439         align_loops and align_labels if not set by the user.
16440         (rx_align_for_label): New function.
16441         (rx_max_skip_for_label): New function.
16442         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16443         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16444         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16445         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16446         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16447
16448 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16449
16450         PR rtl-optimization/48263
16451         * optabs.c (expand_binop_directly): Reinstate convert_modes code
16452         and original commutative_p handling.  Use maybe_gen_insn.
16453
16454 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16455
16456         * reload.c (find_reloads_subreg_address): Add address_reloaded
16457         parameter and return true there if the full address has been
16458         reloaded.
16459         (find_reloads_toplev): Pass address_reloaded flag.
16460         (find_reloads_address_1): Don't use address_reloaded parameter.
16461
16462 2011-03-24  Jeff Law  <law@redhat.com>
16463
16464         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16465         unused variable "ann".
16466         (remove_unused_locals): Likewise.
16467
16468         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16469         statement.
16470
16471         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16472         after it is freed.
16473
16474 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16475
16476         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16477         for invalid symbolic addresses.
16478         (s390_secondary_reload): Don't use s390_check_symref_alignment for
16479         larl operands.
16480
16481 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16482
16483         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16484         the argument in calls to fold_truth_not_expr.
16485
16486 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16487
16488         * tree.c (record_node_allocation_statistics): New function.
16489         (make_node_stat, copy_node_stat, build_string): Call it.
16490         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16491         (build1_stat, build_omp_clause): Likewise.
16492
16493 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16494
16495         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16496         last commit.
16497
16498 2011-03-24  Richard Guenther  <rguenther@suse.de>
16499
16500         PR tree-optimization/48271
16501         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16502         blocks that still exist.
16503
16504 2011-03-24  Richard Guenther  <rguenther@suse.de>
16505
16506         PR tree-optimization/48270
16507         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16508         not free datarefs before ddrs.
16509
16510 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16511
16512         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16513         from the address built for a reference with variable offset.
16514
16515 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16516
16517         PR target/48237
16518         * config/i386/i386.md (*movdf_internal_rex64): Do not split
16519         alternatives that can be handled with movq or movabsq insn.
16520         (*movdf_internal): Disable for !TARGET_64BIT.
16521         (*movdf_internal_nointeger): Ditto.
16522         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16523
16524 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16525
16526         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16527         (FUNCTION_ARG_ADVANCE): Likewise.
16528         * tm.texi.in: Change references to them to hook references.
16529         * tm.texi: Regenerate.
16530         * targhooks.c (default_function_arg): Eliminate check for target macro.
16531         (default_function_incoming_arg): Likewise.
16532         (default_function_arg_advance): Likewise.
16533         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16534         (function_arg_advance): Likewise.
16535         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16536
16537 2011-03-24  Richard Guenther  <rguenther@suse.de>
16538
16539         PR middle-end/48269
16540         * tree-object-size.c (addr_object_size): Do not double-account
16541         for MEM_REF offsets.
16542
16543 2011-03-24  Diego Novillo  <dnovillo@google.com>
16544
16545         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16546         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16547         (lto_input_data_block): Move from lto-opts.c.  Make extern.
16548         Update all users.
16549         (lto_input_string): Rename from input_string.  Make extern.
16550         Update all users.
16551         * lto-streamer-out.c (lto_output_string_with_length): Rename from
16552         output_string_with_length.
16553         Output 0 to indicate a non-NULL string.  Update all callers to
16554         not emit 0.
16555         (lto_output_string): Rename from output_string.  Make extern.
16556         Update all users.
16557         (lto_output_decl_state_streams): Make extern.
16558         (lto_output_decl_state_refs): Make extern.
16559         * lto-streamer.h (lto_input_string): Declare.
16560         (lto_input_data_block): Declare.
16561         (lto_output_string): Declare.
16562         (lto_output_string_with_length): Declare.
16563         (lto_output_decl_state_streams): Declare.
16564         (lto_output_decl_state_refs): Declare.
16565
16566 2011-03-24  Richard Guenther  <rguenther@suse.de>
16567
16568         PR tree-optimization/46562
16569         * tree.c (build_invariant_address): New function.
16570         * tree.h (build_invariant_address): Declare.
16571         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16572         a renamed function moved ...
16573         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16574         Take valueization callback parameter.
16575         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16576         * gimple-fold.h: New file.
16577         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16578         (ccp_fold, fold_const_aggregate_ref,
16579         fold_ctor_reference, fold_nonarray_ctor_reference,
16580         fold_array_ctor_reference, fold_string_cst_ctor_reference,
16581         get_base_constructor): Move ...
16582         * gimple-fold.c: ... here.
16583         (gimple_fold_stmt_to_constant_1): New function
16584         split out from ccp_fold.  Take a valueization callback parameter.
16585         Valueize all operands.
16586         (gimple_fold_stmt_to_constant): New wrapper function.
16587         (fold_const_aggregate_ref_1): New function split out from
16588         fold_const_aggregate_ref.  Take a valueization callback parameter.
16589         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16590         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16591         invariant POINTER_PLUS_EXPRs to invariant form.
16592         (vn_valueize): New function.
16593         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16594         * tree-vrp.c (vrp_valueize): New function.
16595         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16596         to fold statements to constants.
16597         * tree-ssa-pre.c (eliminate): Properly guard propagation of
16598         function declarations.
16599         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16600         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16601
16602 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16603
16604         * config/h8300/predicates.md (jump_address_operand): Fix register
16605         mode check.
16606
16607 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
16608
16609         * doc/invoke.texi (max-stores-to-sink): Document.
16610         * params.h (MAX_STORES_TO_SINK): Define.
16611         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16612         if either vectorization or if-conversion is disabled.
16613         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16614         tree-vect-data-refs.c vect_equal_offsets.
16615         (dr_equal_offsets_p): New function.
16616         (find_data_references_in_bb): Remove static.
16617         * tree-data-ref.h (find_data_references_in_bb): Declare.
16618         (dr_equal_offsets_p): Likewise.
16619         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16620         (vect_drs_dependent_in_basic_block): Update calls to
16621         vect_equal_offsets.
16622         (vect_check_interleaving): Likewise.
16623         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16624         (cond_if_else_store_replacement): Rename to...
16625         (cond_if_else_store_replacement_1): ... this.  Change arguments and
16626         documentation.
16627         (cond_if_else_store_replacement): New function.
16628         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16629         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16630
16631 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
16632
16633         PR target/46934
16634         * config/arm/arm.md (casesi): Use the gen_int_mode() function
16635         to subtract lower bound instead of GEN_INT().
16636
16637 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
16638
16639         PR other/48179
16640         PR other/48221
16641         PR other/48234
16642         * doc/extend.texi (Alignment): Move section to match order in TOC.
16643         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16644         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16645
16646 2011-03-23  Jeff Law  <law@redhat.com>
16647
16648         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16649         before removing the edge.
16650
16651         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16652         it may have been freed by redirect_branch_edge or
16653         redirect_edge_succ_nodup.
16654
16655 2011-03-23  Richard Guenther  <rguenther@suse.de>
16656
16657         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16658         (check_va_list_escapes): Likewise.
16659         (check_all_va_list_escapes): Likewise.
16660
16661 2011-03-23  Richard Guenther  <rguenther@suse.de>
16662
16663         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16664         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16665         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16666         (alias.o): Likewise.
16667         (ipa-type-escape.o): Remove.
16668         (ipa-struct-reorg.o): Likewise.
16669         (GTFILES): Remove ipa-struct-reorg.c.
16670         * alias.c: Do not include ipa-type-escape.h.
16671         * tree-ssa-alias.c: Likewise.
16672         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16673         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16674         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16675         and ipa-type-escape passes.
16676         * tree-pass.h (pass_ipa_type_escape): Remove.
16677         (pass_ipa_struct_reorg): Likewise.
16678         * ipa-struct-reorg.h: Remove.
16679         * ipa-struct-reorg.c: Likewise.
16680         * ipa-type-escape.h: Likewise.
16681         * ipa-type-escape.c: Likewise.
16682         * doc/invoke.texi (-fipa-struct-reorg): Remove.
16683         (--param struct-reorg-cold-struct-ratio): Likewise.
16684         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16685         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16686         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16687
16688 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16689
16690         * config/s390/2084.md: Enable all insn reservations also for z9_ec
16691         cpu attribute value.
16692         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16693         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16694         * config/s390/s390.c (processor_flags_table): New constant array.
16695         (s390_handle_arch_option): Remove.
16696         (s390_handle_option): Remove s390_handle_arch_option invocations
16697         and OPT_mwarn_framesize_ handling.
16698         (s390_option_override): Remove s390_handle_arch_option invocation.
16699         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16700         warnings.
16701         * config/s390/s390.md (cpu attribute): Add z9_ec value.
16702         * config/s390/s390.opt (s390_tune, s390_arch)
16703         (march=): Replace s390_arch_option enum and values with
16704         processor_type.  Set variable name to s390_arch.  Set
16705         initialization value.
16706         (mtune=): Replace s390_arch_option with processor_type.  Set
16707         variable name to s390_tune.  Set initialization value.
16708
16709 2011-03-23  Julian Brown  <julian@codesourcery.com>
16710
16711         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16712         accesses which are not naturally aligned.
16713
16714 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16715
16716         PR target/47553
16717         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16718
16719 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16720
16721         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16722         parameter from "int" to "enum insn_code".
16723         (expand_operand_type): New enum.
16724         (expand_operand): New structure.
16725         (create_expand_operand): New function.
16726         (create_fixed_operand, create_output_operand): Likewise
16727         (create_input_operand, create_convert_operand_to): Likewise.
16728         (create_convert_operand_from, create_address_operand): Likewise.
16729         (create_integer_operand): Likewise.
16730         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16731         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16732         (expand_insn, expand_jump_insn): Likewise.
16733         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16734         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16735         (expand_movstr, expand_builtin___clear_cache): Likewise.
16736         (expand_builtin_lock_release): Likewise.
16737         * explow.c (allocate_dynamic_stack_space): Likewise.
16738         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
16739         and use the default handling in that case.
16740         * expmed.c (check_predicate_volatile_ok): Delete.
16741         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16742         (emit_cstore): Likewise.
16743         * expr.c (emit_block_move_via_movmem): Likewise.
16744         (set_storage_via_setmem, expand_assignment): Likewise.
16745         (emit_storent_insn, try_casesi): Likewise.
16746         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
16747         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16748         (expand_vec_shift_expr, expand_binop_directly): Likewise.
16749         (expand_twoval_unop, expand_twoval_binop): Likewise.
16750         (expand_unop_direct, emit_indirect_jump): Likewise.
16751         (emit_conditional_move, vector_compare_rtx): Likewise.
16752         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16753         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16754         (expand_sync_lock_test_and_set): Likewise.
16755         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
16756         (emit_unop_insn): Likewise.
16757         (expand_copysign_absneg): Change icode to an insn_code.
16758         (create_convert_operand_from_type): New function.
16759         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16760         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16761         (expand_insn, expand_jump_insn): Likewise.
16762         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16763         than const_int_operand for operand 2.
16764
16765 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16766
16767         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16768         if possible.
16769
16770 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16771
16772         * emit-rtl.c (emit_pattern_before_noloc): New function.
16773         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16774         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16775         (emit_pattern_after_noloc): New function.
16776         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16777         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16778
16779 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16780
16781         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16782         (__ffsDI2): Likewise.
16783
16784 2011-03-22  Richard Henderson  <rth@redhat.com>
16785
16786         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16787         of !TARGET_ABI_OPEN_VMS.
16788         (alpha_trampoline_init, alpha_start_function): Likewise.
16789         (alpha_expand_epilogue, alpha_file_start): Likewise.
16790         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16791         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16792         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16793         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16794         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16795
16796 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16797
16798         * config/s390/s390-opts.h: New.
16799         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16800         s390_arch_flags, s390_warn_framesize, s390_stack_size,
16801         s390_stack_guard): Remove.
16802         (s390_handle_arch_option): Return void.  Take enum
16803         s390_arch_option value instead of string and searching array.
16804         (s390_handle_option): Don't assert that global structures are in
16805         use.  Access variables via opts pointer.  Use error_at.  Don't use
16806         sscanf for -mstack-guard= or -mstack-size=.  Update call to
16807         s390_handle_arch_option.
16808         (s390_option_override): Update call to s390_handle_arch_option.
16809         (s390_emit_prologue): Use %d format for s390_stack_size in
16810         diagnostic.  Use %wd for HOST_WIDE_INT.
16811         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16812         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16813         * config/s390/s390.opt (config/s390/s390-opts.h): New
16814         HeaderInclude entry.
16815         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16816         s390_arch_flags, s390_warn_framesize): New Variable entries.
16817         (s390_arch_option): New Enum and EnumValue entries.
16818         (march=): Use Enum instead of Var.
16819         (mstack-guard=, mstack-size=): Use UInteger and Var.
16820         (mtune=): Use Enum.
16821
16822 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16823
16824         * config/score/score.c (score_handle_option): Don't assert that
16825         global structures are in use.  Access target_flags via opts
16826         pointer.  Use value of -march= option to determine target_flags
16827         settings.
16828         * config/score/score.opt (march=): Use Enum.
16829         (score_arch): New Enum and EnumValue entries.
16830
16831 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16832
16833         * config/mep/mep.c (option_mtiny_specified): Remove.
16834         (mep_option_override): Move register handling for -mivc2 from
16835         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
16836         instead of option_mtiny_specified.
16837         (mep_handle_option): Access target_flags via opts pointer.  Don't
16838         assert that global structures are in use.  Defer part of -mivc2
16839         handling and move it to mep_option_override.
16840         * config/mep/mep.opt (IVC2): New Mask entry.
16841         (mivc2): Use Var and Defer instead of Mask.
16842
16843 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16844
16845         * config/v850/v850-opts.h: New.
16846         * config/v850/v850.c (small_memory): Replace with
16847         small_memory_physical_max array.  Make that array static const.
16848         (v850_handle_memory_option): Take integer value of argument.  Take
16849         gcc_options pointer, option text and location.  Return void.
16850         Update for changes to small memory structures.
16851         (v850_handle_option): Access target_flags via opts pointer.  Don't
16852         assert that global structures are in use.  Update calls to
16853         v850_handle_memory_option.
16854         (v850_encode_data_area): Update references to small memory settings.
16855         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16856         (enum small_memory_type): Move to v850-opts.h.
16857         * config/v850/v850.opt (config/v850/v850-opts.h): New
16858         HeaderInclude entry.
16859         (small_memory_max): New Variable entry.
16860         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
16861         (mtda, mzda): Likewise.
16862
16863 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16864
16865         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16866         pointer.  Don't assert that global structures are in use.
16867
16868 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16869
16870         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16871         via opts pointer.  Don't assert that global structures are in use.
16872
16873 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16874
16875         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16876         (munix=93): Use Var.
16877         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16878         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16879         * config/pa/pa-opts.h: New.
16880         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16881         (pa_handle_option): Don't assert that global structures are in
16882         use.  Access target_flags via opts pointer.  Don't handle
16883         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16884         OPT_munix_98 here.
16885         (pa_option_override): Handle deferred OPT_mfixed_range_.
16886
16887 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16888
16889         * config/mn10300/mn10300-opts.h: New.
16890         * config/mn10300/mn10300.c (mn10300_processor,
16891         mn10300_tune_string): Remove.
16892         (mn10300_handle_option): Don't assert that global structures are
16893         in use.  Access mn10300_processor via opts pointer.  Don't handle
16894         OPT_mtune_ here.
16895         * config/mn10300/mn10300.h (enum processor_type): Move to
16896         mn10300-opts.h.
16897         (mn10300_processor): Remove.
16898         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16899         HeaderInclude entry.
16900         (mn10300_processor): New Variable entry.
16901         (mtune=): Use Var.
16902
16903 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16904
16905         * config/microblaze/microblaze.c: Don't include opts.h.
16906         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16907         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16908         (mno-clearbss): Use Var and Warn.
16909
16910 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16911
16912         * config/m32r/m32r-opts.h: New.
16913         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16914         (m32r_handle_option): Don't assert that global structures are in
16915         use.  Access target_flags and m32r_cache_flush_func via opts
16916         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
16917         OPT_mno_flush_trap here.
16918         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16919         include of m32r-opts.h.
16920         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16921         HeaderInclude entry.
16922         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16923         (mmodel=): Use Enum and Var.
16924         (m32r_model): New Enum and EnumValue entries.
16925         (mno-flush-trap): Use Var.
16926         (msdata=): Use Enum and Var.
16927         (m32r_sdata): New Enum and EnumValue entries.
16928
16929 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16930
16931         * config/m32c/m32c.c: Don't include opts.h.
16932         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16933         m32c_handle_option): Remove.
16934         (m32c_option_override): Check global_options_set.x_target_memregs
16935         instead of target_memregs_set.
16936         * config/m32c/m32c.h (target_memregs): Remove.
16937         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16938         variable.
16939
16940 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16941
16942         * config/iq2000/iq2000-opts.h: New.
16943         * config/iq2000/iq2000.c: Don't include opts.h.
16944         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
16945         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
16946         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16947         HeaderInclude entry.
16948         (iq2000_tune): New Variable entry.
16949         (march=): Add comment.  Use Enum.
16950         (iq2000_arch): New Enum and EnumValue entries.
16951         (mcpu=): Use Enum and Var.
16952         (iq2000_tune): New Enum and EnumValue entries.
16953
16954 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16955
16956         * config/ia64/ia64-opts.h: New.
16957         * config/ia64/ia64.c (ia64_tune): Remove.
16958         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16959         here.  Use error_at.
16960         (ia64_option_override): Handle deferred OPT_mfixed_range_.
16961         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16962         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16963         HeaderInclude entry.
16964         (ia64_tune): New Variable entry.
16965         (mfixed-range=): Use Defer and Var.
16966         (mtune=): Use Enum and Var.
16967         (ia64_tune): New Enum and EnumValue entries.
16968
16969 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16970
16971         * config/frv/frv-opts.h: New.
16972         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16973         frv-opts.h.
16974         (frv_cpu_type): Remove.
16975         * config/frv/frv.c: Don't include opts.h.
16976         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
16977         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
16978         (frv_cpu_type): New Variable entry.
16979         (frv_cpu): New Enum and EnumValue entries.
16980
16981 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16982
16983         * config/cris/cris.c (cris_handle_option): Access target_flags via
16984         opts pointer.  Don't assert that global structures are in use.
16985         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16986         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16987
16988 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
16989
16990         * config/bfin/bfin-opts.h: New.
16991         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16992         bfin_si_revision, bfin_workarounds): Remove.
16993         (bfin_cpus): Make static const.
16994         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16995         not bfin_lib_id_given.
16996         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
16997         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
16998         pointer. Use error_at.  Don't assert that global structures are in use.
16999         * config/bfin/bfin.h: Include bfin-opts.h.
17000         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
17001         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
17002         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
17003         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
17004         entries.
17005
17006 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17007
17008         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
17009         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
17010         or -msoft-float here.
17011         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
17012         -msoft-float and -mhard-float.
17013         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
17014         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17015         msoft-float.
17016         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
17017         -msoft-float.
17018         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
17019         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
17020         not mhard-float.
17021         (LIBGCC_SPEC): Don't handle -msoft-float.
17022         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
17023         -mhard-float.
17024         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17025         msoft-float.
17026         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
17027         -mfloat-abi=*, not -msoft-float and -mhard-float.
17028         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
17029         -msoft-float.
17030         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
17031         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
17032         mhard-float and msoft-float.
17033         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
17034         mfloat-abi=soft in comments, not mhard-float and msoft-float.
17035         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17036         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
17037         mhard-float.
17038         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
17039         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
17040         msoft-float.
17041         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
17042         not mhard-float.
17043         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
17044         not msoft-float.
17045
17046 2011-03-22  Richard Henderson  <rth@redhat.com>
17047
17048         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
17049         TARGET_ABI_WINDOWS_NT.
17050         (alpha_output_function_end_prologue): Likewise.
17051         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
17052         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17053         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
17054         (trap, *movsi_nt_vms): Likewise.
17055         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
17056         (*tablejump_osf_nt_internal): Remove.
17057         * config/alpha/predicates.md (input_operand): Only test Pmode.
17058
17059 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17060
17061         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
17062         via opts pointer.  Use error_at.  Don't assert that global
17063         structures are in use.
17064
17065 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17066
17067         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
17068         (ix86_handle_option): Access ix86_isa_flags and
17069         ix86_isa_flags_explicit via opts pointer.  Don't assert that
17070         global structures are in use.
17071         (ix86_function_specific_save, ix86_function_specific_restore):
17072         Update ix86_isa_flags_explicit field name.
17073         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
17074         (ix86_isa_flags_explicit): Rename TargetSave entry to
17075         x_ix86_isa_flags_explicit.
17076
17077 2011-03-22  Richard Henderson  <rth@redhat.com>
17078
17079         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
17080         (alpha_option_override, direct_return): Likewise.
17081         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
17082         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
17083         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
17084         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17085         (alpha_expand_epilogue, alpha_end_function): Likewise.
17086         (alpha_init_libfuncs): Likewise.
17087         (struct machine_function): Remove unicosmk members.
17088         (print_operand) ['t']: Remove.
17089         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
17090         unicosmk_output_module_name, unicosmk_output_common,
17091         current_section_align, unicosmk_output_text_section_asm_op,
17092         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
17093         unicosmk_section_type_flags, unicosmk_unique_section,
17094         unicosmk_asm_named_section, unicosmk_insert_attributes,
17095         unicosmk_output_align, unicosmk_defer_case_vector,
17096         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
17097         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
17098         unicosmk_output_ssib, unicosmk_add_call_info_word,
17099         unicosmk_extern_head, unicosmk_output_default_externs,
17100         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
17101         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
17102         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
17103         * config/alpha/alpha-protos.h: Update.
17104         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
17105         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
17106         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
17107         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
17108         (*mulsi_se, mulvsi3): Likewise.
17109         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
17110         (*divmodsi_internal, call, call_value, realign): Likewise.
17111         (moddi3, umoddi3): Likewise; remove duplicate expander.
17112         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
17113         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
17114         (*movdi_nofix): Remove r/U alternative.
17115         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
17116         * config/alpha/constraints.md ("U"): Remove.
17117         * config/alpha/predicates.md (call_operand"): Don't test
17118         TARGET_ABI_UNICOSMK.
17119
17120 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17121
17122         * target.def (handle_option): Take gcc_options and
17123         cl_decoded_option pointers and location_t.
17124         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
17125         * doc/tm.texi: Regenerate.
17126         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
17127         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
17128         * lto-opts.c (lto_reissue_options): Generate option structure for
17129         targetm.handle_option call.
17130         * opts.c (target_handle_option): Update call to
17131         targetm.handle_option.  Remove assertions about values now passed
17132         down to hook.
17133         * targhooks.c (default_target_handle_option): New.
17134         * targhooks.h (default_target_handle_option): Declare.
17135         * config/alpha/alpha.c: Include opts.h.
17136         (alpha_handle_option): Update to new hook interface.
17137         * config/arm/arm.c: Include opts.h.
17138         (arm_handle_option): Update to new hook interface.
17139         * config/arm/t-arm (arm.o): Update dependencies.
17140         * config/bfin/bfin.c: Include opts.h.
17141         (bfin_handle_option): Update to new hook interface.
17142         * config/cris/cris.c: Include opts.h.
17143         (cris_handle_option): Update to new hook interface.
17144         * config/frv/frv.c: Include opts.h.
17145         (frv_handle_option): Update to new hook interface.
17146         * config/i386/i386.c: Include opts.h.
17147         (ix86_handle_option): Update to new hook interface.
17148         (ix86_valid_target_attribute_inner_p): Generate option structure
17149         for call to ix86_handle_option.
17150         * config/i386/t-i386 (i386.o): Update dependencies.
17151         * config/ia64/ia64.c: Include opts.h.
17152         (ia64_handle_option): Update to new hook interface.
17153         * config/ia64/t-ia64 (ia64.o): Update dependencies.
17154         * config/iq2000/iq2000.c: Include opts.h.
17155         (iq2000_handle_option): Update to new hook interface.
17156         * config/m32c/m32c.c: Include opts.h.
17157         (m32c_handle_option): Update to new hook interface.
17158         * config/m32r/m32r.c: Include opts.h.
17159         (m32r_handle_option): Update to new hook interface.
17160         * config/m68k/m68k.c: Include opts.h.
17161         (m68k_handle_option): Update to new hook interface.
17162         * config/mep/mep.c: Include opts.h.
17163         (mep_handle_option): Update to new hook interface.
17164         * config/microblaze/microblaze.c: Include opts.h.
17165         (microblaze_handle_option): Update to new hook interface.
17166         * config/mips/mips.c: Include opts.h.
17167         (mips_handle_option): Update to new hook interface.
17168         * config/mn10300/mn10300.c: Include opts.h.
17169         (mn10300_handle_option): Update to new hook interface.
17170         * config/pa/pa.c: Include opts.h.
17171         (pa_handle_option): Update to new hook interface.
17172         * config/pdp11/pdp11.c: Include opts.h.
17173         (pdp11_handle_option): Update to new hook interface.
17174         * config/rs6000/rs6000.c: Include opts.h.
17175         (rs6000_handle_option): Update to new hook interface.
17176         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17177         * config/rx/rx.c: Include opts.h.
17178         (rx_handle_option): Update to new hook interface.
17179         * config/s390/s390.c: Include opts.h.
17180         (s390_handle_option): Update to new hook interface.
17181         * config/score/score.c: Include opts.h.
17182         (score_handle_option): Update to new hook interface.
17183         * config/sh/sh.c: Include opts.h.
17184         (sh_handle_option): Update to new hook interface.
17185         * config/sparc/sparc.c: Include opts.h.
17186         (sparc_handle_option): Update to new hook interface.
17187         * config/v850/v850.c: Include opts.h.
17188         (v850_handle_option): Update to new hook interface.
17189
17190 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17191
17192         * gcc.c (driver_unknown_option_callback): Only permit and save
17193         unknown -Wno- options.
17194         (driver_wrong_lang_callback): Save options directly instead of via
17195         driver_unknown_option_callback.
17196
17197 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
17198
17199         * combine.c (simplify_set): Try harder to find the best CC mode when
17200         simplifying a nested COMPARE on the RHS.
17201
17202 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17203
17204         * config/alpha/gnu.h: Remove.
17205         * config/arc: Remove directory.
17206         * config/arm/netbsd.h: Remove.
17207         * config/arm/t-pe: Remove.
17208         * config/crx: Remove directory.
17209         * config/i386/netbsd.h: Remove.
17210         * config/m68hc11: Remove directory.
17211         * config/m68k/uclinux-oldabi.h: Remove.
17212         * config/mcore/mcore-pe.h: Remove.
17213         * config/mcore/t-mcore-pe: Remove.
17214         * config/netbsd-aout.h: Remove.
17215         * config/rs6000/gnu.h: Remove.
17216         * config/sh/sh-symbian.h: Remove.
17217         * config/sh/symbian-base.c: Remove.
17218         * config/sh/symbian-c.c: Remove.
17219         * config/sh/symbian-cxx.c: Remove.
17220         * config/sh/symbian-post.h: Remove.
17221         * config/sh/symbian-pre.h: Remove.
17222         * config/sh/t-symbian: Remove.
17223         * config/svr3.h: Remove.
17224         * config/vax/netbsd.h: Remove.
17225         * config.build: Don't handle i[34567]86-*-pe.
17226         * config.gcc: Remove handling of deprecations for most deprecated
17227         targets.
17228         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
17229         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
17230         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
17231         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
17232         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
17233         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
17234         Remove cases.
17235         * config.host: Don't handle i[34567]86-*-pe.
17236         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
17237         (ASM_SPEC32): Don't handle -mcall-gnu.
17238         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
17239         -mcall-gnu.
17240         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
17241         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
17242         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17243         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
17244         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
17245         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
17246         conditional on SYMBIAN.
17247         * configure.ac: Don't handle powerpc*-*-gnu*.
17248         * configure: Regenerate.
17249         * doc/extend.texi (interrupt attribute): Don't mention CRX.
17250         * doc/install-old.texi (m6811, m6812): Don't mention.
17251         * doc/install.texi (arc-*-elf*): Don't document multilib option.
17252         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
17253         (m68k-uclinuxoldabi): Don't mention.
17254         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
17255         Remove.
17256         (-mcall-gnu): Remove.
17257         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
17258         families): Remove constraint documentation.
17259
17260 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
17261
17262         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
17263         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
17264         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
17265
17266 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17267
17268         PR target/48226
17269         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
17270         vector when peeking at the next token for vector, don't expand the
17271         keywords.
17272
17273 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
17274
17275         * config/avr/avr-protos.h (expand_epilogue): Change prototype
17276         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
17277         * config/avr/avr.c (init_cumulative_args)
17278         (avr_function_arg_advance): Use it.
17279         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
17280         sibcall epilogues.
17281         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
17282         (avr_function_ok_for_sibcall): ...this new function.
17283         (avr_lookup_function_attribute1): New static Function.
17284         (avr_naked_function_p, interrupt_function_p)
17285         (signal_function_p, avr_OS_task_function_p)
17286         (avr_OS_main_function_p): Use it.
17287         * config/avr/avr.md ("sibcall", "sibcall_value")
17288         ("sibcall_epilogue"): New expander.
17289         ("*call_insn", "*call_value_insn"): New insn.
17290         ("call_insn", "call_value_insn"): Remove
17291         ("call", "call_value", "epilogue"): Change expander to handle
17292         sibling calls.
17293
17294 2011-03-21  Nick Clifton  <nickc@redhat.com>
17295
17296         * doc/invoke.texi (Overall Options): Move closing brace to end of
17297         options list.
17298         (Optimization Options): Add missing @gol.
17299         (Directory Options): Likewise.
17300         (i386 and x86-64 Options): Likewise.
17301         (RS6000 and PowerPC Options): Likewise.
17302         (i386 and x86-64 Windows Options): Likewise.
17303         (V850 Options): Add text missing from descriptions.
17304
17305 2011-03-22  Richard Henderson  <rth@redhat.com>
17306
17307         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
17308         (avr_incoming_return_addr_rtx): New.
17309         (emit_push_byte): New.
17310         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
17311         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
17312         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
17313         (emit_pop_byte): New.
17314         (expand_epilogue): Use it.  Pop frame pointer by bytes.
17315         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
17316         (INCOMING_RETURN_ADDR_RTX): New.
17317         (INCOMING_FRAME_SP_OFFSET): New.
17318         (ARG_POINTER_CFA_OFFSET): New.
17319         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
17320         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
17321         (pophi): Remove.
17322
17323         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
17324
17325 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17326
17327         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17328         (FUNCTION_ARG_ADVANCE): Likewise.
17329         * tm.texi.in: Change references to them to hook references.
17330         * tm.texi: Regenerate.
17331         * targhooks.c (default_function_arg): Eliminate check for target
17332         macro.
17333         (default_function_incoming_arg): Likewise.
17334         (default_function_arg_advance): Likewise.
17335         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
17336         (function_arg_advance): Likewise.
17337         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17338
17339 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17340
17341         * tree.c (build_call_1): New function.
17342         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
17343
17344 2011-03-22  Richard Guenther  <rguenther@suse.de>
17345
17346         PR tree-optimization/48228
17347         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
17348         for single-arg PHIs.
17349
17350 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
17351
17352         PR rtl-optimization/48143
17353         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
17354         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
17355         sse2_cvtps2pd): Likewise.
17356
17357 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17358
17359         * recog.c (canonicalize_change_group): Use validate_unshare_change.
17360
17361 2011-03-22  Richard Guenther  <rguenther@suse.de>
17362
17363         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
17364         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
17365         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
17366         and REALIGN_LOAD_EXPR.
17367         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
17368         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
17369         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
17370         DOT_PROD_EXPR case ...
17371         (expand_expr_real_2): ... here.
17372         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
17373         and REALIGN_LOAD_EXPR.
17374         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
17375         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
17376         (vect_create_epilog_for_reduction): Likewise.
17377         (vectorizable_reduction): Likewise.
17378         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
17379         * tree-vect-stmts.c (vectorizable_load): Likewise.
17380
17381 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
17382
17383         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
17384
17385 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17386
17387         * config/s390/s390.c (s390_delegitimize_address): Fix offset
17388         handling for PLTOFF/GOTOFF.
17389
17390 2011-03-22  Nick Clifton  <nickc@redhat.com>
17391
17392         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
17393         trailing backslash from the end of the macro definition.
17394
17395 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17396
17397         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
17398         and PLT unspecs.
17399
17400 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
17401
17402         * expr.h (prepare_operand): Move to...
17403         * optabs.h (prepare_operand): ...here and change the insn code
17404         parameter from "int" to "enum insn_code".
17405         (insn_operand_matches): Declare.
17406         * expr.c (init_expr_target): Use insn_operand_matches.
17407         (compress_float_constant): Likewise.
17408         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
17409         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
17410         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
17411         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17412         Likewise.
17413         (gen_cond_trap): Likewise.
17414         (prepare_operand): Likewise.  Change icode to an insn_code.
17415         (insn_operand_matches): New function.
17416         * reload.c (find_reloads_address_1): Use insn_operand_matches.
17417         * reload1.c (gen_reload): Likewise.
17418         * targhooks.c (default_secondary_reload): Likewise.
17419
17420 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17421
17422         * config/alpha/alpha.md (unspec): New define_c_enum.
17423         (unspecv): Ditto.
17424
17425 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17426
17427         PR debug/48214
17428         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17429         between a call and its CALL_ARG_LOCATION note.
17430
17431 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
17432
17433         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17434
17435 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17436
17437         PR c/42544
17438         PR c/48197
17439         * c-common.c (shorten_compare): If primopN is first sign-extended
17440         to opN and then zero-extended to result type, set primopN to opN.
17441
17442 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
17443
17444         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17445         for barrier handlers.
17446
17447 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17448
17449         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17450         UNSPEC constants to be in the unspec enumeration, and redefine
17451         all UNSPECV constants to be in the unspecv enumeration, so that
17452         dumps print which unspec/unspec_volatile this is.
17453         * config/rs6000/vector.md (UNSPEC_*): Ditto.
17454         * config/rs6000/paired.md (UNSPEC_*): Ditto.
17455         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17456         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17457         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17458
17459         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17460         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17461         UNSPECV_LWSYNC, since these are used as unspec_volatile.
17462         * config/rs6000/sync.md (isync, lwsync): Ditto.
17463
17464 2011-03-21  Richard Guenther  <rguenther@suse.de>
17465
17466         * params.def (lto-min-partition): Fix typo.
17467
17468 2011-03-21  Richard Guenther  <rguenther@suse.de>
17469
17470         PR c/47939
17471         * c-decl.c (grokdeclarator): Drop to the main variant only
17472         for array types.  Drop flag_gen_aux_info check.
17473
17474 2011-03-21  Richard Guenther  <rguenther@suse.de>
17475
17476         PR translation/47911
17477         * params.def (lto-partitions): Fix typo.
17478         (lto-min-partition): Fix wording.
17479
17480 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
17481
17482         * config/rs6000/t-freebsd: Remove duplication from file.
17483
17484 2011-03-21  Richard Guenther  <rguenther@suse.de>
17485
17486         PR middle-end/47661
17487         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17488
17489 2011-03-21  Richard Guenther  <rguenther@suse.de>
17490
17491         PR lto/48210
17492         * params.def (lto-partitions): Require at least 1 partition.
17493
17494 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17495
17496         * gthr-solaris.h: Remove.
17497         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17498         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17499         (LIB_SPEC): Likewise.
17500         * config/sol2.opt (threads): Remove.
17501         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17502         (sparc*-*-solaris2*): Likewise.
17503         * configure.ac (enable_threads): Enable solaris support.
17504         * configure: Regenerate.
17505         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17506         * doc/install.texi (Configuration, --enable-threads=lib): Remove
17507         solaris.
17508
17509 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17510
17511         * config.gcc: Obsolete *-*-solaris2.8*.
17512         * doc/install.texi (Specific, *-*-solaris2*): Document it.
17513
17514 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17515
17516         PR bootstrap/48135
17517         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17518         reference.  Solaris 8 perl works.
17519
17520 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17521
17522         PR bootstrap/48135
17523         * doc/install.texi (Prerequisites): Move jar etc. up.
17524         Explain support library version requirements.
17525
17526 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17527
17528         PR bootstrap/48135
17529         * doc/install.texi (Prerequisites): Move Perl to build
17530         requirements.  Always necessary on Solaris 2 with Sun ld.
17531
17532 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17533
17534         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17535         binutils 2.21.
17536         (Specific, i?86-*-solaris2.[89]): Likewise.
17537         (Specific, i?86-*-solaris2.10): Likewise.
17538         (Specific, mips-sgi-irix6): Likewise.
17539         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17540         Update for binutils 2.21.
17541
17542 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17543
17544         * configure.ac (gcc_cv_lto_plugin): Fix typo.
17545         Allow -fuse-linker-plugin for non-default plugin linker.
17546         * configure: Regenerate.
17547
17548 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17549
17550         PR bootstrap/48167
17551         * gengtype.c (files_rules): Added rule for cp/parser.h.
17552
17553 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17554
17555         PR target/48213
17556         * config/s390/s390.c (s390_delegitimize_address): Don't call
17557         lowpart_subreg if orig_x has BLKmode.
17558
17559 2011-03-21  Kai Tietz  <ktietz@redhat.com>
17560
17561         PR target/12171
17562         * doc/plugins.texi: Adjust documentation for plugin register_callback.
17563         * tree.h (attribute_spec): Add new member affects_type_identity.
17564         * attribs.c (empty_attribute_table): Adjust attribute_spec
17565         initializers.
17566         * config/alpha/alpha.c: Likewise.
17567         * config/arc/arc.c: Likewise.
17568         * config/arm/arm.c: Likewise.
17569         * config/avr/avr.c: Likewise.
17570         * config/bfin/bfin.c: Likewise.
17571         * config/crx/crx.c: Likewise.
17572         * config/darwin.h: Likewise.
17573         * config/h8300/h8300.c: Likewise.
17574         * config/i386/cygming.h: Likewise.
17575         * config/i386/i386.c: Likewise.
17576         * config/ia64/ia64.c: Likewise.
17577         * config/m32c/m32c.c: Likewise.
17578         * config/m32r/m32r.c: Likewise.
17579         * config/m68hc11/m68hc11.c: Likewise.
17580         * config/m68k/m68k.c: Likewise.
17581         * config/mcore/mcore.c: Likewise.
17582         * config/mep/mep.c: Likewise.
17583         * config/microblaze/microblaze.c: Likewise.
17584         * config/mips/mips.c: Likewise.
17585         * config/rs6000/rs6000.c: Likewise.
17586         * config/rx/rx.c: Likewise.
17587         * config/sh/sh.c: Likewise.
17588         * config/sol2.h: Likewise.
17589         * config/sparc/sparc.c: Likewise.
17590         * config/spu/spu.c: Likewise.
17591         * config/stormy16/stormy16.c: Likewise.
17592         * config/v850/v850.c: Likewise.
17593
17594 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
17595
17596         * simplify-rtx.c (simplify_binary_operation_1): Handle
17597         (xor (and A B) C) case when B and C are both constants.
17598
17599 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
17600
17601         * tree-dfa.c (add_referenced_var): Fix typo in comment.
17602
17603 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
17604
17605         PR bootstrap/48168
17606         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17607
17608 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
17609
17610         PR rtl-optimization/48156
17611         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17612         assume df and df_lr are not NULL.
17613
17614 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17615
17616         PR debug/48023
17617         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17618         between a call and its CALL_ARG_LOCATION note.
17619
17620 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
17621
17622         PR debug/48178
17623         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17624         between a call and its corresponding CALL_ARG_LOCATION note.
17625
17626 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
17627
17628         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17629         instead of loop. Use HARD_REGISTER_NUM_P predicate.
17630         * haifa-sched.c (setup_ref_regs): Ditto.
17631         * caller-save.c (add_used_regs_1): Ditto.
17632         * dse.c (look_for_hardregs): Ditto.
17633         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17634         * sched-rgn.c (check_live_1): Ditto.
17635
17636 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17637
17638         * c-decl.c (diagnose_mismatched_decls): Give an error for
17639         redefining a typedef with variably modified type.
17640
17641 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17642
17643         * c-decl.c (grokfield): Don't allow typedefs for structures or
17644         unions with no tag by default.
17645         * doc/extend.texi (Unnamed Fields): Update.
17646
17647 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
17648
17649         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17650         Rewrite using indirect functions.
17651         (lwp_slwpcb): Ditto.
17652         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17653         (avx_vinsertf128<mode>): Ditto.
17654
17655 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17656
17657         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17658         unspecs.
17659
17660 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17661
17662         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17663         splitting between a call and its corresponding CALL_ARG_LOCATION note.
17664
17665 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
17666
17667         PR rtl-optimization/48170
17668         * gcse.c (hoist_code): Remove bogus asserts.
17669
17670 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
17671
17672         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17673         computation for prologue/epilogue.
17674
17675 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17676
17677         * Makefile.in (check-consistency): Remove.
17678
17679 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
17680
17681         PR debug/48176
17682         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17683         arange_table_in_use is 0, but either text_section_used or
17684         cold_text_section_used is true.  Don't call it if
17685         !info_section_emitted.
17686
17687 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
17688
17689         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17690         FUNCTION_VALUE_REGNO_P): Remove.
17691         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17692         Remove.
17693         * config/avr/avr.c (avr_ret_register): Make static inline.
17694         (avr_function_value_regno_p): New function.
17695         (avr_libcall_value): Make static. Add 'func' argument.
17696         (avr_function_value): Make static. Rename 'func' argument to
17697         'fn_decl_or_type', forward it to avr_libcall_value. Call
17698         avr_ret_register function instead of RET_REGISTER macro.
17699         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17700
17701 2011-03-18  Jason Merrill  <jason@redhat.com>
17702
17703         PR c++/23372
17704         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17705
17706 2011-03-18  Richard Guenther  <rguenther@suse.de>
17707
17708         * doc/install.texi (--enable-gold): Remove.
17709         (--with-plugin-ld): Document.
17710         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17711
17712 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
17713
17714         PR middle-end/47790
17715         * expr.c (optimize_bitfield_assignment_op): Revamp to work
17716         again after expansion changes.
17717
17718 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
17719
17720         * combine.c (try_combine): Do simplification only call of
17721         subst() on i2 even when i1 is present. Update comments.
17722
17723 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17724
17725         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17726         and UNSPEC_PCREL_SYMOFF.
17727
17728 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17729
17730         * config/s390/s390.md: Use define_c_enum for the unspec constant
17731         definitions.
17732
17733 2011-03-18  Richard Henderson  <rth@redhat.com>
17734             Jakub Jelinek  <jakub@redhat.com>
17735
17736         PR bootstrap/48161
17737         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17738         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17739
17740 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17741
17742         PR middle-end/47725
17743         * combine.c (cant_combine_insn_p): Don't check zero/sign
17744         extended hard registers.
17745
17746 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17747
17748         PR middle-end/47725
17749         * combine.c (cant_combine_insn_p): Check zero/sign extended
17750         hard registers.
17751
17752 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
17753
17754         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17755         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17756         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17757         Change return type to bool.
17758         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17759
17760 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17761
17762         PR debug/48163
17763         * var-tracking.c (prepare_call_arguments): If CALL target
17764         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17765         pc instead of looking it up using cselib_lookup and use
17766         Pmode for it if x has VOIDmode.
17767         * dwarf2out.c (gen_subprogram_die): If also both first and
17768         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17769
17770         PR debug/48163
17771         * function.c (assign_parms): For data.passed_pointer parms
17772         use MEM of data.entry_parm instead of data.entry_parm itself
17773         as DECL_INCOMING_RTL.
17774         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17775         also when passed and declared mode is the same, DECL_RTL
17776         is a MEM with pseudo as address and DECL_INCOMING_RTL is
17777         a MEM too.
17778
17779 2011-03-16  Jeff Law  <law@redhat.com>
17780
17781         PR rtl-optimization/37273
17782         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17783         handle them like argument loads from stack slots.  Do not double
17784         count memory for memory constants and argument loads from stack slots.
17785
17786 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17787
17788         PR debug/48160
17789         * var-tracking.c (prepare_call_arguments): Check SUBREG.
17790
17791 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17792
17793         PR target/48171
17794         * config/i386/i386.opt: Add Save to -mavx and -mfma.
17795
17796 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17797
17798         PR bootstrap/48153
17799         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17800         if dwarf_strict.
17801         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17802         Clear call_arg_locations and call_arg_loc_last always.
17803
17804         PR middle-end/48152
17805         * var-tracking.c (prepare_call_arguments): If argument needs to be
17806         passed by reference, adjust argtype and mode.
17807
17808 2011-03-17  Richard Guenther  <rguenther@suse.de>
17809
17810         PR middle-end/48134
17811         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17812         a value make sure to fold the statement.
17813
17814 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
17815
17816         PR target/43872
17817         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17818         return condition with !cfun->calls_alloca.
17819
17820 2011-03-17  Richard Guenther  <rguenther@suse.de>
17821
17822         PR bootstrap/48148
17823         * lto-cgraph.c (input_overwrite_node): Clear the abstract
17824         origin for decls in other ltrans units.
17825         (input_varpool_node): Likewise.
17826
17827 2011-03-17  Richard Guenther  <rguenther@suse.de>
17828
17829         PR middle-end/48165
17830         * tree-object-size.c (compute_object_offset): Properly return
17831         the offset operand of MEM_REFs as sizetype.
17832
17833 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17834
17835         PR rtl-optimization/48141
17836         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17837         * dse.c: Include params.h.
17838         (active_local_stores_len): New variable.
17839         (add_wild_read, dse_step1): Clear it when setting active_local_stores
17840         to NULL.
17841         (record_store, check_mem_read_rtx): Decrease it when removing
17842         from the chain.
17843         (scan_insn): Likewise.  Increase it when adding to chain, if it
17844         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17845         set active_local_stores to NULL before the addition.
17846         * Makefile.in (dse.o): Depend on $(PARAMS_H).
17847
17848         PR rtl-optimization/48141
17849         * dse.c (record_store): If no positions are needed in an insn
17850         that cannot be deleted, at least unchain it from active_local_stores.
17851
17852 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
17853
17854         PR debug/47510
17855         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17856         (lookup_type_die_strip_naming_typedef): ... here.
17857         (get_context_die): Use it.
17858         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17859         the anonymous struct named by the naming typedef.
17860
17861 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17862
17863         PR target/48154
17864         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17865         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17866
17867 2011-03-16  Jeff Law  <law@redhat.com>
17868
17869         * tree-vrp.c (identify_jump_threads): Slightly simplify type
17870         check for operands of conditional.  Allow type to be a pointer.
17871
17872 2011-03-16  Richard Guenther  <rguenther@suse.de>
17873
17874         PR tree-optimization/48149
17875         * fold-const.c (fold_binary_loc): Fold
17876         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17877
17878 2011-03-16  Richard Guenther  <rguenther@suse.de>
17879
17880         PR tree-optimization/26134
17881         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17882         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17883         (non_rewritable_mem_ref_base): Handle complex type component
17884         accesses, constrain offsets for vector and complex extracts
17885         more properly.
17886
17887 2011-03-16  Richard Guenther  <rguenther@suse.de>
17888
17889         PR tree-optimization/48146
17890         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17891         operands avoiding the need for renaming.
17892
17893 2011-03-16  Richard Guenther  <rguenther@suse.de>
17894
17895         * gimple-fold.c (maybe_fold_reference): Open-code relevant
17896         constant folding.  Move MEM_REF canonicalization first.
17897         Rely on fold_const_aggregate_ref for initializer folding.
17898         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17899
17900 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
17901
17902         PR middle-end/48136
17903         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17904         arg0/arg1 or their arguments are always fold converted to matching
17905         types.
17906
17907         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17908         to nargs.
17909
17910 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17911
17912         PR lto/46944
17913         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17914         Handle in-tree gold.
17915         (ld_vers): Extract binutils version for gold.
17916         (gcc_cv_ld_hidden): Handle gold here.
17917         (gcc_cv_lto_plugin): Determine level of linker plugin support.
17918         * configure: Regenerate.
17919         * config.in: Regenerate.
17920         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17921         -fuse-linker-plugin otherwise.
17922         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
17923         (LINK_COMMAND_SPEC): Use it.
17924         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17925
17926 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
17927
17928         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17929         * calls.c: Remove debug.h include.
17930         (emit_call_1): Don't call virtual_call_token debug hook.
17931         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17932         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17933         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17934         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17935         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17936         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17937         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17938         dwarf2out_virtual_call): Remove.
17939         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17940         copy_call_info and virtual_call hooks.
17941         (dwarf2out_init): Don't initialize vcall_insn_table,
17942         debug_dcall_section and debug_vcall_section.
17943         (prune_unused_types): Don't mark nodes from dcall_table.
17944         (dwarf2out_finish): Don't output dcall or vcall tables.
17945         * final.c (final_scan_insn): Don't call direct_call or
17946         virtual_call debug hooks.
17947         * debug.h (struct gcc_debug_hooks): Remove direct_call,
17948         virtual_call_token, copy_call_info and virtual_call hooks.
17949         (debug_nothing_uid): Remove prototype.
17950         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17951         copy_call_info and virtual_call hooks.
17952         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17953         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17954         * debug.c (do_nothing_debug_hooks): Likewise.
17955         (debug_nothing_uid): Remove.
17956         * doc/invoke.texi (-fenable-icf-debug): Remove.
17957         * common.opt (-fenable-icf-debug): Likewise.
17958
17959         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17960         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17961         call's MEM.  Handle functions returning aggregate through a hidden
17962         first pointer.  For virtual calls add clobbered pc to call arguments
17963         chain.
17964         * dwarf2out.c (gen_subprogram_die): Emit
17965         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17966         can't be emitted.
17967
17968         PR debug/45882
17969         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17970         * rtl.h (ENTRY_VALUE_EXP): Define.
17971         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17972         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17973         * print-rtl.c (print_rtx): Likewise.
17974         * gengtype.c (adjust_field_rtx_def): Likewise.
17975         * var-tracking.c (vt_add_function_parameter): Adjust
17976         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17977         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17978         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17979         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17980         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17981
17982         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17983         Call var_location debug hook even on CALL_INSNs.
17984         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17985         * rtl.def (ENTRY_VALUE): New.
17986         * dwarf2out.c: Include cfglayout.h.
17987         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17988         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17989         (struct call_arg_loc_node): New type.
17990         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17991         tail_call_site_count): New variables.
17992         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17993         DW_TAG_GNU_call_site_parameter.
17994         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17995         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17996         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17997         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17998         and DW_AT_GNU_all_source_call_sites.
17999         (mem_loc_descriptor): Handle ENTRY_VALUE.
18000         (add_src_coords_attributes): Don't add enything if
18001         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
18002         (dwarf2out_abstract_function): Save and clear call_arg_location,
18003         call_site_count and tail_call_site_count around dwarf2out_decl call.
18004         (gen_call_site_die): New function.
18005         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
18006         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
18007         (dwarf2out_function_decl): Clear call_arg_locations,
18008         call_arg_loc_last, set call_site_count and tail_call_site_count
18009         to -1 and free block_map.
18010         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
18011         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
18012         followed by any real instructions.
18013         (dwarf2out_begin_function): Set call_site_count and
18014         tail_call_site_count to 0.
18015         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
18016         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
18017         attempt to force a DIE for it and worst case remove the attribute.
18018         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
18019         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
18020         the decl itself.
18021         * var-tracking.c: Include tm_p.h.
18022         (vt_stack_adjustments): For calls call note_register_arguments.
18023         (argument_reg_set): New variable.
18024         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
18025         ensure the VALUE is resolved.
18026         (call_arguments): New variable.
18027         (prepare_call_arguments): New function.
18028         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
18029         (struct expand_loc_callback_data): Add ignore_cur_loc field.
18030         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
18031         always use the best expression.
18032         (vt_expand_loc): Add ignore_cur_loc argument.
18033         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
18034         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
18035         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
18036         note for all calls.
18037         (vt_add_function_parameter): Use cselib_lookup_from_insn.
18038         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
18039         argument.  Don't call cselib_preserve_only_values and
18040         cselib_reset_table.
18041         (note_register_arguments): New function.
18042         (vt_initialize): Compute argument_reg_set.  Call
18043         vt_add_function_parameters before processing basic blocks instead of
18044         afterwards.  For calls call prepare_call_arguments before calling
18045         cselib_process_insn.
18046         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
18047         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
18048         (var-tracking.o): Depend on $(TM_P_H).
18049         * cfglayout.h (insn_scope): New prototype.
18050         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
18051         * cfglayout.c (insn_scope): No longer static.
18052         * insn-notes.def (CALL_ARG_LOCATION): New.
18053         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
18054         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
18055         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
18056         nothing for DECL_EXTERNAL BLOCK_VARS.
18057
18058 2011-03-16  Alan Modra  <amodra@gmail.com>
18059
18060         PR target/45844
18061         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18062         create invalid offset address for vsx splat insn.
18063         * config/rs6000/predicates.md (splat_input_operand): New.
18064         * config/rs6000/vsx.md (vsx_splat_*): Use it.
18065
18066 2011-03-15  Xinliang David Li  <davidxl@google.com>
18067
18068         PR c/47837
18069         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
18070         (normalize_preds): New function.
18071         (is_use_properly_guarded): Normalize def predicates.
18072
18073 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18074
18075         PR target/46788
18076         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
18077         in the output template.
18078
18079 2011-03-15  Richard Guenther  <rguenther@suse.de>
18080
18081         PR middle-end/47650
18082         * tree-pretty-print.c (dump_function_declaration): Properly
18083         dump unprototyped and varargs function types.
18084
18085 2011-03-15  Richard Guenther  <rguenther@suse.de>
18086
18087         PR tree-optimization/13954
18088         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
18089         and friends.
18090
18091 2011-03-15  Richard Guenther  <rguenther@suse.de>
18092
18093         PR tree-optimization/48037
18094         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
18095         selects into BIT_FIELD_REFs.
18096         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
18097         vector select.
18098
18099 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
18100
18101         PR tree-optimization/48129
18102         * builtins.c (fold_builtin_snprintf): Convert to type of
18103         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
18104         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
18105
18106 2011-03-15  Richard Guenther  <rguenther@suse.de>
18107
18108         PR tree-optimization/41490
18109         * tree-ssa-dce.c (propagate_necessity): Handle returns without
18110         value but with VUSE.
18111         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
18112         return statements.
18113         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
18114         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
18115         * tree-tailcall.c (find_tail_calls): Ignore returns.
18116
18117 2011-03-15  Richard Guenther  <rguenther@suse.de>
18118
18119         PR middle-end/48031
18120         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
18121         or variable-indexed array accesses when in gimple form.
18122
18123 2011-03-15  Richard Guenther  <rguenther@suse.de>
18124
18125         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
18126
18127 2011-03-15  Alan Modra  <amodra@gmail.com>
18128
18129         PR target/48032
18130         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
18131         presume symbol_refs without a symbol_ref_decl are suitably
18132         aligned, nor other trees we may see here.  Handle anchor symbols.
18133         (legitimate_constant_pool_address_p): Comment.  Add mode param.
18134         Check cmodel=medium addresses.  Adjust all calls.
18135         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
18136         creating cmodel=medium optimized access to locals.
18137         * config/rs6000/constraints.md (R): Pass QImode to
18138         legitimate_constant_pool_address_p.
18139         * config/rs6000/predicates.md (input_operand): Pass mode to
18140         legitimate_constant_pool_address_p.
18141         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
18142         Update prototype.
18143
18144 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18145
18146         PR target/48053
18147         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
18148         64-bit constants being loaded into registers other than GPRs such
18149         as loading 0 into a VSX register.
18150
18151 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18152
18153         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
18154
18155 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
18156
18157         PR middle-end/47917
18158         * builtins.c (fold_builtin_snprintf): New function.
18159         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
18160         (fold_builtin_4): Likewise.
18161
18162         PR middle-end/38878
18163         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
18164         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
18165         and C - X == X also strip nops from +/-/p+ operand.
18166         When optimizing -X == C, fold C to arg0's type.
18167
18168         PR debug/47946
18169         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
18170         emit it as add_AT_int instead of add_AT_unsigned.
18171
18172 2011-03-14  Tom Tromey  <tromey@redhat.com>
18173
18174         * unwind-dw2.c: Include sys/sdt.h if it exists.
18175         (_Unwind_DebugHook): Use STAP_PROBE2.
18176         * config.in, configure: Rebuild.
18177         * configure.ac: Check for sys/sdt.h.
18178
18179 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
18180
18181         * config/i386/i386.md (ROUND_FLOOR): New constant.
18182         (ROUND_CEIL): Ditto.
18183         (ROUND_TRUNC): Ditto.
18184         (ROUND_MXCSR): Ditto.
18185         (ROUND_NO_EXC): Ditto.
18186         (rint<mode>2): Use new defines instead of numerical constants.
18187         (floor<mode>2): Ditto.
18188         (ceil<mode>2): Ditto.
18189         (btrunc<mode>2): Ditto.
18190         * config/i386/i386-builtin-types.def: Define ROUND function type
18191         aliases.
18192         * config/i386/i386.c (enum ix86_builtins): Add
18193         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
18194         (struct builtin_description): Add
18195         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
18196         (ix86_expand_sse_round): New static function.
18197         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
18198         function types.
18199         (ix86_builtin_vectorized_function): Handle
18200         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18201
18202 2011-03-14  Tom Tromey  <tromey@redhat.com>
18203
18204         * c-parser.c (c_parser_asm_string_literal): Clear
18205         warn_overlength_strings.
18206
18207 2011-03-14  Tom Tromey  <tromey@redhat.com>
18208
18209         * c-parser.c (disable_extension_diagnostics): Save
18210         warn_overlength_strings.
18211         (restore_extension_diagnostics): Restore warn_overlength_strings.
18212
18213 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
18214
18215         * BASE-VER: Change to 4.7.0.
18216
18217 2011-03-14  Richard Guenther  <rguenther@suse.de>
18218
18219         PR middle-end/48098
18220         * tree.c (build_vector_from_val): Adjust assert to requirements
18221         and reality.
18222
18223 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
18224
18225         PR bootstrap/48102
18226         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
18227
18228 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
18229
18230         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
18231         terms of target_flags_explicit. Adjust copyright year.
18232
18233         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
18234         * config/rs6000/t-freebsd: New file. Add override for
18235         LIB2FUNCS_EXTRA.
18236
18237 2011-03-13  Chris Demetriou  <cgd@google.com>
18238
18239         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
18240         (-fno-diagnostics-show-option): this, to reflect current default.
18241         (-Werror=): Update text about -fno-diagnostics-show-option.
18242
18243 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
18244
18245         PR target/48053
18246         * config/rs6000/predicates.md (easy_vector_constant_add_self,
18247         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
18248         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
18249         mode is not V2DImode or V2DFmode.
18250         (vspltis_constant): Do not handle V2DImode and V2DFmode.
18251         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
18252         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
18253         registers to 0.
18254         (movdi_internal64): Likewise.
18255
18256 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
18257
18258         PR tree-optimization/47127
18259         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
18260         parameter.
18261         (set_cloog_options): Same.
18262         (scop_to_clast): Same.
18263         (print_clast_stmt): Do not call cloog_state_malloc and
18264         cloog_state_free.
18265         (print_generated_program): Same.
18266         (gloog): Same.
18267         * graphite-clast-to-gimple.h (cloog_state): Declared.
18268         (scop_to_clast): Adjust declaration.
18269         * graphite.c (cloog_state): Defined here.
18270         (graphite_initialize): Call cloog_state_malloc.
18271         (graphite_finalize): Call cloog_state_free.
18272
18273 2011-03-11  Jason Merrill  <jason@redhat.com>
18274
18275         * attribs.c (lookup_attribute_spec): Take const_tree.
18276         * tree.h: Adjust.
18277
18278 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
18279
18280         * config/sparc/sparc.c (sparc_option_override): Use
18281         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
18282
18283 2011-03-11  Richard Guenther  <rguenther@suse.de>
18284
18285         PR tree-optimization/48067
18286         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
18287         multiplication result will be only used once on the target
18288         stmt.
18289
18290 2011-03-11  Richard Guenther  <rguenther@suse.de>
18291
18292         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
18293
18294 2011-03-11  Richard Guenther  <rguenther@suse.de>
18295
18296         PR lto/48073
18297         * tree.c (find_decls_types_r): Do not walk types only reachable
18298         from IDENTIFIER_NODEs.
18299
18300 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
18301
18302         PR middle-end/48044
18303         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
18304         all vnode->force_output nodes as needed.
18305
18306 2011-03-11  Jason Merrill  <jason@redhat.com>
18307
18308         PR c++/48069
18309         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
18310         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
18311
18312 2011-03-11  Martin Jambor  <mjambor@suse.cz>
18313
18314         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
18315         cgraph_node.
18316
18317 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
18318
18319         PR tree-optimization/48063
18320         * ipa-inline.c (cgraph_decide_inlining): Don't try to
18321         inline functions called once if !tree_can_inline_p (node->callers).
18322
18323 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
18324
18325         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
18326         extra_objs.
18327         * config/score/score3.c: Delete.
18328         * config/score/score3.h: Delete.
18329         * config/score/mul-div.S: Delete.
18330         * config/score/sfp-machine.h: Add new file.
18331         * config/score/constraints.md: Add new file.
18332         * config/score/t-score-softfp: Add new file.
18333         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
18334         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
18335         (score7_extra_constraint): Delete.
18336         (score7_option_override): Remove unused code.
18337         * config/score/score.c: Remove score3 and score5 define and code.
18338         * config/score/score.h: Remove score3 and score5 define and code.
18339         * config/score/score.md: Remove score3 template and unusual insn.
18340         * config/score/score.opt: Remove score3 and score5 options.
18341
18342 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18343
18344         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
18345         when _HPUX_SOURCE is defined.
18346         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
18347
18348 2011-03-10  Jason Merrill  <jason@redhat.com>
18349
18350         PR c++/48029
18351         * stor-layout.c (layout_type): Don't set structural equality
18352         on arrays of incomplete type.
18353         * tree.c (type_hash_eq): Handle comparing them properly.
18354
18355 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18356
18357         PR debug/48043
18358         * config/s390/s390.c (s390_delegitimize_address): Make sure the
18359         result mode matches original rtl mode.
18360
18361 2011-03-10  Nick Clifton  <nickc@redhat.com>
18362
18363         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
18364         (andsi3, andsi3_flags): Fix timings for three operand alternative.
18365
18366 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
18367
18368         PR rtl-optimization/47866
18369         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
18370         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
18371         if target wasn't scalar.
18372         * function.c (assign_stack_temp_for_type): Assert that neither
18373         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
18374         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
18375         macro.
18376         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
18377
18378 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18379
18380         * config/s390/s390-protos.h (s390_label_align): New prototype.
18381         * config/s390/s390.c (s390_label_align): New function.
18382         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
18383
18384 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
18385
18386         PR target/47755
18387         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
18388         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
18389         (output_vec_const_move): Ditto.
18390
18391 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
18392
18393         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
18394         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
18395         * config/mips/mips.c (mips_preferred_reload_class): Make static.
18396         Change 'rclass' argument and result type to reg_class_t.
18397         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18398
18399 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
18400
18401         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18402         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
18403         (TARGET_MEMORY_MOVE_COST): Define.
18404         (avr_register_move_cost, avr_memory_move_cost): New Functions.
18405
18406 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
18407
18408         PR debug/47881
18409         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18410         removed anything.
18411
18412         PR tree-optimization/48022
18413         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18414         for EQ/NE_EXPR.
18415
18416 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
18417
18418         PR debug/47991
18419         * var-tracking.c (find_use_val): Return NULL for
18420         cui->sets && cui->store_p BLKmode MEMs.
18421
18422 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
18423
18424         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18425         Remove.
18426         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18427         xstormy16_print_operand_address): Remove.
18428         * config/stormy16/stormy16.c (xstormy16_print_operand,
18429         xstormy16_print_operand_address): Make static.
18430         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18431
18432 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
18433
18434         PR target/47862
18435         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18436         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18437         before definition.
18438
18439 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
18440
18441         PR bootstrap/48000
18442         * cfgloopmanip.c (fix_bb_placements): Return immediately
18443         if FROM is BASE_LOOP's header.
18444
18445 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
18446
18447         * gimplify.c (gimplify_function_tree): Fix building calls
18448         to __builtin_return_address.
18449
18450 2011-03-07  Alan Modra  <amodra@gmail.com>
18451
18452         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18453         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18454         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18455         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18456         return_mode args.
18457         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18458         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18459         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18460         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18461         * config/rs6000/rs6000.c
18462         (rs6000_elf_end_indicate_exec_stack): Rename to..
18463         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
18464         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
18465         (rs6000_file_start): ..here.
18466         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18467         file scope variables.
18468         (call_ABI_of_interest): New function.
18469         (init_cumulative_args): Set above vars when function return value
18470         is a float, vector, or small struct.
18471         (rs6000_function_arg_advance_1): Likewise for function args.
18472         (rs6000_va_start): Set rs6000_passes_float if variable arg function
18473         references float args.
18474
18475 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
18476
18477         * doc/cfg.texi: Remove "See" before @ref.
18478         * doc/invoke.texi: Likewise.
18479
18480 2011-03-05  Jason Merrill  <jason@redhat.com>
18481
18482         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18483
18484 2011-03-05  Anthony Green  <green@moxielogic.com>
18485
18486         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18487
18488 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
18489
18490         PR rtl-optimization/47899
18491         * cfgloopmanip.c (fix_bb_placements): Fix first argument
18492         to flow_loop_nested_p when moving the loop upward.
18493
18494 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
18495
18496         PR target/47719
18497         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
18498
18499 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
18500
18501         PR tree-optimization/47967
18502         * ipa-cp.c (build_const_val): Return NULL instead of creating
18503         VIEW_CONVERT_EXPR for mismatching sizes.
18504         (ipcp_create_replace_map): Return NULL if build_const_val failed.
18505         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18506         give up on versioning.
18507
18508 2011-03-05  Alan Modra  <amodra@gmail.com>
18509
18510         PR target/47986
18511         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18512         full cmodel medium/large lo_sum + high addresses.
18513
18514 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18515
18516         * config/s390/s390.c (s390_decompose_address): Reject non-literal
18517         pool references in UNSPEC_LTREL_OFFSET.
18518
18519 2011-03-04  Jan Hubicka  <jh@suse.cz>
18520
18521         PR lto/47497
18522         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18523         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18524         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18525         Add node pointers.
18526         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18527         cgraph_add_thunk): Add node pointers.
18528         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18529         associated to right node.
18530         (input_node): Update use of cgraph_same_body_alias
18531         and cgraph_add_thunk.
18532
18533 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
18534
18535         * config/i386/i386.opt (mprefer-avx128): New flag.
18536         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18537         modes when the flag -mprefer-avx128 is on.
18538
18539 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
18540
18541         * dwarf2out.c (compare_loc_operands): Fix address handling.
18542
18543 2011-03-04  Alan Modra  <amodra@gmail.com>
18544
18545         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18546
18547 2011-03-04  Richard Guenther  <rguenther@suse.de>
18548
18549         PR middle-end/47968
18550         * expmed.c (extract_bit_field_1): Prefer vector modes that
18551         vec_extract patterns can handle.
18552
18553 2011-03-04  Richard Guenther  <rguenther@suse.de>
18554
18555         PR middle-end/47975
18556         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18557
18558 2011-03-04  Richard Henderson  <rth@redhat.com>
18559
18560         * explow.c (emit_stack_save): Remove 'after' parameter.
18561         (emit_stack_restore): Likewise.
18562         * expr.h: Update to match.
18563         * builtins.c, calls.c, stmt.c: Likewise.
18564         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18565         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18566         * function.c (expand_function_end): Insert the emit_stack_save
18567         sequence before parm_birth_insn instead of after.
18568
18569 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
18570
18571         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18572         (ssse3_pmaddubsw128): Ditto.
18573         (ssse3_pmaddubsw): Ditto.
18574
18575 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
18576
18577         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18578
18579 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
18580
18581         PR c/47963
18582         * gimplify.c (omp_add_variable): Only call omp_notice_variable
18583         on TYPE_SIZE_UNIT if it is a DECL.
18584
18585         PR debug/47283
18586         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18587         first operand is not is_gimple_mem_ref_addr, try to fold it.
18588         If the operand still isn't is_gimple_mem_ref_addr, clear
18589         MEM_EXPR on op0.
18590
18591 2011-03-03  Richard Guenther  <rguenther@suse.de>
18592
18593         PR middle-end/47283
18594         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18595         match comment.
18596         (refs_may_alias_p_1): For release branches return true if
18597         we are confused by our input.
18598
18599 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18600
18601         * config/s390/s390.c (s390_function_value): Rename to ...
18602         (s390_function_and_libcall_value): ... this.
18603         (s390_function_value): New function.
18604         (s390_libcall_value): New function.
18605         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18606         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18607         target macro definitions.
18608         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18609
18610 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
18611
18612         * config/i386/freebsd64.h (CC1_SPEC): Define.
18613         * config/i386/linux64.h (CC1_SPEC): Define.
18614         * config/i386/x86-64.h (CC1_SPEC): Don't define.
18615
18616 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
18617
18618         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18619         Remove.
18620         * config/stormy16/stormy16.c: Include reload.h.
18621         (xstormy16_memory_move_cost): New function.
18622         (TARGET_MEMORY_MOVE_COST): Define.
18623
18624 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
18625
18626         PR rtl-optimization/47925
18627         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18628         with side effects.  Remove the more-specific check for volatile asms.
18629
18630 2011-03-02  Alan Modra  <amodra@gmail.com>
18631
18632         PR target/47935
18633         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18634         toc relative addresses for valid offsets.
18635
18636 2011-03-01  Richard Guenther  <rguenther@suse.de>
18637
18638         PR tree-optimization/47890
18639         * tree-vect-loop.c (get_initial_def_for_induction): Set
18640         related stmt properly.
18641
18642 2011-03-01  Richard Guenther  <rguenther@suse.de>
18643
18644         PR lto/47924
18645         * lto-streamer.c (lto_record_common_node): Also register
18646         the canonical type.
18647
18648 2011-03-01  Richard Guenther  <rguenther@suse.de>
18649
18650         PR lto/46911
18651         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18652         Do not stream DECL_ABSTRACT_ORIGIN.
18653         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18654         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18655         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18656         Do not stream DECL_ABSTRACT_ORIGIN.
18657         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18658         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18659
18660 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
18661
18662         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18663         FUNCTION_VALUE_REGNO_P): Remove.
18664         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18665         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18666         Add 'outgoing' argument.
18667         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18668         function.
18669         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18670         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18671
18672 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
18673
18674         PR debug/28047
18675         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18676         (lookup_filename): Likewise.
18677         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18678
18679 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
18680             Jakub Jelinek  <jakub@redhat.com>
18681
18682         PR middle-end/47893
18683         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18684         (assign_stack_local_1): Change last argument type to int.
18685         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18686         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
18687         don't record padding space into frame_space_list nor use those areas.
18688         (assign_stack_local): Adjust caller.
18689         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18690         of assign_stack_local, pass 0 as last argument.
18691         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18692         callers.
18693
18694 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
18695
18696         PR debug/47283
18697         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18698         Use target address_mode and pointer_mode hooks instead of hardcoded
18699         Pmode and ptr_mode.  Handle some simple cases of extending if
18700         POINTERS_EXTEND_UNSIGNED < 0.
18701         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18702         Call convert_debug_memory_address.
18703         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18704         convert_debug_memory_address.
18705
18706         PR middle-end/46790
18707         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18708         * configure: Regenerated.
18709         * config.in: Regenerated.
18710         * varasm.c (default_function_section): Return NULL
18711         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18712
18713 2011-02-28  Martin Jambor  <mjambor@suse.cz>
18714
18715         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18716         the description to match the printed values.
18717
18718 2011-02-28  Richard Guenther  <rguenther@suse.de>
18719
18720         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18721         of the copied scope tree.
18722
18723 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18724
18725         * doc/extend.texi (Function Attributes): Avoid deeply (and
18726         wrongly) nested tables.
18727
18728 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18729
18730         PR middle-end/47903
18731         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18732         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18733         r isn't op0 nor op1.
18734
18735 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18736
18737         * config/avr/avr.md: Remove magic comment for emacs.
18738
18739 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18740
18741         PR target/45261
18742         * config/avr/avr.c (avr_option_override): Use error on bad options.
18743         (avr_help): New function.
18744         (TARGET_HELP): Define.
18745
18746 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
18747
18748         PR target/42240
18749         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18750         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18751
18752 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
18753
18754         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18755         (ARM Options): Ditto.
18756         (i386 and x86-64 Options): Ditto.
18757         (RX Options): Ditto.
18758         (SPARC Options): Ditto.
18759
18760 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
18761
18762         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18763         FreeBSD 6 and later.  Generally use cpu generic.
18764
18765 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
18766
18767         * doc/cpp.texi: Update copyright years.
18768
18769 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
18770
18771         PR target/46898
18772         * config/lm32/lm32.md (ashrsi3): Added needed variable.
18773
18774 2011-02-25  Jon Beniston  <jon@beniston.com>
18775
18776         PR target/46898
18777         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18778         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18779         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18780         (lm32_block_move_inline): Add type cast to remove warning.
18781         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18782         (gen_int_relational): Move declarations to start of function.
18783
18784 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
18785
18786         PR tree-optimization/45470
18787         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18788         can throw internally only.
18789         * tree-vect-stmts.c (vectorizable_call): Likewise.
18790
18791 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
18792
18793         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18794         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18795         * config/stormy16/stormy16-protos.h
18796         (xstormy16_preferred_reload_class): Remove.
18797         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18798         static. Change 'rclass' argument and return type to reg_class_t.
18799         (TARGET_PREFERRED_RELOAD_CLASS,
18800         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18801
18802 2011-02-24  Richard Guenther  <rguenther@suse.de>
18803
18804         * lto-streamer-in.c (input_bb): Do not find referenced vars
18805         in debug statements.
18806
18807 2011-02-23  Jason Merrill  <jason@redhat.com>
18808
18809         * common.opt (fabi-version): Document v5 and v6.
18810
18811 2011-02-23  Richard Guenther  <rguenther@suse.de>
18812
18813         PR tree-optimization/47849
18814         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18815
18816 2011-02-23  Jie Zhang  <jie@codesourcery.com>
18817
18818         * opts-common.c (decode_cmdline_option): Print empty string
18819         argument as "" in decoded->orig_option_with_args_text.
18820         * gcc.c (execute): Print empty string argument as ""
18821         in the verbose output.
18822         (do_spec_1): Keep empty string argument.
18823
18824 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
18825
18826         * config.gcc: Declare score-* and crx-* obsolete.
18827
18828 2011-02-23  Jie Zhang  <jie@codesourcery.com>
18829
18830         PR rtl-optimization/47763
18831         * web.c (web_main): Ignore naked clobber when replacing register.
18832
18833 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
18834
18835         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18836         Remove.
18837
18838 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18839
18840         PR doc/47848
18841         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18842
18843 2011-02-22  Mike Stump  <mikestump@comcast.net>
18844
18845         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18846         assembler.
18847         * configure: Regenerate.
18848
18849 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
18850
18851         PR rtl-optimization/46002
18852         * ira-color.c (update_copy_costs): Change class intersection
18853         test to reg_class_contents[] test of 'hard_regno'.
18854
18855 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
18856
18857         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18858         than Driver option.
18859         * config/hpux11.opt (mt): Likewise.
18860         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18861         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18862         * config/vax/elf.opt (mno-asm-pic): Likewise.
18863         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18864
18865 2011-02-21  Mike Stump  <mikestump@comcast.net>
18866
18867         PR target/47822
18868         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18869         tree so we can get save the type.
18870         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18871         for CFString instead of trying to use past the end of the builtins.
18872         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18873         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18874         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18875         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18876         Rename to darwin_builtin_cfstring.
18877         (darwin_init_cfstring_builtins): Return the built type.
18878
18879 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
18880
18881         PR target/47840
18882         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18883         (_mm256_insert_epi64): Use _mm_insert_epi64.
18884
18885 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
18886
18887         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18888         * config/stormy16/stormy16-protos.h
18889         (xstormy16_mode_dependent_address_p): Remove.
18890         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18891         Make static. Change return type to bool. Change argument type to
18892         const_rtx. Remove dead code.
18893         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18894
18895 2011-02-21  Richard Guenther  <rguenther@suse.de>
18896
18897         PR lto/47820
18898         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18899         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18900         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18901         TUs context.
18902         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18903         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18904
18905 2011-02-20  Richard Guenther  <rguenther@suse.de>
18906
18907         PR lto/47822
18908         * tree.c (free_lang_data_in_decl): Clean builtins from
18909         the TU decl BLOCK_VARS.
18910
18911 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
18912
18913         PR debug/47620
18914         PR debug/47630
18915         * haifa-sched.c (fix_tick_ready): Skip tick computation
18916         for debug insns.
18917
18918 2011-02-19  Richard Guenther  <rguenther@suse.de>
18919
18920         PR lto/47647
18921         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18922         Remove lazy BLOCK_VARS streaming.
18923         (lto_input_ts_block_tree_pointers): Likewise.
18924         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18925
18926 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
18927
18928         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18929
18930 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
18931
18932         * config/i386/biarch32.h, config/i386/mach.h,
18933         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18934
18935 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
18936
18937         PR target/47800
18938         * config/i386/i386.md (peephole2 for shift and plus): Use
18939         operands[1] original mode in the first insn.
18940
18941 2011-02-18  Mike Stump  <mikestump@comcast.net>
18942
18943         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
18944
18945 2011-02-18  Jan Hubicka  <jh@suse.cz>
18946
18947         PR middle-end/47788
18948         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18949         to zero when the function is not inlinable at all.
18950
18951 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18952
18953         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18954         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18955         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18956         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18957         * config/pa/t-pa64: Likewise.
18958         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18959
18960 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18961
18962         PR driver/47787
18963         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18964
18965 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18966
18967         PR target/47792
18968         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18969
18970 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
18971
18972         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18973         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18974         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18975         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18976         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18977         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18978         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18979         m32r_load_postinc_p, m32r_store_preinc_predec_p,
18980         m32r_legitimate_address_p): New functions.
18981         * config/m32r/constraints.md (constraint "S"): Don't use
18982         STORE_PREINC_PREDEC_P.
18983         (constraint "U"): Don't use LOAD_POSTINC_P.
18984
18985 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
18986
18987         PR rtl-optimization/46178
18988         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18989         compute ira_hard_regno_cover_class[].
18990
18991 2011-02-18  Richard Guenther  <rguenther@suse.de>
18992
18993         PR lto/47798
18994         * lto-streamer.h (lto_global_var_decls): Declare.
18995         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18996         statics for global var processing.
18997
18998 2011-02-18  Richard Guenther  <rguenther@suse.de>
18999
19000         PR tree-optimization/47737
19001         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
19002         edge dominance check.
19003
19004 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
19005
19006         PR debug/47780
19007         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
19008         avoid invalid rtx sharing.
19009
19010 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
19011
19012         * doc/cpp.texi (Obsolete Features): Add background on the
19013         origin of assertions.
19014
19015 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
19016
19017         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
19018         objc_abi == 2.
19019         * config/darwin.c (output_objc_section_asm_op): Added support for
19020         ABI v1 and v2.
19021         (is_objc_metadata): New.
19022         (darwin_objc2_section): New.
19023         (darwin_objc1_section): New.
19024         (machopic_select_section): Added support for ABI v1 and v2.
19025         (darwin_emit_objc_zeroed): New.
19026         (darwin_output_aligned_bss): Detect objc metadata and treat it
19027         appropriately.
19028         (darwin_asm_output_aligned_decl_common): Same.
19029         (darwin_asm_output_aligned_decl_local): Same.
19030         * config/darwin-sections.def: Updated for ABI v1 and v2.
19031         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
19032         compiling Objective-C code for the NeXT runtime, default to using
19033         ABI version 0 for 32-bit, and version 2 for 64-bit.
19034
19035 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19036
19037         * common.opt (optimize_fast): New Variable.
19038         * opts.c (default_options_optimization): Use opts->x_optimize_fast
19039         instead of local variable ofast.
19040
19041 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
19042
19043         * doc/invoke.texi (fobjc-abi-version): Documented.
19044         (fobjc-nilcheck): Documented.
19045         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
19046         version.
19047
19048 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19049
19050         PR driver/47390
19051         * common.opt (export-dynamic): New Driver option.
19052         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
19053
19054 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19055
19056         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
19057
19058 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
19059             Jan Hubicka  <jh@suse.cz>
19060
19061         PR debug/47106
19062         PR debug/47402
19063         * cfgexpand.c (account_used_vars_for_block): Remove.
19064         (estimated_stack_frame_size): Use referenced vars.
19065         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
19066         that were referenced in the original function.  Test src_fn
19067         rather than cfun.  Drop redundant get_var_ann.
19068         (setup_one_parameter): Drop redundant get_var_ann.
19069         (declare_return_variable): Likewise.
19070         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
19071         (copy_arguments_for_versioning): Drop redundant get_var_ann.
19072         * ipa-inline.c (compute_inline_parameters): Do not compute
19073         disregard_inline_limits here.
19074         (compute_inlinable_for_current, pass_inlinable): New.
19075         (pass_inline_parameters): Require PROP_referenced_vars.
19076         * cgraphunit.c (cgraph_process_new_functions): Don't run
19077         compute_inline_parameters explicitly unless function is in SSA form.
19078         (cgraph_analyze_function): Set .disregard_inline_limits.
19079         * tree-sra.c (convert_callers): Compute inliner parameters
19080         only for functions already in SSA form.
19081
19082 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19083
19084         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
19085         -mlittle-endian-data.
19086
19087 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19088
19089         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
19090         -mno-fpu, not -fpu and -no-fpu.
19091         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
19092         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
19093
19094 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
19095
19096         PR target/43653
19097         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
19098         input reload with PLUS RTX.
19099
19100 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19101
19102         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
19103         of InverseVar(MDMX).
19104
19105 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19106
19107         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
19108         --m4-340.
19109
19110 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19111
19112         * config/mn10300/mn10300.opt (mno-crt0): New.
19113
19114 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19115
19116         * config/m68k/uclinux.opt (static-libc): New Driver option.
19117
19118 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19119
19120         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
19121
19122 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19123
19124         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
19125         %{muser-extend-enabled}.
19126
19127 2011-02-16  Richard Guenther  <rguenther@suse.de>
19128
19129         PR tree-optimization/47738
19130         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
19131         the TODO from tree_predictive_commoning.
19132
19133 2011-02-15  Jeff Law  <law@redhat.com>
19134
19135         Revert
19136         2011-01-25  Jeff Law  <law@redhat.com>
19137
19138         PR rtl-optimization/37273
19139         * ira-costs.c (scan_one_insn): Detect constants living in memory and
19140         handle them like argument loads from stack slots.  Do not double
19141         count memory for memory constants and argument loads from stack slots.
19142
19143 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
19144
19145         PR middle-end/47725
19146         * combine.c (cant_combine_insn_p): Revert the last change.
19147
19148 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
19149
19150         PR target/47755
19151         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
19152         mode for vector constants.  Remove code that checks for TImode.
19153
19154 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19155
19156         PR debug/47106
19157         PR debug/47402
19158         * cgraph.h (compute_inline_parameters): Return void.
19159         * ipa-inline.c (compute_inline_parameters): Adjust.
19160
19161 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19162
19163         PR debug/47106
19164         PR debug/47402
19165         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
19166         rather than decl.
19167         * cfgexpand.c (estimated_stack_frame_size): Likewise.
19168         * ipa-inline.c (compute_inline_parameters): Adjust.
19169
19170 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19171
19172         PR debug/47106
19173         PR debug/47402
19174         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
19175         Adjust all users.  Pass FN to...
19176         * tree-flow-inline.h (first_referenced_var): ... this.  Add
19177         fn argument.
19178         * ipa-struct-reorg.c: Adjust.
19179         * tree-dfa.c: Adjust.
19180         * tree-into-ssa.c: Adjust.
19181         * tree-sra.c: Adjust.
19182         * tree-ssa-alias.c: Adjust.
19183         * tree-ssa-live.c: Adjust.
19184         * tree-ssa.c: Adjust.
19185         * tree-ssanames.c: Adjust.
19186         * tree-tailcall.c: Adjust.
19187
19188 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19189
19190         PR debug/47106
19191         PR debug/47402
19192         * tree-flow.h (referenced_var_lookup): Add fn parameter.
19193         Adjust all callers.
19194         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
19195         * tree-flow-inline.h: Adjust.
19196         * gimple-pretty-print.c: Adjust.
19197         * tree-into-ssa.c: Adjust.
19198         * tree-ssa.c: Adjust.
19199         * cfgexpand.c: Adjust.
19200
19201 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
19202
19203         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
19204         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19205         (EXTRA_CONSTRAINT): Delete.
19206         * config/iq2000/constraints.md: New file.
19207         * config/iq2000/iq2000.md: Include it.
19208         (define_insn ""): Delete.
19209         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
19210         unsupported constraint letters from patterns.
19211         (call_value, call_value_internal1): Likewise.
19212         (call_value_multiple_internal1): Likewise.
19213
19214 2011-02-15  Nick Clifton  <nickc@redhat.com>
19215
19216         * config/mn10300/mn10300.c: Include tm-constrs.h.
19217         (struct liw_data): New data structure describing an LIW candidate
19218         instruction.
19219         (extract_bundle): Use struct liw_data.  Allow small integer
19220         operands for some instructions.
19221         (check_liw_constraints): Use struct liw_data.  Remove swapped
19222         parameter.  Add comments describing the checks.  Fix bug when
19223         assigning the source of liw1 to the source of liw2.
19224         (liw_candidate): Delete.  Code moved into extract_bundle.
19225         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
19226         before swapping.
19227         * config/mn10300/predicates.md (liw_operand): New predicate.
19228         Allows registers and small integer constants.
19229         * config/mn10300/constraints.md (O): New constraint.  Accetps
19230         integers in the range -8 to +7 inclusive.
19231         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
19232         for moving a small integer into a register.  Give this alternative
19233         LIW attributes.
19234         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
19235         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
19236         using the J,K,L and M constraints,
19237         (liw): Remove SI mode on second operands to allow for HI and QI
19238         mode values.
19239         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
19240         instruction.
19241
19242 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
19243
19244         PR middle-end/47725
19245         * combine.c (cant_combine_insn_p): Check zero/sign extended
19246         hard registers.
19247
19248 2011-02-15  Richard Guenther  <rguenther@suse.de>
19249
19250         PR tree-optimization/47743
19251         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
19252         for a non-type-compatible VN lookup bail out.
19253
19254 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
19255
19256         * config/fr30/constraints.md: New file.
19257         * config/fr30/fr30.md: Include it.
19258         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
19259         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19260         (EXTRA_CONSTRAINT): Delete.
19261
19262 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
19263
19264         * config/frv/constraints.md: New file.
19265         * config/frv/predicates.md: Include it.
19266         * config/frv/frv.c (reg_class_from_letter): Delete.
19267         (frv_option_override): Don't initialize it.
19268         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
19269         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
19270         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
19271         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19272         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
19273         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19274         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
19275         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
19276         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
19277         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
19278         (REG_CLASS_FROM_CONSTRAINT): Delete.
19279
19280 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
19281
19282         PR middle-end/47581
19283         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
19284         if frame size is 0 in a leaf function.
19285
19286 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19287
19288         PR pch/14940
19289         * config/alpha/host-osf.c: New file.
19290         * config/alpha/x-osf: New file.
19291         * config.host (alpha*-dec-osf*): Use it.
19292
19293 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
19294
19295         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19296         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
19297         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
19298         (rx_mode_dependent_address_p): ...this. Make static. Change argument
19299         type to const_rtx.
19300         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19301
19302 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
19303
19304         * config/stormy16/constraints.md: New file.
19305         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
19306         Use satisfies_constraint_Q and satisfies_constraint_R.
19307         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
19308         Delete.
19309         (xstormy16_legitiamte_address_p): Declare.
19310         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
19311         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19312         (EXTRA_CONSTRAINT): Delete.
19313         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19314         Un-staticize.
19315         (xstormy16_extra_constraint_p): Delete.
19316
19317 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
19318
19319         PR tree-optimization/46494
19320         * loop-unroll.c (split_edge_and_insert): Adjust comment.
19321         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
19322         (pass_rtl_loop_done): Add TODO_verify_flow.
19323         * fwprop.c (pass_rtl_fwprop): Likewise.
19324         * modulo-sched.c (pass_sms): Likewise.
19325         * tree-ssa-dom.c (pass_dominator): Likewise.
19326         * tree-ssa-loop-ch.c (pass_ch): Likewise.
19327         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
19328         (pass_tree_loop_done): Likewise.
19329         * tree-ssa-pre.c (execute_pre): Likewise.
19330         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19331         * tree-ssa-sink.c (pass_sink_code): Likewise.
19332         * tree-vrp.c (pass_vrp): Likewise.
19333
19334 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
19335
19336         * config/v850/constraints.md: New file.
19337         * config/v850/v850.md: Include it.
19338         * config/v850/predicates.md (reg_or_0_operand): Use
19339         satisfies_constraint_G.
19340         (special_symbolref_operand): Use satisfies_constraint_K.
19341         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
19342         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
19343         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
19344         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19345         (EXTRA_CONSTRAINT): Delete.
19346         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
19347         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
19348         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
19349
19350 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
19351
19352         PR target/47696
19353         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
19354         description.
19355
19356 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
19357
19358         * config/mcore/constraints.md: New file.
19359         * config/mcore/mcore.md: Include it.
19360         * config/mcore/mcore.c (reg_class_from_letter): Delete.
19361         * config/mcore/mcore.h (reg_class_from_letter): Delete.
19362         (REG_CLASS_FROM_LETTER): Delete.
19363         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
19364         insn_const_int_ok_for_constraint.
19365         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
19366         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
19367         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19368         (EXTRA_CONSTRAINT): Delete.
19369
19370 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19371
19372         PR ada/41929
19373         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
19374         (IS_SIGHANDLER): Define.
19375         (sparc64_is_sighandler): New function, split off from
19376         sparc64_fallback_frame_state.
19377         (sparc_is_sighandler): New function, split off from
19378         sparc_fallback_frame_state.
19379         (sparc64_fallback_frame_state): Merge with ...
19380         (sparc_fallback_frame_state): ... this into ...
19381         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
19382         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
19383         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
19384         stack instead of hardcoded offsets.
19385
19386 2011-02-14  Andriy Gapon  <avg@freebsd.org>
19387
19388         PR target/45808
19389         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
19390
19391 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19392
19393         * configure: Regenerate.
19394
19395 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
19396
19397         PR driver/45731
19398         * gcc.c (asm_options): Correct spec matching --target-help.
19399
19400 2011-02-12  Martin Jambor  <mjambor@suse.cz>
19401
19402         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
19403         to gimple call error.
19404
19405 2011-02-12  Mike Stump  <mikestump@comcast.net>
19406
19407         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
19408         comments in backslash regions.
19409
19410 2011-02-12  Mike Stump  <mikestump@comcast.net>
19411             Jakub Jelinek  <jakub@redhat.com>
19412             Iain Sandoe  <iains@gcc.gnu.org>
19413
19414         PR target/47324
19415         * dwarf2out.c (output_cfa_loc): When required, apply the
19416         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19417         (output_loc_sequence): Likewise.
19418         (output_loc_operands_raw): Likewise.
19419         (output_loc_sequence_raw): Likewise.
19420         (output_cfa_loc): Likewise.
19421         (output_loc_list): Suppress register number adjustment when
19422         calling output_loc_sequence()
19423         (output_die): Likewise.
19424
19425 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
19426
19427         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19428         Remove macros.
19429         * config/xtensa/xtensa.c (xtensa_register_move_cost,
19430         xtensa_memory_move_cost): New functions.
19431         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19432
19433 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
19434
19435         PR lto/47225
19436         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19437         in the current directory.
19438         * configure: Rebuilt.
19439
19440 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19441
19442         * config/darwin.c (darwin_override_options): Add a hunk missed
19443         from the commit of r168571.  Trim comment line lengths and
19444         correct indents of the preceding block.
19445
19446 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19447
19448         * gcc.c (driver_handle_option): Concatenate the argument to -F with
19449         the switch.
19450
19451 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19452
19453         * common.opt (nostartfiles): New Driver option.
19454
19455 2011-02-11  Xinliang David Li  <davidxl@google.com>
19456
19457         PR tree-optimization/47707
19458         * tree-chrec.c (convert_affine_scev): Keep type precision.
19459
19460 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
19461
19462         PR tree-optimization/47420
19463         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19464
19465 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
19466
19467         PR rtl-optimization/47614
19468         * rtl.h (check_for_inc_dec): Declare.
19469         * dse.c (check_for_inc_dec): Externalize...
19470         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19471         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19472
19473 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19474
19475         PR driver/47678
19476         * gcc.c (main): Do not compile inputs if there were errors in
19477         option handling.
19478         * opts-common.c (read_cmdline_option): Check for wrong language
19479         after other error checks.
19480
19481 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
19482
19483         * cgraph.c: Fix comment typos.
19484         * cgraph.h: Likewise.
19485         * cgraphunit.c: Likewise.
19486         * ipa-cp.c: Likewise.
19487         * ipa-inline.c: Likewise.
19488         * ipa-prop.c: Likewise.
19489         * ipa-pure-const.c: Likewise.
19490         * ipa-ref.c: Likewise.
19491         * ipa-reference.c: Likewise.
19492
19493 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19494
19495         PR debug/47684
19496         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19497
19498 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19499
19500         PR testsuite/47400
19501         * doc/sourcebuild.texi (Require Support): Document
19502         dg-require-ascii-locale.
19503
19504 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
19505
19506         * doc/lto.texi (Write summary): Fix missing parentheses.
19507
19508 2011-02-10  DJ Delorie  <dj@redhat.com>
19509
19510         * config/m32c/m32c.c (m32c_option_override): Disable
19511         -fcombine-stack-adjustments until flag value tracking and compare
19512         optimization can be rewritten.
19513
19514 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
19515
19516         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19517         PROCESSOR_POWER7.
19518         (PROCESSOR_DEFAULT64): Likewise.
19519
19520 2011-02-10  Richard Henderson  <rth@redhat.com>
19521
19522         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19523         change from 2011-02-03.
19524         * config/rx/rx.c (flags_from_code): Likewise.
19525         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19526         is valid, n/pz otherwise.
19527         (rx_select_cc_mode): Return CCmode if Y is not zero.
19528
19529 2011-02-10  Richard Guenther  <rguenther@suse.de>
19530
19531         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19532
19533 2011-02-10  Richard Guenther  <rguenther@suse.de>
19534
19535         PR tree-optimization/47677
19536         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19537
19538 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
19539
19540         PR target/47665
19541         * combine.c (make_compound_operation): Only change shifts into
19542         multiplication for SCALAR_INT_MODE_P.
19543
19544 2011-02-10  Jie Zhang  <jie@codesourcery.com>
19545
19546         PR testsuite/47622
19547         Revert
19548         2011-02-05  Jie Zhang  <jie@codesourcery.com>
19549         PR debug/42631
19550         * web.c (entry_register): Don't clobber the number of the
19551         first uninitialized reference in used[].
19552
19553 2011-02-09  Richard Guenther  <rguenther@suse.de>
19554
19555         PR tree-optimization/47664
19556         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19557         all edges again.
19558
19559 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
19560
19561         PR target/46481
19562         PR target/47032
19563         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19564         PROCESSOR_POWER7.
19565         (PROCESSOR_DEFAULT64): Same.
19566         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19567
19568 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19569
19570         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19571
19572 2011-02-09  Martin Jambor  <mjambor@suse.cz>
19573
19574         PR middle-end/45505
19575         * tree-sra.c (struct access): New flags grp_scalar_read and
19576         grp_scalar_write.  Changed description of assignment read and write
19577         flags.
19578         (dump_access): Dump new flags, reorder all of them.
19579         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19580         to detect multiple scalar reads.
19581         (analyze_access_subtree): Use the new scalar read write flags instead
19582         of the old flags.  Adjusted comments.
19583
19584 2011-02-08  DJ Delorie  <dj@redhat.com>
19585
19586         PR target/47548
19587         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19588         patterns.
19589
19590 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19591
19592         * config/m68k/uclinux.opt: New.
19593         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19594
19595 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19596
19597         * config/cris/elf.opt (sim): New Driver option.
19598
19599 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19600
19601         * config/xtensa/elf.opt: New.
19602         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19603
19604 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19605
19606         * config/vax/elf.opt: New.
19607         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19608
19609 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19610
19611         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19612
19613 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19614
19615         * config/gnu-user.opt: New.
19616         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19617         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19618         *-*-uclinux*): Use gnu-user.opt.
19619
19620 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
19621
19622         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19623         * config/i386/gnu.h (CPP_SPEC): Likewise.
19624
19625 2011-02-08  Ian Lance Taylor  <iant@google.com>
19626
19627         * common.opt (fcx-limited-range): Add SetByCombined flag.
19628         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19629         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19630         (fassociative-math, freciprocal-math): Likewise.
19631         (funsafe-math-optimizations): Likewise.
19632         * opth-gen.awk: Handle SetByCombined.
19633         * optc-gen.awk: Likewise.
19634         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19635         (set_unsafe_math_optimizations_flags): Likewise.
19636         * doc/options.texi (Option properties): Document SetByCombined.
19637
19638 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19639
19640         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19641         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19642         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19643         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19644         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19645
19646 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
19647
19648         PR tree-optimization/46834
19649         PR tree-optimization/46994
19650         PR tree-optimization/46995
19651         * graphite-sese-to-poly.c (used_outside_reduction): New.
19652         (detect_commutative_reduction): Call used_outside_reduction.
19653         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19654         translate_scalar_reduction_to_array only when at least one
19655         loop-phi/close-phi tuple has been detected.
19656
19657 2011-02-08  Richard Guenther  <rguenther@suse.de>
19658
19659         PR middle-end/47639
19660         * tree-vect-generic.c (expand_vector_operations_1): Update
19661         stmts here ...
19662         (expand_vector_operations): ... not here.  Cleanup EH info
19663         and the CFG if required.
19664
19665 2011-02-08  Richard Guenther  <rguenther@suse.de>
19666
19667         PR tree-optimization/47641
19668         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19669         require type compatibility.
19670
19671 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19672
19673         * gimple-low.c (lower_function_body): Don't remove the location of
19674         the return statement here.
19675         (lower_gimple_return): Do it here instead but only if the return
19676         statement is actually used twice.
19677
19678 2011-02-08  Richard Guenther  <rguenther@suse.de>
19679
19680         PR tree-optimization/47632
19681         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19682         unused up_to_stmt parameter, return whether cfg-cleanup is
19683         necessary, remove EH info properly.
19684         (forward_propagate_into_gimple_cond): Adjust caller.
19685         (forward_propagate_into_cond): Likewise.
19686         (forward_propagate_comparison): Likewise.
19687         (tree_ssa_forward_propagate_single_use_vars): Make
19688         forward_propagate_comparison case similar to the two others.
19689
19690 2011-02-08  Nick Clifton  <nickc@redhat.com>
19691
19692         * config/mn10300/mn10300.opt (mliw): New command line option.
19693         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19694         (liw_bundling): New automaton.
19695         (liw): New attribute.
19696         (liw_op): New attribute.
19697         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19698         (movsi_internal): Add LIW attributes.
19699         (andsi3): Likewise.
19700         (iorsi3): Likewise.
19701         (xorsi3): Likewise.
19702         (addsi3): Separate register and immediate alternatives.
19703         Add LIW attributes.
19704         (subsi3): Likewise.
19705         (cmpsi): Likewise.
19706         (aslsi3): Likewise.
19707         (lshrsi3): Likewise.
19708         (ashrsi3): Likewise.
19709         (liw): New pattern.
19710         * config/mn10300/mn10300.c (liw_op_names): New
19711         (mn10300_print_operand): Handle 'W' operand descriptor.
19712         (extract_bundle): New function.
19713         (check_liw_constraints): New function.
19714         (liw_candidate): New function.
19715         (mn10300_bundle_liw): New function.
19716         (mn10300_reorg): New function.
19717         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19718         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19719         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19720         __LIW__ or __NO_LIW__.
19721         * doc/invoke.texi: Describe the -mliw command line option.
19722
19723 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19724
19725         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19726         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19727         pthread_mutex_unlock): Remove.
19728         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19729         * config/pa/t-pa64: Likewise.
19730         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19731         shared libc if not linking against libpthread.
19732         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19733
19734 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
19735
19736         PR target/47558
19737         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19738         on 10.6 and later to ensure that we always use the unwinder from
19739         the system.  Only add -no_compact_unwind when tarteting darwin
19740         10.6 or later.
19741
19742 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
19743
19744         PR target/46997
19745         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19746         (vec_interleave_lowv2sf): Ditto.
19747         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19748         (vec_extract_oddv2sf): Ditto.
19749
19750 2011-02-07  Mike Stump  <mikestump@comcast.net>
19751
19752         PR target/42333
19753         Add __ieee_divdc3 entry point.
19754         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19755         entry point.
19756         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19757         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19758         * config/darwin.c (darwin_rename_builtins): Add.
19759         * config/darwin-protos.h (darwin_rename_builtins): Add.
19760
19761 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
19762
19763         PR target/47636
19764         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19765         for the condition.
19766
19767 2011-02-07  Mike Stump  <mikestump@comcast.net>
19768
19769         * config/darwin.opt (mmacosx-version-min): Update default OS version.
19770
19771 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
19772
19773         PR target/47534
19774         * config/avr/libgcc.S (exit): Move .endfunc
19775
19776 2011-02-07  Richard Guenther  <rguenther@suse.de>
19777
19778         PR tree-optimization/47615
19779         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19780         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19781         (run_scc_vn): Initialize it.
19782         (visit_reference_op_load): Use it.
19783         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19784
19785 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19786
19787         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19788         DImode trapping arithmetic libfuncs.
19789
19790 2011-02-07  Richard Guenther  <rguenther@suse.de>
19791
19792         PR tree-optimization/47621
19793         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19794         two duplicates ...
19795         (execute_update_addresses_taken): ... here.  Make it more
19796         conservative in what we accept.
19797
19798 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
19799
19800         * config/sparc/freebsd.h (ASM_SPEC): Define.
19801         * config/sparc/vxworks.h (ASM_SPEC): Define.
19802
19803 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
19804
19805         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19806
19807 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
19808
19809         * doc/invoke.texi: Remove reference to compiler internals from
19810         user documentation.
19811
19812         * reg-notes.def: Remove REG_VALUE_PROFILE.
19813         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19814
19815 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
19816
19817         PR middle-end/47610
19818         * varasm.c (default_section_type_flags): If decl is NULL,
19819         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19820
19821 2011-02-05  Jie Zhang  <jie@codesourcery.com>
19822
19823         PR debug/42631
19824         * web.c (entry_register): Don't clobber the number of the
19825         first uninitialized reference in used[].
19826
19827 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
19828
19829         PR tree-optimization/46194
19830         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19831         (build_classic_dist_vector_1): Do not represent classic distance
19832         vectors when the access functions are variating in different loops.
19833
19834 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19835
19836         * config/mips/iris6.opt: New.
19837         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19838
19839 2011-02-04  Richard Henderson  <rth@redhat.com>
19840             Steve Ellcey  <sje@cup.hp.com>
19841
19842         PR target/46997
19843         * config/ia64/predicates.md (mux1_brcst_element): New.
19844         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19845         * config/ia64/ia64.c (ia64_unpack_assemble): New.
19846         (ia64_unpack_sign): New.
19847         (ia64_expand_unpack): Rewrite using new routines.
19848         (ia64_expand_widen_sum): Ditto.
19849         (ia64_expand_dot_prod_v8qi): Ditto.
19850         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19851         routines, add endian check.
19852         (pmpy2_even): Rename from pmpy2_r, add endian check.
19853         (pmpy2_odd): Rename from pmpy2_l, add endian check.
19854         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19855         (vec_widen_smult_hi_v4hi): Ditto.
19856         (vec_widen_umult_lo_v4hi): Ditto.
19857         (vec_widen_umult_hi_v4hi): Ditto.
19858         (mulv2si3): Change endian checks.
19859         (sdot_prodv4hi): Rewrite with new calls.
19860         (udot_prodv4hi): New.
19861         (vec_pack_ssat_v4hi): Add endian check.
19862         (vec_pack_usat_v4hi): Ditto.
19863         (vec_pack_ssat_v2si): Ditto.
19864         (max1_even): Rename from max1_r, add endian check.
19865         (max1_odd): Rename from max1_l, add endian check.
19866         (*mux1_rev): Format change.
19867         (*mux1_mix): Ditto.
19868         (*mux1_shuf): Ditto.
19869         (*mux1_alt): Ditto.
19870         (*mux1_brcst_v8qi): Use new predicate.
19871         (vec_extract_evenv8qi): Remove endian check.
19872         (vec_extract_oddv8qi): Ditto.
19873         (vec_interleave_lowv4hi): Format change.
19874         (vec_interleave_highv4hi): Ditto.
19875         (mix2_even): Rename from mix2_r, add endian check.
19876         (mix2_odd): Rename from mux2_l, add endian check.
19877         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19878         (vec_extract_evenodd_helper): Format change.
19879         (vec_extract_evenv4hi): Remove endian check.
19880         (vec_extract_oddv4hi): Remove endian check.
19881         (vec_interleave_lowv2si): Format change.
19882         (vec_interleave_highv2si): Format change.
19883         (vec_initv2si): Remove endian check.
19884         (vecinit_v2si): Add endian check.
19885         (reduc_splus_v2sf): Add endian check.
19886         (reduc_smax_v2sf): Ditto.
19887         (reduc_smin_v2sf): Ditto.
19888         (vec_initv2sf): Remove endian check.
19889         (fpack): Add endian check.
19890         (fswap): Add endian check.
19891         (vec_interleave_highv2sf): Add endian check.
19892         (vec_interleave_lowv2sf): Add endian check.
19893         (fmix_lr): Add endian check.
19894         (vec_setv2sf): Format change.
19895         (*vec_extractv2sf_0_be): Use shift to extract operand.
19896         (*vec_extractv2sf_1_be): New.
19897         (vec_pack_trunc_v4hi): Add endian check.
19898         (vec_pack_trunc_v2si): Format change.
19899
19900 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
19901
19902         PR inline-asm/23200
19903         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
19904         do bb, locus and block comparison and disallow loads if it is not set.
19905         (stmt_is_replaceable_p): New function.
19906         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19907         callers.
19908         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19909         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19910         SSA_NAME_DEF_STMT.
19911         * tree-flow.h (stmt_is_replaceable_p): New prototype.
19912
19913 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19914
19915         * config/rs6000/xilinx.opt: New.
19916         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19917
19918 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
19919
19920         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19921
19922 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
19923
19924         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19925         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19926         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19927         secondary_reload_info, xtensa_secondary_reload): Remove.
19928         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19929         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19930         (xtensa_preferred_reload_class): Make static. Change return and
19931         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19932         Use CONST_DOUBLE_P predicate.
19933         (xtensa_preferred_output_reload_class): New function.
19934         (xtensa_secondary_reload): Make static.
19935
19936 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
19937
19938         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19939         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19940         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19941
19942 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19943
19944         PR middle-end/31490
19945         * output.h (SECTION_RELRO): Define.
19946         (SECTION_MACH_DEP): Adjust.
19947         (get_variable_section): New prototype.
19948         * varpool.c (varpool_finalize_named_section_flags): New function.
19949         (varpool_assemble_pending_decls): Call it.
19950         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19951         * cgraphunit.c (cgraph_output_in_order): Call
19952         varpool_finalize_named_section_flags.
19953         * varasm.c (get_section): Allow section flags conflicts between
19954         relro and read-only sections if the section hasn't been declared yet.
19955         Set SECTION_OVERRIDE after diagnosing section type conflict.
19956         (get_variable_section): No longer static.
19957         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19958         readonly sections that need relocations.
19959         (decl_readonly_section_1): New function.
19960         (decl_readonly_section): Use it.
19961
19962         Revert:
19963         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
19964                     Steve Ellcey  <sje@cup.hp.com>
19965
19966         PR middle-end/31490
19967         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19968         if section attribute used.
19969
19970 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19971
19972         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19973         * config/darwin.c (SECTION_NO_ANCHOR): Define.
19974         (darwin_init_sections): Remove assertion.
19975
19976 2011-02-03  Nick Clifton  <nickc@redhat.com>
19977
19978         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19979         lt and ge.
19980         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
19981         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19982         instead of "n" and "pz".
19983         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19984         CC_FLAG_S.
19985
19986 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
19987
19988         PR target/47312
19989         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19990         fma, expand FMA_EXPR as fma{,f,l} call.
19991
19992         PR lto/47274
19993         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19994         copy them into a unsigned char variable and pass address of it to
19995         lto_output_data_stream.
19996
19997         PR target/47564
19998         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19999         around backend_init_target and lang_dependent_init_target calls.
20000         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
20001         (verify_cgraph_node): Don't call set_cfun here.  Use
20002         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
20003         Set error_found for incorrectly represented calls to thunks.
20004
20005 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20006
20007         PR debug/43092
20008         PR rtl-optimization/43494
20009         * rtl.h (for_each_inc_dec_fn): New type.
20010         (for_each_inc_dec): Declare.
20011         * rtlanal.c (struct for_each_inc_dec_ops): New type.
20012         (for_each_inc_dec_find_inc_dec): New fn.
20013         (for_each_inc_dec_find_mem): New fn.
20014         (for_each_inc_dec): New fn.
20015         * dse.c (struct insn_size): Remove.
20016         (replace_inc_dec, replace_inc_dec_mem): Remove.
20017         (emit_inc_dec_insn_before): New fn.
20018         (check_for_inc_dec): Use it, along with for_each_inc_dec.
20019         (canon_address): Pass mem modes to cselib_lookup.
20020         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
20021         (cselib_lookup_from_insn): Likewise.
20022         (cselib_subst_to_values): Likewise.
20023         * cselib.c (find_slot_memmode): New var.
20024         (cselib_find_slot): New fn.  Use it instead of
20025         htab_find_slot_with_hash everywhere.
20026         (entry_and_rtx_equal_p): Use find_slot_memmode.
20027         (autoinc_split): New fn.
20028         (rtx_equal_for_cselib_p): Rename and implement in terms of...
20029         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
20030         Deal with autoinc.  Special-case recursion into MEMs.
20031         (cselib_hash_rtx): Likewise.
20032         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
20033         address and MEM modes.
20034         (cselib_subst_to_values): Add memmode, pass it on.
20035         Deal with autoinc.
20036         (cselib_lookup): Add memmode argument, pass it on.
20037         (cselib_lookup_from_insn): Add memmode.
20038         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
20039         (struct cselib_record_autoinc_data): New.
20040         (cselib_record_autoinc_cb): New fn.
20041         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
20042         mode to cselib_lookup.  Reset autoinced REGs here instead of...
20043         (cselib_process_insn): ... here.
20044         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
20045         to cselib_lookup.
20046         (add_uses): Likewise, also to cselib_subst_to_values.
20047         (add_stores): Likewise.
20048         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
20049         cselib_subst_to_values.
20050         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
20051         * gcse.c (do_local_cprop): Adjusted.
20052         * postreload.c (reload_cse_simplify_set): Adjusted.
20053         (reload_cse_simplify_operands): Adjusted.
20054         * sel-sched-dump (debug_mem_addr_value): Pass mode.
20055
20056 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20057
20058         PR tree-optimization/45122
20059         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
20060         unsafe assumptions when there's more than one loop exit.
20061
20062 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
20063
20064         PR target/47272
20065         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20066         Document using vector double with the load/store builtins, and
20067         that the load/store builtins always use Altivec instructions.
20068
20069         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
20070         to use altivec memory instructions, even on VSX.
20071         (vector_altivec_store_<mode>): Ditto.
20072
20073         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
20074         function.
20075
20076         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20077         V2DF, V2DI support to load/store overloaded builtins.
20078
20079         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
20080         altivec load/store builtins for V2DF/V2DI types.
20081
20082         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20083         set avoid indexed addresses on power6 if -maltivec.
20084         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
20085         vector_altivec_load/vector_altivec_store builtins.
20086         (altivec_expand_st_builtin): Ditto.
20087         (altivec_expand_builtin): Add VSX memory builtins.
20088         (rs6000_init_builtins): Add V2DI types to internal types.
20089         (altivec_init_builtins): Add support for V2DF/V2DI altivec
20090         load/store builtins.
20091         (rs6000_address_for_altivec): Insure memory address is appropriate
20092         for Altivec.
20093
20094         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
20095         vec_vsx_ld and vec_vsx_st.
20096         (vsx_store_<mode>): Ditto.
20097
20098         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
20099         variables to hold long long types for VSX vector memory builtins.
20100         (RS6000_BTI_unsigned_long_long): Ditto.
20101         (long_long_integer_type_internal_node): Ditti.
20102         (long_long_unsigned_type_internal_node): Ditti.
20103
20104         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
20105         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
20106         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
20107
20108         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
20109         short cuts.
20110         (vec_vsx_st): Ditto.
20111
20112 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20113
20114         * config/pa/pa-hpux10.opt: New.
20115         * config/hpux11.opt (pthread): New Driver option.
20116         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
20117         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
20118
20119 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20120
20121         * config/ia64/vms.opt: New.
20122         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
20123
20124 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
20125
20126         PR target/47580
20127         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
20128         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
20129         generator functions.
20130         (vsx_floatuns<VSi><mode>2): Ditto.
20131         (vsx_fix_trunc<mode><VSi>2): Ditto.
20132         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
20133
20134 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20135
20136         * config/i386/djgpp.opt (posix): New Driver option.
20137
20138 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
20139
20140         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
20141         Move to the unsupported targets list.
20142
20143 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
20144
20145         PR rtl-optimization/47525
20146         * df-scan.c: Update copyright years.
20147         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
20148         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
20149
20150 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20151
20152         * config/i386/sysv4.h (TARGET_VERSION): Remove.
20153         (SUBTARGET_RETURN_IN_MEMORY): Remove.
20154         (ASM_OUTPUT_ASCII): Remove.
20155         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
20156
20157 2011-02-02  Jeff Law  <law@redhat.com>
20158
20159         PR middle-end/47543
20160         * reload.c (find_reloads_address): Handle reg+d address where both
20161         components are invalid by reloading the entire address.
20162
20163 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
20164             Richard Guenther  <rguenther@suse.de>
20165
20166         PR tree-optimization/40979
20167         PR bootstrap/47044
20168         * passes.c (init_optimization_passes): After LIM call copy_prop
20169         and DCE to clean up.
20170         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
20171
20172 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
20173
20174         PR tree-optimization/47576
20175         PR tree-optimization/47555
20176         * doc/invoke.texi (scev-max-expr-complexity): Documented.
20177         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20178         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
20179         * tree-scalar-evolution.c (follow_ssa_edge): Use
20180         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
20181
20182 2011-02-02  Richard Guenther  <rguenther@suse.de>
20183
20184         PR tree-optimization/47566
20185         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
20186
20187 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
20188
20189         PR debug/47106
20190         PR debug/47402
20191         * tree-inline.c (declare_return_variable): Remove unused caller
20192         variable.
20193
20194         PR debug/47106
20195         PR debug/47402
20196         * tree-flow-inline.h (clear_is_used, is_used_p): New.
20197         * cfgexpand.c (account_used_vars_for_block): Use them.
20198         * tree-nrv.c (tree_nrv): Likewise.
20199         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
20200         (dump_scope_block): Likewise.
20201         (remove_unused_locals): Likewise.
20202
20203         PR debug/47106
20204         PR debug/47402
20205         * tree-inline.c (declare_return_variable): Add result decl to
20206         local decls only once.
20207         * gimple-low.c (record_vars_into): Mark newly-created variables
20208         as referenced.
20209
20210 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
20211
20212         PR debug/47498
20213         PR debug/47501
20214         PR debug/45136
20215         PR debug/45130
20216         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20217         debug insns.
20218         (no_real_insns_p, schedule_block, set_priorities): Drop special
20219         treatment of boundary debug insns.
20220         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20221         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
20222         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20223         (BOUNDARY_DEBUG_INSN_P): Likewise.
20224         (SCHEDULE_DEBUG_INSN_P): Likewise.
20225         * sched-rgn.c (init_ready_list): Drop special treatment of
20226         boundary debug insns.
20227         * final.c (rest_of_clean_state): Clear notes' BB.
20228
20229 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20230
20231         * config/openbsd.opt (assert=): New Driver option.
20232
20233 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20234
20235         * config/i386/nto.opt: New.
20236         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
20237
20238 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20239
20240         * config/i386/netware.opt: New.
20241         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
20242
20243 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20244
20245         * config/interix.opt (posix): New Driver option.
20246
20247 2011-02-01  DJ Delorie  <dj@redhat.com>
20248
20249         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
20250
20251         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
20252         class for A0/A1.
20253
20254 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
20255
20256         PR tree-optimization/47561
20257         * toplev.c (process_options): Print the Graphite flags.  Add
20258         flag_loop_flatten to the list of options requiring Graphite.
20259
20260 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20261
20262         * config/i386/cygming.opt (posix): New Driver option.
20263
20264 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20265
20266         * config/arm/vxworks.opt: New.
20267         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
20268
20269 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20270
20271         * config/alpha/elf.opt: New.
20272         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
20273         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
20274
20275 2011-02-01  Richard Guenther  <rguenther@suse.de>
20276
20277         PR tree-optimization/47559
20278         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
20279         store-motion on references that can throw.
20280
20281 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
20282
20283         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
20284         * tree-pass.h (TDF_CSELIB): New macro.
20285         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
20286         cselib_lookup): Check for it rather than for TDF_DETAILS.
20287
20288 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
20289
20290         PR driver/47547
20291         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
20292         is HOST_BIT_BUCKET.
20293
20294         * opts.c (finish_options): Don't add x_aux_base_name if it is
20295         HOST_BIT_BUCKET.
20296
20297 2011-02-01  Richard Guenther  <rguenther@suse.de>
20298
20299         PR tree-optimization/47555
20300         Revert
20301         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
20302
20303         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20304
20305 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
20306
20307         PR gcc/46692
20308         * config/lm32/t-lm32: Add multilib for all CPU options.
20309
20310 2011-02-01  Richard Guenther  <rguenther@suse.de>
20311
20312         PR tree-optimization/47541
20313         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
20314         sure to have a field at offset zero.
20315
20316 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
20317
20318         * config/arc/arc.opt (EB, EL): New Driver options.
20319
20320 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
20321
20322         * config/alpha/osf5.opt: New.
20323         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
20324
20325 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
20326
20327         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
20328
20329 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
20330
20331         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
20332         -floop-interchange.
20333         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
20334         is an alias of -floop-interchange and that it requires the
20335         Graphite infrastructure.
20336         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
20337         flag_loop_interchange based on the value of flag_tree_loop_linear.
20338
20339 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
20340             Richard Guenther  <rguenther@suse.de>
20341
20342         PR tree-optimization/47538
20343         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
20344         type instead of r1type, except for comparisons.  For right
20345         shifts and comparisons punt if there are mismatches in
20346         sizetype vs. non-sizetype types.
20347
20348 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20349
20350         * doc/sourcebuild.texi (Effective-Target Keywords): Document
20351         avx_runtime.
20352
20353 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20354
20355         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
20356         version number.
20357         * configure: Regenerate.
20358
20359 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20360
20361         * configure.ac (gcc_cv_ld_static_option): Define.
20362         (gcc_cv_ld_dynamic_option): Define.
20363         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
20364         instead.
20365         (HAVE_LD_STATIC_DYNAMIC): Update message.
20366         (LD_STATIC_OPTION): Define.
20367         (LD_DYNAMIC_OPTION): Define.
20368         * configure: Regenerate.
20369         * config.in: Regenerate.
20370         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
20371         HAVE_LD_STATIC_DYNAMIC]: Use them.
20372
20373 2011-01-31  Nick Clifton  <nickc@redhat.com>
20374
20375         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
20376         registers inside interrupt handlers if the handler is not a leaf
20377         function.
20378
20379 2011-01-31  Nick Clifton  <nickc@redhat.com>
20380
20381         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
20382         reg_renumber returning an INVALID_REGNUM.
20383
20384 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
20385
20386         PR libgcj/44341
20387         * doc/install.texi: Document host options discarded when cross
20388         configuring target libraries.
20389
20390 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
20391
20392         Reverted:
20393         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
20394         PR debug/45136
20395         PR debug/45130
20396         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20397         debug insns.
20398         (no_real_insns_p, schedule_block, set_priorities): Drop special
20399         treatment of boundary debug insns.
20400         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20401         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20402         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20403         (BOUNDARY_DEBUG_INSN_P): Likewise.
20404         (SCHEDULE_DEBUG_INSN_P): Likewise.
20405         * sched-rgn.c (init_ready_list): Drop special treatment of
20406         boundary debug insns.
20407         * final.c (rest_of_clean-state): Clear notes' BB.
20408
20409 2011-01-31  Alan Modra  <amodra@gmail.com>
20410
20411         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20412         toc relative expressions as we do in print_operand_address.
20413
20414 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
20415
20416         * doc/extend.texi: Follow spelling conventions.
20417         * doc/invoke.texi: Fix a typo.
20418
20419 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
20420
20421         * config/hpux11.opt: New.
20422         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20423         ia64*-*-hpux*): Use hpux11.opt.
20424
20425 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
20426
20427         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20428         to tmake_file.
20429
20430 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20431
20432         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20433         support sites.
20434
20435 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20436
20437         * doc/install.texi (Binaries): Remove outdated reference for
20438         Motorola 68HC11/68HC12 downloads.
20439
20440 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20441
20442         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20443         Drepper's paper.
20444
20445 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
20446
20447         PR bootstrap/47147
20448         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20449         used by NetBSD.
20450
20451 2011-01-28  Ahmad Sharif  <asharif@google.com>
20452
20453         * value-prof.c (check_counter): Corrected error message.
20454
20455 2011-01-29  Jie Zhang  <jie@codesourcery.com>
20456
20457         * config/arm/arm.c (arm_legitimize_reload_address): New.
20458         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20459         arm_legitimize_reload_address.
20460         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20461
20462 2011-01-28  Ian Lance Taylor  <iant@google.com>
20463
20464         * godump.c (go_define): Ignore macros whose definitions include
20465         two adjacent operands.
20466
20467 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
20468
20469         PR target/42894
20470         * varasm.c (force_const_mem): Store copy of x in desc->constant
20471         instead of x itself.
20472         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20473         itself into REG_EQUAL note.
20474
20475 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
20476
20477         * config/freebsd.opt (posix, rdynamic): New Driver options.
20478
20479 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20480
20481         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20482         -Bstatic/-Bdynamic.
20483         * configure: Regenerate.
20484
20485 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
20486
20487         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20488         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20489
20490 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
20491
20492         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20493         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20494         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20495         (s390_preferred_reload_class): Make static. Change return and
20496         'rclass' argument type to reg_class_t.
20497
20498 2011-01-27  Jan Hubicka  <jh@suse.cz>
20499
20500         PR middle-end/46949
20501         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20502         (process_function_and_variable_attributes): Check defined weakrefs.
20503
20504 2011-01-27  Martin Jambor  <mjambor@suse.cz>
20505
20506         PR tree-optimization/47228
20507         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20508         build_ref_for_offset.
20509
20510 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20511
20512         * config/spu/spu-elf.h (ASM_SPEC): Remove.
20513
20514 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
20515
20516         PR rtl-optimization/46856
20517         * postreload.c (reload_combine_recognize_const_pattern): Do not
20518         separate cc0 setter and user on cc0 targets.
20519
20520 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
20521
20522         PR c/43082
20523         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20524         passed a VOID_TYPE expression, immediately emit an error and
20525         return error_mark_node.
20526
20527 2011-01-26  Jeff Law  <law@redhat.com>
20528
20529         PR rtl-optimization/47464
20530         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20531         rather than may_trap_p as needed.
20532
20533 2011-01-26  DJ Delorie  <dj@redhat.com>
20534
20535         PR rtl-optimization/46878
20536         * combine.c (insn_a_feeds_b): Check for the implicit cc0
20537         setter/user dependency as well.
20538
20539 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
20540
20541         PR rtl-optimization/44469
20542         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20543         after removing trivially dead basic blocks.
20544
20545 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20546
20547         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20548         * config/frv/frv.h (LINK_SPEC): Likewise.
20549         * config/i386/netware.h (LINK_SPEC): Likewise.
20550         * config/m68k/linux.h (ASM_SPEC): Likewise.
20551         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20552         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20553         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20554         * config/sparc/linux.h (ASM_SPEC): Likewise.
20555         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20556         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20557
20558 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20559
20560         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20561         * config/frv/frv.h (ASM_SPEC): Likewise.
20562         * config/m68k/linux.h (ASM_SPEC): Likewise.
20563         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20564         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20565         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20566         * config/sparc/linux.h (ASM_SPEC): Likewise.
20567         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20568         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20569
20570 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20571
20572         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20573         * config/frv/frv.h (LINK_SPEC): Likewise.
20574         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20575
20576 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20577
20578         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20579         * config/frv/frv.h (ASM_SPEC): Likewise.
20580         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20581         * config/m68k/linux.h (ASM_SPEC): Likewise.
20582         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20583         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20584         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20585         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20586         * config/sparc/linux.h (ASM_SPEC): Likewise.
20587         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20588         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20589         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20590
20591 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
20592
20593         PR target/46997
20594         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20595         (*mux2): Ditto.
20596         (vec_extract_evenodd_help): Ditto.
20597         (vec_extract_evenv4hi): Ditto.
20598         (vec_extract_oddv4hi): Ditto.
20599         (vec_interleave_lowv2si): Ditto.
20600         (vec_interleave_highv2si): Ditto.
20601         (vec_extract_evenv2si): Ditto.
20602         (vec_extract_oddv2si: Ditto.
20603         (vec_pack_trunc_v2si): Ditto.
20604
20605 2011-01-22  Jan Hubicka  <jh@suse.cz>
20606
20607         PR target/47237
20608         * cgraph.h (cgraph_local_info): New field can_change_signature.
20609         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20610         signature can change.
20611         (ipcp_estimate_growth): Call sequence simplify only if calle signature
20612         can change.
20613         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20614         (cgraph_function_versioning): We can not change signature of functions
20615         that don't allow that.
20616         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20617         (lto_input_node): Likewise.
20618         * ipa-inline.c (compute_inline_parameters): Compute
20619         local.can_change_signature.
20620         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20621         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20622         functions that can not change signature.
20623         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20624         init_cumulative_args): Do not use local calling conventions
20625         for functions that can not change signature.
20626
20627 2011-01-22  Jan Hubicka  <jh@suse.cz>
20628
20629         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20630
20631 2011-01-26  Richard Guenther  <rguenther@suse.de>
20632
20633         PR tree-optimization/47190
20634         * cgraphunit.c (process_common_attributes): New function.
20635         (process_function_and_variable_attributes): Use it.
20636
20637 2011-01-26  Richard Guenther  <rguenther@suse.de>
20638
20639         PR lto/47423
20640         * cgraphbuild.c (record_eh_tables): Record reference to personality
20641         function.
20642
20643 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
20644
20645         PR debug/45454
20646         * sel-sched.c (moveup_expr): Don't let debug insns prevent
20647         non-debug insns from moving up.
20648
20649 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20650
20651         PR target/40125
20652         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20653         t-dlldir{,-x} fragment for build and add it to tmake_file.
20654         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20655         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20656         * config/i386/t-dlldir: New file.
20657         (SHLIB_DLLDIR): Define.
20658         * config/i386/t-dlldir-x: New file.
20659         (SHLIB_DLLDIR): Define.
20660         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20661         (SHLIB_INSTALL): Use it.
20662
20663 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
20664
20665         PR target/47246
20666         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20667         lower bound of the allowed Thumb-2 coprocessor load/store
20668         index range to -256. Add explaining comment.
20669
20670 2011-01-25  Ian Lance Taylor  <iant@google.com>
20671
20672         * godump.c (go_define): Improve lexing of macro expansion to only
20673         accept expressions which match Go spec.
20674
20675 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20676
20677         PR c++/43601
20678         * tree.c (handle_dll_attribute): Handle it.
20679         * doc/extend.texi (@item dllexport): Mention it.
20680         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20681
20682 2011-01-25  Ian Lance Taylor  <iant@google.com>
20683
20684         PR tree-optimization/26854
20685         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20686         (decl_jump_unsafe): Move higher in file, with no other change.
20687         (bind): Set has_jump_unsafe_decl if appropriate.
20688         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20689         (check_earlier_gotos): Likewise.
20690         (c_check_switch_jump_warnings): Likewise.
20691
20692 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
20693
20694         * doc/invoke.texi (Warning Options): Add missing hyphen.
20695         (-fprofile-dir): Minor grammatical fixes.
20696         (-fbranch-probabilities): Likewise.
20697
20698 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
20699
20700         PR debug/45136
20701         PR debug/45130
20702         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20703         debug insns.
20704         (no_real_insns_p, schedule_block, set_priorities): Drop special
20705         treatment of boundary debug insns.
20706         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20707         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20708         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20709         (BOUNDARY_DEBUG_INSN_P): Likewise.
20710         (SCHEDULE_DEBUG_INSN_P): Likewise.
20711         * sched-rgn.c (init_ready_list): Drop special treatment of
20712         boundary debug insns.
20713         * final.c (rest_of_clean-state): Clear notes' BB.
20714
20715 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20716
20717         * Makefile.in (LAMBDA_H): Removed.
20718         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20719         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20720         lambda-trans.o, and tree-loop-linear.o.
20721         (lto-symtab.o): Remove dependence on LAMBDA_H.
20722         (tree-loop-linear.o): Remove rule.
20723         (lambda-mat.o): Same.
20724         (lambda-trans.o): Same.
20725         (lambda-code.o): Same.
20726         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20727         (tree-vect-slp.o): Same.
20728         * hwint.h (gcd): Moved here.
20729         (least_common_multiple): Same.
20730         * lambda-code.c: Removed.
20731         * lambda-mat.c: Removed.
20732         * lambda-trans.c: Removed.
20733         * lambda.h: Removed.
20734         * tree-loop-linear.c: Removed.
20735         * lto-symtab.c: Do not include lambda.h.
20736         * omega.c (gcd): Removed.
20737         * passes.c (init_optimization_passes): Remove pass_linear_transform.
20738         * tree-data-ref.c (print_lambda_vector): Moved here.
20739         (lambda_vector_copy): Same.
20740         (lambda_matrix_copy): Same.
20741         (lambda_matrix_id): Same.
20742         (lambda_vector_first_nz): Same.
20743         (lambda_matrix_row_add): Same.
20744         (lambda_matrix_row_exchange): Same.
20745         (lambda_vector_mult_const): Same.
20746         (lambda_vector_negate): Same.
20747         (lambda_matrix_row_negate): Same.
20748         (lambda_vector_equal): Same.
20749         (lambda_matrix_right_hermite): Same.
20750         * tree-data-ref.h: Do not include lambda.h.
20751         (lambda_vector): Moved here.
20752         (lambda_matrix): Same.
20753         (dependence_level): Same.
20754         (lambda_transform_legal_p): Removed declaration.
20755         (lambda_collect_parameters): Same.
20756         (lambda_compute_access_matrices): Same.
20757         (lambda_vector_gcd): Same.
20758         (lambda_vector_new): Same.
20759         (lambda_vector_clear): Same.
20760         (lambda_vector_lexico_pos): Same.
20761         (lambda_vector_zerop): Same.
20762         (lambda_matrix_new): Same.
20763         * tree-flow.h (least_common_multiple): Removed declaration.
20764         * tree-parloops.c (lambda_trans_matrix): Moved here.
20765         (LTM_MATRIX): Same.
20766         (LTM_ROWSIZE): Same.
20767         (LTM_COLSIZE): Same.
20768         (LTM_DENOMINATOR): Same.
20769         (lambda_trans_matrix_new): Same.
20770         (lambda_matrix_vector_mult): Same.
20771         (lambda_transform_legal_p): Same.
20772         * tree-pass.h (pass_linear_transform): Removed declaration.
20773         * tree-ssa-loop.c (tree_linear_transform): Removed.
20774         (gate_tree_linear_transform): Removed.
20775         (pass_linear_transform): Removed.
20776         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20777         flag_loop_interchange.
20778
20779 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20780
20781         PR tree-optimization/47265
20782         PR tree-optimization/47443
20783         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20784         if name still has some uses.
20785
20786 2011-01-25  Martin Jambor  <mjambor@suse.cz>
20787
20788         PR tree-optimization/47382
20789         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20790         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20791
20792 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
20793
20794         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20795         sjlj_except_unwind_info.
20796
20797 2011-01-25  Richard Guenther  <rguenther@suse.de>
20798
20799         PR tree-optimization/47426
20800         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20801         visible functions results escape.
20802
20803 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20804
20805         PR target/45701
20806         * config/arm/arm.c (any_sibcall_uses_r3): New function.
20807         (arm_get_frame_offsets): Use it.
20808
20809 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20810             Jakub Jelinek  <jakub@redhat.com>
20811
20812         PR tree-optimization/47271
20813         * tree-if-conv.c (bb_postdominates_preds): New.
20814         (if_convertible_bb_p): Call bb_postdominates_preds.
20815         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20816         (predicate_scalar_phi): Call bb_postdominates_preds.
20817
20818 2011-01-25  Nick Clifton  <nickc@redhat.com>
20819
20820         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20821         * config/rx/rx.c (rx_function_value): Likewise.
20822         (rx_promote_function_mode): Likewise.
20823         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20824         in order to make it legitimate.
20825         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20826         make sure that the first operand is the same as the result register.
20827         (addsi3_unspec): Delete.
20828         (subdi3): Do not accept immediate operands.
20829         (subdi3_internal): Likewise.
20830
20831 2011-01-25  Jeff Law  <law@redhat.com>
20832
20833         PR rtl-optimization/37273
20834         * ira-costs.c (scan_one_insn): Detect constants living in memory and
20835         handle them like argument loads from stack slots.  Do not double
20836         count memory for memory constants and argument loads from stack slots.
20837
20838 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20839
20840         PR tree-optimization/47427
20841         PR tree-optimization/47428
20842         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20843         coalesce if the new root var would be TREE_READONLY.
20844
20845 2011-01-25  Richard Guenther  <rguenther@suse.de>
20846
20847         PR middle-end/47414
20848         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20849         correct type for TBAA.
20850
20851 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20852
20853         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20854         (close_phi_written_to_memory): Call for_each_index with
20855         dr_indices_valid_in_loop.
20856
20857 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20858
20859         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20860         when it is initialized.
20861
20862 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20863
20864         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20865         call to graphite_find_data_references_in_stmt.
20866         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20867         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
20868         call to graphite_find_data_references_in_stmt.
20869         (analyze_drs_in_stmts): Same.
20870         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20871         in which the scalar analysis of indices is performed.
20872         (create_data_ref): Same.  Update call to dr_analyze_indices.
20873         (find_data_references_in_stmt): Update call to create_data_ref.
20874         (graphite_find_data_references_in_stmt): Same.
20875         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20876         declaration.
20877         (create_data_ref): Same.
20878         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20879         call to create_data_ref.
20880
20881 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20882
20883         * graphite-sese-to-poly.c (build_poly_scop): Move
20884         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20885
20886 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20887
20888         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20889         VAR_DECL, PARM_DECL, and RESULT_DECL.
20890
20891 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20892
20893         * graphite-dependences.c (reduction_dr_1): Allow several reductions
20894         in a reduction PBB.
20895         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20896         that have already been marked as PBB_IS_REDUCTION.
20897
20898 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20899
20900         * graphite-scop-detection.c (same_close_phi_node): New.
20901         (remove_duplicate_close_phi): New.
20902         (make_close_phi_nodes_unique): New.
20903         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20904
20905 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20906
20907         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20908         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20909         of both data references to be the same.
20910
20911 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20912
20913         * graphite-dependences.c (build_lexicographical_constraint): Remove
20914         the gdim parameter.
20915         (build_lexicographical_constraint): Adjust call to
20916         ppl_powerset_is_empty.
20917         (dependence_polyhedron): Same.
20918         (graphite_legal_transform_dr): Same.
20919         (graphite_carried_dependence_level_k): Same.
20920         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20921         parameter.
20922         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20923
20924 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20925
20926         * graphite-sese-to-poly.c
20927         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20928         (close_phi_written_to_memory): New.
20929         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20930         and unshare_expr.
20931
20932 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20933
20934         * doc/install.texi: Update the expected version number of PPL to 0.11.
20935         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20936         #if PPL_VERSION_MINOR < 11.
20937
20938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20939
20940         * graphite-dependences.c: Include graphite-cloog-util.h.
20941         (new_poly_ddr): Inlined into dependence_polyhedron.
20942         (free_poly_ddr): Moved close by new_poly_ddr.
20943         (dependence_polyhedron_1): Renamed dependence_polyhedron.
20944         Early return NULL when ppl_powerset_is_empty returns true.
20945         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
20946         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
20947         (graphite_legal_transform_dr): Call new_poly_ddr.
20948         (graphite_carried_dependence_level_k): Same.
20949         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
20950         (dot_transformed_deps_stmt_1): Removed.
20951         (dot_deps_stmt_1): Call dot_deps_stmt_2.
20952         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
20953         (dot_deps_1): Call dot_deps_2.
20954         * Makefile.in (graphite-dependences.o): Add missing dependence on
20955         graphite-cloog-util.h.
20956
20957 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20958
20959         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20960         (build_lexicographical_constraint): Same.
20961         (dependence_polyhedron_1): Same.
20962         (graphite_legal_transform_dr): Same.
20963         (graphite_carried_dependence_level_k): Same.
20964         * graphite-ppl.c (ppl_powerset_is_empty): New.
20965         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20966         * tree-data-ref.c (dump_data_reference): Print the basic block index.
20967
20968 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20969
20970         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20971         the "a followed by b" relation and document it.
20972
20973 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20974
20975         * graphite-dependences.c (build_lexicographical_constraint): Stop the
20976         iteration when the bag of constraints is empty.
20977
20978 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20979
20980         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20981
20982 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20983
20984         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20985         nest and two loop depths as parameters.
20986         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20987         lst_perfect_nestify.
20988
20989 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20990
20991         * graphite-dependences.c (print_pddr): Call
20992         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20993
20994 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20995
20996         * graphite-ppl.c (debug_gmp_value): New.
20997         * graphite-ppl.h (debug_gmp_value): Declared.
20998
20999 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
21000
21001         * doc/install.texi: Document availability of cloog-0.16.
21002
21003 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
21004
21005         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
21006         invalid postdominance info.
21007
21008 2011-01-24  Jan Hubicka  <jh@suse.cz>
21009
21010         PR c/21659
21011         * doc/extend.texi (weak pragma): Drop claim that it must
21012         appear before definition.
21013         * varasm.c (merge_weak, declare_weak): Only sanity check
21014         that DECL is not output at a time it is declared weak.
21015
21016 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
21017
21018         * machmode.def: Fixed comments.
21019
21020 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
21021
21022         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
21023
21024 2011-01-24  Paul Koning  <ni1d@arrl.net>
21025
21026         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
21027         WORDS_BIG_ENDIAN.
21028
21029 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21030
21031         PR target/46519
21032         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
21033         (block_info): Add scanned and prev.
21034         (move_or_delete_vzeroupper_2): Return if the basic block
21035         has been scanned and the upper 128bit state is unchanged
21036         from the last scan.
21037         (move_or_delete_vzeroupper_1): Return true if the exit
21038         state is changed.
21039         (move_or_delete_vzeroupper): Visit basic blocks using the
21040         work-list based algorithm based on vt_find_locations in
21041         var-tracking.c.
21042
21043         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
21044
21045 2011-01-24  Nick Clifton  <nickc@redhat.com>
21046
21047         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
21048         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
21049         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
21050         then define __v850e1__.
21051         * doc/invoke.texi: Document -mv850es.
21052
21053 2011-01-24  Richard Henderson  <rth@redhat.com>
21054
21055         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
21056         compound unordered comparisons.
21057         * config/rx/rx.c (rx_split_fp_compare): Remove.
21058         * config/rx/rx-protos.h: Update.
21059         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
21060         (cbranchsf4): Don't call rx_split_fp_compare.
21061         (*cbranchsf4): Use rx_split_cbranch.
21062         (*cmpsf): Don't accept "i" constraint.
21063         (*conditional_branch): Only valid after reload.
21064         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
21065
21066 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21067
21068         PR target/47385
21069         * config/rs6000/altivec.md (vector constant splitters): Add
21070         support for creating vector single precision constants if -mvsx is
21071         used and we would create the constant using Altivec primitives.
21072
21073 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
21074             Richard Sandiford  <rdsandiford@googlemail.com>
21075
21076         PR rtl-optimization/47166
21077         * reload1.c (emit_reload_insns): Disable the spill_reg_store
21078         mechanism for PRE_MODIFY and POST_MODIFY.
21079         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
21080         reloadreg.
21081
21082 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
21083
21084         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
21085
21086 2011-01-22  Jan Hubicka  <jh@suse.cz>
21087
21088         PR lto/47333
21089         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
21090
21091 2011-01-22  Jan Hubicka  <jh@suse.cz>
21092
21093         PR tree-optimization/43884
21094         PR lto/44334
21095         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
21096         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
21097
21098 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
21099
21100         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21101         * config/s390/s390.c (s390_register_move_cost,
21102         s390_memory_move_cost): New.
21103         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
21104
21105 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21106
21107         PR middle-end/47401
21108         * except.c (sjlj_assign_call_site_values): Move setting the
21109         crtl->uses_eh_lsda flag to ...
21110         (sjlj_mark_call_sites): ... here.
21111         (sjlj_emit_function_enter): Support NULL dispatch label.
21112         (sjlj_build_landing_pads): In a function with no landing pads
21113         that still has must-not-throw regions, generate code to register
21114         a personality function with empty LSDA.
21115
21116 2011-01-21  Richard Henderson  <rth@redhat.com>
21117
21118         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
21119
21120         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
21121
21122         * compare-elim.c: New file.
21123         * Makefile.in (OBJS-common): Add it.
21124         (compare-elim.o): New.
21125         * common.opt (fcompare-elim): New.
21126         * opts.c (default_options_table): Add OPT_fcompare_elim.
21127         * tree-pass.h (pass_compare_elim_after_reload): New.
21128         * passes.c (init_optimization_passes): Add it.
21129         * recog.h: Protect against re-inclusion.
21130         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
21131         * doc/invoke.texi (-fcompare-elim): Document it.
21132         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
21133         * doc/tm.texi: Rebuild.
21134
21135 2011-01-22  Nick Clifton  <nickc@redhat.com>
21136
21137         * config/rx/rx.md (cstoresf4): Pass comparison operator to
21138         rx_split_fp_compare.
21139
21140 2011-01-22  Nick Clifton  <nickc@redhat.com>
21141
21142         * config/rx/rx.md (UNSPEC_CONST): New.
21143         (deallocate_and_return): Wrap the amount popped off the stack in
21144         an UNSPEC_CONST in order to stop it being rejected by
21145         -mmax-constant-size.
21146         (pop_and_return): Add a "(return)" rtx.
21147         (call): Drop the immediate operand.
21148         (call_internal): Likewise.
21149         (call_value): Likewise.
21150         (call_value_internal): Likewise.
21151         (sibcall_internal): Likewise.
21152         (sibcall_value_internal): Likewise.
21153         (sibcall): Likewise.  Generate an explicit call using
21154         sibcall_internal.
21155         (sibcall_value): Likewise.
21156         (mov<>): FAIL if a constant operand is not legitimate.
21157         (addsi3_unpsec): New pattern.
21158
21159         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
21160         (ok_for_max_constant): New function.
21161         (gen_safe_add): New function.
21162         (rx_expand_prologue): Use gen_safe_add.
21163         (rx_expand_epilogue): Likewise.
21164         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
21165         UNSPEC CONSTs.
21166
21167 2011-01-21  Jeff Law  <law@redhat.com>
21168
21169         PR tree-optimization/47053
21170         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
21171         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
21172         statements are deleted.
21173         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
21174         is nonempty, then purge dead edges and cleanup the CFG.
21175
21176 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
21177
21178         PR debug/47402
21179         Temporarily revert:
21180         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
21181         PR debug/47106
21182         * tree-dfa.c (create_var_ann): Mark variable as used.
21183
21184 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
21185
21186         PR middle-end/45566
21187         * except.c (convert_to_eh_region_ranges): Emit queued no-region
21188         notes from other section in hot/cold partitioning even if
21189         last_action is -3.  Increment call_site_base.
21190
21191         PR rtl-optimization/47366
21192         * fwprop.c (forward_propagate_into): Return bool.  If
21193         any changes are made, -fnon-call-exceptions is used and
21194         REG_EH_REGION note is present, call purge_dead_edges
21195         and return true if it purged anything.
21196         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
21197         any EH edges were purged.
21198
21199 2011-01-21  Jeff Law  <law@redhat.com>
21200
21201         PR rtl-optimization/41619
21202         * caller-save.c (setup_save_areas): Break out code to determine
21203         which hard regs are live across calls by examining the reload chains
21204         so that it is always used.
21205         Eliminate code which checked REG_N_CALLS_CROSSED.
21206
21207 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
21208
21209         PR tree-optimization/47355
21210         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
21211         NOP has non-debug uses beyond PHIs in new_bb.
21212
21213 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
21214
21215         PR debug/47106
21216         * cfgexpand.c (account_used_vars_for_block): Only account vars
21217         that are annotated as used.
21218         (estimated_stack_frame_size): Don't set TREE_USED.
21219         * tree-dfa.c (create_var_ann): Mark variable as used.
21220
21221 2011-01-21  Richard Guenther  <rguenther@suse.de>
21222
21223         PR middle-end/47395
21224         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
21225
21226 2011-01-21  Richard Guenther  <rguenther@suse.de>
21227
21228         PR tree-optimization/47365
21229         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
21230         (vn_reference_lookup_pieces): Adjust.
21231         (vn_reference_lookup): Likewise.
21232         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
21233         (vn_reference_lookup_3): Only look through kills if in
21234         VN_WALKREWRITE mode.
21235         (vn_reference_lookup_pieces): Adjust.
21236         (vn_reference_lookup): Likewise.
21237         (visit_reference_op_load): Likewise.
21238         (visit_reference_op_store): Likewise.
21239         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
21240         (compute_avail): Likewise.
21241         (eliminate): Likewise.
21242
21243 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
21244
21245         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
21246         DECL_IGNORED_P non-reg vars if they are used.
21247
21248         PR tree-optimization/47391
21249         * varpool.c (const_value_known_p): Return false if
21250         decl is volatile.
21251
21252 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
21253
21254         PR bootstrap/47215
21255         * config/i386/i386.c (ix86_local_alignment): Handle
21256         case for va_list_type_node is nil.
21257         (ix86_canonical_va_list_type): Likewise.
21258
21259 2011-01-21  Alan Modra  <amodra@gmail.com>
21260
21261         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
21262         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
21263
21264 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21265
21266         * config/arm/arm.md (define_attr type): Rename f_load
21267         and f_store to f_fpa_load and f_fpa_store. Update.
21268         (write_conflict): Deal with rename fallout.
21269         (*push_fp_multi): Likewise.
21270         * config/arm/fpa.md (f_load): Use f_fpa_load.
21271         (f_store): Use f_fpa_store.
21272         (*movsf_fpa): Likewise.
21273         (*movdf_fpa): Likewise.
21274         (*movxf_fpa): Likewise.
21275         (*thumb2_movsf_fpa): Likewise.
21276         (*thumb2_movdf_fpa): Likewise.
21277         (*thumb2_movxf_fpa): Likewise.
21278         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
21279         f_loadd and f_stored.
21280         (*thumb2_movdi_vfp): Likewise.
21281         (*thumb2_movsf_vfp): Fix attribute to f_loads.
21282         (*thumb2_movsi_vfp): Likewise.
21283         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
21284         Use f_loads instead of f_load.
21285         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
21286
21287 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
21288
21289         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21290         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
21291         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21292         (xtensa_mode_dependent_address_p): New function.
21293         (constantpool_address_p): Make static. Change return type to bool.
21294         Change argument type to const_rtx. Use CONST_INT_P predicate.
21295
21296 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
21297
21298         PR debug/46583
21299         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
21300
21301 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
21302
21303         PR debug/47283
21304         * cfgexpand.c (expand_debug_expr): Instead of generating
21305         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
21306         etc. handling.
21307
21308 2011-01-20  Richard Guenther  <rguenther@suse.de>
21309
21310         PR middle-end/47370
21311         * tree-inline.c (remap_gimple_op_r): Recurse manually for
21312         the pointer operand of MEM_REFs.
21313
21314 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
21315
21316         PR tree-optimization/46130
21317         * ipa-split.c (consider_split): If return_bb contains non-virtual
21318         PHIs other than for retval or if split_function would not adjust it,
21319         refuse to split.
21320
21321 2011-01-20  Richard Guenther  <rguenther@suse.de>
21322
21323         PR tree-optimization/47167
21324         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21325         Revert previous change, only avoid enumeral type changes.
21326
21327 2011-01-19  Mike Stump  <mikestump@comcast.net>
21328
21329         * doc/tm.texi.in (BRANCH_COST): Englishify.
21330         * doc/tm.texi (BRANCH_COST): Likewise.
21331
21332 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
21333
21334         PR c++/47291
21335         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
21336         (gen_scheduled_generic_parms_dies): New functions.
21337         (gen_struct_or_union_type_die): Schedule template parameters DIEs
21338         generation for the end of CU compilation.
21339         (dwarf2out_finish): Generate template parameters DIEs here.
21340
21341 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
21342
21343         PR debug/46240
21344         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
21345         debug bind stmt on merge edges.
21346
21347 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
21348
21349         PR debug/47079
21350         PR debug/46724
21351         * function.c (instantiate_expr): Instantiate incoming rtl of
21352         implicit arguments, and recurse on VALUE_EXPRs.
21353         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
21354         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
21355
21356 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
21357
21358         * c-parser.c (c_parser_for_statement): Initialize
21359         collection_expression.
21360
21361 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21362
21363         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
21364
21365 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21366
21367         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
21368         (LINK_SHLIB_SPEC): Don't use %(link_path).
21369         (SUBTARGET_EXTRA_SPECS): Remove link_path.
21370
21371 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21372
21373         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
21374         (NO_SHARED_LIB_SUPPORT): Remove.
21375         (LINK_SHLIB_SPEC): Remove one conditional definition.
21376
21377 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21378
21379         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
21380         %{call_shared}.
21381         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
21382         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
21383         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
21384         %{call_shared} and conditionals on these options not being passed.
21385         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
21386         %{call_shared}.
21387
21388 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
21389
21390         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
21391         simplify.
21392
21393         * ipa-split.c: Spelling fixes.
21394
21395 2011-01-19  Richard Henderson  <rth@redhat.com>
21396
21397         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
21398         (*mulsi3): Likewise.
21399
21400         * longlong.h [__mn10300__] (count_leading_zeros): New.
21401         [__mn10300__] (umul_ppmm, smul_ppmm): New.
21402         [__mn10300__] (add_ssaaaa, subddmmss): New.
21403         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
21404         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
21405
21406 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21407
21408         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
21409
21410 2011-01-19  Richard Henderson  <rth@redhat.com>
21411
21412         * config/mn10300/mn10300.md (addsi3_flags): New.
21413         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21414         (subsi3_flags, subc_internal, subdi3): New.
21415         (subdi3_internal, *subdi3_degenerate): New.
21416         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21417
21418         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21419         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21420         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
21421         * config/mn10300/mn10300-protos.h: Update.
21422         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21423         (return_ret): Likewise.  Rename from return_internal_regs.
21424         (return_internal): Remove.
21425
21426         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21427         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21428         (mn10300_legitimate_constant_p): Likewise.
21429         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21430         (mn10300_frame_size): New.
21431         (mn10300_expand_prologue): Use it.
21432         (mn10300_expand_epilogue): Likewise.
21433         (mn10300_initial_offset): Likewise.
21434         * config/mn10300/mn10300-protos.h: Update.
21435         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21436         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21437         (prologue, epilogue, return_internal): Tidy output code.
21438         (mn10300_store_multiple_operation, return): Likewise.
21439         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21440         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21441         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21442         (load_pic, am33_load_pic): New.
21443         (mn10300_load_pic0, mn10300_load_pic1): New.
21444
21445         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21446         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21447         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21448         (cc_flags_for_mode, cc_flags_for_code): New.
21449         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21450         overflow flag is not valid.  Validate that the flags we need
21451         for the comparison are valid.
21452         (mn10300_output_cmp): Remove.
21453         (mn10300_output_add): New.
21454         (mn10300_select_cc_mode): Use cc_flags_for_code.
21455         (mn10300_split_cbranch): New.
21456         (mn10300_match_ccmode): New.
21457         (mn10300_split_and_operand_count): New.
21458         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21459         to the function.
21460         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21461         (addsi3): ... here.  Use mn10300_output_add.
21462         (*addsi3_flags): New.
21463         (*am33_subsi3, *mn10300_subsi3): Merge...
21464         (subsi3): ... here.  Use attribute isa.
21465         (*subsi3_flags): New.
21466         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
21467         when possible.
21468         (*am33_andsi3, *mn10300_andsi3): Merge...
21469         (andsi3): ... here.
21470         (*andsi3_flags): New.
21471         (andsi3 splitters): New.
21472         (*am33_iorsi3, *mn10300_iorsi3): Merge...
21473         (iorsi3): ... here.
21474         (*iorsi3_flags): New.
21475         (*am33_xorsi3, *mn10300_xorsi3): Merge...
21476         (xorsi3): ... here.
21477         (*xorsi3_flags): New.
21478         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21479         (one_cmplsi2): ... here.
21480         (*one_cmplsi2_flags): New.
21481         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
21482         instead of "dax" in constraints.  Use mn10300_split_cbranch.
21483         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
21484         use matching constraints to eliminate a self-comparison.
21485         (*integer_conditional_branch): Rename from integer_conditional_branch.
21486         Use int_mode_flags to match CC_REG.
21487         (*cbranchsi4_btst, *btstsi): New.
21488         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
21489         mn10300_split_cbranch.
21490         (*am33_cmpsf): Rename from am33_cmpsf.
21491         (*float_conditional_branch): Rename from float_conditional_branch.
21492         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21493         (zero_extendqisi2): ... here.
21494         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21495         (zero_extendhisi2): ... here.
21496         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21497         (extendqisi2): ... here.
21498         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21499         (extendhisi2): ... here.
21500         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21501         (ashlsi3): ... here.
21502         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21503         (lshrsi3): ... here.
21504         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21505         (ashrsi3): ... here.
21506         (consecutive add peephole): Remove.
21507         * config/mn10300/predicates.md (label_ref_operand): New.
21508         (int_mode_flags): New.
21509         (CCZN_comparison_operator): New.
21510
21511         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21512         (throughput_42_latency_43): New reservation.
21513         (mulsidi3, umulsidi3): New expanders.
21514         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
21515         the MDR register to allocation; separately allocate the low and
21516         high parts of the DImode result.
21517         (umulsidi3_internal): Similarly.
21518         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21519         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
21520         (udivsi3, umodsi3): Remove.
21521         (udivmodsi4, divmodsi4): New expanders.
21522         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
21523         (*divmodsi4): Simiarly.
21524         (ext_internal): New.
21525
21526         * config/mn10300/constraints.md ("z"): New constraint.
21527         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21528         (FIXED_REGISTERS): Don't fix MDR.
21529         (CALL_USED_REGSITERS): Reformat nicely.
21530         (REG_ALLOC_ORDER): Add MDR.
21531         (enum regclass): Add MDR_REGS.
21532         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21533         (IRA_COVER_CLASSES): Add MDR_REGS.
21534         (REGNO_REG_CLASS): Handle MDR_REG.
21535         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21536         (mn10300_register_move_cost): Likewise.
21537         * config/mn10300/mn10300.md (MDR_REG): New.
21538         (*movsi_internal): Handle moves to/from MDR_REGS.
21539
21540         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21541         POST_MODIFY.
21542         (mn10300_secondary_reload): Tidy combination reload classes.
21543         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21544         addresses for AM33.  Allow symbolic offsets for reg+imm.
21545         (mn10300_regno_in_class_p): New.
21546         (mn10300_legitimize_reload_address): New.
21547         * config/mn10300/mn10300.h (enum reg_class): Remove
21548         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21549         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
21550         SP_OR_GENERAL_REGS.
21551         (REG_CLASS_NAMES): Update to match.
21552         (REG_CLASS_CONTENTS): Likewise.
21553         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21554         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21555         (REGNO_IN_RANGE_P): Remove.
21556         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21557         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21558         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21559         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21560         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21561         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21562         (REGNO_GENERAL_P): New.
21563         (HAVE_POST_MODIFY_DISP): New.
21564         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21565         (LEGITIMIZE_RELOAD_ADDRESS): New.
21566         * config/mn10300/mn10300-protos.h: Update.
21567
21568         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21569         DATA_REGS for AM33 stack-pointer destination.
21570         (mn10300_preferred_output_reload_class): Likewise.
21571         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21572         into a form appropriate for ...
21573         (TARGET_SECONDARY_RELOAD): New.
21574         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21575         * config/mn10300/mn10300-protos.h: Update.
21576         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21577         reload_insi; use the "A" constraint for the scratch; handle AM33
21578         moves of sp to non-address registers.
21579
21580         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21581         (*movqi_internal): ... here.
21582         (*am33_movhi, *mn10300_movhi): Merge into...
21583         (*movhi_internal): ... here.
21584         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
21585         as the source/destination of moves from/to SP.
21586         (movsf): Only allow for AM33-2.
21587         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21588         any integer constant constraint.  Only allow for AM33-2.  Tidy
21589         all of the alternative outputs.
21590         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21591         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
21592         for MN103.
21593         (udivsi3, umodsi3): New patterns for MN103 only.
21594
21595 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
21596
21597         * doc/tm.texi.in: Spell out that a lack of register class unions
21598         can lead to ICEs.
21599         * doc/tm.texi: Regenerate.
21600
21601 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
21602
21603         PR rtl-optimization/47337
21604         * dce.c (check_argument_store): New function.
21605         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
21606
21607         PR tree-optimization/47290
21608         * tree-eh.c (infinite_empty_loop_p): New function.
21609         (cleanup_empty_eh): Use it.
21610
21611 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
21612
21613         PR target/46997
21614         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21615         (a64_expand_widen_sum): Ditto.
21616         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21617         (vec_extract_evenodd_help): Ditto.
21618         (vec_extract_evenv4hi): Ditto.
21619         (vec_extract_oddv4hi): Ditto.
21620         (vec_extract_evenv2si): Ditto.
21621         (vec_extract_oddv2si): Ditto.
21622         (vec_extract_evenv2sf): Ditto.
21623         (vec_extract_oddv2sf): Ditto.
21624         (vec_pack_trunc_v4hi: Ditto.
21625         (vec_pack_trunc_v2si): Ditto.
21626         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21627         (vec_interleave_highv8qi): Ditto.
21628         (mix1_r): Ditto.
21629         (vec_extract_oddv8qi): Ditto.
21630         (vec_interleave_lowv4hi): Ditto.
21631         (vec_interleave_highv4hi): Ditto.
21632         (vec_interleave_lowv2si): Ditto.
21633         (vec_interleave_highv2si): Ditto.
21634
21635 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21636
21637         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21638         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21639         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
21640         (pa_c_mode_for_suffix): New.
21641         (TARGET_EXPAND_BUILTIN): Define.
21642         (TARGET_C_MODE_FOR_SUFFIX): Define.
21643         (pa_builtins): Define.
21644         (pa_init_builtins): Register __float128 type and init new support
21645         builtins.
21646         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21647         * config/pa/quadlib.c (_U_Qfcopysign): New.
21648
21649 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
21650
21651         PR middle-end/46894
21652         * explow.c (allocate_dynamic_stack_space): Do not assume more than
21653         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21654         are defined.
21655
21656 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21657
21658         PR tree-optimization/47179
21659         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21660         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21661
21662 2011-01-18  Richard Guenther  <rguenther@suse.de>
21663
21664         PR rtl-optimization/47216
21665         * emit-rtl.c: Include tree-flow.h.
21666         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21667         of replicating it with different semantics.
21668         * Makefile.in (emit-rtl.o): Adjust.
21669
21670 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21671
21672         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21673         (cortex_a9_dp): Handle neon types correctly.
21674
21675 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
21676
21677         PR rtl-optimization/47299
21678         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21679         subtarget.  Use normal multiplication if both operands are constants.
21680         * expmed.c (expand_widening_mult): Don't try to optimize constant
21681         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
21682         before using it.
21683
21684 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21685
21686         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
21687         spacing after 'e.g.', typos, comma, hyphenation.
21688
21689 2011-01-17  Richard Henderson  <rth@redhat.com>
21690
21691         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21692         (rx_restricted_mem_operand): New.
21693         (rx_shift_operand): Use register_operand.
21694         (rx_source_operand, rx_compare_operand): Likewise.
21695         * config/rx/rx.md (addsi3_flags): New expander.
21696         (adddi3): Rewrite as expander.
21697         (adc_internal, *adc_flags, adddi3_internal): New patterns.
21698         (subsi3_flags): New expander.
21699         (subdi3): Rewrite as expander.
21700         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21701
21702         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21703         (rx_init_builtins): Remove sat builtin.
21704         (rx_expand_builtin): Likewise.
21705         * config/rx/rx.md (ssaddsi3): New.
21706         (*sat): Rename from sat.  Represent the CC_REG input.
21707
21708         * config/rx/predicates.md (rshift_operator): New.
21709         * config/rx/rx.c (rx_expand_insv): Remove.
21710         * config/rx/rx-protos.h: Update.
21711         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
21712         operand to the canonical position.
21713         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21714         (*bitclr, *bitclr_in_memory): Similarly.
21715         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21716         (insv): Retain the zero_extract in the expansion.
21717
21718         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21719         (bswaphi2, bitinvert, revw): Likewise.
21720
21721         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21722         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21723         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21724         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21725         (bitset, bitset_in_memory): Likewise.
21726         (bitinvert, bitinvert_in_memory): Likewise.
21727         (bitclr, bitclr_in_memory): Likewise.
21728         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21729         (rx_strend, rx_cmpstrn): Likewise.
21730         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
21731         (bitop peep2 patterns): Remove.
21732
21733         * config/rx/rx.c (rx_match_ccmode): New.
21734         * config/rx/rx-protos.h: Update.
21735         * config/rx/rx.md (abssi2): Clobber, don't set flags.
21736         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21737         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21738         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21739         (fix_truncsfsi2, floatsisf2): Likewise.
21740         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21741         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21742         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21743         (*subsi3_flags, *xorsi3_flags): New.
21744
21745         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21746
21747         * config/rx/rx.c (rx_print_operand): Remove workaround for
21748         unsplit comparison operations.
21749
21750         * config/rx/rx.md (movsicc): Split after reload.
21751         (*movsicc): Merge *movsieq and *movsine via match_operator.
21752         (*stcc): New pattern.
21753
21754         * config/rx/rx.c (rx_float_compare_mode): Remove.
21755         * config/rx/rx.h (rx_float_compare_mode): Remove.
21756         * config/rx/rx.md (cstoresi4): Split after reload.
21757         (*sccc): New pattern.
21758
21759         * config/rx/predicates.md (label_ref_operand): New.
21760         (rx_z_comparison_operator): New.
21761         (rx_zs_comparison_operator): New.
21762         (rx_fp_comparison_operator): New.
21763         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21764         Validate that the flags are set properly for the comparison.
21765         (rx_gen_cond_branch_template): Remove.
21766         (rx_cc_modes_compatible): Remove.
21767         (mode_from_flags): New.
21768         (flags_from_code): Rename from flags_needed_for_conditional.
21769         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21770         (rx_select_cc_mode): Likewise.
21771         (rx_split_fp_compare): New.
21772         (rx_split_cbranch): New.
21773         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21774         (*cbranchsi4): Use match_operator and rx_split_cbranch.
21775         (*cbranchsf4): Similarly.
21776         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
21777         match_operator and rx_split_cbranch.
21778         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21779         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
21780         (*cmpsi): Rename from cmpsi.
21781         (*tstsi): Rename from tstsi.
21782         (*cmpsf): Rename from cmpsf; use CC_Fmode.
21783         (*conditional_branch): Rename from conditional_branch.
21784         (*reveresed_conditional_branch): Remove.
21785         (b<code>): Remove expander.
21786         * config/rx/rx-protos.h: Update.
21787
21788         * config/rx/rx.c (rx_compare_redundant): Remove.
21789         * config/rx/rx.md (cmpsi): Don't use it.
21790         * config/rx/rx-protos.h: Update.
21791
21792         * config/rx/rx-modes.def (CC_F): New mode.
21793         * config/rx/rx.c (rx_select_cc_mode): New.
21794         * config/rx/rx.h (SELECT_CC_MODE): Use it.
21795         * config/rx/rx-protos.h: Update.
21796
21797 2011-01-17  Richard Henderson  <rth@redhat.com>
21798
21799         * except.c (dump_eh_tree): Fix stray ; after for statement.
21800
21801 2011-01-17  Richard Guenther  <rguenther@suse.de>
21802
21803         PR tree-optimization/47313
21804         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21805         handling before copying the body.  Properly deal with
21806         by-reference result in SSA form.
21807
21808 2011-01-17  Ian Lance Taylor  <iant@google.com>
21809
21810         PR target/47219
21811         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21812         (struct_value_alias_set): Don't define.
21813         (sparc_option_override): Don't set sparc_sr_alias_set and
21814         struct_value_alias_set.
21815         (save_or_restore_regs): Use gen_frame_mem rather than calling
21816         set_mem_alias_set.
21817         (sparc_struct_value_rtx): Likewise.
21818
21819 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
21820
21821         PR target/47318
21822         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21823         (_mm_maskstore_pd): Likewise.
21824         (_mm_maskload_ps): Likewise.
21825         (_mm_maskstore_ps): Likewise.
21826         (_mm256_maskload_pd): Change mask to __m256i.
21827         (_mm256_maskstore_pd): Likewise.
21828         (_mm256_maskload_ps): Likewise.
21829         (_mm256_maskstore_ps): Likewise.
21830
21831         * config/i386/i386-builtin-types.def: Updated.
21832         (ix86_expand_special_args_builtin): Likewise.
21833
21834         * config/i386/i386.c (bdesc_special_args): Update
21835         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21836         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21837         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21838         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21839
21840         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21841         Use <avxpermvecmode> on mask register.
21842         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21843
21844 2011-01-17  Olivier Hainque  <hainque@adacore.com>
21845             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21846             Eric Botcazou  <ebotcazou@adacore.com>
21847
21848         PR target/46655
21849         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21850         if <= USHRT_MAX in 32-bit mode.
21851
21852 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21853
21854         * doc/install.texi (Configuration, Specific): Wrap long
21855         lines in examples.  Allow line wrapping in long options
21856         and URLs where beneficial for PDF output.
21857
21858 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
21859
21860         * config/mips/mips.c (mips_classify_symbol): Don't return
21861         SYMBOL_PC_RELATIVE for nonlocal labels.
21862
21863 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21864
21865         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21866
21867 2011-01-15  Jan Hubicka  <jh@suse.cz>
21868
21869         PR tree-optimization/47276
21870         * ipa.c (function_and_variable_visibility): Do not try to mark alias
21871         declarations as needed.
21872
21873 2011-01-15  Martin Jambor  <mjambor@suse.cz>
21874
21875         * common.opt (fdevirtualize): New flag.
21876         * doc/invoke.texi (Option Summary): Document it.
21877         * opts.c (default_options_table): Add devirtualize flag.
21878         * ipa-prop.c (detect_type_change): Return immediately if
21879         devirtualize flag is not set.
21880         (detect_type_change_ssa): Likewise.
21881         (compute_known_type_jump_func): Likewise.
21882         (ipa_analyze_virtual_call_uses): Likewise.
21883
21884 2011-01-14  Martin Jambor  <mjambor@suse.cz>
21885
21886         PR tree-optimization/45934
21887         PR tree-optimization/46302
21888         * ipa-prop.c (type_change_info): New type.
21889         (stmt_may_be_vtbl_ptr_store): New function.
21890         (check_stmt_for_type_change): Likewise.
21891         (detect_type_change): Likewise.
21892         (detect_type_change_ssa): Likewise.
21893         (compute_complex_assign_jump_func): Check for dynamic type change.
21894         (compute_complex_ancestor_jump_func): Likewise.
21895         (compute_known_type_jump_func): Likewise.
21896         (compute_scalar_jump_functions): Likewise.
21897         (ipa_analyze_virtual_call_uses): Likewise.
21898         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21899
21900 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21901
21902         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21903         * config/i386/i386.opt (msse5): New Alias.
21904
21905 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21906
21907         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21908         * config/sparc/linux64.h (CC1_SPEC): Likewise.
21909         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21910         * config/sparc/sparc.h (CC1_SPEC): Likewise.
21911
21912 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21913
21914         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21915         -mcpu options.
21916         * config/sparc/linux64.h (CC1_SPEC): Likewise.
21917         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21918         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21919         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21920         Likewise.
21921         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21922
21923 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21924
21925         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
21926
21927 2011-01-14  Mike Stump  <mikestump@comcast.net>
21928
21929         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21930         * config/fr30/fr30.md: Likweise
21931         (movsi_push): Likewise.
21932         (movsi_pop): Likewise.
21933         (enter_func): Likewise.
21934         * config/moxie/moxie.md (movsi_push): Likewise.
21935         (movsi_pop): Likewise.
21936
21937 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21938
21939         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21940         %{no_archive} %{exact_version}.
21941         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21942         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21943         %{no_archive} %{exact_version}.
21944         * config/mips/openbsd.h (LINK_SPEC): Likewise.
21945         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21946         * config/mips/vxworks.h: Likewise.
21947
21948 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21949
21950         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
21951
21952 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21953
21954         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21955         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21956
21957 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21958
21959         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21960         -nodefaultlib.
21961
21962 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21963
21964         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21965         for mcpu not cpu.
21966         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21967         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21968         not cpu.
21969         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21970         Don't handle -shlib.
21971
21972 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21973
21974         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21975         (CC1_SPEC): Don't handle -profile.
21976
21977 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21978
21979         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21980         * config/mips/mips.h (CC1_SPEC): Likewise.
21981
21982 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21983
21984         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21985         * config/mips/mips.h (CC1_SPEC): Likewise.
21986
21987 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21988
21989         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21990         * config/m32r/linux.h (LINK_SPEC): Likewise.
21991         * config/mips/linux.h (LINK_SPEC): Likewise.
21992         * config/mips/linux64.h (LINK_SPEC): Likewise.
21993         * config/sparc/linux.h (LINK_SPEC): Likewise.
21994         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21995         LINK_SPEC): Likewise.
21996         * config/xtensa/linux.h (LINK_SPEC): Likewise.
21997
21998 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
21999
22000         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
22001         %{version:-v}.
22002         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
22003
22004 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22005
22006         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
22007         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22008
22009 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22010
22011         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
22012
22013 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22014
22015         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
22016         supports -Bstatic/-Bdynamic.
22017         * configure: Regenerate.
22018
22019 2011-01-14  Jan Hubicka  <jh@suse.cz>
22020             Jack Howarth  <howarth@bromo.med.uc.edu>
22021
22022         PR target/46037
22023         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
22024         when checking debug_info_level. Test write_symbols instead of
22025         debug_hooks->var_location when setting flag_var_tracking_uninit.
22026
22027 2011-01-14  Richard Guenther  <rguenther@suse.de>
22028
22029         PR tree-optimization/47179
22030         * target.def (ref_may_alias_errno): New target hook.
22031         * targhooks.h (default_ref_may_alias_errno): Declare.
22032         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
22033         (default_ref_may_alias_errno): New function.
22034         * target.h (struct ao_ref_s): Declare.
22035         * tree-ssa-alias.c: Include target.h.
22036         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
22037         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
22038         (targhooks.o): Likewise.
22039         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
22040         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
22041
22042 2011-01-14  Richard Guenther  <rguenther@suse.de>
22043
22044         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
22045
22046 2011-01-14  Richard Guenther  <rguenther@suse.de>
22047
22048         PR tree-optimization/47280
22049         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
22050         return CFG changes.
22051         (tree_ssa_forward_propagate_single_use_vars): Deal with
22052         CFG changes from associate_plusminus.
22053
22054 2011-01-14  Richard Guenther  <rguenther@suse.de>
22055
22056         PR middle-end/47281
22057         Revert
22058         2011-01-11  Richard Guenther  <rguenther@suse.de>
22059
22060         PR tree-optimization/46076
22061         * tree-ssa.c (useless_type_conversion_p): Conversions from
22062         unprototyped to empty argument list function types are useless.
22063
22064 2011-01-14  Richard Guenther  <rguenther@suse.de>
22065
22066         PR tree-optimization/47286
22067         * tree-ssa-structalias.c (new_var_info): Register variables are global.
22068
22069 2011-01-14  Martin Jambor  <mjambor@suse.cz>
22070
22071         PR middle-end/46823
22072         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
22073
22074 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
22075
22076         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
22077         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22078         * config/xtensa/xtensa.c (xtensa_libcall_value,
22079         xtensa_function_value_regno_p): New functions.
22080         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22081
22082 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
22083
22084         PR c++/47213
22085         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
22086         PE specific hook.
22087         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
22088         New function prototype.
22089         * config/i386/winnt.c (i386_pe_assemble_visibility):
22090         Warn only if attribute was specified by user.
22091
22092 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22093
22094         PR target/47251
22095         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
22096         floating point.
22097         (floatunsdidf2_fcfidu): Ditto.
22098
22099 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22100
22101         * config/s390/s390.c (print_operand_address): Replace 'error' with
22102         'output_operand_lossage'.
22103         (print_operand): Likewise.
22104
22105 2011-01-13  Jeff Law  <law@redhat.com>
22106
22107         PR rtl-optimization/39077
22108         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
22109         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
22110         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
22111         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
22112         * gcse.c (prune_insertions_deletions): New function.
22113         (compute_pre_data): Use it.
22114
22115 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
22116
22117         PR debug/PR46973
22118         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
22119         static function.
22120         (prune_unused_types_mark): Use it.
22121
22122 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
22123
22124         PR rtl-optimization/45352
22125         * sel-sched.c: Update copyright years.
22126         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
22127         in the advancing loop when we have issued issue_rate insns.
22128
22129 2011-01-12  Richard Henderson  <rth@redhat.com>
22130
22131         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
22132         (TARGET_MD_ASM_CLOBBERS): New.
22133
22134         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
22135         (TARGET_DELEGITIMIZE_ADDRESS): New.
22136
22137         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
22138         (clzsi2, *bsch): New patterns.
22139
22140         * config/mn10300/mn10300.md (INT): New mode iterator.
22141         (*mov<INT>_clr): New pattern, and peep2 to generate it.
22142
22143         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
22144         flag_split_wide_types.
22145
22146         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
22147         (mn10300_trampoline_init): Rewrite without a template, an immediate
22148         load and a direct branch.
22149         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
22150
22151 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
22152
22153         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22154         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
22155         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
22156         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22157
22158 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
22159
22160         PR debug/47209
22161         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
22162         of type.
22163
22164 2011-01-12  Jan Hubicka  <jh@suse.cz>
22165
22166         PR driver/47244
22167         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
22168         (PLUGIN_COND_CLOSE): New macro.
22169         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
22170
22171 2011-01-12  Richard Guenther  <rguenther@suse.de>
22172
22173         PR lto/47259
22174         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
22175         register variables in a MEM_REF.
22176
22177 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
22178
22179         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
22180         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
22181         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
22182         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22183         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22184         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
22185         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
22186         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
22187         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
22188         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
22189         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
22190         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
22191         * config/gnu-user.h: New.  Copied from linux.h.
22192         (LINUX_TARGET_STARTFILE_SPEC): Rename to
22193         GNU_USER_TARGET_STARTFILE_SPEC.
22194         (LINUX_TARGET_ENDFILE_SPEC): Rename to
22195         GNU_USER_TARGET_ENDFILE_SPEC.
22196         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
22197         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
22198         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
22199         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
22200         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
22201         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
22202         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
22203         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
22204         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
22205         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
22206         * config/arm/linux-eabi.h (CC1_SPEC): Use
22207         GNU_USER_TARGET_CC1_SPEC.
22208         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
22209         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
22210         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
22211         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
22212         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
22213         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
22214         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
22215         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
22216
22217 2011-01-12  Richard Guenther  <rguenther@suse.de>
22218
22219         PR other/46946
22220         * doc/invoke.texi (ffast-math): Document it is turned on
22221         with -Ofast.
22222
22223 2011-01-12  Jan Hubicka  <jh@suse.cz>
22224
22225         PR tree-optimization/47233
22226         * opts.c (common_handle_option): Disable ipa-reference with profile
22227         feedback.
22228
22229 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22230
22231         * c-parser.c (c_parser_objc_at_property_declaration): Improved
22232         error message.
22233
22234 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22235
22236         * c-parser.c (c_lex_one_token): Updated and reindented some
22237         comments.  No changes in code.
22238
22239 2011-01-11  Ian Lance Taylor  <iant@google.com>
22240
22241         * godump.c (go_output_var): Don't output the variable if there is
22242         already a type with the same name.
22243
22244 2011-01-11  Ian Lance Taylor  <iant@google.com>
22245
22246         * godump.c (go_format_type): Don't generate float80.
22247
22248 2011-01-11  Richard Henderson  <rth@redhat.com>
22249
22250         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
22251         declaration.  Rewrite for both speed and size.
22252         (mn10300_address_cost_1): Remove.
22253         (mn10300_register_move_cost): New.
22254         (mn10300_memory_move_cost): New.
22255         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
22256         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
22257         extensions, shifts, BSWAP, CLZ.
22258         (mn10300_wide_const_load_uses_clr): Remove.
22259         (TARGET_REGISTER_MOVE_COST): New.
22260         (TARGET_MEMORY_MOVE_COST): New.
22261         * config/mn10300/mn10300-protos.h: Update.
22262         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
22263
22264         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
22265         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
22266         * config/mn10300/mn10300-protos.h: Update.
22267         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
22268         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
22269         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
22270         (*test_int_bitfield, *test_byte_bitfield): Remove.
22271         (*bit_test, *subreg_bit_test): Remove.
22272         * config/mn10300/predicates.md (const_8bit_operand): Remove.
22273
22274         * config/mn10300/constraints.md ("c"): Rename from "A".
22275         ("A", "D"): New constraint letters.
22276         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
22277         (fmssf4, fnmasf4, fnmssf4): Likewise.
22278
22279         * config/mn10300/mn10300.md (isa): New attribute.
22280         (enabled): New attribute.
22281
22282         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
22283         (abssf2, negsf2): Define only for hardware fp.
22284         (sqrtsf2): Reformat.
22285         (addsf3, subsf3, mulsf3): Merge expander and insn.
22286
22287         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
22288         (DEBUGGER_AUTO_OFFSET): Remove.
22289         (DEBUGGER_ARG_OFFSET): Remove.
22290
22291         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
22292         Emit register stores with the same offsets as the hardware.
22293         (mn10300_store_multiple_operation): Don't check that the register
22294         save offsets are monotonic.
22295         * config/mn10300/mn10300-protos.h: Update.
22296
22297         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
22298
22299         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
22300         in terms of the value on the stack, not the MDR register.
22301
22302 2011-01-11  Jan Hubicka  <jh@suse.cz>
22303
22304         PR lto/45721
22305         PR lto/45375
22306         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
22307         (symbol_alias_set_destroy, symbol_alias_set_contains,
22308         propagate_aliases_backward): Declare.
22309         * lto-streamer-out.c (struct sets): New sturcture.
22310         (trivally_defined_alias): New function.
22311         (output_alias_pair_p): Rewrite.
22312         (output_unreferenced_globals): Fix output of alias pairs.
22313         (produce_symtab): Likewise.
22314         * ipa.c (function_and_variable_visibility): Set weak alias destination
22315         as needed in lto.
22316         * varasm.c (symbol_alias_set_t): Remove.
22317         (symbol_alias_set_destroy): Export.
22318         (propagate_aliases_forward, propagate_aliases_backward): New functions
22319         based on ...
22320         (compute_visible_aliases): ... this one; remove.
22321         (trivially_visible_alias): New
22322         (trivially_defined_alias): New.
22323         (remove_unreachable_alias_pairs): Rewrite.
22324         (finish_aliases_1): Reorganize code checking if alias is defined.
22325         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
22326         in LTO mode.
22327
22328 2011-01-11  Richard Guenther  <rguenther@suse.de>
22329
22330         PR tree-optimization/46076
22331         * tree-ssa.c (useless_type_conversion_p): Conversions from
22332         unprototyped to empty argument list function types are useless.
22333
22334 2011-01-11  Richard Guenther  <rguenther@suse.de>
22335
22336         PR middle-end/45235
22337         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
22338         volatile MEMs as MEM_READONLY_P.
22339
22340 2011-01-11  Richard Guenther  <rguenther@suse.de>
22341
22342         PR tree-optimization/47239
22343         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
22344
22345 2011-01-11  Jeff Law  <law@redhat.com>
22346
22347         PR tree-optimization/47086
22348         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
22349         IVs from statements that might throw.
22350
22351 2011-01-10  Jan Hubicka  <jh@suse.cz>
22352
22353         PR lto/45375
22354         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
22355
22356 2011-01-10  Jan Hubicka  <jh@suse.cz>
22357
22358         PR lto/45375
22359         * profile.c (read_profile_edge_counts): Ignore profile inconistency
22360         when correcting profile.
22361
22362 2011-01-10  Jan Hubicka  <jh@suse.cz>
22363
22364         PR lto/46083
22365         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
22366         DECL_FINI_PRIORITY.
22367         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
22368         Restore DECL_FINI_PRIORITY.
22369
22370 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22371
22372         * doc/gimple.texi: Fix quoting of multi-word return values in
22373         @deftypefn statements.  Ensure presence of return value.  Wrap
22374         overlong @deftypefn lines.
22375         (is_gimple_operand, is_gimple_min_invariant_address): Remove
22376         descriptions of removed functions.
22377         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
22378         of multi-word return value in @deftypefn statement.
22379
22380 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22381
22382         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
22383         (Conditional Expressions, Logical Operators)
22384         (Statement and operand traversals): Do not indent smallexample
22385         code.  Fix duplicate function argument in example.
22386
22387 2011-01-10  Jeff Law  <law@redhat.com>
22388
22389         PR tree-optimization/47141
22390         * ipa-split.c (split_function): Handle case where we are
22391         returning a value and the return block has a virtual operand phi.
22392
22393 2011-01-10  Jan Hubicka  <jh@suse.cz>
22394
22395         PR tree-optimization/47234
22396         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
22397         (pass_feedback_split_functions): Declare.
22398         * passes.c (init_optimization_passes): Add ipa-split as subpass of
22399         tree-profile.
22400         * ipa-split.c (gate_split_functions): Update comments; disable
22401         split-functions for profile_arc_flag and branch_probabilities.
22402         (gate_feedback_split_functions): New function.
22403         (execute_feedback_split_functions): New function.
22404         (pass_feedback_split_functions): New global var.
22405
22406 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22407
22408         PR lto/46760
22409         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
22410         calling gimple_call_set_cannot_inline.
22411
22412 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
22413
22414         * config/darwin-sections.def: Remove unused section.
22415
22416 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
22417
22418         PR c++/47218
22419         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22420
22421 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
22422
22423         PR objc/47232
22424         * c-parser.c (c_parser_declaration_or_fndef): Improved
22425         error message.
22426
22427 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
22428
22429         * config/i386/winnt.c (i386_pe_start_function): Make sure
22430         to switch back to function's section.
22431
22432 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
22433
22434         PR gcc/46902
22435         PR testsuite/46912
22436         * plugin.c: Move include of dlfcn.h from here...
22437         * system.h: ... to here.
22438
22439 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22440
22441         * doc/cpp.texi (C++ Named Operators): Fix markup for header
22442         file name.
22443         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22444         two extra empty pages in PDF output.
22445
22446 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
22447
22448         PR objc/47078
22449         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22450         for error recovery purposes behave as if it was not specified so
22451         that the default type is usd.
22452
22453 2011-01-07  Jan Hubicka  <jh@suse.cz>
22454
22455         PR tree-optmization/46469
22456         * ipa.c (function_and_variable_visibility): Clear needed flags on
22457         nodes with external decls; handle weakrefs merging correctly.
22458
22459 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
22460
22461         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22462         not false.
22463
22464 2011-01-07  Jan Hubicka  <jh@suse.cz>
22465
22466         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22467         and no longer claim that gold is required for linker plugin.
22468         * configure: Regenerate.
22469         * gcc.c (PLUGIN_COND): New macro.
22470         (LINK_COMMAND_SPEC): Use it.
22471         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22472         * config.in (HAVE_LTO_PLUGIN): New.
22473         * configure.ac (--with-lto-plugin): New parameter; autodetect
22474         HAVE_LTO_PLUGIN.
22475
22476 2011-01-07  Jan Hubicka  <jh@suse.cz>
22477
22478         PR tree-optimization/46367
22479         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22480         when we can update original.
22481         (cgraph_mark_inline_edge): Sanity check.
22482         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22483
22484 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22485
22486         * config/spu/spu.h (ASM_COMMENT_START): Define.
22487
22488 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
22489
22490         PR driver/42445
22491         * gcc.c (%>S): New.
22492         (SWITCH_KEEP_FOR_GCC): Likewise.
22493         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22494         (do_spec_1): Handle "%>".
22495
22496         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22497
22498 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
22499
22500         PR target/47201
22501         * config/i386/i386.c (ix86_delegitimize_address): If
22502         simplify_gen_subreg fails, return orig_x.
22503
22504         PR bootstrap/47187
22505         * value-prof.c (gimple_stringop_fixed_value): Handle
22506         lhs of the call properly.
22507
22508 2011-01-07  Jan Hubicka  <jh@suse.cz>
22509
22510         PR lto/45375
22511         * lto-opt.c (lto_reissue_options): Set flag_shlib.
22512
22513 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22514
22515         * target.def (function_switched_text_sections): New hook.
22516         * doc/tm.texi: Regenerated.
22517         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22518         * final.c (default_function_switched_text_sections): New.
22519         (final_scan_insn): Call function_switched_text_sections when a
22520         mid-function section change occurs.
22521         * output.h (default_function_switched_text_sections): Declare.
22522         * config/darwin-protos.h (darwin_function_switched_text_sections):
22523         Likewise.
22524         * config/darwin.c (darwin_function_switched_text_sections): New.
22525         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22526
22527 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22528
22529         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
22530         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
22531         the secondary code fragment when outputting for DWARF == 2.
22532
22533 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
22534
22535         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22536         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22537         Remove.
22538         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22539         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22540
22541 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
22542
22543         PR debug/46704
22544         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22545         when it is not empty.
22546
22547 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
22548
22549         Bobcat Enablement
22550         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22551         (case ${target}): Add btver1.
22552         * config/i386/driver-i386.c (host_detect_local_cpu): Let
22553         -march=native recognize btver1 processors.
22554         * config/i386/i386-c.c (ix86_target_macros_internal): Add
22555         btver1 def_and_undef
22556         * config/i386/i386.c (struct processor_costs btver1_cost): New
22557         btver1 cost table.
22558         (m_BTVER1): New definition.
22559         (m_AMD_MULTIPLE): Includes m_BTVER1.
22560         (initial_ix86_tune_features): Add btver1 tune.
22561         (processor_target_table): Add btver1 entry.
22562         (static const char *const cpu_names): Add btver1 entry.
22563         (software_prefetching_beneficial_p): Add btver1.
22564         (ix86_option_override_internal): Add btver1 instruction sets.
22565         (ix86_issue_rate): Add btver1.
22566         (ix86_adjust_cost): Add btver1.
22567         * config/i386/i386.h (TARGET_BTVER1): New definition.
22568         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22569         (enum processor_type): Add PROCESSOR_BTVER1.
22570         * config/i386/i386.md (define_attr "cpu"): Add btver1.
22571
22572 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22573
22574         PR target/43309
22575         * config/i386/i386.c (legitimize_tls_address)
22576         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22577         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22578         (tls_initial_exec_64_sun): New pattern.
22579
22580 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
22581
22582         * doc/invoke.texi (Overall Options): Improve wording and markup
22583         of the description of -wrapper.
22584
22585 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22586
22587         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22588         rdynamic, threads): New Driver options.
22589
22590 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22591
22592         PR target/38118
22593         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22594         if coming from .tdata.
22595         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22596
22597 2011-01-06  Jan Hubicka  <jh@suse.cz>
22598
22599         PR lto/47188
22600         * collect2.c (main): Do not enable LTOmode when plugin is active.
22601
22602 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22603
22604         PR other/45915
22605         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22606         --version output if supported.
22607         * configure: Regenerate.
22608
22609 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22610
22611         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22612         Driver options.
22613
22614 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
22615
22616         PR c/47150
22617         * c-convert.c (convert): When converting a complex expression
22618         other than COMPLEX_EXPR to a different complex type, ensure
22619         c_save_expr is called instead of save_expr, unless in_late_binary_op.
22620         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22621         when converting COMPLEX_TYPE.
22622
22623 2011-01-06  Ira Rosen  <irar@il.ibm.com>
22624
22625         PR tree-optimization/47139
22626         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22627         only the last reduction value is used outside the loop.  Update
22628         documentation.
22629
22630 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
22631
22632         * config/rtems.opt: New.
22633         * config.gcc (*-*-rtems*): Use rtems.opt.
22634
22635 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
22636
22637         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22638         processors do not support 3DNow instructions.
22639
22640 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22641
22642         * config/spu/spu.c (spu_option_override): Set parameter
22643         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22644
22645 2011-01-05  Jan Hubicka  <jh@suse.cz>
22646
22647         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22648         at the command line.
22649
22650 2011-01-05  Martin Jambor  <mjambor@suse.cz>
22651
22652         PR lto/47162
22653         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22654         deltas on streamed outgoing edges.
22655         (output_node_opt_summary): Output info for outgoing edges only when
22656         the node is in new parameter set.
22657         (output_cgraph_opt_summary): New parameter set, passed to the two
22658         aforementioned functions.  Update its forward declaration and its
22659         callee too.
22660
22661 2011-01-05  Tom Tromey  <tromey@redhat.com>
22662
22663         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22664         operator to c_finish_omp_atomic.
22665         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22666         (build_unary_op): Update.
22667         (build_modify_expr): Update.
22668         (build_asm_expr): Update.
22669
22670 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22671
22672         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22673         newly inserted insns.
22674         (pad_bb): Likewise.
22675         (spu_emit_branch_hint): Likewise.
22676         (insert_hbrp_for_ilb_runout): Likewise.
22677         (spu_machine_dependent_reorg): Call df_finish_pass after
22678         schedule_insns returns.
22679
22680 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22681
22682         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22683
22684 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22685
22686         PR tree-optimization/47005
22687         * tree-sra.c (struct access): Add 'non_addressable' bit.
22688         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22689         (decide_one_param_reduction): Return 0 if the parameter is passed by
22690         reference and one of the accesses in the group is non_addressable.
22691
22692 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22693
22694         PR tree-optimization/47056
22695         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22696         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
22697         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
22698
22699 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22700
22701         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22702         initializer.  Skip view conversions from aggregate types.
22703
22704 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
22705
22706         PR bootstrap/47055
22707         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22708
22709 2011-01-04  Philipp Thomas  <pth@suse.de>
22710
22711         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22712         obvious typo.
22713
22714 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22715
22716         * function.c (thread_prologue_and_epilogue_insns): Do not crash
22717         on empty epilogue sequences.
22718
22719 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
22720
22721         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22722         non-static): New Driver options.
22723
22724 2011-01-04  Jie Zhang  <jie@codesourcery.com>
22725
22726         PR driver/47137
22727         * gcc.c (default_compilers[]): Set combinable field to 0
22728         for all assembly languages.
22729
22730 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
22731
22732         * config/mips/loongson3a.md: New file.
22733         * config/mips/mips.md: Include loongson3a.md.
22734         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22735         TUNE_LOONGSON_3A.
22736
22737 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
22738
22739         PR middle-end/47017
22740         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22741         instead of convert_memory_address_addr_space on the base expression.
22742
22743 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22744
22745         * config/spu/spu.c (spu_option_override): Update error text
22746         for bad -march= / -mtune= values.
22747
22748 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22749
22750         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22751         if branch-hint optimization will be performed.
22752
22753 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22754
22755         PR tree-optimization/47148
22756         * ipa-split.c (split_function): Convert arguments to
22757         DECL_ARG_TYPE if possible.
22758
22759         PR tree-optimization/47155
22760         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22761         when computing uns.
22762
22763         PR rtl-optimization/47157
22764         * combine.c (try_combine): If undobuf.other_insn becomes
22765         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22766         and set *new_direct_jump_p too.
22767
22768 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22769
22770         PR tree-optimization/47021
22771         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22772
22773 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22774
22775         * gcc.c (process_command): Update copyright notice dates.
22776         * gcov.c (print_version): Likewise.
22777         * gcov-dump.c (print_version): Likewise.
22778         * mips-tfile.c (main): Likewise.
22779         * mips-tdump.c (main): Likewise.
22780
22781 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22782
22783         PR tree-optimization/46801
22784         * tree-sra.c (type_internals_preclude_sra_p): Check whether
22785         aggregate fields start at byte boundary instead of the bit-field flag.
22786
22787 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22788
22789         PR driver/47137
22790         * gcc.c (main): Revert revision 168407.
22791
22792 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22793
22794         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22795
22796 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22797
22798         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22799         vector optab to expand vector/scalar shift, update gimple to vector.
22800
22801 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22802
22803         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22804         a thunk.
22805
22806 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22807
22808         PR tree-optimization/46984
22809         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22810         HOST_WIDE_INT.
22811         (cgraph_create_indirect_edge): Fixed line length.
22812         (cgraph_indirect_call_info): Declare.
22813         (cgraph_make_edge_direct) Update declaration.
22814         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22815         (cgraph_create_indirect_edge): Use it.
22816         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
22817         callees.
22818         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22819         the new thunk_delta representation.
22820         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22821         HOST_WIDE_INT.
22822         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22823         (ipa_read_indirect_edge_info): Likewise.
22824         * lto-cgraph.c (output_edge_opt_summary): New function.
22825         (output_node_opt_summary): Call it on all outgoing edges.
22826         (input_edge_opt_summary): New function.
22827         (input_node_opt_summary): Call it on all outgoing edges.
22828
22829 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
22830
22831         PR driver/47137
22832         * gcc.c (main): Don't check have_o when settting combine_inputs.
22833
22834 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
22835
22836         * regrename.c: Add general comment describing the pass.
22837         (struct du_head): Remove 'length' field.
22838         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22839         (regrename_optimize): Do not sort chains.  Rework comments, add others.
22840         Force renaming to the preferred class (if any) in the first pass and do
22841         not consider registers that belong to it in the second pass.
22842         (create_new_chain): Do not set 'length' field.
22843         (scan_rtx_reg): Likewise.
22844
22845 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
22846
22847         PR tree-optimization/47140
22848         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22849         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22850         to bit_value_binop.
22851
22852         PR rtl-optimization/47028
22853         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22854         parm_birth_insn instead of at the beginning of first bb.
22855
22856 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
22857
22858         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22859         Remove the word "see" before "@pxref".
22860         * doc/rtl.texi: Remove the word "see" before "@pxref".
22861
22862 2011-01-01  Jan Hubicka  <jh@suse.cz>
22863
22864         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22865         memory.
22866
22867 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
22868
22869         PR target/38662
22870         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22871
22872 \f
22873 Copyright (C) 2011 Free Software Foundation, Inc.
22874
22875 Copying and distribution of this file, with or without modification,
22876 are permitted in any medium without royalty provided the copyright
22877 notice and this notice are preserved.