OSDN Git Service

PR debug/49841
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-25  Richard Henderson  <rth@redhat.com>
2
3         PR debug/49841
4         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5         (emit_frame_save): Likewise.
6         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7         insn onto a dummy blockage insn after the join label.
8
9 2011-07-25  Richard Henderson  <rth@redhat.com>
10
11         * dwarf2cfi.c (dw_trace_info): Add ID member.
12         (get_trace_index): Remove.  Change users to use ID member.
13         (before_next_cfi_note): New.
14         (connect_traces): Remove unreachable traces before the main loop.
15         Look across one trace and generate remember/restore_state if needed.
16
17 2011-07-25  Richard Henderson  <rth@redhat.com>
18
19         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
20
21 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
22
23         * genattr.c (write_upcase, gen_attr <enum definition writing>):
24         Move to ...
25         * genattr-common.c ... here.
26         (main): Call gen_attr.
27         * optc-gen.awk: Make generated program include insn-attr-common.h .
28         * Makefile.in (oprions.o): Depend on insn-attr-common.h
29
30 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
31
32         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
33         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
34         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
35         m32c_print_operand, m32c_print_operand_address): Remove.
36         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
37         Change return type to bool. Change argument type to bool.
38         (m32c_print_operand, m32c_print_operand_address): Make static.
39         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
40         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
41
42 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
43
44         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
45         attributes): Document mmap.
46
47 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
48
49         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
50         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
51         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
52         mmix_print_operand, mmix_print_operand_address): Remove.
53         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
54         Change return type to bool. Change argument type to bool.
55         (mmix_print_operand, mmix_print_operand_address): Make static.
56         (mmix_intval, mmix_output_condition): Change 'x' argument type 
57         to const_rtx.
58         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
59         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
60
61 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
62         
63         PR target/39386
64         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
65         shift counter for x << x and x >> x shifts.
66
67 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
68
69         PR target/47124
70         * config.gcc: Reject *-*-solaris2 configuration.
71
72 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
73
74         PR tree-optimization/49809
75         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
76         gimple_get_lhs instead of gimple_assign_lhs.
77
78 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
79
80         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
81
82 2011-07-25  Richard Guenther  <rguenther@suse.de>
83
84         PR tree-optimization/49822
85         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
86         more.  Make sure to preserve stmts with side-effects.  Properly
87         handle virtual defs, follow a longer def chain.
88
89 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
90
91         PR plugins/45348
92         PR plugins/48425
93         PR plugins/46577
94         * Makefile.in: Do not flatten c-family directory when installing
95         plugin headers.
96
97 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
98
99         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
100         original nodes if we are dealing with virtual clones.
101
102 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
103
104         * common/config/c6x/c6x-common.c: New file.
105
106 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
107
108         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
109
110 2011-07-25  Richard Guenther  <rguenther@suse.de>
111
112         PR tree-optimization/49715
113         * tree-vrp.c: Include expr.h and optabs.h.
114         (range_fits_type_): New function.
115         (simplify_float_conversion_using_ranges): Likewise.
116         (simplify_stmt_using_ranges): Call it.
117         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
118         * optabs.c (can_float_p): Export.
119         * optabs.h (can_float_p): Declare.
120
121 2011-07-25  Richard Guenther  <rguenther@suse.de>
122
123         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
124         (get_value_range): For out-of-range SSA names or names created
125         after propagation return a read-only varying range.
126         (dump_all_value_ranges): Adjust.
127         (vrp_initialize): Likewise.
128         (vrp_finalize): Likewise.
129
130 2011-07-24  Richard Henderson  <rth@redhat.com>
131
132         PR debug/49831
133         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
134         them entirely.
135
136 2011-07-24  Richard Henderson  <rth@redhat.com>
137
138         PR debug/49825
139         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
140         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
141
142 2011-07-24  Richard Henderson  <rth@redhat.com>
143
144         PR debug/49827
145         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
146
147 2011-07-24  Richard Henderson  <rth@redhat.com>
148
149         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
150         Zero args_size for abnormal edges.  Adjust all callers.
151
152 2011-07-24  Richard Henderson  <rth@redhat.com>
153
154         PR debug/49825
155         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
156
157 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
158
159         PR bootstrap/49835
160         * collect2.c (demangle_flag): Removed.
161
162 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
163
164         * configure.ac (demangler_in_ld): Default to yes.
165         * configure: Regenerated.
166         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
167         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
168         --no-demangle options straight through to ld.  When
169         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
170         way that has the intended effect on Windows.
171
172 2011-07-23  Richard Henderson  <rth@redhat.com>
173
174         * dwarf2cfi.c: Include basic-block.h.
175         (dw_label_info): Remove.
176         (trace_work_list, trace_index): New.
177         (remember_row, emit_cfa_remember): Remove.
178         (dw_trace_info_hash, dw_trace_info_eq): New.
179         (get_trace_index, get_trace_info): New.
180         (save_point_p): New.
181         (free_cfi_row): Remove.
182         (add_cfi): Do not emit DW_CFA_remember_state.
183         (cfa_row_equal_p): New.
184         (barrier_args_size): Remove.
185         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
186         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
187         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
188         (dwarf2out_cfi_begin_epilogue): Remove.
189         (dwarf2out_frame_debug_restore_state): Remove.
190         (connect_traces, create_pseudo_cfg): New.
191         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
192         * Makefile.in (dwarf2cfi.o): Update.
193
194 2011-07-23  Richard Henderson  <rth@redhat.com>
195
196         * dwarf2cfi.c (dw_trace_info): New.
197         (dw_label_info): New.
198         (cie_return_save): New.
199         (cur_trace): New.
200         (queued_args_size): Rename from args_size.  Update all users.
201         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
202         (def_cfa_1): Use cur_trace instead of cfa_*.
203         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
204         (clobbers_queued_reg_save, reg_saved_in): Likewise.
205         (dwarf2out_frame_debug_expr): Likewise.
206         (create_cie_data): Split out from ...
207         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
208
209 2011-07-23  Richard Henderson  <rth@redhat.com>
210
211         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
212         Update all users to match.
213         (execute_dwarf2_frame): Free reg_saved_in_data.
214
215 2011-07-23  Richard Henderson  <rth@redhat.com>
216
217         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
218         (queued_reg_saves): Don't GTY.  Change to a VEC.
219         (queue_reg_save): Update to match.
220         (dwarf2out_flush_queued_reg_saves): Likewise.
221         (clobbers_queued_reg_save): Likewise.
222         (reg_saved_in): Likewise.
223         (execute_dwarf2_frame): Free queued_reg_saves.
224
225 2011-07-23  Richard Henderson  <rth@redhat.com>
226
227         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
228
229 2011-07-23  Richard Henderson  <rth@redhat.com>
230
231         * dwarf2cfi.c (add_cfi_args_size): Split out from...
232         (dwarf2out_args_size): ... here.
233         (add_cfi_restore): Split out from ...
234         (dwarf2out_frame_debug_cfa_restore): ... here.
235         (def_cfa_0): Split out from ...
236         (def_cfa_1): ... here.
237         (cfi_oprnd_equal_p, cfi_equal_p): New.
238         (change_cfi_row): New.
239         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
240         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
241         (output_cfis): Remove.
242         * dwarf2out.c (output_fde): Simplify output_cfi loop.
243         (dwarf2out_switch_text_section): Don't call output_cfis.
244         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
245         * dwarf2out.h: Update decls.
246         (enum dw_val_class): Add dw_val_class_none.
247
248 2011-07-23  Richard Henderson  <rth@redhat.com>
249
250         * dwarf2cfi.c (update_row_reg_save): New.
251         (dwarf2out_frame_debug_cfa_expression): Use it.
252         (dwarf2out_frame_debug_cfa_restore): Likewise.
253         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
254
255 2011-07-23  Richard Henderson  <rth@redhat.com>
256
257         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
258
259 2011-07-23  Richard Henderson  <rth@redhat.com>
260
261         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
262         (cie_cfi_row): New.
263         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
264         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
265         (cur_row, remember_row): New.
266         (def_cfa_1): Use cur_row instead of the old_* variables.
267         (dwarf2out_frame_debug_restore_state): Similarly.
268         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
269         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
270         (dwarf2out_frame_debug_adjust_cfa): Likewise.
271         (dwarf2out_frame_debug_cfa_offset): Likewise.
272         (dwarf2out_frame_debug_expr): Likewise.
273         (execute_dwarf2_frame): Set up cur_row.
274         * dwarf2out.h (struct cfa_loc): Mark for GTY.
275
276 2011-07-23  Richard Henderson  <rth@redhat.com>
277
278         * basic-block.h (EDGE_PRESERVE): New.
279         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
280         * bb-reorder.c: Include except.h.
281         (fix_up_crossing_landing_pad): New.
282         (find_rarely_executed_basic_blocks_and_crossing_edges): Place 
283         landing pads in the right partition.  Duplicate as necessary.
284         (partition_hot_cold_basic_blocks): Fix up DF info after
285         duplicating landing pads.
286         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
287         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
288         is set properly.  Validate that EH edges are not CROSSING.
289         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
290         (dw2_build_landing_pads): ... here.
291         (convert_to_eh_region_ranges): Remove code to fixup crossing
292         landing pads.
293         * except.h (expand_dw2_landing_pad_for_region): Declare.
294         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
295
296 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
297
298         PR target/49816
299         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
300
301 2011-07-22  Jason Merrill  <jason@redhat.com>
302
303         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
304
305 2011-07-22  Richard Henderson  <rth@redhat.com>
306
307         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
308
309 2011-07-22  Richard Henderson  <rth@redhat.com>
310
311         * jump.c (maybe_propagate_label_ref): Split out of...
312         (mark_all_labels): ... here.  Do not attempt label_ref
313         propagation while in cfglayout mode.
314
315 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
316
317         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
318         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
319         (dwarf_attr_name): Handle DW_AT_GNU_macros.
320         (dwarf2out_define): If the vector is empty and
321         lineno is 0, emit a dummy entry first.
322         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
323         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
324         optimize_macinfo_range): New functions.
325         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
326         mergeable, optimize longer strings using
327         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
328         optimize longer sequences of define/undef ops from headers
329         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
330         emit a section headers.
331         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
332         and macinfo_section_label to DEBUG_MACRO_SECTION
333         resp. DEBUG_MACRO_SECTION_LABEL.
334         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
335         instead of DW_AT_macro_info.
336
337         PR other/32998
338         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
339         options.
340         * dwarf2out.c: Include opts.h.
341         (dchar_p): New typedef.  Define heap VEC for it.
342         (producer_string): New variable.
343         (gen_producer_string): New function.
344         (gen_compile_unit_die): Use it.
345         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer
346         if needed.
347         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
348         * doc/invoke.texi: Document -grecord-gcc-switches and
349         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
350         to -frecord-gcc-switches description.
351
352 2011-07-22  Jason Merrill  <jason@redhat.com>
353
354         PR c++/30112
355         * c-decl.c (c_linkage_bindings): Define.
356
357 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
358
359         PR debug/49815
360         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
361
362 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
363
364         * config/i386/i386.c (ix86_option_override_internal): Disallow
365         MS ABI in x32 mode.
366         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
367         only for TARGET_LP64.
368         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of
369         TARGET_64BIT.
370
371 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
372
373         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
374         avoid warnings when GCC is built with a C++ compiler.
375
376 2011-07-22  Martin Jambor  <mjambor@suse.cz>
377
378         PR lto/49796
379         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
380         if decl node is in another partition, call cgraph_get_node only
381         once.
382
383 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
384
385         * config.gcc (x86_64-*-linux*): Set
386         default_gnu_indirect_function to yes.
387
388 2011-07-22  Richard Guenther  <rguenther@suse.de>
389
390         PR tree-optimization/45819
391         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
392         preserve volatile and notrap flags.
393
394 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
395             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
396
397         PR bootstrap/49794
398         * configure.ac: Test AM_ICONV with CXX.
399         * configure: Regenerate.
400         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
401
402 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
403
404         PR bootstrap/49797
405         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
406         (set_cloog_options): Use it.
407
408 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
409
410         PR c++/49756
411         * gcc.c (main): Call stack_limit_increase (64MB).
412         * toplev.c (toplev_main): Likewise.
413
414 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
415
416         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
417         instead of force_reg.
418
419 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
420
421         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
422         needed and use force_reg after convert.
423         (ix86_expand_call): Likewise.
424         (ix86_expand_special_args_builtin): Likewise.
425         (ix86_expand_builtin): Likewise.
426
427 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
428
429         PR middle-end/47654
430         PR middle-end/49649
431         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
432         in parameter.  Initialize v1 and v2 based on the values returned
433         by clast_name_to_lb_ub.
434         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
435         values.
436         (type_for_clast_bin): Same.
437         (type_for_clast_expr): Same.
438         (type_for_clast_eq): Update calls to type_for_clast_expr.
439         (type_for_clast_for): Same.
440         (build_iv_mapping): Same.
441         * graphite-ppl.h (value_min): New.
442
443 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
444
445         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
446         types whenever possible.
447
448 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
449
450         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
451         and ub fields.
452         (new_clast_name_index): Add lb and ub parameters.
453         (free_clast_name_index): New.
454         (clast_name_to_lb_ub): New.
455         (save_clast_name_index): Add lb and ub parameters.
456         (compute_bounds_for_param): New.
457         (type_for_level): Removed.
458         (type_for_clast_for): Removed level parameter.  Do not call
459         type_for_level.
460         (graphite_create_new_loop): Store the lb and ub for the clast_name
461         of the iterator of the loop that has been generated.
462         (graphite_create_new_loop_guard): Remove parameter level.
463         (create_params_index): Store the lb and ub of each parameter.
464         (gloog): Use free_clast_name_index.  Pass to create_params_index
465         the current scop.
466
467 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
468
469         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
470         (max_precision_type): Inline max_signed_precision_type.
471         (type_for_clast_red): Use max_precision_type.
472         (type_for_clast_bin): Same.
473         (type_for_clast_for): Same.
474
475 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
476
477         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
478         type_for_interval.
479         (gcc_type_for_value): Renamed type_for_value.
480         (gcc_type_for_clast_term): Renamed type_for_clast_term.
481         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
482         (gcc_type_for_clast_red): Renamed type_for_clast_red.
483         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
484         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
485         (graphite_translate_clast_equation): Update calls.
486         (compute_type_for_level): Renamed type_for_level.
487         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
488         (build_iv_mapping): Update calls.
489         (graphite_create_new_loop_guard): Same.
490
491 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
492
493         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
494         comment.
495
496 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
497
498         * graphite-clast-to-gimple.c (struct ivs_params): New.
499         (clast_name_to_gcc): Use ivs_params to pass around parameters.
500         (clast_to_gcc_expression): Same.
501         (clast_to_gcc_expression_red): Same.
502         (gcc_type_for_clast_term): Same.
503         (gcc_type_for_clast_expr): Same.
504         (gcc_type_for_clast_red): Same.
505         (gcc_type_for_clast_bin): Same.
506         (gcc_type_for_clast_eq): Same.
507         (graphite_translate_clast_equation): Same.
508         (graphite_create_guard_cond_expr): Same.
509         (graphite_create_new_guard): Same.
510         (graphite_create_new_loop): Same.
511         (build_iv_mapping): Same.
512         (translate_clast_user): Same.
513         (graphite_create_new_loop_guard): Same.
514         (translate_clast): Same.
515         (translate_clast_for_loop): Same.
516         (translate_clast_for): Same.
517         (translate_clast_guard): Same.
518         (initialize_cloog_names): Fix typo.
519         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
520
521 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
522
523         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
524         (new_clast_name_index): Add level parameter.
525         (clast_name_to_level): New.
526         (save_clast_name_index): Add level parameter.
527         (newivs_to_depth_to_newiv): Removed.
528         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
529         (graphite_create_new_loop): Add level parameter.  Pass level to
530         save_clast_name_index.
531         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
532         (create_params_index): Pass level to save_clast_name_index.
533
534 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
535
536         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
537         recompute type, lb, and ub.  Get them from...
538         (graphite_create_new_loop_guard): ...here.  Pass in parameter
539         pointers to type, lb, and ub.
540         (translate_clast_for_loop): Update function calls.
541         (translate_clast_for): Same.
542
543 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
544
545         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
546         psct_dynamic_dim.
547         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
548         (gcc_type_for_iv_of_clast_loop): Update use of level.
549         (gloog): Start counting nesting level from 0.
550         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
551         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
552         psct_dynamic_dim on level.
553
554 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
555
556         * config/i386/i386.c (ix86_legitimize_address): Convert to
557         Pmode if needed.
558
559 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
560
561         * config/i386/i386.c (function_value_64): Always return pointers
562         in Pmode.
563         (ix86_promote_function_mode): New.
564         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
565
566 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
567
568         PR tree-optimization/49749
569         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
570         remove no-longer-used maxrank variable.
571
572 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
573
574         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
575
576 2011-07-21  Jason Merrill  <jason@redhat.com>
577
578         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
579         * recog.h (struct insn_data_d): Check it instead of
580         HAVE_DESIGNATED_INITIALIZERS.
581         * genoutput.c (output_insn_data): Likewise.
582
583 2011-07-21  Richard Guenther  <rguenther@suse.de>
584
585         PR tree-optimization/49770
586         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
587         valueized any operand.  Renamed from ...
588         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
589         (valueize_shared_reference_ops_from_ref): Return whether we
590         valueized any operand.
591         (vn_reference_lookup): Only when we valueized any operand
592         use the valueized reference for alias analysis.  Do not preserve
593         the original reference tree in this case.
594
595 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
596
597         * config/i386/i386.c (ix86_decompose_address): Reject all but
598         register operands and subregs of DImode hard registers in index.
599
600 2011-07-21  Kai Tietz  <ktietz@redhat.com>
601
602         * fold-const.c (fold_unary_loc): Preserve indirect
603         comparison cast to none-boolean type.
604         * tree-ssa.c (useless_type_conversion_p): Preserve cast
605         from/to boolean-type.
606         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
607         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
608         * tree-cfg.c (verify_gimple_comparison): Check result
609         type of comparison expression.
610         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
611         of condition result and disallow type-cast sinking into comparison.
612
613 2011-07-21  Richard Guenther  <rguenther@suse.de>
614
615         * tree-ssa-forwprop.c (combine_conversions): Return whether
616         we have to run cfg-cleanup.  Properly remove dead stmts.
617         (ssa_forward_propagate_and_combine): Adjust.
618
619 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
620
621         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
622
623 2011-07-21  Kai Tietz  <ktietz@redhat.com>
624
625         * tree-ssa-propagate.c (substitute_and_fold): Use
626         do_dce flag to deside, if BB's statements are scanned
627         in last to first, or first to last order.
628
629 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
630
631         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
632
633 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
634             Uros Bizjak  <ubizjak@gmail.com>
635             Richard Henderson  <rth@redhat.com>
636
637         * config/i386/constraints.md (w): New.
638
639         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
640         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
641
642         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
643         instead of TARGET_64BIT.
644
645         * config/i386/i386.md (indirect_jump): Replace
646         nonimmediate_operand with indirect_branch_operand.
647         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
648         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
649         Convert operand 0 to Pmode for x32 if not PIC.
650         (*tablejump_1): Replace nonimmediate_operand with
651         indirect_branch_operand.  Replace constraint "m" with "w".
652         (*call_vzeroupper): Replace constraint "m" with "w".
653         (*call): Likewise.
654         (*call_rex64_ms_sysv_vzeroupper): Likewise.
655         (*call_rex64_ms_sysv): Likewise.
656         (*call_value_vzeroupper): Likewise.
657         (*call_value): Likewise.
658         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
659         (*call_value_rex64_ms_sysv): Likewise.
660         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
661
662         * config/i386/predicates.md (indirect_branch_operand): New.
663         (call_insn_operand): Support x32.
664
665 2011-07-20  Michael Eager  <eager@eagercon.com>
666
667         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
668
669 2011-07-20  Richard Henderson  <rth@redhat.com>
670
671         * cfg.c (dump_bb_info): Dump basic_block->flags.
672         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
673
674 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
675
676         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
677         of DImode hard registers in index.
678         (ix86_legitimate_address_p): Allow subregs of base and index to span
679         more than a word.  Assert that subregs of base and index satisfy
680         register_no_elim_operand predicates.  Reject addresses where
681         base and index have different modes.
682
683 2011-07-20  Robert Millan  <rmh@gnu.org>
684
685         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
686
687 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
688
689         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
690         removing now-unnecessary assignment.
691
692 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
693
694         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
695         memory address space to the type's address space.
696
697 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
698
699         PR target/36467
700         PR target/49687
701         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
702         and expand appropriately if there is a CONST_INT in operand2.
703         (usmulqihi3): New insn.
704         (*sumulqihi3): New insn.
705         (*osmulqihi3): New insn.
706         (*oumulqihi3): New insn.
707         (*muluqihi3.uconst): New insn_and_split.
708         (*muluqihi3.sconst): New insn_and_split.
709         (*mulsqihi3.sconst): New insn_and_split.
710         (*mulsqihi3.uconst): New insn_and_split.
711         (*mulsqihi3.oconst): New insn_and_split.
712         (*ashifthi3.signx.const): New insn_and_split.
713         (*ashifthi3.signx.const7): New insn_and_split.
714         (*ashifthi3.zerox.const): New insn_and_split.
715         (mulsqihi3): New insn.
716         (muluqihi3): New insn.
717         (muloqihi3): New insn.
718         * config/avr/predicates.md (const_2_to_7_operand): New.
719         (const_2_to_6_operand): New.
720         (u8_operand): New.
721         (s8_operand): New.
722         (o8_operand): New.
723         (s9_operand): New.
724         (register_or_s9_operand): New.
725
726 2011-07-20  Kai Tietz  <ktietz@redhat.com>
727
728         * builtins.c (fold_builtin_expect): See through the cast
729         from truthvalue_type_node to long.
730
731 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
732
733         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
734         where we can use them from the standard and altivec instruction
735         sets, instead of always using the 3 operand VSX forms that require
736         the destination to overlap one of the inputs.
737         (vsx_fms*): Ditto.
738         (vsx_fnma*): Ditto.
739         (vsx_fnms*): Ditto.
740
741         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
742         for DF types.
743         (fmsdf4_fpr): Ditto.
744         (nfmadf4_fpr): Ditto.
745         (nfmsdf4_fpr): Ditto.
746
747 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
748
749         * genrecog.c (make_insn_sequence): Correct position numbering
750         when filtering out match_scratch and match_dup.
751
752 2011-07-20  Richard Guenther  <rguenther@suse.de>
753
754         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
755         against already removed statements.
756         (forward_propagate_into_comparison): Remove dead defining stmts.
757         (forward_propagate_into_gimple_cond): Likewise.
758         (forward_propagate_into_cond): Simplify.
759         (ssa_forward_propagate_and_combine): Handle changed cfg from
760         forward_propagate_into_comparison.
761         * tree-ssa-phiopt.c (conditional_replacement): Use proper
762         locations for newly built statements.
763
764 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
765
766         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
767
768 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
769
770         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
771         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
772
773 2011-07-20  Richard Guenther  <rguenther@suse.de>
774
775         PR middle-end/18908
776         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
777         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
778         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
779
780 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
781
782         * config/frv/frv.c (frv_register_move_cost): Define explicitly
783         costs for subclasses of GR_REGS.
784
785 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
786
787         PR target/49780
788         * config/i386/predicates.md (no_seg_addres_operand): No more special.
789         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
790         of DImode hard registers in base.
791         (ix86_legitimate_address_p): Allow SImode and DImode base and index
792         registers.
793
794 2011-07-20  Richard Guenther  <rguenther@suse.de>
795
796         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
797         (unify_nodes): Deal with that.
798         (solve_graph): Likewise.
799
800 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
801
802         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
803         canonicalize left operand from ZERO_EXTEND to AND.
804
805 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
806
807         * target.def (class_max_nregs): New hook.
808         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
809         * doc/tm.texi: Regenerate.
810         * targhooks.c (default_class_max_nregs): New function.
811         * targhooks.h (default_class_max_nregs): Declare.
812         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
813         x_ira_reg_class_min_nregs arrays to unsigned char.
814         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
815         hook instead of CLASS_MAX_NREGS macro.
816         * reginfo.c (restore_register_info): Ditto.
817         * ira-conflicts.c (process_regs_for_copy): Use
818         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
819         Change type rclass and aclass vars to reg_class_t.
820         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
821         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
822         reg_class_t.
823         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
824         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
825
826         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
827         * config/i386/i386.c (ix86_class_max_nregs): New function.
828         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
829         instead of CLASS_MAX_NREGS macro.
830         (TARGET_CLASS_MAX_NREGS): Define.
831         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
832         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
833         * config/avr/avr.c (class_max_nregs): Remove function.
834         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
835         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
836         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
837         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
838         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
839         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
840         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
841         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
842         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
843         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
844         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
845         * config/score/score.h (CLASS_MAX_NREGS): Remove.
846         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
847         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
848         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
849
850 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
851
852         * cif-code.def (OVERWRITABLE): Fix typo and move around.
853         (TARGET_OPTIMIZATION_MISMATCH): Delete.
854         (EH_PERSONALITY): Fix typo.
855         (NON_CALL_EXCEPTIONS): Fix message.
856         (OPTIMIZATION_MISMATCH): Adjust message.
857         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
858
859 2011-07-19  Ian Lance Taylor  <iant@google.com>
860
861         * doc/install.texi (Configuration): Document
862         --enable-build-poststage1-with-cxx.
863
864 2011-07-19  Robert Millan  <rmh@gnu.org>
865
866         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
867         (GLIBC_DYNAMIC_LINKER): Remove.
868
869         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
870         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
871         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
872         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
873         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
874         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
875
876         * config/mips/linux.h: Remove everything except for ...
877         (GLIBC_DYNAMIC_LINKER): ... this macro.
878
879         * config/mips/linux64.h: Remove everything except for ...
880         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
881         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
882         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
883         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
884         (GNU_USER_LINK_EMULATIONN32): New macros.
885
886         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
887         Use the new headers.
888
889 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
890
891         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
892         Add offset_known_p and size_known_p fields.
893         (MEM_OFFSET_KNOWN_P): Update accordingly.
894         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
895         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
896         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
897         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
898         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
899         (init_emit_regs): Likewise.
900
901 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
902
903         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
904         (MEM_OFFSET): Change from returning an rtx to returning a
905         HOST_WIDE_INT.
906         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
907         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
908         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
909         (clear_mem_offset): Declare.
910         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
911         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
912         MEM_OFFSET to get a HOST_WIDE_INT offset.
913         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
914         (adjust_offset_for_component_ref): Take a bool "known_p"
915         parameter and a HOST_WIDE_INT "offset" parameter.
916         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
917         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
918         than an rtx.  Use clear_mem_offset to clear the offset.
919         * cfgcleanup.c (merge_memattrs): Likewise.
920         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
921         * function.c (assign_parm_find_stack_rtl): Likewise.
922         (assign_parm_setup_stack): Likewise.
923         * print-rtl.c (print_rtx): Likewise.
924         * reload.c (find_reloads_subreg_address): Likewise.
925         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
926         * var-tracking.c (INT_MEM_OFFSET): Likewise.
927         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
928         (get_mem_align_offset): Likewise.
929         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
930         (clear_mem_offset): New function.
931         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
932         offset rather than an rtx.  Assume both the expressio and offset
933         are available.
934         (r10k_needs_protection_p_1): Update accordingly, checking the
935         expression and offset availability here instead.
936
937 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
938
939         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
940         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
941         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
942         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
943         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
944         (clear_mem_size): Declare.
945         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
946         (clear_mem_size): New function.
947         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
948         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
949         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
950         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
951         to clear the size.
952         (nonoverlapping_memrefs_p): Likewise.
953         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
954         (expand_builtin_init_trampoline): Likewise.
955         * calls.c (compute_argument_addresses): Likewise.
956         * cfgcleanup.c (merge_memattrs): Likewise.
957         * dce.c (find_call_stack_args): Likewise.
958         * dse.c (record_store, scan_insn): Likewise.
959         * dwarf2out.c (dw_sra_loc_expr): Likewise.
960         * expr.c (emit_block_move_hints): Likewise.
961         * function.c (assign_parm_find_stack_rtl): Likewise.
962         * print-rtl.c (print_rtx): Likewise.
963         * reload.c (find_reloads_subreg_address): Likewise.
964         * rtlanal.c (may_trap_p_1): Likewise.
965         * var-tracking.c (track_expr_p): Likewise.
966         * varasm.c (assemble_trampoline_template): Likewise.
967         * config/arm/arm.c (arm_print_operand): Likewise.
968         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
969         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
970         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
971         (expand_constant_setmem_prologue): Likewise.
972         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
973         * config/rs6000/rs6000.c (expand_block_move): Likewise.
974         (adjacent_mem_locations): Likewise.
975         * config/s390/s390.c (s390_expand_setmem): Likewise.
976         (s390_expand_insv): Likewise.
977         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
978         (*extendqi<mode>2_short_displ): Likewise.
979         * config/sh/sh.c (expand_block_move): Likewise.
980         * config/sh/sh.md (extv, extzv): Likewise.
981
982 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
983
984         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
985         (mem_attrs_htab_eq): ...here.
986         (find_mem_attrs): Replace with...
987         (set_mem_attrs): ...this function.  Take a mem_attrs structure
988         rather than individual fields.
989         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
990         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
991         (set_mem_size, change_address, adjust_address_1, offset_address)
992         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
993         Update accordingly.
994
995 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
996
997         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
998         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
999         Provide a dummy definition of MEM_ADDR_SPACE for generators.
1000         (target_rtl): Add x_mode_mem_attrs.
1001         (mode_mem_attrs): New macro.
1002         (get_mem_attrs): New function.
1003         * emit-rtl.c (get_mem_attrs): Rename to...
1004         (find_mem_attrs): ...this.
1005         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
1006         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
1007         (set_mem_size, change_address, adjust_address_1, offset_address)
1008         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
1009         Update accordingly.
1010         (init_emit_regs): Initialize mode_mem_attrs.
1011
1012 2011-07-19  Richard Guenther  <rguenther@suse.de>
1013
1014         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
1015         TRUTH_*_EXPR handling.
1016         * tree-ssa-operands.c (get_expr_operands): Likewise.
1017         * tree-ssa-pre.c (fully_constant_expression): Likewise.
1018         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
1019         Likewise.
1020         (is_and_or_or): Likewise.
1021         (is_norm_cond_subset_of): Likewise.
1022
1023 2011-07-19  Richard Guenther  <rguenther@suse.de>
1024
1025         * tree.h (fold_build_pointer_plus_loc): New helper function.
1026         (fold_build_pointer_plus_hwi_loc): Likewise.
1027         (fold_build_pointer_plus): Define.
1028         (fold_build_pointer_plus_hwi): Likewise.
1029         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
1030         (fold_builtin_memory_op): Likewise.
1031         (fold_builtin_stpcpy): Likewise.
1032         (fold_builtin_memchr): Likewise.
1033         (fold_builtin_strstr): Likewise.
1034         (fold_builtin_strchr): Likewise.
1035         (fold_builtin_strrchr): Likewise.
1036         (fold_builtin_strpbrk): Likewise.
1037         (fold_builtin_strcat): Likewise.
1038         (expand_builtin_memory_chk): Likewise.
1039         (fold_builtin_memory_chk): Likewise.
1040         * c-typeck.c (build_unary_op): Likewise.
1041         * cgraphunit.c (thunk_adjust): Likewise.
1042         * fold-const.c (build_range_check): Likewise.
1043         (fold_binary_loc): Likewise.
1044         * omp-low.c (extract_omp_for_data): Likewise.
1045         (expand_omp_for_generic): Likewise.
1046         (expand_omp_for_static_nochunk): Likewise.
1047         (expand_omp_for_static_chunk): Likewise.
1048         * tree-affine.c (add_elt_to_tree): Likewise.
1049         * tree-data-ref.c (split_constant_offset_1): Likewise.
1050         * tree-loop-distribution.c (generate_memset_zero): Likewise.
1051         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
1052         * tree-predcom.c (ref_at_iteration): Likewise.
1053         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1054         (add_to_parts): Likewise.
1055         (create_mem_ref): Likewise.
1056         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1057         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
1058         (number_of_iterations_le): Likewise.
1059         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
1060         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
1061         (vect_create_addr_base_for_vector_ref): Likewise.
1062         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
1063         (vect_create_cond_for_alias_checks): Likewise.
1064         * tree-vrp.c (extract_range_from_assert): Likewise.
1065         * config/alpha/alpha.c (alpha_va_start): Likewise.
1066         (alpha_gimplify_va_arg_1): Likewise.
1067         * config/i386/i386.c (ix86_va_start): Likewise.
1068         (ix86_gimplify_va_arg): Likewise.
1069         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1070         * config/mep/mep.c (mep_expand_va_start): Likewise.
1071         (mep_gimplify_va_arg_expr): Likewise.
1072         * config/mips/mips.c (mips_va_start): Likewise.
1073         (mips_gimplify_va_arg_expr): Likewise.
1074         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1075         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
1076         (rs6000_gimplify_va_arg): Likewise.
1077         * config/s390/s390.c (s390_va_start): Likewise.
1078         (s390_gimplify_va_arg): Likewise.
1079         * config/sh/sh.c (sh_va_start): Likewise.
1080         (sh_gimplify_va_arg_expr): Likewise.
1081         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1082         * config/spu/spu.c (spu_va_start): Likewise.
1083         (spu_gimplify_va_arg_expr): Likewise.
1084         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1085         Likewise.
1086         (xstormy16_gimplify_va_arg_expr): Likewise.
1087         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
1088         (xtensa_gimplify_va_arg_expr): Likewise.
1089
1090 2011-07-19  Richard Guenther  <rguenther@suse.de>
1091
1092         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
1093         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
1094         handling.
1095
1096         PR middle-end/18908
1097         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
1098         result of BIT_*_EXPR to bitfield precision.
1099
1100 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
1101
1102         PR tree-optimization/49742
1103         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
1104         as a potential write.
1105
1106 2011-07-19  Richard Guenther  <rguenther@suse.de>
1107
1108         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
1109         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
1110         (forward_propagate_comparison): Simplify, remove obsolete code.
1111
1112 2011-07-19  Richard Guenther  <rguenther@suse.de>
1113
1114         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
1115         BIT_XOR_EXPR, same as the RTL expander does.
1116         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
1117         (verify_gimple_assign_unary): Likewise.
1118         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
1119         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
1120         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
1121
1122 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
1123
1124         PR tree-optimization/49768
1125         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
1126         if offset is smaller than bitoffset, but offset+size is bigger
1127         than bitoffset.
1128
1129 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
1130
1131         PR tree-optimization/49771
1132         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
1133         zero step, set segment length to the size of the data-ref's type.
1134
1135 2011-07-18  Martin Jambor  <mjambor@suse.cz>
1136
1137         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
1138         comments.
1139         (ipcp_values_pool): Declare.
1140         (ipcp_sources_pool): Likewise.
1141         (ipcp_lattice): Changed to forward declaration.
1142         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
1143         cannot_devirtualize.
1144         (ipa_node_params): New fields descriptors, lattices, known_vals,
1145         clone_for_all_contexts and node dead, removed fields params and
1146         count_scale.
1147         (ipa_set_param_count): Removed.
1148         (ipa_get_param_count): Made to work with descriptors vector.
1149         (ipa_get_param): Updated.
1150         (ipa_param_cannot_devirtualize_p): Removed.
1151         (ipa_param_types_vec_empty): Likewise.
1152         (ipa_set_param_used): New function.
1153         (ipa_get_param_used): Updated to use descriptors vector.
1154         (ipa_func_list): Removed.
1155         (ipa_init_func_list): Removed declaration.
1156         (ipa_push_func_to_list_1): Likewise.
1157         (ipa_pop_func_from_list): Likewise.
1158         (ipa_push_func_to_list): Removed.
1159         (ipa_lattice_from_jfunc): Remove declaration.
1160         (ipa_get_jf_pass_through_result): Declare.
1161         (ipa_get_jf_ancestor_result): Likewise.
1162         (ipa_value_from_jfunc): Likewise.
1163         (ipa_get_lattice): Update.
1164         (ipa_lat_is_single_const): New function.
1165         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
1166         (ipa_init_func_list): Likewise.
1167         (ipa_pop_func_from_list): Likewise.
1168         (ipa_get_param_decl_index): Fix coding style.
1169         (count_formal_params): Removed.
1170         (count_formal_params_1): Renamed to count_formal_params.
1171         (ipa_populate_param_decls): Update to use descriptors vector.
1172         (ipa_initialize_node_params): Likewise.
1173         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
1174         (ipa_analyze_params_uses): Likewise.
1175         (ipa_free_node_params_substructures): Likewise and free also lattices
1176         and known values.
1177         (duplicate_array): Removed.
1178         (ipa_edge_duplication_hook): Add the new edge to the list of edge
1179         clones.
1180         (ipa_node_duplication_hook): Update to use new lattices.
1181         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
1182         (ipa_free_all_structures_after_iinln): Likewise.
1183         (ipa_write_node_info): Update to use new lattices.
1184         (ipa_read_node_info): Likewise.
1185         (ipa_get_jf_pass_through_result): New function.
1186         (ipa_get_jf_ancestor_result): Likewise.
1187         (ipa_value_from_jfunc): Likewise.
1188         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
1189         * ipa-cp.c: Reimplemented.
1190         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
1191         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
1192         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
1193         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
1194         * doc/invoke.texi (devirt-type-list-size): Removed description.
1195         (ipa-cp-value-list-size): Added description.
1196
1197 2011-07-18  Richard Henderson  <rth@redhat.com>
1198
1199         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
1200         before calling create_basic_block.
1201
1202 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
1203
1204         PR middle-end/49675
1205         * tree.c (build_common_builtin_nodes): Register
1206         __builtin_return_address, __cyg_profile_func_enter
1207         and __cyg_profile_func_exit.
1208
1209 2011-07-18  Richard Henderson  <rth@redhat.com>
1210
1211         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
1212         (add_labels_and_missing_jumps): ... here.
1213         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
1214
1215 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
1216
1217         PR target/47744
1218         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1219         of DImode hard registers in PLUS address chains.
1220
1221 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1222
1223         PR bootstrap/49769
1224         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
1225         (alpha*-*-freebsd*): Likewise.
1226         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1227         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1228         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
1229         crtprec80.o, crtfastmath.o to extra_parts for all targets.
1230         (ia64*-*-elf*): Remove extra_parts.
1231         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
1232         (sparc64-*-linux*): Likewise.
1233         (sparc64-*-freebsd*): Likewise.
1234
1235         Revert:
1236         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
1237         (ia64*-*-linux*): Likewise.
1238         (mips64*-*-linux*): Likewise.
1239         (mips*-*-linux*): Likewise.
1240
1241 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
1242
1243         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
1244
1245 2011-07-18  Richard Guenther  <rguenther@suse.de>
1246
1247         * gimplify.c (gimplify_expr): Use input_location, not saved_location
1248         when building new trees.
1249
1250 2011-07-18  Richard Guenther  <rguenther@suse.de>
1251
1252         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
1253         expansion result to bitfield precision if required.
1254
1255 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1256
1257         * config.gcc (i[3456x]86-*-netware*): Remove.
1258
1259         * gthr-nks.h: Remove.
1260         * configure.ac (enable_threads): Remove nks.
1261         * configure: Regenerate.
1262
1263         * config/i386/i386.c (ix86_encode_section_info): Remove netware
1264         reference.
1265         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
1266         <netware.h> reference.
1267
1268         * config/i386/netware-libgcc.c,
1269         gcc/config/i386/netware-libgcc.def,
1270         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
1271         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
1272         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
1273         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
1274
1275         * doc/extend.texi (Function Attributes,
1276         callee_pop_aggregate_return): Remove i?86-netware reference.
1277         * doc/install.texi (Configuration, --enable-threads): Remove nks.
1278
1279 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1280
1281         PR target/49746
1282         Revert:
1283         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1284
1285         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1286         patterns.
1287
1288 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
1289
1290         PR middle-end/49732
1291         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1292
1293 2011-07-16  Matthias Klose  <doko@ubuntu.com>
1294
1295         * doc/install.texi: Document --enable-static-libjava.
1296
1297 2011-07-15  Richard Henderson  <rth@redhat.com>
1298
1299         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1300         Replace all three arguments by returning a VEC of edges.
1301         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
1302         pointers and counts.
1303         (fix_edges_for_rarely_executed_code): Merge ...
1304         (rest_of_handle_partition_blocks): ... into...
1305         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
1306         any work was performed.
1307         (pass_partition_blocks): Clear todo_flags_finish.
1308
1309 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
1310             Jakub Jelinek  <jakub@redhat.com>
1311             Jonathan Wakely  <jwakely.gcc@gmail.com>
1312
1313         PR libstdc++/49745
1314         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
1315         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
1316
1317 2011-07-15  Jason Merrill  <jason@redhat.com>
1318
1319         PR testsuite/49741
1320         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
1321         rather than --tool_opts.
1322
1323 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
1324
1325         * doc/plugins.texi (Building GCC plugins): gengtype needs its
1326         corresponding gtype.state.
1327
1328 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1329
1330         PR target/49723
1331         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1332
1333 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1334
1335         PR target/48220
1336         * doc/md.texi (Standard Names): Document window_save.
1337         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
1338         expand_debug_expr and expand_debug_source_expr.  If the target has
1339         a window_save instruction, adjust the ENTRY_VALUE_EXP.
1340         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
1341         SSA_NAME_VAR is a parameter.
1342         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
1343         * var-tracking.c (parm_reg_t): New type and associated vector type.
1344         (windowed_parm_regs): New variable.
1345         (adjust_insn): If the target has a window_save instruction and this
1346         is the instruction, make its effect on parameter registers explicit.
1347         (next_non_note_insn_var_location): New function.
1348         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
1349         (vt_add_function_parameter): If the target has a window_save insn,
1350         adjust the incoming RTL and record that in windowed_parm_regs.
1351         (vt_finalize): Free windowed_parm_regs.
1352
1353 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
1354
1355         * doc/invoke.texi (C6X Options): New section.
1356         * doc/md.texi (TI C6X family): New section.
1357         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
1358         tic6x-*-uclinux.
1359         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
1360         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
1361         Provide C6X definitions.
1362         * config/c6x/c6x.md: New file.
1363         * config/c6x/constraints.md: New file.
1364         * config/c6x/predicates.md: New file.
1365         * config/c6x/c6x-sched.md.in: New file.
1366         * config/c6x/c6x-sched.md: New file.
1367         * config/c6x/gensched.sh: New file.
1368         * config/c6x/c6x-mult.md.in: New file.
1369         * config/c6x/genmult.sh: New file.
1370         * config/c6x/c6x-mult.md: New file.
1371         * config/c6x/sync.md: New file.
1372         * config/c6x/c6x-protos.h: New file.
1373         * config/c6x/sfp-machine.h: New file.
1374         * config/c6x/c6x.c: New file.
1375         * config/c6x/c6x.h: New file.
1376         * config/c6x/crti.s: New file.
1377         * config/c6x/crtn.s: New file.
1378         * config/c6x/lib1funcs.asm: New file.
1379         * config/c6x/c6x-modes.def: New file.
1380         * config/c6x/genopt.sh: New file.
1381         * config/c6x/c6x.opt: New file.
1382         * config/c6x/c6x-tables.opt: New file.
1383         * config/c6x/c6x-opts.h: New file.
1384         * config/c6x/c6x-isas.def: New file.
1385         * config/c6x/elf.h: New file.
1386         * config/c6x/elf-common.h: New file.
1387         * config/c6x/uclinux-elf.h: New file.
1388         * config/c6x/t-c6x: New file.
1389         * config/c6x/t-c6x-elf: New file.
1390         * config/c6x/t-c6x-uclinux: New file.
1391         * config/c6x/t-c6x-softfp: New file.
1392         * config/c6x/gtd.c: New file.
1393         * config/c6x/gtf.c: New file.
1394         * config/c6x/ltd.c: New file.
1395         * config/c6x/ltf.c: New file.
1396         * config/c6x/ged.c: New file.
1397         * config/c6x/gef.c: New file.
1398         * config/c6x/led.c: New file.
1399         * config/c6x/lef.c: New file.
1400         * config/c6x/eqd.c: New file.
1401         * config/c6x/eqf.c: New file.
1402         * config/c6x/libgcc-c6xeabi.ver: New file.
1403
1404         Revert
1405         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
1406         PR rtl-optimization/11320
1407         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1408         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1409         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1410         current_sched_info->compute_jump_reg_dependencies. Record which
1411         registers are used and which registers are set by the jump.
1412         Clear deps->reg_conditional_sets after a barrier.
1413         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1414         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1415         (init_deps): Initialize reg_conditional_sets.
1416         (free_deps): Clear reg_conditional_sets.
1417         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1418         Mark registers live on entry of the fallthrough block and conditionally
1419         set as set by the jump. Mark registers live on entry of non-fallthrough
1420         blocks as used by the jump.
1421         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1422         Mark new parameters as unused.
1423
1424 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
1425
1426         PR tree-opt/49309
1427         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1428         Use fold_build2_loc instead of build2.
1429         Use the correct type for the new tree.
1430
1431 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1432
1433         PR rtl-optimization/11320
1434         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
1435         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
1436
1437 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
1438
1439         PR target/49487
1440         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1441         of REG.
1442         (*rotw<mode>): Use const_int_operand for operand2.
1443         Use match_scatch for operand3.
1444         (*rotb<mode>): Ditto
1445         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1446
1447 2011-07-14  Richard Guenther  <rguenther@suse.de>
1448
1449         PR tree-optimization/49651
1450         * tree-ssa-structalias.c (get_constraint_for_1): Properly
1451         handle dereferences with subvariables.
1452
1453 2011-07-14  Richard Guenther  <rguenther@suse.de>
1454
1455         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
1456         (fold_stmt_1): Do it here directly on gimple and as a first thing.
1457
1458 2011-07-14  Richard Guenther  <rguenther@suse.de>
1459
1460         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
1461         not bool_var when folding bool_var != 1 or bool_var == 0.
1462
1463 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1464
1465         * haifa-sched.c (schedule_insns): Remove outdated comment.
1466         (schedule_block): When computing a known value for TODO_SPEC,
1467         just set it rather than using logical operations.
1468         (try_ready): Likewise.  Use a local variable rather than a
1469         pointer to TODO_SPEC.  Reorder an if statement to move the
1470         easy case to the then block.
1471         * sched-deps.c (dep_spec_p): New static function.
1472         (update_dep): Use it to decide whether to call
1473         change_spec_dep_to_hard.
1474         (get_back_and_forw_lists): Use it.
1475         (sd_resolve_dep): Likewise.
1476         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
1477         (haifa_note_mem_dep): Likewise.
1478         (check_dep): Likewise.
1479         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
1480         (sched_free_deps): Free in two passes.
1481
1482 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
1483
1484         PR middle-end/49736
1485         * expr.c (all_zeros_p): Undo bogus part of last change.
1486
1487 2011-07-14  Matthias Klose <doko@ubuntu.com>
1488
1489         * doc/extend.texi (optimize attribute): Fix typo.
1490
1491 2011-07-14  Richard Guenther  <rguenther@suse.de>
1492
1493         * gimplify.c (gimplify_expr): Only do required conversions.
1494
1495 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
1496
1497         PR target/43746
1498         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
1499         i.e. use default_elf_select_section.
1500         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
1501         (READONLY_DATA_SECTION_ASM_OP): Remove.
1502         (TARGET_ASM_NAMED_SECTION): Move from here...
1503         * config/avr/avr.c: ...to here.
1504         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
1505         (avr_asm_named_section): Make static.
1506
1507 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1508
1509         PR bootstrap/49739
1510         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
1511         and crtfastmath.o for Linux/x86.
1512
1513 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1514
1515         * haifa-sched.c: Include "hashtab.h"
1516         (sched_no_dce): New global variable.
1517         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
1518         SHADOW_P): New macros.
1519         (last_clock_var, cycle_issued_insns): Move declarations.
1520         (must_backtrack): New static variable.
1521         (struct delay_pair): New structure.
1522         (delay_htab, delay_htab_i2): New static variables.
1523         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
1524         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
1525         functions.
1526         (dep_cost_1): If delay pairs exist, try to look up the insns and
1527         use the correct pair delay if we find them.
1528         (rank-for_schedule): Tweak priority for insns that must be scheduled
1529         soon to avoid backtracking.
1530         (queue_insn): Detect conditions which force backtracking.
1531         (ready_add): Likewise.
1532         (struct sched_block_state): Add member shadows_only_p.
1533         (struct haifa_save_data): New structure.
1534         (backtrack_queue): New static variable.
1535         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
1536         unschedule_insns_until, restore_last_backtrack_point,
1537         free_topmost_backtrack_point, free_backtrack_queue,
1538         estimate_insn_tick, estimate_shadow_tick): New functions.
1539         (prune_ready_list): New arg shadows_only_p.  All callers changed.
1540         If true, remove everything that isn't SHADOW_P.  Look up delay
1541         pairs and estimate ticks to avoid scheduling the first insn too early.
1542         (verify_shadows): New function.
1543         (schedule_block): Add machinery to enable backtracking.
1544         (sched_init): Take sched_no_dce into account when setting
1545         DF_LR_RUN_DCE.
1546         (free_delay_pairs): New function.
1547         (init_h_i_d): Initialize INSN_EXACT_TICK.
1548         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
1549         * sched-deps.c (sd_unresolve_dep): New function.
1550         * sched-int. (struct haifa_sched_info): New fields save_state
1551         and restore_state.
1552         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
1553         feeds_backtrack_insn and shadow_p.
1554         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
1555         (sched_no_dce): Declare variable.
1556         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
1557         sd_unresolve_dep): Declare functions.
1558         * modulo-sched.c (sms_sched_info): Clear the two new fields.
1559         * sched-rgn.c (rgn_const_sched_info): Likewise.
1560         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1561         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
1562         (ebb_sched_info): Add them for the two new fields.
1563         (add_deps_for_risky_insns): Call add_delay_dependencies.
1564
1565 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1566
1567         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
1568         Rename -mr11.
1569         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
1570         (rs6000_call_indirect_aix): Ditto.
1571         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
1572         (call_indirect_aix<ptrsize>_internal): Ditto.
1573         (call_indirect_aix<ptrsize>_nor11): Ditto.
1574         (call_indirect_aix<ptrsize>_internal2): Ditto.
1575         (call_value_indirect_aix<ptrsize>): Ditto.
1576         (call_value_indirect_aix<ptrsize>_internal): Ditto.
1577         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1578         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1579         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
1580
1581 2011-07-13  Jason Merrill  <jason@redhat.com>
1582
1583         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
1584
1585 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1586
1587         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
1588         * config/spu/spu.md ("clrsb<mode>2"): New expander.
1589
1590 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
1591
1592         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
1593         * configure: Regenerate.
1594
1595 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1596
1597         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1598         (asm_file_start): Remove.
1599         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1600         free_bb_for_insn around code that modifies insns before
1601         restarting df analysis.
1602
1603 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1604
1605         PR target/49541
1606         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
1607         (LINK_SPEC): ... here.
1608
1609 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1610
1611         * haifa-sched.c (struct sched_block_state): New.
1612         (schedule_block): Move some local variables into such a structure.
1613
1614 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1615
1616         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
1617         * config/i386/t-crtpc: Remove.
1618         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1619         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
1620         tmake_file.
1621         (x86_64-*-darwin*): Likewise.
1622         (i[34567]86-*-linux*): Likewise.
1623         (x86_64-*-linux*): Likewise.
1624
1625         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1626         Handle -mpc32, -mpc64, -mpc80.
1627
1628 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1629
1630         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1631         * config/alpha/t-crtfm: Remove.
1632         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1633         * config/i386/t-crtfm: Remove.
1634         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1635         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1636         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1637         * config/sparc/t-crtfm: Remove.
1638
1639         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1640         (alpha*-*-freebsd*): Likewise.
1641         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1642         (x86_64-*-darwin*): Likewise.
1643         (i[34567]86-*-linux*): Likewise.
1644         (x86_64-*-linux*): Likewise.
1645         (x86_64-*-mingw*): Likewise.
1646         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1647         (ia64*-*-freebsd*): Likewise.
1648         (ia64*-*-linux*): Likewise.
1649         (mips64*-*-linux*): Likewise.
1650         (mips*-*-linux*): Likewise.
1651         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1652         (sparc64-*-linux*): Likewise.
1653         (sparc64-*-freebsd*): Likewise.
1654
1655 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1656
1657         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1658         * config/darwin-crt3.c: Move to ../libgcc/config.
1659         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1660         ($(T)crt3$(objext)): Remove.
1661         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1662         ($(T)crt2$(objext)): Remove.
1663         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1664         (powerpc64-*-darwin*): Likewise.
1665
1666 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1667
1668         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1669
1670         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1671         (addsi_1_zext): This.
1672
1673 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1674
1675         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1676         * doc/tm.texi: Regenerate.
1677         * target.def (mergeable_rodata_prefix): New defhookpod.
1678         * varasm.c (mergeable_string_section, mergeable_constant_section):
1679         Use it. Allocate name with alloca.
1680
1681 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1682
1683         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1684
1685 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1686
1687         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1688         overlap check.
1689
1690 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
1691
1692         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
1693         (count_type_elements): Delete.
1694         (complete_ctor_at_level_p): Declare.
1695         * expr.c (flexible_array_member_p): New function, split out from...
1696         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
1697         parameter with for_ctor_p.  When for_ctor_p is true, return the
1698         number of elements that should appear in the top-level constructor,
1699         otherwise return an estimate of the number of scalars.
1700         (categorize_ctor_elements): Replace p_must_clear with p_complete.
1701         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
1702         (complete_ctor_at_level_p): New function, borrowing union logic
1703         from old categorize_ctor_elements_1.
1704         (mostly_zeros_p): Return true if the constructor is not complete.
1705         (all_zeros_p): Update call to categorize_ctor_elements.
1706         * gimplify.c (gimplify_init_constructor): Update call to
1707         categorize_ctor_elements.  Don't call count_type_elements.
1708         Unconditionally prevent clearing for variable-sized types,
1709         otherwise rely on categorize_ctor_elements to detect
1710         incomplete initializers.
1711
1712 2011-07-13  Richard Guenther  <rguenther@suse.de>
1713
1714         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1715         the final type is integral.
1716
1717 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
1718
1719         * sched-int.h (struct _dep): Add member cost.
1720         (DEP_COST, UNKNOWN_DEP_COST): New macros.
1721         * sched-deps.c (init_dep_1): Initialize DEP_COST.
1722         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1723         (sched_change_pattern): Reset it for dependent insns.
1724
1725 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1726
1727         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1728         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1729         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1730         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1731         (CRT0_S, MCRT0_S): Remove.
1732         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1733         Remove.
1734         (s-crt0): Remove.
1735         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1736
1737 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
1738
1739         * cse.c (insert_with_costs): Put semi-colon after empty loop body
1740         on the next line.
1741         * emit-rtl.c (push_to_sequence): Likewise.
1742         * haifa-sched.c (max_issue): Likewise.
1743         * matrix-reorg.c (add_allocation_site): Likewise.
1744         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1745         * reload.c (alternative_allows_const_pool_ref): Likewise.
1746         * sched-rgn.c (rgn_add_block): Likewise.
1747         (rgn_fix_recovery_cfg): Likewise.
1748         * tree.c (attribute_list_contained): Likewise.
1749
1750 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
1751
1752         * config/i386/i386.c: Tidy processor feature bitmasks.
1753         (m_P4_NOCONA): New.
1754
1755 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
1756
1757         PR rtl-opt/49474
1758         * cprop.c (find_implicit_sets): Correct the condition.
1759
1760 2011-07-12  Richard Henderson  <rth@redhat.com>
1761
1762         PR target/49713
1763         * dwarf2out.h (dwarf_frame_regnum): Remove.
1764         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
1765         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
1766         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1767         (execute_dwarf2_frame): Initialize them.
1768         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1769         users of the macros with the variables.
1770         (expand_builtin_dwarf_sp_column): Revert last change.
1771         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
1772         result of DWARF_FRAME_REGNUM into a local variable.
1773
1774 2011-07-12  Richard Henderson  <rth@redhat.com>
1775
1776         PR target/49714
1777         * config/i386/i386.c (x86_output_mi_thunk): Use
1778         machopic_indirect_call_target instead of machopic_indirection_name
1779         directly.
1780
1781 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
1782             Eric Botcazou  <ebotcazou@adacore.com>
1783
1784         * prefix.h: Wrap up in extern "C" block.
1785
1786 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
1787
1788         AMD bdver2 Enablement
1789         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1790         (case ${target}): Add bdver2.
1791         * config/i386/driver-i386.c (host_detect_local_cpu): Let
1792         -march=native recognize bdver2 processors.
1793         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1794         bdver2 def_and_undef
1795         * config/i386/i386.c (struct processor_costs bdver2_cost): New
1796         bdver2 cost table.
1797         (m_BDVER2): New definition.
1798         (m_AMD_MULTIPLE): Includes m_BDVER2.
1799         (initial_ix86_tune_features): Add bdver2 tuning.
1800         (processor_target_table): Add bdver2 entry.
1801         (static const char *const cpu_names): Add bdver2 entry.
1802         (ix86_option_override_internal): Add bdver2 instruction sets.
1803         (ix86_issue_rate): Add bdver2.
1804         (ix86_adjust_cost): Add bdver2.
1805         (has_dispatch): Add bdver2.
1806         * config/i386/i386.h (TARGET_BDVER2): New definition.
1807         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1808         (enum processor_type): Add PROCESSOR_BDVER2.
1809         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1810         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1811         description.
1812
1813 2011-07-12  Richard Henderson  <rth@redhat.com>
1814
1815         PR target/49714
1816         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1817         destination address in memory on some paths.
1818
1819 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
1820
1821         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1822         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1823         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1824         * function.c (locate_and_pad_parm): Take it into account.
1825         * target.def (function_arg_round_boundary): New hook.
1826         * targhooks.c (default_function_arg_round_boundary): New function.
1827         * targhooks.h (default_function_arg_round_boundary): Declare.
1828         * doc/tm.texi: Regenerate.
1829
1830 2011-07-12  Richard Guenther  <rguenther@suse.de>
1831
1832         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1833         Do not perform no-op changes.
1834
1835 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
1836
1837         * config/arm/predicates.md (neon_struct_operand): Make a normal
1838         predicate.
1839         (neon_struct_or_register_operand): New predicate.
1840         * config/arm/neon.md (movmisalign<mode>): Replace predicates
1841         with neon_struct_or_register_operand.
1842         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1843         neon_struct_operand instead of memory_operand.
1844
1845 2011-07-12  Martin Jambor  <mjambor@suse.cz>
1846
1847         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1848         * cgraph.c (cgraph_get_node_or_alias): Removed.
1849         (change_decl_assembler_name): Changed all calls to
1850         cgraph_get_node_or_alias to a call to cgraph_get_node.
1851         (cgraph_make_decl_local): Likewise.
1852         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1853         * varasm.c (default_binds_local_p_1): Likewise.
1854         (decl_binds_to_current_def_p): Likewise.
1855
1856 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
1857
1858         PR tree-optimization/49712
1859         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1860
1861 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
1862
1863         * genautomata.c (add_arc): Return void.  All callers changed.
1864         (make_automaton): Remove dead code.
1865
1866 2011-07-11  Richard Henderson  <rth@redhat.com>
1867
1868         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1869         (DW_FRAME_POINTER_REGNUM): New.
1870         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1871         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1872         (dwf_regno): New.
1873         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1874         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1875         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1876         Use it.
1877         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1878         * dwarf2out.h (dwarf_frame_regnum): New.
1879         (struct cfa_loc): Document the domain of the reg member.
1880
1881 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
1882
1883         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1884         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
1885
1886 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
1887
1888         PR debug/49676
1889         * dwarf2out.c (int_shift_loc_descriptor): New function.
1890         (int_loc_descriptor): If shorter, emit i as
1891         (i >> shift), shift, DW_OP_shl for suitable shift value.
1892         Similarly, try to optimize large negative values using
1893         DW_OP_neg of a positive value if shorter.
1894         (size_of_int_shift_loc_descriptor): New function.
1895         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1896         changes.
1897         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1898         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1899         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1900         is shorter.
1901         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1902         addend as added DW_OP_plus if it is shorter.
1903
1904 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1905
1906         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1907         (DTORS_SECTION_ASM_OP): Define.
1908
1909 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1910
1911         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1912         * config/t-dfprules: Move to ../libgcc/config.
1913         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1914         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1915         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1916         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1917         Likewise.
1918         (i[34567]86-*-cygwin*): Likewise.
1919         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
1920         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1921         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1922         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1923         D64PBIT_FUNCS, D128PBIT_FUNCS.
1924
1925 2011-07-11  Richard Guenther  <rguenther@suse.de>
1926
1927         * tree-vrp.c (simplify_conversion_using_ranges): Manually
1928         translate the source value-range through the conversion chain.
1929
1930 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
1931
1932         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1933
1934 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1935
1936         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1937         a bi-arch compiler defaulting to 31-bit. In this case:
1938         (tmake_file): Add s390/t-linux64.
1939         * doc/install.texi: Add s390-linux to the list of targets supporting
1940         --enable-targets=all.
1941
1942 2011-07-11  Arthur Loiret  <aloiret@debian.org>
1943             Matthias Klose <doko@debian.org>
1944
1945         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1946         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1947         (tm_file): Add mips/linux64.h.
1948         (tmake_file): Add mips/t-linux64.
1949         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1950         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1951         instead of hardcoded mabi=n32.
1952         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1953         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1954         convention.
1955
1956 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1957
1958         * passes.c (init_optimization_passes): Add invariant motion pass
1959         after induction variable optimization.
1960
1961 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
1962
1963         PR target/39633
1964         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1965         offsets 1..5 set cc0 in a usable way.
1966
1967 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
1968
1969         * tree.h (call_expr_arg): Remove.
1970         (call_expr_argp): Likewise.
1971
1972 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
1973
1974         * config/sparc/sparc.md (save_register_window_1): Rename to...
1975         (window_save): ...this.
1976         * config/sparc/sparc.c (emit_save_register_window): Rename to...
1977         (emit_window_save): ...this.
1978         (sparc_expand_prologue): Adjust to above renaming.
1979
1980 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1981
1982         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1983         of movabs for x32.
1984
1985 2011-07-10  Richard Henderson  <rth@redhat.com>
1986
1987         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1988         run final, instead of emitting text directly.
1989
1990 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
1991
1992         * config/i386/i386.c (ix86_option_override_internal): Turn on
1993         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
1994         small PIC models for TARGET_X32.
1995
1996 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
1997
1998         PR target/49684
1999         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
2000         $(LIBGCC2_CFLAGS).
2001
2002         PR bootstrap/49680
2003         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
2004         stray notes and debug insns by using prev_nonnote_nondebug_insn
2005         instead of PREV_INSN.
2006
2007 2011-07-09  Richard Henderson  <rth@redhat.com>
2008
2009         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
2010         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
2011         * dwarf2out.c: ... here.
2012         (output_all_cfis): Remove.
2013         (dwarf2out_switch_text_section): Use output_cfis directly.
2014         (size_of_locs): Export.
2015         (output_loc_sequence, output_loc_sequence_raw): Export.
2016         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
2017         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
2018         output_cfa_loc_raw): Move to ...
2019         * dwarfcfi.c: ... here.
2020         * dwarf2out.h: Update decls.
2021
2022 2011-07-09  Richard Henderson  <rth@redhat.com>
2023
2024         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
2025         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
2026         * dwarf2cfi.c: ... here.
2027         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
2028         (DWARF_ROUND, DWARF_CIE_ID): Remove.
2029         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
2030         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
2031         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
2032
2033 2011-07-09  Richard Henderson  <rth@redhat.com>
2034
2035         * dwarf2cfi.c (cie_return_save): New.
2036         (queue_reg_save): Use compare_reg_or_pc.
2037         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
2038         (dwarf2out_frame_debug_expr): Likewise.
2039         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
2040         (initial_return_save): Likewise.
2041         (execute_dwarf2_frame): Save and restore initial return save from
2042         the cie to the fde.
2043         * config/mips/mips.c (mips_frame_set): Remove special case for
2044         DWARF_FRAME_RETURN_COLUMN.
2045
2046 2011-07-09  Richard Henderson  <rth@redhat.com>
2047
2048         * dwarf2cfi.c (lookup_cfa): Remove.
2049         (execute_dwarf2_frame): Assert queues are empty on entry.
2050         Setup initial cfa directly, not via lookup_cfa.
2051         Don't clear args_size state here.
2052
2053 2011-07-09  Richard Henderson  <rth@redhat.com>
2054
2055         * dwarf2cfi.c (add_cfi_vec): New.
2056         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
2057         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
2058         (execute_dwarf2_frame): Set add_cfi_vec.
2059
2060 2011-07-09  Richard Henderson  <rth@redhat.com>
2061
2062         * defaults.h (ASM_COMMENT_START): Move here...
2063         * dwarf2asm.c: ... from here.
2064         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
2065         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
2066         * varasm.c: Likewise.
2067
2068 2011-07-09  Richard Henderson  <rth@redhat.com>
2069
2070         PR debug/49686
2071         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
2072         (create_cfi_notes): ... do it here instead.
2073
2074 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
2075
2076         PR debug/49676
2077         * dwarf2out.c (size_of_int_loc_descriptor): New function.
2078         (address_of_int_loc_descriptor): Use it.
2079         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
2080
2081 2011-07-09  Richard Henderson  <rth@redhat.com>
2082
2083         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
2084         (prologue, epilogue): New.
2085         (return, *rts): New.
2086         (blockage, setd, seti): New.
2087         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2088         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2089         (pdp11_saved_regno): New.
2090         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
2091         generate rtl instead of text.
2092         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
2093         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
2094         * config/pdp11/pdp11-protos.h: Update.
2095
2096 2011-07-09  Richard Henderson  <rth@redhat.com>
2097
2098         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2099         try to insert an rtl prologue here.
2100         (rs6000_output_function_epilogue): Similarly.
2101         * config/rs6000/rs6000.md (prologue): Emit a barrier to
2102         satisfy !TARGET_SCHED_PROLOG.
2103         (epilogue, sibcall_epilogue): Likewise.
2104
2105 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
2106
2107         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
2108         (FP_REG_P): Delete.
2109         (IN_OR_GLOBAL_P): Likewise.
2110
2111 2011-07-08  Jason Merrill  <jason@redhat.com>
2112
2113         PR c++/45437
2114         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
2115         compound assignment.
2116
2117         * cgraph.c (cgraph_add_to_same_comdat_group): New.
2118         * cgraph.h: Declare it.
2119         * ipa.c (function_and_variable_visibility): Make sure thunks
2120         have the right visibility.
2121
2122 2011-07-08  Richard Henderson  <rth@redhat.com>
2123
2124         PR bootstrap/49680
2125         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
2126         any tablejump vector.
2127
2128         PR bootstrap/49680
2129         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
2130         end of the prologue.
2131
2132 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
2133
2134         PR target/49621
2135         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
2136         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
2137         * config/rs6000/vector.md (vector_select_<mode>,
2138         vector_select_<mode>_uns): Change second operand of NE to
2139         CONST0_RTX (<MODE>mode) instead of const0_rtx.
2140         * config/rs6000/altivec.md (*altivec_vsel<mode>,
2141         *altivec_vsel<mode>_uns): Expect second operand of NE to be
2142         zero_constant of the corresponding vector mode.
2143         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
2144         Likewise.
2145
2146 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2147
2148         * graphite-dependences.c (build_alias_set_powerset): Remove
2149         continue from loop, add one more assert.
2150
2151 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
2152
2153         PR target/46779
2154         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
2155         In particular, allow 8-bit values in r28 and r29.
2156         (avr_hard_regno_scratch_ok): Disallow any register that might be
2157         part of the frame pointer.
2158         (avr_hard_regno_rename_ok): Same.
2159         (avr_legitimate_address_p): Don't allow SUBREGs.
2160
2161 2011-07-08  Julian Brown  <julian@codesourcery.com>
2162
2163         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
2164         big-endian mode.
2165         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
2166         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
2167         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
2168         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
2169         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
2170         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
2171         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
2172         registers in big-endian mode.
2173
2174 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
2175
2176         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
2177         in terms of another.
2178         (write_attr_value): Write a cast if necessary.
2179
2180         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
2181         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
2182         (REG_WORDS_BIG_ENDIAN): Document.
2183         * doc/tm.texi: Regenerate.
2184         * reload.c (operands_match_p): Take it into account.
2185         (reload_adjust_reg_for_mode): Likewise.
2186         * rtlanal.c (subreg_get_info): Likewise.
2187
2188 2011-07-08  Richard Guenther  <rguenther@suse.de>
2189
2190         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
2191         folding.
2192
2193 2011-07-08  Kai Tietz  <ktietz@redhat.com>
2194
2195         * fold-const.c (fold_truth_andor): Factored out truth_andor
2196         label from fold_binary as function.
2197         (fold_binary_loc): Replace truth_andor lable
2198         by function fold_truth_andor.
2199
2200 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
2201
2202         PR middle-end/49519
2203         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
2204         check if address is stored in register. If so - give up.
2205         (check_sibcall_argument_overlap_1): Do not perform check of
2206         overlapping when it is call to address.
2207
2208 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
2209
2210         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
2211         of magic '31'.
2212
2213 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
2214
2215         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
2216         GET_MODE_BITSIZE where appropriate.
2217         (widen_leading, expand_parity, expand_ctz, expand_ffs,
2218         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
2219         expand_float, expand_fix): Likewise.
2220         * expr.c (convert_move, convert_modes, expand_expr_real_2,
2221         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2222         * stor-layout.c (get_mode_bounds): Likewise.
2223         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
2224         Likewise.
2225         * convert.c (convert_to_integer): Likewise.
2226         * expmed.c (expand_shift_1): Likewise.
2227
2228         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
2229         a bitsize.
2230
2231         * optabs.c (expand_binop): Tighten conditions for doubleword
2232         expansions.
2233         (widen_bswap): Assert that mode bitsize and precision are the same.
2234         * stor-layout.c (get_best_mode): Skip modes that have lower
2235         precision than bitsize.
2236         * recog.c (simplify_while_replacing): Assert that bitsize and
2237         precision are the same.
2238
2239 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2240
2241         * Makefile.in (LIBGCOV): Remove.
2242         (libgcc.mvars): Remove LIBGCOV.
2243         * libgov.c: Move to ../libgcc.
2244
2245 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2246
2247         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
2248
2249 2011-07-08  Martin Jambor  <mjambor@suse.cz>
2250
2251         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
2252         is too big for total scalarization.
2253
2254 2011-07-07  Richard Henderson  <rth@redhat.com>
2255
2256         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
2257         (DBX_DEBUGGING_INFO): Undef.
2258
2259 2011-07-07  Richard Henderson  <rth@redhat.com>
2260
2261         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
2262         Handle some opcodes specially for debugging.
2263         * print-rtl.c: Include dwarf2out.h
2264         (print_rtx): Handle NOTE_INSN_CFI.
2265         * Makefile.in (print-rtl.o): Update.
2266
2267 2011-07-07  Richard Henderson  <rth@redhat.com>
2268
2269         * tree-pass.h (pass_dwarf2_frame): Declare.
2270         * passes.c (init_optimization_passes): Add it.
2271         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
2272         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
2273         make static, do not call add_cfis_to_fde.
2274         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
2275         dwarf2out_frame_init): Merge into...
2276         (execute_dwarf2_frame): ... here.  New function.
2277         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
2278         saved_do_cfi_asm to a tri-state variable.
2279         (gate_dwarf2_frame, pass_dwarf2_frame): New.
2280         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
2281         if it has yet to be done.  Don't call dwarf2cfi_function_init.
2282         * dwarf2out.h, debug.h: Update decls.
2283         * final.c (final_start_function): Don't call
2284         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
2285         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
2286         * toplev.c (lang_dependent_init): Likewise.
2287
2288 2011-07-07  Richard Henderson  <rth@redhat.com>
2289
2290         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
2291         FDE_TABLE_INCREMENT): Replace with...
2292         (fde_vec): ... this, a new vector.
2293         (current_fde): Remove.  Replace all users with cfun->fde.
2294         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
2295         (size_of_aranges, dwarf2out_finish): Likewise.
2296         (dwarf2out_alloc_current_fde): Break out from ...
2297         (dwarf2out_begin_prologue): ... here.
2298         (dwarf2out_frame_init): Remove.
2299         * dwarf2cfi.c: Update all users of current_fde.
2300         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
2301         * dwarf2out.h: Update decls.
2302         (dw_fde_node): Add fde_index member.
2303         * function.h (struct function): Add fde member.
2304
2305 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2306             Richard Henderson  <rth@redhat.com>
2307
2308         * dwarf2cfi.c (add_cfi): Remove.
2309         (dwarf2out_cfi_label): Remove force argument.  Only generate the
2310         label name.
2311         (add_fde_cfi): Simplify the different code paths.
2312         (add_cie_cfi): New.
2313         (old_cfa, old_cfa_remember): New.
2314         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
2315         (last_reg_save_label): Remove.
2316         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
2317         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2318         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2319         dwarf2out_frame_debug_cfa_expression,
2320         dwarf2out_frame_debug_cfa_restore,
2321         dwarf2out_frame_debug_cfa_window_save,
2322         dwarf2out_frame_debug_expr): Remove label parameter.
2323         (cfi_label_required_p, add_cfis_to_fde): New.
2324         (dwarf2out_frame_debug_after_prologue): New.
2325         (dwarf2cfi_frame_init): Initialize old_cfa.
2326         (dwarf2out_frame_debug_restore_state): Likewise.
2327         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
2328         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
2329         * final.c (final_start_function): Call
2330         dwarf2out_frame_debug_after_prologue.
2331
2332 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2333             Richard Henderson  <rth@redhat.com>
2334
2335         * dwarf2cfi.c (cfi_insn): New.
2336         (dwarf2out_cfi_label): Don't emit cfi label here.
2337         (add_fde_cfi): Create a NOTE_INSN_CFI.
2338         (dwarf2out_frame_debug): Setup cfi_insn.
2339         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
2340         (dwarf2out_cfi_begin_epilogue): Make static.
2341         (dwarf2out_frame_debug_restore_state): Make static.
2342         * dwarf2out.c (output_cfi_directive): Make static.
2343         (dwarf2out_emit_cfi): New.
2344         * dwarf2out.h: Update.
2345         * final.c (final): Remove CFI notes.
2346         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
2347         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
2348         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
2349         * insn-notes.def (NOTE_INSN_CFI): New.
2350         (NOTE_INSN_CFI_LABEL): New.
2351         * rtl.h (union rtunion_def): Add rt_cfi member.
2352         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
2353
2354 2011-07-07  Richard Henderson  <rth@redhat.com>
2355
2356         * dwarf2cfi.c: New file.
2357         * Makefile.in (OBJS): Add it.
2358         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
2359         * gengtype.c (open_base_files): Include dwarf2out.h.
2360         * coretypes.h (enum var_init_status): Move from ...
2361         * rtl.h: ... here.
2362         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
2363         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
2364         expand_builtin_dwarf_sp_column, init_return_column_size,
2365         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
2366         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
2367         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
2368         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
2369         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
2370         compute_barrier_args_size, dwarf2out_args_size,
2371         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
2372         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
2373         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
2374         queue_reg_save, dwarf2out_flush_queued_reg_saves,
2375         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
2376         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2377         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2378         dwarf2out_frame_debug_cfa_expression,
2379         dwarf2out_frame_debug_cfa_restore,
2380         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
2381         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
2382         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
2383         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
2384         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
2385         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
2386         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
2387         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
2388         dw_loc_descr_node): Move to dwarf2out.h.
2389         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
2390         mem_loc_descriptor): Export.
2391         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
2392         (dwarf2out_frame_init): Extract CIE generation code to
2393         dwarf2cfi_frame_init.
2394
2395 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
2396
2397         PR target/49660
2398         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
2399         MASK_V8PLUS, remove commented out flag and reorder.
2400
2401 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
2402
2403         PR c/49644
2404         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
2405         one non-complex and one complex argument, call c_save_expr on both
2406         operands.
2407
2408 2011-07-07  Martin Jambor  <mjambor@suse.cz>
2409
2410         PR middle-end/49495
2411         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
2412         (verify_cgraph_node): Some functinality moved to
2413         verify_edge_corresponds_to_fndecl, call it.
2414
2415 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2416
2417         * config.gcc (*local*): Remove.
2418         * doc/install-old.texi: Don't mention local configurations.
2419
2420 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
2421
2422         PR debug/49522
2423         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
2424         referencing debug insns that have been reset.
2425         (dead_debug_insert_before): Don't assert reg is non-NULL,
2426         instead return immediately if it is NULL.
2427
2428 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2429
2430         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2431
2432 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2433
2434         * hw-doloop.c: New file.
2435         * hw-doloop.h: New file.
2436         * Makefile.in (OBJS): Add hw-doloop.o.
2437         (hw-doloop.o): New rule.
2438         ($(obj_out_file)): Add hw-doloop.h dependency.
2439         * config/bfin/bfin.c: Include "hw-doloop.h".
2440         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
2441         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
2442         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
2443         type changed to hwloop_info.  Return bool, true if the loop was
2444         successfully optimized.  Remove code that was moved to
2445         hw-doloop.c, and adjust other parts.
2446         (hwloop_fail): New static function, containing parts that used
2447         to be in bfin_optimize_loop.
2448         (bfin_discover_loop, bfin_discover_loops, free_loops,
2449         bfin_reorder_loops): Remove.
2450         (hwloop_pattern_reg): New static function.
2451         (bfin_doloop_hooks): New variable.
2452         (bfin_reorg_loops): Remove most code, call reorg_loops.
2453         * config/bfin/bfin.md (doloop_end splitter): Also enable if
2454         loop counter is a memory_operand.
2455
2456 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2457
2458         * config.gcc: Support --with-multilib-list for x86 Linux targets.
2459
2460         * configure.ac: Mention x86-64 for --with-multilib-list.
2461         * configure: Regenerated.
2462
2463         * config/i386/gnu-user64.h (SPEC_64): Support x32.
2464         (SPEC_32): Likewise.
2465         (ASM_SPEC): Likewise.
2466         (LINK_SPEC): Likewise.
2467         (TARGET_THREAD_SSP_OFFSET): Likewise.
2468         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
2469         (SPEC_X32): New.
2470
2471         * config/i386/i386.h (TARGET_X32): New.
2472         (TARGET_LP64): New.
2473         (LONG_TYPE_SIZE): Likewise.
2474         (POINTER_SIZE): Likewise.
2475         (POINTERS_EXTEND_UNSIGNED): Likewise.
2476         (OPT_ARCH64): Support x32.
2477         (OPT_ARCH32): Likewise.
2478
2479         * config/i386/i386.opt (mx32): New.
2480
2481         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
2482         (GLIBC_DYNAMIC_LINKERX32): Likewise.
2483         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
2484         (GLIBC_DYNAMIC_LINKERX32): Likewise.
2485
2486         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
2487         (BIONIC_DYNAMIC_LINKERX32): Likewise.
2488         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
2489
2490         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
2491
2492         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
2493
2494         * doc/invoke.texi: Document -mx32.
2495
2496 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
2497
2498         * doc/invoke.texi (mwords-little-endian): Deprecate.
2499         * config/arm/arm.opt (mwords-little-endian): Likewise.
2500         * config/arm/arm.c (arm_option_override): Warn about the deprecation
2501         of -mwords-little-endian.
2502
2503 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
2504
2505         * reload1.c (choose_reload_regs): Use mode sizes to check whether
2506         an old reload register completely defines the required value.
2507
2508 2011-07-07  Richard Guenther  <rguenther@suse.de>
2509
2510         * fold-const.c (fold_unary_loc): Do not strip sign-changes
2511         for NEGATE_EXPR.
2512
2513 2011-07-07  Richard Guenther  <rguenther@suse.de>
2514
2515         * tree-vrp.c (simplify_conversion_using_ranges): New function.
2516         (simplify_stmt_using_ranges): Call it.
2517
2518 2011-07-07  Kai Tietz  <ktietz@redhat.com>
2519
2520         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
2521         (lookup_logical_inverted_value): Likewise.
2522         (simplify_bitwise_binary_1): Likewise.
2523         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
2524
2525 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2526
2527         * gcc.c (%[Spec]): Don't document.
2528         (struct spec_list): Update comment.
2529         (do_spec_1): Don't handle %[Spec].
2530         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
2531
2532 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
2533
2534         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
2535         default based on TARGET_ASM_NAMED_SECTION.
2536         * common/common-target.def (have_named_sections): Default to true.
2537         * common/config/default-common.c: Don't include tm.h.
2538         * common/config/picochip/picochip-common.c
2539         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
2540         * common/config/m32c/m32c-common.c: Remove.
2541         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
2542         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2543         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2544         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2545         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2546         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2547         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2548
2549 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
2550
2551         PR middle-end/49640
2552         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
2553         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
2554
2555 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2556
2557         PR libmudflap/49550
2558         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
2559
2560 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2561
2562         PR target/39150
2563         * configure.ac (gcc_cv_as_hidden): Also accept
2564         x86_64-*-solaris2.1[0-9]*.
2565         (gcc_cv_as_cfi_directive): Likewise.
2566         (gcc_cv_as_comdat_group_group): Likewise.
2567         (set_have_as_tls): Likewise.
2568         * configure: Regenerate.
2569         * config.gcc (i[34567]86-*-solaris2*): Also handle
2570         x86_64-*-solaris2.1[0-9]*.
2571         * config.host (i[34567]86-*-solaris2*): Likewise.
2572         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
2573         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
2574         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
2575         (TARGET_LD_EMULATION): Use it.
2576         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
2577         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
2578         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
2579         (ASM_CPU64_DEFAULT_SPEC): Define.
2580         (ASM_CPU_SPEC): Use %(asm_cpu_default).
2581         (ASM_SPEC): Redefine.
2582         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
2583         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
2584         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
2585         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
2586         configuration.
2587         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
2588
2589 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2590
2591         * config/sol2.h (ASM_SPEC): Split into ...
2592         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
2593         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
2594         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
2595         (ASM_SPEC): Use ASM_SPEC_BASE.
2596         * config/sparc/sol2.h (ASM_SPEC): Redefine.
2597
2598 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
2599
2600         * config/avr/avr.md (*reload_insi): Change predicate #1 to
2601         const_int_operand.  Ditto for peep2 producing this insn.
2602         Add argument to output_reload_insisf call.
2603         (*movsi,*movsf): Add argument to output_movsisf call.
2604         (*reload_insf): New insn and new peep2 to produce it.
2605         * config/avr/avr-protos.h (output_movsisf): Change prototype.
2606         (output_reload_insisf): Change prototype.
2607         * config/avr/avr.c (avr_asm_len): New function.
2608         (output_reload_insisf): Rewrite.
2609         (output_movsisf): Change prototype.  output_reload_insisf for
2610         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
2611         (adjust_insn_length): Add argument to output_movsisf and
2612         output_reload_insisf call.
2613
2614 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2615
2616         * emit-rtl.c (paradoxical_subreg_p): New function.
2617         * rtl.h (paradoxical_subreg_p): Declare.
2618         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
2619         apply_distributive_law, simplify_comparison, simplify_set): Use it.
2620         * cse.c (record_jump_cond, cse_insn): Likewise.
2621         * expr.c (force_operand): Likewise.
2622         * rtlanal.c (num_sign_bit_copies1): Likewise.
2623         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
2624         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
2625         (push_reload): Use precision to check for paradoxical subregs.
2626         * expmed.c (extract_bit_field_1): Likewise.
2627
2628         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2629         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2630         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2631         simplify_set, simplify_logical, expand_compound_operation,
2632         make_extraction, force_to_mode, if_then_else_cond, extended_count,
2633         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2634         record_value_for_reg): Likewise.
2635         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2636         * simplify-rtx. c (simplify_unary_operation_1,
2637         simplify_binary_operation_1, simplify_const_relational_operation):
2638         Likewise.
2639
2640         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2641         instead of GET_MODE_BITSIZE where appropriate.
2642         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2643         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2644         init_num_sign_bit_copies_in_rep): Likewise.
2645         * cse.c (fold_rtx, cse_insn): Likewise.
2646         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2647         * simplify-rtx.c (simplify_unary_operation_1,
2648         simplify_const_unary_operation, simplify_binary_operation_1,
2649         simplify_const_binary_operation, simplify_ternary_operation,
2650         simplify_const_relational_operation, simplify_subreg): Likewise.
2651         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2652         simplify_if_then_else, simplify_set, expand_compound_operation,
2653         expand_field_assignment, make_extraction, if_then_else_cond,
2654         make_compound_operation, force_to_mode, make_field_assignment,
2655         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2656         extended_count, try_widen_shift_mode, simplify_shift_const_1,
2657         simplify_comparison, record_promoted_value, simplify_compare_const,
2658         record_dead_and_set_regs_1): Likewise.
2659
2660         Revert:
2661         * simplify-rtx.c (simplify_const_binary_operation): Use the
2662         shift_truncation_mask hook instead of performing modulo by width.
2663         Compare against mode precision, not bitsize.
2664         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2665         Use shift_truncation_mask instead of constructing the value manually.
2666
2667 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2668
2669         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2670         declaration.
2671         (rs6000_save_toc_in_prologue_p): Ditto.
2672
2673         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2674         up the static chain (r11) during indirect function calls.
2675         (-msave-toc-indirect): New undocumented debug switch.
2676
2677         * config/rs6000/rs6000.c (struct machine_function): Add
2678         save_toc_in_prologue field to note whether the prologue needs to
2679         save the TOC value in the reserved stack location.
2680         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
2681         to save the TOC in the prologue, do so.
2682         (rs6000_trampoline_init): Don't allow creating AIX style
2683         trampolines if -mno-r11 is in effect.
2684         (rs6000_call_indirect_aix): New function to create AIX style
2685         indirect calls, adding support for -mno-r11 to suppress loading
2686         the static chain, and saving the TOC in the prologue instead of
2687         the call body.
2688         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2689         TOC in the prologue.
2690
2691         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2692         register numbers.
2693         (TOC_REGNUM): Ditto.
2694         (STATIC_CHAIN_REGNUM): Ditto.
2695         (ARG_POINTER_REGNUM): Ditto.
2696         (SFP_REGNO): Delete, unused.
2697         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2698         function descriptor offsets.
2699         (TOC_SAVE_OFFSET_64BIT): Ditto.
2700         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2701         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2702         (AIX_FUNC_DESC_SC_32BIT): Ditto.
2703         (AIX_FUNC_DESC_SC_64BIT): Ditto.
2704         (ptrload): New mode attribute for the appropriate load of a pointer.
2705         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2706         (call_indirect_aix64): Ditto.
2707         (call_value_indirect_aix32): Ditto.
2708         (call_value_indirect_aix64): Ditto.
2709         (call_indirect_nonlocal_aix32_internal): Ditto.
2710         (call_indirect_nonlocal_aix32): Ditto.
2711         (call_indirect_nonlocal_aix64_internal): Ditto.
2712         (call_indirect_nonlocal_aix64): Ditto.
2713         (call): Rewrite AIX indirect function calls.  Add support for
2714         eliminating the static chain, and for moving the save of the TOC
2715         to the function prologue.
2716         (call_value): Ditto.
2717         (call_indirect_aix<ptrsize>): Ditto.
2718         (call_indirect_aix<ptrsize>_internal): Ditto.
2719         (call_indirect_aix<ptrsize>_internal2): Ditto.
2720         (call_indirect_aix<ptrsize>_nor11): Ditto.
2721         (call_value_indirect_aix<ptrsize>): Ditto.
2722         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2723         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2724         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2725         (call_nonlocal_aix32): Relocate in the rs6000.md file.
2726         (call_nonlocal_aix64): Ditto.
2727
2728         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2729         -mno-r11 documentation.
2730
2731 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2732
2733         PR other/49658
2734         * doc/extend.texi (Compound Literals): Fix typo.
2735
2736 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
2737
2738         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2739
2740 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
2741
2742         * configure.ac (plugin-version.h): Generate
2743         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2744         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2745         macros.
2746
2747         * configure: Regenerate.
2748
2749         * doc/plugins.texi (Building GCC plugins): Mention
2750         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2751
2752 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2753
2754         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2755         * combine.c (make_extraction, gen_lowpart_or_truncate,
2756         apply_distributive_law, simplify_comparison,
2757         reg_truncated_to_mode, record_truncated_value): Use it.
2758         * cse.c (notreg_cost): Likewise.
2759         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2760         * expr.c (convert_move, convert_modes): Likewise.
2761         * optabs.c (expand_binop, expand_unop): Likewise.
2762         * postreload.c (move2add_last_label): Likewise.
2763         * regmove.c (optimize_reg_copy_3): Likewise.
2764         * rtlhooks.c (gen_lowpart_general): Likewise.
2765         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2766
2767 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
2768
2769         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2770
2771 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2772
2773         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2774         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2775         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2776         (simplify_const_unary_operation, simplify_binary_operation_1,
2777         simplify_const_binary_operation, simplify_const_relational_operation):
2778         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
2779         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2780         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2781         simplify_shift_const_1, simplify_comparison): Likewise.
2782         * expr.c (convert_modes): Likewise.
2783         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2784         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2785         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2786
2787         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2788
2789 2011-07-06  Richard Guenther  <rguenther@suse.de>
2790
2791         PR tree-optimization/49645
2792         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2793         register variables.
2794         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2795         in type qualification here ...
2796         (copy_reference_ops_from_ref): ... not here.
2797         (vn_reference_lookup_3): ... or here.
2798         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2799         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2800
2801 2011-07-06  Ian Lance Taylor  <iant@google.com>
2802
2803         * doc/install.texi (Configuration): It's
2804         --enable-gnu-indirect-function, not --enable-indirect-function.
2805
2806 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2807
2808         * simplify-rtx.c (simplify_const_binary_operation): Use the
2809         shift_truncation_mask hook instead of performing modulo by width.
2810         Compare against mode precision, not bitsize.
2811         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2812         Use shift_truncation_mask instead of constructing the value manually.
2813
2814 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2815
2816         PR middle-end/47383
2817         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2818         address computation and convert to address_mode if needed.
2819
2820 2011-07-06  Richard Guenther  <rguenther@suse.de>
2821
2822         * tree.c (build_common_tree_nodes_2): Merge with
2823         build_common_tree_nodes.
2824         * tree.h (build_common_tree_nodes): Adjust prototype.
2825         (build_common_tree_nodes_2): Remove.
2826         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2827         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2828
2829 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
2830
2831         PR tree-optimization/49618
2832         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2833         t recurse on the decl.
2834         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2835         return true if expr isn't known to be defined in current
2836         TU or some other LTO partition.
2837
2838 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2839
2840         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2841         override CASE_VALUES_THRESHOLD.
2842
2843         * stmt.c (toplevel): Include params.h.
2844         (case_values_threshold): Use the --param case-values-threshold
2845         value if non-zero, otherwise use machine dependent value.
2846         (expand_case): Use case_values_threshold.
2847
2848         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2849
2850         * doc/invoke.texi (--param case-values-threshold): Document.
2851
2852 2011-07-05  Richard Henderson  <rth@redhat.com>
2853
2854         * dwarf2out.c (dwarf2out_cfi_label): Make static.
2855         (dwarf2out_flush_queued_reg_saves): Make static.
2856         (dwarf2out_reg_save): Remove.
2857         (dwarf2out_return_save): Remove.
2858         (dwarf2out_return_reg): Remove.
2859         (dwarf2out_reg_save_reg): Remove.
2860         (dwarf2out_def_cfa): Merge into ...
2861         (dwarf2out_frame_init): ... here.
2862         * dwarf2out.h, tree.h: Remove declarations as necessary.
2863
2864 2011-07-05  Richard Henderson  <rth@redhat.com>
2865
2866         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2867         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2868         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2869         the alloc insn.
2870
2871         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2872         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2873         (process_epilogue): Don't call dwarf2out_def_cfa.
2874
2875         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2876         indicate the return address save.
2877         (process_cfa_register): Likewise.
2878
2879         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2880         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2881
2882         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2883         for ar.pfs save at alloc insn.
2884
2885 2011-07-05  Richard Henderson  <rth@redhat.com>
2886
2887         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2888         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2889         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2890         stack pointer save.
2891         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2892         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
2893         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2894         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2895
2896 2011-07-05  Richard Henderson  <rth@redhat.com>
2897
2898         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
2899         VUNSPEC_* constants here instead of via define_constants.
2900         (VUNSPEC_PEM): New constant.
2901         (procedure_entry_mask): New insn.
2902         (prologue): New expander.
2903         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2904         (vax_expand_prologue): Rename from vax_output_function_prologue;
2905         emit rtl instead of text.
2906         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2907         (print_operand): Add 'x' prefix.
2908
2909 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2910
2911         PR middle-end/47715
2912         * calls.c (precompute_register_parameters): Promote the function
2913         argument before checking non-legitimate constant.
2914
2915 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2916
2917         PR tree-optimization/47654
2918         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2919         (lst_do_strip_mine_loop): Return an int.
2920         (lst_do_strip_mine): Same.
2921         (scop_do_strip_mine): Same.
2922         (scop_do_block): Loop blocking should strip-mine at least two loops.
2923         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2924         (scop_do_interchange): Same.
2925         * graphite-poly.h (scop_do_interchange): Update declaration.
2926         (scop_do_strip_mine): Same.
2927
2928 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2929
2930         * graphite-clast-to-gimple.c (precision_for_value): Removed.
2931         (precision_for_interval): Removed.
2932         (gcc_type_for_interval): Use mpz_sizeinbase.
2933
2934 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2935
2936         * graphite-ppl.h (value_max): Correct computation of max.
2937
2938 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
2939
2940         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2941
2942 2011-07-05  Richard Guenther  <rguenther@suse.de>
2943
2944         * c-decl.c (c_init_decl_processing): Defer building common
2945         tree nodes to c_common_nodes_and_builtins.
2946
2947 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
2948
2949         PR tree-optimization/49580
2950         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2951         the loop's number of iterations.
2952         * tree-parloops.c (transform_to_exit_first_loop): Add the
2953         handling of the loop's number of iterations before the call
2954         to gimple_duplicate_sese_tail.
2955         Insert the stmt caclculating the new rhs of the loop's
2956         condition stmt to the preheader instead of iters_bb.
2957
2958 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2959
2960         PR rtl-optimization/47449
2961         * fwprop.c (forward_propagate_subreg): Don't propagate hard
2962         register nor zero/sign extended hard register.
2963
2964 2011-07-05  Richard Guenther  <rguenther@suse.de>
2965
2966         PR tree-optimization/49518
2967         PR tree-optimization/49628
2968         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2969         irrelevant and invariant data-references.
2970         (vect_analyze_data_ref_access): For invariant loads clear the
2971         group association.
2972
2973 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
2974
2975         PR rtl-optimization/49619
2976         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2977         pass VOIDmode as op0_mode to recursive call, and return temp even
2978         when different from tor, just if it is not IOR of the original
2979         PLUS arguments.
2980
2981         PR rtl-optimization/49472
2982         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2983         negating MULT, negate the second operand instead of first.
2984         (simplify_binary_operation_1) <case MULT>: If one operand is
2985         a NEG and the other is MULT, don't attempt to optimize by negation
2986         of the MULT operand if it only moves the NEG operation around.
2987
2988         PR debug/49602
2989         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2990         get_current_def return value if it can't be trusted to be
2991         the current value of the variable in the current bb.
2992
2993 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
2994
2995         PR target/49600
2996         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2997         general register to memory for !TARGET_INTER_UNIT_MOVES.
2998
2999 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3000
3001         PR target/44643
3002         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
3003         instead of TREE_READONLY.
3004
3005 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3006
3007         * doc/extend.texi (AVR Built-in Functions): Update documentation
3008         of __builtin_avr_fmul*.
3009         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
3010         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
3011         * config/avr/avr.md (fmul): Rename to fmul_insn.
3012         (fmuls): Rename to fmuls_insn.
3013         (fmulsu): Rename to fmulsu_insn.
3014         (fmul,fmuls,fmulsu): New expander.
3015         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
3016         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
3017         * config/avr/libgcc.S (__fmul): New function.
3018         (__fmuls): New function.
3019         (__fmulsu,__fmulsu_exit): New function.
3020
3021 2011-07-04  Richard Guenther  <rguenther@suse.de>
3022
3023         PR tree-optimization/49615
3024         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
3025         basic-block index check.
3026
3027 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
3028
3029         * longlong.h (count_leading_zeros, count_trailing_zeros,
3030         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
3031         resp. 64.
3032
3033 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
3034
3035         PR tree-optimization/49610
3036         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
3037         a basic block.
3038
3039 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3040             Olivier Hainque  <hainque@adacore.com>
3041             Nicolas Setton  <setton@adacore.com>
3042
3043         * tree.h (TYPE_ARTIFICIAL): New flag.
3044         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
3045         the DIE of the type if it is artificial.
3046         (gen_array_type_die): Likewise.
3047         (gen_enumeration_type_die): Likewise.
3048         (gen_struct_or_union_type_die): Likewise.
3049         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
3050         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
3051
3052 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
3053
3054         * tree-object-size.c (pass_through_call): Handle
3055         BUILT_IN_ASSUME_ALIGNED.
3056
3057 2011-07-01  Martin Jambor  <mjambor@suse.cz>
3058
3059         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
3060
3061 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
3062
3063         PR middle-end/48016
3064         * explow.c (update_nonlocal_goto_save_area): Use proper mode
3065         for stack save area.
3066         * function.c (expand_function_start): Likewise.
3067
3068 2011-07-01  Richard Guenther  <rguenther@suse.de>
3069
3070         PR middle-end/49596
3071         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
3072         may have unknown refs.
3073
3074 2011-07-01  Kai Tietz  <ktietz@redhat.com>
3075
3076         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
3077
3078 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3079
3080         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
3081         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
3082         (Specific, mips-sgi-irix6): Likewise.
3083
3084 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3085
3086         PR libmudflap/49549
3087         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
3088
3089 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
3090
3091         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
3092         [idx]= and [idx1 ... idx2]= before initializers if needed for
3093         array initializers.
3094
3095 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
3096
3097         * config.gcc (score-*-elf): Remove score7.o.
3098         * config/score/t-score-elf: Likewise.
3099         * config/score/score.c: Merge score7 to score.c and
3100         remove forwarding functions.
3101         * config/score/score7.c: Deleted.
3102         * config/score/score7.h: Deleted.
3103
3104 2011-07-01  Richard Guenther  <rguenther@suse.de>
3105
3106         PR tree-optimization/49603
3107         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
3108
3109 2011-06-30  Martin Jambor  <mjambor@suse.cz>
3110
3111         * tree-sra.c (struct access): Rename total_scalarization to
3112         grp_total_scalarization
3113         (completely_scalarize_var): New function.
3114         (sort_and_splice_var_accesses): Set total_scalarization in the
3115         representative access.
3116         (analyze_access_subtree): Propagate total scalarization accross the
3117         tree, no holes in totally scalarized trees, simplify coverage
3118         computation.
3119         (analyze_all_variable_accesses): Call completely_scalarize_var instead
3120         of completely_scalarize_record.
3121
3122 2011-06-30  Richard Henderson  <rth@redhat.com>
3123
3124         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
3125         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
3126         * config/i386/i386.c: Don't include dwarf2out.h.
3127         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
3128         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
3129         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
3130         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
3131         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
3132
3133 2011-06-30  Richard Henderson  <rth@redhat.com>
3134
3135         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
3136         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3137         * final.c (final_scan_insn): Look for it, and invoke
3138         dwarf2out_frame_debug before the insn if found.
3139
3140 2011-06-30  Richard Henderson  <rth@redhat.com>
3141
3142         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
3143         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
3144
3145 2011-06-30  Richard Henderson  <rth@redhat.com>
3146
3147         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
3148         Define a vector of this type.
3149         (regs_saved_in_regs): Use a VEC.
3150         (num_regs_saved_in_regs): Remove.
3151         (compare_reg_or_pc): New.
3152         (record_reg_saved_in_reg): Split out from...
3153         (dwarf2out_flush_queued_reg_saves): ... here.
3154         (clobbers_queued_reg_save): Update for VEC.
3155         (reg_saved_in): Likewise.
3156         (dwarf2out_frame_debug_init): Likewise.
3157         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
3158         (dwarf2out_frame_debug_cfa_register): Likewise.
3159
3160 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3161
3162         PR tree-optimization/49572
3163         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
3164         type of the RHS instead of that of the LHS for the expression type.
3165
3166 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3167
3168         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
3169         unconditionally.
3170
3171 2011-06-30  Richard Guenther  <rguenther@suse.de>
3172
3173         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
3174         * tree-ssa-structalias.c (create_variable_info_for): Do not
3175         add initial constraints for non-var-decls.  Properly handle
3176         globals in other ltrans partitions.
3177         (intra_create_variable_infos): Manually create constraints for
3178         the fake no-alias parameter.
3179         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
3180         and assert there are no clones.
3181
3182 2011-06-30  Richard Guenther  <rguenther@suse.de>
3183
3184         PR tree-optimization/46787
3185         * tree-data-ref.c (dr_address_invariant_p): Remove.
3186         (find_data_references_in_stmt): Invariant accesses are ok now.
3187         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
3188         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3189         invariant loads.
3190
3191 2011-06-30  Martin Jambor  <mjambor@suse.cz>
3192
3193         PR tree-optimization/49094
3194         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
3195         (build_accesses_from_assign): Use it.
3196
3197 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
3198
3199         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3200         handling of BUILT_IN_ASSUME_ALIGNED.
3201
3202         PR debug/49364
3203         * dwarf2out.c (output_abbrev_section): Don't return early
3204         if abbrev_die_table_in_use is 1.
3205         (dwarf2out_finish): Instead don't call output_abbrev_section
3206         nor emit abbrev_section_label in that case.
3207
3208 2011-06-30  Nick Clifton  <nickc@redhat.com>
3209
3210         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
3211         for the V850E.
3212
3213 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
3214
3215         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3216         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
3217
3218 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
3219
3220         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3221         both pattern and original statements if necessary.
3222         (vect_transform_loop): Likewise.
3223         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
3224         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
3225         Mark the pattern statement only if the original statement doesn't
3226         have its own uses.
3227         (process_use): Call vect_mark_relevant with additional parameter.
3228         (vect_mark_stmts_to_be_vectorized): Likewise.
3229         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
3230         (vect_analyze_stmt): Handle both pattern and original statements
3231         if necessary.
3232         (vect_transform_stmt): Don't store vectorized pattern statement
3233         in the original statement.
3234         (vect_is_simple_use_1): Use related pattern statement only if the
3235         original statement is irrelevant.
3236         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3237
3238 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
3239
3240         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
3241         option.
3242         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
3243         entry.
3244         (TARGET_AVX128_OPTIMAL): New definition.
3245         * config/i386/i386.c (initial_ix86_tune_features): Initialize
3246         X86_TUNE_AVX128_OPTIMAL entry.
3247         (ix86_option_override_internal): Enable the generation
3248         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
3249         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
3250         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
3251
3252 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3253
3254         PR tree-optimization/49539
3255         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
3256         names by means of stmt_references_abnormal_ssa_name.
3257         (associate_plusminus): Call can_propagate_from before propagating
3258         from definition statements.
3259         (ssa_forward_propagate_and_combine): Remove superfluous newline.
3260
3261 2011-06-29  Richard Guenther  <rguenther@suse.de>
3262
3263         * doc/invoke.texi: Document -scev dump modifier.
3264         * tree-pass.h (TDF_SCEV): New dump flag.
3265         * tree-dump.c (dump_option_value_in): Add scev.
3266         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
3267         * tree-scalar-evolution.c: Likewise.
3268
3269 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
3270
3271         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
3272         (cxa_type_match): Correct declaration.
3273         (__gnu_unwind_pr_common): Reconstruct additional indirection
3274         when __cxa_type_match returns succeeded_with_ptr_to_base.
3275
3276 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3277
3278         PR rtl-optimization/49114
3279         * reload.c (struct replacement): Remove SUBREG_LOC member.
3280         (push_reload): Do not set it.
3281         (push_replacement): Likewise.
3282         (subst_reload): Remove dead code.
3283         (copy_replacements): Remove assertion.
3284         (copy_replacements_1): Do not handle SUBREG_LOC.
3285         (move_replacements): Likewise.
3286         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
3287         Detect subregs via recursive descent instead of via SUBREG_LOC.
3288
3289 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3290
3291         * config/avr/avr.c (avr_encode_section_info): Dispatch to
3292         default_encode_section_info.
3293
3294 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
3295
3296         PR tree-optimization/49545
3297         * builtins.c (get_object_alignment_1): Update function comment.
3298         Do not use DECL_ALIGN for functions, but test
3299         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
3300         * fold-const.c (get_pointer_modulus_and_residue): Don't check
3301         for functions here.
3302         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3303
3304 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
3305
3306         PR debug/49567
3307         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
3308         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
3309
3310 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3311
3312         PR target/34734
3313         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
3314         about uninitialized data attributed 'progmem' from here...
3315         (avr_encode_section_info): ...to this new function.
3316         (TARGET_ENCODE_SECTION_INFO): New define.
3317         (avr_section_type_flags): For data in ".progmem.data", remove
3318         section flag SECTION_WRITE.
3319
3320 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
3321
3322         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
3323         _xmulhisi3_exit.
3324         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
3325         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
3326         (__umulhisi3): Ditto.
3327         * config/avr/avr.md (mulhisi3): New insn expender.
3328         (umulhisi3): New insn expender.
3329         (*mulhisi3_call): New insn.
3330         (*umulhisi3_call): New insn.
3331
3332 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
3333
3334         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
3335
3336 2011-06-28  Richard Henderson  <rth@redhat.com>
3337
3338         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
3339         all code and arguments that handled pushes.  Update all callers.
3340
3341 2011-06-28  Richard Henderson  <rth@redhat.com>
3342
3343         * config/arm/arm.c (arm_output_function_prologue): Don't call
3344         thumb1_output_function_prologue.
3345         (arm_expand_prologue): Avoid dead store.
3346         (number_of_first_bit_set): Use ctz_hwi.
3347         (thumb1_emit_multi_reg_push): New.
3348         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
3349         to emit the entire prologue as rtl.
3350         (thumb1_output_interwork): Split out from
3351         thumb1_output_function_prologue.
3352         (thumb1_output_function_prologue): Remove.
3353         (arm_attr_length_push_multi): Handle thumb1.
3354         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
3355         (prologue_thumb1_interwork): New.
3356         (*push_multi): Allow thumb1; use push_mult_memory_operand.
3357         * config/arm/predicates.md (push_mult_memory_operand): New.
3358
3359 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
3360
3361         * config/sparc/sync.md (*stbar): Delete.
3362         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
3363
3364 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
3365
3366         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
3367
3368 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3369
3370         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
3371         (TARGET_64BIT_DEFAULT): Define.
3372         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
3373         of tm_file.
3374         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
3375
3376 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
3377
3378         * common.opt (in_lto_p): New Variable entry.
3379         * flags.h (in_lto_p): Move to common.opt.
3380         * gcc.c: Include params.h.
3381         (set_option_handlers): Also use common_handle_option and
3382         target_handle_option.
3383         (main): Call global_init_params, finish_params and init_options_struct.
3384         * opts.c (debug_type_names): Move from toplev.c.
3385         (print_filtered_help): Access quiet_flag through opts pointer.
3386         (common_handle_option): Return early in the driver for some options.
3387         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
3388         opts pointer.
3389         * toplev.c (in_lto_p): Move to common.opt.
3390         (debug_type_names): Move to opts.c.
3391         * Makefile.in (OBJS): Remove opts.o.
3392         (OBJS-libcommon-target): Add opts.o.
3393         (gcc.o): Update dependencies.
3394
3395 2011-06-28  Kai Tietz  <ktietz@redhat.com>
3396
3397         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
3398
3399 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3400
3401         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
3402         with '=' constraint modifier.
3403         (*divdf3_vfp): Likewise.
3404         ("*mulsf3_vfp"): Likewise.
3405         ("*muldf3_vfp"): Likewise.
3406         ("*mulsf3negsf_vfp"): Likewise.
3407         ("*muldf3negdf_vfp"): Likewise.
3408
3409 2011-06-28  Nick Clifton  <nickc@redhat.com>
3410
3411         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
3412         relaxation when performing an incremental link.
3413
3414 2011-06-28  Kai Tietz  <ktietz@redhat.com>
3415
3416         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
3417         within BB from last to first.
3418
3419 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
3420
3421         * genattr-common.c: New.  Based on genattr.c.
3422         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
3423         (MOSTLYCLEANFILES): Add insn-attr-common.h.
3424         (opts.o): Update dependencies.
3425         (.PRECIOUS): Add insn-attr-common.h.
3426         (simple_rtl_generated_h): Add insn-attr-common.h.
3427         (build/genattr-common.o): New.
3428         (genprogrtl): Add attr-common.
3429         * genattr.c (main): Include insn-attr-common.h.  Don't generate
3430         definitions of DELAY_SLOTS or INSN_SCHEDULING.
3431         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
3432
3433 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
3434
3435         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
3436         avr-*-* and avr-*-rtems* targets.
3437
3438         * config/avr/elf.h: New file.
3439         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
3440         (TARGET_ASM_SELECT_SECTION): Define.
3441         (INIT_SECTION_ASM_OP): Undefine.
3442         (FINI_SECTION_ASM_OP): Undefine.
3443         (READONLY_DATA_SECTION_ASM_OP): Undefine.
3444         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
3445         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
3446         * config/avr/avr.h:
3447         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
3448         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
3449         (MAX_OFILE_ALIGNMENT): Move to elf.h.
3450         (STRING_LIMIT): Move to elf.h.
3451         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
3452         (ASM_DECLARE_OBJECT_NAME): Remove.
3453         (ESCAPES): Remove.
3454         (ASM_OUTPUT_SKIP): Remove.
3455         (DWARF2_DEBUGGING_INFO): Remove.
3456         (OBJECT_FORMAT_ELF): Remove.
3457         (USER_LABEL_PREFIX): Remove.
3458         (ASM_OUTPUT_EXTERNAL): Remove.
3459         (ASM_OUTPUT_ASCII): Remove.
3460         (TYPE_ASM_OP): Remove.
3461         (SIZE_ASM_OP): Remove.
3462         (WEAK_ASM_OP): Remove.
3463         (STRING_ASM_OP): Remove.
3464         (SET_ASM_OP): Remove.
3465         (ASM_WEAKEN_LABEL): Remove.
3466         (TYPE_OPERAND_FMT): Remove.
3467         (ASM_DECLARE_FUNCTION_SIZE): Remove.
3468         (ASM_FINISH_DECLARE_OBJECT): Remove.
3469         (NO_DOLLAR_IN_LABEL): Remove.
3470         (ASM_GENERATE_INTERNAL_LABEL): Remove.
3471         (ASM_OUTPUT_CASE_LABEL): Remove.
3472         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
3473         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
3474         (gas_output_ascii): Remove.
3475         (gas_output_limited_string): Remove.
3476         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3477         * config/avr/avr-protos.h
3478         (gas_output_ascii): Remove prototye.
3479         (gas_output_limited_string): Remove prototype.
3480
3481 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
3482
3483         PR target/48637
3484         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
3485         asm operands.
3486
3487 2011-06-27  Jan Hubicka  <jh@suse.cz>
3488
3489         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
3490         node instead of references in node.
3491
3492 2011-06-27  Richard Henderson  <rth@redhat.com>
3493
3494         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
3495         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
3496         inside ifdef.
3497
3498 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3499
3500         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
3501
3502         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
3503         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
3504         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
3505         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
3506         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
3507         (evaluate_stmt, execute_fold_all_builtins): Handle
3508         BUILT_IN_ASSUME_ALIGNED.
3509         * tree-ssa-dce.c (propagate_necessity): Likewise.
3510         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3511         call_may_clobber_ref_p_1): Likewise.
3512         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
3513         (expand_builtin_assume_aligned): New function.
3514         * doc/extend.texi (__builtin_assume_aligned): Document.
3515
3516         PR debug/49544
3517         * cselib.c (promote_debug_loc): If cselib_preserve_constants
3518         and l has two DEBUG_INSN owned locs instead of just one, adjust
3519         the second location's setting_insn too.
3520
3521 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3522
3523         PR libmudflap/38738
3524         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
3525
3526 2011-06-27  Nick Clifton  <nickc@redhat.com>
3527
3528         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
3529         bit position of highest bit set into a count of the high zero bits.
3530
3531 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3532
3533         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
3534
3535 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3536
3537         PR lto/48492
3538         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
3539         to a NULL parent.
3540
3541 2011-06-27  Richard Guenther  <rguenther@suse.de>
3542
3543         PR tree-optimization/49394
3544         * passes.c (execute_one_pass): Restore current_pass after
3545         applying IPA transforms.
3546
3547 2011-06-27  Kai Tietz  <ktietz@redhat.com>
3548
3549         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
3550         out of type precision after operation.
3551         (find_bswap): Take for limit value the integer auto-promotion
3552         into account.
3553
3554 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3555
3556         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
3557         forward scan as well.
3558
3559 2011-06-27  Tristan Gingold  <gingold@adacore.com>
3560
3561         PR target/44241
3562         * config/vms/vms-protos.h: New file.
3563         * config/vms/vms-crtlmap.map: New file.
3564         * config/vms/vms.c: New file.
3565         * config/vms/make-crtlmap.awk: New file.
3566         * config/vms/vms-crtl.h: File removed.
3567         * config/vms/vms-crtl-64.h: File removed.
3568         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
3569         * config/alpha/vms64.h: Do not include vms-crtl-64.h
3570         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
3571         clear some builtins on VMS.  Calls vms_patch_builtins.
3572         (avms_asm_output_external): Remove.
3573         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
3574         (struct crtl_name_spec): Remove
3575         (DO_CTRL_NAMES): Remove.
3576         * config/ia64/vms.h (struct crtl_name_spec): Remove
3577         (DO_CTRL_NAMES): Remove.
3578         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
3579         clear some builtins on VMS.  Calls vms_patch_builtins.
3580         (ia64_asm_output_external): Remove DO_CRTL_NAME.
3581         * config/ia64/vms64.h: Do not include vms-crtl-64.h
3582         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
3583
3584 2011-06-27  Tristan Gingold  <gingold@adacore.com>
3585
3586         * config/alpha/alpha.c (alpha_end_function): Always generate .end
3587         directive on VMS.
3588
3589 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3590
3591         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
3592         the function receives nonlocal gotos.
3593
3594 2011-06-27  Richard Guenther  <rguenther@suse.de>
3595
3596         PR tree-optimization/49536
3597         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3598         For non-scalar inner types use a scalar type according to
3599         the scalar inner mode.
3600
3601 2011-06-27  Richard Guenther  <rguenther@suse.de>
3602
3603         PR tree-optimization/49365
3604         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
3605
3606 2011-06-27  Richard Guenther  <rguenther@suse.de>
3607
3608         PR tree-optimization/49169
3609         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
3610         the alignment of function decls.
3611
3612 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
3613
3614         PR target/47997
3615         * config/darwin.c (darwin_mergeable_string_section): Place string
3616         constants in '.cstring' rather than '.const' when CF/NSStrings are
3617         active.
3618
3619 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3620
3621         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
3622         (emit_save_register_window): Likewise.
3623         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
3624         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
3625         Swap back %o7/%i7 in register naming.
3626
3627 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
3628
3629         PR driver/49371
3630         * config/darwin.c (darwin_override_options): Improve warning when
3631         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3632         is given with fpie/fPIE.
3633         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3634         * config/darwin9.h (PIE_SPEC): New.
3635
3636 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3637
3638         * timevar.c (timevar_print): Increase width for display of timevar
3639         name.
3640
3641 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
3642
3643         PR c++/46400
3644         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3645         instead of TYPE_CHAIN for chain_next for types.
3646
3647 2011-06-24  Richard Henderson  <rth@redhat.com>
3648
3649         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3650         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3651         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3652         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3653         (sparc_flat_expand_prologue): Emit individual instructions
3654         instead of one of the above.
3655
3656 2011-06-24  Easwaran Raman  <eraman@google.com>
3657
3658         PR rtl-optimization/49429
3659         PR target/49454
3660         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
3661         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3662         used to copy y into x.
3663         * calls.c (initialize_argument_information): Mark
3664         an argument addressable if it is passed by invisible reference.
3665         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
3666         if it is passed by reference.
3667
3668 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3669
3670         PR rtl-optimization/49504
3671         * rtlanal.c (nonzero_bits1): Properly handle addition or
3672         subtraction of a pointer in Pmode if pointers extend unsigned.
3673         (num_sign_bit_copies1): Likewise.
3674
3675 2011-06-24  Martin Jambor  <mjambor@suse.cz>
3676
3677         PR tree-optimizations/49516
3678         * tree-sra.c (sra_modify_assign): Choose the safe path for
3679         aggregate copies if we also did scalar replacements.
3680
3681 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3682
3683         PR target/49335
3684         * config/arm/predicates.md (add_operator): New.
3685         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3686
3687 2011-06-24  Andi Kleen  <ak@linux.intel.com>
3688
3689         * tree-sra.c (type_internals_preclude_sra_p): Add msg
3690         parameter. Split up ifs and report reason in *msg.
3691         (reject): Add.
3692         (find_var_candiate): Add msg variable.
3693         Split up ifs and report reason to reject.
3694         (find_param_candidates): Add msg variable.
3695         Pass msg to type_internals_preclude_sra_p.
3696
3697 2011-06-23  Jeff Law  <law@redhat.com>
3698
3699         PR middle-end/48770
3700         * reload.h (reload): Change to return a bool.
3701         * ira.c (ira): If requested by reload, run a fast DCE pass after
3702         reload has completed.  Fix comment typo.
3703         * reload1.c (need_dce): New file scoped static.
3704         (reload): Set reload_completed here.  Return whether or not a DCE
3705         pass after reload is needed.
3706         (delete_dead_insn): Set need_dce as needed.
3707
3708         PR middle-end/49465
3709         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3710         to detect threading through joiner block.  If there was already
3711         an edge to the new target, then do not change the PHI nodes.
3712
3713 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
3714
3715         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3716         get_pointer_alignment to see if base isn't sufficiently aligned.
3717
3718 2011-06-23  Jan Hubicka  <jh@suse.cz>
3719
3720         PR tree-optimize/49373
3721         * tree-pass.h (all_late_ipa_passes): Declare.
3722         * cgraphunit.c (init_lowered_empty_function): Fix properties.
3723         (cgraph_optimize): Execute late passes; remove unreachable funcions
3724         after materialization.
3725         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3726         LTOing.
3727         * passes.c (all_late_ipa_passes): Declare.
3728         (dump_passes, register_pass): Handle late ipa passes.
3729         (init_optimization_passes): Move ipa_pta to late passes; schedule
3730         fixup_cfg at beggining of all_passes.
3731         (apply_ipa_transforms): New function.
3732         (execute_one_pass): When doing simple ipa pass, apply all transforms.
3733
3734 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
3735
3736         * params.c: Include common/common-target.h.  Don't include tm.h.
3737         (lang_independent_params): Move from toplev.c.
3738         (global_init_params): New.
3739         * params.h (global_init_params): Declare.
3740         * target.def (default_params): Move to common-target.def.
3741         * toplev.c (lang_independent_options): Remove.
3742         (lang_independent_params): Move to params.c.
3743         (general_init): Use global_init_params.
3744         * common/common-target.def (option_default_params): Move from
3745         target.def.
3746         * common/config/ia64/ia64-common.c: Include params.h.
3747         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3748         from ia64.c.
3749         * common/config/rs6000/rs6000-common.c: Include params.h.
3750         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3751         from rs6000.c.
3752         * common/config/sh/sh-common.c: Include params.h.
3753         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3754         from sh.c.
3755         * common/config/spu/spu-common.c: Include params.h.
3756         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3757         from spu.c.
3758         * config/ia64/ia64.c (ia64_option_default_params,
3759         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3760         * config/rs6000/rs6000.c (rs6000_option_default_params,
3761         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3762         * config/sh/sh.c (sh_option_default_params,
3763         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3764         * config/spu/spu.c (spu_option_default_params,
3765         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3766         * Makefile.in (OBJS): Remove params.o.
3767         (OBJS-libcommon-target): Add params.o.
3768         (params.o, $(common_out_object_file)): Update dependencies.
3769         * doc/tm.texi: Regenerate.
3770
3771 2011-06-23  Alan Modra  <amodra@gmail.com>
3772
3773         PR bootstrap/49383
3774         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3775         invocation for 2011-06-09 changes.
3776
3777 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3778
3779         PR libgomp/49490
3780         * omp-low.c (expand_omp_for_static_nochunk): Only
3781         use n ceil/ nthreads size for the first n % nthreads threads in the
3782         team instead of all threads except for the last few ones which
3783         get less work or none at all.
3784
3785         PR debug/49496
3786         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3787         uses.
3788
3789 2011-06-22  Richard Guenther  <rguenther@suse.de>
3790
3791         PR tree-optimization/49493
3792         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3793         Refer to the alias target of variables.
3794         (associate_varinfo_to_alias_1): Remove.
3795         (ipa_pta_execute): Do not associate aliases with anything.
3796         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3797         (cgraph_function_node): Likewise.
3798         (cgraph_function_or_thunk_node): Likewise.
3799         (varpool_variable_node): Likewise.
3800
3801 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3802
3803         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3804         * config.gcc (arm*-*-linux*): Default to gnu tls.
3805         (arm*-*-*): Add --with-tls option.
3806         (all_defaults): Add 'tls'.
3807
3808 2011-06-22  Richard Henderson  <rth@redhat.com>
3809
3810         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3811         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3812         (dwarf2out_frame_debug_cfa_window_save): Rename from
3813         dwarf2out_window_save; make static.
3814         * tree.h (dwarf2out_window_save): Don't declare.
3815
3816         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3817         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3818         (emit_save_register_window): Rename from gen_save_register_window;
3819         emit the insn and add REG_CFA_* notes.
3820         (sparc_expand_prologue): Update to match.
3821         * config/sparc/sparc.md (save_register_window_1): Simplify from
3822         save_register_window<P:mode>.
3823
3824 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3825
3826         PR target/49497
3827         * config/i386/i386.md (*lea_general_2): Always allow SImode.
3828         (*lea_general_2_zext): Likewise.
3829         (imul to lea peepholes): Use const359_operand and check
3830         TARGET_PARTIAL_REG_STALL.
3831
3832         * config/i386/predicates.md (const359_operand): New.
3833
3834 2011-06-22  Michael Matz  <matz@suse.de>
3835
3836         * cgraphunit.c (assemble_thunk): Use correct return type.
3837
3838 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3839             Dmitry Melnik  <dm@ispras.ru>
3840
3841         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3842         (neon_output_shift_immediate): Ditto.
3843         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3844         prototype.
3845         (neon_output_shift_immediate): Ditto.
3846         * config/arm/neon.md (vashl<mode>3): Modified constraint.
3847         (vashr<mode>3_imm): New insn pattern.
3848         (vlshr<mode>3_imm): Ditto.
3849         (vashr<mode>3): Modified constraint.
3850         (vlshr<mode>3): Ditto.
3851         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3852         predicate.
3853         (imm_for_neon_rshift_operand): Ditto.
3854         (imm_lshift_or_reg_neon): Ditto.
3855         (imm_rshift_or_reg_neon): Ditto.
3856
3857         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3858
3859 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
3860
3861         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3862         builtin calls even if likelyvalue is not CONSTANT.
3863         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3864         Return get_value_for_expr of first operand
3865         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3866         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3867         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3868         their non-checking counterparts.
3869         (call_may_clobber_ref_p_1): Likewise.
3870         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3871         like their non-checking counterparts.
3872         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3873         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3874         like their non-checking counterparts.
3875         (find_func_clobbers): Likewise.
3876         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3877         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3878
3879         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3880         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3881         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3882         of base type reference as argument.
3883         (resolve_addr_in_expr): Likewise.  Fix keep computation.
3884         (convert_descriptor_to_signed): Renamed to...
3885         (convert_descriptor_to_mode): ... this.  For wider types convert to
3886         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3887         (typed_binop): New function.
3888         (scompare_loc_descriptor, ucompare_loc_descriptor,
3889         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3890         default to unsigned type instead of signed.
3891
3892         PR debug/47858
3893         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3894         (gimple_build_debug_source_bind_stat): New prototype.
3895         (gimple_build_debug_source_bind): Define.
3896         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3897         gimple_debug_source_bind_get_value,
3898         gimple_debug_source_bind_get_value_ptr,
3899         gimple_debug_source_bind_set_var,
3900         gimple_debug_source_bind_set_value): New inlines.
3901         * gimple.c (gimple_build_debug_source_bind_stat): New function.
3902         * gimple-pretty-print.c (dump_gimple_debug): Handle
3903         GIMPLE_DEBUG_SOURCE_BIND.
3904         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3905         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3906         * tree-parloops.c (eliminate_local_variables,
3907         separate_decls_in_region): Likewise.
3908         (separate_decls_in_region_debug): Renamed from
3909         separate_decls_in_region_debug_bind.  Handle
3910         gimple_debug_source_bind_p.
3911         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3912         prototypes.
3913         (DECL_HAS_DEBUG_ARGS_P): Define.
3914         (struct tree_function_decl): Add has_debug_args_flag field.
3915         * tree.c (debug_args_for_decl): New variable.
3916         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3917         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3918         (rewrite_debug_stmt_uses): New function.
3919         (rewrite_stmt): Use it to rewrite debug stmt uses.
3920         * rtl.def (DEBUG_PARAMETER_REF): New.
3921         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3922         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3923         DEBUG_PARAMETER_REF.
3924         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3925         * print-rtl.c (print_rtx): Likewise.
3926         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3927         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3928         debug stmts in the first bb.
3929         * tree-inline.c (remap_ssa_name): If remapping default def
3930         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3931         a source bind debug stmt.
3932         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3933         (maybe_move_debug_stmts_to_successors): Likewise.
3934         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
3935         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3936         debug args vector from old_decl to new_decl.
3937         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3938         or modified parameters, add debug bind stmts before call
3939         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3940         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3941         on DECL_DEBUG_EXPRs from debug args vector.
3942         (expand_debug_source_expr): New function.
3943         (expand_debug_locations): Use it for source bind insns.
3944         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3945         * var-tracking.c (prepare_call_arguments): Add debug args
3946         to call_arguments if any.
3947         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3948         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3949         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3950         (get_ref_die_offset, parameter_ref_descriptor): New functions.
3951         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3952         (gen_subprogram_die): Handle parameters identified by
3953         DEBUG_PARAMETER_REF.
3954
3955 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3956
3957         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3958         * doc/install.texi (Configuration): Document --with-tls.
3959         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3960         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3961         (arm_tls_descseq_addr): New.
3962         (legitimize_tls_address): Add tlsdesc support.
3963         (arm_cannot_copy_insn_p): Check for tlscall.
3964         (arm_emit_tls_decoration): Likewise.
3965         * config/arm/arm.h (TARGET_GNU2_TLS): New.
3966         (OPTION_DEFAULT_SPECS): Add with-tls support.
3967         * config/arm/arm.md (R1_REGNUM): Define.
3968         (tlscall): New.
3969         * config/arm/arm.opt (tls_type): New enumeration type and values.
3970         (mtls-dialect): New switch.
3971         * config/arm/arm-opts.h (enum tls_type): New.
3972
3973 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3974
3975         * attribs.c (register_attribute): Added assert to check that all
3976         attribute specs are registered with a name that is not empty and
3977         does not start with '_'.
3978         (decl_attributes): Avoid the lookup of the "naked" attribute spec
3979         if the function has no attributes.
3980         * tree.c (is_attribute_with_length_p): Removed.
3981         (is_attribute_p): Removed.
3982         (private_is_attribute_p): New.
3983         (private_lookup_attribute): New.
3984         (lookup_attribute): Removed.
3985         (lookup_ident_attribute): New.
3986         (remove_attribute): Require the first argument to be in the form
3987         'text', not '__text__'.  Updated asserts.
3988         (merge_attributes): Use lookup_ident_attributes instead of
3989         lookup_attribute.
3990         (merge_dllimport_decl_attributes): Use remove_attribute.
3991         (attribute_list_contained): Likewise.
3992         (attribute_list_equal): Immediately return 1 if the arguments are
3993         identical pointers.
3994         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
3995         'int'.  Require the first argument to be in the form 'text', not
3996         '__text__'.  Require the second argument to be an identifier.
3997         (lookup_attribute): Made inline.  Require the first argument to be
3998         in the form 'text', not '__text__'.
3999         (private_is_attribute_p, private_lookup_attribute): New.
4000         Updated comments.
4001
4002 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
4003
4004         * builtins.c: Add sync_ or SYNC__ to builtin names.
4005         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
4006         * omp-low.c: Add sync_ or SYNC__ to builtin names.
4007
4008 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
4009
4010         PR target/33049
4011         * config/avr/avr.md (extzv): New expander.
4012         (*extzv): New insn.
4013         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
4014         * config/avr/constraints.md (C04): New constraint.
4015         * doc/md.texi (Machine Constraints): Document it.
4016
4017 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
4018
4019         PR middle-end/49489
4020         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
4021         unsignedp argument instead of 1 for clrsb_optab.
4022         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
4023         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
4024         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
4025         * optabs.c (widen_leading): Call widen_operand and expand_unop
4026         with 0 as unsignedp argument instead of 1 for clrsb_optab.
4027         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
4028
4029 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
4030
4031         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
4032
4033 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
4034
4035         * gensupport.c (add_define_attr): New static function.
4036         (is_predicable): Allow multi-alternative lists for the "predicable"
4037         attribute.
4038         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
4039         (process_one_cond_exec): Call alter_attrs_for_insn.
4040         * doc/md.texi (Defining Attributes): Mention some standard names.
4041         (Conditional Execution): Update documentation for "predicable".
4042
4043         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
4044         __builtin_clrsbll): Document.
4045         * doc/rtl.texi (clrsb): New entry.
4046         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
4047         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
4048         (expand_unop): Handle clrsb_optab.
4049         (init_optabs): Initialize it.
4050         * optabs.h (enum optab_index): New entry OTI_clrsb.
4051         (clrsb_optab): Define.
4052         * genopinit.c (optabs): Add an entry for it.
4053         * builtins.c (expand_builtin): Handle clrsb builtin functions.
4054         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
4055         BUILT_IN_CLRSBLL): New.
4056         * rtl.def (CLRSB): New code.
4057         * dwarf2out.c (mem_loc_descriptor): Handle it.
4058         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4059         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
4060         and popcount.
4061         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
4062         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
4063         (__ctzDI2): Move declaration.
4064         * config/bfin/bfin.md (clrsbsi2): New expander.
4065         (signbitssi2): Use the CLRSB rtx.
4066         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
4067         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
4068
4069 2011-06-21  Richard Guenther  <rguenther@suse.de>
4070
4071         * ipa-inline-transform.c (inline_transform): Fix previous change.
4072
4073 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
4074
4075         PR tree-optimization/49478
4076         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
4077         with constant operand.
4078
4079 2011-06-21  Richard Guenther  <rguenther@suse.de>
4080
4081         * ipa-inline-transform.c (inline_transform): Fix typo.
4082
4083 2011-06-21  Richard Guenther  <rguenther@suse.de>
4084
4085         PR tree-optimization/49483
4086         * tree-vect-stmts.c (vectorizable_assignment): Also handle
4087         VIEW_CONVERT_EXPR conversions.
4088
4089 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
4090
4091         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
4092         * config/avr/avr-tables.opt: New file (generated).
4093         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
4094         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
4095         avr-mcus.def.
4096         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
4097         (avr_option_override): Don't process -mmcu= argument here.  Set
4098         avr_current_device using avr_mcu_index.
4099         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
4100         * config/avr/avr.opt (mmcu=): Use Enum.
4101         * config/avr/t-avr (avr-devices.o): Update dependencies.
4102         ($(srcdir)/config/avr/avr-tables.opt): New.
4103         * target.def (help): Remove.
4104         * doc/tm.texi.in (TARGET_HELP): Remove.
4105         * doc/tm.texi: Regenerate.
4106         * opts.c: Don't include target.h.
4107         (common_handle_option): Don't call targetm.help.
4108         * system.h (TARGET_HELP): Poison.
4109         * Makefile.in (opts.o): Update dependencies.
4110
4111 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4112
4113         * config/usegld.h: New file.
4114         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
4115         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
4116         (LIB_SPEC): Likewise.  Search /lib.
4117         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
4118         (RDYNAMIC_SPEC): Handle GNU ld.
4119         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
4120         Define.
4121         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
4122         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
4123         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
4124         (STACK_CHECK_STATIC_BUILTIN): Define.
4125         * config/sol2.opt (compat-bsd): Remove.
4126         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
4127         * config/sol2-bi.h: New file.
4128         * config/sol2-gld.h: Remove.
4129         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
4130         (NO_DBX_BNSYM_ENSYM): Remove.
4131         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4132         (STACK_CHECK_STATIC_BUILTIN): Remove.
4133         Test USE_GLD instead of TARGET_GNU_LD.
4134         * config/i386/sol2-10.h: Rename to ...
4135         * config/i386/sol2-bi.h .. this.
4136         (SUBTARGET_EXTRA_SPECS): Redefine.
4137         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
4138         (MULTILIB_DEFAULTS): Remove.
4139         (DEFAULT_ARCH32_P): Define.
4140         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
4141         (ARCH64_SUBDIR): Define.
4142         Test USE_GLD instead of TARGET_GNU_LD.
4143         (I386_EMULATION): Rename to ...
4144         (ARCH32_EMULATION): ... this.
4145         (X86_64_EMULATION): Rename to ...
4146         (ARCH64_EMULATION): ... this.
4147         (TARGET_LD_EMULATION): Remove.
4148         (LINK_ARCH_SPEC): Remove.
4149         * config/i386/sol2-gas.h: Remove.
4150         * config/i386/t-sol2-10: Rename to ...
4151         * config/i386/t-sol2-64: ... this.
4152         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
4153         (AS_SPARC64_FLAG): Define.
4154         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
4155         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
4156         depending on TARGET_CPU_DEFAULT.
4157         (CPP_CPU_SPEC): Redefine.
4158         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
4159         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
4160         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
4161         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
4162         ASM_ARCH_DEFAULT_SPEC): Redefine.
4163         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4164         LINK_ARCH_DEFAULT_SPEC.
4165         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
4166         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
4167         (ARCH64_SUBDIR): Define.
4168         (LINK_ARCH64_SPEC): Redefine.
4169         (CC1_SPEC): Redefine.
4170         (OPTION_DEFAULT_SPECS): Redefine.
4171         (MULTILIB_DEFAULTS): Define.
4172         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
4173         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
4174         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
4175         (NO_DBX_BNSYM_ENSYM): Remove.
4176         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4177         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
4178         (TARGET_ASM_NAMED_SECTION): Likewise.
4179         (STACK_CHECK_STATIC_BUILTIN): Remove.
4180         * config/sparc/sol2-bi.h: Remove.
4181         * config/sparc/sol2-gas-bi.h: Remove.
4182         * config/sparc/sol2-gas.h: Remove.
4183         * config/sparc/sol2-gld-bi.h: Remove.
4184         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
4185         common parts ...
4186         (*-*-solaris2*): ... here.
4187
4188 2011-06-21  Christian Bruel  <christian.bruel@st.com>
4189
4190         PR other/43564
4191         * ipa-inline.c (can_inline_edge_p): Check
4192         !DECL_DISREGARD_INLINE_LIMITS.
4193
4194 2011-06-21  Christian Bruel  <christian.bruel@st.com>
4195
4196         PR middle-end/49139
4197         * cgraphunit.c (process_function_and_variable_attributes): warn when
4198         always_inline functions that are not inline.
4199         * ipa-inline-transform.c (inline_transform): Always call
4200         optimize_inline.
4201         * tree-inline.c (tree_inlinable_function_p): Use error instead
4202         of sorry.
4203         (expand_call_inline): Likewise.
4204
4205 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
4206
4207         * Makefile.in (dg_target_exps): Set.
4208         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
4209         instead of 7, try to divide it more evenly.
4210
4211 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
4212
4213         PR target/49089
4214         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
4215         (avx256_split_unaligned_store): New definition.
4216         (ix86_option_override_internal): Enable avx256 unaligned load/store
4217         splitting only when avx256_split_unaligned_load/store is set.
4218
4219 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4220
4221         * regrename.c (scan_rtx_reg): Handle the case where we write to an
4222         open chain in a smaller mode without failing the entire block.
4223
4224 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
4225
4226         PR middle-end/47725
4227         * combine.c (cant_combine_insn_p): Don't check zero/sign
4228         extended hard registers.
4229
4230 2011-06-21  Alan Modra  <amodra@gmail.com>
4231
4232         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
4233         CONST high part large-toc address.
4234         (rs6000_tls_referenced_p): Make static.
4235         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
4236
4237 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
4238
4239         PR middle-end/47725
4240         * combine.c (cant_combine_insn_p): Check zero/sign extended
4241         hard registers.
4242
4243 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4244
4245         PR target/49385
4246         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
4247         one of the operands is a register.
4248
4249 2011-06-20  Kai Tietz  <ktietz@redhat.com>
4250
4251         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
4252         operations in combination with binary and.
4253
4254 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
4255
4256         * regrename.c (do_replace): Don't update notes.
4257
4258 2011-06-20  Alan Modra  <amodra@gmail.com>
4259
4260         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
4261         of toc-relative address in CONST.
4262         (rs6000_delegitimize_address): Recognize changed address.
4263         (rs6000_legitimize_reload_address): Likewise.
4264         (rs6000_emit_move): Don't force these constants to memory.
4265         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
4266         toc-relative address in CONST.
4267         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
4268         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
4269
4270 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4271
4272         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
4273         (count_trailing_zeros): Likewise.
4274
4275 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4276
4277         PR other/49325
4278         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
4279         .init_array can be used with .ctors on targets.
4280         * configure: Regenerated.
4281
4282 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4283
4284         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
4285         if the element type is volatile.
4286
4287 2011-06-18  Jan Hubicka  <jh@suse.cz>
4288
4289         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
4290         extra name aliases.
4291         (lto_symtab_resolve_can_prevail_p): Likewise.
4292         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
4293         * cgraphbuild.c (record_reference): Remove extra body alias code.
4294         (mark_load): Likewise.
4295         (mark_store): Likewise.
4296         * cgraph.h (varpool_node): Remove extra_name filed;
4297         add alias_of and extraname_alias.
4298         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
4299         (varpool_alias_aliased_node): New inline function.
4300         (varpool_variable_node): New function.
4301         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
4302         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
4303         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
4304         (input_varpool_node): Likewise.
4305         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
4306         (varpool_externally_visible_p): Remove extra body alias code.
4307         (function_and_variable_visibility): Likewise.
4308         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
4309         (ipa_pta_execute): Use it.
4310         * varpool.c (varpool_remove_node): Remove extra name alias code.
4311         (varpool_mark_needed_node): Likewise.
4312         (varpool_analyze_pending_decls): Analyze aliases.
4313         (assemble_aliases): New functoin.
4314         (varpool_assemble_decl): Use it.
4315         (varpool_create_variable_alias): New function.
4316         (varpool_extra_name_alias): Rewrite.
4317         (varpool_for_node_and_aliases): New function.
4318
4319 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
4320
4321         PR target/49411
4322         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
4323         last_arg_constant and last argument doesn't match its predicate,
4324         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
4325         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
4326         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
4327         spelling of error message.
4328         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
4329         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
4330         const_0_to_255_operand instead of const_int_operand.
4331
4332         Revert:
4333         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
4334
4335         * config/i386/sse.md (blendbits): Remove mode attribute.
4336         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4337         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4338         Check integer value of operand 3 in insn constraint.
4339
4340 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
4341
4342         PR rtl-optimization/48542
4343         * reload.c (find_equiv_reg): Stop looking when finding a
4344         setjmp-type call.
4345         * reload1.c (reload_as_needed): Invalidate all reload
4346         registers when crossing a setjmp-type call.
4347
4348 2011-06-16  Jeff Law  <law@redhat.com>
4349
4350         * tree-ssa-threadupdate.c (struct redirection_data): New field
4351         intermediate_edge.
4352         (THREAD_TARGET2): Define.
4353         (redirection_data_eq): Also check that the intermediate edge is equal.
4354         (lookup_redirection_data): Drop useless argument.  Extract the
4355         outgoing_edge and intermediate edge from E.  Callers updated.
4356         (copy_phi_args, update_destination_phis): New functions.
4357         (fix_duplicate_block_edges): Likewise.
4358         (create_edge_and_update_destination_phis): Duplicate all the edges
4359         hung off e->aux.  Use copy_phi_args.
4360         (create_duplicates): Use fix_duplicate_block_edges.
4361         (fixup_template_block): Likewise.
4362         (redirect_edges): If necessary, redirect the joiner block's incoming
4363         edge to the duplicate of the joiner block.
4364         (thread_block): Don't muck up loops when threading through a joiner
4365         block.
4366         (thread_through_loop_header): Handle threading through a joiner block.
4367         (mark_threaded_blocks, register_jump_thread): Likewise.
4368         * tree-flow.h (register_jump_thread): Add new argument.  Callers
4369         updated.
4370         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
4371         (thread_across_edge): Handle threading through a joiner block.
4372
4373 2011-06-16  Martin Jambor  <mjambor@suse.cz>
4374
4375         PR tree-optimization/49343
4376         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
4377         calculate offset, provide 2nd operand for the new COMPONENT_REF.
4378
4379 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
4380
4381         * config/darwin-protos.h (machopic_select_rtx_section): Move to
4382         inside RTX_CODE ifdef.
4383
4384 2011-06-16  Tom de Vries  <tom@codesourcery.com>
4385
4386         PR target/45098
4387         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
4388         Disallow NULL pointer for pointer arithmetic.
4389
4390 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4391
4392         PR target/49398
4393         Revert.
4394         2011-06-10  Wei Guozhi  <carrot@google.com>
4395
4396         PR target/45335
4397         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4398         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4399         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4400         related peephole2.
4401         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4402         related peephole2.
4403         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4404         (arm_legitimate_ldrd_p): New prototype.
4405         (arm_output_ldrd): New prototype.
4406         * config/arm/arm.c (arm_check_ldrd_operands): New function.
4407         (arm_legitimate_ldrd_p): New function.
4408         (arm_output_ldrd): New function.
4409
4410 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4411
4412         PR middle-end/46500
4413         * doc/tm.texi.in: Update Copyright date.
4414         * doc/tm.texi: Regenerate.
4415         * targhooks.c (default_setup_incoming_varargs): Replace
4416         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4417         (default_pretend_outgoing_varargs_named): Likewise.
4418         (hook_pass_by_reference_must_pass_in_stack): Likewise.
4419         (hook_callee_copies_named): Likewise.
4420         (default_function_arg_advance): Likewise.
4421         (default_function_arg): Likewise.
4422         (default_function_incoming_arg): Likewise.
4423         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4424         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4425         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4426         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4427         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4428         * targhooks.h (default_setup_incoming_varargs): Likewise.
4429         (default_pretend_outgoing_varargs_named): Likewise.
4430         (hook_pass_by_reference_must_pass_in_stack): Likewise.
4431         (hook_callee_copies_named): Likewise.
4432         (default_function_arg_advance): Likewise.
4433         (default_function_arg): Likewise.
4434         (default_function_incoming_arg): Likewise.
4435         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4436         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4437         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4438         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4439         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4440         * target.def (pass_by_reference): Likewise.
4441         (setup_incoming_varargs, strict_argument_naming): Likewise.
4442         (pretend_outgoing_varargs_named, callee_copies): Likewise.
4443         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
4444         (function_incoming_arg): Likewise.
4445         * target.h: Don't include "tm.h" .
4446         (cumulative_args_t): New typedef.
4447         [GCC_TM_H] (get_cumulative_args): New static inline function.
4448         [GCC_TM_H] (pack_cumulative_args): Likewise.
4449         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
4450         argument type with cumulative_args_t.
4451         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
4452         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
4453         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4454         (frv_arg_partial_bytes, frv_function_arg): Likewise.
4455         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
4456         (frv_function_arg_1): Likewise.
4457         * config/s390/s390.c (s390_pass_by_reference): Likewise.
4458         (s390_function_arg_advance, s390_function_arg): Likewise.
4459         * config/m32c/m32c.c (m32c_function_arg): Likewise.
4460         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
4461         (m32c_strict_argument_naming): Likewise.
4462         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
4463         (spu_function_arg_advance): Likewise.
4464         (spu_setup_incoming_varargs): Likewise.  Make static.
4465         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
4466         Remove prototype.
4467         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
4468         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4469         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
4470         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
4471         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
4472         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
4473         (mep_pass_by_reference, mep_function_arg): Likewise.
4474         (mep_function_arg_advance): Likewise.
4475         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4476         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
4477         (m32r_function_arg, m32r_function_arg_advance): Likewise.
4478         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
4479         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4480         (ix86_function_arg, ix86_pass_by_reference): Likewise.
4481         (ix86_setup_incoming_varargs): Likewise.
4482         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4483         (sh_strict_argument_naming): Likewise.
4484         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
4485         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
4486         (sh_function_arg_advance, sh_function_arg): Likewise.
4487         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4488         (pdp11_function_arg_advance): Likewise.
4489         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4490         Likewise.
4491         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
4492         * config/avr/avr.c (avr_function_arg): Likewise.
4493         (avr_function_arg_advance): Likewise.
4494         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4495         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
4496         (xtensa_function_arg_1): Likewise.
4497         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
4498         Likewise.
4499         (xstormy16_function_arg): Likewise.
4500         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4501         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4502         (fr30_function_arg_advance): Likewise.
4503         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4504         (lm32_function_arg, lm32_function_arg_advance): Likewise.
4505         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4506         (moxie_function_arg, moxie_function_arg_advance): Likewise.
4507         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
4508         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4509         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
4510         (cris_function_arg, cris_function_incoming_arg): Likewise.
4511         (cris_function_arg_advance, cris_function_arg_1): Likewise.
4512         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4513         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
4514         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
4515         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4516         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
4517         (mn10300_arg_partial_bytes): Likewise.
4518         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4519         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
4520         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
4521         (ia64_function_arg_1): Likewise.
4522         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4523         (m68k_function_arg): Likewise.
4524         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
4525         (rs6000_function_arg, setup_incoming_varargs): Likewise.
4526         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
4527         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
4528         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
4529         (picochip_arg_advance): Likewise.
4530         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4531         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
4532         (mcore_function_arg_advance): Likewise.
4533         * config/score/score.c (score_pass_by_reference): Likewise.
4534         (score_function_arg_advance): Likewise.
4535         (score_arg_partial_bytes): Likewise.  Make static.
4536         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
4537         * config/arm/arm.c (arm_arg_partial_bytes): Replace
4538         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4539         (arm_function_arg, arm_function_arg_advance): Likewise.
4540         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
4541         * config/pa/pa.c (pa_pass_by_reference): Likewise.
4542         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
4543         (pa_function_arg): Likewise.
4544         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
4545         (mips_function_arg, mips_function_arg_advance): Likewise.
4546         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
4547         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
4548         * config/vax/vax.c (vax_function_arg): Likewise.
4549         (vax_function_arg_advance): Likewise.
4550         * config/h8300/h8300.c (h8300_function_arg): Likewise.
4551         (h8300_function_arg_advance): Likewise.
4552         * config/v850/v850.c (v850_pass_by_reference): Likewise.
4553         (v850_strict_argument_naming, v850_function_arg): Likewise.
4554         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
4555         (v850_setup_incoming_varargs): Likewise.
4556         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4557         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
4558         (mmix_function_arg, mmix_pass_by_reference): Likewise.
4559         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
4560         with const void *.
4561         * config/bfin/bfin.c (setup_incoming_varargs): Replace
4562         CUMULATIVE_ARGS* argument type with cumulative_args_t.
4563         (bfin_function_arg_advance, bfin_function_arg): Likewise.
4564         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
4565         * calls.c (emit_call_1): Change type of args_so_far to
4566         cumulative_args_t.  Changed all callers.
4567         (initialize_argument_information): Likewise.
4568         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
4569         * dse.c (get_call_args): Likewise.
4570         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4571         * function.c (pass_by_reference, reference_callee_copied): Likewise.
4572         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
4573         New member args_so_far_v.  Changed all users.
4574         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
4575         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4576         * config/mips/mips.c (mips_output_args_xfer): Likewise.
4577         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4578         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4579         * config/microblaze/microblaze.c (microblaze_expand_prologue):
4580         Likewise.
4581         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
4582         m32r_pass_by_reference.
4583
4584 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
4585
4586         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
4587         argument to be a VEC of statements.
4588         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
4589         assert that pattern statements have to have their vector type set.
4590         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
4591         Change the first argument to be a VEC of statements.  Update
4592         documentation.
4593         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
4594         (vect_handle_widen_mult_by_const): New function.
4595         (vect_recog_widen_mult_pattern):  Change the first argument to be a
4596         VEC of statements.  Update documentation.  Check that the constant is
4597         INTEGER_CST.  Support multiplication by a constant that fits an
4598         intermediate type - call vect_handle_widen_mult_by_const.
4599         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
4600         call.  Handle additional pattern statements if necessary.
4601
4602 2011-06-16  Nick Clifton  <nickc@redhat.com>
4603
4604         PR target/49427
4605         * config.gcc: Set cpu_type to v850 for any V850 architecture.
4606         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
4607         md_file, extra_modes, out_file and extra_options are these are all
4608         deduced from cpu_type.
4609
4610 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
4611
4612         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
4613         truncation mask to 63.
4614
4615 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
4616
4617         PR target/49313
4618         PR target/29524
4619         * longlong.h: Add AVR support:
4620         (count_leading_zeros): New macro.
4621         (count_trailing_zeros): New macro.
4622         (COUNT_LEADING_ZEROS_0): New macro.
4623         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
4624         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
4625         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4626         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
4627         (LIB2FUNCS_EXCLUDE): Add _clz.
4628         * config/avr/libgcc.S (XCALL): Move up in file.
4629         (XJMP): New C Macro.
4630         (DEFUN): New asm macro.
4631         (ENDF): New asm macro.
4632         (__ffssi2): New function.
4633         (__ffshi2): New function.
4634         (__loop_ffsqi2): New function.
4635         (__ctzsi2): New function.
4636         (__ctzhi2): New function.
4637         (__clzdi2): New function.
4638         (__clzsi2): New function.
4639         (__clzhi2): New function.
4640         (__paritydi2): New function.
4641         (__paritysi2): New function.
4642         (__parityhi2): New function.
4643         (__parityqi2): New function.
4644         (__popcounthi2): New function.
4645         (__popcountsi2): New function.
4646         (__popcountdi2): New function.
4647         (__popcountqi2): New function.
4648         (__bswapsi2): New function.
4649         (__bswapdi2): New function.
4650         (__ashldi3): New function.
4651         (__ashrdi3): New function.
4652         (__lshrdi3): New function.
4653         Fix suspicous lines.
4654
4655 2011-06-16  Richard Guenther  <rguenther@suse.de>
4656
4657         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4658         the same as x != 0.
4659         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4660         to (bool) X & 1.
4661         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4662         equality compares against zero for the lower bit.
4663
4664 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
4665
4666         PR tree-optimization/49419
4667         * tree-vrp.c (execute_vrp): Call init_range_assertions
4668         before estimate_numbers_of_iterations, call
4669         free_number_of_iterations_estimates before calling
4670         remove_range_assertions.
4671
4672 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4673
4674         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4675         (struct partial_schedule): Add rows_length field.
4676         (verify_partial_schedule): Check rows_length.
4677         (ps_insert_empty_row): Handle rows_length.
4678         (create_partial_schedule): Likewise.
4679         (free_partial_schedule): Likewise.
4680         (reset_partial_schedule): Likewise.
4681         (create_ps_insn): Remove rest_count argument.
4682         (remove_node_from_ps): Update rows_length.
4683         (add_node_to_ps): Update rows_length and call create_ps_insn
4684         without passing row_rest_count.
4685         (rotate_partial_schedule): Update rows_length.
4686
4687 2011-06-16  Revital Eres  <revital.eres@linaro.org>
4688
4689         * ddg.c (add_intra_loop_mem_dep): New function.
4690         (build_intra_loop_deps): Call it.
4691
4692 2011-06-13  Jeff Law  <law@redhat.com>
4693
4694         * df-problems.c (df_lr_local_compute): Manually CSE
4695         PIC_OFFSET_TABLE_REGNUM.
4696         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4697         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4698
4699 2011-06-13  Jan Hubicka  <jh@suse.cz>
4700
4701         * cgraphunit.c (handle_alias_pairs): New function.
4702         (cgraph_finalize_compilation_unit): Use it.
4703         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4704         as externally visible.
4705
4706 2011-06-15  Richard Guenther  <rguenther@suse.de>
4707
4708         * expr.c (expand_expr_real_2): Reduce all integral types to
4709         bitfield precision.
4710         (expand_expr_real_1): Likewise.
4711
4712 2011-06-15  Martin Jambor  <mjambor@suse.cz>
4713
4714         PR tree-optimization/48613
4715         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4716         ipa_node_params_vector is NULL.
4717
4718 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
4719
4720         PR debug/49382
4721         * dwarf2out.c (dw_loc_list_node): Add force field.
4722         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4723         location in the list, even if it is modified before first real insn.
4724         (output_loc_list): Emit empty ranges with force flag set.
4725         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4726
4727 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
4728
4729         PR target/49349
4730         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4731         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
4732         above a fence.  Update comments.
4733         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4734         placed just above it.  Do not allow NULL place_to_insert.
4735
4736 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
4737
4738         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4739         (slpeel_tree_peel_loop_to_edge): Don't call
4740         remove_dead_stmts_from_loop.
4741         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4742         remove irrelevant pattern statements.  For irrelevant statements
4743         check if it is the last statement of a detected pattern, use
4744         corresponding pattern statement instead.
4745         (destroy_loop_vec_info): No need to remove pattern statements,
4746         only free stmt_vec_info.
4747         (vect_transform_loop): For irrelevant statements check if it is
4748         the last statement of a detected pattern, use corresponding
4749         pattern statement instead.
4750         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4751         pattern statements.  Set basic block for the new statement.
4752         (vect_pattern_recog): Update documentation.
4753         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4754         operands of pattern statements.
4755         (vectorizable_call): Fix printing.  In case of a pattern statement
4756         use the lhs of the original statement when creating a dummy
4757         statement to replace the original call.
4758         (vect_analyze_stmt): For irrelevant statements check if it is
4759         the last statement of a detected pattern, use corresponding
4760         pattern statement instead.
4761         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4762         statements use gsi of the original statement.
4763
4764 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4765
4766         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4767         common/common-target-def.h.
4768         * target.def (default_target_flags, handle_option,
4769         supports_split_stack, optimization_table, init_struct,
4770         except_unwind_info, unwind_tables_default, have_named_sections):
4771         Move to common/common-target.def.
4772         * target.h (enum opt_levels, struct default_options): Move to
4773         common/common-target.h.
4774         * targhooks.c (default_except_unwind_info,
4775         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4776         default_target_handle_option, empty_optimization_table): Move to
4777         common/common-targhooks.c.
4778         * targhooks.h (default_except_unwind_info,
4779         dwarf2_except_unwind_info, sjlj_except_unwind_info,
4780         default_target_handle_option, empty_optimization_table): Move to
4781         common/common-targhooks.h.
4782         * common/common-target-def.h: Include common/common-targhooks.h.
4783         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4784         defined.
4785         * common/common-target.def (handle_option, option_init_struct,
4786         option_optimization_table, default_target_flags,
4787         except_unwind_info, supports_split_stack, unwind_tables_default,
4788         have_named_sections): Move from target.def.
4789         (HOOK_PREFIX): Undefine at end of file.
4790         * common/common-target.h: Include input.h.
4791         (enum opt_levels, struct default_options): Move from target.h.
4792         * common/common-targhooks.c, common/common-targhooks.h: New.
4793         * config.gcc (target_has_targetm_common): Default to yes.
4794         (moxie*): Set target_has_targetm_common=no.
4795         (hppa*-*-*): Don't set target_has_targetm_common=yes.
4796         * doc/tm.texi: Regenerate.
4797         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4798         (C_TARGET_DEF_H): Add common/common-targhooks.h.
4799         (GCC_OBJS): Remove vec.o.
4800         (OBJS): Remove hooks.o and vec.o.
4801         (OBJS-libcommon-target): Add vec.o, hooks.o and
4802         common/common-targhooks.o.
4803         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4804         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4805         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4806         cfglayout.o, $(out_object_file), $(common_out_object_file)):
4807         Update dependencies.
4808         (common/common-targhooks.o): New.
4809         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
4810         * common/config/pa/pa-common.c: Include more headers.  Take
4811         copyright dates from pa.c.
4812         (pa_option_optimization_table, pa_handle_option,
4813         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4814         TARGET_HANDLE_OPTION): Move from pa.c.
4815         * common/config/alpha/alpha-common.c,
4816         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4817         common/config/bfin/bfin-common.c,
4818         common/config/cris/cris-common.c,
4819         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4820         common/config/h8300/h8300-common.c,
4821         common/config/i386/i386-common.c,
4822         common/config/ia64/ia64-common.c,
4823         common/config/iq2000/iq2000-common.c,
4824         common/config/lm32/lm32-common.c,
4825         common/config/m32c/m32c-common.c,
4826         common/config/m32r/m32r-common.c,
4827         common/config/m68k/m68k-common.c,
4828         common/config/mcore/mcore-common.c,
4829         common/config/mep/mep-common.c,
4830         common/config/microblaze/microblaze-common.c,
4831         common/config/mips/mips-common.c,
4832         common/config/mmix/mmix-common.c,
4833         common/config/mn10300/mn10300-common.c,
4834         common/config/pdp11/pdp11-common.c,
4835         common/config/picochip/picochip-common.c,
4836         common/config/rs6000/rs6000-common.c,
4837         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4838         common/config/score/score-common.c, common/config/sh/sh-common.c,
4839         common/config/sparc/sparc-common.c,
4840         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4841         common/config/vax/vax-common.c,
4842         common/config/xstormy16/xstormy16-common.c,
4843         common/config/xtensa/xtensa-common.c: New.
4844         * config/alpha/alpha.c: Include common/common-target.h.
4845         (alpha_option_optimization_table, alpha_handle_option,
4846         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4847         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4848         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4849         * config/arm/arm.c (arm_option_optimization_table,
4850         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4851         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4852         arm-common.c.
4853         * config/avr/avr.c (avr_option_optimization_table,
4854         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4855         to avr-common.c.
4856         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4857         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4858         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4859         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4860         * config/cris/cris.c (cris_option_optimization_table,
4861         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4862         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4863         cris-common.c.
4864         * config/fr30/fr30.c (fr30_option_optimization_table,
4865         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4866         to fr30-common.c.
4867         * config/frv/frv.c (frv_option_optimization_table,
4868         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4869         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4870         * config/h8300/h8300.c (h8300_option_optimization_table,
4871         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4872         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4873         * config/i386/i386-protos.h (ix86_handle_option): Declare.
4874         * config/i386/i386.c: Include common/common-target.h.
4875         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4876         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4877         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4878         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4879         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4880         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4881         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4882         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4883         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4884         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4885         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4886         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4887         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4888         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4889         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4890         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4891         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4892         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4893         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4894         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4895         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4896         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4897         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4898         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4899         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4900         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4901         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4902         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4903         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4904         ix86_option_optimization_table, ix86_option_init_struct,
4905         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4906         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4907         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4908         i386-common.c.
4909         * config/i386/t-i386 (i386.o): Update dependencies.
4910         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4911         * config/ia64/ia64.c (ia64_option_optimization_table,
4912         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4913         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4914         ia64_handle_option): Move to ia64-common.c.
4915         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4916         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4917         * config/lm32/lm32.c (lm32_option_optimization_table,
4918         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4919         to lm32-common.c.
4920         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4921         m32c-common.c.
4922         * config/m32r/m32r.c (m32r_option_optimization_table,
4923         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4924         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4925         m32r_handle_option): Move to m32r-common.c.
4926         (m32r_memory_move_cost): Remove comment referring to
4927         TARGET_HANDLE_OPTION.
4928         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4929         Move to m68k-common.c.
4930         * config/mcore/mcore.c (mcore_option_optimization_table,
4931         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4932         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4933         * config/mep/mep.c (mep_option_optimization_table,
4934         mep_handle_option, TARGET_HANDLE_OPTION,
4935         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4936         Move to mep-common.c.
4937         * config/microblaze/microblaze.c
4938         (microblaze_option_optimization_table,
4939         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4940         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4941         * config/mips/mips.c (mips_handle_option,
4942         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4943         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4944         mips-common.c.
4945         * config/mmix/mmix.c (mmix_option_optimization_table,
4946         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4947         Move to mmix-common.c.
4948         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4949         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4950         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4951         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4952         * config/pa/pa.c: Include common/common-target.h.
4953         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4954         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4955         pa_handle_option): Move to pa-common.c.
4956         (pa_option_override): Use targetm_common.except_unwind_info.
4957         (pa_asm_output_mi_thunk, pa_function_section): Use
4958         targetm_common.have_named_sections.
4959         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4960         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4961         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4962         pdp11_handle_option, pdp11_option_init_struct): Move to
4963         pdp11-common.c.
4964         * config/picochip/picochip.c (picochip_option_optimization_table,
4965         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4966         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4967         * config/rs6000/rs6000.c: Include common/common-target.h.
4968         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4969         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4970         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4971         rs6000_handle_option): Move to rs6000-common.c.
4972         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4973         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4974         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4975         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4976         * config/s390/s390.c (processor_flags_table,
4977         s390_option_optimization_table, s390_option_init_struct,
4978         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4979         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4980         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4981         * config/s390/s390.h (processor_flags_table): Declare.
4982         * config/score/score.c (score_option_optimization_table,
4983         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4984         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4985         score_handle_option): Move to score-common.c.
4986         * config/sh/sh.c (sh_option_optimization_table,
4987         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4988         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4989         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4990         * config/sparc/sparc.c: Include common/common-target.h.
4991         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4992         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4993         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4994         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4995         spu_option_init_struct): Move to spu-common.c.
4996         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4997         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4998         * config/v850/v850.c (small_memory_physical_max,
4999         v850_handle_memory_optionn v850_handle_option,
5000         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
5001         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
5002         v850-common.c.
5003         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
5004         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
5005         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
5006         Move to xtensa-common.c.
5007         * cfglayout.c: Include common/common-target.h.
5008         (fixup_reorder_chain): Use targetm_common.have_named_sections.
5009         * cfgrtl.c: Include common/common-target.h.
5010         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
5011         targetm_common.have_named_sections.
5012         * dbxout.c: Include common/common-target.h.
5013         (dbxout_function_end): Use targetm_common.have_named_sections.
5014         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
5015         targetm_common.except_unwind_info.
5016         * dwarf2out.c: Include common/common-target.h.
5017         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
5018         dwarf2out_begin_prologue, dwarf2out_frame_init,
5019         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
5020         targetm_common.except_unwind_info.
5021         * except.c: Include common/common-target.h.
5022         (init_eh, finish_eh_generation,
5023         output_one_function_exception_table): Use
5024         targetm_common.except_unwind_info.
5025         (switch_to_exception_section): Use targetm_common.have_named_sections.
5026         * explow.c: Include common/common-target.h.
5027         * expr.c: Include common/common-target.h.
5028         (build_personality_function): Use targetm_common.except_unwind_info.
5029         * function.c: Include common/common-target.h.
5030         (expand_function_end): Use targetm_common.except_unwind_info.
5031         * haifa-sched.c: Include common/common-target.h.
5032         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
5033         * lto-opts.c: Include common/common-target.h instead of target.h.
5034         (lto_reissue_options): Use targetm_common.handle_option.
5035         * opts.c: Include common/common-target.h.
5036         (target_handle_option): Use targetm_common.handle_option.
5037         (init_options_struct): Update comment referring to
5038         targetm.target_option.optimization.  Use
5039         targetm_common.default_target_flags,
5040         targetm_common.unwind_tables_default and
5041         targetm_common.option_init_struct.
5042         (default_options_optimization): Use
5043         targetm_common.option_optimization_table.
5044         (finish_options): Use targetm_common.except_unwind_info,
5045         targetm_common.unwind_tables_default,
5046         targetm_common.have_named_sections and
5047         targetm_common.supports_split_stack.
5048         * toplev.c: Include common/common-target.h.
5049         (process_options): Use targetm_common.have_named_sections.
5050         * tree-tailcall.c: Include common/common-target.h.
5051         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
5052         * tree.c: Include common/common-target.h.
5053         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
5054         * varasm.c: Include common/common-target.h.
5055         (resolve_unique_section, hot_function_section,
5056         default_function_section): Use targetm_common.have_named_sections.
5057
5058 2011-06-14  Easwaran Raman  <eraman@google.com>
5059
5060         PR rtl-optimization/44194
5061         * dse.c: Include tree-flow.h
5062         (insn_info): Add new field non_frame_wild_read.
5063         (group_info): Add new fields escaped_n and escaped_p.
5064         (kill_on_calls): New variable.
5065         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
5066         (dse_step0): Initialize kill_on_calls.
5067         (can_escape): New function.
5068         (set_usage_bits): Add additional parameter; record information
5069         about escaped locations.
5070         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
5071         (dse_step2_nospill): Set kill_on_calls based on
5072         group->escaped_n and group->escaped_n.
5073         (add_wild_read): Refactor into...
5074         (reset_active_stores): ... New function, and
5075         (free_read_records): ... New function.
5076         (add_non_frame_wild_read): New function.
5077         (scan_insn): Call add_non_frame_wild_read on non-const calls.
5078         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
5079         (dse_step5_nospill): Call scan_reads_nospill for instructions
5080         marked as non_frame_wild_read.
5081         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
5082
5083 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
5084
5085         * common/common-target-def.h, common/common-target.def,
5086         common/common-target.h, common/config/default-common.c,
5087         common/config/pa/pa-common.c: New files.
5088         * Makefile.in (common_out_file, common_out_object_file,
5089         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
5090         (OBJS-libcommon-target): Include $(common_out_object_file).
5091         (prefix.o): Update dependencies.
5092         ($(common_out_object_file), common/common-target-hooks-def.h,
5093         s-common-target-hooks-def-h): New.
5094         (s-tm-texi): Also check timestamp on common-target.def.
5095         (build/genhooks.o): Update dependencies.
5096         * config.gcc (common_out_file, target_has_targetm_common): Define.
5097         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
5098         TARGET_ALWAYS_STRIP_DOTDOT.
5099         * configure.ac (common_out_object_file): Define.
5100         (common_out_file, common_out_object_file): Substitute.
5101         (common): Create directory.
5102         * configure: Regenerate.
5103         * doc/tm.texi.in (targetm_common): Document.
5104         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
5105         * doc/tm.texi: Regenerate.
5106         * genhooks.c (hook_array): Also include common/common-target.def.
5107         * prefix.c (tm.h): Don't include.
5108         (common/common-target.h): Include.
5109         (ALWAYS_STRIP_DOTDOT): Don't define.
5110         (update_path): Use targetm_common.always_strip_dotdot instead of
5111         ALWAYS_STRIP_DOTDOT.
5112         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
5113
5114 2011-06-14  David Li  <davidxl@google.com>
5115
5116         * passes.c (execute_function_todo): Remove TODO_dump_func.
5117         (execute_one_pass): Remove TODO_dump_func.
5118         (execute_function_dump): New function.
5119         * tree-vrp.c: Remove TODO_dump_func.
5120         * regrename.c: Remove TODO_dump_func.
5121         * fwprop.c: Remove TODO_dump_func.
5122         * tree-into-ssa.c: Remove TODO_dump_func.
5123         * tree-complex.c: Remove TODO_dump_func.
5124         * tracer.c: Remove TODO_dump_func.
5125         * tree-loop-distribution.c: Remove TODO_dump_func.
5126         * postreload-gcse.c: Remove TODO_dump_func.
5127         * postreload.c: Remove TODO_dump_func.
5128         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
5129         * tree-tailcall.c: Remove TODO_dump_func.
5130         * ipa-cp.c: Remove TODO_dump_func.
5131         * final.c: Remove TODO_dump_func.
5132         * tree-emutls.c: Remove TODO_dump_func.
5133         * omp-low.c: Remove TODO_dump_func.
5134         * tree-ssa-dse.c: Remove TODO_dump_func.
5135         * tree-ssa-uncprop.c: Remove TODO_dump_func.
5136         * auto-inc-dec.c: Remove TODO_dump_func.
5137         * reorg.c: Remove TODO_dump_func.
5138         * tree-ssa-copyrename.c: Remove TODO_dump_func.
5139         * tree-ssa-ccp.c: Remove TODO_dump_func.
5140         * compare-elim.c: Remove TODO_dump_func.
5141         * mode-switching.c: Remove TODO_dump_func.
5142         * modulo-sched.c: Remove TODO_dump_func.
5143         * tree-call-cdce.c: Remove TODO_dump_func.
5144         * cse.c: Remove TODO_dump_func.
5145         * web.c: Remove TODO_dump_func.
5146         * tree-stdarg.c: Remove TODO_dump_func.
5147         * lto-streamer-out.c: Remove TODO_dump_func.
5148         * tree-ssa-math-opts.c: Remove TODO_dump_func.
5149         * tree-ssa-dom.c: Remove TODO_dump_func.
5150         * tree-nrv.c: Remove TODO_dump_func.
5151         * loop-init.c: Remove TODO_dump_func.
5152         * gimple-low.c: Remove TODO_dump_func.
5153         * ipa-inline.c: Remove TODO_dump_func.
5154         * tree-ssa-sink.c: Remove TODO_dump_func.
5155         * jump.c: Remove TODO_dump_func.
5156         * ifcvt.c: Remove TODO_dump_func.
5157         * tree-ssa-loop.c: Remove TODO_dump_func.
5158         * recog.c: Remove TODO_dump_func.
5159         * dse.c: Remove TODO_dump_func.
5160         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
5161         * matrix-reorg.c: Remove TODO_dump_func.
5162         * tree-eh.c: Remove TODO_dump_func.
5163         * regmove.c: Remove TODO_dump_func.
5164         * function.c: Remove TODO_dump_func.
5165         * tree-vectorizer.c: Remove TODO_dump_func.
5166         * ipa-split.c: Remove TODO_dump_func.
5167         * gcse.c: Remove TODO_dump_func.
5168         * tree-if-conv.c: Remove TODO_dump_func.
5169         * init-regs.c: Remove TODO_dump_func.
5170         * tree-ssa-phiopt.c: Remove TODO_dump_func.
5171         * implicit-zee.c: Remove TODO_dump_func.
5172         * lower-subreg.c: Remove TODO_dump_func.
5173         * bt-load.c: Remove TODO_dump_func.
5174         * tree-dfa.c: Remove TODO_dump_func.
5175         * except.c: Remove TODO_dump_func.
5176         * emit-rtl.c: Remove TODO_dump_func.
5177         * store-motion.c: Remove TODO_dump_func.
5178         * cfgexpand.c: Remove TODO_dump_func.
5179         * tree-cfgcleanup.c: Remove TODO_dump_func.
5180         * cfgcleanup.c: Remove TODO_dump_func.
5181         * tree-ssa-pre.c: Remove TODO_dump_func.
5182         * tree-sra.c: Remove TODO_dump_func.
5183         * tree-mudflap.c: Remove TODO_dump_func.
5184         * tree-ssa-copy.c: Remove TODO_dump_func.
5185         * cfglayout.c: Remove TODO_dump_func.
5186         * tree-ssa-forwprop.c: Remove TODO_dump_func.
5187         * tree-ssa-dce.c: Remove TODO_dump_func.
5188         * ira.c: Remove TODO_dump_func.
5189         * tree-ssa.c: Remove TODO_dump_func.
5190         * integrate.c: Remove TODO_dump_func.
5191         * tree-optimize.c: Remove TODO_dump_func.
5192         * tree-ssa-phiprop.c: Remove TODO_dump_func.
5193         * tree-object-size.c: Remove TODO_dump_func.
5194         * combine.c: Remove TODO_dump_func.
5195         * bb-reorder.c: Remove TODO_dump_func.
5196         * cprop.c: Remove TODO_dump_func.
5197         * var-tracking.c: Remove TODO_dump_func.
5198         * tree-profile.c: Remove TODO_dump_func.
5199         * tree-vect-generic.c: Remove TODO_dump_func.
5200         * reg-stack.c: Remove TODO_dump_func.
5201         * sched-rgn.c: Remove TODO_dump_func.
5202         * tree-ssa-structalias.c: Remove TODO_dump_func.
5203         * tree-switch-conversion.c: Remove TODO_dump_func.
5204         * tree-cfg.c: Remove TODO_dump_func.
5205         * tree-ssa-reassoc.c: Remove TODO_dump_func.
5206         * combine-stack-adj.c: Remove TODO_dump_func.
5207         * dce.c: Remove TODO_dump_func.
5208         * tree-ssanames.c: Remove TODO_dump_func.
5209         * regcprop.c: Remove TODO_dump_func.
5210
5211 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5212
5213         PR middle-end/47364
5214         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
5215         and properly handle result not in Pmode.
5216
5217 2011-06-14  Robert Millan  <rmh@gnu.org>
5218
5219         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
5220         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
5221         `config/linux.h'.
5222
5223         * config/i386/kfreebsd-gnu64.h: New file.
5224         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
5225         with `i386/kfreebsd-gnu64.h'.
5226
5227         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
5228         (GNU_USER_LINK_EMULATION64): New macros.
5229         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
5230         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
5231         of hardcoding `elf_i386' and `elf_x86_64'.
5232
5233 2011-06-14  Nick Clifton  <nickc@redhat.com>
5234
5235         PR target/49403
5236         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
5237
5238         PR target/49402
5239         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
5240
5241 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
5242
5243         PR fortran/49103
5244         * tree.h (DECL_NONSHAREABLE): Define.
5245         (struct tree_decl_common): Change decl_common_unused to
5246         decl_nonshareable_flag.
5247         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
5248         Ignore vars with DECL_NONSHAREABLE bit set.
5249         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
5250         on stores to automatic aggregate vars.
5251
5252         PR rtl-optimization/49390
5253         Revert:
5254         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
5255
5256         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5257         MEM_ALIAS_SET.
5258
5259 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
5260             Tom de Vries  <tom@codesourcery.com>
5261
5262         PR target/45098
5263         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
5264         Document changed semantics.
5265         (max_stmt_executions, max_stmt_executions_int): Declare.
5266         * tree-data-ref.c (estimated_loop_iterations)
5267         (estimated_loop_iterations_int): Move functions...
5268         * tree-ssa-loop-niter.c (estimated_loop_iterations)
5269         (estimated_loop_iterations_int): here.
5270         (record_estimate): Change nb_iterations_upper_bound and
5271         nb_iterations_estimate semantics.
5272         (max_stmt_executions, max_stmt_executions_int): New function.
5273         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
5274         (max_stmt_executions_tree): this.
5275         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
5276         estimated_loop_iterations_tree.
5277         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
5278         max_stmt_executions_int instead of estimated_loop_iterations_int.
5279         * predict.c (predict_loops): Idem.
5280         * tree-parloops.c (parallelize_loops): Idem.
5281         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
5282         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
5283         (init_omega_for_ddr_1): Idem.
5284         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
5285         (loop_prefetch_arrays): Idem
5286         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
5287         max_stmt_executions instead of estimated_loop_iterations.
5288         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
5289         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
5290         instead of nb_iterations_upper_bound.
5291
5292 2011-06-13  Jan Hubicka  <jh@suse.cz>
5293
5294         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
5295
5296 2011-06-14  Richard Henderson  <rth@redhat.com>
5297
5298         PR debug/48459
5299         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
5300         (based_loc_descr): Assert it's true.
5301         (compute_frame_pointer_to_fb_displacement): Set it, rather than
5302         aborting immediately.
5303
5304 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
5305             Mingfeng Wu  <mingfeng@faraday-tech.com>
5306
5307         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
5308
5309 2011-06-13  Jan Hubicka  <jh@suse.cz>
5310
5311         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
5312
5313 2011-06-13  Jan Hubicka  <jh@suse.cz>
5314
5315         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
5316         similarly to DECL_COMDAT.
5317         * cgraphunit.c (cgraph_analyze_function): Likewise.
5318         * ipa.c (function_and_variable_visibility): Likewise.
5319
5320 2011-06-13  Jan Hubicka  <jh@suse.cz>
5321
5322         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
5323         BINFO_VIRTUALS when streaming for ltrans unit.
5324
5325 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
5326
5327         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
5328         (movdi_internal64): Same.
5329
5330 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
5331
5332         PR target/44618
5333         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
5334         a set of similar patterns, where the MATCH_OPERAND for the function
5335         argument is replaced with individual references to hardware registers.
5336         (save_fpregs_<mode>): Ditto
5337         (restore_gpregs_<mode>): Ditto
5338         (return_and_restore_gpregs_<mode>): Ditto
5339         (return_and_restore_fpregs_<mode>): Ditto
5340         (return_and_restore_fpregs_aix_<mode>): Ditto
5341
5342 2011-06-13  Jan Hubicka  <jh@suse.cz>
5343
5344         * ipa-utils.c (postorder_stack): New structure.
5345         (ipa_reverse_postorder): Handle aliases.
5346
5347 2011-06-13  Jan Hubicka  <jh@suse.cz>
5348
5349         * ipa-inline.c (reset_edge_caches): Walk aliases.
5350         (update_caller_keys): Do not test inlinability of aliases.
5351         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
5352         (do_estimate_growth): Fix typo.
5353
5354 2011-06-13  Jan Hubicka  <jh@suse.cz>
5355
5356         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
5357         (can_remove_node_now_p): ... here; handle same comdat groups.
5358         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
5359         (inline_call): Update use of can_remove_node_now_p.
5360
5361 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5362
5363         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
5364         condition to disallow non-identical memory locations.
5365         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
5366         preference to bit manipulation instructions.
5367
5368 2011-06-13  Jan Hubicka  <jh@suse.cz>
5369
5370         * cgraph.c (cgraph_for_node_thunks_and_aliases,
5371         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
5372         (nonremovable_p): New function.
5373         (cgraph_can_remove_if_no_direct_calls_p): New function.
5374         (used_from_object_file_p): New functoin.
5375         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
5376         references from aliases.
5377         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
5378         * ipa-inline.c (check_caller_edge): New function.
5379         (want_inline_function_called_once_p): Use it; accept aliases called
5380         once, too.
5381         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
5382
5383 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5384
5385         PR target/48454
5386         * config/arm/neon.md (vec_pack_trunc): Set the lengths
5387         correctly for the case with Quad vectors.
5388
5389 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
5390            Ira Rosen  <ira.rosen@linaro.org>
5391
5392         PR tree-optimization/49352
5393         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
5394         all, make sure loop_use_stmt after the loop is a def stmt of a used
5395         SSA_NAME that is the only one defined inside of the loop.  Don't
5396         check for COND_EXPR and GIMPLE_BINARY_RHS.
5397         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
5398         check_reduction is true.
5399
5400 2011-06-11  Jan Hubicka  <jh@suse.cz>
5401
5402         PR middle-end/49373
5403         * ipa.c (cgraph_externally_visible_p): Check resolution info.
5404
5405 2011-06-11  Jan Hubicka  <jh@suse.cz>
5406
5407         PR middle-end/48836
5408         * ipa-inline-transform.c: Include tree-pass.h
5409         (inline_transform): Set TODO_update_ssa_only_virtuals.
5410         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
5411
5412 2011-06-11  Jan Hubicka  <jh@suse.cz>
5413
5414         PR middle-end/49378
5415         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
5416         aliases and thunks.
5417
5418 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
5419
5420         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
5421         Take number of iterations to peel into account for equally frequent
5422         misalignment values.
5423
5424 2011-06-11  Jan Hubicka  <jh@suse.cz>
5425
5426         * lto-streamer-out.c (produce_symtab): Stream out the newly
5427         represented aliases.
5428
5429 2011-06-11  Jan Hubicka  <jh@suse.cz>
5430
5431         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
5432         varying args.
5433         (ipa_update_after_lto_read): Likewise.
5434         (ipa_write_node_info): Do not sream call_with_var_arguments.
5435         (ipa_read_node_info): Likewise.
5436
5437 2011-06-11  Jan Hubicka  <jh@suse.cz>
5438
5439         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
5440
5441 2011-06-11  Jan Hubicka  <jh@suse.cz>
5442
5443         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
5444         (lto_symtab_resolve_can_prevail_p): Likewise.
5445         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
5446         * cgraph.c (same_body_aliases_done): New global var.
5447         (cgraph_same_body_alias_1): Rename to ...
5448         (cgraph_create_function_alias): ... this one; reorg to new
5449         representation.
5450         (cgraph_same_body_alias): Use cgraph_create_function_alias;
5451         record references when asked to.
5452         (cgraph_add_thunk): Fix formating.
5453         (cgraph_get_node): Kill same body alias code.
5454         (cgraph_node_for_asm): Likewise.
5455         (cgraph_remove_same_body_alias): Remove.
5456         (cgraph_remove_node): Kill same body alias code.
5457         (cgraph_mark_address_taken_node): Mark also the aliased function
5458         as having address taken.
5459         (dump_cgraph_node): Dump same body aliases.
5460         (cgraph_for_node_thunks_and_aliases): Update for new alias
5461         representation.
5462         (cgraph_for_node_and_aliases): Likewise.
5463         * cgraph.h (same_body): Kll pointer.
5464         (same_body_alias): Update comment.
5465         (same_body_aliases_done): Declare.
5466         (cgraph_remove_same_body_alias): Remove declaration.
5467         (cgraph_create_function_alias): Declare.
5468         (cgraph_process_same_body_aliases): Declare.
5469         (cgraph_function_with_gimple_body_p): Check for alias.
5470         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
5471         (cgraph_alias_aliased_node): New function.
5472         (cgraph_function_node): Update for new aliases.
5473         (cgraph_function_or_thunk_node): Likewise.
5474         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
5475         (inline_call): Remove dead aliases.
5476         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
5477         name hack for same body aliases.
5478         (clone_of_p): Look through aliases.
5479         (verify_cgraph_node): Verify aliases.
5480         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
5481         (cgraph_process_same_body_aliases): New function.
5482         (process_function_and_variable_attributes): Disable weakref warning on
5483         alias.
5484         (cgraph_analyze_functions): Handle aliases.
5485         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
5486         (assemble_thunks): Rename to ...
5487         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
5488         (cgraph_expand_function): Remove alias output code.
5489         (cgraph_output_in_order): Skip aliases.
5490         (cgraph_preserve_function_body_p): Aliases don't need preserving.
5491         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
5492         (ipa_record_reference): Do not assert on alias references.
5493         (ipa_ref_has_aliases_p): New function.
5494         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
5495         (ipa_ref_has_aliases_p): Declare.
5496         * lto-cgraph.c (lto_output_node): Handle aliases.
5497         (input_node): Likewise.
5498         * lto-streamer-out.c (lto_output): Skip aliases.
5499         (produce_symtab): Kill same_body_alias code.
5500         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
5501         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
5502         * ipa-inline.c (update_caller_keys): Walk aliases.
5503         (inline_small_functions): Fix thinko in previous patch.
5504         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
5505         (function_and_variable_visibility): Do not walk same body aliases.
5506         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
5507         (ipa_pta_execute): Use it.
5508
5509 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
5510
5511         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
5512         (*vec_dupv2df): Rename from vec_dupv2df.
5513         (vec_dupv2df): New expander.
5514
5515 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
5516
5517         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
5518
5519 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
5520
5521         * config/i386/i386.md: Use default value in "isa" attribute.
5522         * config/i386/sse.md: Ditto.
5523         * config/i386/mmx.md: Ditto.
5524
5525 2011-06-10  Wei Guozhi  <carrot@google.com>
5526
5527         PR target/45335
5528         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5529         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5530         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5531         related peephole2.
5532         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5533         related peephole2.
5534         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5535         (arm_legitimate_ldrd_p): New prototype.
5536         (arm_output_ldrd): New prototype.
5537         * config/arm/arm.c (arm_check_ldrd_operands): New function.
5538         (arm_legitimate_ldrd_p): New function.
5539         (arm_output_ldrd): New function.
5540
5541 2011-06-10  David Li  <davidxl@google.com>
5542
5543         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5544         * passes.c (passr_eq): New function.
5545         (create_pass_tab): New function.
5546         (pass_traverse): New function.
5547         (dump_one_pass): New function.
5548         (dump_pass_list): New function.
5549         (dump_passes): New function.
5550
5551 2011-06-10  Jan Hubicka  <jh@suse.cz>
5552
5553         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
5554         setting the nothrow flag.
5555         * ipa-reference.c (propagate): Skip aliases.
5556         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
5557         (propagate_nothrow): Skip aliases; do not update cgraph.
5558         (local_pure_const): Do not update cgraph.
5559         * tree-profile.c (tree_profiling): Do fixup_cfg.
5560
5561 2011-06-10  Jan Hubicka  <jh@suse.cz>
5562
5563         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
5564         (cgraph_local_node_p): ... here; handle aliases.
5565         (has_addr_references_p): Break out from ...;
5566         (cgraph_remove_unreachable_nodes) ... here.
5567
5568 2011-06-10  Jan Hubicka  <jh@suse.cz>
5569
5570         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
5571         * common.opt (flag_inline_functions_called_once): Do not
5572         initialize to 1.
5573
5574 2011-06-10  Jan Hubicka  <jh@suse.cz>
5575
5576         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
5577         (ipcp_initialize_node_lattices): Do not deal with aliases;
5578         Do not try to propagate through thunks.
5579         (ipcp_change_tops_to_bottom): Do not deal with aliases.
5580
5581 2011-06-10  Jan Hubicka  <jh@suse.cz>
5582
5583         * ipa-prop.c (ipa_write_node_info): Stream jump functions
5584         for indirect calls.
5585         (ipa_read_node_info): Likewise.
5586
5587 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5588
5589         PR lto/49302
5590         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
5591         (build_and_insert_call): Likewise.
5592         (build_and_insert_ref): New.
5593         (gimple_expand_builtin_pow): Minor cleanup.
5594         (gimple_expand_builtin_cabs): New.
5595         (execute_cse_sincos): Add case for BUILT_IN_CABS.
5596
5597 2011-06-10  Jan Hubicka  <jh@suse.cz>
5598
5599         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
5600         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
5601         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
5602         (ipcp_propagate_stage): Skip aliases when propagating.
5603         (ipcp_need_redirect_p): Skip aliases.
5604         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
5605         collect_callers_of_node.
5606         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
5607         for aliases.
5608         (ipa_compute_jump_functions): Look through aliases.
5609
5610 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5611
5612         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
5613
5614 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5615
5616         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
5617         Adjust comments.
5618         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
5619
5620 2011-06-10  Jan Hubicka  <jh@suse.cz>
5621
5622         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
5623         Update call of gimple_get_virt_method_for_binfo.
5624         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
5625         refuse_thunks parameter.
5626         (gimple_fold_call): Update.
5627         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5628
5629 2011-06-10  Jan Hubicka  <jh@suse.cz>
5630
5631         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5632         (not_all_callers_have_enough_arguments_p): ... this one; turn into
5633         worker for cgraph_for_node_and_aliases.
5634         (convert_callers_for_node): Break out from ...
5635         (convert_callers): ... here.
5636         (modify_function): Use collect_callers_of_node.
5637         (ipa_early_sra): Use cgraph_for_node_and_aliases.
5638
5639 2011-06-10  Richard Guenther  <rguenther@suse.de>
5640
5641         PR tree-optimization/49361
5642         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5643         when not already in gimple form.
5644
5645 2011-06-10  Richard Guenther  <rguenther@suse.de>
5646
5647         PR bootstrap/49344
5648         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5649         FOR_EACH_PHI_OR_STMT_USE.
5650
5651 2011-06-10  Jan Hubicka  <jh@suse.cz>
5652
5653         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5654         (clone_inlined_nodes): ... here.
5655         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5656         to real destination prior inlining.
5657         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5658         can_early_inline_edge_p, want_early_inline_function_p,
5659         want_early_inline_function_p, want_inline_small_function_p,
5660         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5661         edge_badness, update_all_callee_keys, lookup_recursive_calls,
5662         add_new_edges_to_heap, inline_small_functions, flatten_function,
5663         inline_always_inline_functions, early_inline_small_functions): Use
5664         cgraph_function_or_thunk_node.
5665         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5666         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5667         (do_estimate_edge_growth_1): Break out from ...
5668         (do_estimate_growth) ... here; walk aliases.
5669         (inline_generate_summary): Skip aliases.
5670
5671 2011-06-10  Richard Guenther  <rguenther@suse.de>
5672
5673         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5674         forward when combining, visit inserted stmts when a stmt was changed.
5675
5676 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
5677
5678         * tree.h (error_operand_p): Add.
5679         * dbxout.c (dbxout_type_fields): Use the latter.
5680         * c-decl.c (add_stmt): Likewise.
5681         * gimplify.c (omp_add_variable, omp_notice_variable,
5682         gimplify_scan_omp_clauses): Likewise.
5683
5684 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
5685
5686         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5687         when a value is actually passed in regs.
5688
5689 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5690             Laurent Rougé  <laurent.rouge@menta.fr>
5691
5692         * doc/invoke.texi (SPARC options): Add -mflat.
5693         * config/sparc/sparc.opt: Likewise.
5694         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5695         (sparc_flat_expand_prologue): Declare.
5696         (sparc_flat_expand_epilogue): Likewise.
5697         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5698         (CPP_ENDIAN_SPEC): Replace with...
5699         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
5700         (CPP_SPEC): Adjust to above change.
5701         (EXTRA_SPECS): Likewise.
5702         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5703         (INCOMING_REGNO): Likewise.
5704         (OUTGOING_REGNO): Likewise.
5705         (LOCAL_REGNO): Likewise.
5706         (SETUP_FRAME_ADDRESSES): Likewise.
5707         (FIXED_REGISTERS): Set 0 for %fp.
5708         (CALL_USED_REGISTERS): Likewise.
5709         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5710         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5711         (RETURN_ADDR_REGNUM): Define.
5712         (RETURN_ADDR_RTX): Use it.
5713         (INCOMING_RETURN_ADDR_REGNUM): Define.
5714         (INCOMING_RETURN_ADDR_RTX): Use it.
5715         (DWARF_FRAME_RETURN_COLUMN): Likewise.
5716         (EH_RETURN_REGNUM): Define.
5717         (EH_RETURN_STACKADJ_RTX): Use it.
5718         (EH_RETURN_HANDLER_RTX): Delete.
5719         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5720         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5721         Delete.
5722         (struct machine_function): Add frame_size, apparent_frame_size,
5723         frame_base_reg, frame_base_offset, n_global_fp_regs and
5724         save_local_in_regs_p fields.
5725         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5726         sparc_frame_base_offset, sparc_n_global_fp_regs,
5727         sparc_save_local_in_regs_p): New macros.
5728         (sparc_option_override): Error out if -fcall-saved-REG is specified
5729         for Out registers.
5730         (eligible_for_restore_insn): Fix formatting.
5731         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
5732         (eligible_for_sibcall_delay): Likewise.
5733         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5734         (sparc_legitimate_address_p): Adjust to above change.
5735         (save_global_or_fp_reg_p): New predicate.
5736         (return_addr_reg_needed_p): Likewise.
5737         (save_local_or_in_reg_p): Likewise.
5738         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
5739         (SORR_SAVE, SORR_RESTORE): Delete.
5740         (sorr_pred_t): New typedef.
5741         (sorr_act_t): New enum.
5742         (save_or_restore_regs): Rename to...
5743         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
5744         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5745         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
5746         mechanism.  Add CFI information for double-word saves in 32-bit mode.
5747         (emit_adjust_base_to_offset): New function extracted from...
5748         (emit_save_or_restore_regs): ...this.  Rename the rest to...
5749         (emit_save_or_restore_regs_global_fp_regs): ...this.
5750         (emit_save_or_restore_regs_local_in_regs): New function.
5751         (gen_create_flat_frame_[123]): New functions.
5752         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
5753         (sparc_flat_expand_prologue): New function.
5754         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5755         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
5756         (sparc_flat_expand_epilogue): New function.
5757         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5758         (output_return): Likewise.
5759         (output_sibcall): Likewise.
5760         (sparc_output_mi_thunk): Likewise.
5761         (sparc_frame_pointer_required): Likewise.
5762         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5763         function optimization.
5764         * config/sparc/sparc.md (flat): New attribute.
5765         (prologue): Add TARGET_FLAT handling.
5766         (save_register_window): Disable if TARGET_FLAT.
5767         (create_flat_frame_[123]): New patterns.
5768         (epilogue): Add TARGET_FLAT handling.
5769         (sibcall_epilogue): Likewise.
5770         (eh_return): New expander.
5771         (eh_return_internal): New insn and splitter.
5772         (return_internal): Add TARGET_FLAT handling.
5773         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5774         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5775         (nonlocal_goto): Add TARGET_FLAT handling.
5776         * config/sparc/t-elf: Add -mflat multilib.
5777         * config/sparc/t-leon: Likewise.
5778
5779 2011-06-10  Jan Hubicka  <jh@suse.cz>
5780
5781         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5782         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5783         (self_recursive_p): Use cgraph_function_node.
5784         (propagate_pure_const): Likewise.
5785         (propagate_nothrow): Likewise.
5786         * ipa-reference.c (ipa_reference_get_not_read_global): Use
5787         cgraph_function_node.
5788         (propagate_bits): Likewise.
5789         (propagate): Likewise.
5790
5791 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5792             Richard Earnshaw  <rearnsha@arm.com>
5793
5794         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5795         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5796         (*thumb2_movdi_vfp): Delete.
5797         (*arm_movdi_vfp_cortexa8): Delete.
5798         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5799         (*movdi_vfp_cortexa8): Likewise.
5800
5801 2011-06-10  Richard Guenther  <rguenther@suse.de>
5802
5803         * stor-layout.c (initialize_sizetypes): Give names to all
5804         sizetype kinds.
5805
5806 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
5807
5808         PR tree-optimization/49318
5809         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5810         irrelevant pattern statements.
5811
5812 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5813
5814         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5815
5816         PR bootstrap/49354
5817         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5818         to last assignment.
5819
5820 2011-06-09  Jan Hubicka  <jh@suse.cz>
5821
5822         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5823         do not recompute reachable flag.
5824         (cgraph_finalize_function, cgraph_analyze_functions): Set
5825         redefined_extern_inline here.
5826
5827 2011-06-09  Jan Hubicka  <jh@suse.cz>
5828
5829         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5830         (cgraph_only_called_directly_p): ... this one; bring offline.
5831         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5832         varpool_used_from_object_file_p): Drop names from the declaratoin.
5833         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5834         collect_callers_of_node): New.
5835         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5836         (cgraph_edge_recursive_p): Use cgraph_function_node.
5837         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5838         (cgraph_node_cannot_be_local_p_1): Break out from ...
5839         (cgraph_node_can_be_local_p): ... here; walk aliases.
5840         (cgraph_for_node_thunks_and_aliases): New function.
5841         (cgraph_for_node_and_aliases): New function.
5842         (cgraph_make_node_local_1): Break out from ...
5843         (cgraph_make_node_local) ... here; use
5844         cgraph_for_node_thunks_and_aliases.
5845         (cgraph_set_nothrow_flag_1): Break out from ...
5846         (cgraph_set_nothrow_flag) ... here;
5847         use cgraph_for_node_thunks_and_aliases.
5848         (cgraph_set_const_flag_1): Break out from ...
5849         (cgraph_set_const_flag) ... here;
5850         use cgraph_for_node_thunks_and_aliases.
5851         (cgraph_set_pure_flag_1): Break out from ...
5852         (cgraph_set_pure_flag) ... here;
5853         use cgraph_for_node_thunks_and_aliases.
5854         (cgraph_propagate_frequency_1): Break out from ...
5855         (cgraph_propagate_frequency) ... here; use
5856         cgraph_for_node_thunks_and_aliases.
5857         (cgraph_used_from_object_file_p): Do not care about aliases.
5858         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5859         New functions.
5860         (collect_callers_of_node_1, collect_callers_of_node): New functions.
5861
5862 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5863
5864         PR rtl-optimization/49154
5865         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5866         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5867         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5868         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5869         * config/cris/cris.h (cris_register_move_cost): Remove
5870         !TARGET_V32 code.  Tweak comments.
5871
5872 2011-06-09  Jan Hubicka  <jh@suse.cz>
5873
5874         * cgraphbuild.c (record_eh_tables): Mark personality function as having
5875         address taken.
5876
5877 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
5878
5879         PR rtl-optimization/49154
5880         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5881         is a matching slot in the hashtable, assign it to classes_ptr.
5882
5883         PR rtl-optimization/49154
5884         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5885         register classes.
5886         * doc/tm.texi: Regenerate.
5887
5888 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5889
5890         PR target/49307
5891         * config/sh/sh.md (UNSPEC_CHKADD): New.
5892         (chk_guard_add): New define_insn_and_split.
5893         (symGOT_load): Use chk_guard_add instead of blockage.
5894
5895 2011-06-09  Kai Tietz  <ktietz@redhat.com>
5896
5897         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5898
5899 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5900
5901         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5902
5903 2011-06-09  Wei Guozhi  <carrot@google.com>
5904
5905         PR target/46975
5906         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5907         (peephole2 for conditional move): Generate 16 bit instructions.
5908
5909 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
5910
5911         * config/i386/i386.md (*movdi_internal_rex64): Merge
5912         alternatives 6 and 8.
5913
5914 2011-06-09  David Li  <davidxl@google.com>
5915
5916         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5917         * passes.c (passr_eq): New function.
5918         (create_pass_tab): New function.
5919         (pass_traverse): New function.
5920         (dump_one_pass): New function.
5921         (dump_pass_list): New function.
5922         (dump_passes): New function.
5923
5924 2011-06-09  David Li  <davidxl@google.com>
5925
5926         * tree-complex.c (tree_lower_complex): Gate cleanup.
5927         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5928         (execute_optimize_stdarg): Ditto.
5929         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5930         (execute_cleanup_eh_1): Ditto.
5931         (execute_cleanup_eh): Ditto.
5932         * gcse.c (gate_rtl_pre): Ditto.
5933         (execute_rtl_pre): Ditto.
5934         * except.c (finish_eh_generation): Ditto.
5935         (convert_to_eh_region_ranges): Ditto.
5936         * cprop.c (one_cprop_pass): Ditto.
5937
5938 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
5939
5940         PR target/48673
5941         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5942         in all basic blocks.
5943
5944 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5945
5946         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5947         (HAVE_ENABLE_EXECUTE_STACK): Define.
5948         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5949         (HAVE_ENABLE_EXECUTE_STACK): Define.
5950         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5951         (HAVE_ENABLE_EXECUTE_STACK): Define.
5952         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5953         (ENABLE_EXECUTE_STACK): Remove.
5954         (HAVE_ENABLE_EXECUTE_STACK): Define.
5955         [IN_LIBGCC2]: Don't include <windows.h>.
5956         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5957         (HAVE_ENABLE_EXECUTE_STACK): Define.
5958         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5959         (HAVE_ENABLE_EXECUTE_STACK): Define.
5960         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5961         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5962         (HAVE_ENABLE_EXECUTE_STACK): Define.
5963         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5964         (HAVE_ENABLE_EXECUTE_STACK): Define.
5965         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5966         (HAVE_ENABLE_EXECUTE_STACK): Define.
5967         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5968         (HAVE_ENABLE_EXECUTE_STACK): Define.
5969         * config/alpha/alpha.c (alpha_trampoline_init): Test
5970         HAVE_ENABLE_EXECUTE_STACK.
5971         * config/i386/i386.c (ix86_trampoline_init): Likewise.
5972         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5973         (sparc64_initialize_trampoline): Likewise.
5974         * libgcc2.c [L_enable_execute_stack]: Remove.
5975         * system.h (ENABLE_EXECUTE_STACK): Poison.
5976         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5977         * doc/tm.texi: Regenerate.
5978         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5979
5980 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
5981
5982         PR middle-end/49308
5983         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5984         variable.  After resetting and rescanning insn continue with previous
5985         statement.
5986
5987 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5988
5989         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5990         (gcc_cv_ld_hidden): Likewise.
5991         * configure: Regenerate.
5992         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5993         (ix86_stack_protect_fail): Mark unused.
5994         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5995         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5996         [TARGET_MACHO]: Don't define.
5997         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5998         (TARGET_STACK_PROTECT_FAIL): Likewise.
5999         (rs6000_stack_protect_fail): Mark unused.
6000         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
6001         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
6002
6003 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6004
6005         * varasm.c (get_section): Print location of other conflict
6006         for section conflicts.
6007
6008 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6009
6010         * config/i386/driver-i386.c (host_detect_local_cpu):
6011         Add model 0x2d Intel CPU.
6012
6013 2011-06-08  Andi Kleen  <ak@linux.intel.com>
6014
6015         * reginfo.c (global_regs_decl): Add.
6016         (globalize_reg): Add decl parameter. Compute location.  Pass location
6017         to warnings and add inform. Store decl in global_regs_decl.
6018         * rtl.h (globalize_reg): Update prototype.
6019         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
6020
6021 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
6022
6023         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
6024
6025 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6026
6027         PR target/49305
6028         * config/sh/predicates.md (general_movsrc_operand): Check
6029         mode for memory with indexed address for QI and HImode.
6030         (general_movdst_operand): Likewise.
6031
6032 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
6033
6034         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
6035
6036 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
6037
6038         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
6039         (num_ssa_operands): Likewise.
6040         (op_iter_init_phiuse): Forward-declare.
6041         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
6042
6043 2011-06-08  Nick Clifton  <nickc@redhat.com>
6044
6045         * doc/invoke.texi (ARM Options): Update description of
6046         -mthumb-interwork.
6047
6048 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
6049
6050         * config/i386/driver-i386.c (host_detect_local_cpu): Support
6051         unknown Intel family 0x6 CPUs.
6052
6053 2011-06-08  Martin Jambor  <mjambor@suse.cz>
6054
6055         * tree-sra.c (mark_rw_status): Removed.
6056         (analyze_access_subtree): New parameter parent instead of
6057         mark_read and mark_write, propagate from that.
6058
6059 2011-06-08  Julian Brown  <julian@codesourcery.com>
6060
6061         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
6062         for double-precision helper functions in hard-float mode if only
6063         single-precision arithmetic is supported in hardware.
6064
6065 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
6066
6067         PR rtl-optimization/49303
6068         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
6069         code_motion_path_driver returned 0 or 1.
6070         (sel_region_finish): Clear h_d_i_d.
6071
6072 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6073
6074         * config/sh/sh.c (prepare_move_operands): Set pic register
6075         appropriately for global and local dynamic tls models even
6076         if flag_pic is unset.
6077
6078 2011-06-07  Jason Merrill  <jason@redhat.com>
6079
6080         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
6081
6082 2011-06-07  Xinliang David Li  <davidxl@google.com>
6083         * passes.c (enable_disable_pass): Handle assembler name.
6084         (is_pass_explicitly_enabled_or_disabled): Ditto.
6085
6086 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6087
6088         PR tree-optimization/48497
6089         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
6090
6091 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6092
6093         PR tree-optimization/46728
6094         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
6095         to use gimple_val_nonnegative_real_p.
6096         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
6097         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
6098
6099 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
6100
6101         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
6102
6103 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
6104
6105         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
6106         constant vectors.
6107
6108 2011-06-07  Richard Guenther  <rguenther@suse.de>
6109
6110         * stor-layout.c (initialize_sizetypes): Initialize all
6111         sizetypes based on target definitions.
6112         (set_sizetype): Remove.
6113         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
6114         * tree.h (set_sizetype): Remove.
6115
6116 2011-06-07  Nick Clifton  <nickc@redhat.com>
6117
6118         * config.gcc: Unify V850 architecture options and add support for
6119         newer V850 architectures.
6120         * config/v850/t-v850e: Delete.
6121
6122 2011-06-07  Richard Guenther  <rguenther@suse.de>
6123
6124         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
6125         Call set_sizetype from here.
6126
6127 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
6128
6129         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
6130         (*maddhisi4tb, *maddhisi4tt): New define_insns.
6131
6132 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
6133             Andrew Stubbs  <ams@codesourcery.com>
6134
6135         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
6136         multiplies.
6137         * doc/md.texi (Canonicalization of Instructions): Document widening
6138         multiply canonicalization.
6139
6140 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
6141
6142         PR gcov-profile/49299
6143         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
6144
6145 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
6146
6147         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
6148         a pointer.
6149         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
6150         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
6151         vect_recog_pow_pattern): Likewise.
6152         (vect_pattern_recog_1): Remove declaration.
6153         (widened_name_p): Remove declaration.  Add new argument to specify
6154         whether to check that both types are either signed or unsigned.
6155         (vect_recog_widen_mult_pattern): Update documentation.  Handle
6156         unsigned patterns and multiplication by constants.
6157         (vect_pattern_recog_1): Update vect_recog_func references.  Use
6158         statement information from the statement returned from pattern
6159         detection functions.
6160         (vect_pattern_recog): Update vect_recog_func reference.
6161         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
6162         multiplication by a constant use the type of the other operand.
6163
6164 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
6165
6166         PR rtl-optimization/49145
6167         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
6168
6169 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
6170
6171         PR debug/49262
6172         * dwarf2out.c (native_encode_initializer): Decrement count in each
6173         iteration.
6174
6175         PR debug/49294
6176         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
6177         non-MODE_INT modes.
6178
6179         PR c++/49264
6180         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
6181         if stmt folded into nothing.
6182         * tree-inline.c (fold_marked_statements): If a builtin at the end of
6183         a bb folded into nothing, just update cgraph edges and move to next bb.
6184         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
6185         to be NULL.  Don't compute count and frequency if new_call is NULL.
6186
6187 2011-06-04  Diego Novillo  <dnovillo@google.com>
6188
6189         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
6190         (cgraph.o): Likewise.
6191         (cgraphunit.o): Likewise.
6192         * cgraphunit.c: Include lto-streamer.h
6193         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
6194         if LTO is enabled.
6195         * lto-streamer-in.c (unpack_value_fields): Call
6196         streamer_hooks.unpack_value_fields if set.
6197         (lto_materialize_tree): For unhandled nodes, first try to
6198         call lto_streamer_hooks.alloc_tree, if it exists.
6199         (lto_input_ts_decl_common_tree_pointers): Move reading of
6200         DECL_INITIAL to lto_streamer_read_tree.
6201         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
6202         (lto_streamer_read_tree): New.
6203         (lto_reader_init): Rename from lto_init_reader.
6204         Move initialization code to lto/lto.c.
6205         * lto-streamer-out.c (pack_value_fields): Call
6206         streamer_hooks.pack_value_fields if set.
6207         (lto_output_tree_ref): For tree nodes that are not normally indexable,
6208         call streamer_hooks.indexable_with_decls_p before giving up.
6209         (lto_output_ts_decl_common_tree_pointers): Move handling
6210         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
6211         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
6212         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
6213         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
6214         (lto_streamer_write_tree): New.
6215         (lto_output): Call lto_streamer_init directly.
6216         (lto_writer_init): Remove.
6217         * lto-streamer.c (streamer_hooks): New.
6218         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
6219         instead of lto_preload_common_nodes.
6220         (lto_is_streamable): Move from lto-streamer.h
6221         (lto_streamer_hooks_init): New.
6222         (streamer_hooks): New.
6223         (streamer_hooks_init): New.
6224         * lto-streamer.h (struct output_block): Forward declare.
6225         (struct lto_input_block): Likewise.
6226         (struct data_in): Likewise.
6227         (struct bitpack_d): Likewise.
6228         (struct streamer_hooks): Declare.
6229         (streamer_hooks): Declare.
6230         (lto_streamer_hooks_init): Declare.
6231         (lto_streamer_write_tree): Declare.
6232         (lto_streamer_read_tree): Declare.
6233         (streamer_hooks_init): Declare.
6234         (lto_is_streamable): Move to lto-streamer.c
6235
6236 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6237
6238         * longlong.h (smul_ppmm): The resulting register pair contains the
6239         higher order word first.
6240
6241 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6242
6243         PR tree-optimization/46728
6244         * builtins.c (powi_table): Remove.
6245         (powi_lookup_cost): Remove.
6246         (powi_cost): Remove.
6247         (expand_powi_1): Remove.
6248         (expand_powi): Remove.
6249         (expand_builtin_pow_root): Remove.
6250         (expand_builtin_pow): Remove.
6251         (expand_builtin_powi): Eliminate handling of constant exponent.
6252         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
6253
6254 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6255
6256         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
6257
6258 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6259
6260         * dce.c (reset_unmarked_insns_debug_uses): New.
6261         (delete_unmarked_insns): Skip debug insns.
6262         (prescan_insns_for_dce): Likewise.
6263         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
6264         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
6265         active reg can be found.
6266         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
6267         (convert_regs_1): Use it.
6268
6269 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6270
6271         * tree-pretty-print.c (dump_function_header): Add flags.
6272         Don't dump decl_uid with nouid.
6273         * tree-pretty-print.h (dump_function_header): Adjust.
6274         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
6275         * passes.c (pass_init_dump_file): Pass dump_flags on.
6276         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
6277
6278 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
6279
6280         PR bootstrap/49270
6281         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
6282
6283 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
6284
6285         PR tree-optimization/49243
6286         * calls.c (setjmp_call_p): Also check if fndecl has the
6287         returns_twice attribute.
6288
6289 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6290
6291         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
6292         -ffast-math etc.
6293
6294 2011-06-06  Richard Henderson  <rth@redhat.com>
6295             Georg-Johann Lay  <avr@gjlay.de>
6296
6297         PR target/42210
6298         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
6299         New predicates.
6300         * config/avr/avr.md ("insv"): New insn expander.
6301         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
6302         "*insv.not.io", "*insv.reg"): New insns.
6303
6304 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
6305
6306         PR target/49285
6307         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
6308         to nonimmediate_operand from memory_operand for the operand that is to
6309         be forced to memory by the expander.  Lose the constraints.
6310
6311 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6312
6313         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
6314         EH return when delayed branches are disabled.
6315
6316 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
6317
6318         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
6319         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
6320         calculation.
6321         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
6322         Simplify MODE_V1DF and MODE_V2SF handling.
6323         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
6324         Simplify MODE_SF handling.
6325
6326 2011-06-04  Jan Hubicka  <jh@suse.cz>
6327
6328         PR tree-optimization/48893
6329         PR tree-optimization/49091
6330         PR tree-optimization/49179
6331         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
6332         Bounds check.
6333
6334 2011-06-04  Jan Hubicka  <jh@suse.cz>
6335
6336         PR lto/48954
6337         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
6338         bitmaps.
6339
6340 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
6341
6342         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
6343
6344 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
6345
6346         PR target/49281
6347         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
6348         to be strictly smaller than 1 << shiftcount.
6349
6350 2011-06-04  Jan Hubicka  <jh@suse.cz>
6351
6352         PR tree-optimize/48929
6353         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
6354         of empty predicate.
6355
6356 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
6357
6358         PR debug/48333
6359         * calls.c (emit_call_1): Prefer the __builtin declaration of
6360         builtin functions.
6361
6362 2011-06-03   Diego Novillo  <dnovillo@google.com>
6363
6364         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
6365         (lto_input_tree_pointers): Likewise.
6366         * lto-streamer-out.c (pack_value_fields): Likewise.
6367         (lto_output_tree_pointers): Likewise.
6368         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
6369         and OPTIMIZATION_NODE.
6370
6371 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6372
6373         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
6374         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
6375         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
6376         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
6377         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
6378         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
6379         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
6380         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
6381         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
6382         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
6383         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
6384         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
6385         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
6386         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
6387         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
6388         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
6389         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
6390         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
6391         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
6392         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
6393         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
6394         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
6395         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
6396         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
6397         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
6398         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
6399         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
6400         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
6401         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
6402         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
6403         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
6404         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
6405         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
6406         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
6407         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
6408         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
6409         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
6410         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
6411         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
6412         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
6413         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
6414         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
6415         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
6416         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
6417         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
6418         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
6419         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
6420         * system.h (MD_UNWIND_SUPPORT): Poison.
6421         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
6422         * doc/tm.texi: Regenerate.
6423         * unwind-dw2.c: Include md-unwind-support.h instead of
6424         MD_UNWIND_SUPPORT.
6425         * config/ia64/unwind-ia64.c: Likewise.
6426         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6427
6428 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
6429
6430         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
6431
6432 2011-06-03  Richard Henderson  <rth@redhat.com>
6433             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6434
6435         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
6436         (sigill_hdlr): Correct insn, insn size.
6437         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
6438
6439 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6440
6441         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
6442         t-slibgcc-dummy.
6443         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
6444         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
6445         * config/mips/t-iris: Remove.
6446         * config/mips/t-irix6: New file.
6447         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
6448
6449 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6450
6451         * Makefile.in (LIB2ADDEHDEP): Remove.
6452         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
6453         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
6454         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
6455         * config/t-darwin (LIB2ADDEHDEP): Remove.
6456         * config/t-freebsd (LIB2ADDEHDEP): Remove.
6457         * config/t-linux (LIB2ADDEHDEP): Remove.
6458
6459 2011-06-03  Diego Novillo  <dnovillo@google.com>
6460
6461         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
6462         (lto_register_var_decl_in_symtab): Likewise.
6463         (lto_register_function_decl_in_symtab): Likewise.
6464         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
6465         logic to uniquify_nodes.
6466
6467 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6468
6469         * config/alpha/t-osf5: Remove.
6470         * config/alpha/t-osf-pthread: Remove.
6471         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
6472         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
6473
6474 2011-06-03  Julian Brown  <julian@codesourcery.com>
6475
6476         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
6477         (strongarm1110): Use strongarm tuning.
6478         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
6479         * config/arm/arm.c (arm_strongarm_tune): New.
6480         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6481         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
6482         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
6483         setting, using previous defaults or 1 for Cortex-A5.
6484         (arm_option_override): Set max_insns_skipped from current tuning.
6485
6486 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
6487
6488         * doc/install.texi (Options specification): Document --with-specs.
6489
6490 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6491
6492         * config/arm/neon.md (orndi3_neon): Actually split it.
6493
6494 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
6495
6496         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
6497         * var-tracking.c (reverse_op): Limite recurse depth to 5.
6498
6499 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
6500
6501         PR debug/47590
6502         * target.def (delay_sched2, delay_vartrack): New.
6503         * doc/tm.texi.in: Update.
6504         * doc/tm.texi: Rebuild.
6505         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
6506         * var-tracking.c (gate_handle_var_tracking): Likewise.
6507         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
6508         (bfin_flag_var_tracking): Drop.
6509         (output_file_start): Don't save and override flag_var_tracking.
6510         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
6511         (bfin_reorg): Test original variables.
6512         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6513         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
6514         (ia64_flag_var_tracking): Drop.
6515         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6516         (ia64_file_start): Don't save and override flag_var_tracking.
6517         (ia64_override_options_after_change): Ditto
6518         flag_schedule_insns_after_reload.
6519         (ia64_reorg): Test original variables.
6520         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
6521         (picochip_flag_var_tracking): Drop.
6522         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6523         (picochip_option_override): Don't save and override
6524         flag_schedule_insns_after_reload.
6525         (picochip_asm_file_start): Ditto flag_var_tracking.
6526         (picochip_reorg): Test original variables.
6527         * config/spu/spu.c (spu_flag_var_tracking): Drop.
6528         (TARGET_DELAY_VARTRACK): Define.
6529         (spu_var_tracking): New.
6530         (spu_machine_dependent_reorg): Call it.
6531         (asm_file_start): Don't save and override flag_var_tracking.
6532
6533 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
6534
6535         PR target/49163
6536         * config/sh/predicates.md (general_movsrc_operand): Return 0
6537         for memory and memory subreg of which address is an invalid
6538         indexed address for QI and HImode.
6539         (general_movdst_operand): Likewise.
6540
6541 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
6542
6543         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
6544         edges only, when there is a non-local label in the function.
6545         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
6546
6547 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
6548
6549         * config/i386/constraints.md (Y3): New register constraint.
6550         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
6551         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
6552         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
6553         *sse2_interleave_lowv2df.
6554
6555 2011-06-02  Julian Brown  <julian@codesourcery.com>
6556
6557         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
6558         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
6559         (arm_cortex_a5_tune): New.
6560
6561 2011-06-02  Julian Brown  <julian@codesourcery.com>
6562
6563         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
6564         * config/arm/arm.c (arm_default_branch_cost): New.
6565         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6566         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
6567         (arm_fa726_tune): Set branch_cost field using
6568         arm_default_branch_cost.
6569         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
6570         current_tune structure.
6571         * dojump.c (tm_p.h): Include file.
6572
6573 2011-06-02  Julian Brown  <julian@codesourcery.com>
6574
6575         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
6576         tuning.
6577         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
6578         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
6579         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
6580         field.
6581         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
6582         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
6583         (arm_fa726te_tune): Add prefer_constant_pool setting.
6584         (arm_v6t2_tune, arm_cortex_tune): New.
6585         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
6586         prefer_constant_pool setting.
6587
6588 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
6589
6590         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
6591         switch statement.
6592         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
6593         (*movdf_internal) <case 6,7,8>: Ditto.
6594
6595         * config/i386/constraints.md (Y4): New register constraint.
6596         * config/i386/sse.md (vec_set<mode>_0): Merge with
6597         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
6598         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
6599         *vec_extractv2di_1_sse.
6600         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
6601         and *vec_concatv2di_rex64_sse.
6602
6603 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
6604
6605         PR target/48807
6606         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
6607         of cgraph_local_info for null before attempting to use it.
6608
6609 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
6610
6611         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
6612         (current_function_dynamic_alloc_count): Delete.
6613         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
6614         (expand_builtin_nonlocal_goto): Remove obsolete comment.
6615         (expand_builtin_update_setjmp_buf): Remove dead code.
6616         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
6617         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
6618         support.
6619         * function.c (instantiate_virtual_regs): Likewise.
6620         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
6621         for a block with a single abnormal incoming edge.
6622         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
6623         (SETJMP_VIA_SAVE_AREA): Delete.
6624         * config/sparc/sparc-protos.h (load_got_register): Declare.
6625         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6626         (load_got_register): Make global.
6627         (sparc_frame_pointer_required): Add 'static'.
6628         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
6629         (sparc_builtin_setjmp_frame_value): New function.
6630         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6631         (save_stack_nonlocal): New expander.
6632         (restore_stack_nonlocal): Likewise.
6633         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6634         (nonlocal_goto_internal): New insn.
6635         (goto_handler_and_restore): Delete.
6636         (builtin_setjmp_setup): Likewise.
6637         (do_builtin_setjmp_setup): Likewise.
6638         (setjmp): Likewise.
6639         (builtin_setjmp_receiver): New expander.
6640
6641 2011-06-01  David Li  <davidxl@google.com>
6642
6643         PR middle-end/49261
6644         * tree-pretty-print.c (dump_function_header): Format cleanup.
6645
6646 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
6647
6648         PR target/49238
6649         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6650         needed when original operands are used for msw_skip comparison.
6651
6652 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6653
6654         PR debug/49250
6655         * var-tracking.c (add_uses, add_stores): Don't call
6656         cselib_subst_to_values on ENTRY_VALUE.
6657
6658 2011-06-01  Diego Novillo  <dnovillo@google.com>
6659
6660         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6661         output_record_start with LTO_null instead of output_zero.
6662         (lto_output_ts_binfo_tree_pointers): Likewise.
6663         (lto_output_tree): Likewise.
6664         (output_eh_try_list): Likewise.
6665         (output_eh_region): Likewise.
6666         (output_eh_lp): Likewise.
6667         (output_eh_regions): Likewise.
6668         (output_bb): Likewise.
6669         (output_function): Likewise.
6670         (output_unreferenced_globals): Likewise.
6671         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6672         instead of NUM_TREE_CODES.
6673         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6674         (lto_output_int_in_range): Change << to >> when shifting VAL.
6675
6676 2011-06-01  Diego Novillo  <dnovillo@google.com>
6677
6678         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6679         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6680
6681 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6682
6683         PR target/45074
6684         * optabs.h (valid_multiword_target_p): Declare.
6685         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6686         doing multi-word operations.
6687         * optabs.c (expand_binop): Likewise.
6688         (expand_doubleword_bswap): Likewise.
6689         (expand_absneg_bit): Likewise.
6690         (expand_unop): Likewise.
6691         (expand_copysign_bit): Likewise.
6692         (multiword_target_p): New function.
6693
6694 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6695
6696         PR rtl-optimization/48830
6697         PR rtl-optimization/48808
6698         PR rtl-optimization/48792
6699         * reload.c (push_reload): Check contains_reg_of_mode.
6700         * reload1.c (strip_paradoxical_subreg): New function.
6701         (gen_reload_chain_without_interm_reg_p): Use it to handle
6702         paradoxical subregs.
6703         (emit_output_reload_insns, gen_reload): Likewise.
6704
6705 2011-06-01  David Li  <davidxl@google.com>
6706
6707         * predict.c : Change pass name
6708         * ipa.c: Ditto.
6709         * dce.c: Ditto.
6710         * tree-profile.c: Ditto.
6711         * except.c: Ditto.
6712
6713 2011-06-01  David Li  <davidxl@google.com>
6714
6715         * tree-pretty-print.c (dump_function_header): New function.
6716         * final.c (rest_of_clean_state): Use header dumper.
6717         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6718         * passes.c (pass_init_dump_file): Use header dumper.
6719
6720 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6721
6722         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6723         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6724         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6725         New functions.
6726         (mem_loc_descriptor): Use them.
6727
6728         * var-tracking.c (create_entry_value): New function.
6729         (vt_add_function_parameter): Use it.
6730
6731 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6732
6733         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6734         Include <signal.h>, <ucontext.h>.
6735         (sigill_caught): Define.
6736         (sigill_hdlr): New function.
6737         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6738         insns can be executed.
6739         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6740         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6741
6742 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6743
6744         * config/t-slibgcc-darwin: Move to ...
6745         * config/t-slibgcc-dummy: ... this.  Clarify comments.
6746         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6747         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6748         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6749         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
6750         Remove i386/t-crtstuff from tmake_file.
6751         (i[34567]86-*-solaris2*): Remove t-svr4,
6752         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6753         t-slibgcc-dummy.
6754         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6755         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6756         sparc/t-crtfm from tmake_file.
6757         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6758         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6759         Remove extra_parts.
6760         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6761         * config/i386/t-nwld (SHLIB_LINK): Remove.
6762         * config/i386/t-rtems-i386: Rename to ...
6763         * config/i386/t-rtems: ... this.
6764         ($(T)crti.o, $(T)crtn.o): Remove.
6765         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6766         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6767         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6768         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6769         EXTRA_MULTILIB_PARTS): Remove.
6770         * config/sparc/t-sol2-64: Likewise.
6771         * config/sparc/t-sol2: Remove.
6772         * config/sparc/t-crtin: Remove.
6773         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6774         * config/i386/gmon-sol2.c: Remove.
6775         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6776         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6777         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6778         * config/i386/sol2-gc1.asm: Remove.
6779         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6780         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6781         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6782         * config/t-slibgcc-sld: Remove.
6783
6784 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
6785
6786         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6787         base_type_for_mode with op_mode instead of mode.
6788
6789 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
6790
6791         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
6792         Cortex-A15.
6793         * config/arm/arm-tune.md: Regenerate.
6794         * config/arm/arm-tables.opt: Regenerate.
6795         * config/arm/arm.c (FL_DIV): Rename...
6796         (FL_THUMB_DIV): ... to this.
6797         (FL_ARM_DIV): Define.
6798         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6799         (arm_arch_hwdiv): Remove.
6800         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6801         (arm_issue_rate): Add cortexr5.
6802         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6803         __ARM_ARCH_EXT_IDIV__.
6804         (TARGET_IDIV): Define.
6805         (arm_arch_hwdiv): Remove.
6806         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6807         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6808         (divsi3, udivsi3): New patterns.
6809         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6810         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6811
6812 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6813
6814         * ipa-utils.c (ipa_dfs_info): New field scc_no.
6815         * ipa-utils.c (searchc): Set scc_no.
6816
6817 2011-06-01  Martin Jambor  <mjambor@suse.cz>
6818
6819         * ipa-utils.c (searchc_env): New field allow_overwritable.
6820         (searchc): do not ignore edges to overwritable nodes if indicated
6821         by env->allow_overwritable.
6822         (ipa_reduced_postorder): Set env.allow_overwritable.
6823
6824 2011-06-01  Richard Guenther  <rguenther@suse.de>
6825
6826         * tree.c (free_lang_data): Do not reset boolean_type_node nor
6827         char_type_node.
6828         * lto-streamer.c (lto_record_common_node): Take node pointer,
6829         do not register types.
6830         (lto_preload_common_nodes): Explicitly skip preloading nodes
6831         that differ between frontends.
6832
6833 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6834
6835         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6836         NON_FLOAT_REGS.
6837
6838 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
6839
6840         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6841         parameter value for dump. Dump cost on outermost call only.
6842         (rs6000_memory_move_cost): Dump cost on outermost call only.
6843
6844 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6845
6846         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6847         DW_OP_GNU_convert ops.
6848
6849         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6850         cselib_preserve_constants.
6851         (cselib_lookup_1): If cselib_preserve_constants,
6852         a new VALUE is being created for REG and there is a VALUE for the
6853         same register in wider mode, add another loc with lowpart SUBREG of
6854         the wider VALUE.
6855         (cselib_subst_to_values): Handle ENTRY_VALUE.
6856         * var-tracking.c  (replace_expr_with_values): Return NULL for
6857         ENTRY_VALUE too.
6858         * dwarf2out.c (convert_descriptor_to_signed): New function.
6859         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6860         instead of two shifts.
6861         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6862         the right mode if needed.
6863         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6864         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6865         convert_descriptor_to_signed.
6866         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6867         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6868
6869         PR target/48688
6870         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6871
6872 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6873
6874         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6875         of X87MODEI12 and SWI48x instead of SSEMODEI24.
6876         (SWI248x): New mode iterator, rename from X87MODEI.
6877         (X87MODEI): Remove mode iterator.
6878         (X87MODEI12): Ditto.
6879         (SSEMODEI24): Ditto.
6880
6881 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6882
6883         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6884         * doc/invoke.texi: Document max-vartrack-expr-depth.
6885         * var-tracking.c (EXPR_DEPTH): New.
6886         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6887
6888 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6889
6890         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6891         * config/i386/sse.md: Add n to negated FMA pattern names.
6892
6893 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6894
6895         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6896
6897 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
6898
6899         * gengtype-state.c (read_state_params_structs): Initialize previous.
6900
6901 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6902
6903         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6904         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6905
6906 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
6907
6908         * config/i386/i386.md (*movtf_internal): Avoid allocating general
6909         registers.  Penalize F*r->o alternative to prevent partial memory
6910         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
6911         CONST_DOUBLE immediates when optimizing function for size.  Do not move
6912         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6913         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6914         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6915         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6916         alternatives.
6917         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6918
6919         (fp_register_operand splitters): Use fp_register_operand
6920         constraint.  Do not use FP_REG_P in insn condition.
6921         (any_fp_register_operand splitters): Use any_fp_register_operand
6922         constraint.  Do not use ANY_FP_REG_P in insn condition.
6923
6924 2011-05-31  Jan Hubicka  <jh@suse.cz>
6925
6926         * cgraph.h (cgraph_inline_failed_t): Give enum a name
6927         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6928         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6929         (lto_output_edge): Use output_enum and var_len_unsigned.
6930         (lto_output_varpool_node): Likewise.
6931         (input_overwrite_node): Do not take resolution parameter;
6932         extract it from a bitpack.
6933         (input_node): Do not read resolution; use input_enum and
6934         var_len_unsigned.
6935         (input_varpool_node): Likewise.
6936         (input_edge): Likewise.
6937         (input_cgraph_1): Likewise.
6938
6939 2011-05-31  Richard Guenther  <rguenther@suse.de>
6940
6941         * gimple.c (gimple_register_canonical_type): Do not register
6942         any types via gimple_register_type.
6943
6944 2011-05-31  Jan Hubicka  <jh@suse.cz>
6945
6946         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6947         of thunks.
6948
6949 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
6950
6951         PR rtl-optimization/49235
6952         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6953         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6954
6955 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
6956
6957         PR tree-optimization/49093
6958         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6959         data references.
6960
6961 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
6962
6963         PR debug/49047
6964         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6965         for concrete functions containing the code of cloned functions.
6966
6967 2011-05-31  Richard Guenther  <rguenther@suse.de>
6968
6969         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6970         to ...
6971         (forward_propagate_into_comparison_1): ... this.
6972         (forward_propagate_comparison): Rename to ...
6973         (forward_propagate_into_comparison): ... this.  Split out
6974         real forward propagation code to ...
6975         (forward_propagate_comparison): ... this.
6976         (forward_propagate_into_gimple_cond): Remove looping.
6977         (forward_propagate_into_cond): Likewise.
6978         (simplify_not_neg_expr): Return whether we have done something.
6979         (simplify_gimple_switch): Likewise.
6980         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6981         (ssa_forward_propagate_and_combine): ... this.  Re-structure
6982         to do a forward forward-propagation walk on BBs and a backward
6983         stmt combining walk on BBs.  Consistently re-scan changed statements.
6984         (pass_forwprop): Adjust.
6985
6986 2011-05-30  Ian Lance Taylor  <iant@google.com>
6987
6988         * godump.c (go_format_type): Correct length of name added to
6989         obstack for anonymous field.
6990
6991 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6992
6993         PR target/49186
6994         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6995         part of the second operand is 0.
6996
6997 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
6998
6999         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
7000         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
7001         to memory for !TARGET_MEMORY_MISMATCH_STALL.
7002         (*movdf_internal_rex64): Do not penalize F->r alternative.
7003         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
7004         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
7005         when optimizing function for size.  Do not move CONST_DOUBLEs
7006         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
7007         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
7008         SUBREGs.  Do not check for MEM_P operands in the insn condition,
7009         check for ANY_FP_REGNO_P instead.
7010         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
7011         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
7012         function for speed.
7013         * config/i386/i386.c (ix86_option_override_internal): Do not
7014         set TARGET_INTEGER_DFMODE_MOVES here.
7015
7016 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7017
7018         PR target/49168
7019         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
7020
7021 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
7022
7023         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
7024         DW_TAG_rvalue_reference_type even for
7025         -gdwarf-4 -fno-debug-types-section.
7026
7027 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7028
7029         PR tree-optimization/46728
7030         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
7031         (build_and_insert_binop): New.
7032         (gimple_expand_builtin_pow): Reorder args for
7033         build_and_insert_call; use build_and_insert_binop; add more
7034         optimizations for fractional exponents.
7035
7036 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
7037
7038         PR bootstrap/49190
7039
7040         Revert:
7041         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7042
7043         * tree.h (struct tree_identifier): Inherit from tree_typed, not
7044         tree_common.
7045         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7046         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7047         TS_BASE instead of TS_COMMON.
7048         * varasm.c (assemble_name): Remove assert.
7049
7050 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
7051
7052         * config.gcc: Keep obselete list sorted.
7053
7054 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
7055             Eric Botcazou  <ebotcazou@adacore.com>
7056
7057         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
7058         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
7059         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
7060         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
7061         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
7062
7063 2011-05-30  Richard Guenther  <rguenther@suse.de>
7064
7065         * gimple.c (gimple_types_compatible_p_1): Compare record
7066         and union type members properly.
7067
7068 2011-05-30  Richard Guenther  <rguenther@suse.de>
7069
7070         PR tree-optimization/49210
7071         * ipa-split.c (split_function): Care for the case where the call
7072         result is not trivially convertible to the result holding variable.
7073
7074 2011-05-30  Richard Guenther  <rguenther@suse.de>
7075
7076         PR tree-optimization/49218
7077         * tree-vrp.c (adjust_range_with_scev): Properly check whether
7078         overflow occured.
7079
7080 2011-05-30  Richard Guenther  <rguenther@suse.de>
7081
7082         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
7083         New function split out from ...
7084         (forward_propagate_into_gimple_cond): ... here.  Adjust.
7085         (forward_propagate_into_cond): Likewise.
7086         (forward_propagate_comparison): Also propagate into
7087         comparisons on assignment RHS.  Change return value to
7088         behave similar to forward_propagate_into_cond.
7089         (tree_ssa_forward_propagate_single_use_vars): Handle
7090         strict-overflow warnings properly for forward_propagate_comparison.
7091
7092 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7093
7094         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
7095         from plugin linker.
7096         * configure: Regenerate.
7097
7098 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
7099
7100         PR tree-optimization/49199
7101         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
7102         non-reduction operands are either defined in the loop or by induction.
7103
7104 2011-05-29  Xinliang David Li  <davidxl@google.com>
7105
7106         * opts-global.c (handle_common_deferred_options): Handle new options.
7107         * passes.c (register_one_dump_file): Call register_pass_name.
7108         (execute_one_pass): Check explicit enable/disable flag.
7109         (passr_hash): New function.
7110         (passr_eq): Ditto.
7111         (register_pass_name): Ditto.
7112         (get_pass_by_name): Ditto.
7113         (pass_hash): Ditto.
7114         (pass_eq): Ditto.
7115         (enable_pass): Ditto.
7116         (disable_pass): Ditto.
7117         (is_pass_explicitly_enabled_or_disabled): Ditto.
7118
7119 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
7120
7121         * config/i386/i386.md (*movoi_internal_avx): Use
7122         standard_sse_constant_opcode for alternative 0.
7123         (*movti_internal_sse): Ditto.
7124         (*movti_internal_rex64): Use standard_sse_constant_opcode for
7125         alternative 2.
7126         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
7127         sselog1 type moves.
7128         (*movsi_internal): Ditto.
7129         (*movdi_internal): Ditto.  Add ssecvt type moves.
7130
7131 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
7132
7133         PR target/48830
7134         * rtlanal.c (simplify_subreg_regno): Adjust comment.
7135
7136 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
7137
7138         PR rtl-optimization/49095
7139         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
7140         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
7141
7142 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
7143
7144         PR target/43995
7145         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
7146         recurse_p argument.  Only follow register copies if it is set,
7147         and prevent mips_find_pic_call_symbol from recursing.
7148         (mips_find_pic_call_symbol): Add a recurse_p argument.
7149         Pass it to mips_pic_call_symbol_from_set.
7150         (mips_annotate_pic_calls): Update accordingly.
7151
7152 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
7153
7154         * emit-rtl.c (try_split): Use a loop to search for
7155         NOTE_INSN_CALL_ARG_LOCATIONs.
7156
7157 2011-05-29  Richard Guenther  <rguenther@suse.de>
7158
7159         PR tree-optimization/49217
7160         * ipa-pure-const.c (propagate_pure_const): Fix typos.
7161
7162 2011-05-28  Jan Hubicka  <jh@suse.cz>
7163
7164         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
7165         length.
7166         (string_slot_free): Remove
7167         (create_output_block): Initialize obstack.
7168         (destroy_output_block): Free obstack.
7169         (lto_string_index): Add PERSISTENT parameter; do not duplicate
7170         the string unless it needs to be added into the hash.
7171         (lto_output_string_with_length): Add persistent attribute;
7172         handle NULL strings.
7173         (lto_output_string): Add PERSISTENT parameter.
7174         (output_string_cst, output_identifier): Simplify.
7175         (lto_output_location_bitpack): Update.
7176         (lto_output_builtin_tree): Update.
7177         * lto-streamer.h (struct output_block): Add obstack.
7178         (lto_output_string, lto_output_string_with_length): Remove
7179         declarations; functions are static now.
7180
7181 2011-05-28  Jan Hubicka  <jh@suse.cz>
7182
7183         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
7184         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
7185         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
7186         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
7187         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
7188         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
7189         unpack_ts_decl_with_vis_value_fields,
7190         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
7191         lto_get_builtin_tree): Use enum and variable length i/o.
7192         * basic-block.h (profile_status_d): Add PROFILE_LAST.
7193         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
7194         New functions.
7195         (bp_pack_enum, bp_unpack_enum): New macros.
7196
7197 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7198
7199         * genrecog.c: Remove redundant forward declarations.
7200
7201 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7202
7203         * config.gcc: Deprecate mips*-*-openbsd*.
7204
7205 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7206
7207         PR bootstrap/49195
7208         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
7209         for match_op_dup.
7210
7211 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
7212
7213         PR middle-end/48981
7214         * gengtype.c (vec_prefix_type): New function.
7215         (note_def_vec): Use vec_prefix_type and change the length
7216         attribute to be based on the prefix.
7217         * vec.c: Include coretypes.h before vec.h.
7218         (struct vec_prefix): Remove.
7219         (vec_gc_p_reserve): Change the offsetof to sizeof.
7220         (vec_gc_p_reserve_exact): Likewise.
7221         (vec_heap_p_reserve): Likewise.
7222         (vec_heap_p_reserve_exact): Likewise.
7223         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
7224         (vec_stack_p_reserve): Change the offsetof to sizeof.
7225         (vec_stack_p_reserve_exact): Likewise.
7226         * vec.h (struct vec_prefix): New struct definition.
7227         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
7228         (VEC_T_GTY(T,B)): Likewise.
7229         (DEF_VEC_FUNC_P(T)): Use prefix field.
7230         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
7231         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
7232
7233 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7234
7235         PR tree-optimization/46728
7236         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
7237         (powi_as_mults): Add gimple_set_location.
7238         (build_and_insert_call): New.
7239         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
7240         0.5, 0.25, 0.75, 1./3., or 1./6.
7241
7242 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
7243
7244         * doc/contrib.texi: Update copyright years.
7245         (Contributors): Add Zdenek Sojka.
7246
7247 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7248
7249         * c-decl.c (c_push_function_context): Copy the current statement
7250         list stack.
7251         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
7252         (finish_struct): Call building_stmt_list_p instead of checking
7253         cur_stmt_list.
7254         * c-parser.c (c_parser_postfix_expression): Likewise.
7255         * c-typeck.c (c_end_compound_stmt): Likewise.
7256         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
7257         * tree-iterator.c (stmt_list_cache): Change to a VEC.
7258         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
7259         (free_stmt_list): Likewise.
7260         * tree.h (struct tree_statement_list): Include typed_tree instead
7261         of tree_common.
7262         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
7263         as TS_TYPED instead of TS_COMMON.
7264
7265 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7266             Uros Bizjak  <ubizjak@gmail.com>
7267
7268         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
7269         (HAVE_AS_IX86_TLSGDPTL): Define.
7270         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
7271         (HAVE_AS_IX86_TLSLDMPLT): Define.
7272         * configure: Regenerate.
7273         * config.in: Regenerate.
7274         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
7275         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
7276         TARGET_SUN_TLS, use @tlsgdplt or @plt.
7277         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
7278         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
7279         @tlsldmplt or @plt.
7280         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
7281
7282 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7283
7284         * sched-int.h (struct _haifa_deps_insn_data): New members cond
7285         and reverse_cond.
7286         (INSN_COND, INSN_REVERSE_COND): New macros.
7287         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
7288         once.
7289         (sched_get_condition_with_rev): Cache the results, and look them up
7290         if possible.
7291         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
7292         are clobbered by the current insn.
7293         * target.def (exposed_pipline): New sched data hook.
7294         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
7295         * doc/tm.texi: Regenerate.
7296
7297 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7298
7299         PR tree-optimization/49170
7300         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
7301         sincos or cexp.
7302
7303 2011-05-27  Richard Guenther  <rguenther@suse.de>
7304
7305         PR middle-end/49189
7306         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
7307         of comparisons.
7308
7309 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
7310
7311         * haifa-sched.c (sched_scan_info): Remove.
7312         (schedule_block): Call sched_extend_luids rather than sched_init_luids
7313         with NULL args.
7314         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
7315         Remove functions.
7316         (sched_scan): Remove.
7317         (sched_extend_luids): Renamed from luids_extend_insn and no longer
7318         static.  All callers changed.
7319         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
7320         static.  All callers changed.
7321         (sched_init_luids): Remove all arguments except the first.  All
7322         callers changed.  Don't use sched_scan.
7323         (haifa_init_h_i_d): Likewise.
7324         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
7325         manually rather than using sched_init_luids.  Likewise with
7326         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
7327         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
7328         rather than sched_init_luids with NULL args.
7329         * sel-sched-ir.c (new_insns): Remove variable.
7330         (sched_scan): New static function, previously in haifa-sched.c.  Remove
7331         all arguments but the first two; all callers changed.
7332         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
7333         rather than sched_init_luids.
7334         (sel_init_bbs): Remove second argument.  All callers changed.
7335         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
7336         with NULL arguments.
7337         (create_insn_rtx_from_pattern): Likewise.
7338         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
7339         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
7340         (sched_init_insn_luid, sched_extend_luids): Declare.
7341         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
7342         declarations.
7343
7344 2011-05-27  Richard Guenther  <rguenther@suse.de>
7345
7346         PR middle-end/49177
7347         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
7348         A CMP B ? (T) true : (T) false for non-integral types T again.
7349
7350 2011-05-27  Jan Hubicka  <jh@suse.cz>
7351
7352         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
7353         so 0 means NULL string.
7354         (lto_output_string_with_length): ... here.
7355         (lto_output_string, output_string_cst, output_identifier): Update
7356         handling of NULL strings.
7357         (lto_output_location_bitpack): New function.
7358         (lto_output_location): Use it.
7359         (lto_output_tree_ref): Use output_record_start.
7360         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
7361         len values.
7362         * lto-streamer-in.c (string_for_index): Break out from ...; offset
7363         values by 1.
7364         (input_string_internal): ... here;
7365         (input_string_cst, input_identifier, lto_input_string): Update handling
7366         of NULL strings.
7367         (lto_input_location_bitpack): New function
7368         (lto_input_location): Use it.
7369         (unpack_ts_type_common_value_fields): Pack align & alias in var len
7370         values.
7371         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
7372         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
7373         (bp_pack_value): Sanity check the value range.
7374         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
7375         New functions.
7376         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
7377         New functions.
7378
7379 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
7380
7381         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
7382         call_arg_location instructions down the floor.
7383
7384 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
7385
7386         PR rtl-optimization/49154
7387         * ira.c (setup_pressure_classes): Process class without sublcasses
7388         as a candidate for pressure classes.
7389
7390 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
7391
7392         PR rtl-optimization/48575
7393         * genrecog.c (position_type): New enum.
7394         (position): New structure.
7395         (decision): Use position structure instead of a string.
7396         (root_pos, peep2_insn_pos_list): New variables.
7397         (next_position, compare_positions): New functions.
7398         (new_decision): Use position structures instead of strings.
7399         (maybe_both_true): Likewise.
7400         (change_state): Likewise.
7401         (write_tree): Likewise.
7402         (make_insn_sequence): Likewise.
7403
7404 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7405
7406         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
7407         TS_BASE instead of TS_COMMON.
7408         (find_decls_types_r): Check for TS_TYPED structure before looking at
7409         TREE_TYPE.
7410         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
7411         Add chain field.
7412         (BLOCK_CHAIN): Use new chain field.
7413
7414 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
7415
7416         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
7417         moves expensive on Power7 also.
7418
7419 2011-05-26  Richard Guenther  <rguenther@suse.de>
7420
7421         * fold-const.c (fold_unary_loc): Remove bogus code.
7422
7423 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
7424
7425         * tree.h (struct tree_identifier): Inherit from tree_typed, not
7426         tree_common.
7427         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7428         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7429         TS_BASE instead of TS_COMMON.
7430         * varasm.c (assemble_name): Remove assert.
7431
7432 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
7433
7434         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
7435         substituted first.
7436         * libgcc-std.ver: Delete file.
7437
7438 2011-05-26  Richard Guenther  <rguenther@suse.de>
7439
7440         PR tree-optimization/48702
7441         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
7442         only when we know the base address is within bounds.
7443         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
7444         assume the base address of TARGET_MEM_REFs is in bounds.
7445
7446 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7447
7448         PR target/49099
7449         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
7450         declaration in TARGET_SOLARIS.
7451
7452 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
7453
7454         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
7455         The instruction is then expanded explicitly.
7456         (supported_compare): Callable instruction.
7457         (compare): Likewise.
7458
7459 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
7460
7461         PR c++/49165
7462         * gimplify.c (shortcut_cond_r): Don't special case
7463         COND_EXPRs if they have void type on one of their arms.
7464
7465 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
7466
7467         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
7468         to reduce duplication, and to achieve a slightly more logical order
7469         of operations.
7470
7471 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
7472
7473         PR tree-optimization/49161
7474         * tree-vrp.c (struct case_info): New type.
7475         (compare_case_labels): Sort case_info structs instead of
7476         trees, and not primarily by CASE_LABEL uids but by
7477         label_for_block indexes.
7478         (find_switch_asserts): Put case labels into struct case_info
7479         array instead of TREE_VEC, adjust sorting, compare label_for_block
7480         values instead of CASE_LABELs.
7481
7482 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7483
7484         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
7485         ("orndi3_neon"): Likewise.
7486         ("bic<mode>3_neon"): Likewise.
7487
7488 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
7489
7490         PR tree-optimization/49038
7491         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
7492         Ensure at least one epilogue iteration if required by data
7493         accesses with gaps.
7494         * tree-vectorizer.h (struct _loop_vec_info): Add new field
7495         to mark loops that require peeling for gaps.
7496         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
7497         (vect_get_known_peeling_cost): Take peeling for gaps into
7498         account.
7499         (vect_transform_loop): Generate epilogue if required by data
7500         access with gaps.
7501         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
7502         loop as requiring an epilogue if there are gaps in the end of
7503         the strided group.
7504
7505 2011-05-25  Ian Lance Taylor  <iant@google.com>
7506
7507         * godump.c (go_format_type): Output the first field with a usable
7508         Go type, if any.
7509
7510 2011-05-25  Ian Lance Taylor  <iant@google.com>
7511
7512         * godump.c (go_format_type): Check for invalid type names, pointer
7513         target types, and struct field types.
7514
7515 2011-05-25  Jason Merrill  <jason@redhat.com>
7516
7517         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
7518
7519 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
7520
7521         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
7522
7523 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7524
7525         * config/i386/i386.md (*movqi_extv_1)): Put back
7526         "register_operand" check in "type" calculation.
7527         (*movqi_extzv_2): Likewise.
7528
7529 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7530
7531         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
7532
7533 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
7534
7535         PR bootstrap/49160
7536         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
7537         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
7538         __divxc3, __divtc3): Wrap definitions in #ifndef.
7539
7540 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7541
7542         PR target/49142
7543         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
7544         "register_operand" check and replace q_regs_operand with
7545         QIreg_operand in "type" calculation.
7546         (*movqi_extv_1): Likewise.
7547         (*movqi_extzv_2_rex64): Likewise.
7548         (*movqi_extzv_2): Likewise.
7549
7550         * config/i386/predicates.md (QIreg_operand): New.
7551
7552 2011-05-25  Richard Guenther  <rguenther@suse.de>
7553
7554         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7555         type-based offset disambiguation, streamline MEM_REF and
7556         TARGET_MEM_REF handling.
7557
7558 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7559
7560         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
7561         (bdesc_special_args): Add pause intrinsic.
7562
7563         * config/i386/i386.md (UNSPEC_PAUSE): New.
7564         (pause): Likewise.
7565         (*pause): Likewise.
7566         * config/i386/ia32intrin.h (__pause): Likewise.
7567
7568         * doc/extend.texi (X86 Built-in Functions): Add documentation for
7569         pause intrinsic.
7570
7571 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7572
7573         PR tree-optimization/46728
7574         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
7575         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
7576
7577 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
7578
7579         * tree.h (struct tree_exp): Inherit from struct tree_typed.
7580         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
7581         instead of TS_COMMON.
7582
7583 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
7584
7585         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
7586         LIBGCC2_GNU_PREFIX is defined.
7587         (__N): New macro.
7588         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
7589         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
7590         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
7591         __clz_tab): Define using __N.
7592         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
7593         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
7594         * target.def (libfunc_gnu_prefix): New hook.
7595         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
7596         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
7597         * doc/tm.texi: Regenerate.
7598         * system.h (LIBGCC2_GNU_PREFIX): Poison.
7599         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
7600         account.
7601         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
7602         (init_optabs): Likewise for the bswap libfuncs.
7603         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
7604         and divide.
7605         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
7606         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
7607         * libgcc-std.ver: Remove.
7608         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
7609         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
7610         libgcc-std.ver.
7611         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7612         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
7613         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
7614         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
7615         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
7616         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7617         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7618         * config/fixed-bit.h (FIXED_OP): Define differently depending on
7619         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
7620         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
7621
7622 2011-05-25  Jan Hubicka  <jh@suse.cz>
7623
7624         * lto-streamer-out.c (output_record_start): Use lto_output_enum
7625         (lto_output_tree): Use output_record_start.
7626         * lto-streamer-in.c (input_record_start): Use lto_input_enum
7627         (lto_get_pickled_tree): Use input_record_start.
7628         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7629         (lto_value_range_error): New function.
7630         * lto-streamer.h (lto_value_range_error): Declare.
7631         (lto_output_int_in_range, lto_input_int_in_range): New functions.
7632         (lto_output_enum, lto_input_enum): New macros.
7633
7634 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7635
7636         * common.opt (flag_stack_usage_info): New variable.
7637         (-Wstack-usage): New option.
7638         * doc/invoke.texi (Warning options): Document -Wstack-usage.
7639         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7640         <OPT_fstack_usage>: Likewise.
7641         * toplev.c (output_stack_usage): Handle -Wstack-usage.
7642         * calls.c (expand_call): Test flag_stack_usage_info variable instead
7643         of flag_stack_usage.
7644         (emit_library_call_value_1): Likewise.
7645         * explow.c (allocate_dynamic_stack_space): Likewise.
7646         * function.c (instantiate_virtual_regs ): Likewise.
7647         (prepare_function_start): Likewise.
7648         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7649         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7650         * config/arm/arm.c (arm_expand_prologue): Likewise.
7651         (thumb1_expand_prologue): Likewise.
7652         * config/avr/avr.c (expand_prologue): Likewise.
7653         * config/i386/i386.c (ix86_expand_prologue): Likewise.
7654         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7655         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7656         * config/mips/mips.c (mips_expand_prologue): Likewise.
7657         * config/pa/pa.c (hppa_expand_prologue): Likewise.
7658         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7659         * config/s390/s390.c (s390_emit_prologue): Likewise.
7660         * config/sh/sh.c (sh_expand_prologue): Likewise.
7661         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7662         * config/spu/spu.c (spu_expand_prologue): Likewise.
7663
7664 2011-05-25  Richard Guenther  <rguenther@suse.de>
7665
7666         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7667         (gimple_canonical_types_compatible_p): Likewise.
7668
7669 2011-05-25  Jan Hubicka  <jh@suse.cz>
7670
7671         PR middle-end/49062
7672         * ipa.c (function_and_variable_visibility): Only add to same
7673         comdat group list if DECL_ONE_ONLY.
7674
7675 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
7676
7677         PR rtl-optimization/49014
7678         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7679
7680 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
7681
7682         PR target/49128
7683         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7684
7685 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7686
7687         PR rtl-optimization/48757
7688         * ira-build.c (loop_with_eh_edge_p): Rename to
7689         loop_with_complex_edge_p, check edges on complexity, make function
7690         conditional.
7691         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7692         conditional.
7693
7694 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7695
7696         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7697         force flag_ira_share_save_slots to 0.
7698
7699 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7700
7701         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7702         (vt_initialize): Set PROLOGUE_BB unconditionally.
7703         Add block comment about CFA_BASE_RTX machinery.
7704         Reset FP_CFA_OFFSET to -1 on all invalid paths.
7705         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7706
7707 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7708
7709         PR objc/48187
7710         * c-parser.c (c_parser_objc_class_instance_variables): More robust
7711         parsing of syntax error in ObjC instance variable lists.  In
7712         particular, avoid an infinite loop if there is a stray ']'.
7713         Updated error message.
7714
7715 2011-05-24  Ian Lance Taylor  <iant@google.com>
7716
7717         * godump.c (go_define): Don't accept a string immediately after
7718         another operand.
7719
7720 2011-05-24  Ian Lance Taylor  <iant@google.com>
7721
7722         * godump.c (struct godump_container): Add invalid_hash field.
7723         (go_format_type): Return false if type is found in invalid_hash.
7724         (go_output_typedef): Add invalid type to invalid_hash.
7725         (go_finish): Create and delete invalid_hash.
7726
7727 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7728
7729         PR tree-optimization/46728
7730         * tree-ssa-math-opts.c (powi_table): New.
7731         (powi_lookup_cost): New.
7732         (powi_cost): New.
7733         (powi_as_mults_1): New.
7734         (powi_as_mults): New.
7735         (gimple_expand_builtin_powi): New.
7736         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7737         (gate_cse_sincos): Remove sincos/cexp restriction.
7738
7739 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7740
7741         PR target/3746
7742         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7743         mips-tdump native.
7744         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7745         * mips-tdump.c: Likewise.
7746
7747 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7748
7749         PR target/49128
7750         * config/i386/driver-i386.c (host_detect_local_cpu): Always
7751         add -mno-XXX.  Handle FMA.
7752
7753 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7754
7755         PR rtl-optimization/48633
7756         * ira-build.c (loop_with_eh_edge_p): New function.
7757         (mark_loops_for_removal): Use it.
7758
7759 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
7760
7761         PR rtl-optimization/48971
7762         * ira.c (setup_pressure_classes): Don't check register move cost
7763         for classes with one registers.  Don't add pressure class if there
7764         is a pressure class with the same available hard registers.
7765         Check contains_reg_of_mode.  Fix a typo in collecting
7766         temp_hard_regset.  Ignore hard registers not belonging to a class.
7767
7768 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
7769
7770         PR target/49133
7771         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7772
7773 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7774             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7775
7776         PR gcov-profile/48845
7777         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7778
7779 2011-05-24  Richard Guenther  <rguenther@suse.de>
7780
7781         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7782         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7783         (gimple_types_compatible_p_1): Adjust.
7784         (iterative_hash_canonical_type): Do not bother about complete vs.
7785         incomplete types.
7786         (gimple_canonical_types_compatible_p): Likewise.
7787
7788 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7789
7790         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7791
7792 2011-05-24  Richard Guenther  <rguenther@suse.de>
7793
7794         PR bootstrap/49078
7795         * gimple.c (gimple_register_canonical_type): Revert
7796         previous change.
7797         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7798         does not for a tree for the case where it matters.  Cache
7799         pointer-type alias-sets.
7800
7801 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
7802
7803         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7804         (OBJS): Remove options.o, opts-common.o and prefix.o.
7805         (OBJS-libcommon-target): New.
7806         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7807         (BACKEND): Include libcommon-target.a.
7808         (MOSTLYCLEANFILES): Include libcommon-target.a.
7809         (libcommon-target.a): New.
7810         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7811         prefix.o.
7812
7813 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
7814
7815         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
7816         parts of output shared with the driver.
7817         * optc-gen.awk: Don't generate parts of output not shared with the
7818         driver.
7819         * opth-gen.awk: Remove GCC_DRIVER conditionals.
7820         * doc/options.texi (SourcerInclude): Mention options-save.c.
7821         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7822         (OBJS): Add options-save.o.
7823         (options-save.c, options-save.o): New.
7824         (options.o): Update dependencies.
7825         (gcc-options.o): Remove.
7826         (mostlyclean): Remove options-save.c.
7827
7828 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7829
7830         PR debug/49032
7831         * dbxout.c: Include cgraph.h.
7832         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7833         and without value expr, return NULL if no varpool node exists for
7834         it or if it is not needed.
7835         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7836
7837         PR c/49120
7838         * c-decl.c (start_decl): Convert expr to void_type_node.
7839
7840 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
7841
7842         PR rtl-optimization/48826
7843         * emit-rtl.c (try_split): When splitting a call that is followed
7844         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7845
7846 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7847
7848         * cfgexpand.c (expand_debug_expr): For unused non-addressable
7849         parameters passed in memory prefer using DECL_INCOMING_RTL over
7850         the pseudos it will be copied into.
7851
7852 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7853
7854         PR target/47315
7855         * config/i386/i386.c (ix86_option_override_internal): Save the
7856         initial options after checking vzeroupper.
7857
7858 2011-05-23  David Li  <davidxl@google.com>
7859
7860         PR tree-optimization/48988
7861         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7862         Initialize has_valid_pred for each pred chain.
7863
7864 2011-05-23  Richard Guenther  <rguenther@suse.de>
7865
7866         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7867         (iterative_hash_gimple_type): Always hash type names.
7868
7869 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
7870
7871         * c-typeck.c (build_function_call_vec): Tweak call to
7872         check_function_arguments.
7873
7874 2011-05-23  Richard Guenther  <rguenther@suse.de>
7875
7876         PR tree-optimization/49115
7877         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7878         is not necessarily carried out, do not claim it kills the ref.
7879         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7880
7881 2011-05-23  Richard Guenther  <rguenther@suse.de>
7882
7883         PR middle-end/15419
7884         * builtins.c (fold_builtin_memory_op): Be less restrictive about
7885         what pointer types we accept for folding.
7886
7887 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7888
7889         * gthr-gnat.c: Remove.
7890         * gthr-gnat.h: Remove.
7891         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7892         * config/t-freebsd (LIB2ADDEH): Likewise.
7893         * config/t-linux (LIB2ADDEH): Likewise.
7894         * config/t-sol2 (LIB2ADDEH): Likewise.
7895         * config/ia64/t-vms (LIB2ADDEH): Likewise.
7896         * configure.ac (target_thread_file): Remove gnat handling.
7897         * configure: Regenerate.
7898         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7899
7900 2011-05-23  Tristan Gingold  <gingold@adacore.com>
7901             Eric Botcazou  <ebotcazou@adacore.com>
7902
7903         * gcov.c (create_file_names): If no object directory is specified,
7904         keep the directory of the file.
7905
7906 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7907
7908         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7909         * configure: Regenerate.
7910
7911 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
7912
7913         PR middle-end/48973
7914         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7915         failed and the comparison has a single bit signed type, use
7916         constm1_rtx instead of const1_rtx for true value.
7917         (do_store_flag): If ops->type is single bit signed type, disable
7918         signel bit test optimization and pass -1 instead of 1 as last
7919         parameter to emit_store_flag_force.
7920
7921 2011-05-23  Tom de Vries  <tom@codesourcery.com>
7922
7923         PR target/45098
7924         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7925         function.
7926         (infer_loop_bounds_from_undefined): Use new function.
7927
7928 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7929
7930         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7931         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
7932         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7933         and -O0 otherwise.
7934         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7935
7936 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7937
7938         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7939         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7940         returns true.
7941
7942 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
7943
7944         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7945
7946 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7947
7948         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7949         UNSPEC_MOVE_PIC pattern.
7950
7951 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
7952
7953         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7954         (sparc-*-rtems*): Likewise.
7955         (sparc64-*-elf*): Likewise.
7956         (sparc64-*-rtems*): Likewise.
7957         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
7958         * config/sparc/t-crtin: New file.
7959         * config/sparc/t-sol2 (crti.o): Delete rule.
7960         (crtn.o): Likewise.
7961         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7962         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7963         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7964         (ENDFILE_SPEC): Add crtn.o.
7965
7966 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7967
7968         PR middle-end/48689
7969         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7970         CODE_CONTAINS_STRUCT (TS_COMMON).
7971
7972 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
7973
7974         PR middle-end/49029
7975         * expmed.c (extract_fixed_bit_field): Test whether target can be used
7976         only after deciding which mode to use.
7977
7978 2011-05-22  Tom de Vries  <tom@codesourcery.com>
7979
7980         PR target/45098
7981         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7982         for call to get_shiftadd_cost.
7983
7984 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
7985
7986         PR target/49104
7987         * config/i386/cpuid.h (bit_MMXEXT): New define.
7988
7989 2011-05-22  Nick Clifton  <nickc@redhat.com>
7990
7991         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7992         initialisation of non-existant args[2] element.  Use args[] array
7993         not arg[] array to pass arguments to build_function_type_list.
7994
7995 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
7996
7997         PR tree-optimization/49087
7998         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7999
8000 2011-05-21  Jason Merrill  <jason@redhat.com>
8001
8002         PR c++/49092
8003         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
8004         static storage duration.
8005
8006 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8007
8008         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
8009         frame pointer.
8010
8011 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8012
8013         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
8014         false if there are call-saved registers here...
8015         (sparc_can_use_return_insn_p): ...but here instead.
8016         (save_or_restore_regs): Fix thinko.
8017         (sparc_expand_prologue): Use current_function_is_leaf.
8018         (sparc_frame_pointer_required): Likewise.
8019
8020 2011-05-21  Nick Clifton  <nickc@redhat.com>
8021
8022         PR target/49098
8023         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
8024
8025 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8026
8027         * gengtype.c (walk_type): Implemented "atomic" GTY option.
8028         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
8029
8030 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
8031
8032         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
8033         * optc-gen.awk: Move common code to opt-read.awk.
8034         * opth-gen.awk: Likewise.
8035         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
8036
8037 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
8038
8039         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
8040
8041 2011-05-20  Tom de Vries  <tom@codesourcery.com>
8042
8043         PR target/45098
8044         * tree-ssa-loop-ivopts.c: Include expmed.h.
8045         (get_shiftadd_cost): New function.
8046         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
8047
8048 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
8049
8050         PR bootstrap/49086
8051         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
8052         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
8053
8054 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
8055
8056         * Makefile.in: Update comment referring to $(OBJS-common).
8057
8058 2011-05-20  Ian Lance Taylor  <iant@google.com>
8059
8060         * godump.c (go_output_typedef): Put enum constants in the macro
8061         hash table to avoid duplicate Go const definitions.
8062
8063 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
8064
8065         * Makefile.in (LIBDEPS): Add libcommon.a.
8066         (LIBS): Likewise.
8067         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
8068         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
8069         pretty-print.o and version.o.
8070         (OBJS-libcommon): New.
8071         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
8072         (BACKEND): Add libcommon.a.
8073         (MOSTLYCLEANFILES): Likewise.
8074         (libcommon.a): New.
8075         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
8076         (cpp$(exeext)): Likewise.
8077         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
8078         pretty-print.o and input.o.
8079         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
8080         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
8081         (errors.o): Remove.
8082         (mips-tfile): Don't explicitly use version.o.
8083         (mips-tdump): Likewise.
8084         (gcov.o): Depend on $(DIAGNOSTIC_H).
8085         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
8086         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
8087         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
8088         * gcov-dump.c: Include intl.h and diagnostic.h.
8089         (main): Initialize diagnostics.
8090         * gcov.c: Include diagnostic.h.
8091         (fnotice): Remove.
8092         (main): Initialize diagnostics.
8093         * lto-wrapper.c: Include diagnostic.h.
8094         (main): Initialize diagnostics.
8095
8096 2011-05-20  Michael Matz  <matz@suse.de>
8097
8098         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
8099
8100 2011-05-20  Michael Matz  <matz@suse.de>
8101             Richard Guenther  <rguenther@suse.de>
8102
8103         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
8104         use lto_streamer_cache_append directly instead of returning a VEC.
8105         (preload_common_node): Remove.
8106         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
8107         track seen nodes.
8108         (lto_streamer_cache_create): Call lto_preload_common_nodes.
8109
8110 2011-05-20  Richard Guenther  <rguenther@suse.de>
8111
8112         PR tree-optimization/49079
8113         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
8114         MEM_REFs correctly for the trailing array access detection.
8115         Special case constants the same way as decls for overall size
8116         constraining.
8117
8118 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
8119
8120         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
8121         argument expansion.
8122
8123 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
8124
8125         PR tree-optimization/49073
8126         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
8127         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
8128         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
8129
8130 2011-05-20  Richard Guenther  <rguenther@suse.de>
8131
8132         PR middle-end/48849
8133         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
8134         of pointer types the same way the middle-end does.
8135
8136 2011-05-20  Richard Guenther  <rguenther@suse.de>
8137
8138         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
8139         or pointer-to chains.  Delay all fixup to uniquify_nodes.
8140
8141 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
8142
8143         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
8144         (fma4_fmaddsub): Likewise
8145
8146 2011-05-19  Jan Hubicka  <jh@suse.cz>
8147
8148         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
8149         (GIMPLE_TYPE_PAIR_SIZE): New macro.
8150         (type_pair_cache): New static var.
8151         (lookup_type_pair): Use fixed sized custom hash; make inline.
8152         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
8153         calls of lookup_type_pair.
8154         (print_gimple_types_stats): Remove cache stats.
8155         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
8156         and gtc_ob.
8157
8158 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
8159
8160         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
8161         when TARGET_RDRND is active.
8162         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
8163         Generate dummy SImode target register when target is NULL.
8164
8165 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
8166
8167         * config/arm/arm-fpus.def: New.
8168         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
8169         arm-fpus.def.
8170         * config/arm/arm-tables.opt: Regenerate.
8171         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
8172         (arm_option_override): Don't decode FPU name to string here.
8173         * config/arm/arm.opt (mfpu=): Use Enum.
8174         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
8175         Update dependencies.
8176
8177 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
8178
8179         * collect2.c: Include diagnostic.h.
8180         (fatal_perror, fatal, error, fancy_abort): Remove.
8181         (main): Set progname.  Call xmalloc_set_program_name and
8182         diagnostic_initialize.
8183         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
8184         scan_libraries, resolve_lib_name): Call fatal_error instead of
8185         fatal and fatal_perror.
8186         * collect2.h (error, fatal, fatal_perror): Don't declare.
8187         * tlink.c: Include diagnostic-core.h.
8188         (recompile_files): Call fatal_error instead of fatal_perror.
8189         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
8190         pretty-print.o and input.o.
8191         (collect2.o, tlink.o): Update dependencies.
8192
8193 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8194
8195         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
8196
8197 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8198
8199         PR target/40483
8200         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
8201         COMDAT group syntax, both SPARC and x86 variants.
8202         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
8203         * configure: Regenerate.
8204         * config/sol2.h (TARGET_SOLARIS): Define.
8205         (PUSHSECTION_FORMAT): Remove.
8206         (SECTION_NAME_FORMAT): Define.
8207         * config/sol2.c: Include hashtab.h.
8208         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
8209         expansion, using SECTION_NAME_FORMAT.
8210         (solaris_comdat_htab): New variable.
8211         (struct comdat_entry): Define.
8212         (comdat_hash): New function.
8213         (comdat_eq): New function.
8214         (solaris_elf_asm_comdat_section): New function.
8215         (solaris_define_comdat_signature): New function.
8216         (solaris_code_end): New function.
8217         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
8218         (solaris_code_end): Declare.
8219         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
8220         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
8221         solaris_code_end.
8222         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
8223         Remove ATTRIBUTE_UNUSED.
8224         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
8225         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
8226         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
8227         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
8228         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
8229         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
8230         (PUSHSECTION_FORMAT): Remove.
8231         (SECTION_NAME_FORMAT): Redefine.
8232
8233 2011-05-19  Kai Tietz  <ktietz@redhat.com>
8234
8235         * tree-cfg.c (verify_gimple_assign_binary): Barf on
8236         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
8237         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
8238
8239 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
8240             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8241
8242         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
8243
8244 2011-05-19  Richard Guenther  <rguenther@suse.de>
8245
8246         PR middle-end/48985
8247         * tree-object-size.c (addr_object_size): If the pointed-to
8248         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
8249
8250 2011-05-19  Richard Guenther  <rguenther@suse.de>
8251
8252         * gimple.c (gimple_types_compatible_p_1): Compare names of
8253         the types themselves.
8254         (iterative_hash_gimple_type): And hash them that way.
8255         (gimple_register_type_1): If we register a main variant properly
8256         initialize the leader to ourselves.
8257
8258 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8259
8260         PR target/45098
8261         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
8262         get_loop_invariant_expr_id.
8263         (get_loop_invariant_expr_id): Use get_expr_id.
8264         (parm_decl_cost): New function.
8265         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
8266         Improve bound cost estimation.  Use different inv_expr_id for elim and
8267         express cases.
8268
8269 2011-05-19  Tom de Vries  <tom@codesourcery.com>
8270
8271         PR target/45098
8272         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
8273         cost_base.cost == 0.
8274
8275 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8276
8277         PR target/49002
8278         * config/i386/sse.md
8279         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
8280         load cast.
8281
8282 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
8283
8284         PR tree-optimization/49039
8285         * tree-vrp.c (extract_range_from_binary_expr): For
8286         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
8287         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
8288
8289 2011-05-18  Tom de Vries  <tom@codesourcery.com>
8290
8291         PR target/45098
8292         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
8293
8294 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
8295
8296         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
8297         (*tls_global_dynamic_64): Ditto.
8298         (*tls_local_dynamic_base_32_gnu): Ditto.
8299         (*tls_local_dynamic_base_64): Ditto.
8300         (tls_initial_exec_64_sun): Ditto.
8301
8302 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
8303
8304         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
8305         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
8306         bf592-none.
8307         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
8308         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8309         * config/bfin/bfin.c (bfin_cpus): Add bf592.
8310         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8311         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
8312         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
8313         * config/bfin/elf.h (LIB_SPEC): Add bf592.
8314
8315 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
8316
8317         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
8318         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
8319         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
8320         target_thread_pointer, arm_structure_size_boundary, struct
8321         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
8322         struct abi_name, arm_all_abis): Remove.
8323         (arm_option_override) Don't process most enumerated option values here.
8324         Don't process target_fpe_name here.  Work with integer not string for
8325         structure size boundary; use separate diagnostics for each case.
8326         * config/arm/arm.h (enum float_abi_type, enum
8327         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
8328         to arm-opts.h.
8329         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
8330         arm_structure_size_boundary): Remove.
8331         * config/arm/arm.opt (mabi=): Use Enum and Init.
8332         (arm_abi_type): New Enum and EnumValue entries.
8333         (mfloat-abi=): Use Enum and Init.
8334         (float_abi_type): New Enum and EnumValue entries.
8335         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
8336         (mfp16-format=): Use Enum and Init.
8337         (arm_fp16_format_type): New Enum and EnumValue entries.
8338         (mstructure-size-boundary=): Use UInteger and Init.
8339         (mtp=): Use Enum and Init.
8340         (arm_tp_type): New Enum and EnumValue entries.
8341
8342 2011-05-18  Richard Guenther  <rguenther@suse.de>
8343
8344         PR tree-optimization/49018
8345         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
8346         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
8347         gimple_has_side_effects.
8348
8349 2011-05-18  Richard Guenther  <rguenther@suse.de>
8350
8351         * gimple.c (gimple_register_type_1): New function, split out from ...
8352         (gimple_register_type): ... here.  Avoid infinite recursion.
8353
8354 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
8355
8356         PR tree-optimization/41881
8357         * tree-vectorizer.h (struct _loop_vec_info): Add new field
8358         reduction_chains along with a macro for its access.
8359         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
8360         (destroy_loop_vec_info): Free reduction chains.
8361         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
8362         (vect_is_slp_reduction): New function.
8363         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
8364         (vect_create_epilog_for_reduction): Support SLP reduction chains.
8365         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
8366         definition types for reduction chains.
8367         (vect_supported_load_permutation_p): Don't allow permutations for
8368         reduction chains.
8369         (vect_analyze_slp_instance): Support reduction chains.
8370         (vect_analyze_slp): Try to build SLP instance from reduction chains.
8371         (vect_get_constant_vectors):  Handle reduction chains.
8372         (vect_schedule_slp_instance): Mark the first statement of the
8373         reduction chain as reduction.
8374
8375 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
8376
8377         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
8378         names for group elements access.
8379         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
8380         reduction chains as well.  Remove data reference and interleaving
8381         related words from the fields names.
8382         * tree-vect-loop.c (vect_transform_loop): Use new names for group
8383         elements access.
8384         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
8385         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
8386         vect_update_interleaving_chain, vect_same_range_drs,
8387         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
8388         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
8389         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
8390         vect_analyze_group_access, vect_analyze_data_ref_access,
8391         vect_create_data_ref_ptr, vect_transform_strided_load,
8392         vect_record_strided_load_vectors): Likewise.
8393         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
8394         vect_model_load_cost, vectorizable_store, vectorizable_load,
8395         vect_remove_stores, new_stmt_vec_info): Likewise.
8396         * tree-vect-slp.c (vect_build_slp_tree,
8397         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
8398
8399 2011-05-18  Richard Guenther  <rguenther@suse.de>
8400
8401         PR middle-end/48989
8402         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
8403         operand verification.
8404         (verify_gimple_assign_binary): Likewise.
8405         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
8406         to non-1-precision BOOLEAN_TYPEs.
8407
8408 2011-05-18  Tom de Vries  <tom@codesourcery.com>
8409
8410         PR target/45098
8411         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
8412
8413 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
8414
8415         PR tree-optimization/49000
8416         * tree-ssa.c (execute_update_addresses_taken): Call
8417         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
8418         be rewritten and decl has been marked for renaming, reset
8419         the debug stmt.
8420
8421 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
8422
8423         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
8424         enum_opts_set when testing if attributes have set -mfpmath=.
8425
8426 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
8427
8428         * config/mips/mips.c (mips_handle_option): Remove unused variable.
8429
8430 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
8431
8432         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
8433         info->entry with 0
8434         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
8435         id.transform_lang_insert_block with NULL.
8436
8437 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
8438
8439         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
8440         (output_fp_compare): Change args 3 and 4 to bool.
8441         (ix86_expand_call): Change arg 6 to bool.
8442         (ix86_attr_length_immediate_default): Change arg 2 to bool.
8443         (ix86_attr_length_vex_default): Change arg 3 to bool.
8444         * config/i386/i386.md: Update all uses.
8445         * config/i386/i386.c: Ditto.
8446         (ix86_flags_dependent): Change return type to bool.
8447
8448 2011-05-17  Richard Guenther  <rguenther@suse.de>
8449
8450         * gimple.c (type_hash_pair_compare): Fix comparison.
8451
8452 2011-05-17  Richard Guenther  <rguenther@suse.de>
8453
8454         * gimple.c (iterative_hash_gimple_type): Simplify singleton
8455         case some more, fix final hash value of the non-singleton case.
8456
8457 2011-05-17  Richard Guenther  <rguenther@suse.de>
8458
8459         PR bootstrap/49013
8460         Revert
8461         2011-05-16  Richard Guenther  <rguenther@suse.de>
8462
8463         * gimple.c (gimple_types_compatible_p_1): Use names of the
8464         type itself, not its main variant.
8465         (iterative_hash_gimple_type): Likewise.
8466
8467 2011-05-17  Richard Guenther  <rguenther@suse.de>
8468
8469         * gimple.c (gimple_register_canonical_type): Use the main-variant
8470         leader for computing the canonical type.
8471
8472 2011-05-17  Nick Clifton  <nickc@redhat.com>
8473
8474         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
8475         moves.
8476
8477         * config/rx/rx.md: Add peephole to remove redundant extensions
8478         after loads.
8479         (bitset_in_memory): Use rx_restricted_mem_operand.
8480         (bitinvert_in_memory): Likewise.
8481         (bitclr_in_memory): Likewise.
8482
8483 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
8484             Nick Clifton  <nickc@redhat.com>
8485
8486         * config/rx/rx.md: Add peepholes to match a register move followed
8487         by a comparison of the moved register.  Replace these with an
8488         addition of zero that does both actions in one instruction.
8489
8490 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
8491
8492         PR target/48986
8493         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
8494         predicate to allow CONST_INT.
8495         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
8496
8497 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
8498
8499         * opts-common.c (opt_enum_arg_to_value): New.
8500         * opts.h (opt_enum_arg_to_value): Declare.
8501         * config/i386/i386.opt (fpmath): Remove.
8502         (mfpmath=): Use Enum, Init and Save.
8503         (fpmath_unit): New Enum and EnumValue entries.
8504         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
8505         name for function fpmath state.
8506         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
8507         * config/i386/i386.c: Include diagnostic.h.
8508         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
8509         (ix86_target_string): Take enum fpmath_unit value instead of string.
8510         (ix86_debug_options): Update call to ix86_target_string.
8511         (ix86_option_override_internal): Don't process fpmath strings here.
8512         (x86_function_specific_save, ix86_function_specific_restore):
8513         Don't handle fpmath state specially.
8514         (ix86_function_specific_print): Pass fpmath state to
8515         ix86_target_string instead of printing in this function.
8516         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
8517         Handle enum attributes.
8518         (IX86_ATTR_ENUM, ix86_opt_enum): New.
8519         (ix86_valid_target_attribute_tree): Update option_strings
8520         handling.  Handle fpmath as enum option.
8521         (ix86_can_inline_p): Update field names for function fpmath state.
8522         (ix86_expand_builtin): Update call to ix86_target_string.
8523         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
8524         (ix86_fpmath): Remove.
8525         * config/i386/t-i386 (i386.o): Update dependencies.
8526
8527 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
8528
8529         PR preprocessor/48677
8530         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
8531         from decoded_options[0], not from itself.
8532
8533 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
8534
8535         * config/i386/constraints.md (z): New constraint.
8536         * config/i386/i386.c (c): New mode attribute.
8537         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
8538         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
8539         constraint for operand 0.
8540         (*call_vzeroupper): Ditto.
8541         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
8542         (*call_rex64_ms_sysv_vzeroupper): Ditto.
8543         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
8544         Use "lzm" constraint for operand 0.
8545         (*call_pop_vzeroupper): Ditto.
8546         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
8547         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
8548         constraint for operand 0.
8549         (*sibcall_vzeroupper): Ditto.
8550         (*sibcall_rex64_ms_sysv): Ditto.
8551         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
8552         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
8553         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
8554         (*sibcall_pop_vzeroupper): Ditto.
8555         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
8556         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
8557         mode iterator.  Use "<c>zm" constraint for operand 1.
8558         (*call_value_vzeroupper): Ditto.
8559         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
8560         for operand 1.
8561         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
8562         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
8563         *call_value_pop_1.  Use "lzm" constraint for operand 1.
8564         (*call_value_pop_vzeroupper): Ditto.
8565         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
8566         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
8567         mode iterator.  Use "Uz" constraint for operand 1.
8568         (*sibcall_value_vzeroupper): Ditto.
8569         (*sibcall_value_rex64_ms_sysv): Ditto.
8570         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
8571         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
8572         constraint for operand 1.
8573         (*sibcall_value_pop_vzeroupper): Ditto.
8574         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
8575         and "z" constraint for operand 2.
8576         (*tls_global_dynamic_32_gnu): Ditto.
8577         (*tls_local_dynamic_base_32_gnu): Ditto.
8578         (*tls_local_dynamic_base_64): Ditto.
8579         (*tls_local_dynamic_32_once): Ditto.
8580         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
8581         Update all callers.
8582         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
8583
8584 2011-05-16  Richard Guenther  <rguenther@suse.de>
8585
8586         * gimple.c (gimple_types_compatible_p_1): Use names of the
8587         type itself, not its main variant.
8588         (iterative_hash_gimple_type): Likewise.
8589
8590 2011-05-16  Richard Guenther  <rguenther@suse.de>
8591
8592         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
8593         always visit pointer target and function result and argument types.
8594
8595 2011-05-16  Jason Merrill  <jason@redhat.com>
8596
8597         PR c++/48999
8598         * tree-inline.c (copy_statement_list): Put back recursion.
8599
8600 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
8601
8602         PR target/27663
8603         PR target/41076
8604         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
8605         * config/avr/avr.md ("*ior<mode>qi.byte0",
8606         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
8607
8608 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
8609
8610         PR target/45099
8611         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
8612         register is needed for a function argument.
8613
8614 2011-05-16  Richard Guenther  <rguenther@suse.de>
8615
8616         * gimple.c (struct type_hash_pair): New type.
8617         (type_hash_pair_compare): New function.
8618         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
8619
8620 2011-05-16  Revital Eres  <revital.eres@linaro.org>
8621
8622         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
8623
8624 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
8625
8626         * config/i386/i386.md (floating point move splitters): Fix
8627         usage of standard_80387_constant_p.
8628         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
8629
8630 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
8631
8632         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8633
8634 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8635
8636         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8637         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8638         (tree_ssa_lim_finalize): Likewise.
8639
8640 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
8641
8642         * config/i386/constraint.md (Yd, Yx): New register constraints.
8643         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
8644         Yd conditional register constraint.
8645         (*movtf_internal): Use standard_sse_constant_opcode.
8646         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
8647         Yx conditional register constraint.
8648         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
8649         Yd conditional register constraint.  Use standard_sse_constant_p to
8650         check for valid SSE constants and call standard_sse_constant_opcode to
8651         output SSE insn.
8652         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8653         constants and call standard_sse_constant_opcode to output SSE insn.
8654         * config/i386/i386.c (ix86_option_ovverride_internal): Set
8655         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
8656         optimize_size is set.
8657         (standard_sse_constant_opcode): Output conditional AVX insn templates.
8658
8659 2011-05-14  Tobias Burnus  <burnus@net-b.de>
8660
8661         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8662
8663 2011-05-13  Martin Jambor  <mjambor@suse.cz>
8664
8665         * ipa-prop.c (ipa_cst_from_jfunc): New function.
8666         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8667         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8668         (evaluate_conditions_for_ipcp_clone): Removed.
8669         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8670         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8671         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8672
8673 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8674
8675         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8676         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8677         lieu of MAY_HAVE_DEBUG_STMTS.
8678         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8679         debug statements if !MAY_HAVE_DEBUG_STMTS.
8680
8681 2011-05-13  Martin Thuresson  <martint@google.com>
8682
8683         PR gcov-profile/47793
8684         * libgcov.c (gcov_exit): Support relative profile paths.
8685         * doc/invoke.texi (-fprofile-dir): Update for above change.
8686
8687 2011-05-13  Richard Guenther  <rguenther@suse.de>
8688
8689         * gimple.c (gimple_canonical_types_compatible_p): Do not use
8690         type-pair caching, do not compare hashes.
8691
8692 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
8693
8694         PR middle-end/48965
8695         * tree-cfg.c (edge_to_cases_cleanup): Return true.
8696         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8697
8698 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8699
8700         * gimplify.c (gimplify_expr): Make sure operand is boolified.
8701         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8702         compatible type for TRUTH_NOT_EXPR.
8703
8704 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8705
8706         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8707         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
8708         can_create_pseudo_p ().
8709
8710 2011-05-13  Richard Guenther  <rguenther@suse.de>
8711
8712         PR lto/48978
8713         * gimple.c (iterative_hash_gimple_type): Revert change in
8714         pointer target and function result and argument hashing.
8715
8716 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
8717
8718         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8719         (*movxf_internal_nointeger): Ditto.
8720         (*movdf_internal_rex64): Ditto.
8721         (*movdf_internal): Ditto.
8722         (*movdf_internal_nointeger): Ditto.
8723         (*movsf_internal): Ditto.
8724         (sincos splitters): Use can_create_pseudo ().
8725
8726 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
8727
8728         * config/i386/i386-opts.h: New.
8729         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8730         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8731         ix86_section_threshold): Remove.
8732         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
8733         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8734         OPT_mbranch_cost_.
8735         (ix86_option_override_internal): Don't decode strings for options
8736         other than -march=, -mtune= and -mfpmath=.  Don't allow for
8737         __attribute__ uses in remaining diagnostics for options with
8738         string arguments.  Don't check for integer arguments being negative.
8739         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8740         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8741         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8742         ix86_branch_cost, ix86_section_threshold): Remove.
8743         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8744         HeaderInclude.
8745         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8746         but not Var.
8747         (masm=): Use Enum and Init.
8748         (asm_dialect): New Enum and EnumValue entries.
8749         (mbranch-cost=): Use UInteger.
8750         (mlarge-data-threshold=): Use UInteger and Init.
8751         (mcmodel=): Use Enum and Init.
8752         (cmodel): New Enum and EnumValue entries.
8753         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8754         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8755         mregparm=): Use UInteger.
8756         (mstringop-strategy=): Use Enum and Init.
8757         (stringop_alg): New Enum and EnumValue entries.
8758         (mtls-dialect=): Use Enum and Init.
8759         (tls_dialect): New Enum and EnumValue entries.
8760         (mabi=): Use Enum and Init.
8761         (calling_abi): New Enum and EnumValue entries.
8762         (mveclibabi=): Use Enum and Init.
8763         (ix86_veclibabi): New Enum and EnumValue entries.
8764
8765 2011-05-13  Nick Clifton  <nickc@redhat.com>
8766
8767         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8768         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8769
8770 2011-05-13  Kai Tietz  <ktietz@redhat.com>
8771
8772         PR middle-end/48984
8773         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8774         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8775         (gimple_boolify): Check for cast for boolean_type_node instead for
8776         BOOLEAN_TYPE.
8777
8778 2011-05-13  Richard Guenther  <rguenther@suse.de>
8779
8780         PR tree-optimization/48172
8781         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8782         multiplying by number of iterations for equal step.
8783         (vect_create_cond_for_alias_checks): Likewise.
8784
8785 2011-05-13  Andreas Schwab  <schwab@redhat.com>
8786
8787         * configure.ac: Use AS_HELP_STRING throughout.
8788         * configure: Regenerate.
8789
8790 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8791
8792         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8793         (ix86_emit_restore_regs_using_mov): Likewise.
8794         (ix86_emit_restore_sse_regs_using_mov): Likewise.
8795
8796 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
8797
8798         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8799         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8800         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8801         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8802         RTX_OK_FOR_OLO10_P): ...here.
8803         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8804         SYMBOLIC_CONST.
8805
8806 2011-05-12  Kai Tietz  <ktietz@redhat.com>
8807
8808         * gimplify.c (gimple_boolify): Re-boolify expression
8809         arguments even if expression type is of kind BOOLEAN_TYPE.
8810         (gimplify_boolean_expr): Removed.
8811         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8812         and XOR. Additional take care that we keep expression's type.
8813         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8814         of TRUTH_AND|OR|XOR_EXPR.
8815
8816 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8817
8818         PR tree-optimization/48975
8819         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8820         on all bbs here and free and clear ifc_bbs at the end.
8821
8822 2011-05-12  Richard Guenther  <rguenther@suse.de>
8823
8824         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8825         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
8826         until after simple checks.
8827         (gimple_types_compatible_p): Likewise.
8828         (iterative_hash_gimple_type): Always hash pointer targets
8829         and function return and argument types.
8830         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8831         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
8832         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8833         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
8834         completely in the simple compare section.
8835         (gimple_register_canonical_type): Query the cache again after
8836         registering.
8837
8838 2011-05-12  Richard Guenther  <rguenther@suse.de>
8839
8840         PR tree-optimization/48172
8841         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8842         the number of iterations from the segment size calculation.
8843         (vect_create_cond_for_alias_checks): Adjust.
8844
8845 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
8846
8847         PR debug/48967
8848         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8849         if validate_subreg fails.
8850
8851 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
8852
8853         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8854         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8855         early.
8856
8857 2011-05-12  DJ Delorie  <dj@redhat.com>
8858
8859         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8860         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8861         created builtin into rx_builtins array.
8862         (rx_builtin_decl): New function.
8863         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
8864
8865 2011-05-12  DJ Delorie  <dj@redhat.com>
8866             Nick Clifton  <nickc@redhat.com>
8867
8868         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8869         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8870         (rx_is_legitimate_address): Add pre-decrement and post-increment
8871         addressing in HImode and QImode.  Fix test for out of range
8872         REG+INT addressing.
8873         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8874         (rx_align_for_label): Test label before extracting its usage count.
8875         (rx_adjust_insn_lengths): Fix selection of insn codes.
8876         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8877
8878 2011-05-11  Jason Merrill  <jason@redhat.com>
8879
8880         * tree.c (type_hash_canon): Use struct tree_type_non_common.
8881
8882 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8883
8884         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8885         reindent the subsequent block.
8886
8887 2011-05-11  Satoru Takabayashi  <satorux@google.com>
8888             Paul Pluzhnikov  <ppluzhnikov@google.com>
8889
8890         * doc/install.texi (Configuration): Document --with-linker-hash-style.
8891         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8892         * config.in: Add LINKER_HASH_STYLE.
8893         * configure.ac: Add --with-linker-hash-style.
8894         * configure: Regenerate.
8895
8896 2011-05-11  Richard Guenther  <rguenther@suse.de>
8897
8898         PR middle-end/48964
8899         * gimple.c (iterative_hash_canonical_type): Fix typo.
8900
8901 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
8902
8903         * config/i386/i386.c (legitimize_tls_address)
8904         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8905         expanders directly for TARGET_GNU2_TLS.  Determine pic and
8906         __tls_get_addr symbol reference here.  Update call to
8907         gen_tls_global_dynamic_{32,64} for added arguments.
8908         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8909         expanders directly for TARGET_GNU2_TLS.  Determine
8910         __tls_get_addr symbol reference here.  Update call to
8911         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
8912         unique UNSPEC REG_EQUIV to libcall block.
8913         (ix86_tls_get_addr): Declare static.
8914         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8915         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8916         Do not determine pic and __tls_get_addr symbol reference here. Do not
8917         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8918         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8919         (tls_global_dynamic_64): Add operand 2.  Do not determine
8920         __tls_get_addr symbol reference here.  Do not call
8921         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8922         (tls_local_dynamic_base64): Ditto for operand 1.
8923
8924 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8925
8926         * function.c (expand_function_start): Initialize stack_check_probe_note
8927         only if the generic stack checking mechanism is used.
8928
8929 2011-05-11  Richard Guenther  <rguenther@suse.de>
8930
8931         PR tree-optimization/15256
8932         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8933         (A & B) | C, combine (A op CST1) op CST2.
8934         (tree_ssa_forward_propagate_single_use_vars): Only bother to
8935         visit assigns that have uses.
8936
8937 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
8938
8939         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8940         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8941         (unpack_ts_type_common_value_fields): ...this.  Update comment.
8942         (unpack_value_fields): Adjust for renaming.
8943         (lto_input_ts_type_tree_pointers): Split into...
8944         (lto_input_ts_type_common_tree_pointer): ...this and...
8945         (lto_input_ts_type_non_common_tree_pointers): ...this.
8946         (lto_input_tree_pointers): Adjust for above split.
8947         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8948         (pack_ts_type_common_value_fields): ...this.  Update comment.
8949         (lto_output_ts_type_tree_pointers): Split into...
8950         (lto_output_ts_type_common_tree_pointers): ...this and...
8951         (lto_output_ts_type_non_common_tree_pointers): ...this.
8952         (lto_output_tree_pointers): Adjust for above split.
8953         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8954         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8955         * stor-layout.c (vector_type_mode): Adjust location of mode field.
8956         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8957         Define.
8958         (struct tree_type): Split into...
8959         (struct tree_type_common: ...this and...
8960         (struct tree_type_with_lang_specific): ...this and...
8961         (struct tree_type_non_common): ...this.  Adjust accessor macros
8962         accordingly.
8963         (TYPE_VALUES_RAW): Define.
8964         (union tree_node): Update for above changes.
8965         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8966         TS_TYPE_NON_COMMON.
8967         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8968         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8969         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8970         * treestructu.def (TS_TYPE): Remove.
8971         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8972         Define.
8973
8974 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
8975
8976         PR debug/48159
8977         * tree-ssa.c (reset_debug_uses): New function.
8978         * tree-flow.h (reset_debug_uses): New prototype.
8979         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8980         * tree-loop-distribution.c (generate_loops_for_partition): Call
8981         reset_debug_uses on the stmts that will be removed.  Keep around
8982         all debug stmts, don't count them as bits in partition bitmap.
8983         (generate_builtin): Don't count debug stmts or labels as bits in
8984         partition bitmap.
8985
8986 2011-05-11  Richard Guenther  <rguenther@suse.de>
8987
8988         * gimple.c (gimple_type_hash_1): Merge with ...
8989         (gimple_type_hash): ... this.
8990         (gtc_visit): Remove mode parameter and simplify accordingly.
8991         (gimple_types_compatible_p_1): Likewise.
8992         (gimple_types_compatible_p): Likewise.
8993         (iterative_hash_gimple_type): Likewise.
8994         (visit): Likewise.
8995         (gimple_type_eq): Adjust.
8996
8997 2011-05-11  Revital Eres  <revital.eres@linaro.org>
8998
8999         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
9000         enters the branch create an anti edge in the opposite direction
9001         to prevent the creation of reg-moves.
9002         * modulo-sched.c: Adjust comment to reflect the fact we are
9003         scheduling closing branch.
9004         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
9005         (stage_count): New field in struct partial_schedule.
9006         (calculate_stage_count): New function.
9007         (normalize_sched_times): Rename to reset_sched_times and handle
9008         incrementing the sched time of the nodes by a constant value
9009         passed as parameter.
9010         (duplicate_insns_of_cycles): Skip closing branch.
9011         (sms_schedule_by_order): Schedule closing branch.
9012         (ps_insn_find_column): Handle closing branch.
9013         (sms_schedule): Call reset_sched_times and adjust the code to
9014         support scheduling of the closing branch.
9015         (ps_insert_empty_row): Update calls to normalize_sched_times
9016         and rotate_partial_schedule functions.
9017
9018 2011-05-11  Richard Guenther  <rguenther@suse.de>
9019
9020         PR middle-end/48953
9021         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
9022
9023 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
9024
9025         * opts.c (finish_options): Move warning settings from process_options.
9026         * toplev.c (process_options): Move warning settings to finish_options.
9027
9028 2011-05-11  Richard Guenther  <rguenther@suse.de>
9029
9030         PR tree-optimization/18041
9031         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
9032         (simplify_bitwise_binary): ... this.  Handle operand conversions
9033         by applying them to the result instead.
9034         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
9035
9036 2011-05-11  Richard Guenther  <rguenther@suse.de>
9037
9038         * gimple.c (gimple_canonical_types_compatible_p): Split out
9039         from gimple_types_compatible_p and friends.  Do not recurse
9040         to pointed-to types.
9041         (gimple_canonical_type_eq): Use it.
9042         (iterative_hash_canonical_type): Split out from
9043         iterative_hash_gimple_type and friends.  Do not recurse
9044         to pointed-to types.
9045         (gimple_canonical_type_hash): Use it, allocate the hash here.
9046
9047 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9048
9049         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
9050         recognizing doloop.
9051
9052 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9053
9054         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
9055         instead of PREV_INSN.
9056
9057 2011-05-11  Revital Eres  <revital.eres@linaro.org>
9058
9059         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
9060         * loop-doloop.c (doloop_condition_get): Likewise.
9061         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
9062         (doloop_end): New.
9063         * config/arm/arm.md (*addsi3_compare0): Remove "*".
9064
9065 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
9066
9067         * tree.def (CASE_LABEL_EXPR): Add an operand.
9068         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
9069
9070 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9071
9072         * c-decl.c (c_override_global_bindings_to_false): Remove.
9073         (global_bindings_p): Don't check
9074         c_override_global_bindings_to_false.
9075         * c-tree.h (c_override_global_bindings_to_false): Remove.
9076         * c-typeck.c (composite_type): Don't set
9077         c_override_global_bindings_to_false.
9078
9079 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
9080
9081         PR target/48857, 48495
9082         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
9083         (VSX_MODE): Ditto.
9084         (VSX_MOVE_MODE): Ditto.
9085         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
9086         VSX vector types.  Add V2DImode.
9087         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
9088         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
9089         (MODES_TIEABLE_P): Ditto.
9090
9091         * config/rs6000/rs6000.c (rs6000_emit_move): Use
9092         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
9093         VSX_VECTOR_MODE.
9094         (init_cumulative_args): Ditto.
9095         (rs6000_function_arg_boundary): Ditto.
9096         (rs6000_function_arg_advance_1): Ditto.
9097         (rs6000_function_arg): Ditto.
9098         (rs6000_function_ok_for_sibcall): Ditto.
9099         (emit_frame_save): Ditto.
9100         (rs6000_function_value): Ditto.
9101         (rs6000_libcall_value): Ditto.
9102
9103 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9104
9105         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9106         i386/darwin-lib.h to $libgcc_tm_file.
9107         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
9108
9109 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9110
9111         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
9112
9113 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9114
9115         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
9116         * config/rs6000/rs6000-tables.opt: New file (generated).
9117         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
9118         rs6000/rs6000-tables.opt to extra_options.
9119         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
9120         * config/rs6000/rs6000.c (rs6000_select): Remove.
9121         (processor_target_table): Move contents to rs6000-cpus.def.
9122         (darwin_rs6000_override_options): Check
9123         global_options_set.x_rs6000_cpu_index instead of
9124         rs6000_select[1].string.
9125         (rs6000_option_override_internal): Likewise.
9126         (rs6000_handle_option): Don't assert that global structures are in
9127         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
9128         (rs6000_default_cpu): New variable.
9129         (rs6000_file_start): Set it instead of local default_cpu.  Check
9130         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
9131         global_options_set.x_rs6000_tune_index instead of rs6000_select.
9132         (rs6000_darwin_file_start): Check rs6000_default_cpu and
9133         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
9134         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
9135         rs6000_select): Remove.
9136         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
9137         Remove.
9138         (mcpu=, mtune=): Use Var, Init, Enum and Save.
9139         * config/rs6000/t-rs6000
9140         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
9141         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9142         global_options_set.x_rs6000_cpu_index instead of
9143         rs6000_select[1].string.
9144         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9145         global_options_set.x_rs6000_cpu_index instead of
9146         rs6000_select[1].string.
9147
9148 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
9149
9150         * config.gcc (libgcc_tm_file): Define instead of including files
9151         from ../../libgcc/config/ in tm_file.
9152         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
9153         * configure: Regenerate.
9154         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
9155         libgcc_tm.h, cs-libgcc_tm.h): New.
9156         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
9157         (clean): Remove libgcc_tm.h.
9158         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
9159         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
9160         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
9161
9162 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
9163
9164         PR target/48896
9165         * config/avr/avr.c (avr_ret_register): Return unsigned int
9166         instead of int.
9167         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
9168         it to avr_libcall_value.
9169         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
9170         expand_expr.
9171         (avr_expand_binop_builtin): Ditto.
9172         (avr_expand_unop_builtin): Ditto.
9173
9174 2011-05-10  DJ Delorie  <dj@redhat.com>
9175
9176         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
9177         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
9178         * config/rx/rx.c (rx_align_for_label): Add label and
9179         uses_threshold parameters.  Do not align when the label is not
9180         used enough.
9181         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
9182
9183 2011-05-10  Richard Guenther  <rguenther@suse.de>
9184
9185         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
9186         a series of conversions and apply foldings similar to what
9187         fold-const does.
9188         (tree_ssa_forward_propagate_single_use_vars): Call it.
9189
9190 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
9191
9192         PR tree-optimization/48611
9193         PR tree-optimization/48794
9194         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
9195         referenced from RESX or EH_DISPATCH arguments.
9196
9197         PR debug/48928
9198         * dfp.c (decimal_to_decnumber): Handle conversion from
9199         dconst{1,2,m1,half}.
9200
9201 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9202
9203         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
9204         for !flag_prefer_avx128.
9205         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
9206
9207 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
9208
9209         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
9210         (fold_ternary_loc): Use expr_location_or.
9211
9212 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9213
9214         PR debug/48853
9215         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
9216         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
9217         Pmode and mem_mode is not VOIDmode.
9218
9219 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
9220
9221         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
9222         TYPE_QUAL_RESTRICT): Convert to enum.
9223
9224 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9225
9226         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
9227         (const_pow2_1_to_8_operand): Ditto.
9228         (const_pow2_1_to_128_operand): Ditto.
9229         (const_pow2_1_to_32768_operand): Ditto.
9230         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
9231         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
9232         in insn constraint to check integer value of operand 3.
9233         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
9234
9235         (PINSR_MODE): New mode iterator.
9236         (sse2p4_1): New mode attribute.
9237         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
9238         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
9239         iterator.  Use const_int_operand instead of
9240         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
9241         exact_log2 in insn constraint to check integer value of operand 3.
9242
9243 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9244
9245         * config/i386/sse.md (blendbits): Remove mode attribute.
9246         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9247         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9248         Check integer value of operand 3 in insn constraint.
9249
9250 2011-05-09  Richard Guenther  <rguenther@suse.de>
9251
9252         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
9253         for diagnostics.
9254         (lto_symtab_merge): Likewise.  Do not register types here.
9255         (lto_symtab_merge_decls_2): Likewise.
9256         (lto_symtab_merge_decls_1): Likewise.
9257         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9258         * gimple.c (enum gtc_mode): Declare.
9259         (gimple_types_compatible_p): Make static.
9260
9261 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9262
9263         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
9264         temporary register to match Pmode.
9265
9266 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9267
9268         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
9269         and *vec_concatv4si_1_avx.
9270
9271 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9272
9273         PR rtl-optimization/48927
9274         * ira-conflicts.c (commutative_constraint_p): Use
9275         recog_data.alternative_enabled_p to disable alternatives where
9276         "enabled" attribute is false.
9277         (get_dup_num): Ditto.
9278         * ira-lives.c (single_reg_class): Ditto.
9279         (ira_implicitly_set_insn_hard_regs): Ditto.
9280
9281 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
9282
9283         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
9284         (dataflow_set_preserve_mem_locs): Likewise.
9285
9286 2011-05-09  Philipp Thomas  <pth@suse.de>
9287
9288         * config/mep/mep.c (mep_validate_vliw): Syntax description
9289         should not be translated.
9290
9291 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
9292
9293         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
9294         * config/mips/mips-tables.opt: New file (generated).
9295         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
9296         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
9297         MIPS_ARCH_OPTION_NATIVE): Define.
9298         * config/mips/mips.c (mips_cpu_info_table): Move contents to
9299         mips-cpus.def.
9300         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
9301         mips_parse_cpu): Remove.
9302         (mips_cpu_info_from_opt, mips_default_arch): New.
9303         (mips_handle_option): Don't assert that global structures are in
9304         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
9305         (mips_option_override): Use new variables and functions to set
9306         state of these options.  Use strcmp to check for individual CPU names.
9307         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
9308         definition.
9309         * config/mips/mips.opt (march=): Use ToLower and Enum.
9310         (mips): Use ToLower, Enum and Var.
9311         (mtune=): Use ToLower and Enum.
9312         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
9313
9314 2011-05-08  Jan Hubicka  <jh@suse.cz>
9315
9316         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
9317         Arrange type pairs to be UID ordered.
9318         (gimple_lookup_type_leader): Make inline.
9319
9320 2011-05-09  Nick Clifton  <nickc@redhat.com>
9321
9322         PR target/48899
9323         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
9324         PROCESSOR_DEFAULT.
9325
9326         PR target/48897
9327         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
9328         variable 's'.
9329
9330 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
9331
9332         * combine.c (simplify_comparison): Abstract out parts into...
9333         (simplify_compare_const): ... new function.
9334         (try_combine): Generalize parallel arithmetic/compare combining
9335         to call simplify_compare_const() and CANONICALIZE_COMPARE().
9336
9337 2011-05-08  Jan Hubicka  <jh@suse.cz>
9338
9339         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
9340         (cgraph_create_virtual_clone): Call hooks once virtual clone
9341         is finished.
9342         * cgraph.h (cgraph_clone_node): Update prototype.
9343         * ipa-cp.c (ipcp_estimate_growth): Use
9344         estimate_ipcp_clone_size_and_time.
9345         * ipa-inline-transform.c (clone_inlined_nodes): Update.
9346         * lto-cgraph.c (input_node): Update.
9347         * ipa-inline.c (recursive_inlining): Update.
9348         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
9349         (evaluate_conditions_for_known_args): Break out from ...
9350         (evaluate_conditions_for_edge): ... here.
9351         (evaluate_conditions_for_ipcp_clone): New function.
9352         (inline_node_duplication_hook): Update clone summary based
9353         on parameter map.
9354         (estimate_callee_size_and_time): Rename to ...
9355         (estimate_node_size_and_time): take NODE instead of EDGE;
9356         take POSSIBLE_TRUTHS as argument.
9357         (estimate_callee_size_and_time): Update.
9358         (estimate_ipcp_clone_size_and_time): New function.
9359         (do_estimate_edge_time): Update.
9360
9361 2011-05-08  Richard Guenther  <rguenther@suse.de>
9362
9363         PR middle-end/48908
9364         PR middle-end/48905
9365         * expmed.c (expand_shift_1): Compute adjusted constant shift
9366         amount manually.
9367
9368 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9369
9370         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
9371
9372 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9373
9374         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
9375
9376 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
9377
9378         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
9379
9380 2011-05-07  Jan Hubicka  <jh@suse.cz>
9381
9382         * ipa-inline-transform.c (inline_call): Account when program size
9383         decreases.
9384         * ipa-inline.c (relative_time_benefit): New function.
9385         (edge_badness): Reorganize to be power 2 based; fix thinko when
9386         computing badness for negative growth; update comments to match
9387         reality; better dumps.
9388
9389 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
9390
9391         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
9392         type to bool and adjust comment.
9393         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
9394         (fold_mathfn_compare): Remove calls to global_bindings_p.
9395         (fold_inf_compare): Likewise.
9396         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
9397         * c-tree.h (global_bindings_p): Adjust prototype.
9398         * c-decl.c (global_bindings_p): Return bool and simplify.
9399
9400 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
9401
9402         PR tree-optimization/48837
9403         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
9404         when accumulator transformation is performed.
9405
9406 2011-05-06  Jan Hubicka  <jh@suse.cz>
9407
9408         * i386.h (ix86_tune_indices): Add
9409         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
9410         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
9411         * i386.c (initial_ix86_tune_features): Add
9412         X86_SOFTARE_PREFETCHING_BENEFICIAL.
9413         (software_prefetching_beneficial_p): Remove predicate.
9414         (ix86_option_override_internal): Use new macro.
9415
9416 2011-05-06  Jan Hubicka  <jh@suse.cz>
9417
9418         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
9419
9420 2011-05-06  Jan Hubicka  <jh@suse.cz>
9421
9422         * cgraph.c (cgraph_add_thunk): Create real function node instead
9423         of alias node; finalize it and mark needed/reachale; arrange visibility
9424         to be right and add it into the corresponding same comdat group list.
9425         (dump_cgraph_node): Dump thunks.
9426         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
9427         cgraph_function_with_gimple_body_p,
9428         cgraph_first_function_with_gimple_body,
9429         cgraph_next_function_with_gimple_body): New functions.
9430         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
9431         New macros.
9432         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
9433         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9434         * cgraphunit.c (cgraph_finalize_function): Only look into possible
9435         devirtualization when optimizing.
9436         (verify_cgraph_node): Verify thunks.
9437         (cgraph_analyze_function): Analyze thunks.
9438         (cgraph_mark_functions_to_output): Output thunks only in combination
9439         with function they are assigned to.
9440         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
9441         alias into normal node.
9442         (assemble_thunks): New functoin.
9443         (cgraph_expand_function): Use it.
9444         * lto-cgraph.c (lto_output_node): Stream thunks.
9445         (input_overwrite_node): Stream in thunks.
9446         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
9447         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
9448         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
9449         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
9450         (inline_analyze_function): Do not care about thunk jump functions.
9451         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
9452         * ipa-prop.c (ipa_prop_write_jump_functions): Use
9453         cgraph_function_with_gimple_body_p.
9454         * passes.c (do_per_function_toporder): Use
9455         cgraph_function_with_gimple_body_p.
9456         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9457         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
9458         (function_called_by_processed_nodes_p): Likewise.
9459
9460 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
9461
9462         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
9463         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
9464         entries.
9465         (mabi=): Replace with separate entries for mabi=altivec,
9466         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
9467         mabi=ieeelongdouble and mabi=ibmlongdouble.
9468         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
9469         check for -mabi=spe without SPE ABI support here.
9470         (rs6000_handle_option): Replace OPT_mabi_ handling with
9471         OPT_mabi_altivec and OPT_mabi_spe handling.
9472
9473 2011-05-06  Cary Coutant  <ccoutant@google.com>
9474
9475         * dwarf2out.c (contains_subprogram_definition): New function.
9476         (should_move_die_to_comdat): Call it.
9477
9478 2011-05-06  Jeff Law  <law@redhat.com>
9479
9480         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
9481         remove_ctrl_stmt_and_useless_edges.
9482         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
9483         (fixup_template_block, thread_single_edge): Likewise.
9484         (mark_threaded_blocks): Use THREAD_TARGET.
9485
9486 2011-05-06  Alan Modra  <amodra@gmail.com>
9487
9488         PR target/48900
9489         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9490         const0_rtx as the arg to the dummy __tls_get_addr libcall.
9491
9492 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
9493
9494         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
9495         constraint modifier to "r".
9496
9497 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
9498
9499         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
9500         fall through for OPT_mcmodel_.
9501
9502 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9503
9504         * config/s390/s390.c (s390_asm_trampoline_template): Comment
9505         instruction sizes.
9506         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
9507
9508 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9509
9510         PR target/47930
9511         * config/arm/arm.opt (marm): Document it.
9512         (mthumb): Reject negative variant.
9513
9514 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
9515
9516         PR target/48898
9517         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9518         Fix typo in "ccvt" variable name.
9519
9520 2011-05-06  Tristan Gingold  <gingold@adacore.com>
9521
9522         PR target/48895
9523         * config/vms/vms-ar.c (main): Remove cwd variable.
9524
9525 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
9526
9527         PR debug/48902
9528         * var-tracking.c (prepare_call_arguments): Move else before #endif.
9529
9530 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
9531
9532         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
9533         * gimplify.c (gimplify_switch_expr): Likewise.
9534         * omp-low.c (expand_omp_sections): Likewise.
9535         * tree-eh.c (lower_try_finally_switch): Likewise.
9536         (lower_eh_dispatch): Likewise.
9537         * tree.h (build_case_label): Declare.
9538         * tree.c (build_case_label): Define.
9539
9540 2011-05-05  Jason Merrill  <jason@redhat.com>
9541
9542         PR c++/40975
9543         * tree-inline.c (copy_tree_r): Use copy_statement_list.
9544         (copy_statement_list): Don't recurse.
9545         * stor-layout.c (copy_self_referential_tree_r): Don't allow
9546         STATEMENT_LIST.
9547
9548 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9549
9550         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
9551         through from -mfpu= handling.
9552         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
9553
9554 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
9555
9556         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
9557         POST_MODIFY.
9558
9559 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
9560
9561         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
9562         for 11.31.
9563         (hppa[12]*-*-hpux11*): Ditto.
9564         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
9565         * config/ia64/hpux-unix2003.h: New.
9566         * config/pa/pa-hpux1131.opt: New.
9567         * config/pa/pa-hpux1131.h: New.
9568         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
9569         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
9570         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
9571
9572 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
9573
9574         PR debug/48853
9575         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
9576         instead of mode as 3rd argument to recursive call.
9577         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
9578         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
9579         VOIDmode.
9580         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
9581         don't give up if mode is Pmode and mem_mode is not VOIDmode.
9582         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
9583         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
9584
9585 2011-05-05  Julian Brown  <julian@codesourcery.com>
9586
9587         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
9588         parenthesis in D-register case.
9589
9590 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9591
9592         * opt-functions.awk (var_type_struct): Handle Enum options.
9593         * optc-gen.awk: Don't check range of variables of character type.
9594         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
9595         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
9596         rs6000_sdata_name, rs6000_explicit_options): Remove.
9597         (rs6000_option_override_internal): Check for -malign-power here.
9598         Use global_options_set instead of rs6000_explicit_options.
9599         (rs6000_parse_fpu_option): Remove.
9600         (rs6000_handle_option): Access variables via opts and opts_set
9601         pointers.  Use error_at and warning_at.  Add fall-through
9602         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
9603         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
9604         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
9605         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
9606         here.  Don't use rs6000_parse_fpu_option.
9607         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
9608         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
9609         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
9610         (mrecip=): Use Var.
9611         (mspe): Use Var and Save.
9612         (mtraceback=): Use Enum and Var.
9613         (rs6000_traceback_type): New Enum and EnumValue entries.
9614         (mfloat-gprs=): Use Enum, Var and Save.
9615         (rs6000_float_gprs): New Enum and EnumValue entries.
9616         (mlong-double-): use Var and Save.
9617         (msched-costly-dep=, minsert-sched-nops=): Use Var.
9618         (malign-): Use Enum and Var.
9619         (rs6000_alignment_flags): New Enum and EnumValue entries.
9620         (mfpu=): Use Enum.
9621         (fpu_type_t): New Enum and EnumValue entries.
9622         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9623         global_options_set instead of rs6000_explicit_options.
9624         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9625         global_options_set instead of rs6000_explicit_options.
9626         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9627         global_options_set instead of rs6000_explicit_options.
9628         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9629         global_options_set instead of rs6000_explicit_options.
9630         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9631         global_options_set instead of rs6000_explicit_options.
9632         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9633         global_options_set instead of rs6000_explicit_options.
9634         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9635         definition.
9636         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9637         global_options_set instead of rs6000_explicit_options.
9638         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9639         (rs6000_cmodel): New Enum and EnumValue entries.
9640         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9641         global_options_set instead of rs6000_explicit_options.
9642         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9643         (mtls-size=): Use Enum and Var.
9644         (rs6000_tls_size): New Enum and EnumValue entries.
9645
9646 2011-05-05  Michael Matz  <matz@suse.de>
9647
9648         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9649         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9650         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9651         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9652         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9653         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9654         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9655         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9656         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9657         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9658         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9659         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9660         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9661         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9662         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9663         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9664
9665 2011-05-05  Richard Guenther  <rguenther@suse.de>
9666
9667         * expmed.c (expand_variable_shift): Rename to ...
9668         (expand_shift_1): ... this.  Take an expanded shift amount.
9669         For rotates recurse directly not building trees for the shift amount.
9670         (expand_variable_shift): Wrap around expand_shift_1.
9671         (expand_shift): Adjust.
9672
9673 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
9674
9675         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9676
9677 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9678
9679         * tree.h (get_pending_sizes): Remove prototype.
9680         (put_pending_size): Likewise.
9681         (put_pending_sizes): Likewise.
9682         * stor-layout.c (pending_sizes): Delete.
9683         (get_pending_sizes): Likewise.
9684         (put_pending_size): Likewise.
9685         (put_pending_sizes): Likewise.
9686         (variable_size): Do not call put_pending_size and tidy up.
9687         * function.h (struct function): Remove dont_save_pending_sizes_p.
9688         * lto-streamer-in.c (input_function): Do not stream it.
9689         * lto-streamer-out.c (output_function): Likewise.
9690         * tree-inline.c (initialize_cfun): Do not copy it.
9691         * c-decl.c (store_parm_decls): Do not set it.
9692         * omp-low.c (create_task_copyfn): Likewise.
9693         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9694
9695 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
9696
9697         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9698         conditions.
9699         (*movdf_internal): Ditto.
9700         (*movdf_internal_nointeger): Ditto.
9701         (*movsf_internal): Ditto.
9702
9703 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
9704
9705         * c-decl.c (finish_decl): Don't call get_pending_sizes.
9706         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
9707         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
9708         (c_variable_size): Remove.
9709         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
9710         call put_pending_sizes.
9711         (get_parm_info): Add parameter expr.  Use it to set
9712         arg_info->pending_sizes.
9713         (store_parm_decls): Use arg_info->pending_sizes instead or calling
9714         get_pending_sizes.
9715         * c-parser.c (c_parser_parms_declarator): Update call to
9716         c_parser_parms_list_declarator.
9717         (c_parser_parms_list_declarator): Take parameter expr.  Update
9718         call to push_parm_decl.  Update recursive call.  Don't call
9719         get_pending_sizes.  Update calls to get_parm_info.
9720         (c_parser_objc_method_definition): Update calls to
9721         c_parser_objc_method_decl and objc_start_method_definition.
9722         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9723         (c_parser_objc_method_decl): Add parameter expr.  Update call to
9724         grokparm.
9725         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9726         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9727         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9728
9729 2011-05-05  Michael Hope  <michael.hope@linaro.org>
9730
9731         PR pch/45979
9732         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9733         __ARM_EABI__ hosts.
9734
9735 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9736
9737         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9738         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9739         (spu_output_mi_thunk): New function.
9740
9741 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9742
9743         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9744         targetm.asm_out.print_operand.
9745         * config/sol2.c: Include target.h.
9746
9747 2011-05-04  Jan Hubicka  <jh@suse.cz>
9748
9749         * ipa-inline.c (reset_edge_caches): New function.
9750         (update_caller_keys): Add check_inlinablity_for; do not
9751         reset edge caches; remove now unnecesary loop.
9752         (update_callee_keys): Add comments; reset node_growth_cache of callee.
9753         (update_all_callee_keys): Likewise.
9754         (inline_small_functions): Sanity check cache; update code
9755         recomputing it.
9756
9757 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
9758
9759         PR rtl-optimization/47612
9760         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9761         as the last insn of the sequence to be moved.
9762
9763 2011-05-04  Tobias Burnus  <burnus@net-b.de>
9764
9765         PR fortran/48864
9766         * doc/invoke.texi (Ofast): Document that it
9767         enables Fortran's -fno-protect-parens.
9768
9769 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9770
9771         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9772
9773 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9774
9775         * stor-layout.c (variable_size): Do not issue errors.
9776
9777 2011-05-04  Richard Guenther  <rguenther@suse.de>
9778
9779         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9780         for array-ref indices.
9781         (tree_coverage_counter_addr): Likewise.
9782         (build_fn_info_type): Use size_int for index types.
9783         (build_gcov_info): Likewise.
9784
9785 2011-05-04  Richard Guenther  <rguenther@suse.de>
9786
9787         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9788         to build_int_cst.
9789         * c-typeck.c (really_start_incremental_init): Use bitsize_int
9790         for constructor indices.
9791         (push_init_level): Likewise.
9792
9793 2011-05-04  Richard Guenther  <rguenther@suse.de>
9794
9795         * explow.c (promote_mode): Move variable declarations before code.
9796
9797 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
9798
9799         * tree.h (build_function_type_array): Declare.
9800         (build_varargs_function_type_array): Declare.
9801         (build_function_type_vec, build_varargs_function_type_vec): Define.
9802         * tree.c (build_function_type_array_1): New function.
9803         (build_function_type_array): New function.
9804         (build_varargs_function_type_array): New function.
9805
9806 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
9807
9808         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9809         before setting STMT_VINFO_TYPE.
9810
9811 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9812
9813         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9814         instead of spu_pass_by_reference.
9815
9816 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9817
9818         * calls.c (emit_library_call_value_1): Invoke
9819         promote_function_mode hook on libcall arguments.
9820         * explow.c (promote_function_mode, promote_mode): Handle TYPE
9821         argument being NULL.
9822         * targhooks.c (default_promote_function_mode): Lisewise.
9823         * config/s390/s390.c (s390_promote_function_mode): Likewise.
9824         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9825
9826         * doc/tm.texi: Document that TYPE argument might be NULL.
9827
9828 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9829
9830         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9831
9832 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9833
9834         From Bernd Schmidt
9835         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9836
9837 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9838
9839         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9840         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9841         Move ...
9842         * mips-tfile.c: ... here.
9843         Don't include coretypes.h, tm.h, filenames.h.
9844         (saber_stop): Remove definition and all calls.
9845         [__SABER__]: Remove.
9846         (__LINE__): Remove default.
9847         (Size_t, Ptrdiff_t): Remove definitions.
9848         Replace by size_t, ptrdiff_t.
9849         [!MIPS_DEBUGGING_INFO]: Remove.
9850         (SHASH_SIZE, THASH_SIZE): Remove defaults.
9851         (progname): Add const.
9852         (STATIC): Remove.
9853         Replace all uses by static.
9854         (ALIGN_SYMTABLE_OFFSET): Remove default.
9855         * mips-tdump.c: Don't include coretypes.h, tm.h.
9856         Remove !MIPS_IS_STAB guard.
9857         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9858         $(TM_H), filenames.h dependencies.
9859         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9860
9861 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9862
9863         From Jie Zhang
9864         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9865         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9866
9867 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9868
9869         From Bernd Schmidt
9870         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9871         account and save/restore RETS.
9872         (PROFILE_BEFORE_PROLOGUE): Define.
9873         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
9874         the push insn to use predecrement.
9875
9876 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
9877
9878         From Jie Zhang
9879         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9880
9881 2011-05-04  Nick Clifton  <nickc@redhat.com>
9882
9883         * config/mn10300/mn10300.c: Include cfgloop.h.
9884         (DUMP): New macro.
9885         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
9886         Lcc or a FLcc insn into the instruction stream.
9887         (mn10300_block_contains_call): New function.  Returns true if the
9888         given basic block contains a CALL insn.
9889         (mn10300_loop_contains_call_insn): New function.  Returns true if
9890         the given loop contains a CALL insn.
9891         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
9892         to use the SETLB and Lcc or FLcc insns.
9893         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9894         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9895         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
9896         disable the SETLB optimization.
9897         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9898         __SETLB__ or __NO_SETLB__.
9899         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9900         (movsf_internal): Handle MDR register.
9901         (cmpsi): Make visible.
9902         (setlb): New pattern.
9903         (Lcc): New pattern.
9904         (FLcc): New pattern.
9905
9906 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
9907
9908         PR target/48860
9909         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9910         for reg<->xmm moves.
9911         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9912         (vec_concatv2di_rex64_sse): Ditto.
9913         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9914         (*vec_extractv2di_1_rex64): Ditto.
9915
9916         Revert:
9917         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
9918
9919         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9920         reg<->xmm moves.
9921         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9922
9923 2011-05-04  Richard Guenther  <rguenther@suse.de>
9924
9925         * tree.h (int_const_binop): Remove notrunc argument.
9926         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
9927         create integer constants that are properly truncated.
9928         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9929         (const_binop): Remove zero notrunc argument to int_const_binop.
9930         (size_binop_loc): Likewise.
9931         (fold_div_compare): Likewise.
9932         (maybe_canonicalize_comparison_1): Likewise.
9933         (fold_comparison): Likewise.
9934         (fold_binary_loc): Likewise.
9935         (multiple_of_p): Likewise.
9936         * expr.c (store_constructor): Likewise.
9937         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9938         (maybe_fold_stmt_addition): Likewise.
9939         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9940         * stor-layout.c (layout_type): Likewise.
9941         * tree-data-ref.c (tree_fold_divides_p): Likewise.
9942         * tree-sra.c (build_ref_for_offset): Likewise.
9943         (build_user_friendly_ref_for_offset): Likewise.
9944         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9945         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9946         * tree-ssa-loop-niter.c (inverse): Likewise.
9947         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9948         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9949         * tree-switch-conversion.c (check_range): Likewise.
9950         (build_constructors): Likewise.
9951         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9952         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9953         (extract_range_from_assert): Likewise.
9954         (vrp_int_const_binop): Likewise.
9955         (extract_range_from_binary_expr): Likewise.
9956         (extract_range_from_unary_expr): Likewise.
9957         (check_array_ref): Likewise.
9958         (find_case_label_range): Likewise.
9959         (simplify_div_or_mod_using_ranges): Likewise.
9960         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9961         comparing case labels for merging.
9962
9963 2011-05-03  Mark Wielaard  <mjw@redhat.com>
9964
9965         * dwarf2out.c (debug_str_hash_forced): Removed.
9966         (gen_label_for_indirect_string): Removed.
9967         (get_debug_string_label): Removed.
9968         (AT_string_form): Generate label directly.
9969         (output_indirect_string): Test indirect_string_node for
9970         DW_FORM_strp instead of checking label and refcount.
9971         (prune_indirect_string): Removed.
9972         (prune_unused_types): Don't check debug_str_hash_forced or
9973         call prune_indirect_string.
9974
9975 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9976
9977         PR other/48093
9978         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9979
9980 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
9981
9982         PR debug/47994
9983         PR debug/47919
9984         * combine.c (try_combine): Skip debug insns at m_split tests.
9985
9986 2011-04-26  Mark Wielaard  <mjw@redhat.com>
9987
9988         PR42288
9989         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9990         when info_section_emitted.
9991
9992 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
9993
9994         * config/mips/mips-opts.h: New.
9995         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9996         to mips-opts.h.
9997         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9998         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9999         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
10000         via opts pointer.
10001         * config/mips/mips.h (enum mips_code_readable_setting): Move to
10002         mips-opts.h.
10003         (mips_abi, mips_code_readable): Don't declare.
10004         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
10005         (mabi=): Use Enum and Var.
10006         (mips_abi): New Enum and EnumValue entries.
10007         (mcode-readable=): Use Enum and Var.
10008         (mips_code_readable_setting): New Enum and EnumValue entries.
10009         (mr10k-cache-barrier=): Use Enum and Var.
10010         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
10011
10012 2011-05-03  Jan Hubicka  <jh@suse.cz>
10013
10014         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
10015         replace hash by pointer map.
10016         (cgraph_node_set_element_def, cgraph_node_set_element,
10017         const_cgraph_node_set_element, varpool_node_set_element_def,
10018         varpool_node_set_element, const_varpool_node_set_element): Remove.
10019         (free_cgraph_node_set, free_varpool_node_set): New function.
10020         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
10021         * tree-emutls.c: Free varpool node set.
10022         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
10023         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10024         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
10025         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10026         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
10027         Move here from ipa.c; implement using pointer_map
10028         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
10029         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10030         debug_cgraph_node_set, varpool_node_set_new,
10031         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10032         dump_varpool_node_set, debug_varpool_node_set):
10033         Move to ipa-uitls.c.
10034         * passes.c (ipa_write_summaries): Update.
10035
10036 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10037
10038         From Mike Frysinger:
10039         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
10040         bf542/bf544/bf547/bf548/bf549.
10041
10042 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
10043
10044         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
10045
10046 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10047
10048         From Bernd Schmidt:
10049         * config/bfin/bfin.md (MOVCC): New mode_macro.
10050         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
10051         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
10052         comments from generated assembly.
10053
10054 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10055
10056         From Bernd Schmidt
10057         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
10058         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
10059         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
10060         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
10061         * config/bfin/lib1funcs.asm (___muldi3): New function.
10062
10063 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10064
10065         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
10066         build_function_type_list instead of build_function_type.
10067         Rearrange initialization of `args' to do so.
10068
10069 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10070
10071         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
10072         instead of build_function_type.
10073
10074 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10075
10076         * config/rs6000/rs6000.c (spe_init_builtins): Call
10077         build_function_type_list instead of build_function_type.
10078         (paired_init_builtins, altivec_init_builtins): Likewise.
10079         (builtin_function_type): Likewise.
10080
10081 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10082
10083         * config/sh/sh.c (sh_media_init_builtins): Call
10084         build_function_type_list instead of build_function_type.
10085
10086 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10087
10088         * config/sparc/sparc.c (sparc_file_end): Call
10089         build_function_type_list instead of build_function_type.
10090
10091 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10092
10093         * config/alpha/alpha.c (alpha_init_builtins): Call
10094         build_function_type_list instead of build_function_type.
10095
10096 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10097
10098         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
10099         build_function_type_list instead of build_function_type.
10100
10101 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10102
10103         * config/iq2000/i2000.c (iq2000_init_builtins): Call
10104         build_function_type_list instead of build_function_type.
10105         Delete `endlink' variable.
10106
10107 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10108
10109         * config/avr/avr.c (avr_init_builtins): Call
10110         build_function_type_list instead of build_function_type.
10111
10112 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10113
10114         * config/picochip/picochip.c (picochip_init_builtins): Call
10115         build_function_type_list instead of build_function_type.
10116         Delete `endlink' variable.
10117
10118 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
10119
10120         * config/bfin/bfin.c (bfin_init_builtins): Call
10121         build_function_type_list instead of build_function_type.
10122
10123 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10124
10125         From Bernd Schmidt
10126         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
10127         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
10128
10129 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10130
10131         From Jie Zhang:
10132         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
10133         libbffastfp overrides libgcc when -mfast-fp.
10134
10135 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10136
10137         Originally from Bernd Schmidt
10138         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
10139         * config/bfin/bfin.c (override_options): Test it and error if
10140         TARGET_FDPIC.
10141
10142 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
10143
10144         Originally From Bernd Schmidt
10145         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
10146         FD-PIC.
10147
10148 2011-05-03  Jeff Law  <law@redhat.com>
10149
10150         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
10151         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
10152         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
10153         than accessing AUX field directly.  Free the AUX field before
10154         clearing it.
10155         (thread_block, thread_through_loop_header): Likewise.
10156         (thread_single_edge, mark_threaded_blocks): Likewise.
10157         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
10158         (register_jump_thread): Do not attempt to thread to a NULL edge.
10159
10160 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
10161
10162         * function.c (init_function_start): Call decide_function_section.
10163         * varasm.c (decide_function_section): New function.
10164         (assemble_start_function): When not using
10165         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
10166         or first_function_block_is_cold.
10167         * rtl.h (decide_function_section): Declare.
10168
10169 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
10170             Jakub Jelinek  <jakub@redhat.com>
10171
10172         PR target/48774
10173         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
10174         only succeed if req_mode is the same as set_mode.
10175
10176 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
10177
10178         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
10179         * genemit.c (gen_exp): Handle RETURN.
10180         * emit-rtl.c (verify_rtx_sharing): Likewise.
10181         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
10182         * rtl.c (copy_rtx): RETURN is shared.
10183         * rtl.h (enum global_rtl_index): Add GR_RETURN.
10184         (ret_rtx): New.
10185         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
10186         * config/s390/s390.c (s390_emit_epilogue): Likewise.
10187         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
10188         * config/cris/cris.c (cris_expand_return): Likewise.
10189         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
10190         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
10191         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
10192         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
10193         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
10194         Likewise.
10195         * config/v850/v850.c (expand_epilogue): Likewise.
10196         * config/bfin/bfin.c (bfin_expand_call): Likewise.
10197         * config/arm/arm.md (epilogue): Likewise.
10198         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
10199         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
10200         variable to ret_reg.
10201
10202 2011-05-03  Richard Guenther  <rguenther@suse.de>
10203
10204         PR lto/48846
10205         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
10206         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
10207         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10208
10209 2011-05-03  Richard Guenther  <rguenther@suse.de>
10210
10211         * c-decl.c (grokdeclarator): Instead of looking at
10212         TREE_OVERFLOW check if the constant fits in the index type.
10213
10214 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10215
10216         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
10217         (vec_store_lanes<mode><mode>): Likewise.
10218
10219 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10220
10221         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
10222         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
10223         convert_optab_index values.
10224         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
10225         * genopinit.c (optabs): Initialize the new optabs.
10226         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
10227         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
10228         (expand_STORE_LANES): New functions.
10229         * tree.h (build_array_type_nelts): Declare.
10230         * tree.c (build_array_type_nelts): New function.
10231         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
10232         (vect_model_load_cost): Likewise.
10233         (vect_store_lanes_supported, vect_load_lanes_supported)
10234         (vect_record_strided_load_vectors): Declare.
10235         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
10236         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
10237         (vect_transform_strided_load): Split out statement recording into...
10238         (vect_record_strided_load_vectors): ...this new function.
10239         * tree-vect-stmts.c (create_vector_array, read_vector_array)
10240         (write_vector_array, create_array_ref): New functions.
10241         (vect_model_store_cost): Add store_lanes_p argument.
10242         (vect_model_load_cost): Add load_lanes_p argument.
10243         (vectorizable_store): Try to use store-lanes functions for
10244         interleaved stores.
10245         (vectorizable_load): Likewise load-lanes and loads.
10246         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
10247         to vect_model_store_cost.
10248         (vect_build_slp_tree): Likewise vect_model_load_cost.
10249
10250 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10251
10252         * hooks.h (hook_bool_mode_uhwi_false): Declare.
10253         * hooks.c (hook_bool_mode_uhwi_false): New function.
10254         * target.def (array_mode_supported_p): New hook.
10255         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
10256         * doc/tm.texi: Regenerate.
10257         * stor-layout.c (mode_for_array): New function.
10258         (layout_type): Use it.
10259         * config/arm/arm.c (arm_array_mode_supported_p): New function.
10260         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
10261
10262 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
10263
10264         PR target/48723
10265         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
10266         for -fstack-check if the size to allocate is negative.
10267
10268 2011-05-02  Lawrence Crowl  <crowl@google.com>
10269
10270         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
10271         (timevar_cond_start): New for starting a timer only when it is not
10272         already running.
10273         (timevar_cond_stop): New for stopping a timer when it was not already
10274         running.
10275
10276         * timevar.c (timevar_stop): Enable start/stop timers to start again.
10277         (timevar_cond_start): New as above.
10278         (timevar_cond_stop): New as above.
10279
10280         * timevar.def: Add start/stop timers for compiler phases,
10281         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
10282         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
10283         and TV_PHASE_FINALIZE.
10284         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
10285         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
10286         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
10287         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
10288         Make unused TV_OVERLOAD into a start/stop timer.
10289
10290         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
10291         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
10292         to indicate that they are start/stop timers.
10293
10294         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
10295         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
10296         Move initialization to do_compile.
10297         (do_compile): Add initialization from above.
10298         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
10299
10300         * c-decl.c (c_write_global_declarations): Add start/stop of
10301         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
10302
10303         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
10304         or TV_PARSE_INLINE, as appropriate.
10305         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
10306         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
10307
10308 2011-05-02  Jason Merrill  <jason@redhat.com>
10309
10310         PR c++/40975
10311         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
10312
10313 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
10314
10315         PR c/35445
10316         * c-decl.c (finish_decl): Only create a composite if the types are
10317         compatible.
10318
10319 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
10320
10321         * config/fr30/fr30-protos.h (Mmode): Don't define.
10322         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
10323         definition where used.
10324         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
10325         define.  Expand definitions where used.
10326         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
10327         Expand definitions where used.
10328         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
10329         rx_function_arg, rx_function_arg_advance,
10330         rx_function_arg_boundary): Expand definitions of those macros.
10331         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
10332         definition where used.
10333
10334 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
10335
10336         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10337         reg<->xmm moves.
10338         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
10339         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
10340         with *movv2sf_internal_rex64_avx.
10341         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
10342         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
10343         Use %v prefix in insn mnemonic to handle TARGET_AVX.
10344         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
10345         "vex" in "prefix" attribute calculation.
10346         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
10347
10348 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
10349
10350         PR target/47951
10351         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
10352         inputs match the output.
10353
10354 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
10355
10356         PR target/47955
10357         * config/m68k/m68k.c (m68k_expand_prologue): Set
10358         current_function_static_stack_size.
10359
10360 2011-05-02   Jan Hubicka  <jh@suse.cz>
10361
10362         * lto-streamer.c (lto_streamer_cache_insert_1,
10363         lto_streamer_cache_lookup, lto_streamer_cache_create,
10364         lto_streamer_cache_delete): Use pointer map instead of hashtable.
10365         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
10366
10367 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
10368
10369         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
10370         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
10371         config/m68k/t-opts: New files.
10372         * config/m68k/m68k-tables.opt: New file (generated).
10373         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
10374         extra_options and m68k/t-opts to tmake_file.
10375         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
10376         (all_isas): Initialize using m68k-isas.def.
10377         (all_microarchs): Initialize using m68k-microarchs.def.
10378         (m68k_find_selection): Remove.
10379         (m68k_handle_option): Don't assert that global structures are in
10380         use.  Use error_at.  Access variables via opts pointer.  Don't
10381         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
10382         directly for -m68020-40 and -m68020-60.
10383         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
10384         m68k_tune_entry here.
10385         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
10386         to m68k-opts.h.
10387         (m68k_library_id_string): Remove declaration.
10388         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
10389         (m68k_library_id_string): New Variable.
10390         (march=, mcpu=, mtune=): Use Enum and Var.
10391
10392 2011-05-02  Richard Guenther  <rguenther@suse.de>
10393
10394         * varasm.c (output_constructor_regular_field): Compute zero-based
10395         index with double-ints.  Make sure to ICE instead of producing
10396         wrong code.
10397         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
10398         in asserts.  Properly use a signed type.
10399
10400 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
10401
10402         * config/i386/sse.md (V): New mode iterator.
10403         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
10404         TARGET_SSE2.
10405         (V_256): Rename from AVX256MODE.
10406         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
10407         condition to all users.
10408         (VF1): Ditto.
10409         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
10410         condition to all users.
10411         (VF_128): Make V4SF mode unconditional.
10412         (VF_256): Rename from AVX256MODEF2P.
10413         (VI4F_128): Rename from SSEMODE4S.
10414         (VI8F_128): Rename from SSEMODE2D.
10415         (VI4F_256): Rename from AVX256MODE8P.
10416         (VI8F_256): Rename from AVX256MODE4P.
10417         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
10418         (ssescalarmodesuffix): Remove SF and DF modes.
10419         (SSEMODE124): Remove.
10420         (SSEMODE1248): Ditto.
10421         (SSEMODEF2P): Ditto.
10422         (AVXMODEF2P): Ditto.
10423         (AVXMODEFDP): Ditto.
10424         (AVXMODEFSP): Ditto.
10425         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
10426         unconditional.
10427         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
10428         unconditional.
10429         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
10430         xop_pcmov_<mode>256.  Use V mode iterator.
10431
10432         Adjust RTX patterns globally for renamed mode attributes.
10433
10434 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10435
10436         * haifa-sched.c (sched_emit_insn): Emit insn before first
10437         non-scheduled insn.  Inform back-end about new insn.  Add
10438         new insn to scheduled_insns list.
10439
10440 2011-05-02  Richard Guenther  <rguenther@suse.de>
10441
10442         PR tree-optimization/48822
10443         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
10444         (process_scc): Indicate which iteration we start.
10445
10446 2011-05-02  Jan Hubicka  <jh@suse.cz>
10447
10448         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
10449         (lto_section_overrun): New.
10450         * lto-section-out.c (append_block): Rename to ...
10451         (lto_append_block): ... this one; export.
10452         (lto_output_1_stream): Move lto lto-streamer.h
10453         (lto_output_data_stream): Update.
10454         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
10455         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
10456         functions.
10457
10458 2011-05-02  Richard Guenther  <rguenther@suse.de>
10459
10460         * tree.c (tree_code_counts): New global array.
10461         (record_node_allocation_statistics): Count individual tree codes.
10462         (dump_tree_statistics): Dump individual code stats.
10463
10464 2011-05-01  Jan Hubicka  <jh@suse.cz>
10465
10466         * ipa-inline.c (caller_growth_limits): Fix thinko when
10467         looking for largest stack frame.
10468         * ipa-inline.h (dump_inline_summary): Declare.
10469         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
10470         on stack usage.
10471         (dump_inline_summary): Export.
10472         (debug_inline_summary): Declare as DEBUG_FUNCTION.
10473
10474 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
10475
10476         * reginfo.c (memory_move_cost): Change rclass argument type form
10477         'enum reg_class' to reg_class_t.
10478         * reload.h (memory_move_cost): Update prototype.
10479         * postreload.c reload_cse_simplify_set): Change type dclass var to
10480         reg_class_t.
10481         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
10482         Update prototype.
10483         (ira_allocate_and_set_costs): Change aclass argument type form
10484         'enum reg_class' to reg_class_t.
10485         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
10486         Change aclass argument type to reg_class_t.
10487         (update_conflict_hard_reg_costs): Change type aclass and pref vars
10488         to reg_class_t.
10489         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
10490         memory_move_cost call.
10491
10492         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
10493         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
10494         Change type tmp var to reg_class_t.
10495
10496 2011-04-30  Jan Hubicka  <jh@suse.cz>
10497
10498         * ipa-inline.c (can_inline_edge_p): Disregard limits when
10499         inlining into function with flatten attribute.
10500         (want_inline_small_function_p): Be more realistic about inlining
10501         cold calls where callee size grows.
10502
10503 2011-04-30  Jan Hubicka  <jh@suse.cz>
10504
10505         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
10506         flags.
10507
10508 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
10509
10510         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10511         PRINT_OPERAND_PUNCT_VALID_P): Remove.
10512         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
10513         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
10514         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10515         (print_operand): Rename to...
10516         (sparc_print_operand): ...this. Make static. Adjust
10517         sparc_print_operand function call.
10518         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
10519         functions.
10520
10521 2011-04-30  Jan Hubicka  <jh@suse.cz>
10522
10523         PR middle-end/48752
10524         * ipa-inline.c (early_inliner): Disable when doing late
10525         addition of function.
10526
10527 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
10528
10529         * dwarf2out.c (get_address_mode): New inline.
10530         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
10531         if not dwarf_strict emit
10532         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
10533         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
10534         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
10535         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
10536         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
10537         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
10538         mem_loc_descriptor callers.
10539         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10540         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
10541         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
10542         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
10543         (base_types): New variable.
10544         (get_base_type_offset, calc_base_type_die_sizes,
10545         base_type_for_mode, mark_base_types, base_type_cmp,
10546         move_marked_base_types): New functions.
10547         (calc_die_sizes): Assert that die_offset is 0 or equal to
10548         next_die_offset.
10549         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
10550         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
10551         callers.  If not dwarf_strict, call mem_loc_descriptor even for
10552         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
10553         (gen_subprogram_die): Don't give up on call site parameters
10554         with non-integral or large integral modes.  Adjust
10555         mem_loc_descriptor callers.
10556         (prune_unused_types): Call prune_unused_types_mark on base_types
10557         vector entries.
10558         (resolve_addr): Call mark_base_types.
10559         (dwarf2out_finish): Call move_marked_base_types.
10560
10561         PR tree-optimization/48809
10562         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
10563         type.
10564         (gen_inbound_check): Don't compute index_expr - range_min in utype
10565         again, instead reuse SSA_NAME initialized in build_arrays.
10566         Remove two useless gsi_for_stmt calls.
10567
10568 2011-04-29  Jeff Law  <law@redhat.com>
10569
10570         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
10571
10572 2011-04-29  Martin Jambor  <mjambor@suse.cz>
10573
10574         * cgraph.h (cgraph_postorder): Remove declaration.
10575         * ipa-utils.h (ipa_free_postorder_info): Declare.
10576         (ipa_reverse_postorder): Likewise.
10577         * cgraphunit.c: Include ipa-utils.h.
10578         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
10579         * ipa-inline.c: Include ipa-utils.h.
10580         (ipa_inline): Update call to ipa_reverse_postorder.
10581         * ipa-pure-const.c (propagate_pure_const): Update call to
10582         ipa_reduced_postorder and ipa_print_order.  Call
10583         ipa_free_postorder_info to clean up.
10584         (propagate_nothrow): Likewise.
10585         * ipa-reference.c (propagate): Removed a useless call to
10586         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
10587         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
10588         * ipa.c: Include ipa-utils.h.
10589         (ipa_profile): Update call to ipa_reverse_postorder.
10590         (cgraph_postorder): Moved to...
10591         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
10592         (ipa_utils_print_order): Renamed to ipa_print_order.
10593         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
10594         comments.
10595         (ipa_free_postorder_info): New function.
10596         * passes.c: Include ipa-utils.h.
10597         (do_per_function_toporder): Update call to ipa_reverse_postorder.
10598         (ipa_write_summaries): Likewise.
10599         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
10600         (cgraphunit.o): Likewise.
10601         (ipa.o): Likewise.
10602         (ipa-inline.o): Likewise.
10603
10604 2011-04-29  Jan Hubicka  <jh@suse.cz>
10605
10606         * gcc.dg/tree-ssa/inline-10.c: New testcase.
10607         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
10608         * ipa-inline.h (clause_t): Turn into unsigned int.
10609         * ipa-inline-analysis.c (add_clause): Do more simplification.
10610         (and_predicates): Shortcut more cases.
10611         (predicates_equal_p): Move forward; check that clauses are properly
10612         ordered.
10613         (or_predicates): Shortcut more cases.
10614         (edge_execution_predicate): Rewrite as...
10615         (set_cond_stmt_execution_predicate): ... this function; handle
10616         __builtin_constant_p.
10617         (set_switch_stmt_execution_predicate): New .
10618         (compute_bb_predicates): New.
10619         (will_be_nonconstant_predicate): Update TODO.
10620         (estimate_function_body_sizes): Use compute_bb_predicates
10621         and free them later, always try to estimate if stmt is constant.
10622         (estimate_time_after_inlining, estimate_size_after_inlining):
10623         Gracefully handle optimized out edges.
10624         (read_predicate): Fix off by one error.
10625
10626 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10627
10628         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10629
10630 2011-04-27  Xinliang David Li  <davidxl@google.com>
10631
10632         * tree-profile.c (init_ic_make_global_vars): Set
10633         tls attribute on ic vars.
10634         * coverage.c (coverage_end_function): Initialize
10635         function_list with zero.
10636
10637 2011-04-29  Richard Guenther  <rguenther@suse.de>
10638
10639         * builtins.c (fold_builtin_classify_type): Use integer_type_node
10640         for the type of the result.
10641         (fold_builtin_isascii): Likewise.
10642         (fold_builtin_toascii): Use integer_type_node where appropriate.
10643         (fold_builtin_logb): Likewise.
10644         (fold_builtin_frexp): Likewise.
10645         (fold_builtin_strstr): Likewise.
10646         (fold_builtin_strpbrk): Likewise.
10647         (fold_builtin_fputs): Likewise.
10648         (fold_builtin_sprintf): Likewise.
10649         (fold_builtin_snprintf): Likewise.
10650         (fold_builtin_printf): Likewise.
10651         (do_mpfr_remquo): Use a proper type for the assigned constant.
10652         (do_mpfr_lgamma_r): Likewise.
10653         * dwarf2out.c (resolve_one_addr): Use size_int.
10654         * except.c (init_eh): Likewise.
10655         (assign_filter_values): Use integer_type_node for filter values.
10656         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10657         indices.
10658         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10659         for EH region numbers.
10660         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10661         for the shift amount.
10662
10663 2011-04-29  Richard Guenther  <rguenther@suse.de>
10664
10665         * expr.h (expand_shift): Rename to ...
10666         (expand_variable_shift): ... this.
10667         (expand_shift): Take a constant shift amount.
10668         * expmed.c (expand_shift): Rename to ...
10669         (expand_variable_shift): ... this.
10670         (expand_shift): New wrapper around expand_variable_shift.
10671         * expr.c (convert_move, emit_group_load_1, emit_group_store,
10672         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10673         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10674         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10675         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10676         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10677         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10678         emit_store_flag_1, emit_store_flag): Likewise.
10679         * builtins.c (expand_builtin_signbit): Likewise.
10680         * calls.c (load_register_parameters): Likewise.
10681         * function.c (assign_parm_setup_block): Likewise.
10682         * lower-subreg.c (resolve_shift_zext): Likewise.
10683         * optabs.c (widen_bswap, expand_abs_nojump,
10684         expand_one_cmpl_abs_nojump, expand_float): Likewise.
10685         * spu/spu.c (spu_expand_extv): Likewise.
10686         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10687
10688 2011-04-29  Richard Guenther  <rguenther@suse.de>
10689
10690         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10691         for the remapped region number.
10692         * predict.c (build_predict_expr): Use integer_type_node for the
10693         predict kind.
10694         * fold-const.c (fold_binary_loc): Use integer_type_node for
10695         the shift amount.  Use a proper type for the PLUS_EXPR operand.
10696
10697 2011-04-29  Michael Matz  <matz@suse.de>
10698
10699         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10700         other trees that just builtins.
10701         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10702
10703 2011-04-29  Richard Guenther  <rguenther@suse.de>
10704
10705         * tree-nested.c (get_trampoline_type): Use size_int.
10706         (get_nl_goto_field): Likewise.
10707         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10708         for all indexes.
10709         (lower_eh_constructs_2): Likewise.
10710         (lower_resx): Likewise.
10711         (lower_eh_dispatch): Likewise.
10712         * tree-mudflap.c (mf_build_string): Use size_int.
10713         (mudflap_register_call): Use integer_type_node for the flag.
10714         (mudflap_enqueue_constant): Use size_int.
10715         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10716         instead of rebuilding it.
10717
10718 2011-04-29  Richard Guenther  <rguenther@suse.de>
10719
10720         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10721         Handle OBJ_TYPE_REF.
10722         (find_func_aliases_for_call): Use it more consistently.
10723
10724 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
10725
10726         * haifa-sched.c (last_nondebug_scheduled_insn): New.
10727         (rank_for_schedule): Use it.
10728         (schedule_block): Set it.
10729
10730 2011-04-28  David Li  <davidxl@google.com>
10731
10732         * tree.c (crc32_string): Use crc32_byte.
10733         (crc32_byte): New function.
10734         * tree.h (crc32_byte): New function.
10735         * gcov.c (read_graph_file): Handle new cfg_cksum.
10736         (read_count_file): Ditto.
10737         * profile.c (instrument_values): Ditto.
10738         (get_exec_counts): Ditto.
10739         (read_profile_edge_counts): Ditto.
10740         (compute_branch_probabilities): Ditto.
10741         (compute_value_histograms): Ditto.
10742         (branch_prob): Ditto.
10743         (end_branch_prob): Ditto.
10744         * coverage.c (read_counts_file): Ditto.
10745         (get_coverage_counts): Ditto.
10746         (tree_coverage_counter_addr): Ditto.
10747         (coverage_checksum_string): Ditto.
10748         (coverage_begin_output): Ditto.
10749         (coverage_end_function): Ditto.
10750         (build_fn_info_type): Ditto.
10751         (build_fn_info_value): Ditto.
10752         * libgcov.c (gcov_exit): Ditto.
10753         * gcov-dump.c (tag_function): Ditto.
10754         (compute_checksum): Remove.
10755
10756 2011-04-29  Alan Modra  <amodra@gmail.com>
10757
10758         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10759         unspec plus offset.  Tidy macho code.
10760
10761 2011-04-29  Martin Jambor  <mjambor@suse.cz>
10762
10763         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10764         node instead of a decl.  Update all callers.
10765         * cgraph.h: Update declaration.
10766
10767 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
10768
10769         PR tree-optimization/48765
10770         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10771         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10772         to indicate if loop aware SLP is being used.  Scan the statements
10773         and update the vectorization factor according to the type of
10774         vectorization before statement analysis.
10775         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10776         pass it to vect_analyze_loop_operations.
10777         (vectorizable_reduction): Set number of copies to 1 in case of pure
10778         SLP statement.
10779         * tree-vect-stmts.c (vectorizable_conversion,
10780         vectorizable_assignment, vectorizable_shift,
10781         vectorizable_operation, vectorizable_type_demotion,
10782         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10783         Likewise.
10784         (vectorizable_condition): Move the check that it is not SLP
10785         vectorization before the number of copies check.
10786         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10787         to vectorize the loop using SLP.
10788
10789 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
10790
10791         PR middle-end/48597
10792         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10793         inline asm.
10794
10795 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
10796
10797         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10798         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10799         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10800         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10801         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10802         linux*.h headers.
10803         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10804         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10805         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10806         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10807         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10808         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10809         REG_NAME.
10810         * config/i386/linux.h (REG_NAME): Don't define.
10811         * config/i386/linux64.h (REG_NAME): Don't define.
10812         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10813         Undefine before defining.
10814
10815 2011-04-28  Jan Hubicka  <jh@suse.cz>
10816
10817         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10818         nonconstant_names array.
10819         (estimate_function_body_sizes): Build nonconstant_names array; handle
10820         BUILT_IN_CONSTANT_P.
10821
10822 2011-04-28  Richard Guenther  <rguenther@suse.de>
10823
10824         PR bootstrap/48804
10825         Revert
10826         2011-04-28  Richard Guenther  <rguenther@suse.de>
10827
10828         * tree-ssa-structalias.c (solve_constraints): Build succ graph
10829         as late as possible.
10830
10831 2011-04-28  Richard Guenther  <rguenther@suse.de>
10832
10833         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10834         (debug_constraint): Do it here.
10835         (dump_constraints): And here.
10836         (rewrite_constraints): And here.
10837         (dump_constraint_edge): Remove.
10838         (dump_constraint_graph): Rewrite to produce DOT output.
10839         (solve_constraints): Build succ graph as late as possible.
10840         Dump constraint graphs before and after solving.
10841
10842 2011-04-28  Richard Guenther  <rguenther@suse.de>
10843
10844         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10845         New function split out from ...
10846         (find_func_aliases): ... here.  Call it.
10847         (find_func_aliases_for_call): Likewise.
10848
10849 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10850
10851         * internal-fn.h (internal_fn_name_array): Declare.
10852         (internal_fn_flags_array): Likewise.
10853
10854 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10855
10856         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
10857         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10858         Move from sse.md.
10859         (ssemodefsuffix): Remove.
10860         (ssevecmodesuffix): New mode attribute.
10861         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10862         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10863         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10864         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10865         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10866         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10867         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10868         ssemodesuffix mode attribute.
10869         (float splitters): Use ssevecmodesuffix mode attribute.
10870         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10871         (sseinsmode): Rename from avxvecmode.
10872         (avxsizesuffix): Rename from avxmodesuffix.
10873         (sseintvecmode): Rename from avxpermvecmode.
10874         (ssedoublevecmode): Rename from ssedoublesizemode.
10875         (ssehalfvecmode): Rename from avxhalfvecmode.
10876         (ssescalarmode): Rename from avxscalarmode.
10877         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10878         templates for ssemodesuffix mode attribute.
10879         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10880         mode attribute.
10881
10882         Adjust RTX patterns globally for renamed mode attributes.
10883
10884 2011-04-27  Jan Hubcika  <jh@suse.cz>
10885
10886         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10887         * ipa-inline-analysis.c: Include alloc-pool.h.
10888         (edge_predicate_pool): New.
10889         (trye_predicate_p): New function
10890         (false_predicate_p): New function.
10891         (add_clause): Sanity check that false clauses are "optimized";
10892         never add clauses to predicate that is already known to be false.
10893         (and_predicate): Use flase_predicate_p.
10894         (evaulate_predicate): Rename to ...
10895         (evaluate_predicate): ... this one; update all callers; assert
10896         that false is not listed among possible truths.
10897         (dump_predicate): Use true_predicate_p.
10898         (account_size_time): Use false_predicate_p.
10899         (evaulate_conditions_for_edge): Rename to ...
10900         (evaluate_conditions_for_edge) ... this one.
10901         (edge_set_predicate): New function.
10902         (inline_edge_duplication_hook): Duplicate edge predicates.
10903         (inline_edge_removal_hook): Free edge predicates.
10904         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10905         (dump_inline_summary): Update.
10906         (estimate_function_body_sizes): Set edge predicates.
10907         (estimate_calls_size_and_time): Handle predicates.
10908         (estimate_callee_size_and_time): Update.
10909         (remap_predicate): Add toplev_predicate; update comment.
10910         (remap_edge_predicates): New function.
10911         (inline_merge_summary): Compute toplev predicate; update.
10912         (read_predicate): New function.
10913         (read_inline_edge_summary): Use it.
10914         (inline_read_section): Likewise.
10915         (write_predicate): New function.
10916         (write_inline_edge_summary): Use it.
10917         (inline_write_summary): Likewise.
10918         (inline_free_summary): Free alloc pool and edge summary vec.
10919
10920 2011-04-27  Richard Guenther  <rguenther@suse.de>
10921
10922         * tree-ssa-structalias.c (changed_count): Remove.
10923         (changed): Use a bitmap.
10924         (unify_nodes): Adjust.
10925         (do_sd_constraint): Likewise.
10926         (do_ds_constraint): Likewise.
10927         (do_complex_constraint): Likewise.
10928         (solve_graph): Likewise.
10929
10930 2011-04-27  Jan Hubicka  <jh@suse.cz>
10931
10932         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10933
10934 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
10935
10936         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10937         (avx_vperm2f128_*_operand): Ditto.
10938         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10939         Use avx_vpermilp_parallel in insn condition.
10940         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10941         Use avx_vperm2f128_parallel in insn condition.
10942
10943 2011-04-27  Richard Guenther  <rguenther@suse.de>
10944
10945         * Makefile.in (tree-ssa-structalias.o): Remove
10946         gt-tree-ssa-structalias.h dependency.
10947         (GTFILES): Remove tree-ssa-structalias.c.
10948         * tree.c (allocate_decl_uid): New function.
10949         (make_node_stat): Use it.
10950         (copy_node_stat): Likewise.
10951         * tree.h (allocate_decl_uid): Declare.
10952         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10953         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10954         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10955         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10956         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10957         (struct heapvar_map): Likewise.
10958         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10959         heapvar_insert): Likewise.
10960         (make_heapvar_for): Rename to ...
10961         (make_heapvar): ... this.  Simplify.
10962         (fake_var_decl_obstack): New global var.
10963         (build_fake_var_decl): New function.
10964         (make_constraint_from_heapvar): Adjust.
10965         (handle_lhs_call): Likewise.
10966         (create_function_info_for): Likewise.
10967         (intra_create_variable_infos): Likewise.
10968         (init_alias_vars): Allocate fake_var_decl_obstack.
10969         (init_alias_heapvars, delete_alias_heapvars): Remove.
10970         (compute_points_to_sets): Do not call init_alias_heapvars.
10971         (ipa_pta_execute): Likewise.
10972         (delete_points_to_sets): Free fake_var_decl_obstack.
10973
10974 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10975
10976         * config/spu/divmovti4.c (union qword_UTItype): New data type.
10977         (si_from_UTItype, si_to_UTItype): New functions.
10978         (__udivmodti4): Use them to implement type-punning.
10979         * config/spu/multi3.c (union qword_TItype): New data type.
10980         (si_from_TItype, si_to_TItype): New functions.
10981         (__multi3): Use them to implement type-punning.
10982
10983 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10984
10985         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10986
10987 2011-04-27  Jan Hubicka  <jh@suse.cz>
10988
10989         * ipa-prop.c (function_insertion_hook_holder): New holder.
10990         (ipa_add_new_function): New function.
10991         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10992         Register/deregister holder.
10993
10994 2011-04-27  Richard Guenther  <rguenther@suse.de>
10995
10996         PR tree-optimization/48772
10997         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10998
10999 2011-04-27  Richard Guenther  <rguenther@suse.de>
11000
11001         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
11002         TARGET_MEM_REF handling.
11003
11004 2011-04-27  Nick Clifton  <nickc@redhat.com>
11005
11006         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
11007         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
11008         (REG_CLASS_NAMES): Likewise.
11009         (REG_CLASS_CONTENTS): Likewise.
11010         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
11011         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
11012         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
11013         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
11014         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
11015         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
11016         duplicate register classes.
11017         (frv_class_likely_spilled_p): Likewise.
11018         (frv_register_move_cost): Likewise.
11019
11020         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
11021         end of the regno_reg_class array.
11022
11023 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
11024
11025         PR c/48742
11026         * c-typeck.c (build_binary_op): Don't wrap arguments if
11027         int_operands is true.
11028
11029 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
11030
11031         PR target/48767
11032         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
11033         targetm.calls.must_pass_in_stack for void type.
11034
11035 2011-04-26  Jan Hubicka  <jh@suse.cz>
11036
11037         * cgraphbuild.c (build_cgraph_edges): Update call
11038         of cgraph_create_edge and cgraph_create_indirect_edge.
11039         * cgraph.c (cgraph_create_edge_including_clones,
11040         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
11041         cgraph_update_edges_for_call_stmt_node): Do not take nest
11042         argument; do not initialize call_stmt_size/time.
11043         (dump_cgraph_node): Do not dump nest.
11044         (cgraph_clone_edge): Do not take loop_nest argument;
11045         do not propagate it; do not clone call_stmt_size/time.
11046         (cgraph_clone_node): Likewise.
11047         (cgraph_create_virtual_clone): Update.
11048         * cgraph.h (struct cgraph_edge): Remove
11049         call_stmt_size/call_stmt_time/loop_nest.
11050         (cgraph_create_edge, cgraph_create_indirect_edge,
11051         cgraph_create_edge_including_clones, cgraph_clone_node): Update
11052         prototype.
11053         * tree-emutls.c (gen_emutls_addr): Update.
11054         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
11055         loop_nest; handle indirect calls, too.
11056         (clone_inlined_nodes): Do not care about updating inline summaries.
11057         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
11058         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
11059         stream call_stmt_size/call_stmt_time/loop_nest.
11060         * ipa-inline.c (edge_badness): Update.
11061         (ipa_inline): dump summaries after inlining.
11062         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
11063         New.
11064         (inline_edge_summary): New function.
11065         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
11066         (inline_edge_removal_hook): Handle edge summaries.
11067         (inline_edge_duplication_hook): New hook.
11068         (inline_summary_alloc): Alloc hooks.
11069         (initialize_growth_caches): Do not register removal hooks.
11070         (free_growth_caches); Do not free removal hook.
11071         (dump_inline_edge_summary): New function.
11072         (dump_inline_summary): Use it.
11073         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
11074         (inline_update_callee_summaries): New function.
11075         (inline_merge_summary): Use it.
11076         (do_estimate_edge_time, do_estimate_edge_growth): Update.
11077         (read_inline_edge_summary): New function.
11078         (inline_read_section): Use it.
11079         (write_inline_edge_summary): New function.
11080         (inline_write_summary): Use it.
11081         (inline_free_summary): Free edge new holders.
11082         * tree-inline.c (copy_bb): Update.
11083
11084 2011-04-26  Jason Merrill  <jason@redhat.com>
11085
11086         * tree-eh.c (lower_try_finally_switch): Create the label along with
11087         the CASE_LABEL_EXPR.
11088
11089 2011-04-26  David S. Miller  <davem@davemloft.net>
11090             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11091
11092         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
11093         * configure: Regenerate.
11094
11095 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11096
11097         PR target/48258
11098         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
11099         reduction.
11100         (VEC_reduc): New code iterator and splitters for vector reduction.
11101         (VEC_reduc_name): Ditto.
11102         (VEC_reduc_rtx): Ditto.
11103         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
11104         (reduc_<VEC_reduc_name>_v4sf): Ditto.
11105
11106         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11107         support for extracting SF on VSX.
11108
11109         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
11110         generating xscvspdp.
11111         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
11112         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
11113         double add, minimum, maximum vector reduction.
11114         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
11115         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
11116         optimize double vector reduction.
11117         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
11118
11119 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
11120
11121         * config/fr30/fr30.h (inhibit_libc): Don't define.
11122         * config/m32r/m32r-protos.h: Correct comment.
11123         * config/v850/v850.h (GHS_default_section_names,
11124         GHS_current_section_names): Use tree, not union tree_node *.
11125
11126 2011-04-26  Xinliang David Li  <davidxl@google.com>
11127
11128         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
11129         * c-family/c-opts.c (c_common_handle_option): Set
11130         warn_maybe_uninitialized.
11131         * opts.c (common_handle_option): Ditto.
11132         * common.opt:  New option.
11133         * tree-ssa.c (warn_uninit): Add one more parameter.
11134         (warn_uninitialized_var): Pass warning code.
11135         * tree-flow.h: Interface change.
11136
11137 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11138
11139         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
11140         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
11141         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
11142
11143 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11144
11145         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
11146         * config/mips/mips.opt (mmips-tfile): Remove.
11147
11148         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
11149         mips-tdump reference to ...
11150         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
11151         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
11152         reference by Tru64 UNIX.
11153
11154 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
11155
11156         PR debug/48768
11157         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
11158         is error_mark_node, set value to NULL.
11159
11160         PR tree-optimization/48734
11161         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
11162         if return value from maybe_fold_*_comparsions isn't something
11163         the code is prepared to handle.
11164
11165 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
11166
11167         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
11168         mode check.
11169         (ext_QIreg_nomode_operands): Remove.
11170         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
11171         (*andsi_1): Ditto.
11172         (*andhi_1): Ditto.
11173
11174 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
11175
11176         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
11177
11178 2011-04-26  Richard Guenther  <rguenther@suse.de>
11179
11180         * c-typeck.c (build_unary_op): Do not expand array-refs via
11181         pointer arithmetic.  Only adjust qualifiers for function types.
11182
11183 2011-04-26  Richard Guenther  <rguenther@suse.de>
11184
11185         PR middle-end/48694
11186         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
11187         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
11188         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
11189         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
11190
11191 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
11192
11193         * doc/extend.texi: Document __underlying_type.
11194
11195 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
11196
11197         * config/rs6000/titan.md (automata_option "progress"): Remove.
11198
11199 2011-04-25  Jeff Law  <law@redhat.com>
11200
11201         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
11202
11203 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11204
11205         * system.h (ENUM_BITFIELD): Remove.
11206
11207 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
11208             Eric Botcazou  <ebotcazou@adacore.com>
11209
11210         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
11211         for STORE_FLAG_VALUE==-1 case.
11212
11213 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
11214
11215         PR target/43804
11216         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11217         LEGITIMATE_PIC_OPERAND_P.
11218
11219 2011-04-24  Jan Hubicka  <jh@suse.cz>
11220
11221         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
11222         WPA hack.
11223         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
11224         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
11225         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
11226         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
11227         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
11228         Sanity check predicate length.
11229         (remap_predicate): Likewise; sanity check jump functions.
11230         (inline_read_section, inline_write_summary): Sanity check
11231         predicate length.
11232
11233 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
11234
11235         PR other/48748
11236         * doc/extend.texi (Type Traits): Document __is_standard_layout,
11237         __is_literal_type, and __is_trivial; update throughout about
11238         possibly cv-qualified void types.
11239
11240 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11241
11242         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
11243         testsuite and make it version agnostic.
11244
11245 2011-04-22  Jan Hubicka  <jh@suse.cz>
11246
11247         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
11248
11249 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
11250
11251         PR c/48685
11252         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
11253         to VOID_TYPE even around MODIFY_EXPR.
11254
11255 2011-04-22  Mike Stump  <mikestump@comcast.net>
11256
11257         * gensupport.c (read_md_rtx): Fix typo in comment.
11258         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
11259         comment.
11260
11261 2011-04-22  Jan Hubicka  <jh@suse.cz>
11262
11263         * gengtype.c (open_base_files): Add ipa-inline.h include.
11264         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
11265         ipa-prop.c; update all uses.
11266         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
11267         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
11268         merge summary of inlined function into former caller.
11269         * ipa-inline.c (max_benefit): Remove.
11270         (edge_badness): Compensate for removal of benefits.
11271         (update_caller_keys): Use
11272         reset_node_growth_cache/reset_edge_growth_cache.
11273         (update_callee_keys): Likewise.
11274         (update_all_callee_keys): Likewise.
11275         (inline_small_functions): Do not collect max_benefit; do not reset
11276         estimated_growth; call free_growth_caches and initialize_growth_caches.
11277         * ipa-inline.h (struct condition, type clause_t, struct predicate,
11278         struct size_time_entry): New structures.
11279         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
11280         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
11281         and estimated_growth.
11282         (edge_growth_cache_entry): New structure.
11283         (node_growth_cache, edge_growth_cache): New global vars.
11284         (estimate_growth): Turn into inline.
11285         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
11286         initialize_growth_caches, free_growth_caches): Declare.
11287         (estimate_edge_growth): Rewrite.
11288         (estimate_edge_time): Implement as inline cache lookup.
11289         (reset_node_growth_cache, reset_edge_growth_cache): New inline
11290         functions.
11291         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
11292         (NUM_CONDITIONS): New constant.
11293         (predicate_conditions): New enum.
11294         (IS_NOT_CONSTANT): New constant.
11295         (edge_removal_hook_holder): New var.
11296         (node_growth_cache, edge_growth_cache): New global vars.
11297         (true_predicate, single_cond_predicate, false_predicate,
11298         not_inlined_predicate, add_condition, add_clause, and_predicates,
11299         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
11300         dump_clause, dump_predicate, account_size_time,
11301         evaulate_conditions_for_edge): New functions.
11302         (inline_summary_alloc): Move to heap.
11303         (inline_node_removal_hook): Clear condition and entry vectors.
11304         (inline_edge_removal_hook): New function.
11305         (initialize_growth_caches, free_growth_caches): New function.
11306         (dump_inline_summary): Update.
11307         (edge_execution_predicate): New function.
11308         (will_be_nonconstant_predicate): New function.
11309         (estimate_function_body_sizes): Compute BB and constantness predicates.
11310         (compute_inline_parameters): Do not clear estimated_growth.
11311         (estimate_edge_size_and_time): New function.
11312         (estimate_calls_size_and_time): New function.
11313         (estimate_callee_size_and_time): New function.
11314         (remap_predicate): New function.
11315         (inline_merge_summary): New function.
11316         (do_estimate_edge_time): New function based on...
11317         (estimate_edge_time): ... this one.
11318         (do_estimate_edge_growth): New function.
11319         (do_estimate_growth): New function based on....
11320         (estimate_growth): ... this one.
11321         (inline_analyze_function): Analyze after deciding on jump functions.
11322         (inline_read_section): New function.
11323         (inline_read_summary): Use it.
11324         (inline_write_summary): Write all the new data.
11325         * ipa-prop.c (ipa_get_param_decl_index): Export.
11326         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
11327         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
11328         Declare.
11329         (ipa_get_lattice): Move here from ipa-cp.c
11330         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
11331         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
11332         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
11333         cgraph_edge_inlinable_p): Remove.
11334         * cgraphunit.c: Include ipainline.h
11335         (cgraph_process_new_functions): Update call of
11336         compute_inline_parameters.
11337
11338 2011-04-22  Richard Guenther  <rguenther@suse.de>
11339
11340         * tree.c (build_int_cst): Properly create canonicalized integer
11341         constants.
11342         (build_int_cst_type): Remove scary comments.
11343
11344 2011-04-22  Xinliang David Li  <davidxl@google.com>
11345
11346         * toplev.c (process_options): Enable -Werror=coverage-mismatch
11347         by default when -Wno-error is not specified.
11348         * opts-global.c (decode_options): Remove call to
11349         control_warning_options.
11350
11351 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
11352
11353         PR tree-optimization/48717
11354         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
11355         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
11356
11357 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
11358
11359         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
11360         definition where used.
11361
11362 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
11363
11364         PR c/48716
11365         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
11366         TREE_STATIC variables declared inside of some OpenMP construct.
11367
11368 2011-04-22  Martin Jambor  <mjambor@suse.cz>
11369
11370         PR middle-end/48585
11371         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
11372
11373 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
11374
11375         PR c/36750
11376         * c-typeck.c (pop_init_level): Do not warn about initializing
11377         with ` = {0}'.
11378
11379 2011-04-22  Alan Modra  <amodra@gmail.com>
11380
11381         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
11382         when returning call_cookie.
11383         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
11384         pointers, to functions with no more vector args than the current
11385         function, and some non-local calls for ABI_V4.
11386         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
11387         sibcall_nonlocal_aix64): Combine to ..
11388         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
11389         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
11390         (sibcall_value_nonlocal_aix<mode>): ..likewise.
11391         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
11392         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
11393         operand.
11394         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
11395         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
11396         sibcall_value_symbolic_64): Delete.
11397
11398 2011-04-21  Xinliang David Li  <davidxl@google.com>
11399
11400         * cgraph.h: Remove pid.
11401         * cgraph.c: Remove pid.
11402         * value-prof.c (init_node_map): New function.
11403         (del_node_map): New function.
11404         (find_func_by_funcdef_no): New function.
11405         (gimple_ic_transform): Call new function.
11406         * cgraphunit.c (cgraph_finalize_function): Remove pid.
11407         * function.c (get_last_funcdef_no): New function.
11408         * function.h (get_last_funcdef_no): New function.
11409         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
11410         to libgcov function.
11411         (tree-profiling): Call node map init and delete function.
11412
11413 2011-04-21  Ian Lance Taylor  <iant@google.com>
11414
11415         * godump.c (go_format_type): Use exported Go name for anonymous
11416         field name.
11417
11418 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11419
11420         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
11421         Call builtin_function_type_list instead of builtin_function_type.
11422         (UNARY, BINARY, TRINARY, QUAD): Likewise.
11423
11424 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11425
11426         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
11427         build_function_type_list instead of build_function_type.
11428         Delete variable `endlink'.
11429
11430 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11431
11432         * config/s390/s390.c (s390_init_builtins): Call
11433         build_function_type_list instead of build_function_type.
11434
11435 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
11436
11437         * config/ia64/ia64.c (ia64_init_builtins): Call
11438         build_function_type_list instead of builtin_function_type.
11439
11440 2011-04-21  Easwaran Raman  <eraman@google.com>
11441
11442         * cfgexpand.c (stack_var): Remove OFFSET...
11443         (add_stack_var): ...and its reference here...
11444         (expand_stack_vars): ...and here.
11445         (stack_var_cmp): Sort by descending order of size.
11446         (partition_stack_vars): Change heuristic.
11447         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
11448         (dump_stack_var_partition): Add newline after each partition.
11449
11450 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
11451             Jeff Law  <law@redhat.com>
11452
11453         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
11454         * gengtype.c (matching_file_name_substitute): Likewise.
11455
11456 2011-04-21  Richard Guenther  <rguenther@suse.de>
11457
11458         PR lto/48703
11459         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
11460
11461 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
11462
11463         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
11464
11465 2011-04-21  Richard Guenther  <rguenther@suse.de>
11466
11467         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
11468         file name.
11469
11470 2011-04-21  Richard Guenther  <rguenther@suse.de>
11471
11472         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11473         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
11474         Use DECL_P, not SSA_VAR_P.
11475         (ptr_derefs_may_alias_p): Likewise.
11476         (ptr_deref_may_alias_ref_p_1): Likewise.
11477         (decl_refs_may_alias_p): Likewise.
11478         (refs_may_alias_p_1): Likewise.
11479         (ref_maybe_used_by_call_p_1): Likewise.
11480         (call_may_clobber_ref_p_1): Likewise.
11481         (indirect_ref_may_alias_decl_p): Assume indirect refrences
11482         are either MEM_REF or TARGET_MEM_REF.
11483         (indirect_refs_may_alias_p): Likewise.
11484         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
11485         for MEM_EXPR of indirect calls.
11486
11487 2011-04-21  Tristan Gingold  <gingold@adacore.com>
11488
11489         * vmsdbgout.c (write_srccorr): Compute file length from the string.
11490         (dst_file_info_struct): Remove flen field.
11491         (lookup_filename): Remove code that set flen field.
11492
11493 2011-04-21  Tristan Gingold  <gingold@adacore.com>
11494
11495         * config/ia64/ia64.c (ia64_start_function): Add a guard.
11496
11497 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
11498
11499         PR target/48708
11500         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
11501         vec_extract and vec_concat for non-SSE4_1 targets.
11502
11503 2011-04-21  Richard Guenther  <rguenther@suse.de>
11504
11505         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
11506         return statements.
11507
11508 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
11509
11510         * config/i386/cygming.h (union tree_node, TREE): Don't define or
11511         undefine.
11512         (FILE): Don't undefine.
11513
11514 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
11515
11516         * config/alpha/alpha.c (struct machine_function): Use rtx, not
11517         struct rtx_def *.
11518         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
11519         struct rtx_def *.
11520         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
11521         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
11522         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
11523         rtx_def *.
11524         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
11525         definitions where used.
11526         * config/microblaze/microblaze.h (struct microblaze_args): Use
11527         rtx, not struct rtx_def *.
11528         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
11529         rtx_def *.
11530         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
11531         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
11532         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
11533         not struct rtx_def *.
11534         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
11535         struct rtx_def *.
11536         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
11537         rtx_def *.
11538         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
11539
11540 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11541
11542         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
11543         operand_equal_p to compare DR_BASE_ADDRESSes.
11544         (vect_check_interleaving): Likewise.
11545
11546 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11547
11548         PR target/46329
11549         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
11550         for all Neon struct constants.
11551
11552 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11553
11554         * target.def (legitimate_constant_p): New hook.
11555         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
11556         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
11557         * doc/tm.texi: Regenerate.
11558         * hooks.h (hook_bool_mode_rtx_true): Declare.
11559         * hooks.c (hook_bool_mode_rtx_true): Define.
11560         * system.h (LEGITIMATE_CONSTANT_P): Poison.
11561         * calls.c (precompute_register_parameters): Replace uses of
11562         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
11563         (emit_library_call_value_1): Likewise.
11564         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
11565         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
11566         * ira-costs.c (scan_one_insn): Likewise.
11567         * recog.c (general_operand, immediate_operand): Likewise.
11568         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
11569         * reload1.c (init_eliminable_invariants): Likewise.
11570
11571         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
11572         mode argument.
11573         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
11574         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
11575         argument.
11576         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11577         * config/alpha/predicates.md (input_operand): Update call to
11578         alpha_legitimate_constant_p.
11579
11580         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
11581         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
11582         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
11583         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11584         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
11585         (arm_legitimate_constant_p): New functions.
11586         (arm_cannot_force_const_mem): Make static.
11587
11588         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
11589
11590         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
11591         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
11592         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
11593         instead of bfin_legitimate_constant_p.
11594         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
11595         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11596
11597         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
11598
11599         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
11600
11601         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
11602         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
11603         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11604         (frv_legitimate_constant_p): Make static.  Add a mode argument.
11605
11606         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
11607         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
11608         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
11609
11610         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
11611         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
11612         * config/i386/i386.c (legitimate_constant_p): Rename to...
11613         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
11614         argument.
11615         (ix86_cannot_force_const_mem): Update accordingly.
11616         (ix86_legitimate_address_p): Likewise.
11617         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11618         * config/i386/i386.md: Update commentary.
11619
11620         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
11621         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
11622         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11623         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
11624
11625         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11626
11627         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11628         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11629         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11630         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
11631
11632         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11633         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11634         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11635
11636         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11637         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11638         (m32r_legitimate_constant_p): New function.
11639
11640         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11641         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11642         LEGITIMATE_CONSTANT_P.
11643         (LEGITIMATE_CONSTANT_P): Delete.
11644         * config/m68k/m68k.c (m68k_expand_prologue): Call
11645         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11646         (m68k_legitimate_constant_p): New function.
11647         * config/m68k/m68k.md: Update comments.
11648
11649         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11650         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11651         (mcore_legitimate_constant_p): New function.
11652
11653         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11654         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11655         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11656         Add a mode argument.
11657         (mep_legitimate_address): Update accordingly.
11658         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11659
11660         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11661         Delete.
11662         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11663         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11664         static.  Check OP's mode for VOIDmode.
11665         (microblaze_legitimate_constant_p): New function.
11666         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11667
11668         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11669         * config/mips/mips.c (mips_legitimate_constant_p): New function.
11670         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11671         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11672         * config/mips/predicates.md: Update comments.
11673
11674         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11675         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11676         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11677         (mmix_legitimate_constant_p): Make static, return a bool, and take
11678         a mode argument.
11679         (mmix_print_operand_address): Update accordingly.
11680
11681         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11682         Delete.
11683         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11684         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11685         static.  Add a mode argument.
11686         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11687
11688         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11689
11690         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11691         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11692         (pa_legitimate_constant_p): New function.
11693
11694         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11695
11696         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11697         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11698         (pdp11_legitimate_constant_p): New function.
11699
11700         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11701         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11702         (rs6000_legitimate_constant_p): New function.
11703
11704         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11705         (rx_legitimate_constant_p): ...this.
11706         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11707         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11708         (rx_legitimate_constant_p): ...this.
11709         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11710         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11711
11712         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11713         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11714         * config/s390/s390.c (legitimate_constant_p): Rename to...
11715         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
11716         and add a mode argument.
11717         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11718
11719         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11720
11721         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11722         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11723         (sh_legitimate_constant_p): New function.
11724
11725         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11726         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11727         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11728         (legitimate_constant_p): Rename to...
11729         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
11730         argument.
11731         (constant_address_p): Update accordingly.
11732
11733         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11734         argument and return a bool.
11735         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11736         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11737         (spu_legitimate_constant_p): Add a mode argument and return a bool.
11738         (spu_rtx_costs): Update accordingly.
11739         * config/spu/predicates.md (vec_imm_operand): Likewise.
11740
11741         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11742
11743         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11744         * config/v850/v850.c (v850_legitimate_constant_p): New function.
11745         (TARGET_LEGITIMATE_CONSTANT_P): Define.
11746
11747         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11748         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11749         * config/vax/vax.c (legitimate_constant_p): Likewise.
11750
11751         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11752         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11753         (xtensa_legitimate_constant_p): New function.
11754
11755 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
11756
11757         * target.def (cannot_force_const_mem): Add a mode argument.
11758         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11759         * doc/tm.texi: Regenerate.
11760         * hooks.h (hook_bool_mode_rtx_false): Declare.
11761         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11762         (hook_bool_mode_const_rtx_true): Likewise.
11763         (hook_bool_mode_rtx_false): New function.
11764         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11765         to be non-VOID.  Update call to cannot_force_const_mem.
11766         (find_reloads): Update accordingly.
11767         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11768         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11769         argument.
11770         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11771         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11772         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11773         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11774         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11775         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11776         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11777         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11778         (m68k_cannot_force_const_mem): ...this new function.
11779         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11780         argument.
11781         (mips_const_insns, mips_legitimize_const_move): Update calls.
11782         (mips_secondary_reload_class): Likewise.
11783         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11784         (pa_cannot_force_const_mem): ...this new function.
11785         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11786         (rs6000_cannot_force_const_mem): ...this new function.
11787         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11788         argument.
11789         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11790         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11791         to...
11792         (xtensa_cannot_force_const_mem): ...this new function.
11793
11794 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11795
11796         * config/mips/mips.c (mips16_build_function_stub): Call
11797         build_function_type_list instead of build_function_type.
11798         (mips16_build_call_stub): Likewise.
11799
11800 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11801
11802         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11803         instead of build_function_type.
11804
11805 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
11806
11807         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11808         instead of build_function_type.
11809
11810 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
11811
11812         PR target/48678
11813         * config/i386/i386.md (insv): Change operand 0 constraint to
11814         "register_operand".  Change operand 1 and 2 constraint to
11815         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
11816         * config/i386/sse.md (sse4_1_pinsrb): Export.
11817         (sse2_pinsrw): Ditto.
11818         (sse4_1_pinsrd): Ditto.
11819         (sse4_1_pinsrq): Ditto.
11820         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11821         * config/i386/i386.c (ix86_expand_pinsr): New.
11822
11823 2011-04-20  Easwaran Raman  <eraman@google.com>
11824
11825         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11826         containing union type only with -fstrict-aliasing.
11827
11828 2011-04-20  Jim Meyering  <meyering@redhat.com>
11829
11830         Remove useless if-before-free tests.
11831         * calls.c (expand_call, save_area): Likewise.
11832         * cfgcleanup.c (try_forward_edges): Likewise.
11833         * collect2.c (collect_execute): Likewise.
11834         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11835         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11836         * coverage.c (coverage_checksum_string): Likewise.
11837         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11838         * cselib.c (cselib_init): Likewise.
11839         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11840         (df_set_clean_cfg): Likewise.
11841         * function.c (free_after_compilation): Likewise.
11842         * gcc.c (do_spec_1, main): Likewise.
11843         * gcov.c (create_file_names): Likewise.
11844         * gensupport.c (identify_predicable_attribute): Likewise.
11845         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11846         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11847         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11848         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11849         * ipa-pure-const.c (local_pure_const): Likewise.
11850         * ipa-reference.c (propagate): Likewise.
11851         * ira-costs.c (free_ira_costs): Likewise.
11852         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11853         * matrix-reorg.c (mat_free): Likewise.
11854         * prefix.c (get_key_value): Likewise.
11855         * profile.c (compute_value_histograms): Likewise.
11856         * reload1.c (free_reg_equiv): Likewise.
11857         * sched-deps.c (free_deps): Likewise.
11858         * sel-sched-ir.c (fence_clear): Likewise.
11859         * sese.c (set_rename, if_region_set_false_region): Likewise.
11860         * tree-data-ref.c (free_rdg): Likewise.
11861         * tree-eh.c (lower_try_finally): Likewise.
11862         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11863         * tree-ssa-live.c (delete_var_map): Likewise.
11864         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11865         * tree-ssa-pre.c (phi_trans_add): Likewise.
11866
11867 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
11868
11869         PR tree-optimization/48611
11870         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11871         beyond ERT_MUST_NOT_THROW region.
11872
11873 2011-04-20  Catherine Moore  <clm@codesourcery.com>
11874
11875         * config/mips/mips.opt (mfix-24k): New.
11876         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11877         * config/mips/mips.md (length): Increase by 4 for stores if
11878         fixing 24K errata.
11879         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11880         all noreorder if fixing 24K errata.
11881         * doc/invoke.texi: Document mfix-24k.
11882
11883 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
11884
11885         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11886         quad-word modes, reduce to 9-bit index range when above 1016 limit.
11887
11888 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11889
11890         * config/arm/arm.c (arm_gen_constant): Move movw support ....
11891         (const_ok_for_op): ... to here.
11892
11893 2011-04-20  Kai Tietz  <ktietz@redhat.com>
11894
11895         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11896         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11897
11898 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
11899
11900         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11901
11902 2011-04-20  Richard Guenther  <rguenther@suse.de>
11903
11904         PR tree-optimization/47892
11905         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11906         are if-convertible.
11907
11908 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
11909
11910         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11911
11912 2011-04-20  Tristan Gingold  <gingold@adacore.com>
11913
11914         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11915
11916 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
11917
11918         PR target/18145
11919
11920         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11921         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11922         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11923         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11924         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11925
11926         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11927         New prototype.
11928
11929         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11930         (avr_asm_named_section, avr_asm_output_aligned_common,
11931         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11932         New functions to update...
11933         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11934         (avr_asm_init_sections): Overwrite section callbacks for
11935         data_section, bss_section.
11936         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11937         from here to...
11938         (avr_file_end): ...here.
11939
11940 2011-04-20  Richard Guenther  <rguenther@suse.de>
11941
11942         PR middle-end/48695
11943         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11944         objects and types here.  Adjust for their offset before comparing.
11945
11946 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11947
11948         * tree-vect-stmts.c (vectorizable_store): Only chain one related
11949         statement per copy.
11950
11951 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
11952
11953         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11954         (GIMPLE_H): Include $(INTERNAL_FN_H).
11955         (OBJS-common): Add internal-fn.o.
11956         (internal-fn.o): New rule.
11957         * internal-fn.def: New file.
11958         * internal-fn.h: Likewise.
11959         * internal-fn.c: Likewise.
11960         * gimple.h: Include internal-fn.h.
11961         (GF_CALL_INTERNAL): New gf_mask.
11962         (gimple_statement_call): Put fntype into a union with a new
11963         internal_fn field.
11964         (gimple_build_call_internal): Declare.
11965         (gimple_build_call_internal_vec): Likewise.
11966         (gimple_call_same_target_p): Likewise.
11967         (gimple_call_internal_p): New function.
11968         (gimple_call_internal_fn): Likewise.
11969         (gimple_call_fntype): Return null for internal calls.
11970         (gimple_call_set_fntype): Assert that the function is not internal.
11971         (gimple_call_set_fn): Likewise.
11972         (gimple_call_set_fndecl): Likewise.
11973         (gimple_call_set_internal_fn): New function.
11974         (gimple_call_addr_fndecl): Handle null functions.
11975         (gimple_call_return_type): Likewise null types.
11976         * gimple.c (gimple_build_call_internal_1): New function.
11977         (gimple_build_call_internal): Likewise.
11978         (gimple_build_call_internal_vec): Likewise.
11979         (gimple_call_same_target_p): Likewise.
11980         (gimple_call_flags): Handle calls to internal functions.
11981         (gimple_call_fnspec): New function.
11982         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11983         (gimple_has_side_effects): Handle null functions.
11984         (gimple_rhs_has_side_effects): Likewise.
11985         (gimple_call_copy_skip_args): Handle calls to internal functions.
11986         * cfgexpand.c (expand_call_stmt): Likewise.
11987         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11988         * gimple-fold.c (gimple_fold_call): Handle null functions.
11989         (gimple_fold_stmt_to_constant_1): Don't fold
11990         calls to internal functions.
11991         * gimple-low.c (gimple_check_call_args): Handle calls to internal
11992         functions.
11993         * gimple-pretty-print.c (dump_gimple_call): Likewise.
11994         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11995         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11996         (do_warn_unused_result): Likewise.
11997         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11998         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11999         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
12000         the target of a call.
12001         (initialize_hash_element): Update accordingly.
12002         (hashable_expr_equal_p): Use gimple_call_same_target_p.
12003         (iterative_hash_hashable_expr): Handle calls to internal functions.
12004         (print_expr_hash_elt): Likewise.
12005         * tree-ssa-pre.c (can_value_number_call): Likewise.
12006         (eliminate): Handle null functions.
12007         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
12008         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
12009         (find_func_aliases): Likewise.
12010         * value-prof.c (gimple_ic_transform): Likewise.
12011         (gimple_indirect_call_to_profile): Likewise.
12012         * lto-streamer-in.c (input_gimple_stmt): Likewise.
12013         * lto-streamer-out.c (output_gimple_stmt): Likewise.
12014
12015 2011-04-19  Jan Hubicka  <jh@suse.cz>
12016
12017         * ipa-inline-transform.c (save_inline_function_body): Add comments.
12018         * ipa-inline.c (inline_small_functions): Compute summaries first,
12019         populate heap later.
12020
12021 2011-04-19  Jan Hubicka  <jh@suse.cz>
12022
12023         * cgraph.h (save_inline_function_body): Remove.
12024         * ipa-inline-transform.c: New file, broke out of...
12025         * ipa-inline.c: ... this one; Update toplevel comment.
12026         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
12027         make global.
12028         (update_noncloned_frequencies): Move to ipa-inline-transform.c
12029         (cgraph_mark_inline_edge): Rename to inline_call; move to
12030         ipa-inline-transform.c.
12031         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
12032         move to ipa-inline-transform.c
12033         (recursive_inlining, inline_small_functions, flatten_function,
12034         ipa_inline, inline_always_inline_functions,
12035         early_inline_small_functions): Update.
12036         (inline_transform): Move to ipa-inline-transform.c.
12037         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
12038         Declare.
12039         * Makefile.in (ipa-inline-transform.o): New file.
12040         * cgraphunit.c (save_inline_function_body): Move to
12041         ipa-inline-transform.c
12042
12043 2011-04-19  DJ Delorie  <dj@redhat.com>
12044
12045         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
12046         registers if we already know there aren't any.
12047         (m32c_emit_epilogue): Don't emit a barrier here.
12048         (m32c_emit_eh_epilogue): Likewise.
12049         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
12050         operands at expand time.
12051         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
12052         int" wchar type.
12053         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
12054         duplicates.  Provide aliases instead.
12055         * config/m32c/prologue.md (eh_return): Emit a barrier here.
12056         (eh_epilogue): Add a "(return)" here as a hint to other parts of
12057         the compiler.
12058
12059 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
12060
12061         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
12062         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
12063         (general_or_i64_p, sparc_register_move_cost): New function.
12064
12065 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12066
12067         * doc/install.texi (Configuration, --enable-threads): Remove mach.
12068         Add lynx, mipssde.  Sort table.
12069
12070 2011-04-19  Xinliang David Li  <davidxl@google.com>
12071
12072         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
12073         not negative.
12074
12075 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
12076
12077         PR target/48678
12078         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
12079         is a SUBREG with non-MODE_INT mode inside of it.
12080
12081 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12082
12083         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
12084         also according to actual contants.
12085         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
12086         (gimple_fold_call): Use it.
12087         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
12088
12089 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12090
12091         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
12092         non-pointer assignments.
12093
12094 2011-04-19  Martin Jambor  <mjambor@suse.cz>
12095
12096         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
12097         account anc_offset and otr_type from the indirect edge info.
12098         * ipa-prop.c (get_ancestor_addr_info): New function.
12099         (compute_complex_ancestor_jump_func): Assignment analysis moved to
12100         get_ancestor_addr_info, call it.
12101         (ipa_note_param_call): Do not initialize information about polymorphic
12102         calls, return the indirect call graph edge.  Remove the last
12103         parameter, adjust all callers.
12104         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
12105         parameters.  Initialize polymorphic information in the indirect edge.
12106
12107 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12108
12109         PR lto/48148
12110         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
12111         the types if they have different enumeration identifiers.
12112
12113 2011-04-19  Jan Hubicka  <jh@suse.cz>
12114
12115         * cgraph.h (cgraph_optimize_for_size_p): Declare.
12116         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
12117         * predict.c (cgraph_optimize_for_size_p): Break out from ...
12118         (optimize_function_for_size_p) ... here.
12119
12120 2011-04-19  Richard Guenther  <rguenther@suse.de>
12121
12122         PR lto/48207
12123         * tree.c (free_lang_data): Do not reset the decl-assembler-name
12124         langhook.
12125
12126 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12127
12128         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
12129         if DECL_NO_INLINE_WARNING_P is set on the function.
12130
12131 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
12132
12133         PR fortran/47976
12134         * reload1.c (inc_for_reload): Return void. All callers changed.
12135         (emit_input_reload_insns): Don't try to delete previous output
12136         reloads to a register, or record spill_reg_store for autoincs.
12137
12138 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
12139
12140         * gengtype.h: Updated copyright year.
12141         (struct input_file_st): Add inpisplugin field.
12142         (type_fileloc): New function.
12143         * gengtype.c
12144         (write_typed_struct_alloc_def): Add gcc_assert.
12145         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
12146         (write_typed_alloc_defns): Don't output for plugin files.
12147         (input_file_by_name): Clear inpisplugin field.
12148         (main): Set inpisplugin field for plugin files.
12149
12150 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
12151
12152         * gengtype-state.c (string_eq): New.
12153         (read_state): Use string_eq instead of strcmp when creating the
12154         state_ident_tab.
12155
12156 2011-04-19  Wei Guozhi  <carrot@google.com>
12157
12158         PR target/47855
12159         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
12160         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
12161         linkage.
12162         * config/arm/constraints.md (Uu): New constraint.
12163         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
12164
12165 2011-04-19  Tristan Gingold  <gingold@adacore.com>
12166
12167         * config.gcc (-*-*-*vms): Added.
12168         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
12169         definitions moved.
12170         * config/vms/vms-ld.c: New file.
12171         * config/vms/vms-ar.c: New file.
12172         * config/vms/t-vmsnative: New file.
12173
12174 2011-04-18  Xinliang David Li  <davidxl@google.com>
12175
12176         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
12177
12178 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
12179
12180         PR middle-end/48661
12181         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
12182         if TREE_TYPE (v) is non-NULL.
12183
12184         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
12185         gimple_get_virt_mehtod_for_binfo.
12186         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
12187         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
12188         callers.
12189         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12190
12191 2011-04-18  Michael Matz  <matz@suse.de>
12192             Steve Ellcey  <sje@cup.hp.com>
12193
12194         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
12195         use its mode as source mode if it isn't VOIDmode.
12196
12197 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
12198
12199         * doc/passes.texi: Fill crossref nodes.
12200
12201 2011-04-18  Jim Meyering  <meyering@redhat.com>
12202
12203         Fix doubled-word typos in comments and strings
12204         * config/alpha/vms-unwind.h: s/for for/for/
12205         * config/arm/unwind-arm.h: Likewise.
12206         * config/microblaze/microblaze.c: Likewise.
12207         * config/sh/constraints.md: s/in in/in/
12208         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
12209
12210 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
12211
12212         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
12213         (AVX_FLOAT_MODE_P): Ditto.
12214         (AVX128_VEC_FLOAT_MODE_P): Ditto.
12215         (AVX256_VEC_FLOAT_MODE_P): Ditto.
12216         (AVX_VEC_FLOAT_MODE_P): Ditto.
12217         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
12218         (UNSPEC_MASKSTORE): Ditto.
12219         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
12220         Merge from <sse>_movmsk<ssemodesuffix> and
12221         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
12222         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
12223         iterator.
12224         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
12225         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
12226         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
12227
12228 2011-04-18  Jan Hubicka  <jh@suse.cz>
12229
12230         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
12231
12232         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
12233         (want_inline_function_called_once_p): Break out the logic from
12234         ipa_inline.
12235         (edge_badness): Ensure that profile is not misupdated.
12236         (lookup_recursive_calls): Prioritize by call frequencies.
12237         (inline_small_functions): Move program size estimates here;
12238         actually process whole queue even when unit growth has been
12239         met. (to properly compute inline_failed reasons and for the
12240         case unit size decrease.) Revisit comments on recursive inlining.
12241         (ipa_inline): Remove unit summary code; first inline hot calls
12242         of functions called once, cold calls next.
12243         (order, nnodes): Remove unused variables.
12244         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
12245         (GTFILES): Remove ipa-inline.c
12246         * sel-sched.c (fill_insns): Silence uninitialized var warning.
12247
12248 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12249
12250         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
12251
12252 2011-04-18  Jie Zhang  <jie@codesourcery.com>
12253             Richard Earnshaw  <rearnsha@arm.com>
12254
12255         * arm.c (neon_builtin_type_bits): Remove.
12256         (typedef enum neon_builtin_mode): New.
12257         (T_MAX): Don't define.
12258         (typedef enum neon_builtin_datum): Remove bits, codes[],
12259         num_vars and base_fcode.  Add mode, code and fcode.
12260         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
12261         VAR10): Change accordingly.
12262         (neon_builtin_data[]): Change accordingly
12263         (arm_init_neon_builtins): Change accordingly.
12264         (neon_builtin_compare): Remove.
12265         (locate_neon_builtin_icode): Remove.
12266         (arm_expand_neon_builtin): Change accordingly.
12267
12268         * arm.h (enum arm_builtins): Move to ...
12269         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
12270
12271         * arm.c (arm_builtin_decl): Declare.
12272         (TARGET_BUILTIN_DECL): Define.
12273         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
12274         (arm_builtin_decls[]): New.
12275         (arm_init_neon_builtins): Store builtin declarations in
12276         arm_builtin_decls[].
12277         (arm_init_tls_builtins): Likewise.
12278         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
12279         (arm_builtin_decl): New.
12280
12281 2011-04-18  Richard Guenther  <rguenther@suse.de>
12282
12283         * tree.c (upper_bound_in_type): Build properly canonicalized
12284         INTEGER_CSTs.
12285         (lower_bound_in_type): Likewise.
12286
12287 2011-04-18  Richard Guenther  <rguenther@suse.de>
12288
12289         * gimple.h (gimple_call_addr_fndecl): New function.
12290         (gimple_call_fndecl): Use it.
12291         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
12292         for direct calls.
12293         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
12294         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
12295
12296 2011-04-18  Richard Guenther  <rguenther@suse.de>
12297
12298         PR middle-end/48650
12299         * tree.c (build_string): STRING_CST is now derived from tree_typed.
12300
12301 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12302
12303         PR lto/48492
12304         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
12305         DECL_IN_CONSTANT_POOL without RTL.
12306
12307 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
12308             Ira Rosen  <ira.rosen@linaro.org>
12309
12310         PR target/48252
12311         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
12312         to match neon_vzip/vuzp/vtrn_internal.
12313         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
12314         outputs explicitly dependent on both inputs.
12315         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
12316
12317 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
12318
12319         PR tree-optimization/48616
12320         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
12321         whether the shift is by scalar or vector based on whether all SLP
12322         scalar stmts have the same rhs.
12323
12324 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
12325
12326         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
12327         memory operands.
12328
12329 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
12330
12331         PR target/43700
12332         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
12333         registers.
12334
12335 2011-04-17  Jan Hubicka  <jh@suse.cz>
12336
12337         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
12338         * cgrpahunit.c (cgraph_finalize_function): Do not set
12339         finalized_by_frontend.
12340         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12341         finalized_by_frontend.
12342
12343 2011-04-17  Jan Hubicka  <jh@suse.cz>
12344
12345         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
12346         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
12347         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
12348         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
12349         method.
12350         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
12351         gimple-fold.c
12352         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
12353
12354 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
12355
12356         PR lto/48538
12357         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
12358         is non-null before accessing it.
12359         (input_cgraph): Remove trailing spaces.
12360
12361 2011-04-17  Revital Eres  <revital.eres@linaro.org>
12362
12363         * params.def (sms-min-sc): New param flag.
12364         * modulo-sched.c (sms_schedule): Use it.
12365         * doc/invoke.texi (sms-min-sc): Document it.
12366
12367 2011-04-17  Jan Hubicka  <jh@suse.cz>
12368
12369         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
12370         present, also set gimple_call_set_cannot_inline.
12371         * ipa-inline.c: Update toplevel comment.
12372         (MAX_TIME): Remove.
12373         (cgraph_clone_inlined_nodes): Fix linebreaks.
12374         (cgraph_check_inline_limits): Restructure to ...
12375         (caller_growth_limits): ... this one; be more tolerant
12376         on growth in nested inline chains; add explanatory comment;
12377         fix stack accounting thinko introduced by previous patch.
12378         (cgraph_default_inline_p): Remove.
12379         (report_inline_failed_reason): New function.
12380         (can_inline_edge_p): New function.
12381         (can_early_inline_edge_p): New function.
12382         (leaf_node_p): Move upwards in file.
12383         (want_early_inline_function_p): New function.
12384         (want_inline_small_function_p): New function.
12385         (want_inline_self_recursive_call_p): New function.
12386         (cgraph_edge_badness): Rename to ...
12387         (edge_badness) ... this one; fix linebreaks.
12388         (update_edge_key): Update call of edge_baddness; add
12389         detailed dump about queue updates.
12390         (update_caller_keys): Use can_inline_edge_p and
12391         want_inline_small_function_p.
12392         (cgraph_decide_recursive_inlining): Rename to...
12393         (recursive_inlining): Use can_inline_edge_p and
12394         want_inline_self_recursive_call_p; simplify and remove no longer
12395         valid FIXME.
12396         (cgraph_set_inline_failed): Remove.
12397         (add_new_edges_to_heap): Use can_inline_edge_p and
12398         want_inline_small_function_p.
12399         (cgraph_decide_inlining_of_small_functions): Rename to ...
12400         (inline_small_functions): ... this one; cleanup; use
12401         can/want predicates; cleanup debug ouput; work edges till fibheap
12402         is exhausted and do not stop once unit growth is reached; remove
12403         later loop processing remaining edges.
12404         (cgraph_flatten): Rename to ...
12405         (flatten_function): ... this one; use can_inline_edge_p
12406         and can_early_inline_edge_p predicates.
12407         (cgraph_decide_inlining): Rename to ...
12408         (ipa_inline): ... this one; remove unreachable nodes before
12409         inlining functions called once; simplify the pass.
12410         (cgraph_perform_always_inlining): Rename to ...
12411         (inline_always_inline_functions): ... this one; use
12412         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
12413         (cgraph_decide_inlining_incrementally): Rename to ...
12414         (early_inline_small_functions): ... this one; simplify
12415         using new predicates; cleanup; make dumps prettier.
12416         (cgraph_early_inlining): Rename to ...
12417         (early_inliner): newer inline regular functions into always-inlines;
12418         fix updating of call stmt summaries.
12419         (pass_early_inline): Update for new names.
12420         (inline_transform): Fix formating.
12421         (gate_cgraph_decide_inlining): Rename to ...
12422         (pass_ipa_inline): ... this one.
12423         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
12424         * ipa-inline-analysis.c (dump_inline_summary): Update.
12425         (compute_inline_parameters): Do not compute disregard_inline_limits;
12426         look for mismatching arguments.
12427         (estimate_growth): Fix handlig of non-trivial self recursion.
12428         (inline_read_summary): Do not read info->disregard_inline_limits.
12429         (inline_write_summary): Do not write info->disregard_inline_limits.
12430         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
12431         and move all checks into can_inline_edge_p predicate; re-enable code
12432         comparing optimization levels.
12433         (expand_call_inline): Do not test inline_forbidden_into_p.
12434         * Makefile.in (ipa-inline.o): Update arguments.
12435
12436 2011-04-17  Revital Eres  <revital.eres@linaro.org>
12437
12438         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
12439
12440 2011-04-17  Revital Eres  <revital.eres@linaro.org>
12441
12442         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
12443
12444 2011-04-17  Michael Matz  <matz@suse.de>
12445
12446         PR tree-optimization/48622
12447         PR lto/48645
12448         * ipa-inline-analysis.c (inline_read_summary): Read size/time
12449         in same order as they're written.
12450
12451 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12452
12453         * config/pa/predicates.md: Reorganize and simplify predicates.
12454         Eliminate duplicate code checks.
12455         (arith_operand): Rename to arith14_operand
12456         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
12457         * config/pa/pa.md: Use renamed operands.
12458         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
12459         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
12460         arith11_operand, adddi3_operand, indexed_memory_operand,
12461         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
12462         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
12463         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
12464         move_dest_operand, move_src_operand, prefetch_cc_operand,
12465         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
12466         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
12467         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
12468         div_operand, int5_operand, movb_comparison_operator,
12469         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
12470         arith_double_operand, ireg_operand, lhs_lshift_operand,
12471         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
12472         integer_store_memory_operand): Likewise.
12473         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
12474         (integer_store_memory_operand, read_only_operand,
12475         function_label_operand, borx_reg_operand,
12476         non_hard_reg_operand): Likewise.
12477         (eq_neq_comparison_operator): Delete unused operator.
12478         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
12479         function_label_operand.
12480         (emit_move_sequence): Likewise.
12481
12482 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
12483
12484         * config/i386/sse.md (sseunpackmode): New mode attribute.
12485         (ssepackmode): Ditto.
12486         (vec_pack_trunc_<mode>): Macroize expander from
12487         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
12488         (vec_unpacks_lo_<mode>): Macroize expander from
12489         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12490         (vec_unpacks_hi_<mode>): Macroize expander from
12491         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12492         (vec_unpacku_lo_<mode>): Macroize expander from
12493         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12494         (vec_unpacku_hi_<mode>): Macroize expander from
12495         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12496         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
12497         ix86_expand_sse4_unpack.
12498         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
12499
12500 2011-04-16  Jan Hubicka  <jh@suse.cz>
12501
12502         * cgraphbuild.c: Include ipa-inline.h.
12503         (reset_inline_failed): Use initialize_inline_failed.
12504         * cgraph.c: Include ipa-inline.h.
12505         (cgraph_create_node_1): Do not initialize estimated_growth.
12506         (initialize_inline_failed): More to ipa-inline-analysis.c
12507         (dump_cgraph_node): Do not dump inline flags.
12508         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
12509         and disregard_inline_limits flags.
12510         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
12511         time, size, estimated_growth.
12512         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
12513         Update.
12514         * cgraphunit.c (cgraph_decide_is_function_needed): Use
12515         DECL_DISREGARD_INLINE_LIMITS.
12516         (cgraph_analyze_function): Do not initialize
12517         node->local.disregard_inline_limits.
12518         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12519         inlinable, versionable and disregard_inline_limits.
12520         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
12521         cgraph_check_inline_limits, cgraph_default_inline_p,
12522         cgraph_edge_badness, update_caller_keys, update_callee_keys,
12523         add_new_edges_to_heap): Update.
12524         (cgraph_decide_inlining_of_small_function): Update; set
12525         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
12526         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
12527         cgraph_decide_inlining_incrementally): Update.
12528         * ipa-inline.h (inline_summary): Add inlinable, versionable,
12529         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
12530         time, size and estimated_growth parameters.
12531         (estimate_edge_growth): Update.
12532         (initialize_inline_failed): Declare.
12533         * ipa-split.c: Include ipa-inline.h
12534         (execute_split_functions): Update.
12535         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
12536         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
12537         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
12538         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
12539         estimated_growth to INT_MIN.
12540         (inline_node_duplication_hook): Likewise.
12541         (dump_inline_summary): Dump new fields.
12542         (compute_inline_parameters): Update.
12543         (estimate_edge_time, estimate_time_after_inlining,
12544         estimate_size_after_inlining, estimate_growth, inline_read_summary,
12545         inline_write_summary):
12546         (initialize_inline_failed): Move here from cgraph.c.
12547         * tree-sra.c: Include ipa-inline.h.
12548         (ipa_sra_preliminary_function_checks): Update.
12549         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
12550         ipa-inline.h.
12551
12552 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
12553
12554         * config/i386/sse.md (V16): New mode iterator.
12555         (VI1, VI8): Ditto.
12556         (AVXMODEQI, AVXMODEDI): Remove.
12557         (sse2, sse3): New mode attribute.
12558         (mov<mode>): Use V16 mode iterator.
12559         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
12560         (push<mode>1): Use V16 mode iterator.
12561         (movmisalign<mode>): Ditto.
12562         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12563         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
12564         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12565         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
12566         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
12567         avx_movdqu<avxmodesuffix>.
12568         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
12569         *avx_movdqu<avxmodesuffix>.
12570         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
12571         avx_lddqu<avxmodesuffix>.
12572         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
12573         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
12574         avx_movnt<AVXMODEDI:mode>.
12575         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
12576         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
12577
12578 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12579
12580         PR target/48629
12581         * haifa-sched.c (prune_ready_list, schedule_block): Use
12582         sched_pressure_p rather than flag_sched_pressure.
12583
12584 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
12585
12586         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12587         cgraph_get_node instead of cgraph_get_create_node.
12588
12589 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
12590
12591         * cfgexpand.c (expand_debug_expr): Use
12592         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
12593
12594 2011-04-15  Michael Matz  <matz@suse.de>
12595
12596         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
12597         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
12598         * function.c (gimplify_parameters): Ditto.
12599         * gimplify.c (gimplify_vla_decl): Ditto.
12600
12601         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
12602         (gimple_call_set_alloca_for_var): New inline function.
12603         (gimple_call_alloca_for_var_p): Ditto.
12604         * gimple.c (gimple_build_call_from_tree): Remember
12605         CALL_ALLOCA_FOR_VAR_P state.
12606         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
12607
12608         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
12609         calls if they were for VLA objects.
12610
12611 2011-04-15  Martin Jambor  <mjambor@suse.cz>
12612
12613         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
12614         of ADR_EXPRs.
12615
12616 2011-04-15  Martin Jambor  <mjambor@suse.cz>
12617
12618         PR middle-end/48601
12619         * tree-emutls.c (lower_emutls_function_body): Call
12620         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
12621         result is non-NULL.
12622
12623 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
12624
12625         * c-decl.c (detect_field_duplicates): Call
12626         objc_detect_field_duplicates instead of objc_get_interface_ivars.
12627
12628 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
12629
12630         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12631         * gimple.c (gimple_asm_clobbers_memory_p): Define.
12632         * ipa-pure-const.c (check_stmt): Call it.
12633         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12634
12635 2011-04-15  Richard Guenther  <rguenther@suse.de>
12636
12637         PR tree-optimization/48290
12638         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12639         Properly decide inhibiting propagation based on the valueized
12640         operand.  Do loop-closed SSA form preserving here ...
12641         (init_copy_prop): ... not here.
12642
12643 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12644
12645         PR target/48612
12646         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12647         (*ieee_smax<mode>3): Likewise.
12648
12649 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12650
12651         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12652         Replace match_operand with match_dup for the third operand in
12653         these expanders.
12654
12655 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12656
12657         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12658         to track processing of conditionals.  Update all callers.
12659         (try_combine, simplify_if_then_else): Update.
12660
12661 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12662
12663         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12664         -fsched-pressure.
12665
12666 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
12667
12668         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12669         instead of match_operand for operand 3.
12670
12671 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
12672
12673         * recog.h (insn_operand_data): Add an "allows_mem" field.
12674         * genoutput.c (output_operand_data): Initialize it.
12675         * optabs.c (maybe_legitimize_operand_same_code): New function.
12676         (maybe_legitimize_operand): Use it when matching the original
12677         op->value.
12678
12679 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12680
12681         * gimplify.c: Fix issues in comments throughout.
12682         (voidify_wrapper_expr): Fix long line.
12683         (build_stack_save_restore): Likewise.
12684         (gimplify_loop_expr): Likewise.
12685         (gimplify_compound_lval): Likewise.
12686         (gimplify_init_ctor_eval): Likewise.
12687         (gimplify_modify_expr_rhs): Likewise.
12688         (omp_notice_threadprivate_variable): Likewise.
12689
12690 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12691
12692         * cfgexpand.c (expand_call_stmt): Convert the function type to the
12693         original one if this is not a builtin function.
12694
12695 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
12696
12697         PR target/48605
12698         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12699         offset it as needed based on top 2 bits in operands[3], change
12700         MEM mode to SFmode and mask those 2 bits away from operands[3].
12701
12702 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12703
12704         * c-parser.c (c_parser_objc_protocol_definition): Updated for
12705         change from objc_declare_protocols() to objc_declare_protocol().
12706
12707 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
12708
12709         * config/i386/sse.md (sse4_1): New mode attribute.
12710         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12711         avx_blend<ssemodesuffix><avxmodesuffix> and
12712         sse4_1_blend<ssemodesuffix> using VF mode iterator.
12713         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12714         avx_blendv<ssemodesuffix><avxmodesuffix> and
12715         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12716         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12717         avx_dp<ssemodesuffix><avxmodesuffix> and
12718         sse4_1_dp<ssemodesuffix> using VF mode iterator.
12719         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12720         (sse4_1_packusdw): Merge with *avx_packusdw.
12721         (sse4_1_pblendvb): Merge with *avx_pblendvb.
12722         (sse4_1_pblendw): Merge with *avx_pblendw.
12723         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12724         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12725         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12726         VF mode iterator.
12727         (sse4_1_round<ssescalarmodesuffix>): Merge with
12728         *avx_round<ssescalarmodesuffix>.
12729         (aesenc): Merge with *avx_aesenc.
12730         (aesenclast): Merge with *avx_aesenclast.
12731         (aesdec): Merge with *avx_aesdec.
12732         (aesdeclast): Merge with *avx_aesdeclast.
12733         (pclmulqdq): Merge with *pclmulqdq.
12734         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12735         New predicate.
12736         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12737
12738 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
12739
12740         PR middle-end/48608
12741         * cfgexpand.c (get_decl_align_unit): Renamed to ...
12742         (align_local_variable): This.  Update DECL_ALIGN.
12743         (add_stack_var): Updated.
12744         (expand_one_stack_var): Likewise.
12745
12746 2011-04-14  Richard Guenther  <rguenther@suse.de>
12747
12748         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12749         Remove.
12750         (dse_initialize_block_local_data, dse_leave_block,
12751         record_voperand_set, get_stmt_uid): Likewise.
12752         (dse_possible_dead_store_p): Allow any kind of killing stmt.
12753         (dse_optimize_stmt): Remove voperand set handling code.
12754         Simplify and improve to handle any kind of killing stmt.
12755         (dse_record_phi): Remove.
12756         (dse_enter_block): Simplify.
12757         (tree_ssa_dse): Likewise.
12758         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12759
12760 2011-04-14  Jan Hubicka  <jh@suse.cz>
12761
12762         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12763         * cgraph.h (struct inline_summary): Move to ipa-inline.h
12764         (cgraph_local_info): Remove inline_summary.
12765         * ipa-cp.c: Include ipa-inline.h.
12766         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12767         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12768         accesor.
12769         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12770         (input_overwrite_node): Do not set inline summary.
12771         (input_node): Do not stream inline summary.
12772         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12773         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12774         growth; we do not have inline parameters computed for that anyway.
12775         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12776         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12777         (inline_summary_t): New type and VECtor.
12778         (debug_inline_summary, dump_inline_summaries): Declare.
12779         (inline_summary): Use VOCtor.
12780         (estimate_edge_growth): Kill hack computing call stmt size directly.
12781         * lto-section-in.c (lto_section_name): Add inline section.
12782         * ipa-inline-analysis.c: Include lto-streamer.h
12783         (node_removal_hook_holder, node_duplication_hook_holder): New holders
12784         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12785         (inline_summary_vec): Define.
12786         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12787         dump_inline_summaries): New functions.
12788         (estimate_function_body_sizes): Properly compute size/time of outgoing
12789         calls.
12790         (compute_inline_parameters): Alloc inline_summary; do not compute
12791         size/time of incomming calls.
12792         (estimate_edge_time): Avoid missing time summary hack.
12793         (inline_read_summary): Read inline summary info.
12794         (inline_write_summary): Write inline summary info.
12795         (inline_free_summary): Free all hooks and inline summary vector.
12796         * lto-streamer.h: Add LTO_section_inline_summary section.
12797         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12798         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12799
12800 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12801
12802         * tree-vectorizer.h (vect_strided_store_supported): Add a
12803         HOST_WIDE_INT argument.
12804         (vect_strided_load_supported): Likewise.
12805         (vect_permute_store_chain): Return void.
12806         (vect_transform_strided_load): Likewise.
12807         (vect_permute_load_chain): Delete.
12808         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12809         count argument.  Check that the count is a power of two.
12810         (vect_strided_load_supported): Likewise.
12811         (vect_permute_store_chain): Return void.  Update after above changes.
12812         Assert that the access is supported.
12813         (vect_permute_load_chain): Likewise.
12814         (vect_transform_strided_load): Return void.
12815         * tree-vect-stmts.c (vectorizable_store): Update calls after
12816         above interface changes.
12817         (vectorizable_load): Likewise.
12818         (vect_analyze_stmt): Don't check for strided powers of two here.
12819
12820 2011-04-14  Richard Guenther  <rguenther@suse.de>
12821
12822         PR tree-optimization/48590
12823         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12824         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12825         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12826         BUILT_IN_STACK_SAVE.
12827         * tree-ssa-dce.c (propagate_necessity): Handle
12828         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12829
12830 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
12831
12832         * c-parser.c (c_parser_objc_class_declaration): Updated call to
12833         objc_declare_class.
12834
12835 2011-04-14  Richard Guenther  <rguenther@suse.de>
12836
12837         * tree.h (get_object_alignment_1): Declare.
12838         * builtins.c (get_object_alignment_1): Split out worker from ...
12839         (get_object_alignment): ... here.
12840         * fold-const.c (get_pointer_modulus_and_residue): Use
12841         get_object_alignment_1.
12842
12843 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12844
12845         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12846         type parameter.
12847         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12848         parameter.  Generalise code to handle arrays as well as vectors.
12849         (vect_setup_realignment): Update accordingly.
12850         * tree-vect-stmts.c (vectorizable_store): Likewise.
12851         (vectorizable_load): Likewise.
12852
12853 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12854
12855         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12856         within the per-copy loop.
12857
12858 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12859
12860         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12861         in the dump file.
12862
12863 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
12864
12865         * doc/options.texi (Negative): Explicitly mention that the
12866         Negative chain must be circular.
12867
12868 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
12869
12870         * function.h (block_chainon): Declare.
12871         * function.c (block_chainon): Define.
12872
12873 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
12874             Eric Weddington  <eric.weddington@atmel.com>
12875             Georg-Johann Lay  <avr@gjlay.de>
12876
12877         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12878         New Includes
12879         (avr_init_builtins, avr_expand_builtin,
12880         avr_expand_delay_cycles, avr_expand_unop_builtin,
12881         avr_expand_binop_builtin ): New functions.
12882         (avr_builtin_id): New enum
12883         (struct avr_builtin_description): New struct
12884         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12885         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12886
12887         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12888         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12889         UNSPECV_DELAY_CYCLES): new enumeration values
12890         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12891         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12892         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12893         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12894         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12895         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12896         "fmulsu"): New insns
12897
12898         * config/avr/avr-c.c: fix line endings
12899         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12900         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12901         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12902         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12903         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12904
12905         * doc/extend.texi (AVR Built-in Functions): New node
12906         (Target Builtins): Add documentation of AVR
12907         built-in functions.
12908
12909 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
12910
12911         PR target/44643
12912         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12913         alone. Error if non-const data has attribute progmem.
12914
12915 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12916
12917         * tree.h (struct tree_constructor): Include tree_typed instead of
12918         tree_common.
12919         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12920         TS_TYPED instead of TS_COMMON.
12921
12922 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
12923
12924         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12925         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12926         (sse2_psadbw): Merge with *avx_psadbw.
12927         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12928         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12929         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12930         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12931         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12932         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12933         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12934         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12935         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12936         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12937         (ssse3_palignrti): Merge with *avx_palignrti.
12938
12939 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12940
12941         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12942         * tree-ssanames.c (fini_ssanames): VEC_free it.
12943         (make_ssa_name_fn): Update for VECness of free_ssanames.
12944         (release_ssa_name, release_dead_ssa_names): Likewise.
12945         * tree.h (struct tree_ssa_name): Include tree_typed instead of
12946         tree_common.
12947         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12948         TS_TYPED instead of TS_COMMON.
12949
12950 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
12951
12952         * postreload-gcse.c (gcse_after_reload_main): Add calls to
12953         statistics_counter_event.
12954         * tree-ssa-copyrename.c (stats): Define.
12955         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
12956         statistics_counter_event.
12957         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12958         (bswap_stats, widen_mul_stats): Define.
12959         (insert_reciprocals): Increment rdivs_inserted.
12960         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
12961         rfuncs_inserted.  Add calls to statistics_counter_event.
12962         (execute_cse_sincos_1): Increment inserted.
12963         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
12964         statistics_counter_event.
12965         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
12966         of bswap_stats.  Add calls to statistics_counter_event.
12967         (convert_mult_to_widen): Increment widen_mults_inserted.
12968         (convert_plusminus_to_widen): Increment maccs_inserted.
12969         (convert_mult_to_fma): Increment fmas_inserted.
12970         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
12971         calls to statistics_counter_event.
12972
12973 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
12974
12975         PR rtl-optimization/48455
12976         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12977         `temp_costs->mem_cost'.
12978
12979 2011-04-13  Jan Hubicka  <jh@suse.cz>
12980
12981         * ipa-inline.h: New file.
12982         * ipa-inline-analysis.c: New file. Broken out of ...
12983         * ipa-inline.c: ... this file; update toplevel comment;
12984         include ipa-inline.h
12985         (inline_summary): Move to ipa-inline.h
12986         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12987         ipa-inline-analysis.c.
12988         (cgraph_estimate_time_after_inlining): Rename to
12989         estiamte_time_after_inlining; move to ipa-inline-analysis.c
12990         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12991         to estimate_edge_growth.
12992         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12993         rename to estimate_size_after_inlining.
12994         (cgraph_mark_inline_edge): Update for new naming convention.
12995         (cgraph_check_inline_limits): Likewise.
12996         (cgraph_edge_badness): Likewise.
12997         (cgraph_decide_recursive_inlining): Likewise.
12998         (cgraph_decide_inlining_of_small_functions): Likewise.
12999         (cgraph_decide_inlining_incrementally): Likewise.
13000         (cgraph_estimate_growth): Rename to estimate_growth; move to
13001         ipa-inline-analysis.c.
13002         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
13003         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
13004         (compute_inline_parameters): Likewise.
13005         (compute_inline_parameters_for_current): Likewise.
13006         (pass_inline_parameters): Likewise.
13007         (inline_indirect_intraprocedural_analysis): Likewise.
13008         (analyze_function): Rename to inline_analyze_function; likewise.
13009         (add_new_function): Move to ipa-inline-analysis.c.
13010         (inline_generate_summary): Likewise.
13011         (inline_read_summary): Likewise.
13012         (inline_write_summary): Likewise.
13013         * Makefile.in (ipa-inline-analysis.c): New file.
13014
13015 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13016
13017         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
13018         * configure: Regenerate.
13019
13020 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
13021
13022         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
13023         instead of tree_common.
13024         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
13025         Likewise.
13026         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
13027         TS_TYPED rather than TS_COMMON.
13028         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
13029
13030 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
13031
13032         PR target/45263
13033         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
13034         r20 around calls of __tablejump_elpm__
13035
13036 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13037
13038         PR middle-end/48591
13039         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
13040         NULL.
13041         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
13042
13043 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
13044
13045         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
13046         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
13047         (cfi_vec): New typedef.
13048         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
13049         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
13050         (cie_cfi_vec): New static variable.
13051         (cie_cfi_head): Delete.
13052         (add_cfi): Accept a cfi_vec * as first argument. All callers and
13053         declaration changed. Use vector rather than list operations.
13054         (new_cfi): Don't initialize the dw_cfi_next field.
13055         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
13056         rather than list operations.
13057         (lookup_cfa): Use vector rather than list operations.
13058         (output_cfis): New argument upto. Accept a cfi_vec rather than
13059         a dw_cfi_ref list head as argument. All callers changed.
13060         Iterate over the vector using upto as a maximum index.
13061         (output_all_cfis): New static function.
13062         (output_fde): Use vector rather than list operations. Use the
13063         new upto argument for output_cfis rather than manipulating a
13064         list.
13065         (dwarf2out_begin_prologue): Change initializations to match
13066         new struct members.
13067         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
13068         from the vector length rather than searching for the end of a list.
13069         Use output_all_cfis.
13070         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
13071
13072 2011-04-13  Nick Clifton  <nickc@redhat.com>
13073
13074         * config/rx/rx.md (movmemsi): Do not use this pattern when
13075         volatile pointers are involved.
13076
13077 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
13078
13079         * config/i386/sse.md (pinsrbits): Remove.
13080         (sse2_packsswb): Merge with *avx_packsswb.
13081         (sse2_packssdw): Merge with *avx_packssdw.
13082         (sse2_packuswb): Merge with *avx_packuswb.
13083         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
13084         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
13085         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
13086         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
13087         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
13088         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
13089         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
13090         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
13091         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
13092         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
13093         (sse2_loadld): Merge with *avx_loadld.
13094         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
13095         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
13096         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
13097         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
13098         (vec_concatv2di): Merge with *vec_concatv2di_avx.
13099
13100 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
13101
13102         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
13103         calling TREE_CHAIN.
13104         * print-tree.c (print_node): Likewise.
13105         * tree-inline.c (copy_tree_r): Likewise.
13106         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
13107         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
13108         instead of TS_COMMON.
13109         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
13110         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
13111         (copy_node_stat): Zero TREE_CHAIN only if necessary.
13112         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
13113         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
13114         ...and these...
13115         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
13116         * tree.h: ...here.
13117         (TREE_CHAIN): Check for a TS_COMMON structure.
13118         (TREE_TYPE): Check for a TS_TYPED structure.
13119
13120 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
13121
13122         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13123         cgraph_get_create_node instead of cgraph_node.
13124
13125 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13126
13127         * c-parser.c (c_parser_initelt): Updated call to
13128         objc_build_message_expr.
13129         (c_parser_postfix_expression): Likewise.
13130
13131 2011-04-12  Kai Tietz  <ktietz@redhat.com>
13132
13133         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
13134         MASK_MS_BITFIELD_LAYOUT bit.
13135
13136 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13137
13138         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
13139         assert it is always true.
13140         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
13141         moves.
13142
13143 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13144
13145         * c-parser.c (c_lex_one_token): Rewritten conditional used when
13146         compiling Objective-C to be more efficient.
13147
13148 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
13149
13150         * opts-common.c (decode_cmdline_options_to_array): Remove variable
13151         argv_copied.
13152
13153 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13154
13155         * recog.h, genoutput.c, optabs.c: Revert last patch.
13156
13157 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13158
13159         PR target/48090
13160         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
13161
13162 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13163
13164         * recog.h (insn_operand_data): Add an "allows_mem" field.
13165         * genoutput.c (output_operand_data): Initialize it.
13166         * optabs.c (maybe_legitimize_operand_same_code): New function.
13167         (maybe_legitimize_operand): Use it when matching the original
13168         op->value.
13169
13170 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13171
13172         * genpreds.c (process_define_predicate): Move most processing
13173         to gensupport.c.  Continue to validate the expression.
13174         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
13175         (process_define_predicate): Move processing to gensupport.c.
13176         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
13177         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
13178         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
13179         argument.
13180         (valid_predicate_name_p): New function, split out from old
13181         genpreds.c:process_define_predicate.
13182         (process_define_predicate): New function, combining code from
13183         old genpreds.c and genrecog.c functions.
13184         (process_rtx): Call it for DEFINE_PREDICATE and
13185         DEFINE_SPECIAL_PREDICATE.
13186
13187 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
13188
13189         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
13190         size of a '%A' memory reference.
13191         (T_DREG, T_QREG): New neon_builtin_type_bits.
13192         (arm_init_neon_builtins): Assert that the load and store operands
13193         are neon_struct_operands.
13194         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
13195         (NEON_ARG_MEMORY): New builtin_arg.
13196         (neon_dereference_pointer): New function.
13197         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
13198         Handle NEON_ARG_MEMORY.
13199         (arm_expand_neon_builtin): Update after above interface changes.
13200         Use NEON_ARG_MEMORY for loads and stores.
13201         * config/arm/predicates.md (neon_struct_operand): New predicate.
13202         * config/arm/iterators.md (V_two_elem): Tweak formatting.
13203         (V_three_elem): Use BLKmode for accesses that have no associated mode.
13204         (V_four_elem): Tweak formatting.
13205         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
13206         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
13207         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
13208         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
13209         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
13210         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
13211         (neon_vst4<mode>): Replace pointer operand with a memory operand.
13212         Use %A in the output template.
13213         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
13214         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
13215         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
13216         the width of the memory access.  Remove post-increment.
13217         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
13218
13219 2011-04-12  Nick Clifton  <nickc@redhat.com>
13220
13221         * config/v850/v850.c (expand_prologue): Do not use the CALLT
13222         instruction for interrupt handlers if the target is the basic V850
13223         architecture.
13224         (expand_epilogue): Likewise.
13225
13226 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13227
13228         PR rtl-optimization/48549
13229         * combine.c (propagate_for_debug): Also stop after BB_END of
13230         this_basic_block.  Process LAST and just stop processing after it.
13231         (combine_instructions): If last_combined_insn has been deleted,
13232         set last_combined_insn to its PREV_INSN.
13233
13234 2011-04-12  Richard Guenther  <rguenther@suse.de>
13235
13236         PR tree-optimization/46076
13237         * gimple.h (struct gimple_statement_call): Add fntype field.
13238         (gimple_call_fntype): Adjust.
13239         (gimple_call_set_fntype): New function.
13240         * gimple.c (gimple_build_call_1): Set the call function type.
13241         * gimplify.c (gimplify_call_expr): Preserve the function
13242         type the frontend used for the call.
13243         (gimplify_modify_expr): Likewise.
13244         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
13245         function type.
13246         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
13247         function type.
13248         * tree-ssa.c (useless_type_conversion_p): Function pointer
13249         conversions are useless.
13250
13251 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13252
13253         * cgraph.h (cgraph_node): Remove function declaration.
13254         (cgraph_create_node): Declare.
13255         (cgraph_get_create_node): Likewise.
13256         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
13257         Updated all callers.
13258         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
13259         the decl does not already exist.  Call cgraph_get_create_node instead
13260         of cgraph_node.
13261         (cgraph_get_create_node): New function.
13262         (cgraph_same_body_alias): Update comment.
13263         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
13264         assert it does not return NULL.
13265         (cgraph_update_edges_for_call_stmt): Likewise.
13266         (cgraph_clone_edge): Likewise.
13267         (cgraph_create_virtual_clone): Likewise.
13268         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
13269         instead of cgraph_node.
13270         (cgraph_add_new_function): Call cgraph_create_node or
13271         cgraph_get_create_node instead of cgraph_node.
13272         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
13273         instead of cgraph_node.
13274         (record_eh_tables): Likewise.
13275         (mark_address): Likewise.
13276         (mark_load): Likewise.
13277         (build_cgraph_edges): Call cgraph_get_create_node instead
13278         of cgraph_node.
13279         (rebuild_cgraph_edges): Likewise.
13280         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
13281         instead of cgraph_node.
13282         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
13283         cgraph_node.
13284         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
13285         cgraph_create_node instead of cgraph_node.
13286         * c-decl.c (finish_function): Call cgraph_get_create_node instead
13287         of cgraph_node.
13288         * lto-cgraph.c (input_node): Likewise.
13289         * lto-streamer-in.c (input_function): Likewise.
13290         * varasm.c (mark_decl_referenced): Likewise.
13291         (assemble_alias): Likewise.
13292
13293 2011-04-12  Martin Jambor  <mjambor@suse.cz>
13294
13295         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
13296         instead of cgraph_node and assert it does not return NULL.
13297         * lto-streamer-in.c (lto_read_body): Likewise.
13298         * omp-low.c (new_omp_context): Likewise.
13299         (create_task_copyfn): Likewise.
13300         * tree-emutls.c (lower_emutls_function_body): Likewise.
13301         * matrix-reorg.c (transform_allocation_sites): Likewise.
13302
13303 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
13304
13305         PR c/48552
13306         * c-typeck.c (build_asm_expr): Error out on attempts to use
13307         void type outputs or inputs for constraints that allow reg or
13308         don't allow memory.
13309
13310 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
13311             Richard Earnshaw  <rearnsha@arm.com>
13312
13313         PR target/48250
13314         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
13315         to use sign-magnitude offsets. Reject unsupported unaligned
13316         cases. Add detailed description in comments.
13317         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
13318         condition from TARGET_32BIT to TARGET_ARM.
13319
13320 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
13321
13322         * tree.h (struct typed_tree): New.
13323         (struct tree_common): Include it instead of tree_base.
13324         (TREE_TYPE): Update for new location of type field.
13325         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
13326         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
13327         (union tree_node): Add typed field.
13328         * treestruct.def (TS_TYPED): New.
13329         * lto-streamer.c (check_handled_ts_structures): Handle it.
13330         * tree.c (MARK_TS_TYPED): New macro.
13331         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
13332
13333 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
13334
13335         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
13336         (force_nonfallthru): Do not alter the loop nest if no basic block
13337         was created.
13338
13339 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
13340
13341         * config/i386/sse.md (VI): New mode iterator.
13342         (SSEMODEI): Remove.
13343         (AVX256MODEI): Ditto.
13344         (AVXMODEF4P): Ditto.
13345         (avxvecpsmode): Ditto.
13346         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
13347         (sse2_andnot<mode>3): New expander.
13348         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
13349         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
13350         (<any_logic:code><mode>3): Use VI mode iterator.
13351         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
13352         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
13353         (*andnottf3): Handle AVX three-operand constraints.
13354         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
13355
13356 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13357             Robert Millan  <rmh@gnu.org>
13358
13359         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
13360         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
13361         GNU_USER_DYNAMIC_LINKER64): Define.
13362         (REG_NAME): Don't undefine.
13363         (MD_UNWIND_SUPPORT): Undefine.
13364         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
13365         (REG_NAME): Don't undefine.
13366         (MD_UNWIND_SUPPORT): Undefine.
13367         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
13368
13369 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13370
13371         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
13372         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
13373
13374 2011-04-11  Xinliang David Li  <davidxl@google.com>
13375
13376         * value-profile.c (check_ic_target): New function.
13377         (gimple_ic_transform): Sanity check indirect call target.
13378         * gimple-low.c (gimple_check_call_args): Interface change.
13379         (gimple_check_call_matching_types): New function.
13380         * tree-inline.c (tree_can_inline_p): Call new function.
13381
13382 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
13383
13384         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
13385         tree-pretty-print.h & realmpfr.h.
13386
13387 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
13388
13389         PR middle-end/48464
13390         * ira.c (setup_pressure_classes): Fix typo in loop condition.
13391         (setup_allocno_and_important_classes): Ditto.
13392
13393 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13394
13395         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
13396         GNU_USER_DYNAMIC_LINKER.
13397         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
13398         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13399         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
13400         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13401         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13402         GNU_USER_TARGET_OS_CPP_BUILTINS.
13403         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
13404         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13405         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13406         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13407         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
13408         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13409         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13410         GNU_USER_TARGET_OS_CPP_BUILTINS.
13411         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13412         GNU_USER_DYNAMIC_LINKER.
13413         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13414         GNU_USER_TARGET_OS_CPP_BUILTINS.
13415         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
13416         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13417         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
13418         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13419         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
13420         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
13421         GNU_USER_DYNAMIC_LINKER64): Remove.
13422         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
13423         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13424         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13425         GNU_USER_DYNAMIC_LINKER.
13426         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13427         GNU_USER_TARGET_OS_CPP_BUILTINS.
13428         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13429         GNU_USER_TARGET_OS_CPP_BUILTINS.
13430         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
13431         to GNU_USER_TARGET_OS_CPP_BUILTINS.
13432         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13433         GNU_USER_TARGET_OS_CPP_BUILTINS.
13434         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
13435         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
13436         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13437         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
13438         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13439         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13440         GNU_USER_DYNAMIC_LINKER.
13441         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13442         GNU_USER_TARGET_OS_CPP_BUILTINS.
13443         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
13444         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13445         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13446         GNU_USER_DYNAMIC_LINKER.
13447         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13448         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13449         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
13450         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13451         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13452         GNU_USER_DYNAMIC_LINKER.
13453         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
13454         GNU_USER_DYNAMIC_LINKERN32.
13455         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
13456         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
13457         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
13458         GNU_USER_DYNAMIC_LINKER32.
13459         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
13460         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13461         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13462         GNU_USER_DYNAMIC_LINKER.
13463         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13464         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13465         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
13466         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13467         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13468         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
13469         GNU_USER_DYNAMIC_LINKER32.
13470         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13471         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
13472         GNU_USER_DYNAMIC_LINKER.
13473         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
13474         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13475         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13476         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
13477         GNU_USER_DYNAMIC_LINKER64.
13478         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
13479         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13480         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13481         GNU_USER_DYNAMIC_LINKER.
13482         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
13483         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13484         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13485         GNU_USER_DYNAMIC_LINKER.
13486         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
13487         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13488         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13489         GNU_USER_DYNAMIC_LINKER32.
13490         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13491         GNU_USER_DYNAMIC_LINKER64.
13492         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13493         GNU_USER_DYNAMIC_LINKER64.
13494         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
13495         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13496         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
13497         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13498         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13499
13500 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13501
13502         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
13503         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
13504         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
13505         GNU_USER_DYNAMIC_LINKER.
13506         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13507         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
13508         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
13509         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
13510         GNU_USER_DYNAMIC_LINKER64.
13511         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13512         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
13513         GNU_USER_LINK_EMULATION.
13514         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
13515         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
13516         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
13517         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
13518         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
13519         CPP_SPEC, CC1_SPEC): Remove.
13520         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
13521         (GNU_USER_DYNAMIC_LINKER): Define.
13522         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
13523         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
13524         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
13525         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
13526         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
13527         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
13528         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13529         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
13530         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
13531         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
13532         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
13533         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
13534         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
13535         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
13536         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
13537         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13538         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13539         GNU_USER_DYNAMIC_LINKER.
13540         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13541         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
13542         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13543         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
13544         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13545         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
13546         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
13547         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
13548         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
13549         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
13550
13551 2011-04-11  Kai Tietz  <ktietz@redhat.com>
13552
13553         PR target/9601
13554         PR target/11772
13555         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
13556         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
13557         comment.
13558         (ix86_is_msabi_thiscall): Removed.
13559         (ix86_is_type_thiscall): Likewise.
13560         (ix86_get_callcvt): New function.
13561         (ix86_comp_type_attributes): Simplify check.
13562         (ix86_function_regparm): Use ix86_get_callcvt for calling
13563         convention attribute checks.
13564         (ix86_return_pops_args): Likewise.
13565         (ix86_static_chain): Likewise.
13566         (x86_this_parameter): Likewise.
13567         (x86_output_mi_thunk): Likewise.
13568         (ix86_function_type_abi): Optimize check for types without attributes.
13569         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
13570         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
13571         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
13572         by flag-values.
13573         (IX86_BASE_CALLCVT): Helper macro.
13574         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13575         Use ix86_get_callcvt for calling convention attribute checks and avoid
13576         symbol-decoration for stdcall in TARGET_RTD case.
13577         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
13578         Likewise.
13579         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
13580         for declaration.
13581
13582 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
13583
13584         * config/i386/sse.md (VI_128): New mode iterator.
13585         (VI12_128): Rename from SSEMODE12.
13586         (VI14_128): Rename from SSEMODE14.
13587         (VI124_128): New mode iterator.
13588         (VI24_128): Rename from SSEMODE248.
13589         (VI248_128): Rename from SSEMODE248.
13590         (SSEMODE124C8): Remove.
13591         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13592         (*sse2_<plusminus_insn><mode>3): Merge with
13593         *avx_<plusminus_insn><mode>3.
13594         (*mulv8hi3): Merge with *avx_mulv8hi3.
13595         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
13596         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
13597         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
13598         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
13599         (ashr<mode>3): Merge with *avx_ashr<mode>3.
13600         (lshr<mode>3): Merge with *avx_lshr<mode>3.
13601         (ashl<mode>3): Merge with *avx_ashl<mode>3.
13602         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
13603         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
13604         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13605         (*<smaxmin:code>v8hi3): Ditto.
13606         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
13607         (*<smaxmin:code>v16qi3): Ditto.
13608         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
13609         (*sse2_eq<mode>3): Ditto.
13610         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
13611         (*sse2_gt<mode>3): Ditto.
13612         (vcondv2di): Split out of vcond<mode>.
13613         (vconduv2di): Split out of vcondu<mode>.
13614
13615 2011-04-11  Richard Guenther  <rguenther@suse.de>
13616
13617         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
13618         before calling tree_low_cst.
13619
13620 2011-04-11  Richard Guenther  <rguenther@suse.de>
13621
13622         * stor-layout.c (layout_type): Compute all array index size operations
13623         in the original type.
13624         (initialize_sizetypes): Add comment.
13625         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13626
13627 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
13628
13629         * common.opt (Tbss=, Tdata=, Ttext=): New options.
13630
13631 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13632
13633         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13634         of cgraph_node, handle NULL return value.
13635         (cgraph_global_info): Likewise.
13636         (cgraph_rtl_info): Likewise.
13637         * tree-inline.c (estimate_num_insns): Likewise.
13638         * gimplify.c (unshare_body): Likewise.
13639         (unvisit_body): Likewise.
13640         (gimplify_body): Likewise.
13641         * predict.c (optimize_function_for_size_p): Likewise.
13642         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13643         (call_may_clobber_ref_p_1): Likewise.
13644         * varasm.c (function_section_1): Likewise.
13645         (assemble_start_function): Likewise.
13646
13647 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13648
13649         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13650         of cgraph_node.
13651         * final.c (rest_of_clean_state): Likewise.
13652         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13653         * passes.c (pass_init_dump_file): Likewise.
13654         (execute_all_ipa_transforms): Likewise.
13655         (function_called_by_processed_nodes_p): Likewise.
13656         * predict.c (maybe_hot_frequency_p): Likewise.
13657         (probably_never_executed_bb_p): Likewise.
13658         (compute_function_frequency): Likewise.
13659         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13660         (unnest_nesting_tree_1): Likewise.
13661         (lower_nested_functions): Likewise.
13662         * tree-optimize.c (execute_fixup_cfg): Likewise.
13663         (tree_rest_of_compilation): Likewise.
13664         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13665         * tree-sra.c (ipa_early_sra): Likewise.
13666         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13667         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13668         * ipa.c (record_cdtor_fn): Likewise.
13669         * ipa-inline.c (cgraph_early_inlining): Likewise.
13670         (compute_inline_parameters_for_current): Likewise.
13671         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13672         * ipa-pure-const.c (local_pure_const): Likewise.
13673         * ipa-split.c (split_function): Likewise.
13674         (execute_split_functions): Likewise.
13675         * cgraphbuild.c (build_cgraph_edges): Likewise.
13676         (rebuild_cgraph_edges): Likewise.
13677         (cgraph_rebuild_references): Likewise.
13678         (remove_cgraph_callee_edges): Likewise.
13679         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13680         (verify_cgraph_node): Likewise.
13681         (cgraph_analyze_functions): Likewise.
13682         (cgraph_preserve_function_body_p): Likewise.
13683         (save_inline_function_body): Likewise.
13684         (save_inline_function_body): Likewise.
13685         * tree-inline.c (copy_bb): Likewise.
13686         (optimize_inline_calls): Likewise.
13687
13688 2011-04-11  Martin Jambor  <mjambor@suse.cz>
13689
13690         PR tree-optimization/48195
13691         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13692         ipa_check_create_edge_args.
13693         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13694         ipa_check_create_edge_args.
13695         * ipa-inline.c (inline_generate_summary): Do not call
13696         ipa_check_create_node_params and ipa_check_create_edge_args.
13697         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13698         ipa_check_create_edge_args.
13699
13700 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
13701
13702         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13703         instead of loop.
13704         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13705         * function.c (record_hard_reg_sets): Likewise.
13706         * ira.c (compute_regs_asm_clobbered): Likewise.
13707         * sched-deps.c (sched_analyze_1): Likewise.
13708         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13709
13710 2011-04-09  Xinliang David Li  <davidxl@google.com>
13711
13712         PR tree-optimization/PR48484
13713         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13714         has_valid_pred lazily
13715
13716 2011-04-09  Duncan Sands  <baldrick@free.fr>
13717
13718         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13719
13720 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13721
13722         * combine.c (combine_validate_cost): Adjust comments.  Set registered
13723         cost of I0 to zero at the end, if any.
13724
13725 2011-04-08  Xinliang David Li  <davidxl@google.com>
13726
13727         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13728         to insane profile data.
13729
13730 2011-04-08  Xinliang David Li  <davidxl@google.com>
13731
13732         * ipa-cp.c (ipcp_update_profiling): Correct
13733          negative scale factor due to insane profile data.
13734
13735 2011-04-08  Xinliang David Li  <davidxl@google.com>
13736
13737         * final.c (dump_basic_block_info): New function.
13738         (final): Dump basic block.
13739         (final_scan_insn): Remove old dump.
13740
13741 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
13742
13743         PR target/47829
13744         * config.gcc (i386-*-freebsd): Disable unwind table generation for
13745         crtbegin/crtend.
13746
13747 2011-04-08  Michael Matz  <matz@suse.de>
13748
13749         PR middle-end/48389
13750         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13751         functions.
13752         (rebuild_jump_labels): Call rebuild_jump_labels_1.
13753         * rtl.h (rebuild_jump_labels_chain): Declare.
13754         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13755         insns inserted on edges.
13756
13757 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
13758
13759         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13760         * config/arm/arm-arches.def: New.
13761         * config/arm/arm-opts.h: New.
13762         * config/arm/genopt.sh: New.
13763         * config/arm/arm-tables.opt: New (generated).
13764         * config/arm/arm.c (arm_handle_option, arm_target_help,
13765         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13766         (all_architectures): Get most table contents from arm-arches.def.
13767         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13768         arm_selected_tune here.
13769         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13770         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13771         (march=, mcpu=, mtune=): Use Enum and Var.
13772         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13773         (arm.o): Update dependencies.
13774
13775 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
13776
13777         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13778         of header_file.
13779         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13780         (write_typed_alloc_defns): Likewise.
13781         (main): Calls write_typed_alloc_defns with output_header.
13782
13783 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
13784
13785         PR inline-asm/48435
13786         * ira-color.c (setup_profitable_hard_regs): Add comments.
13787         Don't take prohibited hard regs into account.
13788         (setup_conflict_profitable_regs): Rename to
13789         get_conflict_profitable_regs.
13790         (check_hard_reg_p): Check prohibited hard regs.
13791
13792 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
13793
13794         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13795         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13796         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13797
13798 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13799
13800         PR target/48366
13801         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13802         move from floating point to shift amount register.
13803         (emit_move_sequence): Remove secondary reload support for floating
13804         point to shift amount amount register copies.
13805         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13806         amount register copies.
13807         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13808         register, return false if mode isn't a scalar integer mode.
13809         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13810
13811 2011-04-08  Richard Guenther  <rguenther@suse.de>
13812
13813         * gimple.c (gimple_call_flags): Remove kludge.
13814
13815 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13816
13817         * sel-sched.c (sel_region_init): Move call to
13818         sel_setup_region_sched_flags after setup_current_loop_nest.
13819
13820 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
13821
13822         PR rtl-optimization/48272
13823         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13824         init_insn_reg_pressure_info.  Adjust a caller.
13825         * sched-int.h (init_insn_reg_pressure_info): Declare.
13826         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13827         when sched-pressure is enabled.
13828
13829 2011-04-08  Richard Guenther  <rguenther@suse.de>
13830
13831         * gimple.c (gimple_set_modified): Do not queue calls to
13832         MODIFIED_NORETURN_CALLS here ...
13833         * tree-ssa-operands.c (update_stmt_operands): ... but here.
13834
13835 2011-04-08  Richard Guenther  <rguenther@suse.de>
13836
13837         PR lto/48467
13838         * toplev.c (lang_dependent_init): Do not open asm_out_file
13839         in WPA mode, nor perform debug machinery initialization.
13840         (finalize): Do not unlink asm_out_file in WPA mode.
13841
13842 2011-04-08  Richard Guenther  <rguenther@suse.de>
13843
13844         * gimple.h (gimple_call_fntype): New function.
13845         (gimple_call_return_type): Use it.
13846         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13847         * gimple-low.c (gimple_check_call_args): Likewise.
13848         * gimple.c (gimple_call_flags): Likewise.
13849         (gimple_call_arg_flags): Likewise.
13850         (gimple_call_return_flags): Likewise.
13851         * tree-cfg.c (verify_gimple_call): Likewise.
13852         (do_warn_unused_result): Likewise.
13853         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13854         * value-prof.c (gimple_ic_transform): Fix fndecl check.
13855
13856 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
13857
13858         PR rtl-optimization/48235
13859         * sel-sched.c (code_motion_process_successors): Recompute the last
13860         insn in basic block if control flow changed.
13861         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
13862         Update condition for ilist_remove.
13863
13864 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13865
13866         PR rtl-optimization/48302
13867         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13868         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
13869         it to record added preheader blocks.
13870         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
13871         on to sel_add_loop_preheaders.
13872         (sel_region_init): Move call to setup_current_loop_nest after
13873         sel_init_bbs.
13874
13875 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13876
13877         PR target/48273
13878         * cfgloop.h (loop_has_exit_edges): New helper.
13879         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13880         non-clonable.
13881         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13882         that have no exit edges.
13883
13884 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
13885
13886         PR rtl-optimization/48442
13887         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
13888         all callers.  Adjust assert.
13889
13890 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
13891
13892         PR tree-optimization/48377
13893         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13894         is_packed to true even for types with smaller TYPE_ALIGN than
13895         TYPE_SIZE.
13896
13897 2011-04-08  Richard Guenther  <rguenther@suse.de>
13898
13899         PR bootstrap/48513
13900         * doc/tm.texi: Re-generate.
13901
13902 2011-04-08  Wei Guozhi  <carrot@google.com>
13903
13904         PR target/47855
13905         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13906         * config/arm/arm.c (arm_attr_length_push_multi): New function.
13907         * config/arm/arm.md (*push_multi): Change the length computation to
13908         call a C function.
13909
13910 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
13911
13912         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13913         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13914         * doc/tm.texi: Regenerate.
13915         * system.h (ASM_OUTPUT_BSS): Poison.
13916         * varasm.c (asm_output_bss): Remove function.
13917         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13918
13919         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13920         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13921         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13922         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13923         Likewise.
13924         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13925         Likewise.
13926         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13927         Likewise.
13928         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13929
13930 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13931
13932         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13933         EnumValue lines.
13934
13935 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
13936
13937         * config/m68k/m68k.c (m68k_handle_option): Don't handle
13938         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13939         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13940         OPT_mcpu32.
13941         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13942         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13943         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13944         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13945         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13946         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13947         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13948         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13949         options.  Don't map other m68k options manually.  Don't handle
13950         old-style options as canonical.
13951         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13952         * doc/install.texi (m68k-*-*): Document binutils version requirement.
13953
13954 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
13955
13956         * basic-block.h (force_nonfallthru): Move to...
13957         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13958         (force_nonfallthru): ...here.
13959         * cfghooks.c (force_nonfallthru): New function.
13960         * cfgrtl.c (force_nonfallthru): Rename into...
13961         (rtl_force_nonfallthru): ...this.
13962         (commit_one_edge_insertion): Do not set AUX field.
13963         (commit_edge_insertions): Do not discover new basic blocks.
13964         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13965         (cfg_layout_rtl_cfg_hooks): Likewise.
13966         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13967         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
13968         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13969
13970 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
13971
13972         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13973         Remove macros.
13974
13975 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
13976
13977         * config/i386/sse.md: Update copyright year.
13978         (avxcvtvecmode): Remove.
13979         (sse_movhlps): Merge with *avx_movhlps.
13980         (sse_movlhps): Merge with *avx_movlhps.
13981         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13982         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13983         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13984         (sse_loadhps): Merge with *avx_loadhps.
13985         (sse_storelps): Merge with *avx_storelps.
13986         (sse_loadlps): Merge with *avx_loadlps.
13987         (sse_movss): Merge with *avx_movss.
13988         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13989         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13990         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13991         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13992         (vec_set<mode>_0): Ditto.
13993         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13994         (sse4_1_insertps): Merge with *avx_insertps.
13995         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13996         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13997         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13998         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13999         (sse2_storehpd): Merge with *avx_storehpd.
14000         (sse2_loadhpd): Merge with *avx_loadhpd.
14001         (sse2_loadlpd): Merge with *avx_loadlpd.
14002         (sse2_movsd): Merge with *avx_movsd.
14003         (*vec_concatv2df): Merge with *vec_concatv2df.
14004
14005 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
14006
14007         PR debug/48343
14008         * combine.c (combine_instructions): Add last_combined_insn,
14009         update it if insn is after it, pass it to all try_combine calls.
14010         (try_combine): Add last_combined_insn parameter, pass it instead of
14011         i3 to propagate_for_debug.
14012
14013 2011-04-07  Nick Clifton  <nickc@redhat.com>
14014
14015         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
14016         to handle MDR <-> data register transfers.
14017         (movhi_internal): Likewise.
14018
14019 2011-04-07  Alan Modra  <amodra@gmail.com>
14020
14021         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
14022         previous stack info.
14023
14024 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14025
14026         PR target/43920
14027         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
14028         flow_find_cross_jump.  Swap variables to implement backward replacement.
14029         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
14030
14031 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14032
14033         PR target/43920
14034         * cfgcleanup.c (walk_to_nondebug_insn): New function.
14035         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
14036         and bb2.
14037         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
14038         src1 or src2.  Redirect edges to the last basic block.  Update
14039         frequency and count on multiple basic blocks in case of fallthru.
14040
14041 2011-04-07  Tom de Vries  <tom@codesourcery.com>
14042
14043         PR target/43920
14044         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
14045         function.
14046         (old_insns_match_p): Change return type.  Replace return false/true
14047         with return dir_none/dir_both.  Use can_replace_by.
14048         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
14049         direction from dir_p.  Register replacement direction in dir, last_dir
14050         and afterlast_dir.  Handle new return type of old_insns_match_p using
14051         merge_dir.  Return replacement direction in dir_p.
14052         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
14053         return type of old_insns_match_p.
14054         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
14055         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
14056         flow_find_cross_jump.
14057         * basic-block.h (enum replace_direction): New type.
14058         (flow_find_cross_jump): Add parameter to declaration.
14059
14060 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
14061
14062         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
14063         (AVXMODEDCVTPS2DQ): Ditto.
14064         (VEC_FLOAT_MODE): Ditto.
14065         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
14066         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14067         (<any_logic:code><mode>3): Use VF mode iterator.
14068         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
14069         Use VF mode iterator.
14070         (copysign<mode>3): Use VF mode iterator.
14071         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
14072         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14073         (*<any_logic:code><MODEF:mode>3): Merge with
14074         *avx_<any_logic:code><MODEF:mode>3.
14075         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
14076         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
14077         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
14078         (avx_cvtdq2ps<avxmodesuffix>): Remove.
14079         (sse2_cvtdq2ps): Use %v modifier.
14080         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
14081         (avx_cvtps2dq<avxmodesuffix>): Remove.
14082         (sse2_cvtps2dq): Use %v modifier.
14083         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
14084         (avx_cvttps2dq<avxmodesuffix>): Remove.
14085         (sse2_cvttps2dq): Use %v modifier.
14086         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
14087         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
14088         (sse2_cvtsd2siq): Fix insn template.
14089         (sse2_cvtsd2siq_2): Ditto.
14090         (sse2_cvttsd2siq): Ditto.
14091         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
14092         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
14093
14094 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
14095
14096         * gcov-io.c: Use GCC Runtime Library Exception.
14097
14098 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
14099
14100         PR debug/48466
14101         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
14102         as base_reg whatever register reg has been eliminated to, instead
14103         of hardcoding STACK_POINTER_REGNUM.
14104
14105 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
14106
14107         * doc/tm.texi.in: Document C target hooks as separate from general
14108         target hooks.
14109         * doc/tm.texi: Regenerate.
14110         * genhooks.c (struct hook_desc): Add docname field.
14111         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
14112         docname field.
14113         (hook_array): Include c-target.def.
14114         (emit_documentation): Use docname field in output.
14115         (emit_init_macros): Take docname argument.  Only emit definitions
14116         for hooks matching docname.
14117         (main): Expect additional arguments in all cases.  Pass argument
14118         to emit_init_macros.
14119         * target.def: Move initial macro definitions and comments to
14120         target-hooks-macros.h.
14121         (gcc_targetcm): Move to c-family/c-target.def.
14122         * target.h (targetcm): Move declaration to c-family/c-target.h.
14123         * targhooks.c (default_handle_c_option): Move to
14124         c-family/c-opts.c.
14125         * targhooks.h (default_handle_c_option): Move declaration to
14126         c-family/c-common.h.
14127         * target-hooks-macros.h: New file.
14128         * config.gcc (target_has_targetcm): Define and use to add to
14129         c_target_objs and cxx_target_objs.
14130         * config/default-c.c: New file.
14131         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
14132         of target.h and target-def.h.
14133         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
14134         (darwin_objc_construct_string, darwin_cfstring_ref_p,
14135         darwin_check_cfstring_format_arg): Make static.
14136         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14137         TARGET_STRING_OBJECT_REF_TYPE_P,
14138         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
14139         * config/darwin-protos.h (darwin_objc_construct_string,
14140         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
14141         declare.
14142         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14143         TARGET_STRING_OBJECT_REF_TYPE_P,
14144         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
14145         * config/t-darwin (darwin-c.o): Update dependencies.
14146         * system.h (TARGET_HAS_TARGETCM): Poison.
14147         * Makefile.in (TARGET_H): Update.
14148         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
14149         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
14150         (default-c.o): New target.
14151         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
14152         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
14153         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
14154         c-target.def.
14155         (build/genhooks.o): Update dependencies.
14156
14157 2011-04-06  Richard Guenther  <rguenther@suse.de>
14158
14159         * ipa-inline.c (enum inlining_mode): Remove.
14160         (cgraph_flatten): Use some other token.
14161         (cgraph_edge_early_inlinable_p): New function, split out from ...
14162         (cgraph_perform_always_inlining): New function, split out from ...
14163         (cgraph_decide_inlining_incrementally): ... here.
14164         (cgraph_mark_inline_edge): Adjust.
14165         (cgraph_early_inlining): Re-structure.
14166         (pass_early_inline): Require SSA form.
14167
14168 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
14169             Julian Brown  <julian@codesourcery.com>
14170             Mark Shinwell  <shinwell@codesourcery.com>
14171
14172         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
14173         LO_REGS only for Thumb-1.
14174         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
14175         be used in short instructions when optimising for size on Thumb-2.
14176
14177 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14178
14179         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
14180         associated with user returns to be preserved.
14181
14182 2011-04-06  Tristan Gingold  <gingold@adacore.com>
14183
14184         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
14185         symbol_queue_size, DBXOUT_DECR_NESTING,
14186         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
14187         if XCOFF_DEBUGGING_INFO.
14188
14189 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
14190
14191         * config/i386/i386.md (attribute isa): New.
14192         (attribute enabled): New.
14193         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
14194         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
14195         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
14196         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
14197         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
14198         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14199         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
14200         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
14201
14202         * config/i386/sse.md (VF): New mode iterator.
14203         (VF1): Ditto.
14204         (VF2): Ditto.
14205         (VF_128): Ditto.
14206         (SSEMODEF4): Remove.
14207         (attribute sse): Handle V8SF and V4DF modes.
14208         (<absneg:code><mode>2): Use VF mode iterator.
14209         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
14210         mode iterator.
14211         (<plusminus_insn><mode>3): Use VF mode iterator.
14212         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14213         Use VF mode iterator.
14214         (<sse>_vm<plusminus_insn><mode>3): Merge with
14215         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
14216         (mul<mode>3): Use VF mode iterator.
14217         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
14218         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
14219         mode iterator.
14220         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
14221         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
14222         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
14223         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
14224         mode iterator.
14225         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
14226         Use VF1 mode iterator.
14227         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
14228         (sqrt<VF2:mode>2): New expander.
14229         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
14230         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
14231         and sqrtv2df2.  Use VF mode iterator.
14232         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
14233         mode iterator.
14234         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
14235         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
14236         Use VF1 mode iterator.
14237         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
14238         (<smaxmin:code><mode>3): Use VF mode iterator.
14239         (*<smaxmin:code><mode>3_finite): Merge with
14240         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
14241         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14242         (<sse>_vm<smaxmin:code><mode>2): Merge with
14243         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
14244         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
14245         mode iterator.
14246         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
14247         mode iterator.
14248         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
14249         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
14250         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
14251         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
14252         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
14253         VF mode iterator.
14254         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
14255         Use VF_128 mode iterator.
14256         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
14257         mode iterator.
14258         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
14259         VF_128 mode iterator.
14260         (vcond<mode>): Use VF mode iterator.
14261         * config/i386/predicates.md (sse_comparison_operator): Merge with
14262         avx_comparison_float_operator.  Do not declare as special_predicate.
14263         * config/i386/i386.c (struct builtin_description): Update for renamed
14264         compare patterns.
14265         (ix86_expand_args_builtin): Ditto.
14266         (ix86_expand_sse_compare_mask): Ditto.
14267
14268 2011-04-06  Richard Guenther  <rguenther@suse.de>
14269
14270         * tree-inline.c (estimate_num_insns): For calls simply account
14271         for all passed arguments and a used return value.
14272
14273 2011-04-06  Richard Guenther  <rguenther@suse.de>
14274
14275         PR tree-optimization/47663
14276         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
14277         call_stmt_time fields.
14278         (cgraph_edge_inlinable_p): Declare.
14279         (cgraph_edge_recursive_p): New inline function.
14280         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
14281         (cgraph_clone_edge): Copy it.
14282         * ipa-inline.c (cgraph_estimate_edge_time): New function.
14283         Account for call stmt time.
14284         (cgraph_estimate_time_after_inlining): Take edge argument.
14285         (cgraph_estimate_edge_growth): Account call stmt size.
14286         (cgraph_estimate_size_after_inlining): Take edge argument.
14287         (cgraph_mark_inline_edge): Adjust.
14288         (cgraph_check_inline_limits): Likewise.
14289         (cgraph_recursive_inlining_p): Remove.
14290         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
14291         (cgraph_decide_recursive_inlining): Take edge argument and
14292         adjust.
14293         (cgraph_decide_inlining_of_small_functions): Do not avoid
14294         diags for recursive inlining here.
14295         (cgraph_flatten): Adjust.
14296         (cgraph_decide_inlining_incrementally): Likewise.
14297         (estimate_function_body_sizes): Remove call cost handling.
14298         (compute_inline_parameters): Initialize caller edge call costs.
14299         (cgraph_estimate_edge_growth): New function.
14300         (cgraph_estimate_growth): Use it.
14301         (cgraph_edge_badness): Likewise.
14302         (cgraph_check_inline_limits): Take an edge argument.
14303         (cgraph_decide_inlining_of_small_functions): Adjust.
14304         (cgraph_decide_inlining): Likewise.
14305         * tree-inline.c (estimate_num_insns): Only account for call
14306         return value if it is used.
14307         (expand_call_inline): Avoid diagnostics on recursive inline
14308         functions here.
14309         * lto-cgraph.c (lto_output_edge): Output edge call costs.
14310         (input_edge): Input edge call costs.
14311
14312 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14313
14314         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
14315
14316 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
14317
14318         * doc/invoke.texi (Spec Files): Fix typo.
14319
14320 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14321
14322         * profile.c (branch_prob): Move declaration of local variable.  Remove
14323         obsolete ??? comment.  Expand the location explicitly instead of using
14324         the LOCATION_FILE and LOCATION_LINE macros.
14325
14326 2011-04-06  Wei Guozhi  <carrot@google.com>
14327
14328         PR target/47855
14329         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
14330         (arm_cond_branch): Likewise.
14331         (arm_cond_branch_reversed): Likewise.
14332         (arm_jump): Likewise.
14333         (push_multi): Likewise.
14334         * config/arm/constraints.md (Py): New constraint.
14335
14336 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14337
14338         PR bootstrap/48471
14339         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
14340         Move these...
14341         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
14342         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
14343         #ifdef DBX_DEBUGGING_INFO.
14344
14345 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
14346
14347         PR bootstrap/48403
14348         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
14349         if old and new states differ.
14350
14351 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
14352
14353         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
14354         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
14355         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
14356         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
14357         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
14358         mcfv4e): Use Alias.
14359         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
14360         ColdFire options to -mcpu= options.
14361
14362 2011-04-05  Jeff Law  <law@redhat.com>
14363
14364         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
14365         check if BB is a successor of LOOP->header and return
14366         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
14367
14368 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
14369
14370         * cprop.c (struct reg_use): Remove.
14371         (reg_use_table): Make an array of RTX.
14372         (find_used_regs, constprop_register, local_cprop_pass,
14373         bypass_block): Simplify users of reg_use_table.
14374         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
14375         on one of the uses found by find_used_regs.
14376
14377 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14378
14379         PR bootstrap/48469
14380         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
14381         declaration.
14382
14383 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14384
14385         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
14386         as an rtx.
14387         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
14388
14389 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
14390
14391         PR middle-end/48441
14392         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
14393
14394 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14395
14396         * combine.c: Include obstack.h.
14397         (struct insn_link): Define.
14398         (uid_log_links): Adjust type.
14399         (FOR_EACH_LOG_LINK): New macro.
14400         (insn_link_obstack): Declare.
14401         (alloc_insn_link): Define.
14402         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
14403         type of link variables.
14404         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
14405         (try_combine, record_promoted_values, distribute_notes): Likewise.
14406         (distribute_links): Likewise.  Tweak prototype.
14407         (clear_log_links): Delete.
14408         (adjust_for_new_dest): Call alloc_insn_link.
14409         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
14410
14411 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14412
14413         * gcse.c (modify_mem_list): Convert to an array of VECs.
14414         (canon_modify_mem_list, compute_transp): Tweak formatting.
14415         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
14416         (load_killed_in_block_p): Likewise.
14417         (record_last_mem_set_info): Likewise.
14418         (clear_modify_mem_tables): Likewise.
14419
14420 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14421
14422         PR middle-end/48461
14423         * function.c (emit_use_return_register_into_block): Only define if
14424         HAVE_return.
14425
14426 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
14427
14428         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
14429
14430 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
14431
14432         * config/rx/rx-opts.h: New.
14433         * config/rx/rx.c (rx_cpu_type): Remove.
14434         (rx_handle_option): Don't assert that global structures are in
14435         use.  Access variables via opts pointer.  Defer most handling of
14436         OPT_mint_register_.  Use error_at.
14437         (rx_option_override): Handle deferred OPT_mint_register_ here.
14438         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
14439         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
14440         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
14441         (rx_cpu_types): New Enum and EnumValue entries.
14442         (mint-register=): Use Defer and use Var accordingly.
14443
14444 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14445
14446         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
14447         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
14448         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
14449         Move these...
14450         (debug_free_queue, debug_nesting, symbol_queue_index):
14451         ...and these...
14452         * dbxout.c: ...to here.  Make static.
14453
14454 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
14455
14456         * gcse.c (modify_pair): Define.  Define a VEC of it.
14457         (canon_modify_mem_list): Convert to an array of VECs.
14458         (free_insn_expr_list_list): Delete.
14459         (clear_modify_mem_tables): Call VEC_free instead.
14460         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
14461         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
14462         (canon_list_insert, compute_transp): Likewise.
14463
14464 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14465
14466         PR target/43920
14467         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
14468         for size.
14469
14470 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14471
14472         PR target/43920
14473         * function.c (emit_use_return_register_into_block): New function.
14474         (thread_prologue_and_epilogue_insns): Use
14475         emit_use_return_register_into_block.
14476
14477 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14478
14479         PR target/43920
14480         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
14481         insn.
14482
14483 2011-04-05  Tom de Vries  <tom@codesourcery.com>
14484
14485         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
14486
14487 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
14488
14489         * config/arm/arm.md (define_constants for unspec): Replace with
14490         define_c_enum.
14491         (define_constants for unspecv): Replace with define_c_enum.
14492         * config/arm/neon.md (define_constants for unspec): Replace with
14493         define_c_enum.
14494
14495 2011-04-04  Richard Henderson  <rth@redhat.com>
14496
14497         PR bootstrap/48400
14498         * dwarf2out.c (output_line_info): Always emit line info from
14499         at least one section.
14500         (dwarf2out_init): Create text_section_line_info here ...
14501         (set_cur_line_info_table): ... not here.
14502
14503 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
14504
14505         PR target/48380
14506         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
14507         not called.
14508
14509         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
14510
14511 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
14512
14513         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
14514         (expr_equiv_p): Remove.
14515         (insert_set_in_table): Look at <dest, src> pair instead of expr.
14516         (hash_scan_set): Update call to insert_set_in_table.
14517         (dump_hash_table): Dump <dest, src> pair.
14518         (lookup_set): Simplify.  Lookup <dest, src> pair.
14519         (compute_transp): Remove, fold heavily simplified code into...
14520         (compute_local_properties): ...here.  Expect COMP and TRANSP
14521         unconditionally.
14522         (find_avail_set): Take set directly from struct expr.
14523         (find_bypass-set): Likewise.
14524         (bypass_block): Likewise.
14525         (cprop_insn): Likewise.  Remove redundant INSN_P test.
14526
14527         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
14528         checks on form of COND from find_implicit_sets to here.
14529         (find_implicit_sets): Cleanup control flow. Split critical edges
14530         if it exposes implicit sets.  Allocate/resize implicit_sets as
14531         necessary.
14532         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
14533         changed something.  Run df_analyze after find_implicit_sets if any
14534         edges were split.  Do not allocate implicit_sets here.
14535
14536         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
14537         (gcse_obstack): Renamed to cprop_obstack.
14538         (GNEW, GNEWVEC, GNEWVAR): Remove.
14539         (gmalloc): Remove.
14540         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
14541         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
14542         (gcse_alloc): Likewise, and rename to cprop_alloc.
14543         (alloc_gcse_men, free_gcse_mem): Remove.
14544         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
14545         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
14546         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
14547
14548         * cprop.c (oprs_not_set_p): Remove.
14549         (mark_set, mark_clobber): Remove.
14550         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
14551         (reg_not_set_p): New function.
14552         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
14553         (cprop_insn): Likewise.
14554         (cprop_jump): Use FOR_EACH_EDGE.
14555
14556 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
14557
14558         PR bootstrap/48403
14559         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
14560         (rank_for_schedule): Use scheduled_insns vector instead of
14561         last_scheduled_insn.
14562         (ok_for_early_queue_removal): Likewise.
14563         (queue_to_ready): Search forward in nonscheduled_insns_begin if
14564         we have a dbg_cnt.
14565         (choose_ready): Likewise.
14566         (commit_schedule): Use VEC_iterate.
14567         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
14568         a dbg_cnt, use it and ensure the first insn is in the ready list.
14569         (haifa_sched_init): Allocate scheduled_insns.
14570         (sched_extend_ready_list): Don't allocate it; reserve space.
14571         (haifa_sched_finish): Free it.
14572
14573 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
14574
14575         * optc-gen.awk: Always remove type from Variable entry before
14576         recording in var_seen.
14577
14578 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
14579
14580         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
14581         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
14582         call to tidy_fallthru_edges.
14583
14584 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
14585
14586         * doc/options.texi (ToLower): Document.
14587         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
14588         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
14589         * opts.h (cl_option): Add cl_tolower field.
14590         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
14591         arguments with lowercase strings.
14592         * config/rx/rx.opt (mcpu=): Add ToLower.
14593         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
14594         argument.
14595
14596 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
14597
14598         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
14599
14600 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
14601
14602         * config/vax/vax.c: Include reload.h.
14603
14604 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
14605
14606         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
14607         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14608         (sparc_preferred_reload_class): New function.
14609
14610 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
14611
14612         PR debug/48401
14613         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14614         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
14615
14616 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
14617
14618         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
14619         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
14620
14621 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
14622
14623         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
14624         (ASM_OUTPUT_ALIGNED_BSS): Define.
14625
14626 2011-04-03  Michael Matz  <matz@suse.de>
14627
14628         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14629         and next_slot members.
14630         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14631         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14632         (lto_streamer_cache_append): Declare.
14633         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14634         unsigned index, remove offset parameter, ensure that we append
14635         or update existing entries.
14636         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14637         parameter, update next_slot for append.
14638         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14639         parameter.
14640         (lto_streamer_cache_insert_at): Likewise.
14641         (lto_streamer_cache_append): New function.
14642         (lto_streamer_cache_lookup): Use unsigned index.
14643         (lto_streamer_cache_get): Likewise.
14644         (lto_record_common_node): Don't test tree_node_can_be_shared.
14645         (preload_common_node): Adjust call to lto_streamer_cache_insert.
14646         (lto_streamer_cache_delete): Don't free offsets member.
14647         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14648         (lto_output_string_with_length): Use lto_output_data_stream.
14649         (lto_output_tree_header): Remove ix parameter, don't write it.
14650         (lto_output_builtin_tree): Likewise.
14651         (lto_write_tree): Adjust callers to above, don't track and write
14652         offset, write unsigned index.
14653         (output_unreferenced_globals): Don't emit all global vars.
14654         (write_global_references): Use unsigned indices.
14655         (lto_output_decl_state_refs): Likewise.
14656         (write_symbol): Likewise.
14657         * lto-streamer-in.c (lto_input_chain): Move earlier.
14658         (input_function): Use unsigned index.
14659         (input_alias_pairs): Don't read and then ignore all global vars.
14660         (lto_materialize_tree): Remove ix_p parameter, don't read index,
14661         don't pass it back, use lto_streamer_cache_append.
14662         (lto_register_var_decl_in_symtab): Use unsigned index.
14663         (lto_register_function_decl_in_symtab): Likewise.
14664         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14665         index.
14666         (lto_get_builtin_tree): Don't read index, use
14667         lto_streamer_cache_append.
14668         (lto_read_tree): Adjust call to lto_materialize_tree.
14669
14670         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14671         don't use function calls in arguments to MIN.
14672
14673         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14674         twice.
14675
14676         * gimple.c (gimple_type_leader_entry): Mark deletable.
14677
14678 2011-04-03  Alan Modra  <amodra@gmail.com>
14679
14680         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14681
14682 2011-04-03  Michael Matz  <matz@suse.de>
14683
14684         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14685         an integer.
14686         * tree.h (tree_decl_non_common.vindex): Adjust comment.
14687
14688 2011-04-03  Michael Matz  <matz@suse.de>
14689
14690         * cgraphbuild.c (record_reference): Canonicalize constructor values.
14691         * gimple-fold.c (canonicalize_constructor_val): Accept being called
14692         without function context.
14693         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14694         current_function_decl and cfun.
14695
14696 2011-04-03  Michael Matz  <matz@suse.de>
14697
14698         * tree.c (decl_init_priority_insert): Don't create entry for
14699         default priority.
14700         (decl_fini_priority_insert): Ditto.
14701         (fields_compatible_p, find_compatible_field): Remove.
14702         * tree.h (fields_compatible_p, find_compatible_field): Remove.
14703         * gimple.c (gimple_compare_field_offset): Adjust block comment.
14704
14705 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
14706
14707         * combine.c (try_combine): Remove useless local variable.
14708
14709 2011-04-03  Richard Guenther  <rguenther@suse.de>
14710             Ira Rosen  <ira.rosen@linaro.org>
14711
14712         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14713         non-variable offsets and compare the remaining bases of the two
14714         accesses instead of looking for exact same data-ref.
14715
14716 2011-04-02  Kai Tietz  <ktietz@redhat.com>
14717
14718         PR target/48416
14719         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14720
14721         * i386.c (ix86_is_msabi_thiscall): New helper function.
14722         (ix86_is_type_thiscall): New helper function.
14723         (ix86_comp_type_attributes): Handle thiscall for method-functions
14724         special.
14725         (init_cumulative_args): Likewise.
14726         (find_drap_reg): Likewise.
14727         (ix86_static_chain): Likewise.
14728         (x86_this_parameter): Likewise.
14729         (x86_output_mi_thunk): Likewise.
14730
14731 2011-04-01  Olivier Hainque  <hainque@adacore.com>
14732             Nicolas Setton  <setton@adacore.com>
14733             Eric Botcazou  <ebotcazou@adacore.com>
14734
14735         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14736         (add_gnat_descriptive_type_attribute): New function.
14737         (gen_array_type_die): Call it.
14738         (gen_enumeration_type_die): Likewise.
14739         (gen_struct_or_union_type_die): Likewise.
14740         (modified_type_die): Likewise.
14741         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14742         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14743         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14744
14745 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14746
14747         PR bootstrap/48148
14748         * dwarf2out.c (resolve_addr): Don't call force_decl_die
14749         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14750
14751         Revert:
14752         2011-03-17  Richard Guenther  <rguenther@suse.de>
14753
14754         PR bootstrap/48148
14755         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14756         origin for decls in other ltrans units.
14757         (input_varpool_node): Likewise.
14758
14759 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
14760
14761         PR middle-end/48335
14762         * expr.c (expand_assignment): Handle all possibilities
14763         if TO_RTX is CONCAT.
14764         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14765         (store_split_bit_field): If SUBREG_REG (op0) or
14766         op0 itself has smaller mode than word, return it
14767         for offset 0 and const0_rtx for out-of-bounds stores.
14768         If word is const0_rtx, skip it.
14769
14770 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
14771
14772         * config/h8300/h8300.c (print_operand_address): Rename to...
14773         (h8300_print_operand_address): ...this. Make static. Adjust comments.
14774         Call h8300_print_operand and h8300_print_operand_address instead of
14775         print_operand and print_operand_address. Declare.
14776         (print_operand): Renake to...
14777         (h8300_print_operand): ...this. Make static. Adjust comments.
14778         Call h8300_print_operand instead of print_operand. Declare.
14779         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14780         (h8300_register_move_cost): Likewise.
14781         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14782         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14783         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14784         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14785         * config/h8300/h8300-protos.h (print_operand): Delete.
14786         (print_operand_address): Delete.
14787
14788 2011-04-01  Richard Henderson  <rth@redhat.com>
14789
14790         PR 48400
14791         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14792         in strict mode before dwarf4.  Re-order tests to early out
14793         before switching sections.
14794
14795 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
14796
14797         * config/h8300/constraints.md: New file.
14798         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
14799         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14800         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14801         * config/h8300/predicates.md (bit_operand): Likewise.
14802         (incdec_operand): Use satisfies_constraint_M and
14803         satisfies_constraint_O.  Don't use C code block.
14804         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14805         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14806         (compute_mov_length): Use satisfies_constraint_G.
14807         (fix_bit_operand): Use satisfies_constraint_U.
14808         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14809         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14810         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14811         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14812         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14813         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14814         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14815         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14816         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14817         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14818         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14819         (EXTRA_MEMORY_CONSTRAINT): Delete.
14820
14821 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
14822             Michael Meissner  <meissner@linux.vnet.ibm.com>
14823
14824         PR target/48262
14825         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14826         operands, as per the specifications.
14827
14828         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14829         (vec_extract_evenv4sf): Ditto.
14830         (vec_extract_evenv8hi): Ditto.
14831         (vec_extract_evenv16qi): Ditto.
14832         (vec_extract_oddv4si): Ditto.
14833
14834 2011-03-31  Mark Wielaard  <mjw@redhat.com>
14835
14836         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14837         high_pc attribute if the CU has no associated code. Only output
14838         DW_AT_entry_pc for CU if not generating strict dwarf and
14839         dwarf_version < 4.
14840
14841 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
14842
14843         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14844         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14845         out of ...
14846         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14847         * final.c (final_start_function): Call the new function rather
14848         than using a NULL argument for dwarf2out_frame_debug.
14849
14850         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14851         that contains the prologue.
14852
14853         * haifa-sched.c (queue_insn): New arg REASON.  All callers
14854         changed.  Print it in debugging output.
14855
14856         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14857
14858         * sched-ebb.c (begin_schedule_ready): Remove second argument.
14859         Split most of the code into...
14860         (begin_move_insn): ... here.  New function.
14861         (ebb_sched_info): Add a pointer to it.
14862         * haifa-sched.c (scheduled_insns): New static variable.
14863         (sched_extend_ready_list): Allocate it.
14864         (schedule_block): Use it to record the order of scheduled insns.
14865         Perform RTL changes to move insns only after all scheduling
14866         decisions have been made.
14867         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14868         begin_move_insn field.
14869         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14870         * sched-int.h (struct haifa_sched_info): Remove second argument
14871         from begin_schedule_ready hook.  Add new member begin_move_insn.
14872         * sched-rgn.c (begin_schedule_ready): Remove second argument.
14873         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14874
14875         * haifa-sched.c (prune_ready_list): New function, broken out of
14876         schedule_block.
14877         (schedule_block): Use it.
14878
14879 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14880
14881         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14882
14883 2011-04-01  Kai Tietz  <ktietz@redhat.com>
14884
14885         * config.gcc (*-*-mingw*): Allow as option the
14886         posix threading model.
14887         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
14888         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14889         definition.
14890         (CPP_SPEC): Add pthread/no-pthread handling.
14891         (LIB_SPEC): Likewise.
14892         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14893         (LIB_SPEC): Likewise.
14894         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14895         flag to pass -pthread option for shared libgcc build.
14896         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14897         for shared libgcc build.
14898         * config/i386/t-mingw-pthread: New file.
14899         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14900         New define to enable use of library pthread by default.
14901         * config/i386/mingw.opt (pthread): New driver option.
14902         (no-pthread): New driver option.
14903         * config/i386/cygming.opt: Make sure trailing empty line is retained.
14904         * config/i386/mingw-w64.opt: Likewise.
14905
14906 2011-04-01  Gary Funck  <gary@intrepid.com>
14907
14908         * c-decl.c (grokdeclarator): Fix formatting.
14909
14910 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14911
14912         * expr.c (emit_block_move_via_movmem): Use n_generator_args
14913         instead of n_operands.
14914         (set_storage_via_setmem): Likewise.
14915         * optabs.c (maybe_gen_insn): Likewise.
14916         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14917         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14918         (mips_expand_builtin_direct): Likewise.
14919         * config/spu/spu.c (expand_builtin_args): Likewise.
14920
14921 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14922
14923         * recog.h (insn_data_d): Add n_generator_args.
14924         * genoutput.c (data): Likewise.
14925         (output_insn_data): Print it.
14926         (max_opno, num_dups): Delete.
14927         (scan_operands): Just fill in "d->operand[...]".
14928         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14929
14930 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
14931
14932         * gensupport.h (pattern_stats): New structure.
14933         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14934         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14935         (max_operand_1, max_operand_vec): Delete.
14936         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14937
14938 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
14939
14940         * emit-rtl.c (emit_pattern_after_setloc): New function.
14941         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14942         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14943         (emit_pattern_after): New function.
14944         (emit_insn_after, emit_jump_insn_after): Call it.
14945         (emit_call_insn_after, emit_debug_insn_after): Likewise.
14946         (emit_pattern_before_setloc): New function.
14947         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14948         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14949         Likewise.
14950         (emit_pattern_before): New function.
14951         (emit_insn_before, emit_jump_insn_before): Call it.
14952         (emit_call_insn_before, emit_debug_insn_before): Likewise.
14953
14954 2011-03-31  Richard Henderson  <rth@redhat.com>
14955
14956         * dwarf2out.c (dw_separate_line_info_ref): Remove.
14957         (dw_separate_line_info_entry): Remove.
14958         (enum dw_line_info_opcode): New.
14959         (dw_line_info_entry): Use it.
14960         (dw_line_info_table, dw_line_info_table_p): New.
14961         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14962         (line_info_table, line_info_label_num): Remove.
14963         (line_info_table_in_use): Remove.
14964         (separate_line_info_table): Remove.
14965         (separate_line_info_table_allocated): Remove.
14966         (separate_line_info_table_in_use): Remove.
14967         (LINE_INFO_TABLE_INCREMENT): Remove.
14968         (line_info_label_num): New.
14969         (cur_line_info_table): New.
14970         (text_section_line_info, cold_text_section_line_info): New.
14971         (separate_line_info): New.
14972         (SEPARATE_LINE_CODE_LABEL): Remove.
14973         (print_dwarf_line_table): Remove.
14974         (debug_dwarf): Don't dump it.
14975         (output_one_line_info_table): New.
14976         (output_line_info): Use it.
14977         (new_line_info_table): New.
14978         (set_cur_line_info_table): New.
14979         (dwarf2out_switch_text_section): Use it.
14980         (dwarf2out_begin_function): Likewise.
14981         (push_dw_line_info_entry): New.
14982         (dwarf2out_source_line): Rewrite for new line info tables.
14983         (dwarf2out_init): Remove dead initailizations.
14984
14985 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
14986
14987         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
14988         various flags.
14989         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14990         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14991         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14992         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14993         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14994         * opt-functions.awk (flag_init, switch_bit_fields): New.
14995         (switch_flags): Don't handle flags moved to bit-fields.  Don't
14996         generate CL_MISSING_OK or CL_SAVE.
14997         * optc-gen.awk: Update to generate bit-field output as well as
14998         flags field.
14999         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
15000         bit-field instead of CL_REJECT_DRIVER flag.
15001         * opts-common.c (generate_canonical_option,
15002         decode_cmdline_option): Use bit-fields instead of CL_* flags.
15003         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
15004         instead of CL_REJECT_NEGATIVE flag.
15005         * toplev.c (print_switch_values): Use cl_report bit-field instead
15006         of CL_REPORT flag.
15007
15008 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
15009
15010         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
15011         a zero minimum index only if it is redundant.
15012
15013 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
15014
15015         PR rtl-optimization/48381
15016         * ira-color.c (assign_hard_reg): Use hard reg set intersection
15017         instead of ira_class_hard_reg_index for calculating conflicting
15018         hard registers.
15019
15020 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
15021
15022         * cprop.c: Clean up hash table building.
15023         (reg_avail_info): Remove.
15024         (oprs_available_p): Remove.
15025         (record_last_reg_set_info): Remove.
15026         (record_last_set_info): Remove.
15027         (reg_available_p): New function.
15028         (gcse_constant_p): Do not treat unfolded conditions as constants.
15029         (make_set_regs_unavailable): New function.
15030         (hash_scan_set): Simplify with new reg_available_p.
15031         (compute_hash_table_work): Traverse insns stream only once.
15032         Do not compute reg_avail_info. Traverse insns in reverse order.
15033         Record implicit sets after recording explicit sets from the block.
15034
15035 2011-03-31  Michael Matz  <matz@suse.de>
15036
15037         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
15038
15039 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
15040
15041         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
15042         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
15043         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15044         (h8300_mode_dependent_address_p): New function.
15045         (h8300_get_index): Make static.
15046
15047 2011-03-31  Jeff Law  <law@redhat.com>
15048
15049         * reload1.c (elimination_effects): Fix typo in recent change.
15050
15051         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
15052         typo potentially leading to null pointer dereference.
15053
15054         * caller-save.c (new_saved_hard_reg): Eliminate return value.
15055         (setup_save_areas): Corresponding changes to avoid useless
15056         assignments.
15057
15058         * jump.c (reversed_comparison_code_parts): Avoid successive return
15059         statements when REVERSE_CONDITION is defined.
15060
15061         * expr.c (expand_assignment): Avoid useless assignments.
15062         (expand_expr_real_1): Likewise.
15063         (expand_expr_real_2): Avoid useless statements.
15064
15065         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
15066
15067         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15068
15069         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
15070         statements.
15071
15072         * stmt.c (expand_expr_stmt): Avoid useless assignment.
15073
15074 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
15075
15076         PR target/47109
15077         * doc/tm.texi.in (TARGET_VERSION): Remove.
15078         * doc/tm.texi: Regenerate.
15079         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
15080         * collect2.c (main): Don't use TARGET_VERSION.
15081         * mips-tdump.c (main): Don't use TARGET_VERSION.
15082         * mips-tfile.c (main): Don't use TARGET_VERSION.
15083         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
15084         * config/rs6000/vxworksae.h: Remove.
15085         * config/alpha/alpha.h (TARGET_VERSION): Remove.
15086         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
15087         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
15088         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
15089         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15090         * config/arm/arm.h (TARGET_VERSION): Remove.
15091         * config/arm/coff.h (TARGET_VERSION): Remove.
15092         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
15093         * config/arm/elf.h (TARGET_VERSION): Remove.
15094         * config/arm/freebsd.h (TARGET_VERSION): Remove.
15095         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
15096         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
15097         * config/arm/pe.h (TARGET_VERSION): Remove.
15098         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
15099         * config/arm/semi.h (TARGET_VERSION): Remove.
15100         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
15101         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
15102         * config/arm/vxworks.h (TARGET_VERSION): Remove.
15103         * config/avr/avr.h (TARGET_VERSION): Remove.
15104         * config/bfin/bfin.h (TARGET_VERSION): Remove.
15105         * config/fr30/fr30.h (TARGET_VERSION): Remove.
15106         * config/frv/frv.h (TARGET_VERSION): Remove.
15107         * config/h8300/h8300.h (TARGET_VERSION): Remove.
15108         * config/i386/cygwin.h (TARGET_VERSION): Remove.
15109         * config/i386/darwin.h (TARGET_VERSION): Remove.
15110         * config/i386/darwin64.h (TARGET_VERSION): Remove.
15111         * config/i386/djgpp.h (TARGET_VERSION): Remove.
15112         * config/i386/freebsd.h (TARGET_VERSION): Remove.
15113         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
15114         * config/i386/gnu.h (TARGET_VERSION): Remove.
15115         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
15116         * config/i386/i386elf.h (TARGET_VERSION): Remove.
15117         * config/i386/linux.h (TARGET_VERSION): Remove.
15118         * config/i386/linux64.h (TARGET_VERSION): Remove.
15119         * config/i386/lynx.h (TARGET_VERSION): Remove.
15120         * config/i386/mingw32.h (TARGET_VERSION): Remove.
15121         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
15122         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
15123         * config/i386/netware.h (TARGET_VERSION): Remove.
15124         * config/i386/nto.h (TARGET_VERSION): Remove.
15125         * config/i386/openbsd.h (TARGET_VERSION): Remove.
15126         * config/i386/vxworks.h (TARGET_VERSION): Remove.
15127         * config/ia64/elf.h (TARGET_VERSION): Remove.
15128         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
15129         * config/ia64/hpux.h (TARGET_VERSION): Remove.
15130         * config/ia64/linux.h (TARGET_VERSION): Remove.
15131         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15132         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
15133         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15134         * config/lm32/lm32.h (TARGET_VERSION): Remove.
15135         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
15136         * config/m32c/m32c.h (TARGET_VERSION): Remove.
15137         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
15138         * config/m32r/m32r.h (TARGET_VERSION): Remove.
15139         * config/m68k/linux.h (TARGET_VERSION): Remove.
15140         * config/m68k/m68k.h (TARGET_VERSION): Remove.
15141         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
15142         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
15143         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
15144         * config/mep/mep.h (TARGET_VERSION): Remove.
15145         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
15146         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15147         * config/mips/iris6.h (MACHINE_TYPE): Remove.
15148         * config/mips/linux.h (TARGET_VERSION): Remove.
15149         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
15150         * config/mips/vxworks.h (TARGET_VERSION): Remove.
15151         * config/mmix/mmix.h (TARGET_VERSION): Remove.
15152         * config/mn10300/linux.h (TARGET_VERSION): Remove.
15153         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
15154         * config/pa/pa.h (TARGET_VERSION): Remove.
15155         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
15156         * config/picochip/picochip.h (TARGET_VERSION): Remove.
15157         * config/rs6000/aix.h (TARGET_VERSION): Remove.
15158         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
15159         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
15160         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
15161         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
15162         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
15163         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
15164         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
15165         * config/rs6000/linux.h (TARGET_VERSION): Remove.
15166         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
15167         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
15168         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
15169         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
15170         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
15171         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
15172         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
15173         * config/s390/linux.h (TARGET_VERSION): Remove.
15174         * config/s390/s390.h (TARGET_VERSION): Remove.
15175         * config/s390/tpf.h (TARGET_VERSION): Remove.
15176         * config/score/score.h (TARGET_VERSION): Remove.
15177         * config/sh/linux.h (TARGET_VERSION): Remove.
15178         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
15179         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
15180         * config/sh/sh.h (TARGET_VERSION): Remove.
15181         * config/sh/sh64.h (TARGET_VERSION): Remove.
15182         * config/sh/superh.h (TARGET_VERSION): Remove.
15183         * config/sh/vxworks.h (TARGET_VERSION): Remove.
15184         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
15185         * config/sparc/linux.h (TARGET_VERSION): Remove.
15186         * config/sparc/linux64.h (TARGET_VERSION): Remove.
15187         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
15188         TARGET_NAME32, TARGET_NAME): Remove.
15189         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
15190         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
15191         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
15192         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
15193         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
15194         * config/spu/spu.h (TARGET_VERSION): Remove.
15195         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
15196         * config/v850/v850.h (TARGET_VERSION): Remove.
15197         * config/vax/linux.h (TARGET_VERSION): Remove.
15198         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
15199         * config/xtensa/elf.h (TARGET_VERSION): Remove.
15200         * config/xtensa/linux.h (TARGET_VERSION): Remove.
15201
15202 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
15203
15204         PR target/48142
15205         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
15206         frame-related from frame-unrelated adjustments to the stack pointer.
15207
15208 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
15209
15210         * common.opt (fdebug-types-section): Move earlier.
15211         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
15212
15213 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
15214
15215         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
15216         var.
15217
15218 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
15219
15220         * tree.h (CASE_CHAIN): Define.
15221         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
15222         (gimple_redirect_edge_and_branch): Likewise.
15223
15224 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15225
15226         PR middle-end/48367
15227         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
15228         calculation.
15229
15230 2011-03-30  Jeff Law  <law@redhat.com>
15231
15232         * PR bootstrap/48371
15233         * reload1.c (reload): Fix botch in last change.
15234
15235         * reload.h (struct reload): Fix typo introduced in last change.
15236
15237 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15238
15239         * config/arm/arm.opt (mhard-float, msoft-float): Mark
15240         Undocumented.  Remove help text.
15241         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
15242         -mhard-float.
15243
15244 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15245
15246         * doc/options.texi (NegativeAlias): Document.
15247         (Alias): Mention NegativeAlias.
15248         * opt-functions.awk: Handle NegativeAlias.
15249         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
15250         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
15251         * opts.h (CL_NEGATIVE_ALIAS): Define.
15252         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
15253         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
15254         OPT_mspe_.
15255         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
15256         Alias entries.
15257         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15258         mno-spe and mno-isel instead of mspe=no and -misel=no.
15259
15260 2011-03-29  Mark Wielaard  <mjw@redhat.com>
15261
15262         * common.opt (fdebug-types-section): New flag.
15263         * doc/invoke.texi: Document new -fno-debug-types-section flag.
15264         * dwarf2out.c (use_debug_types): New define.
15265         (struct die_struct): Mark die_id with GTY desc use_debug_types.
15266         (print_die): Guard output of type unit signatures using
15267         use_debug_types.
15268         (build_abbrev_table): Replace assert of dwarf_version >= 4
15269         with assert on use_debug_types.
15270         (size_of_die): Likewise.
15271         (unmark_dies): Likewise.
15272         (value_format): Decide AT_ref_external form on use_debug_types.
15273         (output_die): Replace dwarf_version version check guard with
15274         use_debug_types where appropriate.
15275         (modified_type_die): Likewise.
15276         (gen_reference_type_die): Likewise.
15277         (dwarf2out_start_source_file): Likewise.
15278         (dwarf2out_end_source_file): Likewise.
15279         (prune_unused_types_walk_attribs): Likewise.
15280         (dwarf2out_finish): Likewise.
15281
15282 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15283
15284         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
15285
15286 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15287
15288         PR rtl-optimization/48332
15289         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
15290         mode of input operand N and modeN to its actual mode.
15291
15292 2011-03-30  Jeff Law  <law@redhat.com>
15293
15294         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
15295         define accessor macro.
15296         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
15297         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
15298         (reg_equiv_init): Likewise.
15299         (reg_equivs_size): New variable.
15300         (reg_equiv_init_size): Remove.
15301         (allocate_initial_values): Move prototype to here from....
15302         * integrate.h (allocate_initial_values): Remove prototype.
15303         * integrate.c: Include reload.h.
15304         (allocate_initial_values): Corresponding changes.
15305         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
15306         (fix_reg_equiv_init, no_equiv): Corresponding changes.
15307         (update_equiv_regs): Corresponding changes.
15308         (ira): Corresponding changes.
15309         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
15310         (push_secondary_reload): Corresponding changes.
15311         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
15312         (make_memloc, find_reloads_address): Corresponding changes.
15313         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
15314         (find_reloads_address_1): Corresponding changes.
15315         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
15316         (refers_to_regno_for_reload_p): Corresponding changes.
15317         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
15318         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
15319         * reload1.c: Include ggc.h.
15320         (grow_reg_equivs): New function.
15321         (replace_pseudos_in, reload): Corresponding changes.
15322         (calculate_needs_all_insns, alter_regs): Corresponding changes.
15323         (eliminate_regs_1, elimination_effects): Corresponding changes.
15324         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
15325         (delete_output_reload): Likewise.
15326         * caller-save.c (mark_referenced_regs): Corresponding changes.
15327         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
15328         * frv/predicates.md (frv_load_operand): Corresponding changes.
15329         * microblaze/microblaze.c (double_memory_operand): Corresponding
15330         changes.
15331         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
15332         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
15333         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
15334         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
15335         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
15336         changes.
15337         * pa/pa.c (emit_move_sequence): Corresponding changes.
15338         * vax/vax.c (nonindexed_address_p): Corresponding changes.
15339
15340 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15341
15342         PR target/47551
15343         * config/arm/arm.c (coproc_secondary_reload_class): Handle
15344         structure modes.  Don't check neon_vector_mem_operand for
15345         vector or structure modes.
15346
15347 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
15348             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15349
15350         PR target/43590
15351         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
15352         operand 1 and reshuffle the operands to match.
15353         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
15354
15355 2011-03-30  Christian Schüler  <cschueler@gmx.de>
15356
15357         PR driver/48208
15358         * config/c.opt (F): Added 'Driver' to -F option.
15359
15360         PR driver/48260
15361         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
15362           handler function.
15363         * config/darwin.opt: Added '-arch' option.
15364
15365 2011-03-30  Nick Clifton  <nickc@redhat.com>
15366
15367         * config/rx/rx.md: Add peepholes and patterns to combine
15368         extending loads and simple arithmetic instructions.
15369         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
15370         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
15371         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
15372         modes to use pre-decrement and post-increment addressing.
15373         (rx_is_restricted_memory_address): Add range checking of REG+INT
15374         addresses.
15375         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
15376         (rx_memory_move_cost): Adjust cost of stores.
15377         (rx_adjust_insn_length): New function.
15378
15379 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
15380
15381         PR c/48305
15382         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15383         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
15384         matching arg00/arg01 types.
15385
15386 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
15387
15388         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
15389         last_location to UNKNOWN_LOCATION.
15390
15391 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
15392
15393         PR target/48349
15394         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
15395         FLOAT_SSE_REGS.
15396
15397 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
15398             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15399
15400         PR bootstrap/48337
15401         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
15402         Init(PROCESSOR_V7).
15403         (sparc_cpu): Likewise.
15404         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
15405         PROCESSOR_V7.
15406
15407 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15408
15409         PR target/48336
15410         PR middle-end/48342
15411         PR rtl-optimization/48345
15412         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
15413         hard regs for given mode from profitable regs when doing secondary
15414         allocation.
15415
15416 2011-03-29  Jeff Law  <law@redhat.com>
15417
15418         PR bootstrap/48327
15419         * tree-ssa-threadupdate.c (struct redirection_data): Remove
15420         do_not_duplicate field.
15421         (lookup_redirection_data): Corresponding changes.
15422         (create_duplicates): Always create a template block.
15423         (redirect_edges): Remove code which reused the original block
15424         when it was going to become unreachable code.
15425         (thread_block): Don't set do_not_duplicate field.
15426
15427 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
15428
15429         * lto-opts.c (register_user_option_p, lto_register_user_option):
15430         Make type argument unsigned.
15431         * lto-streamer.h (lto_register_user_option): Make type argument
15432         unsigned.
15433         * opth-gen.awk: Make CL_* macros unsigned.
15434         * opts-common.c (find_opt): Make lang_mask argument unsigned.
15435         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
15436         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
15437         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
15438         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
15439         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
15440         (find_opt): Make lang_mask argument unsigned.
15441
15442 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15443
15444         PR rtl-optimization/48331
15445         PR rtl-optimization/48334
15446         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
15447         for any used algorithm.
15448
15449 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15450
15451         * ira-conflicts.c (build_object_conflicts): Add unused attribute
15452         to parent_max.
15453
15454 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
15455
15456         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
15457         (alpha_option_override): Don't set alpha_sr_alias_set.
15458         (emit_frame_store_1): Use gen_frame_mem rather than calling
15459         set_mem_alias_set.
15460         (alpha_expand_epilogue): Ditto.
15461
15462 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
15463
15464         PR tree-optimization/48290
15465         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
15466         vectorization, check that relevant phis in the basic block after
15467         the inner loop are really inner loop's exit phis.
15468
15469 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
15470
15471         PR debug/48190
15472         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
15473         (cached_dw_loc_list_def): New structure.
15474         (cached_dw_loc_list): New typedef.
15475         (cached_dw_loc_list_table): New variable.
15476         (cached_dw_loc_list_table_hash): New function.
15477         (cached_dw_loc_list_table_eq): Likewise.
15478         (add_location_or_const_value_attribute): Take a bool cache_p.
15479         Cache the list when the parameter is true.
15480         (gen_formal_parameter_die): Update caller.
15481         (gen_variable_die): Likewise.
15482         (dwarf2out_finish): Likewise.
15483         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
15484         while generating debug info for the decl.
15485         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
15486         (dwarf2out_init): Initialize cached_dw_loc_list_table.
15487         (resolve_addr): Cache the result of resolving a chain of
15488         location lists.
15489
15490 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
15491
15492         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
15493         conflict object hard regset nodes have intersecting hard reg sets.
15494
15495         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
15496         after regstat_init_n_sets_and_refs.
15497
15498         * ira.c: Add more comments at the top.
15499         (setup_stack_reg_pressure_class, setup_pressure_classes):
15500         Add comments how we compute the register pressure classes.
15501         (setup_allocno_and_important_classes): Add more comments.
15502         (setup_class_translate_array, reorder_important_classes)
15503         (setup_reg_class_relations): Add comments.
15504
15505         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
15506         start of the file.
15507
15508         * ira-color.c: Add 2011 to the Copyright line.
15509         (assign_hard_reg):  Add more comments.
15510         (improve_allocation): Ditto.
15511
15512         * ira-costs.c: Add 2011 to the Copyright line.
15513         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
15514         comments.
15515         (setup_regno_cost_classes_by_mode): Ditto.
15516
15517         Initial patches from ira-improv branch:
15518
15519         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
15520
15521         * ira-build.c (ira_create_object): Remove initialization of
15522         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
15523         (ira_create_allocno): Remove initialization of
15524         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
15525         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
15526         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15527         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
15528         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
15529         Initialize ALLOCNO_ADD_DATA.
15530         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
15531         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
15532         ALLOCNO_REG.
15533         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
15534         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
15535
15536         * ira.c (ira_reallocate): Remove.
15537         (setup_pressure_classes): Call
15538         ira_init_register_move_cost_if_necessary.  Use
15539         ira_register_move_cost instead of ira_get_register_move_cost.
15540         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
15541         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
15542
15543         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
15544         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15545         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
15546         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
15547         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
15548         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
15549         Fix formatting.
15550         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
15551         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15552         (struct allocno_color_data): New.
15553         (allocno_color_data_t): New typedef.
15554         (allocno_color_data): New definition.
15555         (ALLOCNO_COLOR_DATA): New macro.
15556         (struct object_color_data): New.
15557         (object_color_data_t): New typedef.
15558         (object_color_data): New definition.
15559         (OBJECT_COLOR_DATA): New macro.
15560         (update_copy_costs, calculate_allocno_spill_cost): Call
15561         ira_init_register_move_cost_if_necessary.  Use
15562         ira_register_move_cost instead of ira_get_register_move_cost.
15563         (move_spill_restore, update_curr_costs): Ditto.
15564         (allocno_spill_priority): Make it inline.
15565         (color_pass): Allocate and free allocno_color_dat and object_color_data.
15566         (struct coalesce_data, coalesce_data_t): New.
15567         (allocno_coalesce_data): New definition.
15568         (ALLOCNO_COALESCE_DATA): New macro.
15569         (merge_allocnos, coalesced_allocno_conflict_p): Use
15570         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
15571         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
15572         (coalesce_allocnos): Ditto.
15573         (setup_coalesced_allocno_costs_and_nums): Ditto.
15574         (collect_spilled_coalesced_allocnos): Ditto.
15575         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
15576         (setup_slot_coalesced_allocno_live_ranges): Ditto.
15577         (coalesce_spill_slots): Ditto.
15578         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
15579         free allocno_coalesce_data.
15580
15581         * ira-conflicts.c: Fix formatting.
15582         (process_regs_for_copy): Call
15583         ira_init_register_move_cost_if_necessary.  Use
15584         ira_register_move_cost instead of ira_get_register_move_cost.
15585         (build_object_conflicts): Optimize.
15586
15587         * ira-costs.c (record_reg_classes): Optimize.  Call
15588         ira_init_register_move_cost_if_necessary.  Use
15589         ira_register_move_cost, ira_may_move_in_cost, and
15590         ira_may_move_out_cost instead of ira_get_register_move_cost and
15591         ira_get_may_move_cost.
15592         (record_address_regs): Ditto.
15593         (scan_one_insn): Optimize.
15594         (find_costs_and_classes): Optimize.
15595         (process_bb_node_for_hard_reg_moves): Call
15596         ira_init_register_move_cost_if_necessary.  Use
15597         ira_register_move_cost instead of ira_get_register_move_cost.
15598
15599         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
15600         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
15601         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
15602         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
15603         definitions.
15604         (ira_initiate_emit_data, ira_finish_emit_data)
15605         (create_new_allocno): New functions.
15606         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
15607         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
15608         Use ira_register_move_cost instead of ira_get_register_move_cost.
15609
15610         * ira-int.h: Fix some comments.
15611         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
15612         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15613         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
15614         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
15615         add_data.
15616         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
15617         bitfield after mode.  Make hard_regno a short int.  Make
15618         hard_regno short.  Remove first_coalesced_allocno and
15619         next_coalesced_allocno.  Move mem_optimized_dest_p,
15620         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
15621         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
15622         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
15623         temp, colorable_p.  Add new member add_data.
15624         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
15625         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15626         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15627         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15628         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15629         (ALLOCNO_ADD_DATA): New macro.
15630         (ira_emit_data_t): New typedef.
15631         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
15632         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15633         from struct ira_allocno.
15634         (ALLOCNO_EMIT_DATA): New macro.
15635         (ira_allocno_emit_data, allocno_emit_reg): New.
15636         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
15637         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
15638         (OBJECT_ADD_DATA): New macro.
15639         (ira_reallocate): Remove.
15640         (ira_initiate_emit_data, ira_finish_emit_data): New.
15641         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15642         (ira_init_register_move_cost_if_necessary): New.
15643         (ira_object_conflict_iter_next): Merge into
15644         ira_object_conflict_iter_cond.
15645         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
15646
15647         * ira-live.c (process_single_reg_class_operands): Call
15648         ira_init_register_move_cost_if_necessary.  Use
15649         ira_register_move_cost instead of ira_get_register_move_cost.
15650
15651         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
15652
15653         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15654
15655         * ira-costs.c: Fix formatting.
15656         (cost_classes, cost_classes_num): Remove.
15657         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15658         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15659         (cost_classes_del, cost_classes_htab): New.
15660         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15661         (initiate_regno_cost_classes, setup_cost_classes): New.
15662         (setup_regno_cost_classes_by_aclass): New.
15663         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15664         (record_reg_classes): Use regno_cost_classes instead of
15665         cost_classes.  Move checking opposite operand up.
15666         (record_address_regs): Use regno_cost_classes
15667         instead of cost_classes.
15668         (scan_one_insn): Ditto.  Use always general register.
15669         (print_allocno_costs): Use regno_cost_classes instead of
15670         cost_classes.
15671         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
15672         (find_costs_and_classes): Set up cost classes for each registers.
15673         Use also their mode for this.  Use regno_cost_classes instead of
15674         cost_classes.
15675         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15676         cost_classes.
15677         (free_ira_costs, ira_init_costs): Don't use cost_classes.
15678         (ira_costs, ira_set_pseudo_classes): Call
15679         initiate_regno_cost_classes and finish_regno_cost_classes.
15680
15681         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
15682
15683         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15684
15685         * target.def (ira_cover_classes): Remove.
15686
15687         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15688
15689         * doc/tm.texi.in: Ditto.
15690
15691         * ira-conflicts.c: Remove mentioning cover classes from the file.
15692         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
15693         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
15694
15695         * targhooks.c (default_ira_cover_classes): Remove.
15696
15697         * targhooks.h (default_ira_cover_classes): Ditto.
15698
15699         * haifa-sched.c: Remove mentioning cover classes from the file.
15700         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15701         ira_pressure_classes and ira_pressure_classes_num instead of
15702         ira_reg_class_cover_size and ira_reg_class_cover.  Use
15703         sched_regno_pressure_class instead of sched_regno_cover_class.
15704         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15705         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15706
15707         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
15708         classes from the file.
15709         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15710         (struct object_hard_regs, struct object_hard_regs_node): New.
15711         (struct ira_object): New members profitable_hard_regs,
15712         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15713         (struct ira_allocno): Rename cover_class to aclass.  Rename
15714         cover_class_cost and updated_cover_class_cost to class_cost and
15715         updated_class_cost.  Remove splay_removed_p and
15716         left_conflict_size.  Add new members colorable_p.
15717         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15718         (ALLOCNO_COLORABLE_P): New macro.
15719         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15720         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15721         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15722         (OBJECT_...): Rename parameter C to O.
15723         (OBJECT_PROFITABLE_HARD_REGS): New macro.
15724         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15725         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15726         (struct target_ira_int): New members x_ira_max_memory_move_cost,
15727         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15728         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15729         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15730         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
15731         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
15732         x_ira_reg_class_subunion.
15733         (ira_max_memory_move_cost, ira_max_register_move_cost)
15734         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15735         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15736         (ira_important_class_nums, ira_reg_class_superunion): New macros.
15737         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15738         (ira_reg_class_union): Rename to ira_reg_class_subunion.
15739         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15740         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15741         (ira_tune_allocno_costs_and_cover_classes): Rename to
15742         ira_tune_allocno_costs.
15743         (ira_debug_hard_regs_forest): New.
15744         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15745         (ira_object_conflict_iter_next): Fix comments.
15746         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15747         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15748         cover_class to aclass.
15749         (ira_allocate_and_accumulate_costs): Ditto.
15750         (ira_allocate_and_set_or_copy_costs): Ditto.
15751
15752         * opts.c (decode_options): Remove ira_cover_class check.
15753
15754         * ira-color.c: Remove mentioning cover classes from the file.  Use
15755         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15756         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15757         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15758         (splay-tree.h): Remove include.
15759         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15760         before copy_freq_compare_func.
15761         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15762         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15763         New definitions.
15764         (hard_regs_roots, hard_regs_node_vec): Ditto.
15765         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15766         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15767         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15768         (create_new_object_hard_regs_node): Ditto.
15769         (add_new_object_hard_regs_node_to_forest): Ditto.
15770         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15771         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15772         Ditto.
15773         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15774         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15775         (remove_unused_object_hard_regs_nodes): Ditto.
15776         (enumerate_object_hard_regs_nodes): Ditto.
15777         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15778         (object_hard_regs_subnode_t): Ditto.
15779         (struct object_hard_regs_subnode): Ditto.
15780         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15781         (setup_object_hard_regs_subnode_index): Ditto.
15782         (get_object_hard_regs_subnodes_num): Ditto.
15783         (form_object_hard_regs_nodes_forest): Ditto.
15784         (finish_object_hard_regs_nodes_tree): Ditto.
15785         (finish_object_hard_regs_nodes_forest): Ditto.
15786         (allocnos_have_intersected_live_ranges_p): Rename to
15787         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15788         (pseudos_have_intersected_live_ranges_p): Rename to
15789         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
15790         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15791         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15792         (update_copy_costs): Remove assert.  Skip cost update if the hard
15793         reg does not belong the class.
15794         (assign_hard_reg): Process only profitable hard regs.
15795         (uncolorable_allocnos_num): Make it scalar.
15796         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15797         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15798         and ira_reg_class_max_nregs.
15799         (bucket_allocno_compare_func): Check frequency first.
15800         (sort_bucket): Add compare function as a parameter.
15801         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15802         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15803         (push_allocno_to_stack): Rewrite for checking new allocno
15804         colorability.
15805         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
15806         (push_only_colorable): Pass new parameter to sort_bucket.
15807         (push_allocno_to_spill): Remove.
15808         (allocno_spill_priority_compare): Make it inline and rewrite.
15809         (splay_tree_allocate, splay_tree_free): Remove.
15810         (allocno_spill_sort_compare): New function.
15811         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
15812         build and use splay tree.  Choose first allocno in uncolorable
15813         allocno bucket to spill.  Remove setting spill cost.
15814         (all_conflicting_hard_regs): Remove.
15815         (setup_allocno_available_regs_num): Check only profitable hard
15816         regs.  Print info about hard regs nodes.
15817         (setup_allocno_left_conflicts_size): Remove.
15818         (put_allocno_into_bucket): Don't call
15819         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
15820         (improve_allocation): New.
15821         (color_allocnos): Call setup_profitable_hard_regs,
15822         form_object_hard_regs_nodes_forest, improve_allocation,
15823         finish_object_hard_regs_nodes_forest.  Setup spill cost.
15824         (print_loop_title): Use pressure classes.
15825         (color_allocnso): Ditto.
15826         (do_coloring): Remove allocation and freeing splay_tree_node_pool
15827         and allocnos_for_spilling.
15828         (ira_sort_regnos_for_alter_reg): Don't setup members
15829         {first,next}_coalesced_allocno.
15830         (color): Remove allocating and freeing removed_splay_allocno_vec.
15831         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15832         prohibited_class_mode_regs.
15833
15834         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
15835         formatting.
15836         (update_allocno_pressure_excess_length): Use pressure classes.
15837         (inc_register_pressure, dec_register_pressure): Check for pressure
15838         class.
15839         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15840         pressure class.  Use ira_reg_class_nregs instead of
15841         ira_reg_class_max_nregs.
15842         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15843         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15844         (single_reg_class): Use ira_reg_class_nregs instead of
15845         ira_reg_class_max_nregs.
15846         (process_bb_node_lives): Use pressure classes.
15847
15848         * ira-emit.c: Remove mentioning cover classes from the file.  Use
15849         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15850         (change_loop): Use pressure classes.
15851         (modify_move_list): Call ira_set_allocno_class instead of
15852         ira_set_allocno_cover_class.
15853
15854         * ira-build.c: Remove mentioning cover classes from the file.  Use
15855         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15856         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
15857         ALLOCNO_UPDATED_CLASS_COST instead of
15858         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
15859         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15860         (ira_create_allocno): Remove initialization of
15861         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
15862         ALLOCNO_COLORABLE_P.
15863         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15864         Update conflict regs for the objects.
15865         (create_cap_allocno): Remove assert.  Don't propagate
15866         ALLOCNO_AVAILABLE_REGS_NUM.
15867         (ira_free_allocno_costs): New function.
15868         (finish_allocno): Change a part of code into call of
15869         ira_free_allocno_costs.
15870         (low_pressure_loop_node_p): Use pressure classes.
15871         (object_range_compare_func): Don't compare classes.
15872         (setup_min_max_conflict_allocno_ids): Ditto.
15873
15874         * loop-invariant.c: Remove mentioning cover classes from the file.
15875         Use ira_pressure_classes and ira_pressure_classes_num instead of
15876         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
15877         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15878         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15879         Use reg_allocno_class instead of reg_cover_class.
15880         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15881         STACK_REG_COVER_CLASS.
15882         (get_regno_cover_class): Rename to get_regno_pressure_class.
15883         (move_loop_invariants): Initialize and finalize regstat.
15884
15885         * ira.c: Remove mentioning cover classes from the file.  Add
15886         comments about coloring without cover classes.  Use ALLOCNO_CLASS
15887         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
15888         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15889         setup_class_subset_and_memory_move_costs.
15890         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15891         (setup_cover_and_important_classes): Rename to
15892         setup_allocno_and_important_classes.
15893         (setup_class_translate_array): New.
15894         (setup_class_translate): Call it for allocno and pressure classes.
15895         (cover_class_order): Rename to allocno_class_order.
15896         (comp_reg_classes_func): Use ira_allocno_class_translate instead
15897         of ira_class_translate.
15898         (reorder_important_classes): Set up ira_important_class_nums.
15899         (setup_reg_class_relations): Set up ira_reg_class_superunion.
15900         (print_class_cover): Rename to print_classes.  Add parameter.
15901         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15902         Print pressure classes too.
15903         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
15904         setup_reg_subclasses.
15905         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15906         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15907         (setup_prohibited_class_mode_regs): Use
15908         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15909         (clarify_prohibited_class_mode_regs): New function.
15910         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15911         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15912         (ira_init_once): Initialize them.
15913         (free_register_move_costs): Process them.
15914         (ira_init): Move calls of find_reg_classes and
15915         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15916         Call clarify_prohibited_class_mode_regs.
15917         (ira_no_alloc_reg): Remove.
15918         (too_high_register_pressure_p): Use pressure classes.
15919
15920         * sched-deps.c: Remove mentioning cover classes from the file.
15921         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
15922         ira_pressure_classes and ira_pressure_classes_num instead of
15923         ira_reg_class_cover_size and ira_reg_class_cover.
15924         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15925         sched_regno_pressure_class instead of sched_regno_cover_class.
15926         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
15927         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15928
15929         * ira.h: Add 2010 to Copyright.
15930         (ira_no_alloc_reg): Remove external.
15931         (struct target_ira): Rename x_ira_hard_regno_cover_class,
15932         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15933         x_ira_class_translate to x_ira_hard_regno_allocno_class,
15934         x_ira_allocno_classes_num, x_ira_allocno_classes, and
15935         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
15936         x_ira_pressure_classes, x_ira_pressure_class_translate, and
15937         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
15938         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
15939         x_ira_no_alloc_regs.
15940         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15941         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15942         ira_allocno_classes_num and ira_allocno_classes.
15943         (ira_class_translate): Rename to ira_allocno_class_translate.
15944         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15945         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15946         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15947         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15948         (ira_no_alloc_regs): New.
15949
15950         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
15951         classes from the file.  Use ALLOCNO_CLASS instead of
15952         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
15953         ALLOCNO_COVER_CLASS_COST.
15954         (regno_cover_class): Rename to regno_aclass.
15955         (record_reg_classes): Use ira_reg_class_subunion instead of
15956         ira_reg_class_union.
15957         (record_address_regs): Check overflow.
15958         (scan_one_insn): Ditto.
15959         (print_allocno_costs): Print total mem cost fore regional allocation.
15960         (print_pseudo_costs): Use REG_N_REFS.
15961         (find_costs_and_classes): Use classes intersected with them on the
15962         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
15963         ira_reg_class_union.  Use ira_allocno_class_translate and
15964         regno_aclass instead of ira_class_translate and regno_cover_class.
15965         Modify code for finding regno_aclass.  Setup preferred classes for
15966         the next pass.
15967         (setup_allocno_cover_class_and_costs): Rename to
15968         setup_allocno_class_and_costs.  Use regno_aclass instead of
15969         regno_cover_class.  Use ira_set_allocno_class instead of
15970         ira_set_allocno_cover_class.
15971         (init_costs, finish_costs): Use regno_aclass instead of
15972         regno_cover_class.
15973         (ira_costs): Use setup_allocno_class_and_costs instead of
15974         setup_allocno_cover_class_and_costs.
15975         (ira_tune_allocno_costs_and_cover_classes): Rename to
15976         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
15977         by processing objects.  Use ira_reg_class_max_nregs instead of
15978         ira_reg_class_nregs.
15979
15980         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15981
15982         * sched-int.h: Remove mentioning cover classes from the file.
15983         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15984
15985         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
15986         classes from the file.
15987         (struct reg_pref): Rename coverclass into allocnoclass.
15988         (reg_cover_class): Rename to reg_allocno_class.
15989
15990         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15991
15992         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15993
15994         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15995
15996         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15997
15998         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15999
16000         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
16001
16002         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
16003
16004         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
16005
16006         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
16007
16008         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
16009
16010         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
16011         (i386_ira_cover_classes): Ditto.
16012
16013         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
16014
16015         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
16016
16017         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
16018
16019         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
16020
16021         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
16022
16023         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
16024
16025         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
16026         (mips_ira_cover_classes): Ditto.
16027
16028         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
16029
16030         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
16031
16032         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
16033
16034         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
16035
16036         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
16037
16038         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
16039         (IRA_COVER_CLASSES_VSX): Ditto.
16040
16041         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
16042         (rs6000_ira_cover_classes): Ditto.
16043
16044         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
16045
16046         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
16047
16048         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
16049
16050         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
16051
16052         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
16053
16054         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
16055
16056         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
16057
16058         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
16059
16060         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
16061
16062         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
16063
16064 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
16065
16066         PR debug/48253
16067         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
16068         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
16069         dw_fde_unlikely_section_end_label, cold_in_std_section,
16070         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
16071         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
16072         fields.
16073         (output_fde): Use dw_fde_second_{begin,end} if second is
16074         true, otherwise dw_fde_{begin,end}.
16075         (output_call_frame_info): Test dw_fde_second_begin != NULL
16076         instead of dw_fde_switched_sections.
16077         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
16078         fields, initialize new fields.  Initialize in_std_section
16079         unconditionally from the first partition.
16080         (dwarf2out_end_epilogue): Don't override dw_fde_end when
16081         dw_fde_second_begin is non-NULL.
16082         (dwarf2out_switch_text_section): Stop initializing removed
16083         dw_fde_struct fields, initialize new fields, initialize
16084         also dw_fde_end here.  Set dw_fde_switch_cfi even when
16085         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
16086         (struct var_loc_list_def): Add last_before_switch field.
16087         (arange_table, arange_table_allocated, arange_table_in_use,
16088         ARANGE_TABLE_INCREMENT, add_arange): Removed.
16089         (size_of_aranges): Count !in_std_section and !second_in_std_section
16090         hunks in fdes, instead of looking at arange_table_in_use.
16091         (output_aranges): Add aranges_length argument, don't call
16092         size_of_aranges here.  Instead of using aranges_table*
16093         emit ranges for fdes when !in_std_section resp.
16094         !second_in_std_section.
16095         (dw_loc_list): Break ranges crossing section switch.
16096         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
16097         use dw_fde_second_end instead of dw_fde_end as end of last range.
16098         (gen_subprogram_die): Don't call add_arange.  Use
16099         dw_fde_{begin,end} for first partition and if switched
16100         section dw_fde_second_{begin,end} for the second.
16101         (var_location_switch_text_section_1,
16102         var_location_switch_text_section): New functions.
16103         (dwarf2out_begin_function): Initialize cold_text_section even
16104         when function_section () isn't text_section.
16105         (prune_unused_types): Don't walk arange_table.
16106         (dwarf2out_finish): Don't needlessly test
16107         flag_reorder_blocks_and_partition when testing cold_text_section_used.
16108         If info_section_emitted, call size_of_aranges and if it indicates
16109         non-empty .debug_aranges, call output_aranges with the computed
16110         size.  Stop using removed dw_fde_struct fields, use
16111         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
16112         for second.
16113
16114         PR debug/48203
16115         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
16116         create ENTRY_VALUE if incoming or address of incoming's MEM
16117         is a hard REG.
16118         * dwarf2out.c (mem_loc_descriptor): Don't emit
16119         DW_OP_GNU_entry_value of DW_OP_fbreg.
16120         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
16121         on ENTRY_VALUE is able to find the canonical parameter VALUE.
16122         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
16123         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
16124         ENTRY_VALUE_EXPs.
16125         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
16126         is a REG_P or MEM_P with REG_P address, compute hash directly
16127         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
16128         (preserve_only_constants): Don't clear VALUES forwaring
16129         ENTRY_VALUE to some other VALUE.
16130
16131 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
16132
16133         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
16134         instead of GEN_INT.
16135
16136 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16137
16138         * cfgexpand.c (expand_gimple_cond): Always set the source location and
16139         block before expanding the statement.
16140         (expand_gimple_stmt_1): Likewise.  Set them here...
16141         (expand_gimple_stmt): ...and not here.  Tidy.
16142         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
16143         unknown.
16144
16145 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
16146
16147         * Makefile.in: New rule for cprop.o.
16148         * gcse.c: Move constant/copy propagation to cprop.c.
16149         (compute_local_properties): Only handle expression tables.
16150         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
16151         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
16152         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
16153         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
16154         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
16155         compute_cprop_data, find_used_regs, try_replace_reg,
16156         find_avail_set, cprop_jump, constprop_register, cprop_insn,
16157         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
16158         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
16159         find_bypass_set, reg_killed_on_edge, bypass_block,
16160         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
16161         execute_rtl_cprop, pass_rtl_cprop): Move to...
16162         * cprop.c: ...here.  New file, constant/copy propagation for RTL
16163         moved from gcse.c to here with minor cleanups in duplicated code.
16164
16165 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
16166
16167         * config/i386/i386.c (flag_opts): Fix a typo in
16168         -mavx256-split-unaligned-store.
16169
16170 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
16171
16172         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16173         LIBCALL_VALUE): Remove macros.
16174         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16175         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16176         (h8300_function_value, h8300_libcall_value,
16177         h8300_function_value_regno_p): New functions.
16178
16179 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
16180
16181         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
16182
16183 2011-03-28  Jeff Law  <law@redhat.com>
16184
16185         * tree-ssa-threadupdate.c (redirect_edges): Call
16186         create_edge_and_update_destination_phis as needed.
16187         (create_edge_and_update_destination_phis): Accept new BB argument.
16188         All callers updated.
16189         (thread_block): Do not update the profile when threading around
16190         intermediate blocks.
16191         (thread_single_edge): Likewise.
16192         (determine_bb_domination_status): If BB is not a successor of the
16193         loop header, return NONDOMINATING.
16194         (register_jump_thread): Note when we register a jump thread around
16195         an intermediate block.
16196         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
16197         (thread_across_edge): Use it.
16198
16199 2011-03-28  Tristan Gingold  <gingold@adacore.com>
16200
16201         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
16202         when for_return is 2.
16203
16204 2011-03-28  Jeff Law  <law@redhat.com>
16205
16206         * var-tracking.c (canonicalize_values_mark): Delete unused
16207         lhs assignment.
16208         (canonicalize_values_star, set_variable_part): Likewise.
16209         (clobber_variable_part, delete_variable_part): Likewise.
16210
16211 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
16212
16213         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
16214
16215 2011-03-28  Martin Jambor  <mjambor@suse.cz>
16216
16217         * tree-inline.c (expand_call_inline): Do not check that destination
16218         node is analyzed.
16219         (optimize_inline_calls): Assert that destination node is analyzed.
16220         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
16221         not call tree_lowering_passes.
16222         * cgraph.h (cgraph_analyze_function): Declare.
16223         * cgraphunit.c (cgraph_analyze_function): Make public.
16224
16225 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
16226
16227         * config/sparc/sparc-opts.h: New.
16228         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
16229         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
16230         (sparc_option_override): Store processor_type enumeration rather
16231         than string in cpu_default.  Remove name and enumeration from
16232         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
16233         without using sparc_select.  Use target_flags_explicit instead of
16234         fpu_option_set.
16235         * config/sparc/sparc.h (enum processor_type): Move to
16236         sparc-opts.h.
16237         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
16238         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
16239         HeaderInclude entry.
16240         (mcpu=, mtune=): Use Var and Enum.
16241         (sparc_processor_type): New Enum and EnumValue entries.
16242
16243 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16244             Iain Sandoe  <iains@gcc.gnu.org>
16245
16246         PR target/48245
16247         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
16248
16249 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
16250
16251         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
16252         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
16253         Insert new statements at it in lieu of STMT.
16254         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
16255         * tree-vect-stmts.c (vectorizable_store): Likewise.
16256         (vectorizable_load): Likewise.
16257
16258 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
16259
16260         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
16261         (divtf3): Ditto.
16262         (multf3): Ditto.
16263         (subtf3): Ditto.
16264
16265 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16266
16267         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
16268         unaligned 256bit load/store.
16269         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
16270         (*avx_movdqu<avxmodesuffix>): Likewise.
16271
16272 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16273
16274         PR target/48288
16275         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
16276         * config/pa/pa.md (iordi3): Use new predicate in expander.
16277         (iorsi3): Likewise.
16278
16279 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
16280
16281         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
16282         FUNCTION_VALUE_REGNO_P): Remove macros.
16283         * config/mips/mips-protos.h (mips_function_value): Remove.
16284         * config/mips/mips.c (mips_function_value): Rename to...
16285         (mips_function_value_1): ... this. Make static.  Handle receiving
16286         the function type in 'fn_decl_or_type' argument.
16287         (mips_function_value, mips_libcall_value,
16288         mips_function_value_regno_p): New function.
16289         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16290         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16291
16292 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16293
16294         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
16295         and -mavx256-split-unaligned-store.
16296         (ix86_option_override_internal): Split 32-byte AVX unaligned
16297         load/store by default.
16298         (ix86_avx256_split_vector_move_misalign): New.
16299         (ix86_expand_vector_move_misalign): Use it.
16300
16301         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
16302         -mavx256-split-unaligned-store.
16303
16304         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
16305         256bit load/store.  Generate unaligned store on misaligned memory
16306         operand.
16307         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
16308         256bit load/store.
16309         (*avx_movdqu<avxmodesuffix>): Likewise.
16310
16311         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
16312         -mavx256-split-unaligned-store.
16313
16314 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16315
16316         PR target/38598
16317         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
16318         Update commentary.
16319
16320 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
16321
16322         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
16323         opno arguments with an expand_operand.  Use create_input_operand.
16324         (mips_prepare_builtin_target): Delete.
16325         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
16326         functions.
16327         (mips_expand_builtin_direct): Use create_output_operand and
16328         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
16329         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
16330         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
16331
16332 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
16333
16334         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
16335         function.
16336         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16337
16338 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
16339
16340         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
16341         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
16342         basic blocks and call commit_edge_insertions directly.
16343         (fixup_abnormal_edges): Move from here to...
16344         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
16345         on the edges and return whether some have actually been inserted.
16346         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
16347         compensation code.
16348
16349 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
16350
16351         PR rtl-optimization/48144
16352         * sel-sched-ir.c (merge_history_vect): Factor out from ...
16353         (merge_expr_data): ... here.
16354         (av_set_intersect): Rename to av_set_code_motion_filter.
16355         Update all callers.  Call merge_history_vect when an expression
16356         is found in both sets.
16357         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
16358
16359 2011-03-26  Alan Modra  <amodra@gmail.com>
16360
16361         * config/rs6000/predicates.md (word_offset_memref_op): Handle
16362         cmodel medium addresses.
16363         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
16364         64-bit gpr loads and stores.
16365         (rs6000_secondary_reload_ppc64): New function.
16366         * config/rs6000/rs6000-protos.h: Declare it.
16367         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
16368
16369 2011-03-26  Alan Modra  <amodra@gmail.com>
16370
16371         PR target/47487
16372         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
16373         GNU Go in traceback table.
16374
16375 2011-03-25  Richard Henderson  <rth@redhat.com>
16376
16377         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
16378         if there are exactly 6 operands.
16379         (set_storage_via_setmem): Similarly.
16380
16381 2011-03-25  Kai Tietz  <ktietz@redhat.com>
16382
16383         * collect2.c (write_c_file_stat): Handle backslash
16384         as right-hand directory separator.
16385         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
16386         checking just for slash.
16387         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
16388         instead of checking for trailing slash.
16389         * gcc.c (record_temp_file): Use filename_cmp instead
16390         of strcmp.
16391         (do_spec_1): Likewise.
16392         (replace_outfile_spec_function): Likewise.
16393         (is_directory): Use filename_ncmp instead of strncmp.
16394         (print_multilib_info): Likewise.
16395         * gcov.c (find_source): Use filename_cmp instead
16396         instead of strcmp.
16397         (make_gcov_file_name): Fix order of slash/backslash
16398         checks.
16399         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
16400         (add_standard_paths): Likewise.
16401         * mips-tfile.c (saber_stop): Handle backslash.
16402         * prefix.c (update_path): Use filename_ncmp instead of
16403         strncmp.
16404         * profile.c (output_location): Use filename_cmp instead
16405         of strcmp.
16406         * read-md.c (handle_toplevel_file): Handle backslash.
16407         * tlink.c (frob_extension):  Likewise.
16408         * tree-cfg.c (same_line_p): Use filename_cmp instead of
16409         strcmp.
16410         * tree-dump.c (dequeue_and_dump): Handle backslash.
16411         * tree.c (get_file_function_name): Likewise.
16412         * gengtype.c (read_input_list): Likewise.
16413         (get_file_realbasename): Likewise.
16414         (get_output_file_with_visibility): Use filename_cmp
16415         instead of strcmp.
16416
16417 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
16418
16419         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
16420         case to VFPv1.
16421
16422 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
16423
16424         * fold-const.c (expr_location_or): New function.
16425         (fold_truth_not_expr): Call it.
16426
16427 2011-03-25  Jeff Law  <law@redhat.com>
16428
16429         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
16430         va_end.
16431         * c-family/c-common.c (def_fn_type): Likewise.
16432         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
16433         * emit-rtl.c (gen_rtvec): Likewise.
16434         * lto/lto-lang.c (def_fn_type): Likewise.
16435
16436 2011-03-25  Richard Guenther  <rguenther@suse.de>
16437
16438         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
16439         also generate copies.
16440         (fini_copy_prop): Handle constant values properly.
16441
16442 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
16443
16444         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
16445         mode size instead of bitsize with DWARF2_ADDR_SIZE.
16446         (hash_loc_operands, compare_loc_operands): Handle
16447         DW_OP_GNU_entry_value.
16448
16449 2011-03-25  Kai Tietz  <ktietz@redhat.com>
16450
16451         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
16452         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
16453         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
16454         comment and use macro TARGET_64BIT_MS_ABI instead.
16455         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
16456         and change default behavior for 32-bit MS_ABI.
16457         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
16458         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
16459         32-bit, too.
16460         (ix86_cfun_abi): Likewise.
16461         (ix86_maybe_switch_abi): Adjust comment.
16462         (init_cumulative_args): Check for bit-ness in MS_ABI case.
16463         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
16464         instead of checking for SYSV_ABI.
16465         (ix86_nsaved_sseregs): Likewise.
16466         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
16467         to 16 bytes.
16468         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
16469         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
16470         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
16471         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
16472         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
16473
16474 2011-03-25  Richard Guenther  <rguenther@suse.de>
16475
16476         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
16477         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16478         (verify_gimple): Remove.
16479         * tree-cfg.c (verify_gimple_call): Merge verification
16480         from verify_stmts.
16481         (verify_gimple_phi): Merge verification from verify_stmts.
16482         (verify_gimple_label): New function.
16483         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
16484         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16485         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
16486         (verify_stmts): Rename to verify_gimple_in_cfg.
16487         (verify_gimple_in_cfg): New function.
16488         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
16489         * tree-ssa.c (verify_ssa): Likewise.
16490         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
16491
16492 2011-03-25  Richard Guenther  <rguenther@suse.de>
16493
16494         * passes.c (init_optimization_passes): Add FRE pass after
16495         early SRA.
16496
16497 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
16498             Andrew Stubbs  <ams@codesourcery.com>
16499
16500         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
16501         for Cortex-A8.
16502         (arm_movdi_vfp_cortexa8): New pattern.
16503         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
16504         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
16505         instructions when tuning for Cortex-A8.  Set attribute "arch".
16506         * config/arm/arm.md: Move include arm-tune.md up a bit.
16507         (define_attr "arch"): Add "onlya8" and "nota8" values.
16508         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
16509
16510 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
16511
16512         PR bootstrap/48282
16513         Revert:
16514         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16515
16516         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16517         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
16518         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16519         * passes.c (init_optimization_passes): Move
16520         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16521
16522 2011-03-25  Kai Tietz  <ktietz@redhat.com>
16523
16524         * c-typeck.c (comptypes_internal): Replace target
16525         hook call of comp_type_attributes by version in tree.c file.
16526         * gimple.c (gimple_types_compatible_p_1): Likewise.
16527         * tree-ssa.c (useless_type_conversion_p): Likewise.
16528         * tree.c (build_type_attribute_qual_variant): Likewise.
16529         (attribute_value_equal): New static helper function.
16530         (comp_type_attributes): New function.
16531         (merge_attributes): Use attribute_value_equal for comparison.
16532         (attribute_list_contained): Likewise.
16533         * tree.h (comp_type_attributes): New prototype.
16534
16535 2011-03-25  Richard Guenther  <rguenther@suse.de>
16536
16537         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
16538         of complex types at -O0.
16539         (verify_gimple_assign_binary): Likewise.
16540         (verify_gimple_assign_ternary): Likewise.
16541
16542 2011-03-24  Mark Wielaard  <mjw@redhat.com>
16543
16544         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
16545         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
16546
16547 2011-03-24  Mark Wielaard  <mjw@redhat.com>
16548
16549         PR debug/48041
16550         * dwarf2out.c (output_abbrev_section): Only write table when
16551         abbrev_die_table_in_use > 1.
16552
16553 2011-02-24  Richard Henderson  <rth@redhat.com>
16554
16555         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
16556         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
16557         (alpha_expand_unaligned_load_words): Use extql.
16558         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
16559         (emit_insxl): Handle all modes for consistency.
16560
16561 2011-02-24  Richard Henderson  <rth@redhat.com>
16562
16563         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
16564         (alpha_expand_unaligned_load): Likewise.
16565         (alpha_expand_unaligned_store): Likewise.
16566         (alpha_expand_unaligned_load_words): Likewise.
16567         (alpha_expand_unaligned_store_words): Likewise.
16568         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
16569         (alpha_split_lock_test_and_set_12): Likewise.
16570         (print_operand, alpha_fold_builtin_extxx): Likewise.
16571         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
16572         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
16573         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
16574         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
16575         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
16576         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
16577         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
16578         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
16579         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
16580         (extwl, extll, extql): Similarly.
16581         (inswh, inslh, insqh): Similarly.
16582         (mskbl, mskwl, mskll, mskql): Similarly.
16583         (mskwh, msklh, mskqh): Similarly.
16584
16585 2011-02-24  Richard Henderson  <rth@redhat.com>
16586
16587         * config/alpha/alpha.md (attribute isa): Add er, ner.
16588         (attribute enabled): Handle them.
16589         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
16590
16591 2011-02-24  Richard Henderson  <rth@redhat.com>
16592
16593         * config/alpha/alpha.md (attribute isa): Add vms.
16594         (attribute enabled): Handle it.
16595         (*movsf): Merge *movsf_{nofix,fix,nofp}.
16596         (*movdf): Merge *movdf_{nofix,fix,nofp}.
16597         (*movtf): Rename from *movtf_internal for consistency.
16598         (*movsi): Merge with *movsi_nt_vms.
16599         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
16600         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
16601         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
16602         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
16603
16604 2011-02-24  Richard Henderson  <rth@redhat.com>
16605
16606         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
16607         (extendqisi2, extendhisi2): Likewise.
16608         (extendqidi2): Simplify BWX/non-BWX expansions.
16609         (extendhidi2): Similarly.
16610
16611 2011-02-24  Richard Henderson  <rth@redhat.com>
16612
16613         * config/alpha/alpha.md (attribute isa): New.
16614         (attribute enabled): New.
16615         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
16616         (zero_extendqisi2, zero_extendqidi2): Similarly.
16617         (zero_extendhisi2, zero_extendhidi2): Similarly.
16618         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
16619
16620 2011-02-24  Richard Henderson  <rth@redhat.com>
16621
16622         * config/alpha/predicates.md (input_operand): Revert last change;
16623         update comment to mention 32-bit VMS rather than Windows.
16624
16625 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16626
16627         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16628         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
16629         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16630         * passes.c (init_optimization_passes): Move
16631         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16632
16633 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16634
16635         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16636
16637 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16638
16639         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16640         correctly.
16641
16642 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
16643
16644         PR debug/48204
16645         * simplify-rtx.c (simplify_const_unary_operation): Call
16646         real_convert when changing mode class with FLOAT_EXTEND.
16647
16648 2011-03-24  Nick Clifton  <nickc@redhat.com>
16649
16650         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16651         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16652         * config/rx/rx.c (rx_option_override): Set align_jumps,
16653         align_loops and align_labels if not set by the user.
16654         (rx_align_for_label): New function.
16655         (rx_max_skip_for_label): New function.
16656         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16657         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16658         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16659         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16660         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16661
16662 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16663
16664         PR rtl-optimization/48263
16665         * optabs.c (expand_binop_directly): Reinstate convert_modes code
16666         and original commutative_p handling.  Use maybe_gen_insn.
16667
16668 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16669
16670         * reload.c (find_reloads_subreg_address): Add address_reloaded
16671         parameter and return true there if the full address has been
16672         reloaded.
16673         (find_reloads_toplev): Pass address_reloaded flag.
16674         (find_reloads_address_1): Don't use address_reloaded parameter.
16675
16676 2011-03-24  Jeff Law  <law@redhat.com>
16677
16678         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16679         unused variable "ann".
16680         (remove_unused_locals): Likewise.
16681
16682         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16683         statement.
16684
16685         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16686         after it is freed.
16687
16688 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16689
16690         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16691         for invalid symbolic addresses.
16692         (s390_secondary_reload): Don't use s390_check_symref_alignment for
16693         larl operands.
16694
16695 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16696
16697         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16698         the argument in calls to fold_truth_not_expr.
16699
16700 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16701
16702         * tree.c (record_node_allocation_statistics): New function.
16703         (make_node_stat, copy_node_stat, build_string): Call it.
16704         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16705         (build1_stat, build_omp_clause): Likewise.
16706
16707 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16708
16709         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16710         last commit.
16711
16712 2011-03-24  Richard Guenther  <rguenther@suse.de>
16713
16714         PR tree-optimization/48271
16715         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16716         blocks that still exist.
16717
16718 2011-03-24  Richard Guenther  <rguenther@suse.de>
16719
16720         PR tree-optimization/48270
16721         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16722         not free datarefs before ddrs.
16723
16724 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
16725
16726         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16727         from the address built for a reference with variable offset.
16728
16729 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
16730
16731         PR target/48237
16732         * config/i386/i386.md (*movdf_internal_rex64): Do not split
16733         alternatives that can be handled with movq or movabsq insn.
16734         (*movdf_internal): Disable for !TARGET_64BIT.
16735         (*movdf_internal_nointeger): Ditto.
16736         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16737
16738 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
16739
16740         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16741         (FUNCTION_ARG_ADVANCE): Likewise.
16742         * tm.texi.in: Change references to them to hook references.
16743         * tm.texi: Regenerate.
16744         * targhooks.c (default_function_arg): Eliminate check for target macro.
16745         (default_function_incoming_arg): Likewise.
16746         (default_function_arg_advance): Likewise.
16747         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16748         (function_arg_advance): Likewise.
16749         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16750
16751 2011-03-24  Richard Guenther  <rguenther@suse.de>
16752
16753         PR middle-end/48269
16754         * tree-object-size.c (addr_object_size): Do not double-account
16755         for MEM_REF offsets.
16756
16757 2011-03-24  Diego Novillo  <dnovillo@google.com>
16758
16759         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16760         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16761         (lto_input_data_block): Move from lto-opts.c.  Make extern.
16762         Update all users.
16763         (lto_input_string): Rename from input_string.  Make extern.
16764         Update all users.
16765         * lto-streamer-out.c (lto_output_string_with_length): Rename from
16766         output_string_with_length.
16767         Output 0 to indicate a non-NULL string.  Update all callers to
16768         not emit 0.
16769         (lto_output_string): Rename from output_string.  Make extern.
16770         Update all users.
16771         (lto_output_decl_state_streams): Make extern.
16772         (lto_output_decl_state_refs): Make extern.
16773         * lto-streamer.h (lto_input_string): Declare.
16774         (lto_input_data_block): Declare.
16775         (lto_output_string): Declare.
16776         (lto_output_string_with_length): Declare.
16777         (lto_output_decl_state_streams): Declare.
16778         (lto_output_decl_state_refs): Declare.
16779
16780 2011-03-24  Richard Guenther  <rguenther@suse.de>
16781
16782         PR tree-optimization/46562
16783         * tree.c (build_invariant_address): New function.
16784         * tree.h (build_invariant_address): Declare.
16785         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16786         a renamed function moved ...
16787         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16788         Take valueization callback parameter.
16789         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16790         * gimple-fold.h: New file.
16791         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16792         (ccp_fold, fold_const_aggregate_ref,
16793         fold_ctor_reference, fold_nonarray_ctor_reference,
16794         fold_array_ctor_reference, fold_string_cst_ctor_reference,
16795         get_base_constructor): Move ...
16796         * gimple-fold.c: ... here.
16797         (gimple_fold_stmt_to_constant_1): New function
16798         split out from ccp_fold.  Take a valueization callback parameter.
16799         Valueize all operands.
16800         (gimple_fold_stmt_to_constant): New wrapper function.
16801         (fold_const_aggregate_ref_1): New function split out from
16802         fold_const_aggregate_ref.  Take a valueization callback parameter.
16803         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16804         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16805         invariant POINTER_PLUS_EXPRs to invariant form.
16806         (vn_valueize): New function.
16807         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16808         * tree-vrp.c (vrp_valueize): New function.
16809         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16810         to fold statements to constants.
16811         * tree-ssa-pre.c (eliminate): Properly guard propagation of
16812         function declarations.
16813         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16814         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16815
16816 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
16817
16818         * config/h8300/predicates.md (jump_address_operand): Fix register
16819         mode check.
16820
16821 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
16822
16823         * doc/invoke.texi (max-stores-to-sink): Document.
16824         * params.h (MAX_STORES_TO_SINK): Define.
16825         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16826         if either vectorization or if-conversion is disabled.
16827         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16828         tree-vect-data-refs.c vect_equal_offsets.
16829         (dr_equal_offsets_p): New function.
16830         (find_data_references_in_bb): Remove static.
16831         * tree-data-ref.h (find_data_references_in_bb): Declare.
16832         (dr_equal_offsets_p): Likewise.
16833         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16834         (vect_drs_dependent_in_basic_block): Update calls to
16835         vect_equal_offsets.
16836         (vect_check_interleaving): Likewise.
16837         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16838         (cond_if_else_store_replacement): Rename to...
16839         (cond_if_else_store_replacement_1): ... this.  Change arguments and
16840         documentation.
16841         (cond_if_else_store_replacement): New function.
16842         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16843         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16844
16845 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
16846
16847         PR target/46934
16848         * config/arm/arm.md (casesi): Use the gen_int_mode() function
16849         to subtract lower bound instead of GEN_INT().
16850
16851 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
16852
16853         PR other/48179
16854         PR other/48221
16855         PR other/48234
16856         * doc/extend.texi (Alignment): Move section to match order in TOC.
16857         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16858         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16859
16860 2011-03-23  Jeff Law  <law@redhat.com>
16861
16862         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16863         before removing the edge.
16864
16865         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16866         it may have been freed by redirect_branch_edge or
16867         redirect_edge_succ_nodup.
16868
16869 2011-03-23  Richard Guenther  <rguenther@suse.de>
16870
16871         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16872         (check_va_list_escapes): Likewise.
16873         (check_all_va_list_escapes): Likewise.
16874
16875 2011-03-23  Richard Guenther  <rguenther@suse.de>
16876
16877         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16878         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16879         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16880         (alias.o): Likewise.
16881         (ipa-type-escape.o): Remove.
16882         (ipa-struct-reorg.o): Likewise.
16883         (GTFILES): Remove ipa-struct-reorg.c.
16884         * alias.c: Do not include ipa-type-escape.h.
16885         * tree-ssa-alias.c: Likewise.
16886         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16887         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16888         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16889         and ipa-type-escape passes.
16890         * tree-pass.h (pass_ipa_type_escape): Remove.
16891         (pass_ipa_struct_reorg): Likewise.
16892         * ipa-struct-reorg.h: Remove.
16893         * ipa-struct-reorg.c: Likewise.
16894         * ipa-type-escape.h: Likewise.
16895         * ipa-type-escape.c: Likewise.
16896         * doc/invoke.texi (-fipa-struct-reorg): Remove.
16897         (--param struct-reorg-cold-struct-ratio): Likewise.
16898         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16899         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16900         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16901
16902 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16903
16904         * config/s390/2084.md: Enable all insn reservations also for z9_ec
16905         cpu attribute value.
16906         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16907         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16908         * config/s390/s390.c (processor_flags_table): New constant array.
16909         (s390_handle_arch_option): Remove.
16910         (s390_handle_option): Remove s390_handle_arch_option invocations
16911         and OPT_mwarn_framesize_ handling.
16912         (s390_option_override): Remove s390_handle_arch_option invocation.
16913         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16914         warnings.
16915         * config/s390/s390.md (cpu attribute): Add z9_ec value.
16916         * config/s390/s390.opt (s390_tune, s390_arch)
16917         (march=): Replace s390_arch_option enum and values with
16918         processor_type.  Set variable name to s390_arch.  Set
16919         initialization value.
16920         (mtune=): Replace s390_arch_option with processor_type.  Set
16921         variable name to s390_tune.  Set initialization value.
16922
16923 2011-03-23  Julian Brown  <julian@codesourcery.com>
16924
16925         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16926         accesses which are not naturally aligned.
16927
16928 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16929
16930         PR target/47553
16931         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16932
16933 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
16934
16935         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16936         parameter from "int" to "enum insn_code".
16937         (expand_operand_type): New enum.
16938         (expand_operand): New structure.
16939         (create_expand_operand): New function.
16940         (create_fixed_operand, create_output_operand): Likewise
16941         (create_input_operand, create_convert_operand_to): Likewise.
16942         (create_convert_operand_from, create_address_operand): Likewise.
16943         (create_integer_operand): Likewise.
16944         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16945         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16946         (expand_insn, expand_jump_insn): Likewise.
16947         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16948         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16949         (expand_movstr, expand_builtin___clear_cache): Likewise.
16950         (expand_builtin_lock_release): Likewise.
16951         * explow.c (allocate_dynamic_stack_space): Likewise.
16952         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
16953         and use the default handling in that case.
16954         * expmed.c (check_predicate_volatile_ok): Delete.
16955         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16956         (emit_cstore): Likewise.
16957         * expr.c (emit_block_move_via_movmem): Likewise.
16958         (set_storage_via_setmem, expand_assignment): Likewise.
16959         (emit_storent_insn, try_casesi): Likewise.
16960         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
16961         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16962         (expand_vec_shift_expr, expand_binop_directly): Likewise.
16963         (expand_twoval_unop, expand_twoval_binop): Likewise.
16964         (expand_unop_direct, emit_indirect_jump): Likewise.
16965         (emit_conditional_move, vector_compare_rtx): Likewise.
16966         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16967         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16968         (expand_sync_lock_test_and_set): Likewise.
16969         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
16970         (emit_unop_insn): Likewise.
16971         (expand_copysign_absneg): Change icode to an insn_code.
16972         (create_convert_operand_from_type): New function.
16973         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16974         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16975         (expand_insn, expand_jump_insn): Likewise.
16976         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16977         than const_int_operand for operand 2.
16978
16979 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16980
16981         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16982         if possible.
16983
16984 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16985
16986         * emit-rtl.c (emit_pattern_before_noloc): New function.
16987         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16988         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16989         (emit_pattern_after_noloc): New function.
16990         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16991         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16992
16993 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
16994
16995         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16996         (__ffsDI2): Likewise.
16997
16998 2011-03-22  Richard Henderson  <rth@redhat.com>
16999
17000         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
17001         of !TARGET_ABI_OPEN_VMS.
17002         (alpha_trampoline_init, alpha_start_function): Likewise.
17003         (alpha_expand_epilogue, alpha_file_start): Likewise.
17004         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
17005         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
17006         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
17007         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
17008         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
17009
17010 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17011
17012         * config/s390/s390-opts.h: New.
17013         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
17014         s390_arch_flags, s390_warn_framesize, s390_stack_size,
17015         s390_stack_guard): Remove.
17016         (s390_handle_arch_option): Return void.  Take enum
17017         s390_arch_option value instead of string and searching array.
17018         (s390_handle_option): Don't assert that global structures are in
17019         use.  Access variables via opts pointer.  Use error_at.  Don't use
17020         sscanf for -mstack-guard= or -mstack-size=.  Update call to
17021         s390_handle_arch_option.
17022         (s390_option_override): Update call to s390_handle_arch_option.
17023         (s390_emit_prologue): Use %d format for s390_stack_size in
17024         diagnostic.  Use %wd for HOST_WIDE_INT.
17025         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
17026         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
17027         * config/s390/s390.opt (config/s390/s390-opts.h): New
17028         HeaderInclude entry.
17029         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
17030         s390_arch_flags, s390_warn_framesize): New Variable entries.
17031         (s390_arch_option): New Enum and EnumValue entries.
17032         (march=): Use Enum instead of Var.
17033         (mstack-guard=, mstack-size=): Use UInteger and Var.
17034         (mtune=): Use Enum.
17035
17036 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17037
17038         * config/score/score.c (score_handle_option): Don't assert that
17039         global structures are in use.  Access target_flags via opts
17040         pointer.  Use value of -march= option to determine target_flags
17041         settings.
17042         * config/score/score.opt (march=): Use Enum.
17043         (score_arch): New Enum and EnumValue entries.
17044
17045 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17046
17047         * config/mep/mep.c (option_mtiny_specified): Remove.
17048         (mep_option_override): Move register handling for -mivc2 from
17049         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
17050         instead of option_mtiny_specified.
17051         (mep_handle_option): Access target_flags via opts pointer.  Don't
17052         assert that global structures are in use.  Defer part of -mivc2
17053         handling and move it to mep_option_override.
17054         * config/mep/mep.opt (IVC2): New Mask entry.
17055         (mivc2): Use Var and Defer instead of Mask.
17056
17057 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17058
17059         * config/v850/v850-opts.h: New.
17060         * config/v850/v850.c (small_memory): Replace with
17061         small_memory_physical_max array.  Make that array static const.
17062         (v850_handle_memory_option): Take integer value of argument.  Take
17063         gcc_options pointer, option text and location.  Return void.
17064         Update for changes to small memory structures.
17065         (v850_handle_option): Access target_flags via opts pointer.  Don't
17066         assert that global structures are in use.  Update calls to
17067         v850_handle_memory_option.
17068         (v850_encode_data_area): Update references to small memory settings.
17069         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
17070         (enum small_memory_type): Move to v850-opts.h.
17071         * config/v850/v850.opt (config/v850/v850-opts.h): New
17072         HeaderInclude entry.
17073         (small_memory_max): New Variable entry.
17074         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
17075         (mtda, mzda): Likewise.
17076
17077 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17078
17079         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
17080         pointer.  Don't assert that global structures are in use.
17081
17082 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17083
17084         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
17085         via opts pointer.  Don't assert that global structures are in use.
17086
17087 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17088
17089         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
17090         (munix=93): Use Var.
17091         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
17092         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
17093         * config/pa/pa-opts.h: New.
17094         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
17095         (pa_handle_option): Don't assert that global structures are in
17096         use.  Access target_flags via opts pointer.  Don't handle
17097         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
17098         OPT_munix_98 here.
17099         (pa_option_override): Handle deferred OPT_mfixed_range_.
17100
17101 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17102
17103         * config/mn10300/mn10300-opts.h: New.
17104         * config/mn10300/mn10300.c (mn10300_processor,
17105         mn10300_tune_string): Remove.
17106         (mn10300_handle_option): Don't assert that global structures are
17107         in use.  Access mn10300_processor via opts pointer.  Don't handle
17108         OPT_mtune_ here.
17109         * config/mn10300/mn10300.h (enum processor_type): Move to
17110         mn10300-opts.h.
17111         (mn10300_processor): Remove.
17112         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
17113         HeaderInclude entry.
17114         (mn10300_processor): New Variable entry.
17115         (mtune=): Use Var.
17116
17117 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17118
17119         * config/microblaze/microblaze.c: Don't include opts.h.
17120         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
17121         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
17122         (mno-clearbss): Use Var and Warn.
17123
17124 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17125
17126         * config/m32r/m32r-opts.h: New.
17127         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
17128         (m32r_handle_option): Don't assert that global structures are in
17129         use.  Access target_flags and m32r_cache_flush_func via opts
17130         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
17131         OPT_mno_flush_trap here.
17132         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
17133         include of m32r-opts.h.
17134         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
17135         HeaderInclude entry.
17136         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
17137         (mmodel=): Use Enum and Var.
17138         (m32r_model): New Enum and EnumValue entries.
17139         (mno-flush-trap): Use Var.
17140         (msdata=): Use Enum and Var.
17141         (m32r_sdata): New Enum and EnumValue entries.
17142
17143 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17144
17145         * config/m32c/m32c.c: Don't include opts.h.
17146         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
17147         m32c_handle_option): Remove.
17148         (m32c_option_override): Check global_options_set.x_target_memregs
17149         instead of target_memregs_set.
17150         * config/m32c/m32c.h (target_memregs): Remove.
17151         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
17152         variable.
17153
17154 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17155
17156         * config/iq2000/iq2000-opts.h: New.
17157         * config/iq2000/iq2000.c: Don't include opts.h.
17158         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
17159         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
17160         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
17161         HeaderInclude entry.
17162         (iq2000_tune): New Variable entry.
17163         (march=): Add comment.  Use Enum.
17164         (iq2000_arch): New Enum and EnumValue entries.
17165         (mcpu=): Use Enum and Var.
17166         (iq2000_tune): New Enum and EnumValue entries.
17167
17168 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17169
17170         * config/ia64/ia64-opts.h: New.
17171         * config/ia64/ia64.c (ia64_tune): Remove.
17172         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
17173         here.  Use error_at.
17174         (ia64_option_override): Handle deferred OPT_mfixed_range_.
17175         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
17176         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
17177         HeaderInclude entry.
17178         (ia64_tune): New Variable entry.
17179         (mfixed-range=): Use Defer and Var.
17180         (mtune=): Use Enum and Var.
17181         (ia64_tune): New Enum and EnumValue entries.
17182
17183 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17184
17185         * config/frv/frv-opts.h: New.
17186         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
17187         frv-opts.h.
17188         (frv_cpu_type): Remove.
17189         * config/frv/frv.c: Don't include opts.h.
17190         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
17191         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
17192         (frv_cpu_type): New Variable entry.
17193         (frv_cpu): New Enum and EnumValue entries.
17194
17195 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17196
17197         * config/cris/cris.c (cris_handle_option): Access target_flags via
17198         opts pointer.  Don't assert that global structures are in use.
17199         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
17200         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
17201
17202 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17203
17204         * config/bfin/bfin-opts.h: New.
17205         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
17206         bfin_si_revision, bfin_workarounds): Remove.
17207         (bfin_cpus): Make static const.
17208         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
17209         not bfin_lib_id_given.
17210         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
17211         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
17212         pointer. Use error_at.  Don't assert that global structures are in use.
17213         * config/bfin/bfin.h: Include bfin-opts.h.
17214         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
17215         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
17216         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
17217         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
17218         entries.
17219
17220 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17221
17222         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
17223         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
17224         or -msoft-float here.
17225         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
17226         -msoft-float and -mhard-float.
17227         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
17228         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17229         msoft-float.
17230         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
17231         -msoft-float.
17232         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
17233         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
17234         not mhard-float.
17235         (LIBGCC_SPEC): Don't handle -msoft-float.
17236         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
17237         -mhard-float.
17238         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17239         msoft-float.
17240         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
17241         -mfloat-abi=*, not -msoft-float and -mhard-float.
17242         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
17243         -msoft-float.
17244         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
17245         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
17246         mhard-float and msoft-float.
17247         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
17248         mfloat-abi=soft in comments, not mhard-float and msoft-float.
17249         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17250         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
17251         mhard-float.
17252         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
17253         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
17254         msoft-float.
17255         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
17256         not mhard-float.
17257         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
17258         not msoft-float.
17259
17260 2011-03-22  Richard Henderson  <rth@redhat.com>
17261
17262         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
17263         TARGET_ABI_WINDOWS_NT.
17264         (alpha_output_function_end_prologue): Likewise.
17265         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
17266         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17267         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
17268         (trap, *movsi_nt_vms): Likewise.
17269         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
17270         (*tablejump_osf_nt_internal): Remove.
17271         * config/alpha/predicates.md (input_operand): Only test Pmode.
17272
17273 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17274
17275         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
17276         via opts pointer.  Use error_at.  Don't assert that global
17277         structures are in use.
17278
17279 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17280
17281         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
17282         (ix86_handle_option): Access ix86_isa_flags and
17283         ix86_isa_flags_explicit via opts pointer.  Don't assert that
17284         global structures are in use.
17285         (ix86_function_specific_save, ix86_function_specific_restore):
17286         Update ix86_isa_flags_explicit field name.
17287         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
17288         (ix86_isa_flags_explicit): Rename TargetSave entry to
17289         x_ix86_isa_flags_explicit.
17290
17291 2011-03-22  Richard Henderson  <rth@redhat.com>
17292
17293         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
17294         (alpha_option_override, direct_return): Likewise.
17295         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
17296         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
17297         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
17298         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17299         (alpha_expand_epilogue, alpha_end_function): Likewise.
17300         (alpha_init_libfuncs): Likewise.
17301         (struct machine_function): Remove unicosmk members.
17302         (print_operand) ['t']: Remove.
17303         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
17304         unicosmk_output_module_name, unicosmk_output_common,
17305         current_section_align, unicosmk_output_text_section_asm_op,
17306         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
17307         unicosmk_section_type_flags, unicosmk_unique_section,
17308         unicosmk_asm_named_section, unicosmk_insert_attributes,
17309         unicosmk_output_align, unicosmk_defer_case_vector,
17310         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
17311         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
17312         unicosmk_output_ssib, unicosmk_add_call_info_word,
17313         unicosmk_extern_head, unicosmk_output_default_externs,
17314         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
17315         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
17316         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
17317         * config/alpha/alpha-protos.h: Update.
17318         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
17319         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
17320         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
17321         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
17322         (*mulsi_se, mulvsi3): Likewise.
17323         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
17324         (*divmodsi_internal, call, call_value, realign): Likewise.
17325         (moddi3, umoddi3): Likewise; remove duplicate expander.
17326         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
17327         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
17328         (*movdi_nofix): Remove r/U alternative.
17329         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
17330         * config/alpha/constraints.md ("U"): Remove.
17331         * config/alpha/predicates.md (call_operand"): Don't test
17332         TARGET_ABI_UNICOSMK.
17333
17334 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17335
17336         * target.def (handle_option): Take gcc_options and
17337         cl_decoded_option pointers and location_t.
17338         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
17339         * doc/tm.texi: Regenerate.
17340         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
17341         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
17342         * lto-opts.c (lto_reissue_options): Generate option structure for
17343         targetm.handle_option call.
17344         * opts.c (target_handle_option): Update call to
17345         targetm.handle_option.  Remove assertions about values now passed
17346         down to hook.
17347         * targhooks.c (default_target_handle_option): New.
17348         * targhooks.h (default_target_handle_option): Declare.
17349         * config/alpha/alpha.c: Include opts.h.
17350         (alpha_handle_option): Update to new hook interface.
17351         * config/arm/arm.c: Include opts.h.
17352         (arm_handle_option): Update to new hook interface.
17353         * config/arm/t-arm (arm.o): Update dependencies.
17354         * config/bfin/bfin.c: Include opts.h.
17355         (bfin_handle_option): Update to new hook interface.
17356         * config/cris/cris.c: Include opts.h.
17357         (cris_handle_option): Update to new hook interface.
17358         * config/frv/frv.c: Include opts.h.
17359         (frv_handle_option): Update to new hook interface.
17360         * config/i386/i386.c: Include opts.h.
17361         (ix86_handle_option): Update to new hook interface.
17362         (ix86_valid_target_attribute_inner_p): Generate option structure
17363         for call to ix86_handle_option.
17364         * config/i386/t-i386 (i386.o): Update dependencies.
17365         * config/ia64/ia64.c: Include opts.h.
17366         (ia64_handle_option): Update to new hook interface.
17367         * config/ia64/t-ia64 (ia64.o): Update dependencies.
17368         * config/iq2000/iq2000.c: Include opts.h.
17369         (iq2000_handle_option): Update to new hook interface.
17370         * config/m32c/m32c.c: Include opts.h.
17371         (m32c_handle_option): Update to new hook interface.
17372         * config/m32r/m32r.c: Include opts.h.
17373         (m32r_handle_option): Update to new hook interface.
17374         * config/m68k/m68k.c: Include opts.h.
17375         (m68k_handle_option): Update to new hook interface.
17376         * config/mep/mep.c: Include opts.h.
17377         (mep_handle_option): Update to new hook interface.
17378         * config/microblaze/microblaze.c: Include opts.h.
17379         (microblaze_handle_option): Update to new hook interface.
17380         * config/mips/mips.c: Include opts.h.
17381         (mips_handle_option): Update to new hook interface.
17382         * config/mn10300/mn10300.c: Include opts.h.
17383         (mn10300_handle_option): Update to new hook interface.
17384         * config/pa/pa.c: Include opts.h.
17385         (pa_handle_option): Update to new hook interface.
17386         * config/pdp11/pdp11.c: Include opts.h.
17387         (pdp11_handle_option): Update to new hook interface.
17388         * config/rs6000/rs6000.c: Include opts.h.
17389         (rs6000_handle_option): Update to new hook interface.
17390         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17391         * config/rx/rx.c: Include opts.h.
17392         (rx_handle_option): Update to new hook interface.
17393         * config/s390/s390.c: Include opts.h.
17394         (s390_handle_option): Update to new hook interface.
17395         * config/score/score.c: Include opts.h.
17396         (score_handle_option): Update to new hook interface.
17397         * config/sh/sh.c: Include opts.h.
17398         (sh_handle_option): Update to new hook interface.
17399         * config/sparc/sparc.c: Include opts.h.
17400         (sparc_handle_option): Update to new hook interface.
17401         * config/v850/v850.c: Include opts.h.
17402         (v850_handle_option): Update to new hook interface.
17403
17404 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17405
17406         * gcc.c (driver_unknown_option_callback): Only permit and save
17407         unknown -Wno- options.
17408         (driver_wrong_lang_callback): Save options directly instead of via
17409         driver_unknown_option_callback.
17410
17411 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
17412
17413         * combine.c (simplify_set): Try harder to find the best CC mode when
17414         simplifying a nested COMPARE on the RHS.
17415
17416 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
17417
17418         * config/alpha/gnu.h: Remove.
17419         * config/arc: Remove directory.
17420         * config/arm/netbsd.h: Remove.
17421         * config/arm/t-pe: Remove.
17422         * config/crx: Remove directory.
17423         * config/i386/netbsd.h: Remove.
17424         * config/m68hc11: Remove directory.
17425         * config/m68k/uclinux-oldabi.h: Remove.
17426         * config/mcore/mcore-pe.h: Remove.
17427         * config/mcore/t-mcore-pe: Remove.
17428         * config/netbsd-aout.h: Remove.
17429         * config/rs6000/gnu.h: Remove.
17430         * config/sh/sh-symbian.h: Remove.
17431         * config/sh/symbian-base.c: Remove.
17432         * config/sh/symbian-c.c: Remove.
17433         * config/sh/symbian-cxx.c: Remove.
17434         * config/sh/symbian-post.h: Remove.
17435         * config/sh/symbian-pre.h: Remove.
17436         * config/sh/t-symbian: Remove.
17437         * config/svr3.h: Remove.
17438         * config/vax/netbsd.h: Remove.
17439         * config.build: Don't handle i[34567]86-*-pe.
17440         * config.gcc: Remove handling of deprecations for most deprecated
17441         targets.
17442         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
17443         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
17444         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
17445         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
17446         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
17447         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
17448         Remove cases.
17449         * config.host: Don't handle i[34567]86-*-pe.
17450         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
17451         (ASM_SPEC32): Don't handle -mcall-gnu.
17452         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
17453         -mcall-gnu.
17454         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
17455         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
17456         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17457         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
17458         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
17459         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
17460         conditional on SYMBIAN.
17461         * configure.ac: Don't handle powerpc*-*-gnu*.
17462         * configure: Regenerate.
17463         * doc/extend.texi (interrupt attribute): Don't mention CRX.
17464         * doc/install-old.texi (m6811, m6812): Don't mention.
17465         * doc/install.texi (arc-*-elf*): Don't document multilib option.
17466         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
17467         (m68k-uclinuxoldabi): Don't mention.
17468         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
17469         Remove.
17470         (-mcall-gnu): Remove.
17471         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
17472         families): Remove constraint documentation.
17473
17474 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
17475
17476         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
17477         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
17478         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
17479
17480 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17481
17482         PR target/48226
17483         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
17484         vector when peeking at the next token for vector, don't expand the
17485         keywords.
17486
17487 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
17488
17489         * config/avr/avr-protos.h (expand_epilogue): Change prototype
17490         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
17491         * config/avr/avr.c (init_cumulative_args)
17492         (avr_function_arg_advance): Use it.
17493         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
17494         sibcall epilogues.
17495         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
17496         (avr_function_ok_for_sibcall): ...this new function.
17497         (avr_lookup_function_attribute1): New static Function.
17498         (avr_naked_function_p, interrupt_function_p)
17499         (signal_function_p, avr_OS_task_function_p)
17500         (avr_OS_main_function_p): Use it.
17501         * config/avr/avr.md ("sibcall", "sibcall_value")
17502         ("sibcall_epilogue"): New expander.
17503         ("*call_insn", "*call_value_insn"): New insn.
17504         ("call_insn", "call_value_insn"): Remove
17505         ("call", "call_value", "epilogue"): Change expander to handle
17506         sibling calls.
17507
17508 2011-03-21  Nick Clifton  <nickc@redhat.com>
17509
17510         * doc/invoke.texi (Overall Options): Move closing brace to end of
17511         options list.
17512         (Optimization Options): Add missing @gol.
17513         (Directory Options): Likewise.
17514         (i386 and x86-64 Options): Likewise.
17515         (RS6000 and PowerPC Options): Likewise.
17516         (i386 and x86-64 Windows Options): Likewise.
17517         (V850 Options): Add text missing from descriptions.
17518
17519 2011-03-22  Richard Henderson  <rth@redhat.com>
17520
17521         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
17522         (avr_incoming_return_addr_rtx): New.
17523         (emit_push_byte): New.
17524         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
17525         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
17526         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
17527         (emit_pop_byte): New.
17528         (expand_epilogue): Use it.  Pop frame pointer by bytes.
17529         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
17530         (INCOMING_RETURN_ADDR_RTX): New.
17531         (INCOMING_FRAME_SP_OFFSET): New.
17532         (ARG_POINTER_CFA_OFFSET): New.
17533         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
17534         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
17535         (pophi): Remove.
17536
17537         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
17538
17539 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17540
17541         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17542         (FUNCTION_ARG_ADVANCE): Likewise.
17543         * tm.texi.in: Change references to them to hook references.
17544         * tm.texi: Regenerate.
17545         * targhooks.c (default_function_arg): Eliminate check for target
17546         macro.
17547         (default_function_incoming_arg): Likewise.
17548         (default_function_arg_advance): Likewise.
17549         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
17550         (function_arg_advance): Likewise.
17551         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17552
17553 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
17554
17555         * tree.c (build_call_1): New function.
17556         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
17557
17558 2011-03-22  Richard Guenther  <rguenther@suse.de>
17559
17560         PR tree-optimization/48228
17561         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
17562         for single-arg PHIs.
17563
17564 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
17565
17566         PR rtl-optimization/48143
17567         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
17568         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
17569         sse2_cvtps2pd): Likewise.
17570
17571 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17572
17573         * recog.c (canonicalize_change_group): Use validate_unshare_change.
17574
17575 2011-03-22  Richard Guenther  <rguenther@suse.de>
17576
17577         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
17578         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
17579         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
17580         and REALIGN_LOAD_EXPR.
17581         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
17582         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
17583         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
17584         DOT_PROD_EXPR case ...
17585         (expand_expr_real_2): ... here.
17586         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
17587         and REALIGN_LOAD_EXPR.
17588         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
17589         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
17590         (vect_create_epilog_for_reduction): Likewise.
17591         (vectorizable_reduction): Likewise.
17592         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
17593         * tree-vect-stmts.c (vectorizable_load): Likewise.
17594
17595 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
17596
17597         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
17598
17599 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17600
17601         * config/s390/s390.c (s390_delegitimize_address): Fix offset
17602         handling for PLTOFF/GOTOFF.
17603
17604 2011-03-22  Nick Clifton  <nickc@redhat.com>
17605
17606         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
17607         trailing backslash from the end of the macro definition.
17608
17609 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17610
17611         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
17612         and PLT unspecs.
17613
17614 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
17615
17616         * expr.h (prepare_operand): Move to...
17617         * optabs.h (prepare_operand): ...here and change the insn code
17618         parameter from "int" to "enum insn_code".
17619         (insn_operand_matches): Declare.
17620         * expr.c (init_expr_target): Use insn_operand_matches.
17621         (compress_float_constant): Likewise.
17622         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
17623         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
17624         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
17625         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17626         Likewise.
17627         (gen_cond_trap): Likewise.
17628         (prepare_operand): Likewise.  Change icode to an insn_code.
17629         (insn_operand_matches): New function.
17630         * reload.c (find_reloads_address_1): Use insn_operand_matches.
17631         * reload1.c (gen_reload): Likewise.
17632         * targhooks.c (default_secondary_reload): Likewise.
17633
17634 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17635
17636         * config/alpha/alpha.md (unspec): New define_c_enum.
17637         (unspecv): Ditto.
17638
17639 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
17640
17641         PR debug/48214
17642         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17643         between a call and its CALL_ARG_LOCATION note.
17644
17645 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
17646
17647         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17648
17649 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17650
17651         PR c/42544
17652         PR c/48197
17653         * c-common.c (shorten_compare): If primopN is first sign-extended
17654         to opN and then zero-extended to result type, set primopN to opN.
17655
17656 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
17657
17658         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17659         for barrier handlers.
17660
17661 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17662
17663         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17664         UNSPEC constants to be in the unspec enumeration, and redefine
17665         all UNSPECV constants to be in the unspecv enumeration, so that
17666         dumps print which unspec/unspec_volatile this is.
17667         * config/rs6000/vector.md (UNSPEC_*): Ditto.
17668         * config/rs6000/paired.md (UNSPEC_*): Ditto.
17669         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17670         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17671         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17672
17673         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17674         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17675         UNSPECV_LWSYNC, since these are used as unspec_volatile.
17676         * config/rs6000/sync.md (isync, lwsync): Ditto.
17677
17678 2011-03-21  Richard Guenther  <rguenther@suse.de>
17679
17680         * params.def (lto-min-partition): Fix typo.
17681
17682 2011-03-21  Richard Guenther  <rguenther@suse.de>
17683
17684         PR c/47939
17685         * c-decl.c (grokdeclarator): Drop to the main variant only
17686         for array types.  Drop flag_gen_aux_info check.
17687
17688 2011-03-21  Richard Guenther  <rguenther@suse.de>
17689
17690         PR translation/47911
17691         * params.def (lto-partitions): Fix typo.
17692         (lto-min-partition): Fix wording.
17693
17694 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
17695
17696         * config/rs6000/t-freebsd: Remove duplication from file.
17697
17698 2011-03-21  Richard Guenther  <rguenther@suse.de>
17699
17700         PR middle-end/47661
17701         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17702
17703 2011-03-21  Richard Guenther  <rguenther@suse.de>
17704
17705         PR lto/48210
17706         * params.def (lto-partitions): Require at least 1 partition.
17707
17708 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17709
17710         * gthr-solaris.h: Remove.
17711         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17712         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17713         (LIB_SPEC): Likewise.
17714         * config/sol2.opt (threads): Remove.
17715         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17716         (sparc*-*-solaris2*): Likewise.
17717         * configure.ac (enable_threads): Enable solaris support.
17718         * configure: Regenerate.
17719         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17720         * doc/install.texi (Configuration, --enable-threads=lib): Remove
17721         solaris.
17722
17723 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17724
17725         * config.gcc: Obsolete *-*-solaris2.8*.
17726         * doc/install.texi (Specific, *-*-solaris2*): Document it.
17727
17728 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17729
17730         PR bootstrap/48135
17731         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17732         reference.  Solaris 8 perl works.
17733
17734 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17735
17736         PR bootstrap/48135
17737         * doc/install.texi (Prerequisites): Move jar etc. up.
17738         Explain support library version requirements.
17739
17740 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17741
17742         PR bootstrap/48135
17743         * doc/install.texi (Prerequisites): Move Perl to build
17744         requirements.  Always necessary on Solaris 2 with Sun ld.
17745
17746 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17747
17748         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17749         binutils 2.21.
17750         (Specific, i?86-*-solaris2.[89]): Likewise.
17751         (Specific, i?86-*-solaris2.10): Likewise.
17752         (Specific, mips-sgi-irix6): Likewise.
17753         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17754         Update for binutils 2.21.
17755
17756 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17757
17758         * configure.ac (gcc_cv_lto_plugin): Fix typo.
17759         Allow -fuse-linker-plugin for non-default plugin linker.
17760         * configure: Regenerate.
17761
17762 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17763
17764         PR bootstrap/48167
17765         * gengtype.c (files_rules): Added rule for cp/parser.h.
17766
17767 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
17768
17769         PR target/48213
17770         * config/s390/s390.c (s390_delegitimize_address): Don't call
17771         lowpart_subreg if orig_x has BLKmode.
17772
17773 2011-03-21  Kai Tietz  <ktietz@redhat.com>
17774
17775         PR target/12171
17776         * doc/plugins.texi: Adjust documentation for plugin register_callback.
17777         * tree.h (attribute_spec): Add new member affects_type_identity.
17778         * attribs.c (empty_attribute_table): Adjust attribute_spec
17779         initializers.
17780         * config/alpha/alpha.c: Likewise.
17781         * config/arc/arc.c: Likewise.
17782         * config/arm/arm.c: Likewise.
17783         * config/avr/avr.c: Likewise.
17784         * config/bfin/bfin.c: Likewise.
17785         * config/crx/crx.c: Likewise.
17786         * config/darwin.h: Likewise.
17787         * config/h8300/h8300.c: Likewise.
17788         * config/i386/cygming.h: Likewise.
17789         * config/i386/i386.c: Likewise.
17790         * config/ia64/ia64.c: Likewise.
17791         * config/m32c/m32c.c: Likewise.
17792         * config/m32r/m32r.c: Likewise.
17793         * config/m68hc11/m68hc11.c: Likewise.
17794         * config/m68k/m68k.c: Likewise.
17795         * config/mcore/mcore.c: Likewise.
17796         * config/mep/mep.c: Likewise.
17797         * config/microblaze/microblaze.c: Likewise.
17798         * config/mips/mips.c: Likewise.
17799         * config/rs6000/rs6000.c: Likewise.
17800         * config/rx/rx.c: Likewise.
17801         * config/sh/sh.c: Likewise.
17802         * config/sol2.h: Likewise.
17803         * config/sparc/sparc.c: Likewise.
17804         * config/spu/spu.c: Likewise.
17805         * config/stormy16/stormy16.c: Likewise.
17806         * config/v850/v850.c: Likewise.
17807
17808 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
17809
17810         * simplify-rtx.c (simplify_binary_operation_1): Handle
17811         (xor (and A B) C) case when B and C are both constants.
17812
17813 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
17814
17815         * tree-dfa.c (add_referenced_var): Fix typo in comment.
17816
17817 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
17818
17819         PR bootstrap/48168
17820         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17821
17822 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
17823
17824         PR rtl-optimization/48156
17825         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17826         assume df and df_lr are not NULL.
17827
17828 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17829
17830         PR debug/48023
17831         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17832         between a call and its CALL_ARG_LOCATION note.
17833
17834 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
17835
17836         PR debug/48178
17837         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17838         between a call and its corresponding CALL_ARG_LOCATION note.
17839
17840 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
17841
17842         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17843         instead of loop. Use HARD_REGISTER_NUM_P predicate.
17844         * haifa-sched.c (setup_ref_regs): Ditto.
17845         * caller-save.c (add_used_regs_1): Ditto.
17846         * dse.c (look_for_hardregs): Ditto.
17847         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17848         * sched-rgn.c (check_live_1): Ditto.
17849
17850 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17851
17852         * c-decl.c (diagnose_mismatched_decls): Give an error for
17853         redefining a typedef with variably modified type.
17854
17855 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
17856
17857         * c-decl.c (grokfield): Don't allow typedefs for structures or
17858         unions with no tag by default.
17859         * doc/extend.texi (Unnamed Fields): Update.
17860
17861 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
17862
17863         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17864         Rewrite using indirect functions.
17865         (lwp_slwpcb): Ditto.
17866         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17867         (avx_vinsertf128<mode>): Ditto.
17868
17869 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17870
17871         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17872         unspecs.
17873
17874 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17875
17876         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17877         splitting between a call and its corresponding CALL_ARG_LOCATION note.
17878
17879 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
17880
17881         PR rtl-optimization/48170
17882         * gcse.c (hoist_code): Remove bogus asserts.
17883
17884 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
17885
17886         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17887         computation for prologue/epilogue.
17888
17889 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17890
17891         * Makefile.in (check-consistency): Remove.
17892
17893 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
17894
17895         PR debug/48176
17896         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17897         arange_table_in_use is 0, but either text_section_used or
17898         cold_text_section_used is true.  Don't call it if
17899         !info_section_emitted.
17900
17901 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
17902
17903         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17904         FUNCTION_VALUE_REGNO_P): Remove.
17905         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17906         Remove.
17907         * config/avr/avr.c (avr_ret_register): Make static inline.
17908         (avr_function_value_regno_p): New function.
17909         (avr_libcall_value): Make static. Add 'func' argument.
17910         (avr_function_value): Make static. Rename 'func' argument to
17911         'fn_decl_or_type', forward it to avr_libcall_value. Call
17912         avr_ret_register function instead of RET_REGISTER macro.
17913         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17914
17915 2011-03-18  Jason Merrill  <jason@redhat.com>
17916
17917         PR c++/23372
17918         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17919
17920 2011-03-18  Richard Guenther  <rguenther@suse.de>
17921
17922         * doc/install.texi (--enable-gold): Remove.
17923         (--with-plugin-ld): Document.
17924         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17925
17926 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
17927
17928         PR middle-end/47790
17929         * expr.c (optimize_bitfield_assignment_op): Revamp to work
17930         again after expansion changes.
17931
17932 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
17933
17934         * combine.c (try_combine): Do simplification only call of
17935         subst() on i2 even when i1 is present. Update comments.
17936
17937 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17938
17939         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17940         and UNSPEC_PCREL_SYMOFF.
17941
17942 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17943
17944         * config/s390/s390.md: Use define_c_enum for the unspec constant
17945         definitions.
17946
17947 2011-03-18  Richard Henderson  <rth@redhat.com>
17948             Jakub Jelinek  <jakub@redhat.com>
17949
17950         PR bootstrap/48161
17951         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17952         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17953
17954 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17955
17956         PR middle-end/47725
17957         * combine.c (cant_combine_insn_p): Don't check zero/sign
17958         extended hard registers.
17959
17960 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17961
17962         PR middle-end/47725
17963         * combine.c (cant_combine_insn_p): Check zero/sign extended
17964         hard registers.
17965
17966 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
17967
17968         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17969         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17970         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17971         Change return type to bool.
17972         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17973
17974 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
17975
17976         PR debug/48163
17977         * var-tracking.c (prepare_call_arguments): If CALL target
17978         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17979         pc instead of looking it up using cselib_lookup and use
17980         Pmode for it if x has VOIDmode.
17981         * dwarf2out.c (gen_subprogram_die): If also both first and
17982         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17983
17984         PR debug/48163
17985         * function.c (assign_parms): For data.passed_pointer parms
17986         use MEM of data.entry_parm instead of data.entry_parm itself
17987         as DECL_INCOMING_RTL.
17988         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17989         also when passed and declared mode is the same, DECL_RTL
17990         is a MEM with pseudo as address and DECL_INCOMING_RTL is
17991         a MEM too.
17992
17993 2011-03-16  Jeff Law  <law@redhat.com>
17994
17995         PR rtl-optimization/37273
17996         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17997         handle them like argument loads from stack slots.  Do not double
17998         count memory for memory constants and argument loads from stack slots.
17999
18000 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18001
18002         PR debug/48160
18003         * var-tracking.c (prepare_call_arguments): Check SUBREG.
18004
18005 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18006
18007         PR target/48171
18008         * config/i386/i386.opt: Add Save to -mavx and -mfma.
18009
18010 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18011
18012         PR bootstrap/48153
18013         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
18014         if dwarf_strict.
18015         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
18016         Clear call_arg_locations and call_arg_loc_last always.
18017
18018         PR middle-end/48152
18019         * var-tracking.c (prepare_call_arguments): If argument needs to be
18020         passed by reference, adjust argtype and mode.
18021
18022 2011-03-17  Richard Guenther  <rguenther@suse.de>
18023
18024         PR middle-end/48134
18025         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
18026         a value make sure to fold the statement.
18027
18028 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
18029
18030         PR target/43872
18031         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
18032         return condition with !cfun->calls_alloca.
18033
18034 2011-03-17  Richard Guenther  <rguenther@suse.de>
18035
18036         PR bootstrap/48148
18037         * lto-cgraph.c (input_overwrite_node): Clear the abstract
18038         origin for decls in other ltrans units.
18039         (input_varpool_node): Likewise.
18040
18041 2011-03-17  Richard Guenther  <rguenther@suse.de>
18042
18043         PR middle-end/48165
18044         * tree-object-size.c (compute_object_offset): Properly return
18045         the offset operand of MEM_REFs as sizetype.
18046
18047 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
18048
18049         PR rtl-optimization/48141
18050         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
18051         * dse.c: Include params.h.
18052         (active_local_stores_len): New variable.
18053         (add_wild_read, dse_step1): Clear it when setting active_local_stores
18054         to NULL.
18055         (record_store, check_mem_read_rtx): Decrease it when removing
18056         from the chain.
18057         (scan_insn): Likewise.  Increase it when adding to chain, if it
18058         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
18059         set active_local_stores to NULL before the addition.
18060         * Makefile.in (dse.o): Depend on $(PARAMS_H).
18061
18062         PR rtl-optimization/48141
18063         * dse.c (record_store): If no positions are needed in an insn
18064         that cannot be deleted, at least unchain it from active_local_stores.
18065
18066 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
18067
18068         PR debug/47510
18069         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
18070         (lookup_type_die_strip_naming_typedef): ... here.
18071         (get_context_die): Use it.
18072         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
18073         the anonymous struct named by the naming typedef.
18074
18075 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18076
18077         PR target/48154
18078         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
18079         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18080
18081 2011-03-16  Jeff Law  <law@redhat.com>
18082
18083         * tree-vrp.c (identify_jump_threads): Slightly simplify type
18084         check for operands of conditional.  Allow type to be a pointer.
18085
18086 2011-03-16  Richard Guenther  <rguenther@suse.de>
18087
18088         PR tree-optimization/48149
18089         * fold-const.c (fold_binary_loc): Fold
18090         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
18091
18092 2011-03-16  Richard Guenther  <rguenther@suse.de>
18093
18094         PR tree-optimization/26134
18095         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
18096         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
18097         (non_rewritable_mem_ref_base): Handle complex type component
18098         accesses, constrain offsets for vector and complex extracts
18099         more properly.
18100
18101 2011-03-16  Richard Guenther  <rguenther@suse.de>
18102
18103         PR tree-optimization/48146
18104         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
18105         operands avoiding the need for renaming.
18106
18107 2011-03-16  Richard Guenther  <rguenther@suse.de>
18108
18109         * gimple-fold.c (maybe_fold_reference): Open-code relevant
18110         constant folding.  Move MEM_REF canonicalization first.
18111         Rely on fold_const_aggregate_ref for initializer folding.
18112         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
18113
18114 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
18115
18116         PR middle-end/48136
18117         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18118         arg0/arg1 or their arguments are always fold converted to matching
18119         types.
18120
18121         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
18122         to nargs.
18123
18124 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18125
18126         PR lto/46944
18127         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
18128         Handle in-tree gold.
18129         (ld_vers): Extract binutils version for gold.
18130         (gcc_cv_ld_hidden): Handle gold here.
18131         (gcc_cv_lto_plugin): Determine level of linker plugin support.
18132         * configure: Regenerate.
18133         * config.in: Regenerate.
18134         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
18135         -fuse-linker-plugin otherwise.
18136         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
18137         (LINK_COMMAND_SPEC): Use it.
18138         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
18139
18140 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
18141
18142         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
18143         * calls.c: Remove debug.h include.
18144         (emit_call_1): Don't call virtual_call_token debug hook.
18145         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
18146         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
18147         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
18148         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
18149         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
18150         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
18151         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
18152         dwarf2out_virtual_call): Remove.
18153         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
18154         copy_call_info and virtual_call hooks.
18155         (dwarf2out_init): Don't initialize vcall_insn_table,
18156         debug_dcall_section and debug_vcall_section.
18157         (prune_unused_types): Don't mark nodes from dcall_table.
18158         (dwarf2out_finish): Don't output dcall or vcall tables.
18159         * final.c (final_scan_insn): Don't call direct_call or
18160         virtual_call debug hooks.
18161         * debug.h (struct gcc_debug_hooks): Remove direct_call,
18162         virtual_call_token, copy_call_info and virtual_call hooks.
18163         (debug_nothing_uid): Remove prototype.
18164         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
18165         copy_call_info and virtual_call hooks.
18166         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18167         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
18168         * debug.c (do_nothing_debug_hooks): Likewise.
18169         (debug_nothing_uid): Remove.
18170         * doc/invoke.texi (-fenable-icf-debug): Remove.
18171         * common.opt (-fenable-icf-debug): Likewise.
18172
18173         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
18174         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
18175         call's MEM.  Handle functions returning aggregate through a hidden
18176         first pointer.  For virtual calls add clobbered pc to call arguments
18177         chain.
18178         * dwarf2out.c (gen_subprogram_die): Emit
18179         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
18180         can't be emitted.
18181
18182         PR debug/45882
18183         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
18184         * rtl.h (ENTRY_VALUE_EXP): Define.
18185         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
18186         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
18187         * print-rtl.c (print_rtx): Likewise.
18188         * gengtype.c (adjust_field_rtx_def): Likewise.
18189         * var-tracking.c (vt_add_function_parameter): Adjust
18190         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
18191         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
18192         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
18193         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
18194         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
18195
18196         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
18197         Call var_location debug hook even on CALL_INSNs.
18198         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
18199         * rtl.def (ENTRY_VALUE): New.
18200         * dwarf2out.c: Include cfglayout.h.
18201         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18202         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
18203         (struct call_arg_loc_node): New type.
18204         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
18205         tail_call_site_count): New variables.
18206         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
18207         DW_TAG_GNU_call_site_parameter.
18208         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
18209         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
18210         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
18211         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
18212         and DW_AT_GNU_all_source_call_sites.
18213         (mem_loc_descriptor): Handle ENTRY_VALUE.
18214         (add_src_coords_attributes): Don't add enything if
18215         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
18216         (dwarf2out_abstract_function): Save and clear call_arg_location,
18217         call_site_count and tail_call_site_count around dwarf2out_decl call.
18218         (gen_call_site_die): New function.
18219         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
18220         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
18221         (dwarf2out_function_decl): Clear call_arg_locations,
18222         call_arg_loc_last, set call_site_count and tail_call_site_count
18223         to -1 and free block_map.
18224         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
18225         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
18226         followed by any real instructions.
18227         (dwarf2out_begin_function): Set call_site_count and
18228         tail_call_site_count to 0.
18229         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
18230         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
18231         attempt to force a DIE for it and worst case remove the attribute.
18232         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
18233         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
18234         the decl itself.
18235         * var-tracking.c: Include tm_p.h.
18236         (vt_stack_adjustments): For calls call note_register_arguments.
18237         (argument_reg_set): New variable.
18238         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
18239         ensure the VALUE is resolved.
18240         (call_arguments): New variable.
18241         (prepare_call_arguments): New function.
18242         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
18243         (struct expand_loc_callback_data): Add ignore_cur_loc field.
18244         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
18245         always use the best expression.
18246         (vt_expand_loc): Add ignore_cur_loc argument.
18247         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
18248         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
18249         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
18250         note for all calls.
18251         (vt_add_function_parameter): Use cselib_lookup_from_insn.
18252         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
18253         argument.  Don't call cselib_preserve_only_values and
18254         cselib_reset_table.
18255         (note_register_arguments): New function.
18256         (vt_initialize): Compute argument_reg_set.  Call
18257         vt_add_function_parameters before processing basic blocks instead of
18258         afterwards.  For calls call prepare_call_arguments before calling
18259         cselib_process_insn.
18260         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
18261         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
18262         (var-tracking.o): Depend on $(TM_P_H).
18263         * cfglayout.h (insn_scope): New prototype.
18264         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
18265         * cfglayout.c (insn_scope): No longer static.
18266         * insn-notes.def (CALL_ARG_LOCATION): New.
18267         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
18268         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
18269         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
18270         nothing for DECL_EXTERNAL BLOCK_VARS.
18271
18272 2011-03-16  Alan Modra  <amodra@gmail.com>
18273
18274         PR target/45844
18275         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18276         create invalid offset address for vsx splat insn.
18277         * config/rs6000/predicates.md (splat_input_operand): New.
18278         * config/rs6000/vsx.md (vsx_splat_*): Use it.
18279
18280 2011-03-15  Xinliang David Li  <davidxl@google.com>
18281
18282         PR c/47837
18283         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
18284         (normalize_preds): New function.
18285         (is_use_properly_guarded): Normalize def predicates.
18286
18287 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18288
18289         PR target/46788
18290         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
18291         in the output template.
18292
18293 2011-03-15  Richard Guenther  <rguenther@suse.de>
18294
18295         PR middle-end/47650
18296         * tree-pretty-print.c (dump_function_declaration): Properly
18297         dump unprototyped and varargs function types.
18298
18299 2011-03-15  Richard Guenther  <rguenther@suse.de>
18300
18301         PR tree-optimization/13954
18302         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
18303         and friends.
18304
18305 2011-03-15  Richard Guenther  <rguenther@suse.de>
18306
18307         PR tree-optimization/48037
18308         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
18309         selects into BIT_FIELD_REFs.
18310         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
18311         vector select.
18312
18313 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
18314
18315         PR tree-optimization/48129
18316         * builtins.c (fold_builtin_snprintf): Convert to type of
18317         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
18318         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
18319
18320 2011-03-15  Richard Guenther  <rguenther@suse.de>
18321
18322         PR tree-optimization/41490
18323         * tree-ssa-dce.c (propagate_necessity): Handle returns without
18324         value but with VUSE.
18325         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
18326         return statements.
18327         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
18328         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
18329         * tree-tailcall.c (find_tail_calls): Ignore returns.
18330
18331 2011-03-15  Richard Guenther  <rguenther@suse.de>
18332
18333         PR middle-end/48031
18334         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
18335         or variable-indexed array accesses when in gimple form.
18336
18337 2011-03-15  Richard Guenther  <rguenther@suse.de>
18338
18339         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
18340
18341 2011-03-15  Alan Modra  <amodra@gmail.com>
18342
18343         PR target/48032
18344         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
18345         presume symbol_refs without a symbol_ref_decl are suitably
18346         aligned, nor other trees we may see here.  Handle anchor symbols.
18347         (legitimate_constant_pool_address_p): Comment.  Add mode param.
18348         Check cmodel=medium addresses.  Adjust all calls.
18349         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
18350         creating cmodel=medium optimized access to locals.
18351         * config/rs6000/constraints.md (R): Pass QImode to
18352         legitimate_constant_pool_address_p.
18353         * config/rs6000/predicates.md (input_operand): Pass mode to
18354         legitimate_constant_pool_address_p.
18355         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
18356         Update prototype.
18357
18358 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18359
18360         PR target/48053
18361         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
18362         64-bit constants being loaded into registers other than GPRs such
18363         as loading 0 into a VSX register.
18364
18365 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18366
18367         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
18368
18369 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
18370
18371         PR middle-end/47917
18372         * builtins.c (fold_builtin_snprintf): New function.
18373         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
18374         (fold_builtin_4): Likewise.
18375
18376         PR middle-end/38878
18377         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
18378         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
18379         and C - X == X also strip nops from +/-/p+ operand.
18380         When optimizing -X == C, fold C to arg0's type.
18381
18382         PR debug/47946
18383         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
18384         emit it as add_AT_int instead of add_AT_unsigned.
18385
18386 2011-03-14  Tom Tromey  <tromey@redhat.com>
18387
18388         * unwind-dw2.c: Include sys/sdt.h if it exists.
18389         (_Unwind_DebugHook): Use STAP_PROBE2.
18390         * config.in, configure: Rebuild.
18391         * configure.ac: Check for sys/sdt.h.
18392
18393 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
18394
18395         * config/i386/i386.md (ROUND_FLOOR): New constant.
18396         (ROUND_CEIL): Ditto.
18397         (ROUND_TRUNC): Ditto.
18398         (ROUND_MXCSR): Ditto.
18399         (ROUND_NO_EXC): Ditto.
18400         (rint<mode>2): Use new defines instead of numerical constants.
18401         (floor<mode>2): Ditto.
18402         (ceil<mode>2): Ditto.
18403         (btrunc<mode>2): Ditto.
18404         * config/i386/i386-builtin-types.def: Define ROUND function type
18405         aliases.
18406         * config/i386/i386.c (enum ix86_builtins): Add
18407         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
18408         (struct builtin_description): Add
18409         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
18410         (ix86_expand_sse_round): New static function.
18411         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
18412         function types.
18413         (ix86_builtin_vectorized_function): Handle
18414         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18415
18416 2011-03-14  Tom Tromey  <tromey@redhat.com>
18417
18418         * c-parser.c (c_parser_asm_string_literal): Clear
18419         warn_overlength_strings.
18420
18421 2011-03-14  Tom Tromey  <tromey@redhat.com>
18422
18423         * c-parser.c (disable_extension_diagnostics): Save
18424         warn_overlength_strings.
18425         (restore_extension_diagnostics): Restore warn_overlength_strings.
18426
18427 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
18428
18429         * BASE-VER: Change to 4.7.0.
18430
18431 2011-03-14  Richard Guenther  <rguenther@suse.de>
18432
18433         PR middle-end/48098
18434         * tree.c (build_vector_from_val): Adjust assert to requirements
18435         and reality.
18436
18437 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
18438
18439         PR bootstrap/48102
18440         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
18441
18442 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
18443
18444         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
18445         terms of target_flags_explicit. Adjust copyright year.
18446
18447         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
18448         * config/rs6000/t-freebsd: New file. Add override for
18449         LIB2FUNCS_EXTRA.
18450
18451 2011-03-13  Chris Demetriou  <cgd@google.com>
18452
18453         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
18454         (-fno-diagnostics-show-option): this, to reflect current default.
18455         (-Werror=): Update text about -fno-diagnostics-show-option.
18456
18457 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
18458
18459         PR target/48053
18460         * config/rs6000/predicates.md (easy_vector_constant_add_self,
18461         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
18462         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
18463         mode is not V2DImode or V2DFmode.
18464         (vspltis_constant): Do not handle V2DImode and V2DFmode.
18465         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
18466         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
18467         registers to 0.
18468         (movdi_internal64): Likewise.
18469
18470 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
18471
18472         PR tree-optimization/47127
18473         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
18474         parameter.
18475         (set_cloog_options): Same.
18476         (scop_to_clast): Same.
18477         (print_clast_stmt): Do not call cloog_state_malloc and
18478         cloog_state_free.
18479         (print_generated_program): Same.
18480         (gloog): Same.
18481         * graphite-clast-to-gimple.h (cloog_state): Declared.
18482         (scop_to_clast): Adjust declaration.
18483         * graphite.c (cloog_state): Defined here.
18484         (graphite_initialize): Call cloog_state_malloc.
18485         (graphite_finalize): Call cloog_state_free.
18486
18487 2011-03-11  Jason Merrill  <jason@redhat.com>
18488
18489         * attribs.c (lookup_attribute_spec): Take const_tree.
18490         * tree.h: Adjust.
18491
18492 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
18493
18494         * config/sparc/sparc.c (sparc_option_override): Use
18495         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
18496
18497 2011-03-11  Richard Guenther  <rguenther@suse.de>
18498
18499         PR tree-optimization/48067
18500         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
18501         multiplication result will be only used once on the target
18502         stmt.
18503
18504 2011-03-11  Richard Guenther  <rguenther@suse.de>
18505
18506         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
18507
18508 2011-03-11  Richard Guenther  <rguenther@suse.de>
18509
18510         PR lto/48073
18511         * tree.c (find_decls_types_r): Do not walk types only reachable
18512         from IDENTIFIER_NODEs.
18513
18514 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
18515
18516         PR middle-end/48044
18517         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
18518         all vnode->force_output nodes as needed.
18519
18520 2011-03-11  Jason Merrill  <jason@redhat.com>
18521
18522         PR c++/48069
18523         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
18524         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
18525
18526 2011-03-11  Martin Jambor  <mjambor@suse.cz>
18527
18528         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
18529         cgraph_node.
18530
18531 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
18532
18533         PR tree-optimization/48063
18534         * ipa-inline.c (cgraph_decide_inlining): Don't try to
18535         inline functions called once if !tree_can_inline_p (node->callers).
18536
18537 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
18538
18539         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
18540         extra_objs.
18541         * config/score/score3.c: Delete.
18542         * config/score/score3.h: Delete.
18543         * config/score/mul-div.S: Delete.
18544         * config/score/sfp-machine.h: Add new file.
18545         * config/score/constraints.md: Add new file.
18546         * config/score/t-score-softfp: Add new file.
18547         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
18548         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
18549         (score7_extra_constraint): Delete.
18550         (score7_option_override): Remove unused code.
18551         * config/score/score.c: Remove score3 and score5 define and code.
18552         * config/score/score.h: Remove score3 and score5 define and code.
18553         * config/score/score.md: Remove score3 template and unusual insn.
18554         * config/score/score.opt: Remove score3 and score5 options.
18555
18556 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18557
18558         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
18559         when _HPUX_SOURCE is defined.
18560         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
18561
18562 2011-03-10  Jason Merrill  <jason@redhat.com>
18563
18564         PR c++/48029
18565         * stor-layout.c (layout_type): Don't set structural equality
18566         on arrays of incomplete type.
18567         * tree.c (type_hash_eq): Handle comparing them properly.
18568
18569 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18570
18571         PR debug/48043
18572         * config/s390/s390.c (s390_delegitimize_address): Make sure the
18573         result mode matches original rtl mode.
18574
18575 2011-03-10  Nick Clifton  <nickc@redhat.com>
18576
18577         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
18578         (andsi3, andsi3_flags): Fix timings for three operand alternative.
18579
18580 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
18581
18582         PR rtl-optimization/47866
18583         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
18584         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
18585         if target wasn't scalar.
18586         * function.c (assign_stack_temp_for_type): Assert that neither
18587         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
18588         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
18589         macro.
18590         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
18591
18592 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18593
18594         * config/s390/s390-protos.h (s390_label_align): New prototype.
18595         * config/s390/s390.c (s390_label_align): New function.
18596         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
18597
18598 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
18599
18600         PR target/47755
18601         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
18602         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
18603         (output_vec_const_move): Ditto.
18604
18605 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
18606
18607         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
18608         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
18609         * config/mips/mips.c (mips_preferred_reload_class): Make static.
18610         Change 'rclass' argument and result type to reg_class_t.
18611         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18612
18613 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
18614
18615         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18616         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
18617         (TARGET_MEMORY_MOVE_COST): Define.
18618         (avr_register_move_cost, avr_memory_move_cost): New Functions.
18619
18620 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
18621
18622         PR debug/47881
18623         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18624         removed anything.
18625
18626         PR tree-optimization/48022
18627         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18628         for EQ/NE_EXPR.
18629
18630 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
18631
18632         PR debug/47991
18633         * var-tracking.c (find_use_val): Return NULL for
18634         cui->sets && cui->store_p BLKmode MEMs.
18635
18636 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
18637
18638         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18639         Remove.
18640         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18641         xstormy16_print_operand_address): Remove.
18642         * config/stormy16/stormy16.c (xstormy16_print_operand,
18643         xstormy16_print_operand_address): Make static.
18644         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18645
18646 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
18647
18648         PR target/47862
18649         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18650         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18651         before definition.
18652
18653 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
18654
18655         PR bootstrap/48000
18656         * cfgloopmanip.c (fix_bb_placements): Return immediately
18657         if FROM is BASE_LOOP's header.
18658
18659 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
18660
18661         * gimplify.c (gimplify_function_tree): Fix building calls
18662         to __builtin_return_address.
18663
18664 2011-03-07  Alan Modra  <amodra@gmail.com>
18665
18666         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18667         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18668         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18669         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18670         return_mode args.
18671         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18672         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18673         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18674         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18675         * config/rs6000/rs6000.c
18676         (rs6000_elf_end_indicate_exec_stack): Rename to..
18677         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
18678         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
18679         (rs6000_file_start): ..here.
18680         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18681         file scope variables.
18682         (call_ABI_of_interest): New function.
18683         (init_cumulative_args): Set above vars when function return value
18684         is a float, vector, or small struct.
18685         (rs6000_function_arg_advance_1): Likewise for function args.
18686         (rs6000_va_start): Set rs6000_passes_float if variable arg function
18687         references float args.
18688
18689 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
18690
18691         * doc/cfg.texi: Remove "See" before @ref.
18692         * doc/invoke.texi: Likewise.
18693
18694 2011-03-05  Jason Merrill  <jason@redhat.com>
18695
18696         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18697
18698 2011-03-05  Anthony Green  <green@moxielogic.com>
18699
18700         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18701
18702 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
18703
18704         PR rtl-optimization/47899
18705         * cfgloopmanip.c (fix_bb_placements): Fix first argument
18706         to flow_loop_nested_p when moving the loop upward.
18707
18708 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
18709
18710         PR target/47719
18711         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
18712
18713 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
18714
18715         PR tree-optimization/47967
18716         * ipa-cp.c (build_const_val): Return NULL instead of creating
18717         VIEW_CONVERT_EXPR for mismatching sizes.
18718         (ipcp_create_replace_map): Return NULL if build_const_val failed.
18719         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18720         give up on versioning.
18721
18722 2011-03-05  Alan Modra  <amodra@gmail.com>
18723
18724         PR target/47986
18725         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18726         full cmodel medium/large lo_sum + high addresses.
18727
18728 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18729
18730         * config/s390/s390.c (s390_decompose_address): Reject non-literal
18731         pool references in UNSPEC_LTREL_OFFSET.
18732
18733 2011-03-04  Jan Hubicka  <jh@suse.cz>
18734
18735         PR lto/47497
18736         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18737         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18738         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18739         Add node pointers.
18740         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18741         cgraph_add_thunk): Add node pointers.
18742         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18743         associated to right node.
18744         (input_node): Update use of cgraph_same_body_alias
18745         and cgraph_add_thunk.
18746
18747 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
18748
18749         * config/i386/i386.opt (mprefer-avx128): New flag.
18750         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18751         modes when the flag -mprefer-avx128 is on.
18752
18753 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
18754
18755         * dwarf2out.c (compare_loc_operands): Fix address handling.
18756
18757 2011-03-04  Alan Modra  <amodra@gmail.com>
18758
18759         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18760
18761 2011-03-04  Richard Guenther  <rguenther@suse.de>
18762
18763         PR middle-end/47968
18764         * expmed.c (extract_bit_field_1): Prefer vector modes that
18765         vec_extract patterns can handle.
18766
18767 2011-03-04  Richard Guenther  <rguenther@suse.de>
18768
18769         PR middle-end/47975
18770         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18771
18772 2011-03-04  Richard Henderson  <rth@redhat.com>
18773
18774         * explow.c (emit_stack_save): Remove 'after' parameter.
18775         (emit_stack_restore): Likewise.
18776         * expr.h: Update to match.
18777         * builtins.c, calls.c, stmt.c: Likewise.
18778         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18779         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18780         * function.c (expand_function_end): Insert the emit_stack_save
18781         sequence before parm_birth_insn instead of after.
18782
18783 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
18784
18785         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18786         (ssse3_pmaddubsw128): Ditto.
18787         (ssse3_pmaddubsw): Ditto.
18788
18789 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
18790
18791         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18792
18793 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
18794
18795         PR c/47963
18796         * gimplify.c (omp_add_variable): Only call omp_notice_variable
18797         on TYPE_SIZE_UNIT if it is a DECL.
18798
18799         PR debug/47283
18800         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18801         first operand is not is_gimple_mem_ref_addr, try to fold it.
18802         If the operand still isn't is_gimple_mem_ref_addr, clear
18803         MEM_EXPR on op0.
18804
18805 2011-03-03  Richard Guenther  <rguenther@suse.de>
18806
18807         PR middle-end/47283
18808         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18809         match comment.
18810         (refs_may_alias_p_1): For release branches return true if
18811         we are confused by our input.
18812
18813 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18814
18815         * config/s390/s390.c (s390_function_value): Rename to ...
18816         (s390_function_and_libcall_value): ... this.
18817         (s390_function_value): New function.
18818         (s390_libcall_value): New function.
18819         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18820         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18821         target macro definitions.
18822         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18823
18824 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
18825
18826         * config/i386/freebsd64.h (CC1_SPEC): Define.
18827         * config/i386/linux64.h (CC1_SPEC): Define.
18828         * config/i386/x86-64.h (CC1_SPEC): Don't define.
18829
18830 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
18831
18832         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18833         Remove.
18834         * config/stormy16/stormy16.c: Include reload.h.
18835         (xstormy16_memory_move_cost): New function.
18836         (TARGET_MEMORY_MOVE_COST): Define.
18837
18838 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
18839
18840         PR rtl-optimization/47925
18841         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18842         with side effects.  Remove the more-specific check for volatile asms.
18843
18844 2011-03-02  Alan Modra  <amodra@gmail.com>
18845
18846         PR target/47935
18847         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18848         toc relative addresses for valid offsets.
18849
18850 2011-03-01  Richard Guenther  <rguenther@suse.de>
18851
18852         PR tree-optimization/47890
18853         * tree-vect-loop.c (get_initial_def_for_induction): Set
18854         related stmt properly.
18855
18856 2011-03-01  Richard Guenther  <rguenther@suse.de>
18857
18858         PR lto/47924
18859         * lto-streamer.c (lto_record_common_node): Also register
18860         the canonical type.
18861
18862 2011-03-01  Richard Guenther  <rguenther@suse.de>
18863
18864         PR lto/46911
18865         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18866         Do not stream DECL_ABSTRACT_ORIGIN.
18867         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18868         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18869         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18870         Do not stream DECL_ABSTRACT_ORIGIN.
18871         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18872         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18873
18874 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
18875
18876         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18877         FUNCTION_VALUE_REGNO_P): Remove.
18878         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18879         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18880         Add 'outgoing' argument.
18881         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18882         function.
18883         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18884         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18885
18886 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
18887
18888         PR debug/28047
18889         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18890         (lookup_filename): Likewise.
18891         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18892
18893 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
18894             Jakub Jelinek  <jakub@redhat.com>
18895
18896         PR middle-end/47893
18897         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18898         (assign_stack_local_1): Change last argument type to int.
18899         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18900         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
18901         don't record padding space into frame_space_list nor use those areas.
18902         (assign_stack_local): Adjust caller.
18903         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18904         of assign_stack_local, pass 0 as last argument.
18905         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18906         callers.
18907
18908 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
18909
18910         PR debug/47283
18911         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18912         Use target address_mode and pointer_mode hooks instead of hardcoded
18913         Pmode and ptr_mode.  Handle some simple cases of extending if
18914         POINTERS_EXTEND_UNSIGNED < 0.
18915         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18916         Call convert_debug_memory_address.
18917         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18918         convert_debug_memory_address.
18919
18920         PR middle-end/46790
18921         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18922         * configure: Regenerated.
18923         * config.in: Regenerated.
18924         * varasm.c (default_function_section): Return NULL
18925         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18926
18927 2011-02-28  Martin Jambor  <mjambor@suse.cz>
18928
18929         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18930         the description to match the printed values.
18931
18932 2011-02-28  Richard Guenther  <rguenther@suse.de>
18933
18934         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18935         of the copied scope tree.
18936
18937 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18938
18939         * doc/extend.texi (Function Attributes): Avoid deeply (and
18940         wrongly) nested tables.
18941
18942 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18943
18944         PR middle-end/47903
18945         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18946         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18947         r isn't op0 nor op1.
18948
18949 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18950
18951         * config/avr/avr.md: Remove magic comment for emacs.
18952
18953 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
18954
18955         PR target/45261
18956         * config/avr/avr.c (avr_option_override): Use error on bad options.
18957         (avr_help): New function.
18958         (TARGET_HELP): Define.
18959
18960 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
18961
18962         PR target/42240
18963         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18964         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18965
18966 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
18967
18968         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18969         (ARM Options): Ditto.
18970         (i386 and x86-64 Options): Ditto.
18971         (RX Options): Ditto.
18972         (SPARC Options): Ditto.
18973
18974 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
18975
18976         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18977         FreeBSD 6 and later.  Generally use cpu generic.
18978
18979 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
18980
18981         * doc/cpp.texi: Update copyright years.
18982
18983 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
18984
18985         PR target/46898
18986         * config/lm32/lm32.md (ashrsi3): Added needed variable.
18987
18988 2011-02-25  Jon Beniston  <jon@beniston.com>
18989
18990         PR target/46898
18991         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18992         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18993         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18994         (lm32_block_move_inline): Add type cast to remove warning.
18995         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18996         (gen_int_relational): Move declarations to start of function.
18997
18998 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
18999
19000         PR tree-optimization/45470
19001         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
19002         can throw internally only.
19003         * tree-vect-stmts.c (vectorizable_call): Likewise.
19004
19005 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
19006
19007         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
19008         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19009         * config/stormy16/stormy16-protos.h
19010         (xstormy16_preferred_reload_class): Remove.
19011         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
19012         static. Change 'rclass' argument and return type to reg_class_t.
19013         (TARGET_PREFERRED_RELOAD_CLASS,
19014         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19015
19016 2011-02-24  Richard Guenther  <rguenther@suse.de>
19017
19018         * lto-streamer-in.c (input_bb): Do not find referenced vars
19019         in debug statements.
19020
19021 2011-02-23  Jason Merrill  <jason@redhat.com>
19022
19023         * common.opt (fabi-version): Document v5 and v6.
19024
19025 2011-02-23  Richard Guenther  <rguenther@suse.de>
19026
19027         PR tree-optimization/47849
19028         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
19029
19030 2011-02-23  Jie Zhang  <jie@codesourcery.com>
19031
19032         * opts-common.c (decode_cmdline_option): Print empty string
19033         argument as "" in decoded->orig_option_with_args_text.
19034         * gcc.c (execute): Print empty string argument as ""
19035         in the verbose output.
19036         (do_spec_1): Keep empty string argument.
19037
19038 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
19039
19040         * config.gcc: Declare score-* and crx-* obsolete.
19041
19042 2011-02-23  Jie Zhang  <jie@codesourcery.com>
19043
19044         PR rtl-optimization/47763
19045         * web.c (web_main): Ignore naked clobber when replacing register.
19046
19047 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
19048
19049         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19050         Remove.
19051
19052 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19053
19054         PR doc/47848
19055         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
19056
19057 2011-02-22  Mike Stump  <mikestump@comcast.net>
19058
19059         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
19060         assembler.
19061         * configure: Regenerate.
19062
19063 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
19064
19065         PR rtl-optimization/46002
19066         * ira-color.c (update_copy_costs): Change class intersection
19067         test to reg_class_contents[] test of 'hard_regno'.
19068
19069 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
19070
19071         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
19072         than Driver option.
19073         * config/hpux11.opt (mt): Likewise.
19074         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
19075         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
19076         * config/vax/elf.opt (mno-asm-pic): Likewise.
19077         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
19078
19079 2011-02-21  Mike Stump  <mikestump@comcast.net>
19080
19081         PR target/47822
19082         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
19083         tree so we can get save the type.
19084         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
19085         for CFString instead of trying to use past the end of the builtins.
19086         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
19087         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
19088         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
19089         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
19090         Rename to darwin_builtin_cfstring.
19091         (darwin_init_cfstring_builtins): Return the built type.
19092
19093 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
19094
19095         PR target/47840
19096         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
19097         (_mm256_insert_epi64): Use _mm_insert_epi64.
19098
19099 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
19100
19101         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19102         * config/stormy16/stormy16-protos.h
19103         (xstormy16_mode_dependent_address_p): Remove.
19104         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
19105         Make static. Change return type to bool. Change argument type to
19106         const_rtx. Remove dead code.
19107         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19108
19109 2011-02-21  Richard Guenther  <rguenther@suse.de>
19110
19111         PR lto/47820
19112         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19113         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19114         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
19115         TUs context.
19116         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19117         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19118
19119 2011-02-20  Richard Guenther  <rguenther@suse.de>
19120
19121         PR lto/47822
19122         * tree.c (free_lang_data_in_decl): Clean builtins from
19123         the TU decl BLOCK_VARS.
19124
19125 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
19126
19127         PR debug/47620
19128         PR debug/47630
19129         * haifa-sched.c (fix_tick_ready): Skip tick computation
19130         for debug insns.
19131
19132 2011-02-19  Richard Guenther  <rguenther@suse.de>
19133
19134         PR lto/47647
19135         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
19136         Remove lazy BLOCK_VARS streaming.
19137         (lto_input_ts_block_tree_pointers): Likewise.
19138         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
19139
19140 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
19141
19142         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
19143
19144 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
19145
19146         * config/i386/biarch32.h, config/i386/mach.h,
19147         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
19148
19149 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
19150
19151         PR target/47800
19152         * config/i386/i386.md (peephole2 for shift and plus): Use
19153         operands[1] original mode in the first insn.
19154
19155 2011-02-18  Mike Stump  <mikestump@comcast.net>
19156
19157         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
19158
19159 2011-02-18  Jan Hubicka  <jh@suse.cz>
19160
19161         PR middle-end/47788
19162         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
19163         to zero when the function is not inlinable at all.
19164
19165 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19166
19167         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
19168         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19169         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
19170         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
19171         * config/pa/t-pa64: Likewise.
19172         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19173
19174 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
19175
19176         PR driver/47787
19177         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
19178
19179 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19180
19181         PR target/47792
19182         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
19183
19184 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
19185
19186         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19187         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
19188         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
19189         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19190         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
19191         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
19192         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
19193         m32r_load_postinc_p, m32r_store_preinc_predec_p,
19194         m32r_legitimate_address_p): New functions.
19195         * config/m32r/constraints.md (constraint "S"): Don't use
19196         STORE_PREINC_PREDEC_P.
19197         (constraint "U"): Don't use LOAD_POSTINC_P.
19198
19199 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
19200
19201         PR rtl-optimization/46178
19202         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
19203         compute ira_hard_regno_cover_class[].
19204
19205 2011-02-18  Richard Guenther  <rguenther@suse.de>
19206
19207         PR lto/47798
19208         * lto-streamer.h (lto_global_var_decls): Declare.
19209         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
19210         statics for global var processing.
19211
19212 2011-02-18  Richard Guenther  <rguenther@suse.de>
19213
19214         PR tree-optimization/47737
19215         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
19216         edge dominance check.
19217
19218 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
19219
19220         PR debug/47780
19221         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
19222         avoid invalid rtx sharing.
19223
19224 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
19225
19226         * doc/cpp.texi (Obsolete Features): Add background on the
19227         origin of assertions.
19228
19229 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
19230
19231         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
19232         objc_abi == 2.
19233         * config/darwin.c (output_objc_section_asm_op): Added support for
19234         ABI v1 and v2.
19235         (is_objc_metadata): New.
19236         (darwin_objc2_section): New.
19237         (darwin_objc1_section): New.
19238         (machopic_select_section): Added support for ABI v1 and v2.
19239         (darwin_emit_objc_zeroed): New.
19240         (darwin_output_aligned_bss): Detect objc metadata and treat it
19241         appropriately.
19242         (darwin_asm_output_aligned_decl_common): Same.
19243         (darwin_asm_output_aligned_decl_local): Same.
19244         * config/darwin-sections.def: Updated for ABI v1 and v2.
19245         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
19246         compiling Objective-C code for the NeXT runtime, default to using
19247         ABI version 0 for 32-bit, and version 2 for 64-bit.
19248
19249 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19250
19251         * common.opt (optimize_fast): New Variable.
19252         * opts.c (default_options_optimization): Use opts->x_optimize_fast
19253         instead of local variable ofast.
19254
19255 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
19256
19257         * doc/invoke.texi (fobjc-abi-version): Documented.
19258         (fobjc-nilcheck): Documented.
19259         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
19260         version.
19261
19262 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19263
19264         PR driver/47390
19265         * common.opt (export-dynamic): New Driver option.
19266         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
19267
19268 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19269
19270         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
19271
19272 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
19273             Jan Hubicka  <jh@suse.cz>
19274
19275         PR debug/47106
19276         PR debug/47402
19277         * cfgexpand.c (account_used_vars_for_block): Remove.
19278         (estimated_stack_frame_size): Use referenced vars.
19279         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
19280         that were referenced in the original function.  Test src_fn
19281         rather than cfun.  Drop redundant get_var_ann.
19282         (setup_one_parameter): Drop redundant get_var_ann.
19283         (declare_return_variable): Likewise.
19284         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
19285         (copy_arguments_for_versioning): Drop redundant get_var_ann.
19286         * ipa-inline.c (compute_inline_parameters): Do not compute
19287         disregard_inline_limits here.
19288         (compute_inlinable_for_current, pass_inlinable): New.
19289         (pass_inline_parameters): Require PROP_referenced_vars.
19290         * cgraphunit.c (cgraph_process_new_functions): Don't run
19291         compute_inline_parameters explicitly unless function is in SSA form.
19292         (cgraph_analyze_function): Set .disregard_inline_limits.
19293         * tree-sra.c (convert_callers): Compute inliner parameters
19294         only for functions already in SSA form.
19295
19296 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19297
19298         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
19299         -mlittle-endian-data.
19300
19301 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
19302
19303         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
19304         -mno-fpu, not -fpu and -no-fpu.
19305         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
19306         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
19307
19308 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
19309
19310         PR target/43653
19311         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
19312         input reload with PLUS RTX.
19313
19314 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19315
19316         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
19317         of InverseVar(MDMX).
19318
19319 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19320
19321         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
19322         --m4-340.
19323
19324 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19325
19326         * config/mn10300/mn10300.opt (mno-crt0): New.
19327
19328 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19329
19330         * config/m68k/uclinux.opt (static-libc): New Driver option.
19331
19332 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19333
19334         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
19335
19336 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
19337
19338         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
19339         %{muser-extend-enabled}.
19340
19341 2011-02-16  Richard Guenther  <rguenther@suse.de>
19342
19343         PR tree-optimization/47738
19344         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
19345         the TODO from tree_predictive_commoning.
19346
19347 2011-02-15  Jeff Law  <law@redhat.com>
19348
19349         Revert
19350         2011-01-25  Jeff Law  <law@redhat.com>
19351
19352         PR rtl-optimization/37273
19353         * ira-costs.c (scan_one_insn): Detect constants living in memory and
19354         handle them like argument loads from stack slots.  Do not double
19355         count memory for memory constants and argument loads from stack slots.
19356
19357 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
19358
19359         PR middle-end/47725
19360         * combine.c (cant_combine_insn_p): Revert the last change.
19361
19362 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
19363
19364         PR target/47755
19365         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
19366         mode for vector constants.  Remove code that checks for TImode.
19367
19368 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19369
19370         PR debug/47106
19371         PR debug/47402
19372         * cgraph.h (compute_inline_parameters): Return void.
19373         * ipa-inline.c (compute_inline_parameters): Adjust.
19374
19375 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19376
19377         PR debug/47106
19378         PR debug/47402
19379         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
19380         rather than decl.
19381         * cfgexpand.c (estimated_stack_frame_size): Likewise.
19382         * ipa-inline.c (compute_inline_parameters): Adjust.
19383
19384 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19385
19386         PR debug/47106
19387         PR debug/47402
19388         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
19389         Adjust all users.  Pass FN to...
19390         * tree-flow-inline.h (first_referenced_var): ... this.  Add
19391         fn argument.
19392         * ipa-struct-reorg.c: Adjust.
19393         * tree-dfa.c: Adjust.
19394         * tree-into-ssa.c: Adjust.
19395         * tree-sra.c: Adjust.
19396         * tree-ssa-alias.c: Adjust.
19397         * tree-ssa-live.c: Adjust.
19398         * tree-ssa.c: Adjust.
19399         * tree-ssanames.c: Adjust.
19400         * tree-tailcall.c: Adjust.
19401
19402 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
19403
19404         PR debug/47106
19405         PR debug/47402
19406         * tree-flow.h (referenced_var_lookup): Add fn parameter.
19407         Adjust all callers.
19408         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
19409         * tree-flow-inline.h: Adjust.
19410         * gimple-pretty-print.c: Adjust.
19411         * tree-into-ssa.c: Adjust.
19412         * tree-ssa.c: Adjust.
19413         * cfgexpand.c: Adjust.
19414
19415 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
19416
19417         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
19418         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19419         (EXTRA_CONSTRAINT): Delete.
19420         * config/iq2000/constraints.md: New file.
19421         * config/iq2000/iq2000.md: Include it.
19422         (define_insn ""): Delete.
19423         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
19424         unsupported constraint letters from patterns.
19425         (call_value, call_value_internal1): Likewise.
19426         (call_value_multiple_internal1): Likewise.
19427
19428 2011-02-15  Nick Clifton  <nickc@redhat.com>
19429
19430         * config/mn10300/mn10300.c: Include tm-constrs.h.
19431         (struct liw_data): New data structure describing an LIW candidate
19432         instruction.
19433         (extract_bundle): Use struct liw_data.  Allow small integer
19434         operands for some instructions.
19435         (check_liw_constraints): Use struct liw_data.  Remove swapped
19436         parameter.  Add comments describing the checks.  Fix bug when
19437         assigning the source of liw1 to the source of liw2.
19438         (liw_candidate): Delete.  Code moved into extract_bundle.
19439         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
19440         before swapping.
19441         * config/mn10300/predicates.md (liw_operand): New predicate.
19442         Allows registers and small integer constants.
19443         * config/mn10300/constraints.md (O): New constraint.  Accetps
19444         integers in the range -8 to +7 inclusive.
19445         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
19446         for moving a small integer into a register.  Give this alternative
19447         LIW attributes.
19448         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
19449         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
19450         using the J,K,L and M constraints,
19451         (liw): Remove SI mode on second operands to allow for HI and QI
19452         mode values.
19453         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
19454         instruction.
19455
19456 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
19457
19458         PR middle-end/47725
19459         * combine.c (cant_combine_insn_p): Check zero/sign extended
19460         hard registers.
19461
19462 2011-02-15  Richard Guenther  <rguenther@suse.de>
19463
19464         PR tree-optimization/47743
19465         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
19466         for a non-type-compatible VN lookup bail out.
19467
19468 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
19469
19470         * config/fr30/constraints.md: New file.
19471         * config/fr30/fr30.md: Include it.
19472         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
19473         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19474         (EXTRA_CONSTRAINT): Delete.
19475
19476 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
19477
19478         * config/frv/constraints.md: New file.
19479         * config/frv/predicates.md: Include it.
19480         * config/frv/frv.c (reg_class_from_letter): Delete.
19481         (frv_option_override): Don't initialize it.
19482         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
19483         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
19484         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
19485         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19486         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
19487         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19488         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
19489         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
19490         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
19491         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
19492         (REG_CLASS_FROM_CONSTRAINT): Delete.
19493
19494 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
19495
19496         PR middle-end/47581
19497         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
19498         if frame size is 0 in a leaf function.
19499
19500 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19501
19502         PR pch/14940
19503         * config/alpha/host-osf.c: New file.
19504         * config/alpha/x-osf: New file.
19505         * config.host (alpha*-dec-osf*): Use it.
19506
19507 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
19508
19509         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19510         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
19511         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
19512         (rx_mode_dependent_address_p): ...this. Make static. Change argument
19513         type to const_rtx.
19514         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19515
19516 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
19517
19518         * config/stormy16/constraints.md: New file.
19519         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
19520         Use satisfies_constraint_Q and satisfies_constraint_R.
19521         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
19522         Delete.
19523         (xstormy16_legitiamte_address_p): Declare.
19524         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
19525         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19526         (EXTRA_CONSTRAINT): Delete.
19527         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19528         Un-staticize.
19529         (xstormy16_extra_constraint_p): Delete.
19530
19531 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
19532
19533         PR tree-optimization/46494
19534         * loop-unroll.c (split_edge_and_insert): Adjust comment.
19535         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
19536         (pass_rtl_loop_done): Add TODO_verify_flow.
19537         * fwprop.c (pass_rtl_fwprop): Likewise.
19538         * modulo-sched.c (pass_sms): Likewise.
19539         * tree-ssa-dom.c (pass_dominator): Likewise.
19540         * tree-ssa-loop-ch.c (pass_ch): Likewise.
19541         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
19542         (pass_tree_loop_done): Likewise.
19543         * tree-ssa-pre.c (execute_pre): Likewise.
19544         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19545         * tree-ssa-sink.c (pass_sink_code): Likewise.
19546         * tree-vrp.c (pass_vrp): Likewise.
19547
19548 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
19549
19550         * config/v850/constraints.md: New file.
19551         * config/v850/v850.md: Include it.
19552         * config/v850/predicates.md (reg_or_0_operand): Use
19553         satisfies_constraint_G.
19554         (special_symbolref_operand): Use satisfies_constraint_K.
19555         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
19556         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
19557         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
19558         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19559         (EXTRA_CONSTRAINT): Delete.
19560         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
19561         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
19562         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
19563
19564 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
19565
19566         PR target/47696
19567         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
19568         description.
19569
19570 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
19571
19572         * config/mcore/constraints.md: New file.
19573         * config/mcore/mcore.md: Include it.
19574         * config/mcore/mcore.c (reg_class_from_letter): Delete.
19575         * config/mcore/mcore.h (reg_class_from_letter): Delete.
19576         (REG_CLASS_FROM_LETTER): Delete.
19577         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
19578         insn_const_int_ok_for_constraint.
19579         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
19580         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
19581         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19582         (EXTRA_CONSTRAINT): Delete.
19583
19584 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19585
19586         PR ada/41929
19587         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
19588         (IS_SIGHANDLER): Define.
19589         (sparc64_is_sighandler): New function, split off from
19590         sparc64_fallback_frame_state.
19591         (sparc_is_sighandler): New function, split off from
19592         sparc_fallback_frame_state.
19593         (sparc64_fallback_frame_state): Merge with ...
19594         (sparc_fallback_frame_state): ... this into ...
19595         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
19596         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
19597         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
19598         stack instead of hardcoded offsets.
19599
19600 2011-02-14  Andriy Gapon  <avg@freebsd.org>
19601
19602         PR target/45808
19603         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
19604
19605 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19606
19607         * configure: Regenerate.
19608
19609 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
19610
19611         PR driver/45731
19612         * gcc.c (asm_options): Correct spec matching --target-help.
19613
19614 2011-02-12  Martin Jambor  <mjambor@suse.cz>
19615
19616         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
19617         to gimple call error.
19618
19619 2011-02-12  Mike Stump  <mikestump@comcast.net>
19620
19621         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
19622         comments in backslash regions.
19623
19624 2011-02-12  Mike Stump  <mikestump@comcast.net>
19625             Jakub Jelinek  <jakub@redhat.com>
19626             Iain Sandoe  <iains@gcc.gnu.org>
19627
19628         PR target/47324
19629         * dwarf2out.c (output_cfa_loc): When required, apply the
19630         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19631         (output_loc_sequence): Likewise.
19632         (output_loc_operands_raw): Likewise.
19633         (output_loc_sequence_raw): Likewise.
19634         (output_cfa_loc): Likewise.
19635         (output_loc_list): Suppress register number adjustment when
19636         calling output_loc_sequence()
19637         (output_die): Likewise.
19638
19639 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
19640
19641         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19642         Remove macros.
19643         * config/xtensa/xtensa.c (xtensa_register_move_cost,
19644         xtensa_memory_move_cost): New functions.
19645         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19646
19647 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
19648
19649         PR lto/47225
19650         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19651         in the current directory.
19652         * configure: Rebuilt.
19653
19654 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19655
19656         * config/darwin.c (darwin_override_options): Add a hunk missed
19657         from the commit of r168571.  Trim comment line lengths and
19658         correct indents of the preceding block.
19659
19660 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
19661
19662         * gcc.c (driver_handle_option): Concatenate the argument to -F with
19663         the switch.
19664
19665 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19666
19667         * common.opt (nostartfiles): New Driver option.
19668
19669 2011-02-11  Xinliang David Li  <davidxl@google.com>
19670
19671         PR tree-optimization/47707
19672         * tree-chrec.c (convert_affine_scev): Keep type precision.
19673
19674 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
19675
19676         PR tree-optimization/47420
19677         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19678
19679 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
19680
19681         PR rtl-optimization/47614
19682         * rtl.h (check_for_inc_dec): Declare.
19683         * dse.c (check_for_inc_dec): Externalize...
19684         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19685         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19686
19687 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
19688
19689         PR driver/47678
19690         * gcc.c (main): Do not compile inputs if there were errors in
19691         option handling.
19692         * opts-common.c (read_cmdline_option): Check for wrong language
19693         after other error checks.
19694
19695 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
19696
19697         * cgraph.c: Fix comment typos.
19698         * cgraph.h: Likewise.
19699         * cgraphunit.c: Likewise.
19700         * ipa-cp.c: Likewise.
19701         * ipa-inline.c: Likewise.
19702         * ipa-prop.c: Likewise.
19703         * ipa-pure-const.c: Likewise.
19704         * ipa-ref.c: Likewise.
19705         * ipa-reference.c: Likewise.
19706
19707 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19708
19709         PR debug/47684
19710         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19711
19712 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19713
19714         PR testsuite/47400
19715         * doc/sourcebuild.texi (Require Support): Document
19716         dg-require-ascii-locale.
19717
19718 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
19719
19720         * doc/lto.texi (Write summary): Fix missing parentheses.
19721
19722 2011-02-10  DJ Delorie  <dj@redhat.com>
19723
19724         * config/m32c/m32c.c (m32c_option_override): Disable
19725         -fcombine-stack-adjustments until flag value tracking and compare
19726         optimization can be rewritten.
19727
19728 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
19729
19730         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19731         PROCESSOR_POWER7.
19732         (PROCESSOR_DEFAULT64): Likewise.
19733
19734 2011-02-10  Richard Henderson  <rth@redhat.com>
19735
19736         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19737         change from 2011-02-03.
19738         * config/rx/rx.c (flags_from_code): Likewise.
19739         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19740         is valid, n/pz otherwise.
19741         (rx_select_cc_mode): Return CCmode if Y is not zero.
19742
19743 2011-02-10  Richard Guenther  <rguenther@suse.de>
19744
19745         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19746
19747 2011-02-10  Richard Guenther  <rguenther@suse.de>
19748
19749         PR tree-optimization/47677
19750         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19751
19752 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
19753
19754         PR target/47665
19755         * combine.c (make_compound_operation): Only change shifts into
19756         multiplication for SCALAR_INT_MODE_P.
19757
19758 2011-02-10  Jie Zhang  <jie@codesourcery.com>
19759
19760         PR testsuite/47622
19761         Revert
19762         2011-02-05  Jie Zhang  <jie@codesourcery.com>
19763         PR debug/42631
19764         * web.c (entry_register): Don't clobber the number of the
19765         first uninitialized reference in used[].
19766
19767 2011-02-09  Richard Guenther  <rguenther@suse.de>
19768
19769         PR tree-optimization/47664
19770         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19771         all edges again.
19772
19773 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
19774
19775         PR target/46481
19776         PR target/47032
19777         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19778         PROCESSOR_POWER7.
19779         (PROCESSOR_DEFAULT64): Same.
19780         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19781
19782 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19783
19784         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19785
19786 2011-02-09  Martin Jambor  <mjambor@suse.cz>
19787
19788         PR middle-end/45505
19789         * tree-sra.c (struct access): New flags grp_scalar_read and
19790         grp_scalar_write.  Changed description of assignment read and write
19791         flags.
19792         (dump_access): Dump new flags, reorder all of them.
19793         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19794         to detect multiple scalar reads.
19795         (analyze_access_subtree): Use the new scalar read write flags instead
19796         of the old flags.  Adjusted comments.
19797
19798 2011-02-08  DJ Delorie  <dj@redhat.com>
19799
19800         PR target/47548
19801         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19802         patterns.
19803
19804 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19805
19806         * config/m68k/uclinux.opt: New.
19807         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19808
19809 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19810
19811         * config/cris/elf.opt (sim): New Driver option.
19812
19813 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19814
19815         * config/xtensa/elf.opt: New.
19816         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19817
19818 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19819
19820         * config/vax/elf.opt: New.
19821         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19822
19823 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19824
19825         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19826
19827 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19828
19829         * config/gnu-user.opt: New.
19830         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19831         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19832         *-*-uclinux*): Use gnu-user.opt.
19833
19834 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
19835
19836         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19837         * config/i386/gnu.h (CPP_SPEC): Likewise.
19838
19839 2011-02-08  Ian Lance Taylor  <iant@google.com>
19840
19841         * common.opt (fcx-limited-range): Add SetByCombined flag.
19842         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19843         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19844         (fassociative-math, freciprocal-math): Likewise.
19845         (funsafe-math-optimizations): Likewise.
19846         * opth-gen.awk: Handle SetByCombined.
19847         * optc-gen.awk: Likewise.
19848         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19849         (set_unsafe_math_optimizations_flags): Likewise.
19850         * doc/options.texi (Option properties): Document SetByCombined.
19851
19852 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
19853
19854         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19855         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19856         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19857         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19858         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19859
19860 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
19861
19862         PR tree-optimization/46834
19863         PR tree-optimization/46994
19864         PR tree-optimization/46995
19865         * graphite-sese-to-poly.c (used_outside_reduction): New.
19866         (detect_commutative_reduction): Call used_outside_reduction.
19867         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19868         translate_scalar_reduction_to_array only when at least one
19869         loop-phi/close-phi tuple has been detected.
19870
19871 2011-02-08  Richard Guenther  <rguenther@suse.de>
19872
19873         PR middle-end/47639
19874         * tree-vect-generic.c (expand_vector_operations_1): Update
19875         stmts here ...
19876         (expand_vector_operations): ... not here.  Cleanup EH info
19877         and the CFG if required.
19878
19879 2011-02-08  Richard Guenther  <rguenther@suse.de>
19880
19881         PR tree-optimization/47641
19882         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19883         require type compatibility.
19884
19885 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19886
19887         * gimple-low.c (lower_function_body): Don't remove the location of
19888         the return statement here.
19889         (lower_gimple_return): Do it here instead but only if the return
19890         statement is actually used twice.
19891
19892 2011-02-08  Richard Guenther  <rguenther@suse.de>
19893
19894         PR tree-optimization/47632
19895         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19896         unused up_to_stmt parameter, return whether cfg-cleanup is
19897         necessary, remove EH info properly.
19898         (forward_propagate_into_gimple_cond): Adjust caller.
19899         (forward_propagate_into_cond): Likewise.
19900         (forward_propagate_comparison): Likewise.
19901         (tree_ssa_forward_propagate_single_use_vars): Make
19902         forward_propagate_comparison case similar to the two others.
19903
19904 2011-02-08  Nick Clifton  <nickc@redhat.com>
19905
19906         * config/mn10300/mn10300.opt (mliw): New command line option.
19907         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19908         (liw_bundling): New automaton.
19909         (liw): New attribute.
19910         (liw_op): New attribute.
19911         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19912         (movsi_internal): Add LIW attributes.
19913         (andsi3): Likewise.
19914         (iorsi3): Likewise.
19915         (xorsi3): Likewise.
19916         (addsi3): Separate register and immediate alternatives.
19917         Add LIW attributes.
19918         (subsi3): Likewise.
19919         (cmpsi): Likewise.
19920         (aslsi3): Likewise.
19921         (lshrsi3): Likewise.
19922         (ashrsi3): Likewise.
19923         (liw): New pattern.
19924         * config/mn10300/mn10300.c (liw_op_names): New
19925         (mn10300_print_operand): Handle 'W' operand descriptor.
19926         (extract_bundle): New function.
19927         (check_liw_constraints): New function.
19928         (liw_candidate): New function.
19929         (mn10300_bundle_liw): New function.
19930         (mn10300_reorg): New function.
19931         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19932         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19933         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19934         __LIW__ or __NO_LIW__.
19935         * doc/invoke.texi: Describe the -mliw command line option.
19936
19937 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19938
19939         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19940         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19941         pthread_mutex_unlock): Remove.
19942         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19943         * config/pa/t-pa64: Likewise.
19944         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19945         shared libc if not linking against libpthread.
19946         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19947
19948 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
19949
19950         PR target/47558
19951         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19952         on 10.6 and later to ensure that we always use the unwinder from
19953         the system.  Only add -no_compact_unwind when tarteting darwin
19954         10.6 or later.
19955
19956 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
19957
19958         PR target/46997
19959         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19960         (vec_interleave_lowv2sf): Ditto.
19961         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19962         (vec_extract_oddv2sf): Ditto.
19963
19964 2011-02-07  Mike Stump  <mikestump@comcast.net>
19965
19966         PR target/42333
19967         Add __ieee_divdc3 entry point.
19968         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19969         entry point.
19970         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19971         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19972         * config/darwin.c (darwin_rename_builtins): Add.
19973         * config/darwin-protos.h (darwin_rename_builtins): Add.
19974
19975 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
19976
19977         PR target/47636
19978         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19979         for the condition.
19980
19981 2011-02-07  Mike Stump  <mikestump@comcast.net>
19982
19983         * config/darwin.opt (mmacosx-version-min): Update default OS version.
19984
19985 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
19986
19987         PR target/47534
19988         * config/avr/libgcc.S (exit): Move .endfunc
19989
19990 2011-02-07  Richard Guenther  <rguenther@suse.de>
19991
19992         PR tree-optimization/47615
19993         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19994         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19995         (run_scc_vn): Initialize it.
19996         (visit_reference_op_load): Use it.
19997         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19998
19999 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20000
20001         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
20002         DImode trapping arithmetic libfuncs.
20003
20004 2011-02-07  Richard Guenther  <rguenther@suse.de>
20005
20006         PR tree-optimization/47621
20007         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
20008         two duplicates ...
20009         (execute_update_addresses_taken): ... here.  Make it more
20010         conservative in what we accept.
20011
20012 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
20013
20014         * config/sparc/freebsd.h (ASM_SPEC): Define.
20015         * config/sparc/vxworks.h (ASM_SPEC): Define.
20016
20017 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
20018
20019         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20020
20021 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
20022
20023         * doc/invoke.texi: Remove reference to compiler internals from
20024         user documentation.
20025
20026         * reg-notes.def: Remove REG_VALUE_PROFILE.
20027         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
20028
20029 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
20030
20031         PR middle-end/47610
20032         * varasm.c (default_section_type_flags): If decl is NULL,
20033         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
20034
20035 2011-02-05  Jie Zhang  <jie@codesourcery.com>
20036
20037         PR debug/42631
20038         * web.c (entry_register): Don't clobber the number of the
20039         first uninitialized reference in used[].
20040
20041 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
20042
20043         PR tree-optimization/46194
20044         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
20045         (build_classic_dist_vector_1): Do not represent classic distance
20046         vectors when the access functions are variating in different loops.
20047
20048 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20049
20050         * config/mips/iris6.opt: New.
20051         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
20052
20053 2011-02-04  Richard Henderson  <rth@redhat.com>
20054             Steve Ellcey  <sje@cup.hp.com>
20055
20056         PR target/46997
20057         * config/ia64/predicates.md (mux1_brcst_element): New.
20058         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
20059         * config/ia64/ia64.c (ia64_unpack_assemble): New.
20060         (ia64_unpack_sign): New.
20061         (ia64_expand_unpack): Rewrite using new routines.
20062         (ia64_expand_widen_sum): Ditto.
20063         (ia64_expand_dot_prod_v8qi): Ditto.
20064         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
20065         routines, add endian check.
20066         (pmpy2_even): Rename from pmpy2_r, add endian check.
20067         (pmpy2_odd): Rename from pmpy2_l, add endian check.
20068         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
20069         (vec_widen_smult_hi_v4hi): Ditto.
20070         (vec_widen_umult_lo_v4hi): Ditto.
20071         (vec_widen_umult_hi_v4hi): Ditto.
20072         (mulv2si3): Change endian checks.
20073         (sdot_prodv4hi): Rewrite with new calls.
20074         (udot_prodv4hi): New.
20075         (vec_pack_ssat_v4hi): Add endian check.
20076         (vec_pack_usat_v4hi): Ditto.
20077         (vec_pack_ssat_v2si): Ditto.
20078         (max1_even): Rename from max1_r, add endian check.
20079         (max1_odd): Rename from max1_l, add endian check.
20080         (*mux1_rev): Format change.
20081         (*mux1_mix): Ditto.
20082         (*mux1_shuf): Ditto.
20083         (*mux1_alt): Ditto.
20084         (*mux1_brcst_v8qi): Use new predicate.
20085         (vec_extract_evenv8qi): Remove endian check.
20086         (vec_extract_oddv8qi): Ditto.
20087         (vec_interleave_lowv4hi): Format change.
20088         (vec_interleave_highv4hi): Ditto.
20089         (mix2_even): Rename from mix2_r, add endian check.
20090         (mix2_odd): Rename from mux2_l, add endian check.
20091         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
20092         (vec_extract_evenodd_helper): Format change.
20093         (vec_extract_evenv4hi): Remove endian check.
20094         (vec_extract_oddv4hi): Remove endian check.
20095         (vec_interleave_lowv2si): Format change.
20096         (vec_interleave_highv2si): Format change.
20097         (vec_initv2si): Remove endian check.
20098         (vecinit_v2si): Add endian check.
20099         (reduc_splus_v2sf): Add endian check.
20100         (reduc_smax_v2sf): Ditto.
20101         (reduc_smin_v2sf): Ditto.
20102         (vec_initv2sf): Remove endian check.
20103         (fpack): Add endian check.
20104         (fswap): Add endian check.
20105         (vec_interleave_highv2sf): Add endian check.
20106         (vec_interleave_lowv2sf): Add endian check.
20107         (fmix_lr): Add endian check.
20108         (vec_setv2sf): Format change.
20109         (*vec_extractv2sf_0_be): Use shift to extract operand.
20110         (*vec_extractv2sf_1_be): New.
20111         (vec_pack_trunc_v4hi): Add endian check.
20112         (vec_pack_trunc_v2si): Format change.
20113
20114 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
20115
20116         PR inline-asm/23200
20117         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
20118         do bb, locus and block comparison and disallow loads if it is not set.
20119         (stmt_is_replaceable_p): New function.
20120         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
20121         callers.
20122         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
20123         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
20124         SSA_NAME_DEF_STMT.
20125         * tree-flow.h (stmt_is_replaceable_p): New prototype.
20126
20127 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20128
20129         * config/rs6000/xilinx.opt: New.
20130         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
20131
20132 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
20133
20134         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
20135
20136 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
20137
20138         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
20139         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20140         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
20141         secondary_reload_info, xtensa_secondary_reload): Remove.
20142         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
20143         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20144         (xtensa_preferred_reload_class): Make static. Change return and
20145         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
20146         Use CONST_DOUBLE_P predicate.
20147         (xtensa_preferred_output_reload_class): New function.
20148         (xtensa_secondary_reload): Make static.
20149
20150 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
20151
20152         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
20153         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
20154         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
20155
20156 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20157
20158         PR middle-end/31490
20159         * output.h (SECTION_RELRO): Define.
20160         (SECTION_MACH_DEP): Adjust.
20161         (get_variable_section): New prototype.
20162         * varpool.c (varpool_finalize_named_section_flags): New function.
20163         (varpool_assemble_pending_decls): Call it.
20164         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
20165         * cgraphunit.c (cgraph_output_in_order): Call
20166         varpool_finalize_named_section_flags.
20167         * varasm.c (get_section): Allow section flags conflicts between
20168         relro and read-only sections if the section hasn't been declared yet.
20169         Set SECTION_OVERRIDE after diagnosing section type conflict.
20170         (get_variable_section): No longer static.
20171         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
20172         readonly sections that need relocations.
20173         (decl_readonly_section_1): New function.
20174         (decl_readonly_section): Use it.
20175
20176         Revert:
20177         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
20178                     Steve Ellcey  <sje@cup.hp.com>
20179
20180         PR middle-end/31490
20181         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
20182         if section attribute used.
20183
20184 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20185
20186         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
20187         * config/darwin.c (SECTION_NO_ANCHOR): Define.
20188         (darwin_init_sections): Remove assertion.
20189
20190 2011-02-03  Nick Clifton  <nickc@redhat.com>
20191
20192         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
20193         lt and ge.
20194         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
20195         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
20196         instead of "n" and "pz".
20197         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
20198         CC_FLAG_S.
20199
20200 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
20201
20202         PR target/47312
20203         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
20204         fma, expand FMA_EXPR as fma{,f,l} call.
20205
20206         PR lto/47274
20207         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
20208         copy them into a unsigned char variable and pass address of it to
20209         lto_output_data_stream.
20210
20211         PR target/47564
20212         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
20213         around backend_init_target and lang_dependent_init_target calls.
20214         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
20215         (verify_cgraph_node): Don't call set_cfun here.  Use
20216         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
20217         Set error_found for incorrectly represented calls to thunks.
20218
20219 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20220
20221         PR debug/43092
20222         PR rtl-optimization/43494
20223         * rtl.h (for_each_inc_dec_fn): New type.
20224         (for_each_inc_dec): Declare.
20225         * rtlanal.c (struct for_each_inc_dec_ops): New type.
20226         (for_each_inc_dec_find_inc_dec): New fn.
20227         (for_each_inc_dec_find_mem): New fn.
20228         (for_each_inc_dec): New fn.
20229         * dse.c (struct insn_size): Remove.
20230         (replace_inc_dec, replace_inc_dec_mem): Remove.
20231         (emit_inc_dec_insn_before): New fn.
20232         (check_for_inc_dec): Use it, along with for_each_inc_dec.
20233         (canon_address): Pass mem modes to cselib_lookup.
20234         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
20235         (cselib_lookup_from_insn): Likewise.
20236         (cselib_subst_to_values): Likewise.
20237         * cselib.c (find_slot_memmode): New var.
20238         (cselib_find_slot): New fn.  Use it instead of
20239         htab_find_slot_with_hash everywhere.
20240         (entry_and_rtx_equal_p): Use find_slot_memmode.
20241         (autoinc_split): New fn.
20242         (rtx_equal_for_cselib_p): Rename and implement in terms of...
20243         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
20244         Deal with autoinc.  Special-case recursion into MEMs.
20245         (cselib_hash_rtx): Likewise.
20246         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
20247         address and MEM modes.
20248         (cselib_subst_to_values): Add memmode, pass it on.
20249         Deal with autoinc.
20250         (cselib_lookup): Add memmode argument, pass it on.
20251         (cselib_lookup_from_insn): Add memmode.
20252         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
20253         (struct cselib_record_autoinc_data): New.
20254         (cselib_record_autoinc_cb): New fn.
20255         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
20256         mode to cselib_lookup.  Reset autoinced REGs here instead of...
20257         (cselib_process_insn): ... here.
20258         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
20259         to cselib_lookup.
20260         (add_uses): Likewise, also to cselib_subst_to_values.
20261         (add_stores): Likewise.
20262         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
20263         cselib_subst_to_values.
20264         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
20265         * gcse.c (do_local_cprop): Adjusted.
20266         * postreload.c (reload_cse_simplify_set): Adjusted.
20267         (reload_cse_simplify_operands): Adjusted.
20268         * sel-sched-dump (debug_mem_addr_value): Pass mode.
20269
20270 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
20271
20272         PR tree-optimization/45122
20273         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
20274         unsafe assumptions when there's more than one loop exit.
20275
20276 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
20277
20278         PR target/47272
20279         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20280         Document using vector double with the load/store builtins, and
20281         that the load/store builtins always use Altivec instructions.
20282
20283         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
20284         to use altivec memory instructions, even on VSX.
20285         (vector_altivec_store_<mode>): Ditto.
20286
20287         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
20288         function.
20289
20290         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20291         V2DF, V2DI support to load/store overloaded builtins.
20292
20293         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
20294         altivec load/store builtins for V2DF/V2DI types.
20295
20296         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20297         set avoid indexed addresses on power6 if -maltivec.
20298         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
20299         vector_altivec_load/vector_altivec_store builtins.
20300         (altivec_expand_st_builtin): Ditto.
20301         (altivec_expand_builtin): Add VSX memory builtins.
20302         (rs6000_init_builtins): Add V2DI types to internal types.
20303         (altivec_init_builtins): Add support for V2DF/V2DI altivec
20304         load/store builtins.
20305         (rs6000_address_for_altivec): Insure memory address is appropriate
20306         for Altivec.
20307
20308         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
20309         vec_vsx_ld and vec_vsx_st.
20310         (vsx_store_<mode>): Ditto.
20311
20312         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
20313         variables to hold long long types for VSX vector memory builtins.
20314         (RS6000_BTI_unsigned_long_long): Ditto.
20315         (long_long_integer_type_internal_node): Ditti.
20316         (long_long_unsigned_type_internal_node): Ditti.
20317
20318         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
20319         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
20320         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
20321
20322         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
20323         short cuts.
20324         (vec_vsx_st): Ditto.
20325
20326 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20327
20328         * config/pa/pa-hpux10.opt: New.
20329         * config/hpux11.opt (pthread): New Driver option.
20330         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
20331         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
20332
20333 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20334
20335         * config/ia64/vms.opt: New.
20336         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
20337
20338 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
20339
20340         PR target/47580
20341         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
20342         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
20343         generator functions.
20344         (vsx_floatuns<VSi><mode>2): Ditto.
20345         (vsx_fix_trunc<mode><VSi>2): Ditto.
20346         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
20347
20348 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
20349
20350         * config/i386/djgpp.opt (posix): New Driver option.
20351
20352 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
20353
20354         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
20355         Move to the unsupported targets list.
20356
20357 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
20358
20359         PR rtl-optimization/47525
20360         * df-scan.c: Update copyright years.
20361         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
20362         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
20363
20364 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20365
20366         * config/i386/sysv4.h (TARGET_VERSION): Remove.
20367         (SUBTARGET_RETURN_IN_MEMORY): Remove.
20368         (ASM_OUTPUT_ASCII): Remove.
20369         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
20370
20371 2011-02-02  Jeff Law  <law@redhat.com>
20372
20373         PR middle-end/47543
20374         * reload.c (find_reloads_address): Handle reg+d address where both
20375         components are invalid by reloading the entire address.
20376
20377 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
20378             Richard Guenther  <rguenther@suse.de>
20379
20380         PR tree-optimization/40979
20381         PR bootstrap/47044
20382         * passes.c (init_optimization_passes): After LIM call copy_prop
20383         and DCE to clean up.
20384         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
20385
20386 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
20387
20388         PR tree-optimization/47576
20389         PR tree-optimization/47555
20390         * doc/invoke.texi (scev-max-expr-complexity): Documented.
20391         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20392         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
20393         * tree-scalar-evolution.c (follow_ssa_edge): Use
20394         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
20395
20396 2011-02-02  Richard Guenther  <rguenther@suse.de>
20397
20398         PR tree-optimization/47566
20399         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
20400
20401 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
20402
20403         PR debug/47106
20404         PR debug/47402
20405         * tree-inline.c (declare_return_variable): Remove unused caller
20406         variable.
20407
20408         PR debug/47106
20409         PR debug/47402
20410         * tree-flow-inline.h (clear_is_used, is_used_p): New.
20411         * cfgexpand.c (account_used_vars_for_block): Use them.
20412         * tree-nrv.c (tree_nrv): Likewise.
20413         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
20414         (dump_scope_block): Likewise.
20415         (remove_unused_locals): Likewise.
20416
20417         PR debug/47106
20418         PR debug/47402
20419         * tree-inline.c (declare_return_variable): Add result decl to
20420         local decls only once.
20421         * gimple-low.c (record_vars_into): Mark newly-created variables
20422         as referenced.
20423
20424 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
20425
20426         PR debug/47498
20427         PR debug/47501
20428         PR debug/45136
20429         PR debug/45130
20430         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20431         debug insns.
20432         (no_real_insns_p, schedule_block, set_priorities): Drop special
20433         treatment of boundary debug insns.
20434         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20435         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
20436         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20437         (BOUNDARY_DEBUG_INSN_P): Likewise.
20438         (SCHEDULE_DEBUG_INSN_P): Likewise.
20439         * sched-rgn.c (init_ready_list): Drop special treatment of
20440         boundary debug insns.
20441         * final.c (rest_of_clean_state): Clear notes' BB.
20442
20443 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20444
20445         * config/openbsd.opt (assert=): New Driver option.
20446
20447 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20448
20449         * config/i386/nto.opt: New.
20450         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
20451
20452 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20453
20454         * config/i386/netware.opt: New.
20455         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
20456
20457 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20458
20459         * config/interix.opt (posix): New Driver option.
20460
20461 2011-02-01  DJ Delorie  <dj@redhat.com>
20462
20463         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
20464
20465         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
20466         class for A0/A1.
20467
20468 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
20469
20470         PR tree-optimization/47561
20471         * toplev.c (process_options): Print the Graphite flags.  Add
20472         flag_loop_flatten to the list of options requiring Graphite.
20473
20474 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20475
20476         * config/i386/cygming.opt (posix): New Driver option.
20477
20478 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20479
20480         * config/arm/vxworks.opt: New.
20481         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
20482
20483 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
20484
20485         * config/alpha/elf.opt: New.
20486         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
20487         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
20488
20489 2011-02-01  Richard Guenther  <rguenther@suse.de>
20490
20491         PR tree-optimization/47559
20492         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
20493         store-motion on references that can throw.
20494
20495 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
20496
20497         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
20498         * tree-pass.h (TDF_CSELIB): New macro.
20499         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
20500         cselib_lookup): Check for it rather than for TDF_DETAILS.
20501
20502 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
20503
20504         PR driver/47547
20505         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
20506         is HOST_BIT_BUCKET.
20507
20508         * opts.c (finish_options): Don't add x_aux_base_name if it is
20509         HOST_BIT_BUCKET.
20510
20511 2011-02-01  Richard Guenther  <rguenther@suse.de>
20512
20513         PR tree-optimization/47555
20514         Revert
20515         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
20516
20517         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20518
20519 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
20520
20521         PR gcc/46692
20522         * config/lm32/t-lm32: Add multilib for all CPU options.
20523
20524 2011-02-01  Richard Guenther  <rguenther@suse.de>
20525
20526         PR tree-optimization/47541
20527         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
20528         sure to have a field at offset zero.
20529
20530 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
20531
20532         * config/arc/arc.opt (EB, EL): New Driver options.
20533
20534 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
20535
20536         * config/alpha/osf5.opt: New.
20537         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
20538
20539 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
20540
20541         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
20542
20543 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
20544
20545         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
20546         -floop-interchange.
20547         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
20548         is an alias of -floop-interchange and that it requires the
20549         Graphite infrastructure.
20550         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
20551         flag_loop_interchange based on the value of flag_tree_loop_linear.
20552
20553 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
20554             Richard Guenther  <rguenther@suse.de>
20555
20556         PR tree-optimization/47538
20557         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
20558         type instead of r1type, except for comparisons.  For right
20559         shifts and comparisons punt if there are mismatches in
20560         sizetype vs. non-sizetype types.
20561
20562 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20563
20564         * doc/sourcebuild.texi (Effective-Target Keywords): Document
20565         avx_runtime.
20566
20567 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20568
20569         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
20570         version number.
20571         * configure: Regenerate.
20572
20573 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20574
20575         * configure.ac (gcc_cv_ld_static_option): Define.
20576         (gcc_cv_ld_dynamic_option): Define.
20577         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
20578         instead.
20579         (HAVE_LD_STATIC_DYNAMIC): Update message.
20580         (LD_STATIC_OPTION): Define.
20581         (LD_DYNAMIC_OPTION): Define.
20582         * configure: Regenerate.
20583         * config.in: Regenerate.
20584         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
20585         HAVE_LD_STATIC_DYNAMIC]: Use them.
20586
20587 2011-01-31  Nick Clifton  <nickc@redhat.com>
20588
20589         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
20590         registers inside interrupt handlers if the handler is not a leaf
20591         function.
20592
20593 2011-01-31  Nick Clifton  <nickc@redhat.com>
20594
20595         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
20596         reg_renumber returning an INVALID_REGNUM.
20597
20598 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
20599
20600         PR libgcj/44341
20601         * doc/install.texi: Document host options discarded when cross
20602         configuring target libraries.
20603
20604 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
20605
20606         Reverted:
20607         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
20608         PR debug/45136
20609         PR debug/45130
20610         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20611         debug insns.
20612         (no_real_insns_p, schedule_block, set_priorities): Drop special
20613         treatment of boundary debug insns.
20614         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20615         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20616         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20617         (BOUNDARY_DEBUG_INSN_P): Likewise.
20618         (SCHEDULE_DEBUG_INSN_P): Likewise.
20619         * sched-rgn.c (init_ready_list): Drop special treatment of
20620         boundary debug insns.
20621         * final.c (rest_of_clean-state): Clear notes' BB.
20622
20623 2011-01-31  Alan Modra  <amodra@gmail.com>
20624
20625         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20626         toc relative expressions as we do in print_operand_address.
20627
20628 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
20629
20630         * doc/extend.texi: Follow spelling conventions.
20631         * doc/invoke.texi: Fix a typo.
20632
20633 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
20634
20635         * config/hpux11.opt: New.
20636         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20637         ia64*-*-hpux*): Use hpux11.opt.
20638
20639 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
20640
20641         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20642         to tmake_file.
20643
20644 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20645
20646         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20647         support sites.
20648
20649 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20650
20651         * doc/install.texi (Binaries): Remove outdated reference for
20652         Motorola 68HC11/68HC12 downloads.
20653
20654 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
20655
20656         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20657         Drepper's paper.
20658
20659 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
20660
20661         PR bootstrap/47147
20662         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20663         used by NetBSD.
20664
20665 2011-01-28  Ahmad Sharif  <asharif@google.com>
20666
20667         * value-prof.c (check_counter): Corrected error message.
20668
20669 2011-01-29  Jie Zhang  <jie@codesourcery.com>
20670
20671         * config/arm/arm.c (arm_legitimize_reload_address): New.
20672         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20673         arm_legitimize_reload_address.
20674         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20675
20676 2011-01-28  Ian Lance Taylor  <iant@google.com>
20677
20678         * godump.c (go_define): Ignore macros whose definitions include
20679         two adjacent operands.
20680
20681 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
20682
20683         PR target/42894
20684         * varasm.c (force_const_mem): Store copy of x in desc->constant
20685         instead of x itself.
20686         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20687         itself into REG_EQUAL note.
20688
20689 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
20690
20691         * config/freebsd.opt (posix, rdynamic): New Driver options.
20692
20693 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20694
20695         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20696         -Bstatic/-Bdynamic.
20697         * configure: Regenerate.
20698
20699 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
20700
20701         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20702         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20703
20704 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
20705
20706         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20707         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20708         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20709         (s390_preferred_reload_class): Make static. Change return and
20710         'rclass' argument type to reg_class_t.
20711
20712 2011-01-27  Jan Hubicka  <jh@suse.cz>
20713
20714         PR middle-end/46949
20715         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20716         (process_function_and_variable_attributes): Check defined weakrefs.
20717
20718 2011-01-27  Martin Jambor  <mjambor@suse.cz>
20719
20720         PR tree-optimization/47228
20721         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20722         build_ref_for_offset.
20723
20724 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20725
20726         * config/spu/spu-elf.h (ASM_SPEC): Remove.
20727
20728 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
20729
20730         PR rtl-optimization/46856
20731         * postreload.c (reload_combine_recognize_const_pattern): Do not
20732         separate cc0 setter and user on cc0 targets.
20733
20734 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
20735
20736         PR c/43082
20737         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20738         passed a VOID_TYPE expression, immediately emit an error and
20739         return error_mark_node.
20740
20741 2011-01-26  Jeff Law  <law@redhat.com>
20742
20743         PR rtl-optimization/47464
20744         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20745         rather than may_trap_p as needed.
20746
20747 2011-01-26  DJ Delorie  <dj@redhat.com>
20748
20749         PR rtl-optimization/46878
20750         * combine.c (insn_a_feeds_b): Check for the implicit cc0
20751         setter/user dependency as well.
20752
20753 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
20754
20755         PR rtl-optimization/44469
20756         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20757         after removing trivially dead basic blocks.
20758
20759 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20760
20761         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20762         * config/frv/frv.h (LINK_SPEC): Likewise.
20763         * config/i386/netware.h (LINK_SPEC): Likewise.
20764         * config/m68k/linux.h (ASM_SPEC): Likewise.
20765         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20766         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20767         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20768         * config/sparc/linux.h (ASM_SPEC): Likewise.
20769         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20770         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20771
20772 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20773
20774         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20775         * config/frv/frv.h (ASM_SPEC): Likewise.
20776         * config/m68k/linux.h (ASM_SPEC): Likewise.
20777         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20778         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20779         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20780         * config/sparc/linux.h (ASM_SPEC): Likewise.
20781         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20782         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20783
20784 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20785
20786         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20787         * config/frv/frv.h (LINK_SPEC): Likewise.
20788         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20789
20790 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
20791
20792         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20793         * config/frv/frv.h (ASM_SPEC): Likewise.
20794         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20795         * config/m68k/linux.h (ASM_SPEC): Likewise.
20796         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20797         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20798         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20799         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20800         * config/sparc/linux.h (ASM_SPEC): Likewise.
20801         * config/sparc/linux64.h (ASM_SPEC): Likewise.
20802         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20803         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20804
20805 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
20806
20807         PR target/46997
20808         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20809         (*mux2): Ditto.
20810         (vec_extract_evenodd_help): Ditto.
20811         (vec_extract_evenv4hi): Ditto.
20812         (vec_extract_oddv4hi): Ditto.
20813         (vec_interleave_lowv2si): Ditto.
20814         (vec_interleave_highv2si): Ditto.
20815         (vec_extract_evenv2si): Ditto.
20816         (vec_extract_oddv2si: Ditto.
20817         (vec_pack_trunc_v2si): Ditto.
20818
20819 2011-01-22  Jan Hubicka  <jh@suse.cz>
20820
20821         PR target/47237
20822         * cgraph.h (cgraph_local_info): New field can_change_signature.
20823         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20824         signature can change.
20825         (ipcp_estimate_growth): Call sequence simplify only if calle signature
20826         can change.
20827         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20828         (cgraph_function_versioning): We can not change signature of functions
20829         that don't allow that.
20830         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20831         (lto_input_node): Likewise.
20832         * ipa-inline.c (compute_inline_parameters): Compute
20833         local.can_change_signature.
20834         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20835         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20836         functions that can not change signature.
20837         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20838         init_cumulative_args): Do not use local calling conventions
20839         for functions that can not change signature.
20840
20841 2011-01-22  Jan Hubicka  <jh@suse.cz>
20842
20843         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20844
20845 2011-01-26  Richard Guenther  <rguenther@suse.de>
20846
20847         PR tree-optimization/47190
20848         * cgraphunit.c (process_common_attributes): New function.
20849         (process_function_and_variable_attributes): Use it.
20850
20851 2011-01-26  Richard Guenther  <rguenther@suse.de>
20852
20853         PR lto/47423
20854         * cgraphbuild.c (record_eh_tables): Record reference to personality
20855         function.
20856
20857 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
20858
20859         PR debug/45454
20860         * sel-sched.c (moveup_expr): Don't let debug insns prevent
20861         non-debug insns from moving up.
20862
20863 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20864
20865         PR target/40125
20866         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20867         t-dlldir{,-x} fragment for build and add it to tmake_file.
20868         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20869         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20870         * config/i386/t-dlldir: New file.
20871         (SHLIB_DLLDIR): Define.
20872         * config/i386/t-dlldir-x: New file.
20873         (SHLIB_DLLDIR): Define.
20874         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20875         (SHLIB_INSTALL): Use it.
20876
20877 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
20878
20879         PR target/47246
20880         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20881         lower bound of the allowed Thumb-2 coprocessor load/store
20882         index range to -256. Add explaining comment.
20883
20884 2011-01-25  Ian Lance Taylor  <iant@google.com>
20885
20886         * godump.c (go_define): Improve lexing of macro expansion to only
20887         accept expressions which match Go spec.
20888
20889 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
20890
20891         PR c++/43601
20892         * tree.c (handle_dll_attribute): Handle it.
20893         * doc/extend.texi (@item dllexport): Mention it.
20894         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20895
20896 2011-01-25  Ian Lance Taylor  <iant@google.com>
20897
20898         PR tree-optimization/26854
20899         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20900         (decl_jump_unsafe): Move higher in file, with no other change.
20901         (bind): Set has_jump_unsafe_decl if appropriate.
20902         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20903         (check_earlier_gotos): Likewise.
20904         (c_check_switch_jump_warnings): Likewise.
20905
20906 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
20907
20908         * doc/invoke.texi (Warning Options): Add missing hyphen.
20909         (-fprofile-dir): Minor grammatical fixes.
20910         (-fbranch-probabilities): Likewise.
20911
20912 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
20913
20914         PR debug/45136
20915         PR debug/45130
20916         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20917         debug insns.
20918         (no_real_insns_p, schedule_block, set_priorities): Drop special
20919         treatment of boundary debug insns.
20920         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20921         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20922         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20923         (BOUNDARY_DEBUG_INSN_P): Likewise.
20924         (SCHEDULE_DEBUG_INSN_P): Likewise.
20925         * sched-rgn.c (init_ready_list): Drop special treatment of
20926         boundary debug insns.
20927         * final.c (rest_of_clean-state): Clear notes' BB.
20928
20929 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
20930
20931         * Makefile.in (LAMBDA_H): Removed.
20932         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20933         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20934         lambda-trans.o, and tree-loop-linear.o.
20935         (lto-symtab.o): Remove dependence on LAMBDA_H.
20936         (tree-loop-linear.o): Remove rule.
20937         (lambda-mat.o): Same.
20938         (lambda-trans.o): Same.
20939         (lambda-code.o): Same.
20940         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20941         (tree-vect-slp.o): Same.
20942         * hwint.h (gcd): Moved here.
20943         (least_common_multiple): Same.
20944         * lambda-code.c: Removed.
20945         * lambda-mat.c: Removed.
20946         * lambda-trans.c: Removed.
20947         * lambda.h: Removed.
20948         * tree-loop-linear.c: Removed.
20949         * lto-symtab.c: Do not include lambda.h.
20950         * omega.c (gcd): Removed.
20951         * passes.c (init_optimization_passes): Remove pass_linear_transform.
20952         * tree-data-ref.c (print_lambda_vector): Moved here.
20953         (lambda_vector_copy): Same.
20954         (lambda_matrix_copy): Same.
20955         (lambda_matrix_id): Same.
20956         (lambda_vector_first_nz): Same.
20957         (lambda_matrix_row_add): Same.
20958         (lambda_matrix_row_exchange): Same.
20959         (lambda_vector_mult_const): Same.
20960         (lambda_vector_negate): Same.
20961         (lambda_matrix_row_negate): Same.
20962         (lambda_vector_equal): Same.
20963         (lambda_matrix_right_hermite): Same.
20964         * tree-data-ref.h: Do not include lambda.h.
20965         (lambda_vector): Moved here.
20966         (lambda_matrix): Same.
20967         (dependence_level): Same.
20968         (lambda_transform_legal_p): Removed declaration.
20969         (lambda_collect_parameters): Same.
20970         (lambda_compute_access_matrices): Same.
20971         (lambda_vector_gcd): Same.
20972         (lambda_vector_new): Same.
20973         (lambda_vector_clear): Same.
20974         (lambda_vector_lexico_pos): Same.
20975         (lambda_vector_zerop): Same.
20976         (lambda_matrix_new): Same.
20977         * tree-flow.h (least_common_multiple): Removed declaration.
20978         * tree-parloops.c (lambda_trans_matrix): Moved here.
20979         (LTM_MATRIX): Same.
20980         (LTM_ROWSIZE): Same.
20981         (LTM_COLSIZE): Same.
20982         (LTM_DENOMINATOR): Same.
20983         (lambda_trans_matrix_new): Same.
20984         (lambda_matrix_vector_mult): Same.
20985         (lambda_transform_legal_p): Same.
20986         * tree-pass.h (pass_linear_transform): Removed declaration.
20987         * tree-ssa-loop.c (tree_linear_transform): Removed.
20988         (gate_tree_linear_transform): Removed.
20989         (pass_linear_transform): Removed.
20990         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20991         flag_loop_interchange.
20992
20993 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
20994
20995         PR tree-optimization/47265
20996         PR tree-optimization/47443
20997         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20998         if name still has some uses.
20999
21000 2011-01-25  Martin Jambor  <mjambor@suse.cz>
21001
21002         PR tree-optimization/47382
21003         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
21004         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
21005
21006 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
21007
21008         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
21009         sjlj_except_unwind_info.
21010
21011 2011-01-25  Richard Guenther  <rguenther@suse.de>
21012
21013         PR tree-optimization/47426
21014         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
21015         visible functions results escape.
21016
21017 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21018
21019         PR target/45701
21020         * config/arm/arm.c (any_sibcall_uses_r3): New function.
21021         (arm_get_frame_offsets): Use it.
21022
21023 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21024             Jakub Jelinek  <jakub@redhat.com>
21025
21026         PR tree-optimization/47271
21027         * tree-if-conv.c (bb_postdominates_preds): New.
21028         (if_convertible_bb_p): Call bb_postdominates_preds.
21029         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
21030         (predicate_scalar_phi): Call bb_postdominates_preds.
21031
21032 2011-01-25  Nick Clifton  <nickc@redhat.com>
21033
21034         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
21035         * config/rx/rx.c (rx_function_value): Likewise.
21036         (rx_promote_function_mode): Likewise.
21037         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
21038         in order to make it legitimate.
21039         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
21040         make sure that the first operand is the same as the result register.
21041         (addsi3_unspec): Delete.
21042         (subdi3): Do not accept immediate operands.
21043         (subdi3_internal): Likewise.
21044
21045 2011-01-25  Jeff Law  <law@redhat.com>
21046
21047         PR rtl-optimization/37273
21048         * ira-costs.c (scan_one_insn): Detect constants living in memory and
21049         handle them like argument loads from stack slots.  Do not double
21050         count memory for memory constants and argument loads from stack slots.
21051
21052 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
21053
21054         PR tree-optimization/47427
21055         PR tree-optimization/47428
21056         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21057         coalesce if the new root var would be TREE_READONLY.
21058
21059 2011-01-25  Richard Guenther  <rguenther@suse.de>
21060
21061         PR middle-end/47414
21062         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
21063         correct type for TBAA.
21064
21065 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21066
21067         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
21068         (close_phi_written_to_memory): Call for_each_index with
21069         dr_indices_valid_in_loop.
21070
21071 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21072
21073         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
21074         when it is initialized.
21075
21076 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21077
21078         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
21079         call to graphite_find_data_references_in_stmt.
21080         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
21081         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
21082         call to graphite_find_data_references_in_stmt.
21083         (analyze_drs_in_stmts): Same.
21084         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
21085         in which the scalar analysis of indices is performed.
21086         (create_data_ref): Same.  Update call to dr_analyze_indices.
21087         (find_data_references_in_stmt): Update call to create_data_ref.
21088         (graphite_find_data_references_in_stmt): Same.
21089         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
21090         declaration.
21091         (create_data_ref): Same.
21092         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
21093         call to create_data_ref.
21094
21095 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21096
21097         * graphite-sese-to-poly.c (build_poly_scop): Move
21098         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
21099
21100 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21101
21102         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
21103         VAR_DECL, PARM_DECL, and RESULT_DECL.
21104
21105 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21106
21107         * graphite-dependences.c (reduction_dr_1): Allow several reductions
21108         in a reduction PBB.
21109         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
21110         that have already been marked as PBB_IS_REDUCTION.
21111
21112 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21113
21114         * graphite-scop-detection.c (same_close_phi_node): New.
21115         (remove_duplicate_close_phi): New.
21116         (make_close_phi_nodes_unique): New.
21117         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
21118
21119 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21120
21121         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
21122         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
21123         of both data references to be the same.
21124
21125 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21126
21127         * graphite-dependences.c (build_lexicographical_constraint): Remove
21128         the gdim parameter.
21129         (build_lexicographical_constraint): Adjust call to
21130         ppl_powerset_is_empty.
21131         (dependence_polyhedron): Same.
21132         (graphite_legal_transform_dr): Same.
21133         (graphite_carried_dependence_level_k): Same.
21134         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
21135         parameter.
21136         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
21137
21138 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21139
21140         * graphite-sese-to-poly.c
21141         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
21142         (close_phi_written_to_memory): New.
21143         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
21144         and unshare_expr.
21145
21146 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21147
21148         * doc/install.texi: Update the expected version number of PPL to 0.11.
21149         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
21150         #if PPL_VERSION_MINOR < 11.
21151
21152 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21153
21154         * graphite-dependences.c: Include graphite-cloog-util.h.
21155         (new_poly_ddr): Inlined into dependence_polyhedron.
21156         (free_poly_ddr): Moved close by new_poly_ddr.
21157         (dependence_polyhedron_1): Renamed dependence_polyhedron.
21158         Early return NULL when ppl_powerset_is_empty returns true.
21159         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
21160         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
21161         (graphite_legal_transform_dr): Call new_poly_ddr.
21162         (graphite_carried_dependence_level_k): Same.
21163         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
21164         (dot_transformed_deps_stmt_1): Removed.
21165         (dot_deps_stmt_1): Call dot_deps_stmt_2.
21166         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
21167         (dot_deps_1): Call dot_deps_2.
21168         * Makefile.in (graphite-dependences.o): Add missing dependence on
21169         graphite-cloog-util.h.
21170
21171 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21172
21173         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
21174         (build_lexicographical_constraint): Same.
21175         (dependence_polyhedron_1): Same.
21176         (graphite_legal_transform_dr): Same.
21177         (graphite_carried_dependence_level_k): Same.
21178         * graphite-ppl.c (ppl_powerset_is_empty): New.
21179         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
21180         * tree-data-ref.c (dump_data_reference): Print the basic block index.
21181
21182 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21183
21184         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
21185         the "a followed by b" relation and document it.
21186
21187 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21188
21189         * graphite-dependences.c (build_lexicographical_constraint): Stop the
21190         iteration when the bag of constraints is empty.
21191
21192 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21193
21194         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
21195
21196 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21197
21198         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
21199         nest and two loop depths as parameters.
21200         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
21201         lst_perfect_nestify.
21202
21203 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21204
21205         * graphite-dependences.c (print_pddr): Call
21206         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
21207
21208 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
21209
21210         * graphite-ppl.c (debug_gmp_value): New.
21211         * graphite-ppl.h (debug_gmp_value): Declared.
21212
21213 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
21214
21215         * doc/install.texi: Document availability of cloog-0.16.
21216
21217 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
21218
21219         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
21220         invalid postdominance info.
21221
21222 2011-01-24  Jan Hubicka  <jh@suse.cz>
21223
21224         PR c/21659
21225         * doc/extend.texi (weak pragma): Drop claim that it must
21226         appear before definition.
21227         * varasm.c (merge_weak, declare_weak): Only sanity check
21228         that DECL is not output at a time it is declared weak.
21229
21230 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
21231
21232         * machmode.def: Fixed comments.
21233
21234 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
21235
21236         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
21237
21238 2011-01-24  Paul Koning  <ni1d@arrl.net>
21239
21240         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
21241         WORDS_BIG_ENDIAN.
21242
21243 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21244
21245         PR target/46519
21246         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
21247         (block_info): Add scanned and prev.
21248         (move_or_delete_vzeroupper_2): Return if the basic block
21249         has been scanned and the upper 128bit state is unchanged
21250         from the last scan.
21251         (move_or_delete_vzeroupper_1): Return true if the exit
21252         state is changed.
21253         (move_or_delete_vzeroupper): Visit basic blocks using the
21254         work-list based algorithm based on vt_find_locations in
21255         var-tracking.c.
21256
21257         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
21258
21259 2011-01-24  Nick Clifton  <nickc@redhat.com>
21260
21261         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
21262         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
21263         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
21264         then define __v850e1__.
21265         * doc/invoke.texi: Document -mv850es.
21266
21267 2011-01-24  Richard Henderson  <rth@redhat.com>
21268
21269         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
21270         compound unordered comparisons.
21271         * config/rx/rx.c (rx_split_fp_compare): Remove.
21272         * config/rx/rx-protos.h: Update.
21273         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
21274         (cbranchsf4): Don't call rx_split_fp_compare.
21275         (*cbranchsf4): Use rx_split_cbranch.
21276         (*cmpsf): Don't accept "i" constraint.
21277         (*conditional_branch): Only valid after reload.
21278         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
21279
21280 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21281
21282         PR target/47385
21283         * config/rs6000/altivec.md (vector constant splitters): Add
21284         support for creating vector single precision constants if -mvsx is
21285         used and we would create the constant using Altivec primitives.
21286
21287 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
21288             Richard Sandiford  <rdsandiford@googlemail.com>
21289
21290         PR rtl-optimization/47166
21291         * reload1.c (emit_reload_insns): Disable the spill_reg_store
21292         mechanism for PRE_MODIFY and POST_MODIFY.
21293         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
21294         reloadreg.
21295
21296 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
21297
21298         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
21299
21300 2011-01-22  Jan Hubicka  <jh@suse.cz>
21301
21302         PR lto/47333
21303         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
21304
21305 2011-01-22  Jan Hubicka  <jh@suse.cz>
21306
21307         PR tree-optimization/43884
21308         PR lto/44334
21309         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
21310         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
21311
21312 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
21313
21314         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21315         * config/s390/s390.c (s390_register_move_cost,
21316         s390_memory_move_cost): New.
21317         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
21318
21319 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21320
21321         PR middle-end/47401
21322         * except.c (sjlj_assign_call_site_values): Move setting the
21323         crtl->uses_eh_lsda flag to ...
21324         (sjlj_mark_call_sites): ... here.
21325         (sjlj_emit_function_enter): Support NULL dispatch label.
21326         (sjlj_build_landing_pads): In a function with no landing pads
21327         that still has must-not-throw regions, generate code to register
21328         a personality function with empty LSDA.
21329
21330 2011-01-21  Richard Henderson  <rth@redhat.com>
21331
21332         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
21333
21334         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
21335
21336         * compare-elim.c: New file.
21337         * Makefile.in (OBJS-common): Add it.
21338         (compare-elim.o): New.
21339         * common.opt (fcompare-elim): New.
21340         * opts.c (default_options_table): Add OPT_fcompare_elim.
21341         * tree-pass.h (pass_compare_elim_after_reload): New.
21342         * passes.c (init_optimization_passes): Add it.
21343         * recog.h: Protect against re-inclusion.
21344         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
21345         * doc/invoke.texi (-fcompare-elim): Document it.
21346         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
21347         * doc/tm.texi: Rebuild.
21348
21349 2011-01-22  Nick Clifton  <nickc@redhat.com>
21350
21351         * config/rx/rx.md (cstoresf4): Pass comparison operator to
21352         rx_split_fp_compare.
21353
21354 2011-01-22  Nick Clifton  <nickc@redhat.com>
21355
21356         * config/rx/rx.md (UNSPEC_CONST): New.
21357         (deallocate_and_return): Wrap the amount popped off the stack in
21358         an UNSPEC_CONST in order to stop it being rejected by
21359         -mmax-constant-size.
21360         (pop_and_return): Add a "(return)" rtx.
21361         (call): Drop the immediate operand.
21362         (call_internal): Likewise.
21363         (call_value): Likewise.
21364         (call_value_internal): Likewise.
21365         (sibcall_internal): Likewise.
21366         (sibcall_value_internal): Likewise.
21367         (sibcall): Likewise.  Generate an explicit call using
21368         sibcall_internal.
21369         (sibcall_value): Likewise.
21370         (mov<>): FAIL if a constant operand is not legitimate.
21371         (addsi3_unpsec): New pattern.
21372
21373         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
21374         (ok_for_max_constant): New function.
21375         (gen_safe_add): New function.
21376         (rx_expand_prologue): Use gen_safe_add.
21377         (rx_expand_epilogue): Likewise.
21378         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
21379         UNSPEC CONSTs.
21380
21381 2011-01-21  Jeff Law  <law@redhat.com>
21382
21383         PR tree-optimization/47053
21384         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
21385         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
21386         statements are deleted.
21387         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
21388         is nonempty, then purge dead edges and cleanup the CFG.
21389
21390 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
21391
21392         PR debug/47402
21393         Temporarily revert:
21394         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
21395         PR debug/47106
21396         * tree-dfa.c (create_var_ann): Mark variable as used.
21397
21398 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
21399
21400         PR middle-end/45566
21401         * except.c (convert_to_eh_region_ranges): Emit queued no-region
21402         notes from other section in hot/cold partitioning even if
21403         last_action is -3.  Increment call_site_base.
21404
21405         PR rtl-optimization/47366
21406         * fwprop.c (forward_propagate_into): Return bool.  If
21407         any changes are made, -fnon-call-exceptions is used and
21408         REG_EH_REGION note is present, call purge_dead_edges
21409         and return true if it purged anything.
21410         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
21411         any EH edges were purged.
21412
21413 2011-01-21  Jeff Law  <law@redhat.com>
21414
21415         PR rtl-optimization/41619
21416         * caller-save.c (setup_save_areas): Break out code to determine
21417         which hard regs are live across calls by examining the reload chains
21418         so that it is always used.
21419         Eliminate code which checked REG_N_CALLS_CROSSED.
21420
21421 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
21422
21423         PR tree-optimization/47355
21424         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
21425         NOP has non-debug uses beyond PHIs in new_bb.
21426
21427 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
21428
21429         PR debug/47106
21430         * cfgexpand.c (account_used_vars_for_block): Only account vars
21431         that are annotated as used.
21432         (estimated_stack_frame_size): Don't set TREE_USED.
21433         * tree-dfa.c (create_var_ann): Mark variable as used.
21434
21435 2011-01-21  Richard Guenther  <rguenther@suse.de>
21436
21437         PR middle-end/47395
21438         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
21439
21440 2011-01-21  Richard Guenther  <rguenther@suse.de>
21441
21442         PR tree-optimization/47365
21443         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
21444         (vn_reference_lookup_pieces): Adjust.
21445         (vn_reference_lookup): Likewise.
21446         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
21447         (vn_reference_lookup_3): Only look through kills if in
21448         VN_WALKREWRITE mode.
21449         (vn_reference_lookup_pieces): Adjust.
21450         (vn_reference_lookup): Likewise.
21451         (visit_reference_op_load): Likewise.
21452         (visit_reference_op_store): Likewise.
21453         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
21454         (compute_avail): Likewise.
21455         (eliminate): Likewise.
21456
21457 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
21458
21459         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
21460         DECL_IGNORED_P non-reg vars if they are used.
21461
21462         PR tree-optimization/47391
21463         * varpool.c (const_value_known_p): Return false if
21464         decl is volatile.
21465
21466 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
21467
21468         PR bootstrap/47215
21469         * config/i386/i386.c (ix86_local_alignment): Handle
21470         case for va_list_type_node is nil.
21471         (ix86_canonical_va_list_type): Likewise.
21472
21473 2011-01-21  Alan Modra  <amodra@gmail.com>
21474
21475         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
21476         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
21477
21478 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21479
21480         * config/arm/arm.md (define_attr type): Rename f_load
21481         and f_store to f_fpa_load and f_fpa_store. Update.
21482         (write_conflict): Deal with rename fallout.
21483         (*push_fp_multi): Likewise.
21484         * config/arm/fpa.md (f_load): Use f_fpa_load.
21485         (f_store): Use f_fpa_store.
21486         (*movsf_fpa): Likewise.
21487         (*movdf_fpa): Likewise.
21488         (*movxf_fpa): Likewise.
21489         (*thumb2_movsf_fpa): Likewise.
21490         (*thumb2_movdf_fpa): Likewise.
21491         (*thumb2_movxf_fpa): Likewise.
21492         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
21493         f_loadd and f_stored.
21494         (*thumb2_movdi_vfp): Likewise.
21495         (*thumb2_movsf_vfp): Fix attribute to f_loads.
21496         (*thumb2_movsi_vfp): Likewise.
21497         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
21498         Use f_loads instead of f_load.
21499         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
21500
21501 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
21502
21503         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21504         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
21505         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21506         (xtensa_mode_dependent_address_p): New function.
21507         (constantpool_address_p): Make static. Change return type to bool.
21508         Change argument type to const_rtx. Use CONST_INT_P predicate.
21509
21510 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
21511
21512         PR debug/46583
21513         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
21514
21515 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
21516
21517         PR debug/47283
21518         * cfgexpand.c (expand_debug_expr): Instead of generating
21519         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
21520         etc. handling.
21521
21522 2011-01-20  Richard Guenther  <rguenther@suse.de>
21523
21524         PR middle-end/47370
21525         * tree-inline.c (remap_gimple_op_r): Recurse manually for
21526         the pointer operand of MEM_REFs.
21527
21528 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
21529
21530         PR tree-optimization/46130
21531         * ipa-split.c (consider_split): If return_bb contains non-virtual
21532         PHIs other than for retval or if split_function would not adjust it,
21533         refuse to split.
21534
21535 2011-01-20  Richard Guenther  <rguenther@suse.de>
21536
21537         PR tree-optimization/47167
21538         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21539         Revert previous change, only avoid enumeral type changes.
21540
21541 2011-01-19  Mike Stump  <mikestump@comcast.net>
21542
21543         * doc/tm.texi.in (BRANCH_COST): Englishify.
21544         * doc/tm.texi (BRANCH_COST): Likewise.
21545
21546 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
21547
21548         PR c++/47291
21549         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
21550         (gen_scheduled_generic_parms_dies): New functions.
21551         (gen_struct_or_union_type_die): Schedule template parameters DIEs
21552         generation for the end of CU compilation.
21553         (dwarf2out_finish): Generate template parameters DIEs here.
21554
21555 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
21556
21557         PR debug/46240
21558         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
21559         debug bind stmt on merge edges.
21560
21561 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
21562
21563         PR debug/47079
21564         PR debug/46724
21565         * function.c (instantiate_expr): Instantiate incoming rtl of
21566         implicit arguments, and recurse on VALUE_EXPRs.
21567         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
21568         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
21569
21570 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
21571
21572         * c-parser.c (c_parser_for_statement): Initialize
21573         collection_expression.
21574
21575 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21576
21577         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
21578
21579 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21580
21581         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
21582         (LINK_SHLIB_SPEC): Don't use %(link_path).
21583         (SUBTARGET_EXTRA_SPECS): Remove link_path.
21584
21585 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21586
21587         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
21588         (NO_SHARED_LIB_SUPPORT): Remove.
21589         (LINK_SHLIB_SPEC): Remove one conditional definition.
21590
21591 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
21592
21593         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
21594         %{call_shared}.
21595         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
21596         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
21597         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
21598         %{call_shared} and conditionals on these options not being passed.
21599         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
21600         %{call_shared}.
21601
21602 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
21603
21604         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
21605         simplify.
21606
21607         * ipa-split.c: Spelling fixes.
21608
21609 2011-01-19  Richard Henderson  <rth@redhat.com>
21610
21611         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
21612         (*mulsi3): Likewise.
21613
21614         * longlong.h [__mn10300__] (count_leading_zeros): New.
21615         [__mn10300__] (umul_ppmm, smul_ppmm): New.
21616         [__mn10300__] (add_ssaaaa, subddmmss): New.
21617         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
21618         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
21619
21620 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21621
21622         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
21623
21624 2011-01-19  Richard Henderson  <rth@redhat.com>
21625
21626         * config/mn10300/mn10300.md (addsi3_flags): New.
21627         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21628         (subsi3_flags, subc_internal, subdi3): New.
21629         (subdi3_internal, *subdi3_degenerate): New.
21630         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21631
21632         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21633         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21634         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
21635         * config/mn10300/mn10300-protos.h: Update.
21636         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21637         (return_ret): Likewise.  Rename from return_internal_regs.
21638         (return_internal): Remove.
21639
21640         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21641         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21642         (mn10300_legitimate_constant_p): Likewise.
21643         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21644         (mn10300_frame_size): New.
21645         (mn10300_expand_prologue): Use it.
21646         (mn10300_expand_epilogue): Likewise.
21647         (mn10300_initial_offset): Likewise.
21648         * config/mn10300/mn10300-protos.h: Update.
21649         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21650         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21651         (prologue, epilogue, return_internal): Tidy output code.
21652         (mn10300_store_multiple_operation, return): Likewise.
21653         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21654         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21655         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21656         (load_pic, am33_load_pic): New.
21657         (mn10300_load_pic0, mn10300_load_pic1): New.
21658
21659         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21660         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21661         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21662         (cc_flags_for_mode, cc_flags_for_code): New.
21663         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21664         overflow flag is not valid.  Validate that the flags we need
21665         for the comparison are valid.
21666         (mn10300_output_cmp): Remove.
21667         (mn10300_output_add): New.
21668         (mn10300_select_cc_mode): Use cc_flags_for_code.
21669         (mn10300_split_cbranch): New.
21670         (mn10300_match_ccmode): New.
21671         (mn10300_split_and_operand_count): New.
21672         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21673         to the function.
21674         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21675         (addsi3): ... here.  Use mn10300_output_add.
21676         (*addsi3_flags): New.
21677         (*am33_subsi3, *mn10300_subsi3): Merge...
21678         (subsi3): ... here.  Use attribute isa.
21679         (*subsi3_flags): New.
21680         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
21681         when possible.
21682         (*am33_andsi3, *mn10300_andsi3): Merge...
21683         (andsi3): ... here.
21684         (*andsi3_flags): New.
21685         (andsi3 splitters): New.
21686         (*am33_iorsi3, *mn10300_iorsi3): Merge...
21687         (iorsi3): ... here.
21688         (*iorsi3_flags): New.
21689         (*am33_xorsi3, *mn10300_xorsi3): Merge...
21690         (xorsi3): ... here.
21691         (*xorsi3_flags): New.
21692         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21693         (one_cmplsi2): ... here.
21694         (*one_cmplsi2_flags): New.
21695         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
21696         instead of "dax" in constraints.  Use mn10300_split_cbranch.
21697         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
21698         use matching constraints to eliminate a self-comparison.
21699         (*integer_conditional_branch): Rename from integer_conditional_branch.
21700         Use int_mode_flags to match CC_REG.
21701         (*cbranchsi4_btst, *btstsi): New.
21702         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
21703         mn10300_split_cbranch.
21704         (*am33_cmpsf): Rename from am33_cmpsf.
21705         (*float_conditional_branch): Rename from float_conditional_branch.
21706         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21707         (zero_extendqisi2): ... here.
21708         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21709         (zero_extendhisi2): ... here.
21710         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21711         (extendqisi2): ... here.
21712         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21713         (extendhisi2): ... here.
21714         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21715         (ashlsi3): ... here.
21716         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21717         (lshrsi3): ... here.
21718         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21719         (ashrsi3): ... here.
21720         (consecutive add peephole): Remove.
21721         * config/mn10300/predicates.md (label_ref_operand): New.
21722         (int_mode_flags): New.
21723         (CCZN_comparison_operator): New.
21724
21725         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21726         (throughput_42_latency_43): New reservation.
21727         (mulsidi3, umulsidi3): New expanders.
21728         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
21729         the MDR register to allocation; separately allocate the low and
21730         high parts of the DImode result.
21731         (umulsidi3_internal): Similarly.
21732         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21733         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
21734         (udivsi3, umodsi3): Remove.
21735         (udivmodsi4, divmodsi4): New expanders.
21736         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
21737         (*divmodsi4): Simiarly.
21738         (ext_internal): New.
21739
21740         * config/mn10300/constraints.md ("z"): New constraint.
21741         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21742         (FIXED_REGISTERS): Don't fix MDR.
21743         (CALL_USED_REGSITERS): Reformat nicely.
21744         (REG_ALLOC_ORDER): Add MDR.
21745         (enum regclass): Add MDR_REGS.
21746         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21747         (IRA_COVER_CLASSES): Add MDR_REGS.
21748         (REGNO_REG_CLASS): Handle MDR_REG.
21749         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21750         (mn10300_register_move_cost): Likewise.
21751         * config/mn10300/mn10300.md (MDR_REG): New.
21752         (*movsi_internal): Handle moves to/from MDR_REGS.
21753
21754         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21755         POST_MODIFY.
21756         (mn10300_secondary_reload): Tidy combination reload classes.
21757         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21758         addresses for AM33.  Allow symbolic offsets for reg+imm.
21759         (mn10300_regno_in_class_p): New.
21760         (mn10300_legitimize_reload_address): New.
21761         * config/mn10300/mn10300.h (enum reg_class): Remove
21762         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21763         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
21764         SP_OR_GENERAL_REGS.
21765         (REG_CLASS_NAMES): Update to match.
21766         (REG_CLASS_CONTENTS): Likewise.
21767         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21768         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21769         (REGNO_IN_RANGE_P): Remove.
21770         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21771         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21772         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21773         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21774         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21775         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21776         (REGNO_GENERAL_P): New.
21777         (HAVE_POST_MODIFY_DISP): New.
21778         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21779         (LEGITIMIZE_RELOAD_ADDRESS): New.
21780         * config/mn10300/mn10300-protos.h: Update.
21781
21782         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21783         DATA_REGS for AM33 stack-pointer destination.
21784         (mn10300_preferred_output_reload_class): Likewise.
21785         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21786         into a form appropriate for ...
21787         (TARGET_SECONDARY_RELOAD): New.
21788         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21789         * config/mn10300/mn10300-protos.h: Update.
21790         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21791         reload_insi; use the "A" constraint for the scratch; handle AM33
21792         moves of sp to non-address registers.
21793
21794         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21795         (*movqi_internal): ... here.
21796         (*am33_movhi, *mn10300_movhi): Merge into...
21797         (*movhi_internal): ... here.
21798         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
21799         as the source/destination of moves from/to SP.
21800         (movsf): Only allow for AM33-2.
21801         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21802         any integer constant constraint.  Only allow for AM33-2.  Tidy
21803         all of the alternative outputs.
21804         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21805         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
21806         for MN103.
21807         (udivsi3, umodsi3): New patterns for MN103 only.
21808
21809 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
21810
21811         * doc/tm.texi.in: Spell out that a lack of register class unions
21812         can lead to ICEs.
21813         * doc/tm.texi: Regenerate.
21814
21815 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
21816
21817         PR rtl-optimization/47337
21818         * dce.c (check_argument_store): New function.
21819         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
21820
21821         PR tree-optimization/47290
21822         * tree-eh.c (infinite_empty_loop_p): New function.
21823         (cleanup_empty_eh): Use it.
21824
21825 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
21826
21827         PR target/46997
21828         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21829         (a64_expand_widen_sum): Ditto.
21830         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21831         (vec_extract_evenodd_help): Ditto.
21832         (vec_extract_evenv4hi): Ditto.
21833         (vec_extract_oddv4hi): Ditto.
21834         (vec_extract_evenv2si): Ditto.
21835         (vec_extract_oddv2si): Ditto.
21836         (vec_extract_evenv2sf): Ditto.
21837         (vec_extract_oddv2sf): Ditto.
21838         (vec_pack_trunc_v4hi: Ditto.
21839         (vec_pack_trunc_v2si): Ditto.
21840         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21841         (vec_interleave_highv8qi): Ditto.
21842         (mix1_r): Ditto.
21843         (vec_extract_oddv8qi): Ditto.
21844         (vec_interleave_lowv4hi): Ditto.
21845         (vec_interleave_highv4hi): Ditto.
21846         (vec_interleave_lowv2si): Ditto.
21847         (vec_interleave_highv2si): Ditto.
21848
21849 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21850
21851         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21852         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21853         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
21854         (pa_c_mode_for_suffix): New.
21855         (TARGET_EXPAND_BUILTIN): Define.
21856         (TARGET_C_MODE_FOR_SUFFIX): Define.
21857         (pa_builtins): Define.
21858         (pa_init_builtins): Register __float128 type and init new support
21859         builtins.
21860         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21861         * config/pa/quadlib.c (_U_Qfcopysign): New.
21862
21863 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
21864
21865         PR middle-end/46894
21866         * explow.c (allocate_dynamic_stack_space): Do not assume more than
21867         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21868         are defined.
21869
21870 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21871
21872         PR tree-optimization/47179
21873         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21874         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21875
21876 2011-01-18  Richard Guenther  <rguenther@suse.de>
21877
21878         PR rtl-optimization/47216
21879         * emit-rtl.c: Include tree-flow.h.
21880         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21881         of replicating it with different semantics.
21882         * Makefile.in (emit-rtl.o): Adjust.
21883
21884 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21885
21886         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21887         (cortex_a9_dp): Handle neon types correctly.
21888
21889 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
21890
21891         PR rtl-optimization/47299
21892         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21893         subtarget.  Use normal multiplication if both operands are constants.
21894         * expmed.c (expand_widening_mult): Don't try to optimize constant
21895         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
21896         before using it.
21897
21898 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21899
21900         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
21901         spacing after 'e.g.', typos, comma, hyphenation.
21902
21903 2011-01-17  Richard Henderson  <rth@redhat.com>
21904
21905         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21906         (rx_restricted_mem_operand): New.
21907         (rx_shift_operand): Use register_operand.
21908         (rx_source_operand, rx_compare_operand): Likewise.
21909         * config/rx/rx.md (addsi3_flags): New expander.
21910         (adddi3): Rewrite as expander.
21911         (adc_internal, *adc_flags, adddi3_internal): New patterns.
21912         (subsi3_flags): New expander.
21913         (subdi3): Rewrite as expander.
21914         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21915
21916         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21917         (rx_init_builtins): Remove sat builtin.
21918         (rx_expand_builtin): Likewise.
21919         * config/rx/rx.md (ssaddsi3): New.
21920         (*sat): Rename from sat.  Represent the CC_REG input.
21921
21922         * config/rx/predicates.md (rshift_operator): New.
21923         * config/rx/rx.c (rx_expand_insv): Remove.
21924         * config/rx/rx-protos.h: Update.
21925         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
21926         operand to the canonical position.
21927         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21928         (*bitclr, *bitclr_in_memory): Similarly.
21929         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21930         (insv): Retain the zero_extract in the expansion.
21931
21932         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21933         (bswaphi2, bitinvert, revw): Likewise.
21934
21935         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21936         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21937         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21938         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21939         (bitset, bitset_in_memory): Likewise.
21940         (bitinvert, bitinvert_in_memory): Likewise.
21941         (bitclr, bitclr_in_memory): Likewise.
21942         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21943         (rx_strend, rx_cmpstrn): Likewise.
21944         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
21945         (bitop peep2 patterns): Remove.
21946
21947         * config/rx/rx.c (rx_match_ccmode): New.
21948         * config/rx/rx-protos.h: Update.
21949         * config/rx/rx.md (abssi2): Clobber, don't set flags.
21950         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21951         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21952         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21953         (fix_truncsfsi2, floatsisf2): Likewise.
21954         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21955         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21956         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21957         (*subsi3_flags, *xorsi3_flags): New.
21958
21959         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21960
21961         * config/rx/rx.c (rx_print_operand): Remove workaround for
21962         unsplit comparison operations.
21963
21964         * config/rx/rx.md (movsicc): Split after reload.
21965         (*movsicc): Merge *movsieq and *movsine via match_operator.
21966         (*stcc): New pattern.
21967
21968         * config/rx/rx.c (rx_float_compare_mode): Remove.
21969         * config/rx/rx.h (rx_float_compare_mode): Remove.
21970         * config/rx/rx.md (cstoresi4): Split after reload.
21971         (*sccc): New pattern.
21972
21973         * config/rx/predicates.md (label_ref_operand): New.
21974         (rx_z_comparison_operator): New.
21975         (rx_zs_comparison_operator): New.
21976         (rx_fp_comparison_operator): New.
21977         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21978         Validate that the flags are set properly for the comparison.
21979         (rx_gen_cond_branch_template): Remove.
21980         (rx_cc_modes_compatible): Remove.
21981         (mode_from_flags): New.
21982         (flags_from_code): Rename from flags_needed_for_conditional.
21983         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21984         (rx_select_cc_mode): Likewise.
21985         (rx_split_fp_compare): New.
21986         (rx_split_cbranch): New.
21987         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21988         (*cbranchsi4): Use match_operator and rx_split_cbranch.
21989         (*cbranchsf4): Similarly.
21990         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
21991         match_operator and rx_split_cbranch.
21992         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21993         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
21994         (*cmpsi): Rename from cmpsi.
21995         (*tstsi): Rename from tstsi.
21996         (*cmpsf): Rename from cmpsf; use CC_Fmode.
21997         (*conditional_branch): Rename from conditional_branch.
21998         (*reveresed_conditional_branch): Remove.
21999         (b<code>): Remove expander.
22000         * config/rx/rx-protos.h: Update.
22001
22002         * config/rx/rx.c (rx_compare_redundant): Remove.
22003         * config/rx/rx.md (cmpsi): Don't use it.
22004         * config/rx/rx-protos.h: Update.
22005
22006         * config/rx/rx-modes.def (CC_F): New mode.
22007         * config/rx/rx.c (rx_select_cc_mode): New.
22008         * config/rx/rx.h (SELECT_CC_MODE): Use it.
22009         * config/rx/rx-protos.h: Update.
22010
22011 2011-01-17  Richard Henderson  <rth@redhat.com>
22012
22013         * except.c (dump_eh_tree): Fix stray ; after for statement.
22014
22015 2011-01-17  Richard Guenther  <rguenther@suse.de>
22016
22017         PR tree-optimization/47313
22018         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
22019         handling before copying the body.  Properly deal with
22020         by-reference result in SSA form.
22021
22022 2011-01-17  Ian Lance Taylor  <iant@google.com>
22023
22024         PR target/47219
22025         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
22026         (struct_value_alias_set): Don't define.
22027         (sparc_option_override): Don't set sparc_sr_alias_set and
22028         struct_value_alias_set.
22029         (save_or_restore_regs): Use gen_frame_mem rather than calling
22030         set_mem_alias_set.
22031         (sparc_struct_value_rtx): Likewise.
22032
22033 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22034
22035         PR target/47318
22036         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
22037         (_mm_maskstore_pd): Likewise.
22038         (_mm_maskload_ps): Likewise.
22039         (_mm_maskstore_ps): Likewise.
22040         (_mm256_maskload_pd): Change mask to __m256i.
22041         (_mm256_maskstore_pd): Likewise.
22042         (_mm256_maskload_ps): Likewise.
22043         (_mm256_maskstore_ps): Likewise.
22044
22045         * config/i386/i386-builtin-types.def: Updated.
22046         (ix86_expand_special_args_builtin): Likewise.
22047
22048         * config/i386/i386.c (bdesc_special_args): Update
22049         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
22050         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
22051         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
22052         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
22053
22054         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
22055         Use <avxpermvecmode> on mask register.
22056         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
22057
22058 2011-01-17  Olivier Hainque  <hainque@adacore.com>
22059             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22060             Eric Botcazou  <ebotcazou@adacore.com>
22061
22062         PR target/46655
22063         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
22064         if <= USHRT_MAX in 32-bit mode.
22065
22066 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22067
22068         * doc/install.texi (Configuration, Specific): Wrap long
22069         lines in examples.  Allow line wrapping in long options
22070         and URLs where beneficial for PDF output.
22071
22072 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
22073
22074         * config/mips/mips.c (mips_classify_symbol): Don't return
22075         SYMBOL_PC_RELATIVE for nonlocal labels.
22076
22077 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22078
22079         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
22080
22081 2011-01-15  Jan Hubicka  <jh@suse.cz>
22082
22083         PR tree-optimization/47276
22084         * ipa.c (function_and_variable_visibility): Do not try to mark alias
22085         declarations as needed.
22086
22087 2011-01-15  Martin Jambor  <mjambor@suse.cz>
22088
22089         * common.opt (fdevirtualize): New flag.
22090         * doc/invoke.texi (Option Summary): Document it.
22091         * opts.c (default_options_table): Add devirtualize flag.
22092         * ipa-prop.c (detect_type_change): Return immediately if
22093         devirtualize flag is not set.
22094         (detect_type_change_ssa): Likewise.
22095         (compute_known_type_jump_func): Likewise.
22096         (ipa_analyze_virtual_call_uses): Likewise.
22097
22098 2011-01-14  Martin Jambor  <mjambor@suse.cz>
22099
22100         PR tree-optimization/45934
22101         PR tree-optimization/46302
22102         * ipa-prop.c (type_change_info): New type.
22103         (stmt_may_be_vtbl_ptr_store): New function.
22104         (check_stmt_for_type_change): Likewise.
22105         (detect_type_change): Likewise.
22106         (detect_type_change_ssa): Likewise.
22107         (compute_complex_assign_jump_func): Check for dynamic type change.
22108         (compute_complex_ancestor_jump_func): Likewise.
22109         (compute_known_type_jump_func): Likewise.
22110         (compute_scalar_jump_functions): Likewise.
22111         (ipa_analyze_virtual_call_uses): Likewise.
22112         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
22113
22114 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22115
22116         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
22117         * config/i386/i386.opt (msse5): New Alias.
22118
22119 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22120
22121         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
22122         * config/sparc/linux64.h (CC1_SPEC): Likewise.
22123         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22124         * config/sparc/sparc.h (CC1_SPEC): Likewise.
22125
22126 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22127
22128         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
22129         -mcpu options.
22130         * config/sparc/linux64.h (CC1_SPEC): Likewise.
22131         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22132         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
22133         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
22134         Likewise.
22135         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
22136
22137 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22138
22139         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
22140
22141 2011-01-14  Mike Stump  <mikestump@comcast.net>
22142
22143         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
22144         * config/fr30/fr30.md: Likweise
22145         (movsi_push): Likewise.
22146         (movsi_pop): Likewise.
22147         (enter_func): Likewise.
22148         * config/moxie/moxie.md (movsi_push): Likewise.
22149         (movsi_pop): Likewise.
22150
22151 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22152
22153         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
22154         %{no_archive} %{exact_version}.
22155         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
22156         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
22157         %{no_archive} %{exact_version}.
22158         * config/mips/openbsd.h (LINK_SPEC): Likewise.
22159         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
22160         * config/mips/vxworks.h: Likewise.
22161
22162 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22163
22164         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
22165
22166 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22167
22168         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
22169         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
22170
22171 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22172
22173         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
22174         -nodefaultlib.
22175
22176 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22177
22178         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
22179         for mcpu not cpu.
22180         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
22181         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
22182         not cpu.
22183         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
22184         Don't handle -shlib.
22185
22186 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22187
22188         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
22189         (CC1_SPEC): Don't handle -profile.
22190
22191 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22192
22193         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
22194         * config/mips/mips.h (CC1_SPEC): Likewise.
22195
22196 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22197
22198         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
22199         * config/mips/mips.h (CC1_SPEC): Likewise.
22200
22201 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22202
22203         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
22204         * config/m32r/linux.h (LINK_SPEC): Likewise.
22205         * config/mips/linux.h (LINK_SPEC): Likewise.
22206         * config/mips/linux64.h (LINK_SPEC): Likewise.
22207         * config/sparc/linux.h (LINK_SPEC): Likewise.
22208         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
22209         LINK_SPEC): Likewise.
22210         * config/xtensa/linux.h (LINK_SPEC): Likewise.
22211
22212 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22213
22214         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
22215         %{version:-v}.
22216         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
22217
22218 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22219
22220         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
22221         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22222
22223 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
22224
22225         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
22226
22227 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22228
22229         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
22230         supports -Bstatic/-Bdynamic.
22231         * configure: Regenerate.
22232
22233 2011-01-14  Jan Hubicka  <jh@suse.cz>
22234             Jack Howarth  <howarth@bromo.med.uc.edu>
22235
22236         PR target/46037
22237         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
22238         when checking debug_info_level. Test write_symbols instead of
22239         debug_hooks->var_location when setting flag_var_tracking_uninit.
22240
22241 2011-01-14  Richard Guenther  <rguenther@suse.de>
22242
22243         PR tree-optimization/47179
22244         * target.def (ref_may_alias_errno): New target hook.
22245         * targhooks.h (default_ref_may_alias_errno): Declare.
22246         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
22247         (default_ref_may_alias_errno): New function.
22248         * target.h (struct ao_ref_s): Declare.
22249         * tree-ssa-alias.c: Include target.h.
22250         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
22251         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
22252         (targhooks.o): Likewise.
22253         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
22254         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
22255
22256 2011-01-14  Richard Guenther  <rguenther@suse.de>
22257
22258         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
22259
22260 2011-01-14  Richard Guenther  <rguenther@suse.de>
22261
22262         PR tree-optimization/47280
22263         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
22264         return CFG changes.
22265         (tree_ssa_forward_propagate_single_use_vars): Deal with
22266         CFG changes from associate_plusminus.
22267
22268 2011-01-14  Richard Guenther  <rguenther@suse.de>
22269
22270         PR middle-end/47281
22271         Revert
22272         2011-01-11  Richard Guenther  <rguenther@suse.de>
22273
22274         PR tree-optimization/46076
22275         * tree-ssa.c (useless_type_conversion_p): Conversions from
22276         unprototyped to empty argument list function types are useless.
22277
22278 2011-01-14  Richard Guenther  <rguenther@suse.de>
22279
22280         PR tree-optimization/47286
22281         * tree-ssa-structalias.c (new_var_info): Register variables are global.
22282
22283 2011-01-14  Martin Jambor  <mjambor@suse.cz>
22284
22285         PR middle-end/46823
22286         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
22287
22288 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
22289
22290         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
22291         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22292         * config/xtensa/xtensa.c (xtensa_libcall_value,
22293         xtensa_function_value_regno_p): New functions.
22294         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22295
22296 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
22297
22298         PR c++/47213
22299         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
22300         PE specific hook.
22301         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
22302         New function prototype.
22303         * config/i386/winnt.c (i386_pe_assemble_visibility):
22304         Warn only if attribute was specified by user.
22305
22306 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22307
22308         PR target/47251
22309         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
22310         floating point.
22311         (floatunsdidf2_fcfidu): Ditto.
22312
22313 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22314
22315         * config/s390/s390.c (print_operand_address): Replace 'error' with
22316         'output_operand_lossage'.
22317         (print_operand): Likewise.
22318
22319 2011-01-13  Jeff Law  <law@redhat.com>
22320
22321         PR rtl-optimization/39077
22322         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
22323         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
22324         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
22325         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
22326         * gcse.c (prune_insertions_deletions): New function.
22327         (compute_pre_data): Use it.
22328
22329 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
22330
22331         PR debug/PR46973
22332         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
22333         static function.
22334         (prune_unused_types_mark): Use it.
22335
22336 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
22337
22338         PR rtl-optimization/45352
22339         * sel-sched.c: Update copyright years.
22340         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
22341         in the advancing loop when we have issued issue_rate insns.
22342
22343 2011-01-12  Richard Henderson  <rth@redhat.com>
22344
22345         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
22346         (TARGET_MD_ASM_CLOBBERS): New.
22347
22348         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
22349         (TARGET_DELEGITIMIZE_ADDRESS): New.
22350
22351         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
22352         (clzsi2, *bsch): New patterns.
22353
22354         * config/mn10300/mn10300.md (INT): New mode iterator.
22355         (*mov<INT>_clr): New pattern, and peep2 to generate it.
22356
22357         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
22358         flag_split_wide_types.
22359
22360         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
22361         (mn10300_trampoline_init): Rewrite without a template, an immediate
22362         load and a direct branch.
22363         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
22364
22365 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
22366
22367         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22368         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
22369         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
22370         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22371
22372 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
22373
22374         PR debug/47209
22375         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
22376         of type.
22377
22378 2011-01-12  Jan Hubicka  <jh@suse.cz>
22379
22380         PR driver/47244
22381         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
22382         (PLUGIN_COND_CLOSE): New macro.
22383         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
22384
22385 2011-01-12  Richard Guenther  <rguenther@suse.de>
22386
22387         PR lto/47259
22388         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
22389         register variables in a MEM_REF.
22390
22391 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
22392
22393         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
22394         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
22395         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
22396         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22397         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22398         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
22399         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
22400         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
22401         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
22402         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
22403         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
22404         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
22405         * config/gnu-user.h: New.  Copied from linux.h.
22406         (LINUX_TARGET_STARTFILE_SPEC): Rename to
22407         GNU_USER_TARGET_STARTFILE_SPEC.
22408         (LINUX_TARGET_ENDFILE_SPEC): Rename to
22409         GNU_USER_TARGET_ENDFILE_SPEC.
22410         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
22411         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
22412         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
22413         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
22414         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
22415         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
22416         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
22417         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
22418         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
22419         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
22420         * config/arm/linux-eabi.h (CC1_SPEC): Use
22421         GNU_USER_TARGET_CC1_SPEC.
22422         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
22423         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
22424         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
22425         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
22426         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
22427         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
22428         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
22429         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
22430
22431 2011-01-12  Richard Guenther  <rguenther@suse.de>
22432
22433         PR other/46946
22434         * doc/invoke.texi (ffast-math): Document it is turned on
22435         with -Ofast.
22436
22437 2011-01-12  Jan Hubicka  <jh@suse.cz>
22438
22439         PR tree-optimization/47233
22440         * opts.c (common_handle_option): Disable ipa-reference with profile
22441         feedback.
22442
22443 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22444
22445         * c-parser.c (c_parser_objc_at_property_declaration): Improved
22446         error message.
22447
22448 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22449
22450         * c-parser.c (c_lex_one_token): Updated and reindented some
22451         comments.  No changes in code.
22452
22453 2011-01-11  Ian Lance Taylor  <iant@google.com>
22454
22455         * godump.c (go_output_var): Don't output the variable if there is
22456         already a type with the same name.
22457
22458 2011-01-11  Ian Lance Taylor  <iant@google.com>
22459
22460         * godump.c (go_format_type): Don't generate float80.
22461
22462 2011-01-11  Richard Henderson  <rth@redhat.com>
22463
22464         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
22465         declaration.  Rewrite for both speed and size.
22466         (mn10300_address_cost_1): Remove.
22467         (mn10300_register_move_cost): New.
22468         (mn10300_memory_move_cost): New.
22469         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
22470         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
22471         extensions, shifts, BSWAP, CLZ.
22472         (mn10300_wide_const_load_uses_clr): Remove.
22473         (TARGET_REGISTER_MOVE_COST): New.
22474         (TARGET_MEMORY_MOVE_COST): New.
22475         * config/mn10300/mn10300-protos.h: Update.
22476         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
22477
22478         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
22479         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
22480         * config/mn10300/mn10300-protos.h: Update.
22481         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
22482         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
22483         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
22484         (*test_int_bitfield, *test_byte_bitfield): Remove.
22485         (*bit_test, *subreg_bit_test): Remove.
22486         * config/mn10300/predicates.md (const_8bit_operand): Remove.
22487
22488         * config/mn10300/constraints.md ("c"): Rename from "A".
22489         ("A", "D"): New constraint letters.
22490         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
22491         (fmssf4, fnmasf4, fnmssf4): Likewise.
22492
22493         * config/mn10300/mn10300.md (isa): New attribute.
22494         (enabled): New attribute.
22495
22496         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
22497         (abssf2, negsf2): Define only for hardware fp.
22498         (sqrtsf2): Reformat.
22499         (addsf3, subsf3, mulsf3): Merge expander and insn.
22500
22501         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
22502         (DEBUGGER_AUTO_OFFSET): Remove.
22503         (DEBUGGER_ARG_OFFSET): Remove.
22504
22505         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
22506         Emit register stores with the same offsets as the hardware.
22507         (mn10300_store_multiple_operation): Don't check that the register
22508         save offsets are monotonic.
22509         * config/mn10300/mn10300-protos.h: Update.
22510
22511         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
22512
22513         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
22514         in terms of the value on the stack, not the MDR register.
22515
22516 2011-01-11  Jan Hubicka  <jh@suse.cz>
22517
22518         PR lto/45721
22519         PR lto/45375
22520         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
22521         (symbol_alias_set_destroy, symbol_alias_set_contains,
22522         propagate_aliases_backward): Declare.
22523         * lto-streamer-out.c (struct sets): New sturcture.
22524         (trivally_defined_alias): New function.
22525         (output_alias_pair_p): Rewrite.
22526         (output_unreferenced_globals): Fix output of alias pairs.
22527         (produce_symtab): Likewise.
22528         * ipa.c (function_and_variable_visibility): Set weak alias destination
22529         as needed in lto.
22530         * varasm.c (symbol_alias_set_t): Remove.
22531         (symbol_alias_set_destroy): Export.
22532         (propagate_aliases_forward, propagate_aliases_backward): New functions
22533         based on ...
22534         (compute_visible_aliases): ... this one; remove.
22535         (trivially_visible_alias): New
22536         (trivially_defined_alias): New.
22537         (remove_unreachable_alias_pairs): Rewrite.
22538         (finish_aliases_1): Reorganize code checking if alias is defined.
22539         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
22540         in LTO mode.
22541
22542 2011-01-11  Richard Guenther  <rguenther@suse.de>
22543
22544         PR tree-optimization/46076
22545         * tree-ssa.c (useless_type_conversion_p): Conversions from
22546         unprototyped to empty argument list function types are useless.
22547
22548 2011-01-11  Richard Guenther  <rguenther@suse.de>
22549
22550         PR middle-end/45235
22551         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
22552         volatile MEMs as MEM_READONLY_P.
22553
22554 2011-01-11  Richard Guenther  <rguenther@suse.de>
22555
22556         PR tree-optimization/47239
22557         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
22558
22559 2011-01-11  Jeff Law  <law@redhat.com>
22560
22561         PR tree-optimization/47086
22562         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
22563         IVs from statements that might throw.
22564
22565 2011-01-10  Jan Hubicka  <jh@suse.cz>
22566
22567         PR lto/45375
22568         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
22569
22570 2011-01-10  Jan Hubicka  <jh@suse.cz>
22571
22572         PR lto/45375
22573         * profile.c (read_profile_edge_counts): Ignore profile inconistency
22574         when correcting profile.
22575
22576 2011-01-10  Jan Hubicka  <jh@suse.cz>
22577
22578         PR lto/46083
22579         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
22580         DECL_FINI_PRIORITY.
22581         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
22582         Restore DECL_FINI_PRIORITY.
22583
22584 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22585
22586         * doc/gimple.texi: Fix quoting of multi-word return values in
22587         @deftypefn statements.  Ensure presence of return value.  Wrap
22588         overlong @deftypefn lines.
22589         (is_gimple_operand, is_gimple_min_invariant_address): Remove
22590         descriptions of removed functions.
22591         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
22592         of multi-word return value in @deftypefn statement.
22593
22594 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22595
22596         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
22597         (Conditional Expressions, Logical Operators)
22598         (Statement and operand traversals): Do not indent smallexample
22599         code.  Fix duplicate function argument in example.
22600
22601 2011-01-10  Jeff Law  <law@redhat.com>
22602
22603         PR tree-optimization/47141
22604         * ipa-split.c (split_function): Handle case where we are
22605         returning a value and the return block has a virtual operand phi.
22606
22607 2011-01-10  Jan Hubicka  <jh@suse.cz>
22608
22609         PR tree-optimization/47234
22610         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
22611         (pass_feedback_split_functions): Declare.
22612         * passes.c (init_optimization_passes): Add ipa-split as subpass of
22613         tree-profile.
22614         * ipa-split.c (gate_split_functions): Update comments; disable
22615         split-functions for profile_arc_flag and branch_probabilities.
22616         (gate_feedback_split_functions): New function.
22617         (execute_feedback_split_functions): New function.
22618         (pass_feedback_split_functions): New global var.
22619
22620 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22621
22622         PR lto/46760
22623         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
22624         calling gimple_call_set_cannot_inline.
22625
22626 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
22627
22628         * config/darwin-sections.def: Remove unused section.
22629
22630 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
22631
22632         PR c++/47218
22633         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22634
22635 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
22636
22637         PR objc/47232
22638         * c-parser.c (c_parser_declaration_or_fndef): Improved
22639         error message.
22640
22641 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
22642
22643         * config/i386/winnt.c (i386_pe_start_function): Make sure
22644         to switch back to function's section.
22645
22646 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
22647
22648         PR gcc/46902
22649         PR testsuite/46912
22650         * plugin.c: Move include of dlfcn.h from here...
22651         * system.h: ... to here.
22652
22653 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22654
22655         * doc/cpp.texi (C++ Named Operators): Fix markup for header
22656         file name.
22657         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22658         two extra empty pages in PDF output.
22659
22660 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
22661
22662         PR objc/47078
22663         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22664         for error recovery purposes behave as if it was not specified so
22665         that the default type is usd.
22666
22667 2011-01-07  Jan Hubicka  <jh@suse.cz>
22668
22669         PR tree-optmization/46469
22670         * ipa.c (function_and_variable_visibility): Clear needed flags on
22671         nodes with external decls; handle weakrefs merging correctly.
22672
22673 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
22674
22675         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22676         not false.
22677
22678 2011-01-07  Jan Hubicka  <jh@suse.cz>
22679
22680         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22681         and no longer claim that gold is required for linker plugin.
22682         * configure: Regenerate.
22683         * gcc.c (PLUGIN_COND): New macro.
22684         (LINK_COMMAND_SPEC): Use it.
22685         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22686         * config.in (HAVE_LTO_PLUGIN): New.
22687         * configure.ac (--with-lto-plugin): New parameter; autodetect
22688         HAVE_LTO_PLUGIN.
22689
22690 2011-01-07  Jan Hubicka  <jh@suse.cz>
22691
22692         PR tree-optimization/46367
22693         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22694         when we can update original.
22695         (cgraph_mark_inline_edge): Sanity check.
22696         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22697
22698 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22699
22700         * config/spu/spu.h (ASM_COMMENT_START): Define.
22701
22702 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
22703
22704         PR driver/42445
22705         * gcc.c (%>S): New.
22706         (SWITCH_KEEP_FOR_GCC): Likewise.
22707         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22708         (do_spec_1): Handle "%>".
22709
22710         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22711
22712 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
22713
22714         PR target/47201
22715         * config/i386/i386.c (ix86_delegitimize_address): If
22716         simplify_gen_subreg fails, return orig_x.
22717
22718         PR bootstrap/47187
22719         * value-prof.c (gimple_stringop_fixed_value): Handle
22720         lhs of the call properly.
22721
22722 2011-01-07  Jan Hubicka  <jh@suse.cz>
22723
22724         PR lto/45375
22725         * lto-opt.c (lto_reissue_options): Set flag_shlib.
22726
22727 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22728
22729         * target.def (function_switched_text_sections): New hook.
22730         * doc/tm.texi: Regenerated.
22731         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22732         * final.c (default_function_switched_text_sections): New.
22733         (final_scan_insn): Call function_switched_text_sections when a
22734         mid-function section change occurs.
22735         * output.h (default_function_switched_text_sections): Declare.
22736         * config/darwin-protos.h (darwin_function_switched_text_sections):
22737         Likewise.
22738         * config/darwin.c (darwin_function_switched_text_sections): New.
22739         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22740
22741 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
22742
22743         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
22744         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
22745         the secondary code fragment when outputting for DWARF == 2.
22746
22747 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
22748
22749         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22750         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22751         Remove.
22752         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22753         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22754
22755 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
22756
22757         PR debug/46704
22758         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22759         when it is not empty.
22760
22761 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
22762
22763         Bobcat Enablement
22764         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22765         (case ${target}): Add btver1.
22766         * config/i386/driver-i386.c (host_detect_local_cpu): Let
22767         -march=native recognize btver1 processors.
22768         * config/i386/i386-c.c (ix86_target_macros_internal): Add
22769         btver1 def_and_undef
22770         * config/i386/i386.c (struct processor_costs btver1_cost): New
22771         btver1 cost table.
22772         (m_BTVER1): New definition.
22773         (m_AMD_MULTIPLE): Includes m_BTVER1.
22774         (initial_ix86_tune_features): Add btver1 tune.
22775         (processor_target_table): Add btver1 entry.
22776         (static const char *const cpu_names): Add btver1 entry.
22777         (software_prefetching_beneficial_p): Add btver1.
22778         (ix86_option_override_internal): Add btver1 instruction sets.
22779         (ix86_issue_rate): Add btver1.
22780         (ix86_adjust_cost): Add btver1.
22781         * config/i386/i386.h (TARGET_BTVER1): New definition.
22782         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22783         (enum processor_type): Add PROCESSOR_BTVER1.
22784         * config/i386/i386.md (define_attr "cpu"): Add btver1.
22785
22786 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22787
22788         PR target/43309
22789         * config/i386/i386.c (legitimize_tls_address)
22790         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22791         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22792         (tls_initial_exec_64_sun): New pattern.
22793
22794 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
22795
22796         * doc/invoke.texi (Overall Options): Improve wording and markup
22797         of the description of -wrapper.
22798
22799 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22800
22801         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22802         rdynamic, threads): New Driver options.
22803
22804 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22805
22806         PR target/38118
22807         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22808         if coming from .tdata.
22809         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22810
22811 2011-01-06  Jan Hubicka  <jh@suse.cz>
22812
22813         PR lto/47188
22814         * collect2.c (main): Do not enable LTOmode when plugin is active.
22815
22816 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22817
22818         PR other/45915
22819         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22820         --version output if supported.
22821         * configure: Regenerate.
22822
22823 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
22824
22825         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22826         Driver options.
22827
22828 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
22829
22830         PR c/47150
22831         * c-convert.c (convert): When converting a complex expression
22832         other than COMPLEX_EXPR to a different complex type, ensure
22833         c_save_expr is called instead of save_expr, unless in_late_binary_op.
22834         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22835         when converting COMPLEX_TYPE.
22836
22837 2011-01-06  Ira Rosen  <irar@il.ibm.com>
22838
22839         PR tree-optimization/47139
22840         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22841         only the last reduction value is used outside the loop.  Update
22842         documentation.
22843
22844 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
22845
22846         * config/rtems.opt: New.
22847         * config.gcc (*-*-rtems*): Use rtems.opt.
22848
22849 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
22850
22851         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22852         processors do not support 3DNow instructions.
22853
22854 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22855
22856         * config/spu/spu.c (spu_option_override): Set parameter
22857         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22858
22859 2011-01-05  Jan Hubicka  <jh@suse.cz>
22860
22861         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22862         at the command line.
22863
22864 2011-01-05  Martin Jambor  <mjambor@suse.cz>
22865
22866         PR lto/47162
22867         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22868         deltas on streamed outgoing edges.
22869         (output_node_opt_summary): Output info for outgoing edges only when
22870         the node is in new parameter set.
22871         (output_cgraph_opt_summary): New parameter set, passed to the two
22872         aforementioned functions.  Update its forward declaration and its
22873         callee too.
22874
22875 2011-01-05  Tom Tromey  <tromey@redhat.com>
22876
22877         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22878         operator to c_finish_omp_atomic.
22879         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22880         (build_unary_op): Update.
22881         (build_modify_expr): Update.
22882         (build_asm_expr): Update.
22883
22884 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22885
22886         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22887         newly inserted insns.
22888         (pad_bb): Likewise.
22889         (spu_emit_branch_hint): Likewise.
22890         (insert_hbrp_for_ilb_runout): Likewise.
22891         (spu_machine_dependent_reorg): Call df_finish_pass after
22892         schedule_insns returns.
22893
22894 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22895
22896         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22897
22898 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22899
22900         PR tree-optimization/47005
22901         * tree-sra.c (struct access): Add 'non_addressable' bit.
22902         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22903         (decide_one_param_reduction): Return 0 if the parameter is passed by
22904         reference and one of the accesses in the group is non_addressable.
22905
22906 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22907
22908         PR tree-optimization/47056
22909         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22910         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
22911         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
22912
22913 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22914
22915         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22916         initializer.  Skip view conversions from aggregate types.
22917
22918 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
22919
22920         PR bootstrap/47055
22921         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22922
22923 2011-01-04  Philipp Thomas  <pth@suse.de>
22924
22925         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22926         obvious typo.
22927
22928 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22929
22930         * function.c (thread_prologue_and_epilogue_insns): Do not crash
22931         on empty epilogue sequences.
22932
22933 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
22934
22935         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22936         non-static): New Driver options.
22937
22938 2011-01-04  Jie Zhang  <jie@codesourcery.com>
22939
22940         PR driver/47137
22941         * gcc.c (default_compilers[]): Set combinable field to 0
22942         for all assembly languages.
22943
22944 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
22945
22946         * config/mips/loongson3a.md: New file.
22947         * config/mips/mips.md: Include loongson3a.md.
22948         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22949         TUNE_LOONGSON_3A.
22950
22951 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
22952
22953         PR middle-end/47017
22954         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22955         instead of convert_memory_address_addr_space on the base expression.
22956
22957 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22958
22959         * config/spu/spu.c (spu_option_override): Update error text
22960         for bad -march= / -mtune= values.
22961
22962 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22963
22964         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22965         if branch-hint optimization will be performed.
22966
22967 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22968
22969         PR tree-optimization/47148
22970         * ipa-split.c (split_function): Convert arguments to
22971         DECL_ARG_TYPE if possible.
22972
22973         PR tree-optimization/47155
22974         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22975         when computing uns.
22976
22977         PR rtl-optimization/47157
22978         * combine.c (try_combine): If undobuf.other_insn becomes
22979         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22980         and set *new_direct_jump_p too.
22981
22982 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22983
22984         PR tree-optimization/47021
22985         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22986
22987 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
22988
22989         * gcc.c (process_command): Update copyright notice dates.
22990         * gcov.c (print_version): Likewise.
22991         * gcov-dump.c (print_version): Likewise.
22992         * mips-tfile.c (main): Likewise.
22993         * mips-tdump.c (main): Likewise.
22994
22995 2011-01-03  Martin Jambor  <mjambor@suse.cz>
22996
22997         PR tree-optimization/46801
22998         * tree-sra.c (type_internals_preclude_sra_p): Check whether
22999         aggregate fields start at byte boundary instead of the bit-field flag.
23000
23001 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23002
23003         PR driver/47137
23004         * gcc.c (main): Revert revision 168407.
23005
23006 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23007
23008         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
23009
23010 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23011
23012         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
23013         vector optab to expand vector/scalar shift, update gimple to vector.
23014
23015 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23016
23017         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
23018         a thunk.
23019
23020 2011-01-03  Martin Jambor  <mjambor@suse.cz>
23021
23022         PR tree-optimization/46984
23023         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
23024         HOST_WIDE_INT.
23025         (cgraph_create_indirect_edge): Fixed line length.
23026         (cgraph_indirect_call_info): Declare.
23027         (cgraph_make_edge_direct) Update declaration.
23028         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
23029         (cgraph_create_indirect_edge): Use it.
23030         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
23031         callees.
23032         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
23033         the new thunk_delta representation.
23034         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
23035         HOST_WIDE_INT.
23036         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
23037         (ipa_read_indirect_edge_info): Likewise.
23038         * lto-cgraph.c (output_edge_opt_summary): New function.
23039         (output_node_opt_summary): Call it on all outgoing edges.
23040         (input_edge_opt_summary): New function.
23041         (input_node_opt_summary): Call it on all outgoing edges.
23042
23043 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
23044
23045         PR driver/47137
23046         * gcc.c (main): Don't check have_o when settting combine_inputs.
23047
23048 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
23049
23050         * regrename.c: Add general comment describing the pass.
23051         (struct du_head): Remove 'length' field.
23052         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
23053         (regrename_optimize): Do not sort chains.  Rework comments, add others.
23054         Force renaming to the preferred class (if any) in the first pass and do
23055         not consider registers that belong to it in the second pass.
23056         (create_new_chain): Do not set 'length' field.
23057         (scan_rtx_reg): Likewise.
23058
23059 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
23060
23061         PR tree-optimization/47140
23062         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
23063         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
23064         to bit_value_binop.
23065
23066         PR rtl-optimization/47028
23067         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
23068         parm_birth_insn instead of at the beginning of first bb.
23069
23070 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
23071
23072         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
23073         Remove the word "see" before "@pxref".
23074         * doc/rtl.texi: Remove the word "see" before "@pxref".
23075
23076 2011-01-01  Jan Hubicka  <jh@suse.cz>
23077
23078         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
23079         memory.
23080
23081 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
23082
23083         PR target/38662
23084         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
23085
23086 \f
23087 Copyright (C) 2011 Free Software Foundation, Inc.
23088
23089 Copying and distribution of this file, with or without modification,
23090 are permitted in any medium without royalty provided the copyright
23091 notice and this notice are preserved.