sse.md (VI_128): New mode iterator.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/sse.md (VI_128): New mode iterator.
4         (VI12_128): Rename from SSEMODE12.
5         (VI14_128): Rename from SSEMODE14.
6         (VI124_128): New mode iterator.
7         (VI24_128): Rename from SSEMODE248.
8         (VI248_128): Rename from SSEMODE248.
9         (SSEMODE124C8): Remove.
10         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11         (*sse2_<plusminus_insn><mode>3): Merge with
12         *avx_<plusminus_insn><mode>3.
13         (*mulv8hi3): Merge with *avx_mulv8hi3.
14         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
15         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
16         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
17         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18         (ashr<mode>3): Merge with *avx_ashr<mode>3.
19         (lshr<mode>3): Merge with *avx_lshr<mode>3.
20         (ashl<mode>3): Merge with *avx_ashl<mode>3.
21         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
23         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24         (*<smaxmin:code>v8hi3): Ditto.
25         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
26         (*<smaxmin:code>v16qi3): Ditto.
27         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
28         (*sse2_eq<mode>3): Ditto.
29         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
30         (*sse2_gt<mode>3): Ditto.
31         (vcondv2di): Split out of vcond<mode>.
32         (vconduv2di): Split out of vcondu<mode>.
33
34 2011-04-11  Richard Guenther  <rguenther@suse.de>
35
36         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
37         before calling tree_low_cst.
38
39 2011-04-11  Richard Guenther  <rguenther@suse.de>
40
41         * stor-layout.c (layout_type): Compute all array index size operations
42         in the original type.
43         (initialize_sizetypes): Add comment.
44         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
45
46 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
47
48         * common.opt (Tbss=, Tdata=, Ttext=): New options.
49
50 2011-04-11  Martin Jambor  <mjambor@suse.cz>
51
52         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
53         of cgraph_node, handle NULL return value.
54         (cgraph_global_info): Likewise.
55         (cgraph_rtl_info): Likewise.
56         * tree-inline.c (estimate_num_insns): Likewise.
57         * gimplify.c (unshare_body): Likewise.
58         (unvisit_body): Likewise.
59         (gimplify_body): Likewise.
60         * predict.c (optimize_function_for_size_p): Likewise.
61         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
62         (call_may_clobber_ref_p_1): Likewise.
63         * varasm.c (function_section_1): Likewise.
64         (assemble_start_function): Likewise.
65
66 2011-04-11  Martin Jambor  <mjambor@suse.cz>
67
68         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
69         of cgraph_node.
70         * final.c (rest_of_clean_state): Likewise.
71         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
72         * passes.c (pass_init_dump_file): Likewise.
73         (execute_all_ipa_transforms): Likewise.
74         (function_called_by_processed_nodes_p): Likewise.
75         * predict.c (maybe_hot_frequency_p): Likewise.
76         (probably_never_executed_bb_p): Likewise.
77         (compute_function_frequency): Likewise.
78         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
79         (unnest_nesting_tree_1): Likewise.
80         (lower_nested_functions): Likewise.
81         * tree-optimize.c (execute_fixup_cfg): Likewise.
82         (tree_rest_of_compilation): Likewise.
83         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
84         * tree-sra.c (ipa_early_sra): Likewise.
85         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
86         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
87         * ipa.c (record_cdtor_fn): Likewise.
88         * ipa-inline.c (cgraph_early_inlining): Likewise.
89         (compute_inline_parameters_for_current): Likewise.
90         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
91         * ipa-pure-const.c (local_pure_const): Likewise.
92         * ipa-split.c (split_function): Likewise.
93         (execute_split_functions): Likewise.
94         * cgraphbuild.c (build_cgraph_edges): Likewise.
95         (rebuild_cgraph_edges): Likewise.
96         (cgraph_rebuild_references): Likewise.
97         (remove_cgraph_callee_edges): Likewise.
98         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
99         (verify_cgraph_node): Likewise.
100         (cgraph_analyze_functions): Likewise.
101         (cgraph_preserve_function_body_p): Likewise.
102         (save_inline_function_body): Likewise.
103         (save_inline_function_body): Likewise.
104         * tree-inline.c (copy_bb): Likewise.
105         (optimize_inline_calls): Likewise.
106
107 2011-04-11  Martin Jambor  <mjambor@suse.cz>
108
109         PR tree-optimization/48195
110         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
111         ipa_check_create_edge_args.
112         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
113         ipa_check_create_edge_args.
114         * ipa-inline.c (inline_generate_summary): Do not call
115         ipa_check_create_node_params and ipa_check_create_edge_args.
116         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
117         ipa_check_create_edge_args.
118
119 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
120
121         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
122         instead of loop.
123         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
124         * function.c (record_hard_reg_sets): Likewise.
125         * ira.c (compute_regs_asm_clobbered): Likewise.
126         * sched-deps.c (sched_analyze_1): Likewise.
127         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
128
129 2011-04-09  Xinliang David Li  <davidxl@google.com>
130
131         PR tree-optimization/PR48484
132         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
133         has_valid_pred lazily
134
135 2011-04-09  Duncan Sands  <baldrick@free.fr>
136
137         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
138
139 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
140
141         * combine.c (combine_validate_cost): Adjust comments.  Set registered
142         cost of I0 to zero at the end, if any.
143
144 2011-04-08  Xinliang David Li  <davidxl@google.com>
145
146         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
147         to insane profile data.
148
149 2011-04-08  Xinliang David Li  <davidxl@google.com>
150
151         * final.c (dump_basic_block_info): New function.
152         (final): Dump basic block.
153         (final_scan_insn): Remove old dump.
154
155 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
156
157         PR target/47829
158         * config.gcc (i386-*-freebsd): Disable unwind table generation for
159         crtbegin/crtend.
160
161 2011-04-08  Michael Matz  <matz@suse.de>
162
163         PR middle-end/48389
164         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
165         functions.
166         (rebuild_jump_labels): Call rebuild_jump_labels_1.
167         * rtl.h (rebuild_jump_labels_chain): Declare.
168         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
169         insns inserted on edges.
170
171 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
172
173         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
174         * config/arm/arm-arches.def: New.
175         * config/arm/arm-opts.h: New.
176         * config/arm/genopt.sh: New.
177         * config/arm/arm-tables.opt: New (generated).
178         * config/arm/arm.c (arm_handle_option, arm_target_help,
179         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
180         (all_architectures): Get most table contents from arm-arches.def.
181         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
182         arm_selected_tune here.
183         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
184         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
185         (march=, mcpu=, mtune=): Use Enum and Var.
186         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
187         (arm.o): Update dependencies.
188
189 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
190
191         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
192         of header_file.
193         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
194         (write_typed_alloc_defns): Likewise.
195         (main): Calls write_typed_alloc_defns with output_header.
196
197 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
198
199         PR inline-asm/48435
200         * ira-color.c (setup_profitable_hard_regs): Add comments.
201         Don't take prohibited hard regs into account.
202         (setup_conflict_profitable_regs): Rename to
203         get_conflict_profitable_regs.
204         (check_hard_reg_p): Check prohibited hard regs.
205
206 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
207
208         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
209         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
210         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
211
212 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
213
214         PR target/48366
215         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
216         move from floating point to shift amount register .
217         (emit_move_sequence): Remove secondary reload support for floating
218         point to shift amount amount register copies.
219         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
220         amount register copies.
221         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
222         register, return false if mode isn't a scalar integer mode.
223         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
224
225 2011-04-08  Richard Guenther  <rguenther@suse.de>
226
227         * gimple.c (gimple_call_flags): Remove kludge.
228
229 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
230
231         * sel-sched.c (sel_region_init): Move call to
232         sel_setup_region_sched_flags after setup_current_loop_nest.
233
234 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
235
236         PR rtl-optimization/48272
237         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
238         init_insn_reg_pressure_info.  Adjust a caller.
239         * sched-int.h (init_insn_reg_pressure_info): Declare.
240         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
241         when sched-pressure is enabled.
242
243 2011-04-08  Richard Guenther  <rguenther@suse.de>
244
245         * gimple.c (gimple_set_modified): Do not queue calls to
246         MODIFIED_NORETURN_CALLS here ...
247         * tree-ssa-operands.c (update_stmt_operands): ... but here.
248
249 2011-04-08  Richard Guenther  <rguenther@suse.de>
250
251         PR lto/48467
252         * toplev.c (lang_dependent_init): Do not open asm_out_file
253         in WPA mode, nor perform debug machinery initialization.
254         (finalize): Do not unlink asm_out_file in WPA mode.
255
256 2011-04-08  Richard Guenther  <rguenther@suse.de>
257
258         * gimple.h (gimple_call_fntype): New function.
259         (gimple_call_return_type): Use it.
260         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
261         * gimple-low.c (gimple_check_call_args): Likewise.
262         * gimple.c (gimple_call_flags): Likewise.
263         (gimple_call_arg_flags): Likewise.
264         (gimple_call_return_flags): Likewise.
265         * tree-cfg.c (verify_gimple_call): Likewise.
266         (do_warn_unused_result): Likewise.
267         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
268         * value-prof.c (gimple_ic_transform): Fix fndecl check.
269
270 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
271
272         PR rtl-optimization/48235
273         * sel-sched.c (code_motion_process_successors): Recompute the last
274         insn in basic block if control flow changed.
275         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
276         Update condition for ilist_remove.
277
278 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
279
280         PR rtl-optimization/48302
281         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
282         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
283         it to record added preheader blocks.
284         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
285         on to sel_add_loop_preheaders.
286         (sel_region_init): Move call to setup_current_loop_nest after
287         sel_init_bbs.
288
289 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
290
291         PR target/48273
292         * cfgloop.h (loop_has_exit_edges): New helper.
293         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
294         non-clonable.
295         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
296         that have no exit edges.
297
298 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
299
300         PR rtl-optimization/48442
301         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
302         all callers.  Adjust assert.
303
304 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
305
306         PR tree-optimization/48377
307         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
308         is_packed to true even for types with smaller TYPE_ALIGN than
309         TYPE_SIZE.
310
311 2011-04-08  Richard Guenther  <rguenther@suse.de>
312
313         PR bootstrap/48513
314         * doc/tm.texi: Re-generate.
315
316 2011-04-08  Wei Guozhi  <carrot@google.com>
317
318         PR target/47855
319         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
320         * config/arm/arm.c (arm_attr_length_push_multi): New function.
321         * config/arm/arm.md (*push_multi): Change the length computation to
322         call a C function.
323
324 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
325
326         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
327         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
328         * doc/tm.texi: Regenerate.
329         * system.h (ASM_OUTPUT_BSS): Poison.
330         * varasm.c (asm_output_bss): Remove function.
331         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
332
333         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
334         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
335         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
336         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
337         Likewise.
338         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
339         Likewise.
340         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
341         Likewise.
342         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
343
344 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
345
346         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
347         EnumValue lines.
348
349 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
350
351         * config/m68k/m68k.c (m68k_handle_option): Don't handle
352         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
353         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
354         OPT_mcpu32.
355         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
356         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
357         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
358         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
359         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
360         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
361         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
362         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
363         options.  Don't map other m68k options manually.  Don't handle
364         old-style options as canonical.
365         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
366         * doc/install.texi (m68k-*-*): Document binutils version requirement.
367
368 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
369
370         * basic-block.h (force_nonfallthru): Move to...
371         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
372         (force_nonfallthru): ...here.
373         * cfghooks.c (force_nonfallthru): New function.
374         * cfgrtl.c (force_nonfallthru): Rename into...
375         (rtl_force_nonfallthru): ...this.
376         (commit_one_edge_insertion): Do not set AUX field.
377         (commit_edge_insertions): Do not discover new basic blocks.
378         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
379         (cfg_layout_rtl_cfg_hooks): Likewise.
380         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
381         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
382         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
383
384 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
385
386         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
387         Remove macros.
388
389 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
390
391         * config/i386/sse.md: Update copyright year.
392         (avxcvtvecmode): Remove.
393         (sse_movhlps): Merge with *avx_movhlps.
394         (sse_movlhps): Merge with *avx_movlhps.
395         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
396         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
397         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
398         (sse_loadhps): Merge with *avx_loadhps.
399         (sse_storelps): Merge with *avx_storelps.
400         (sse_loadlps): Merge with *avx_loadlps.
401         (sse_movss): Merge with *avx_movss.
402         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
403         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
404         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
405         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
406         (vec_set<mode>_0): Ditto.
407         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
408         (sse4_1_insertps): Merge with *avx_insertps.
409         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
410         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
411         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
412         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
413         (sse2_storehpd): Merge with *avx_storehpd.
414         (sse2_loadhpd): Merge with *avx_loadhpd.
415         (sse2_loadlpd): Merge with *avx_loadlpd.
416         (sse2_movsd): Merge with *avx_movsd.
417         (*vec_concatv2df): Merge with *vec_concatv2df.
418
419 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
420
421         PR debug/48343
422         * combine.c (combine_instructions): Add last_combined_insn,
423         update it if insn is after it, pass it to all try_combine calls.
424         (try_combine): Add last_combined_insn parameter, pass it instead of
425         i3 to propagate_for_debug.
426
427 2011-04-07  Nick Clifton  <nickc@redhat.com>
428
429         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
430         to handle MDR <-> data register transfers.
431         (movhi_internal): Likewise.
432
433 2011-04-07  Alan Modra  <amodra@gmail.com>
434
435         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
436         previous stack info.
437
438 2011-04-07  Tom de Vries  <tom@codesourcery.com>
439
440         PR target/43920
441         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
442         flow_find_cross_jump.  Swap variables to implement backward replacement.
443         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
444
445 2011-04-07  Tom de Vries  <tom@codesourcery.com>
446
447         PR target/43920
448         * cfgcleanup.c (walk_to_nondebug_insn): New function.
449         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
450         and bb2.
451         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
452         src1 or src2.  Redirect edges to the last basic block.  Update
453         frequency and count on multiple basic blocks in case of fallthru.
454
455 2011-04-07  Tom de Vries  <tom@codesourcery.com>
456
457         PR target/43920
458         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
459         function.
460         (old_insns_match_p): Change return type.  Replace return false/true
461         with return dir_none/dir_both.  Use can_replace_by.
462         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
463         direction from dir_p.  Register replacement direction in dir, last_dir
464         and afterlast_dir.  Handle new return type of old_insns_match_p using
465         merge_dir.  Return replacement direction in dir_p.
466         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
467         return type of old_insns_match_p.
468         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
469         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
470         flow_find_cross_jump.
471         * basic-block.h (enum replace_direction): New type.
472         (flow_find_cross_jump): Add parameter to declaration.
473
474 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
475
476         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
477         (AVXMODEDCVTPS2DQ): Ditto.
478         (VEC_FLOAT_MODE): Ditto.
479         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
480         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
481         (<any_logic:code><mode>3): Use VF mode iterator.
482         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
483         Use VF mode iterator.
484         (copysign<mode>3): Use VF mode iterator.
485         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
486         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
487         (*<any_logic:code><MODEF:mode>3): Merge with
488         *avx_<any_logic:code><MODEF:mode>3.
489         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
490         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
491         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
492         (avx_cvtdq2ps<avxmodesuffix>): Remove.
493         (sse2_cvtdq2ps): Use %v modifier.
494         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
495         (avx_cvtps2dq<avxmodesuffix>): Remove.
496         (sse2_cvtps2dq): Use %v modifier.
497         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
498         (avx_cvttps2dq<avxmodesuffix>): Remove.
499         (sse2_cvttps2dq): Use %v modifier.
500         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
501         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
502         (sse2_cvtsd2siq): Fix insn template.
503         (sse2_cvtsd2siq_2): Ditto.
504         (sse2_cvttsd2siq): Ditto.
505         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
506         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
507
508 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
509
510         * gcov-io.c: Use GCC Runtime Library Exception.
511
512 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
513
514         PR debug/48466
515         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
516         as base_reg whatever register reg has been eliminated to, instead
517         of hardcoding STACK_POINTER_REGNUM.
518
519 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
520
521         * doc/tm.texi.in: Document C target hooks as separate from general
522         target hooks.
523         * doc/tm.texi: Regenerate.
524         * genhooks.c (struct hook_desc): Add docname field.
525         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
526         docname field.
527         (hook_array): Include c-target.def.
528         (emit_documentation): Use docname field in output.
529         (emit_init_macros): Take docname argument.  Only emit definitions
530         for hooks matching docname.
531         (main): Expect additional arguments in all cases.  Pass argument
532         to emit_init_macros.
533         * target.def: Move initial macro definitions and comments to
534         target-hooks-macros.h.
535         (gcc_targetcm): Move to c-family/c-target.def.
536         * target.h (targetcm): Move declaration to c-family/c-target.h.
537         * targhooks.c (default_handle_c_option): Move to
538         c-family/c-opts.c.
539         * targhooks.h (default_handle_c_option): Move declaration to
540         c-family/c-common.h.
541         * target-hooks-macros.h: New file.
542         * config.gcc (target_has_targetcm): Define and use to add to
543         c_target_objs and cxx_target_objs.
544         * config/default-c.c: New file.
545         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
546         of target.h and target-def.h.
547         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
548         (darwin_objc_construct_string, darwin_cfstring_ref_p,
549         darwin_check_cfstring_format_arg): Make static.
550         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
551         TARGET_STRING_OBJECT_REF_TYPE_P,
552         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
553         * config/darwin-protos.h (darwin_objc_construct_string,
554         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
555         declare.
556         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
557         TARGET_STRING_OBJECT_REF_TYPE_P,
558         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
559         * config/t-darwin (darwin-c.o): Update dependencies.
560         * system.h (TARGET_HAS_TARGETCM): Poison.
561         * Makefile.in (TARGET_H): Update.
562         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
563         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
564         (default-c.o): New target.
565         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
566         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
567         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
568         c-target.def.
569         (build/genhooks.o): Update dependencies.
570
571 2011-04-06  Richard Guenther  <rguenther@suse.de>
572
573         * ipa-inline.c (enum inlining_mode): Remove.
574         (cgraph_flatten): Use some other token.
575         (cgraph_edge_early_inlinable_p): New function, split out from ...
576         (cgraph_perform_always_inlining): New function, split out from ...
577         (cgraph_decide_inlining_incrementally): ... here.
578         (cgraph_mark_inline_edge): Adjust.
579         (cgraph_early_inlining): Re-structure.
580         (pass_early_inline): Require SSA form.
581
582 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
583             Julian Brown  <julian@codesourcery.com>
584             Mark Shinwell  <shinwell@codesourcery.com>
585
586         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
587         LO_REGS only for Thumb-1.
588         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
589         be used in short instructions when optimising for size on Thumb-2.
590
591 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
592
593         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
594         associated with user returns to be preserved.
595
596 2011-04-06  Tristan Gingold  <gingold@adacore.com>
597
598         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
599         symbol_queue_size, DBXOUT_DECR_NESTING,
600         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
601         if XCOFF_DEBUGGING_INFO.
602
603 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
604
605         * config/i386/i386.md (attribute isa): New.
606         (attribute enabled): New.
607         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
608         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
609         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
610         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
611         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
612         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
613         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
614         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
615
616         * config/i386/sse.md (VF): New mode iterator.
617         (VF1): Ditto.
618         (VF2): Ditto.
619         (VF_128): Ditto.
620         (SSEMODEF4): Remove.
621         (attribute sse): Handle V8SF and V4DF modes.
622         (<absneg:code><mode>2): Use VF mode iterator.
623         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
624         mode iterator.
625         (<plusminus_insn><mode>3): Use VF mode iterator.
626         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
627         Use VF mode iterator.
628         (<sse>_vm<plusminus_insn><mode>3): Merge with
629         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
630         (mul<mode>3): Use VF mode iterator.
631         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
632         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
633         mode iterator.
634         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
635         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
636         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
637         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
638         mode iterator.
639         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
640         Use VF1 mode iterator.
641         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
642         (sqrt<VF2:mode>2): New expander.
643         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
644         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
645         and sqrtv2df2.  Use VF mode iterator.
646         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
647         mode iterator.
648         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
649         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
650         Use VF1 mode iterator.
651         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
652         (<smaxmin:code><mode>3): Use VF mode iterator.
653         (*<smaxmin:code><mode>3_finite): Merge with
654         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
655         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
656         (<sse>_vm<smaxmin:code><mode>2): Merge with
657         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
658         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
659         mode iterator.
660         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
661         mode iterator.
662         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
663         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
664         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
665         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
666         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
667         VF mode iterator.
668         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
669         Use VF_128 mode iterator.
670         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
671         mode iterator.
672         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
673         VF_128 mode iterator.
674         (vcond<mode>): Use VF mode iterator.
675         * config/i386/predicates.md (sse_comparison_operator): Merge with
676         avx_comparison_float_operator.  Do not declare as special_predicate.
677         * config/i386/i386.c (struct builtin_description): Update for renamed
678         compare patterns.
679         (ix86_expand_args_builtin): Ditto.
680         (ix86_expand_sse_compare_mask): Ditto.
681
682 2011-04-06  Richard Guenther  <rguenther@suse.de>
683
684         * tree-inline.c (estimate_num_insns): For calls simply account
685         for all passed arguments and a used return value.
686
687 2011-04-06  Richard Guenther  <rguenther@suse.de>
688
689         PR tree-optimization/47663
690         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
691         call_stmt_time fields.
692         (cgraph_edge_inlinable_p): Declare.
693         (cgraph_edge_recursive_p): New inline function.
694         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
695         (cgraph_clone_edge): Copy it.
696         * ipa-inline.c (cgraph_estimate_edge_time): New function.
697         Account for call stmt time.
698         (cgraph_estimate_time_after_inlining): Take edge argument.
699         (cgraph_estimate_edge_growth): Account call stmt size.
700         (cgraph_estimate_size_after_inlining): Take edge argument.
701         (cgraph_mark_inline_edge): Adjust.
702         (cgraph_check_inline_limits): Likewise.
703         (cgraph_recursive_inlining_p): Remove.
704         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
705         (cgraph_decide_recursive_inlining): Take edge argument and
706         adjust.
707         (cgraph_decide_inlining_of_small_functions): Do not avoid
708         diags for recursive inlining here.
709         (cgraph_flatten): Adjust.
710         (cgraph_decide_inlining_incrementally): Likewise.
711         (estimate_function_body_sizes): Remove call cost handling.
712         (compute_inline_parameters): Initialize caller edge call costs.
713         (cgraph_estimate_edge_growth): New function.
714         (cgraph_estimate_growth): Use it.
715         (cgraph_edge_badness): Likewise.
716         (cgraph_check_inline_limits): Take an edge argument.
717         (cgraph_decide_inlining_of_small_functions): Adjust.
718         (cgraph_decide_inlining): Likewise.
719         * tree-inline.c (estimate_num_insns): Only account for call
720         return value if it is used.
721         (expand_call_inline): Avoid diagnostics on recursive inline
722         functions here.
723         * lto-cgraph.c (lto_output_edge): Output edge call costs.
724         (input_edge): Input edge call costs.
725
726 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
727
728         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
729
730 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
731
732         * doc/invoke.texi (Spec Files): Fix typo.
733
734 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
735
736         * profile.c (branch_prob): Move declaration of local variable.  Remove
737         obsolete ??? comment.  Expand the location explicitly instead of using
738         the LOCATION_FILE and LOCATION_LINE macros.
739
740 2011-04-06  Wei Guozhi  <carrot@google.com>
741
742         PR target/47855
743         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
744         (arm_cond_branch): Likewise.
745         (arm_cond_branch_reversed): Likewise.
746         (arm_jump): Likewise.
747         (push_multi): Likewise.
748         * config/arm/constraints.md (Py): New constraint.
749
750 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
751
752         PR bootstrap/48471
753         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
754         Move these...
755         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
756         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
757         #ifdef DBX_DEBUGGING_INFO.
758
759 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
760
761         PR bootstrap/48403
762         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
763         if old and new states differ.
764
765 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
766
767         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
768         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
769         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
770         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
771         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
772         mcfv4e): Use Alias.
773         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
774         ColdFire options to -mcpu= options.
775
776 2011-04-05  Jeff Law  <law@redhat.com>
777
778         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
779         check if BB is a successor of LOOP->header and return
780         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
781
782 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
783
784         * cprop.c (struct reg_use): Remove.
785         (reg_use_table): Make an array of RTX.
786         (find_used_regs, constprop_register, local_cprop_pass,
787         bypass_block): Simplify users of reg_use_table.
788         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
789         on one of the uses found by find_used_regs.
790
791 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
792
793         PR bootstrap/48469
794         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
795         declaration.
796
797 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
798
799         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
800         as an rtx.
801         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
802
803 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
804
805         PR middle-end/48441
806         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
807
808 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
809
810         * combine.c: Include obstack.h.
811         (struct insn_link): Define.
812         (uid_log_links): Adjust type.
813         (FOR_EACH_LOG_LINK): New macro.
814         (insn_link_obstack): Declare.
815         (alloc_insn_link): Define.
816         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
817         type of link variables.
818         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
819         (try_combine, record_promoted_values, distribute_notes): Likewise.
820         (distribute_links): Likewise.  Tweak prototype.
821         (clear_log_links): Delete.
822         (adjust_for_new_dest): Call alloc_insn_link.
823         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
824
825 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
826
827         * gcse.c (modify_mem_list): Convert to an array of VECs.
828         (canon_modify_mem_list, compute_transp): Tweak formatting.
829         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
830         (load_killed_in_block_p): Likewise.
831         (record_last_mem_set_info): Likewise.
832         (clear_modify_mem_tables): Likewise.
833
834 2011-04-05  Tom de Vries  <tom@codesourcery.com>
835
836         PR middle-end/48461
837         * function.c (emit_use_return_register_into_block): Only define if
838         HAVE_return.
839
840 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
841
842         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
843
844 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
845
846         * config/rx/rx-opts.h: New.
847         * config/rx/rx.c (rx_cpu_type): Remove.
848         (rx_handle_option): Don't assert that global structures are in
849         use.  Access variables via opts pointer.  Defer most handling of
850         OPT_mint_register_.  Use error_at.
851         (rx_option_override): Handle deferred OPT_mint_register_ here.
852         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
853         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
854         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
855         (rx_cpu_types): New Enum and EnumValue entries.
856         (mint-register=): Use Defer and use Var accordingly.
857
858 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
859
860         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
861         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
862         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
863         Move these...
864         (debug_free_queue, debug_nesting, symbol_queue_index):
865         ...and these...
866         * dbxout.c: ...to here.  Make static.
867
868 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
869
870         * gcse.c (modify_pair): Define.  Define a VEC of it.
871         (canon_modify_mem_list): Convert to an array of VECs.
872         (free_insn_expr_list_list): Delete.
873         (clear_modify_mem_tables): Call VEC_free instead.
874         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
875         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
876         (canon_list_insert, compute_transp): Likewise.
877
878 2011-04-05  Tom de Vries  <tom@codesourcery.com>
879
880         PR target/43920
881         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
882         for size.
883
884 2011-04-05  Tom de Vries  <tom@codesourcery.com>
885
886         PR target/43920
887         * function.c (emit_use_return_register_into_block): New function.
888         (thread_prologue_and_epilogue_insns): Use
889         emit_use_return_register_into_block.
890
891 2011-04-05  Tom de Vries  <tom@codesourcery.com>
892
893         PR target/43920
894         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
895         insn.
896
897 2011-04-05  Tom de Vries  <tom@codesourcery.com>
898
899         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
900
901 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
902
903         * config/arm/arm.md (define_constants for unspec): Replace with
904         define_c_enum.
905         (define_constants for unspecv): Replace with define_c_enum.
906         * config/arm/neon.md (define_constants for unspec): Replace with
907         define_c_enum.
908
909 2011-04-04  Richard Henderson  <rth@redhat.com>
910
911         PR bootstrap/48400
912         * dwarf2out.c (output_line_info): Always emit line info from
913         at least one section.
914         (dwarf2out_init): Create text_section_line_info here ...
915         (set_cur_line_info_table): ... not here.
916
917 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
918
919         PR target/48380
920         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
921         not called.
922
923         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
924
925 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
926
927         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
928         (expr_equiv_p): Remove.
929         (insert_set_in_table): Look at <dest, src> pair instead of expr.
930         (hash_scan_set): Update call to insert_set_in_table.
931         (dump_hash_table): Dump <dest, src> pair.
932         (lookup_set): Simplify.  Lookup <dest, src> pair.
933         (compute_transp): Remove, fold heavily simplified code into...
934         (compute_local_properties): ...here.  Expect COMP and TRANSP
935         unconditionally.
936         (find_avail_set): Take set directly from struct expr.
937         (find_bypass-set): Likewise.
938         (bypass_block): Likewise.
939         (cprop_insn): Likewise.  Remove redundant INSN_P test.
940
941         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
942         checks on form of COND from find_implicit_sets to here.
943         (find_implicit_sets): Cleanup control flow. Split critical edges
944         if it exposes implicit sets.  Allocate/resize implicit_sets as
945         necessary.
946         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
947         changed something.  Run df_analyze after find_implicit_sets if any
948         edges were split.  Do not allocate implicit_sets here.
949
950         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
951         (gcse_obstack): Renamed to cprop_obstack.
952         (GNEW, GNEWVEC, GNEWVAR): Remove.
953         (gmalloc): Remove.
954         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
955         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
956         (gcse_alloc): Likewise, and rename to cprop_alloc.
957         (alloc_gcse_men, free_gcse_mem): Remove.
958         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
959         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
960         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
961
962         * cprop.c (oprs_not_set_p): Remove.
963         (mark_set, mark_clobber): Remove.
964         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
965         (reg_not_set_p): New function.
966         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
967         (cprop_insn): Likewise.
968         (cprop_jump): Use FOR_EACH_EDGE.
969
970 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
971
972         PR bootstrap/48403
973         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
974         (rank_for_schedule): Use scheduled_insns vector instead of
975         last_scheduled_insn.
976         (ok_for_early_queue_removal): Likewise.
977         (queue_to_ready): Search forward in nonscheduled_insns_begin if
978         we have a dbg_cnt.
979         (choose_ready): Likewise.
980         (commit_schedule): Use VEC_iterate.
981         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
982         a dbg_cnt, use it and ensure the first insn is in the ready list.
983         (haifa_sched_init): Allocate scheduled_insns.
984         (sched_extend_ready_list): Don't allocate it; reserve space.
985         (haifa_sched_finish): Free it.
986
987 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
988
989         * optc-gen.awk: Always remove type from Variable entry before
990         recording in var_seen.
991
992 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
993
994         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
995         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
996         call to tidy_fallthru_edges.
997
998 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
999
1000         * doc/options.texi (ToLower): Document.
1001         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
1002         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
1003         * opts.h (cl_option): Add cl_tolower field.
1004         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
1005         arguments with lowercase strings.
1006         * config/rx/rx.opt (mcpu=): Add ToLower.
1007         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
1008         argument.
1009
1010 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
1011
1012         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
1013
1014 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
1015
1016         * config/vax/vax.c: Include reload.h.
1017
1018 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
1019
1020         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
1021         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1022         (sparc_preferred_reload_class): New function.
1023
1024 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
1025
1026         PR debug/48401
1027         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1028         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
1029
1030 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
1031
1032         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
1033         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
1034
1035 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
1036
1037         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
1038         (ASM_OUTPUT_ALIGNED_BSS): Define.
1039
1040 2011-04-03  Michael Matz  <matz@suse.de>
1041
1042         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
1043         and next_slot members.
1044         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
1045         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
1046         (lto_streamer_cache_append): Declare.
1047         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
1048         unsigned index, remove offset parameter, ensure that we append
1049         or update existing entries.
1050         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
1051         parameter, update next_slot for append.
1052         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
1053         parameter.
1054         (lto_streamer_cache_insert_at): Likewise.
1055         (lto_streamer_cache_append): New function.
1056         (lto_streamer_cache_lookup): Use unsigned index.
1057         (lto_streamer_cache_get): Likewise.
1058         (lto_record_common_node): Don't test tree_node_can_be_shared.
1059         (preload_common_node): Adjust call to lto_streamer_cache_insert.
1060         (lto_streamer_cache_delete): Don't free offsets member.
1061         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
1062         (lto_output_string_with_length): Use lto_output_data_stream.
1063         (lto_output_tree_header): Remove ix parameter, don't write it.
1064         (lto_output_builtin_tree): Likewise.
1065         (lto_write_tree): Adjust callers to above, don't track and write
1066         offset, write unsigned index.
1067         (output_unreferenced_globals): Don't emit all global vars.
1068         (write_global_references): Use unsigned indices.
1069         (lto_output_decl_state_refs): Likewise.
1070         (write_symbol): Likewise.
1071         * lto-streamer-in.c (lto_input_chain): Move earlier.
1072         (input_function): Use unsigned index.
1073         (input_alias_pairs): Don't read and then ignore all global vars.
1074         (lto_materialize_tree): Remove ix_p parameter, don't read index,
1075         don't pass it back, use lto_streamer_cache_append.
1076         (lto_register_var_decl_in_symtab): Use unsigned index.
1077         (lto_register_function_decl_in_symtab): Likewise.
1078         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
1079         index.
1080         (lto_get_builtin_tree): Don't read index, use
1081         lto_streamer_cache_append.
1082         (lto_read_tree): Adjust call to lto_materialize_tree.
1083
1084         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
1085         don't use function calls in arguments to MIN.
1086
1087         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
1088         twice.
1089
1090         * gimple.c (gimple_type_leader_entry): Mark deletable.
1091
1092 2011-04-03  Alan Modra  <amodra@gmail.com>
1093
1094         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
1095
1096 2011-04-03  Michael Matz  <matz@suse.de>
1097
1098         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
1099         an integer.
1100         * tree.h (tree_decl_non_common.vindex): Adjust comment.
1101
1102 2011-04-03  Michael Matz  <matz@suse.de>
1103
1104         * cgraphbuild.c (record_reference): Canonicalize constructor values.
1105         * gimple-fold.c (canonicalize_constructor_val): Accept being called
1106         without function context.
1107         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
1108         current_function_decl and cfun.
1109
1110 2011-04-03  Michael Matz  <matz@suse.de>
1111
1112         * tree.c (decl_init_priority_insert): Don't create entry for
1113         default priority.
1114         (decl_fini_priority_insert): Ditto.
1115         (fields_compatible_p, find_compatible_field): Remove.
1116         * tree.h (fields_compatible_p, find_compatible_field): Remove.
1117         * gimple.c (gimple_compare_field_offset): Adjust block comment.
1118
1119 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
1120
1121         * combine.c (try_combine): Remove useless local variable.
1122
1123 2011-04-03  Richard Guenther  <rguenther@suse.de>
1124             Ira Rosen  <ira.rosen@linaro.org>
1125
1126         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
1127         non-variable offsets and compare the remaining bases of the two
1128         accesses instead of looking for exact same data-ref.
1129
1130 2011-04-02  Kai Tietz  <ktietz@redhat.com>
1131
1132         PR target/48416
1133         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
1134
1135         * i386.c (ix86_is_msabi_thiscall): New helper function.
1136         (ix86_is_type_thiscall): New helper function.
1137         (ix86_comp_type_attributes): Handle thiscall for method-functions
1138         special.
1139         (init_cumulative_args): Likewise.
1140         (find_drap_reg): Likewise.
1141         (ix86_static_chain): Likewise.
1142         (x86_this_parameter): Likewise.
1143         (x86_output_mi_thunk): Likewise.
1144
1145 2011-04-01  Olivier Hainque  <hainque@adacore.com>
1146             Nicolas Setton  <setton@adacore.com>
1147             Eric Botcazou  <ebotcazou@adacore.com>
1148
1149         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
1150         (add_gnat_descriptive_type_attribute): New function.
1151         (gen_array_type_die): Call it.
1152         (gen_enumeration_type_die): Likewise.
1153         (gen_struct_or_union_type_die): Likewise.
1154         (modified_type_die): Likewise.
1155         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
1156         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
1157         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
1158
1159 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
1160
1161         PR bootstrap/48148
1162         * dwarf2out.c (resolve_addr): Don't call force_decl_die
1163         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
1164
1165         Revert:
1166         2011-03-17  Richard Guenther  <rguenther@suse.de>
1167
1168         PR bootstrap/48148
1169         * lto-cgraph.c (input_overwrite_node): Clear the abstract
1170         origin for decls in other ltrans units.
1171         (input_varpool_node): Likewise.
1172
1173 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
1174
1175         PR middle-end/48335
1176         * expr.c (expand_assignment): Handle all possibilities
1177         if TO_RTX is CONCAT.
1178         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
1179         (store_split_bit_field): If SUBREG_REG (op0) or
1180         op0 itself has smaller mode than word, return it
1181         for offset 0 and const0_rtx for out-of-bounds stores.
1182         If word is const0_rtx, skip it.
1183
1184 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
1185
1186         * config/h8300/h8300.c (print_operand_address): Rename to...
1187         (h8300_print_operand_address): ...this. Make static. Adjust comments.
1188         Call h8300_print_operand and h8300_print_operand_address instead of
1189         print_operand and print_operand_address. Declare.
1190         (print_operand): Renake to...
1191         (h8300_print_operand): ...this. Make static. Adjust comments.
1192         Call h8300_print_operand instead of print_operand. Declare.
1193         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
1194         (h8300_register_move_cost): Likewise.
1195         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
1196         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
1197         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
1198         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
1199         * config/h8300/h8300-protos.h (print_operand): Delete.
1200         (print_operand_address): Delete.
1201
1202 2011-04-01  Richard Henderson  <rth@redhat.com>
1203
1204         PR 48400
1205         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
1206         in strict mode before dwarf4.  Re-order tests to early out
1207         before switching sections.
1208
1209 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
1210
1211         * config/h8300/constraints.md: New file.
1212         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
1213         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
1214         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
1215         * config/h8300/predicates.md (bit_operand): Likewise.
1216         (incdec_operand): Use satisfies_constraint_M and
1217         satisfies_constraint_O.  Don't use C code block.
1218         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
1219         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
1220         (compute_mov_length): Use satisfies_constraint_G.
1221         (fix_bit_operand): Use satisfies_constraint_U.
1222         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
1223         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
1224         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
1225         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
1226         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
1227         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
1228         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1229         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
1230         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
1231         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
1232         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
1233         (EXTRA_MEMORY_CONSTRAINT): Delete.
1234
1235 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
1236             Michael Meissner  <meissner@linux.vnet.ibm.com>
1237
1238         PR target/48262
1239         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
1240         operands, as per the specifications.
1241
1242         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
1243         (vec_extract_evenv4sf): Ditto.
1244         (vec_extract_evenv8hi): Ditto.
1245         (vec_extract_evenv16qi): Ditto.
1246         (vec_extract_oddv4si): Ditto.
1247
1248 2011-03-31  Mark Wielaard  <mjw@redhat.com>
1249
1250         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
1251         high_pc attribute if the CU has no associated code. Only output
1252         DW_AT_entry_pc for CU if not generating strict dwarf and
1253         dwarf_version < 4.
1254
1255 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
1256
1257         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
1258         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
1259         out of ...
1260         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
1261         * final.c (final_start_function): Call the new function rather
1262         than using a NULL argument for dwarf2out_frame_debug.
1263
1264         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
1265         that contains the prologue.
1266
1267         * haifa-sched.c (queue_insn): New arg REASON.  All callers
1268         changed.  Print it in debugging output.
1269
1270         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
1271
1272         * sched-ebb.c (begin_schedule_ready): Remove second argument.
1273         Split most of the code into...
1274         (begin_move_insn): ... here.  New function.
1275         (ebb_sched_info): Add a pointer to it.
1276         * haifa-sched.c (scheduled_insns): New static variable.
1277         (sched_extend_ready_list): Allocate it.
1278         (schedule_block): Use it to record the order of scheduled insns.
1279         Perform RTL changes to move insns only after all scheduling
1280         decisions have been made.
1281         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
1282         begin_move_insn field.
1283         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1284         * sched-int.h (struct haifa_sched_info): Remove second argument
1285         from begin_schedule_ready hook.  Add new member begin_move_insn.
1286         * sched-rgn.c (begin_schedule_ready): Remove second argument.
1287         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
1288
1289         * haifa-sched.c (prune_ready_list): New function, broken out of
1290         schedule_block.
1291         (schedule_block): Use it.
1292
1293 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1294
1295         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
1296
1297 2011-04-01  Kai Tietz  <ktietz@redhat.com>
1298
1299         * config.gcc (*-*-mingw*): Allow as option the
1300         posix threading model.
1301         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
1302         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
1303         definition.
1304         (CPP_SPEC): Add pthread/no-pthread handling.
1305         (LIB_SPEC): Likewise.
1306         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
1307         (LIB_SPEC): Likewise.
1308         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
1309         flag to pass -pthread option for shared libgcc build.
1310         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
1311         for shared libgcc build.
1312         * config/i386/t-mingw-pthread: New file.
1313         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
1314         New define to enable use of library pthread by default.
1315         * config/i386/mingw.opt (pthread): New driver option.
1316         (no-pthread): New driver option.
1317         * config/i386/cygming.opt: Make sure trailing empty line is retained.
1318         * config/i386/mingw-w64.opt: Likewise.
1319
1320 2011-04-01  Gary Funck <gary@intrepid.com>
1321
1322         * c-decl.c (grokdeclarator): Fix formatting.
1323
1324 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
1325
1326         * expr.c (emit_block_move_via_movmem): Use n_generator_args
1327         instead of n_operands.
1328         (set_storage_via_setmem): Likewise.
1329         * optabs.c (maybe_gen_insn): Likewise.
1330         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
1331         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
1332         (mips_expand_builtin_direct): Likewise.
1333         * config/spu/spu.c (expand_builtin_args): Likewise.
1334
1335 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
1336
1337         * recog.h (insn_data_d): Add n_generator_args.
1338         * genoutput.c (data): Likewise.
1339         (output_insn_data): Print it.
1340         (max_opno, num_dups): Delete.
1341         (scan_operands): Just fill in "d->operand[...]".
1342         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
1343
1344 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
1345
1346         * gensupport.h (pattern_stats): New structure.
1347         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
1348         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
1349         (max_operand_1, max_operand_vec): Delete.
1350         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
1351
1352 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
1353
1354         * emit-rtl.c (emit_pattern_after_setloc): New function.
1355         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
1356         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
1357         (emit_pattern_after): New function.
1358         (emit_insn_after, emit_jump_insn_after): Call it.
1359         (emit_call_insn_after, emit_debug_insn_after): Likewise.
1360         (emit_pattern_before_setloc): New function.
1361         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
1362         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
1363         Likewise.
1364         (emit_pattern_before): New function.
1365         (emit_insn_before, emit_jump_insn_before): Call it.
1366         (emit_call_insn_before, emit_debug_insn_before): Likewise.
1367
1368 2011-03-31  Richard Henderson  <rth@redhat.com>
1369
1370         * dwarf2out.c (dw_separate_line_info_ref): Remove.
1371         (dw_separate_line_info_entry): Remove.
1372         (enum dw_line_info_opcode): New.
1373         (dw_line_info_entry): Use it.
1374         (dw_line_info_table, dw_line_info_table_p): New.
1375         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
1376         (line_info_table, line_info_label_num): Remove.
1377         (line_info_table_in_use): Remove.
1378         (separate_line_info_table): Remove.
1379         (separate_line_info_table_allocated): Remove.
1380         (separate_line_info_table_in_use): Remove.
1381         (LINE_INFO_TABLE_INCREMENT): Remove.
1382         (line_info_label_num): New.
1383         (cur_line_info_table): New.
1384         (text_section_line_info, cold_text_section_line_info): New.
1385         (separate_line_info): New.
1386         (SEPARATE_LINE_CODE_LABEL): Remove.
1387         (print_dwarf_line_table): Remove.
1388         (debug_dwarf): Don't dump it.
1389         (output_one_line_info_table): New.
1390         (output_line_info): Use it.
1391         (new_line_info_table): New.
1392         (set_cur_line_info_table): New.
1393         (dwarf2out_switch_text_section): Use it.
1394         (dwarf2out_begin_function): Likewise.
1395         (push_dw_line_info_entry): New.
1396         (dwarf2out_source_line): Rewrite for new line info tables.
1397         (dwarf2out_init): Remove dead initailizations.
1398
1399 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
1400
1401         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
1402         various flags.
1403         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
1404         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
1405         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
1406         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
1407         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
1408         * opt-functions.awk (flag_init, switch_bit_fields): New.
1409         (switch_flags): Don't handle flags moved to bit-fields.  Don't
1410         generate CL_MISSING_OK or CL_SAVE.
1411         * optc-gen.awk: Update to generate bit-field output as well as
1412         flags field.
1413         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
1414         bit-field instead of CL_REJECT_DRIVER flag.
1415         * opts-common.c (generate_canonical_option,
1416         decode_cmdline_option): Use bit-fields instead of CL_* flags.
1417         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
1418         instead of CL_REJECT_NEGATIVE flag.
1419         * toplev.c (print_switch_values): Use cl_report bit-field instead
1420         of CL_REPORT flag.
1421
1422 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
1423
1424         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1425         a zero minimum index only if it is redundant.
1426
1427 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
1428
1429         PR rtl-optimization/48381
1430         * ira-color.c (assign_hard_reg): Use hard reg set intersection
1431         instead of ira_class_hard_reg_index for calculating conflicting
1432         hard registers.
1433
1434 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
1435
1436         * cprop.c: Clean up hash table building.
1437         (reg_avail_info): Remove.
1438         (oprs_available_p): Remove.
1439         (record_last_reg_set_info): Remove.
1440         (record_last_set_info): Remove.
1441         (reg_available_p): New function.
1442         (gcse_constant_p): Do not treat unfolded conditions as constants.
1443         (make_set_regs_unavailable): New function.
1444         (hash_scan_set): Simplify with new reg_available_p.
1445         (compute_hash_table_work): Traverse insns stream only once.
1446         Do not compute reg_avail_info. Traverse insns in reverse order.
1447         Record implicit sets after recording explicit sets from the block.
1448
1449 2011-03-31  Michael Matz  <matz@suse.de>
1450
1451         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
1452
1453 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
1454
1455         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
1456         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
1457         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1458         (h8300_mode_dependent_address_p): New function.
1459         (h8300_get_index): Make static.
1460
1461 2011-03-31  Jeff Law  <law@redhat.com>
1462
1463         * reload1.c (elimination_effects): Fix typo in recent change.
1464
1465         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
1466         typo potentially leading to null pointer dereference.
1467
1468         * caller-save.c (new_saved_hard_reg): Eliminate return value.
1469         (setup_save_areas): Corresponding changes to avoid useless
1470         assignments.
1471
1472         * jump.c (reversed_comparison_code_parts): Avoid successive return
1473         statements when REVERSE_CONDITION is defined.
1474
1475         * expr.c (expand_assignment): Avoid useless assignments.
1476         (expand_expr_real_1): Likewise.
1477         (expand_expr_real_2): Avoid useless statements.
1478
1479         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
1480
1481         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1482
1483         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
1484         statements.
1485
1486         * stmt.c (expand_expr_stmt): Avoid useless assignment.
1487
1488 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
1489
1490         PR target/47109
1491         * doc/tm.texi.in (TARGET_VERSION): Remove.
1492         * doc/tm.texi: Regenerate.
1493         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
1494         * collect2.c (main): Don't use TARGET_VERSION.
1495         * mips-tdump.c (main): Don't use TARGET_VERSION.
1496         * mips-tfile.c (main): Don't use TARGET_VERSION.
1497         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
1498         * config/rs6000/vxworksae.h: Remove.
1499         * config/alpha/alpha.h (TARGET_VERSION): Remove.
1500         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
1501         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
1502         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
1503         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1504         * config/arm/arm.h (TARGET_VERSION): Remove.
1505         * config/arm/coff.h (TARGET_VERSION): Remove.
1506         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
1507         * config/arm/elf.h (TARGET_VERSION): Remove.
1508         * config/arm/freebsd.h (TARGET_VERSION): Remove.
1509         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
1510         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
1511         * config/arm/pe.h (TARGET_VERSION): Remove.
1512         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
1513         * config/arm/semi.h (TARGET_VERSION): Remove.
1514         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
1515         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
1516         * config/arm/vxworks.h (TARGET_VERSION): Remove.
1517         * config/avr/avr.h (TARGET_VERSION): Remove.
1518         * config/bfin/bfin.h (TARGET_VERSION): Remove.
1519         * config/fr30/fr30.h (TARGET_VERSION): Remove.
1520         * config/frv/frv.h (TARGET_VERSION): Remove.
1521         * config/h8300/h8300.h (TARGET_VERSION): Remove.
1522         * config/i386/cygwin.h (TARGET_VERSION): Remove.
1523         * config/i386/darwin.h (TARGET_VERSION): Remove.
1524         * config/i386/darwin64.h (TARGET_VERSION): Remove.
1525         * config/i386/djgpp.h (TARGET_VERSION): Remove.
1526         * config/i386/freebsd.h (TARGET_VERSION): Remove.
1527         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
1528         * config/i386/gnu.h (TARGET_VERSION): Remove.
1529         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
1530         * config/i386/i386elf.h (TARGET_VERSION): Remove.
1531         * config/i386/linux.h (TARGET_VERSION): Remove.
1532         * config/i386/linux64.h (TARGET_VERSION): Remove.
1533         * config/i386/lynx.h (TARGET_VERSION): Remove.
1534         * config/i386/mingw32.h (TARGET_VERSION): Remove.
1535         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
1536         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
1537         * config/i386/netware.h (TARGET_VERSION): Remove.
1538         * config/i386/nto.h (TARGET_VERSION): Remove.
1539         * config/i386/openbsd.h (TARGET_VERSION): Remove.
1540         * config/i386/vxworks.h (TARGET_VERSION): Remove.
1541         * config/ia64/elf.h (TARGET_VERSION): Remove.
1542         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
1543         * config/ia64/hpux.h (TARGET_VERSION): Remove.
1544         * config/ia64/linux.h (TARGET_VERSION): Remove.
1545         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1546         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
1547         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1548         * config/lm32/lm32.h (TARGET_VERSION): Remove.
1549         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
1550         * config/m32c/m32c.h (TARGET_VERSION): Remove.
1551         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
1552         * config/m32r/m32r.h (TARGET_VERSION): Remove.
1553         * config/m68k/linux.h (TARGET_VERSION): Remove.
1554         * config/m68k/m68k.h (TARGET_VERSION): Remove.
1555         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
1556         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
1557         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
1558         * config/mep/mep.h (TARGET_VERSION): Remove.
1559         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
1560         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1561         * config/mips/iris6.h (MACHINE_TYPE): Remove.
1562         * config/mips/linux.h (TARGET_VERSION): Remove.
1563         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
1564         * config/mips/vxworks.h (TARGET_VERSION): Remove.
1565         * config/mmix/mmix.h (TARGET_VERSION): Remove.
1566         * config/mn10300/linux.h (TARGET_VERSION): Remove.
1567         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
1568         * config/pa/pa.h (TARGET_VERSION): Remove.
1569         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
1570         * config/picochip/picochip.h (TARGET_VERSION): Remove.
1571         * config/rs6000/aix.h (TARGET_VERSION): Remove.
1572         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
1573         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
1574         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
1575         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
1576         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
1577         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
1578         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
1579         * config/rs6000/linux.h (TARGET_VERSION): Remove.
1580         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
1581         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
1582         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
1583         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
1584         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
1585         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
1586         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
1587         * config/s390/linux.h (TARGET_VERSION): Remove.
1588         * config/s390/s390.h (TARGET_VERSION): Remove.
1589         * config/s390/tpf.h (TARGET_VERSION): Remove.
1590         * config/score/score.h (TARGET_VERSION): Remove.
1591         * config/sh/linux.h (TARGET_VERSION): Remove.
1592         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
1593         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
1594         * config/sh/sh.h (TARGET_VERSION): Remove.
1595         * config/sh/sh64.h (TARGET_VERSION): Remove.
1596         * config/sh/superh.h (TARGET_VERSION): Remove.
1597         * config/sh/vxworks.h (TARGET_VERSION): Remove.
1598         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
1599         * config/sparc/linux.h (TARGET_VERSION): Remove.
1600         * config/sparc/linux64.h (TARGET_VERSION): Remove.
1601         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
1602         TARGET_NAME32, TARGET_NAME): Remove.
1603         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
1604         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
1605         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
1606         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
1607         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
1608         * config/spu/spu.h (TARGET_VERSION): Remove.
1609         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
1610         * config/v850/v850.h (TARGET_VERSION): Remove.
1611         * config/vax/linux.h (TARGET_VERSION): Remove.
1612         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
1613         * config/xtensa/elf.h (TARGET_VERSION): Remove.
1614         * config/xtensa/linux.h (TARGET_VERSION): Remove.
1615
1616 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
1617
1618         PR target/48142
1619         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
1620         frame-related from frame-unrelated adjustments to the stack pointer.
1621
1622 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
1623
1624         * common.opt (fdebug-types-section): Move earlier.
1625         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
1626
1627 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
1628
1629         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
1630         var.
1631
1632 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
1633
1634         * tree.h (CASE_CHAIN): Define.
1635         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
1636         (gimple_redirect_edge_and_branch): Likewise.
1637
1638 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
1639
1640         PR middle-end/48367
1641         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
1642         calculation.
1643
1644 2011-03-30  Jeff Law  <law@redhat.com>
1645
1646         * PR bootstrap/48371
1647         * reload1.c (reload): Fix botch in last change.
1648
1649         * reload.h (struct reload): Fix typo introduced in last change.
1650
1651 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
1652
1653         * config/arm/arm.opt (mhard-float, msoft-float): Mark
1654         Undocumented.  Remove help text.
1655         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
1656         -mhard-float.
1657
1658 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
1659
1660         * doc/options.texi (NegativeAlias): Document.
1661         (Alias): Mention NegativeAlias.
1662         * opt-functions.awk: Handle NegativeAlias.
1663         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
1664         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
1665         * opts.h (CL_NEGATIVE_ALIAS): Define.
1666         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
1667         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
1668         OPT_mspe_.
1669         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
1670         Alias entries.
1671         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
1672         mno-spe and mno-isel instead of mspe=no and -misel=no.
1673
1674 2011-03-29  Mark Wielaard  <mjw@redhat.com>
1675
1676         * common.opt (fdebug-types-section): New flag.
1677         * doc/invoke.texi: Document new -fno-debug-types-section flag.
1678         * dwarf2out.c (use_debug_types): New define.
1679         (struct die_struct): Mark die_id with GTY desc use_debug_types.
1680         (print_die): Guard output of type unit signatures using
1681         use_debug_types.
1682         (build_abbrev_table): Replace assert of dwarf_version >= 4
1683         with assert on use_debug_types.
1684         (size_of_die): Likewise.
1685         (unmark_dies): Likewise.
1686         (value_format): Decide AT_ref_external form on use_debug_types.
1687         (output_die): Replace dwarf_version version check guard with
1688         use_debug_types where appropriate.
1689         (modified_type_die): Likewise.
1690         (gen_reference_type_die): Likewise.
1691         (dwarf2out_start_source_file): Likewise.
1692         (dwarf2out_end_source_file): Likewise.
1693         (prune_unused_types_walk_attribs): Likewise.
1694         (dwarf2out_finish): Likewise.
1695
1696 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
1697
1698         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
1699
1700 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
1701
1702         PR rtl-optimization/48332
1703         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
1704         mode of input operand N and modeN to its actual mode.
1705
1706 2011-03-30  Jeff Law  <law@redhat.com>
1707
1708         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
1709         define accessor macro.
1710         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
1711         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
1712         (reg_equiv_init): Likewise.
1713         (reg_equivs_size): New variable.
1714         (reg_equiv_init_size): Remove.
1715         (allocate_initial_values): Move prototype to here from....
1716         * integrate.h (allocate_initial_values): Remove prototype.
1717         * integrate.c: Include reload.h.
1718         (allocate_initial_values): Corresponding changes.
1719         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
1720         (fix_reg_equiv_init, no_equiv): Corresponding changes.
1721         (update_equiv_regs): Corresponding changes.
1722         (ira): Corresponding changes.
1723         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
1724         (push_secondary_reload): Corresponding changes.
1725         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
1726         (make_memloc, find_reloads_address): Corresponding changes.
1727         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
1728         (find_reloads_address_1): Corresponding changes.
1729         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
1730         (refers_to_regno_for_reload_p): Corresponding changes.
1731         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
1732         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
1733         * reload1.c: Include ggc.h.
1734         (grow_reg_equivs): New function.
1735         (replace_pseudos_in, reload): Corresponding changes.
1736         (calculate_needs_all_insns, alter_regs): Corresponding changes.
1737         (eliminate_regs_1, elimination_effects): Corresponding changes.
1738         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
1739         (delete_output_reload): Likewise.
1740         * caller-save.c (mark_referenced_regs): Corresponding changes.
1741         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
1742         * frv/predicates.md (frv_load_operand): Corresponding changes.
1743         * microblaze/microblaze.c (double_memory_operand): Corresponding
1744         changes.
1745         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
1746         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
1747         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
1748         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
1749         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
1750         changes.
1751         * pa/pa.c (emit_move_sequence): Corresponding changes.
1752         * vax/vax.c (nonindexed_address_p): Corresponding changes.
1753
1754 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
1755
1756         PR target/47551
1757         * config/arm/arm.c (coproc_secondary_reload_class): Handle
1758         structure modes.  Don't check neon_vector_mem_operand for
1759         vector or structure modes.
1760
1761 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
1762             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1763
1764         PR target/43590
1765         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
1766         operand 1 and reshuffle the operands to match.
1767         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
1768
1769 2011-03-30  Christian Schüler  <cschueler@gmx.de>
1770
1771         PR driver/48208
1772         * config/c.opt (F): Added 'Driver' to -F option.
1773
1774         PR driver/48260
1775         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
1776           handler function.
1777         * config/darwin.opt: Added '-arch' option.
1778
1779 2011-03-30  Nick Clifton  <nickc@redhat.com>
1780
1781         * config/rx/rx.md: Add peepholes and patterns to combine
1782         extending loads and simple arithmetic instructions.
1783         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
1784         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
1785         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
1786         modes to use pre-decrement and post-increment addressing.
1787         (rx_is_restricted_memory_address): Add range checking of REG+INT
1788         addresses.
1789         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
1790         (rx_memory_move_cost): Adjust cost of stores.
1791         (rx_adjust_insn_length): New function.
1792
1793 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
1794
1795         PR c/48305
1796         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1797         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
1798         matching arg00/arg01 types.
1799
1800 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
1801
1802         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
1803         last_location to UNKNOWN_LOCATION.
1804
1805 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1806
1807         PR target/48349
1808         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
1809         FLOAT_SSE_REGS.
1810
1811 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
1812             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1813
1814         PR bootstrap/48337
1815         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
1816         Init(PROCESSOR_V7).
1817         (sparc_cpu): Likewise.
1818         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
1819         PROCESSOR_V7.
1820
1821 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
1822
1823         PR target/48336
1824         PR middle-end/48342
1825         PR rtl-optimization/48345
1826         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
1827         hard regs for given mode from profitable regs when doing secondary
1828         allocation.
1829
1830 2011-03-29  Jeff Law  <law@redhat.com>
1831
1832         PR bootstrap/48327
1833         * tree-ssa-threadupdate.c (struct redirection_data): Remove
1834         do_not_duplicate field.
1835         (lookup_redirection_data): Corresponding changes.
1836         (create_duplicates): Always create a template block.
1837         (redirect_edges): Remove code which reused the original block
1838         when it was going to become unreachable code.
1839         (thread_block): Don't set do_not_duplicate field.
1840
1841 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
1842
1843         * lto-opts.c (register_user_option_p, lto_register_user_option):
1844         Make type argument unsigned.
1845         * lto-streamer.h (lto_register_user_option): Make type argument
1846         unsigned.
1847         * opth-gen.awk: Make CL_* macros unsigned.
1848         * opts-common.c (find_opt): Make lang_mask argument unsigned.
1849         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1850         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
1851         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
1852         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
1853         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
1854         (find_opt): Make lang_mask argument unsigned.
1855
1856 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
1857
1858         PR rtl-optimization/48331
1859         PR rtl-optimization/48334
1860         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
1861         for any used algorithm.
1862
1863 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
1864
1865         * ira-conflicts.c (build_object_conflicts): Add unused attribute
1866         to parent_max.
1867
1868 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
1869
1870         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
1871         (alpha_option_override): Don't set alpha_sr_alias_set.
1872         (emit_frame_store_1): Use gen_frame_mem rather than calling
1873         set_mem_alias_set.
1874         (alpha_expand_epilogue): Ditto.
1875
1876 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
1877
1878         PR tree-optimization/48290
1879         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
1880         vectorization, check that relevant phis in the basic block after
1881         the inner loop are really inner loop's exit phis.
1882
1883 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
1884
1885         PR debug/48190
1886         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
1887         (cached_dw_loc_list_def): New structure.
1888         (cached_dw_loc_list): New typedef.
1889         (cached_dw_loc_list_table): New variable.
1890         (cached_dw_loc_list_table_hash): New function.
1891         (cached_dw_loc_list_table_eq): Likewise.
1892         (add_location_or_const_value_attribute): Take a bool cache_p.
1893         Cache the list when the parameter is true.
1894         (gen_formal_parameter_die): Update caller.
1895         (gen_variable_die): Likewise.
1896         (dwarf2out_finish): Likewise.
1897         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
1898         while generating debug info for the decl.
1899         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
1900         (dwarf2out_init): Initialize cached_dw_loc_list_table.
1901         (resolve_addr): Cache the result of resolving a chain of
1902         location lists.
1903
1904 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
1905
1906         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
1907         conflict object hard regset nodes have intersecting hard reg sets.
1908
1909         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
1910         after regstat_init_n_sets_and_refs.
1911
1912         * ira.c: Add more comments at the top.
1913         (setup_stack_reg_pressure_class, setup_pressure_classes):
1914         Add comments how we compute the register pressure classes.
1915         (setup_allocno_and_important_classes): Add more comments.
1916         (setup_class_translate_array, reorder_important_classes)
1917         (setup_reg_class_relations): Add comments.
1918
1919         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
1920         start of the file.
1921
1922         * ira-color.c: Add 2011 to the Copyright line.
1923         (assign_hard_reg):  Add more comments.
1924         (improve_allocation): Ditto.
1925
1926         * ira-costs.c: Add 2011 to the Copyright line.
1927         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1928         comments.
1929         (setup_regno_cost_classes_by_mode): Ditto.
1930
1931         Initial patches from ira-improv branch:
1932
1933         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
1934
1935         * ira-build.c: (ira_create_object): Remove initialization of
1936         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
1937         (ira_create_allocno): Remove initialization of
1938         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1939         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1940         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1941         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1942         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1943         Initialize ALLOCNO_ADD_DATA.
1944         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1945         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1946         ALLOCNO_REG.
1947         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
1948         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1949
1950         * ira.c (ira_reallocate): Remove.
1951         (setup_pressure_classes): Call
1952         ira_init_register_move_cost_if_necessary.  Use
1953         ira_register_move_cost instead of ira_get_register_move_cost.
1954         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1955         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1956
1957         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1958         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1959         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1960         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1961         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1962         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1963         Fix formatting.
1964         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1965         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1966         (struct allocno_color_data): New.
1967         (allocno_color_data_t): New typedef.
1968         (allocno_color_data): New definition.
1969         (ALLOCNO_COLOR_DATA): New macro.
1970         (struct object_color_data): New.
1971         (object_color_data_t): New typedef.
1972         (object_color_data): New definition.
1973         (OBJECT_COLOR_DATA): New macro.
1974         (update_copy_costs, calculate_allocno_spill_cost): Call
1975         ira_init_register_move_cost_if_necessary.  Use
1976         ira_register_move_cost instead of ira_get_register_move_cost.
1977         (move_spill_restore, update_curr_costs): Ditto.
1978         (allocno_spill_priority): Make it inline.
1979         (color_pass): Allocate and free allocno_color_dat and object_color_data.
1980         (struct coalesce_data, coalesce_data_t): New.
1981         (allocno_coalesce_data): New definition.
1982         (ALLOCNO_COALESCE_DATA): New macro.
1983         (merge_allocnos, coalesced_allocno_conflict_p): Use
1984         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1985         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1986         (coalesce_allocnos): Ditto.
1987         (setup_coalesced_allocno_costs_and_nums): Ditto.
1988         (collect_spilled_coalesced_allocnos): Ditto.
1989         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1990         (setup_slot_coalesced_allocno_live_ranges): Ditto.
1991         (coalesce_spill_slots): Ditto.
1992         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
1993         free allocno_coalesce_data.
1994
1995         * ira-conflicts.c: Fix formatting.
1996         (process_regs_for_copy): Call
1997         ira_init_register_move_cost_if_necessary.  Use
1998         ira_register_move_cost instead of ira_get_register_move_cost.
1999         (build_object_conflicts): Optimize.
2000
2001         * ira-costs.c (record_reg_classes): Optimize.  Call
2002         ira_init_register_move_cost_if_necessary.  Use
2003         ira_register_move_cost, ira_may_move_in_cost, and
2004         ira_may_move_out_cost instead of ira_get_register_move_cost and
2005         ira_get_may_move_cost.
2006         (record_address_regs): Ditto.
2007         (scan_one_insn): Optimize.
2008         (find_costs_and_classes): Optimize.
2009         (process_bb_node_for_hard_reg_moves): Call
2010         ira_init_register_move_cost_if_necessary.  Use
2011         ira_register_move_cost instead of ira_get_register_move_cost.
2012
2013         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
2014         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
2015         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
2016         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
2017         definitions.
2018         (ira_initiate_emit_data, ira_finish_emit_data)
2019         (create_new_allocno): New functions.
2020         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
2021         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
2022         Use ira_register_move_cost instead of ira_get_register_move_cost.
2023
2024         * ira-int.h: Fix some comments.
2025         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
2026         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2027         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
2028         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
2029         add_data.
2030         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
2031         bitfield after mode.  Make hard_regno a short int.  Make
2032         hard_regno short.  Remove first_coalesced_allocno and
2033         next_coalesced_allocno.  Move mem_optimized_dest_p,
2034         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
2035         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
2036         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
2037         temp, colorable_p.  Add new member add_data.
2038         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
2039         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
2040         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
2041         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
2042         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
2043         (ALLOCNO_ADD_DATA): New macro.
2044         (ira_emit_data_t): New typedef.
2045         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
2046         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
2047         from struct ira_allocno.
2048         (ALLOCNO_EMIT_DATA): New macro.
2049         (ira_allocno_emit_data, allocno_emit_reg): New.
2050         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
2051         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
2052         (OBJECT_ADD_DATA): New macro.
2053         (ira_reallocate): Remove.
2054         (ira_initiate_emit_data, ira_finish_emit_data): New.
2055         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
2056         (ira_init_register_move_cost_if_necessary): New.
2057         (ira_object_conflict_iter_next): Merge into
2058         ira_object_conflict_iter_cond.
2059         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
2060
2061         * ira-live.c: (process_single_reg_class_operands): Call
2062         ira_init_register_move_cost_if_necessary.  Use
2063         ira_register_move_cost instead of ira_get_register_move_cost.
2064
2065         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
2066
2067         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
2068
2069         * ira-costs.c: Fix formatting.
2070         (cost_classes, cost_classes_num): Remove.
2071         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
2072         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
2073         (cost_classes_del, cost_classes_htab): New.
2074         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
2075         (initiate_regno_cost_classes, setup_cost_classes): New.
2076         (setup_regno_cost_classes_by_aclass): New.
2077         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
2078         (record_reg_classes): Use regno_cost_classes instead of
2079         cost_classes.  Move checking opposite operand up.
2080         (record_address_regs): Use regno_cost_classes
2081         instead of cost_classes.
2082         (scan_one_insn): Ditto.  Use always general register.
2083         (print_allocno_costs): Use regno_cost_classes instead of
2084         cost_classes.
2085         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
2086         (find_costs_and_classes): Set up cost classes for each registers.
2087         Use also their mode for this.  Use regno_cost_classes instead of
2088         cost_classes.
2089         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
2090         cost_classes.
2091         (free_ira_costs, ira_init_costs): Don't use cost_classes.
2092         (ira_costs, ira_set_pseudo_classes): Call
2093         initiate_regno_cost_classes and finish_regno_cost_classes.
2094
2095         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
2096
2097         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
2098
2099         * target.def (ira_cover_classes): Remove.
2100
2101         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
2102
2103         * doc/tm.texi.in: Ditto.
2104
2105         * ira-conflicts.c: Remove mentioning cover classes from the file.
2106         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
2107         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
2108
2109         * targhooks.c (default_ira_cover_classes): Remove.
2110
2111         * targhooks.h (default_ira_cover_classes): Ditto.
2112
2113         * haifa-sched.c: Remove mentioning cover classes from the file.
2114         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
2115         ira_pressure_classes and ira_pressure_classes_num instead of
2116         ira_reg_class_cover_size and ira_reg_class_cover.  Use
2117         sched_regno_pressure_class instead of sched_regno_cover_class.
2118         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
2119         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2120
2121         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
2122         classes from the file.
2123         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
2124         (struct object_hard_regs, struct object_hard_regs_node): New.
2125         (struct ira_object): New members profitable_hard_regs,
2126         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
2127         (struct ira_allocno): Rename cover_class to aclass.  Rename
2128         cover_class_cost and updated_cover_class_cost to class_cost and
2129         updated_class_cost.  Remove splay_removed_p and
2130         left_conflict_size.  Add new members colorable_p.
2131         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
2132         (ALLOCNO_COLORABLE_P): New macro.
2133         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
2134         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
2135         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
2136         (OBJECT_...): Rename parameter C to O.
2137         (OBJECT_PROFITABLE_HARD_REGS): New macro.
2138         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
2139         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
2140         (struct target_ira_int): New members x_ira_max_memory_move_cost,
2141         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
2142         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
2143         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
2144         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
2145         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
2146         x_ira_reg_class_subunion.
2147         (ira_max_memory_move_cost, ira_max_register_move_cost)
2148         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
2149         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
2150         (ira_important_class_nums, ira_reg_class_superunion): New macros.
2151         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
2152         (ira_reg_class_union): Rename to ira_reg_class_subunion.
2153         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2154         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2155         (ira_tune_allocno_costs_and_cover_classes): Rename to
2156         ira_tune_allocno_costs.
2157         (ira_debug_hard_regs_forest): New.
2158         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
2159         (ira_object_conflict_iter_next): Fix comments.
2160         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
2161         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
2162         cover_class to aclass.
2163         (ira_allocate_and_accumulate_costs): Ditto.
2164         (ira_allocate_and_set_or_copy_costs): Ditto.
2165
2166         * opts.c (decode_options): Remove ira_cover_class check.
2167
2168         * ira-color.c: Remove mentioning cover classes from the file.  Use
2169         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
2170         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
2171         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
2172         (splay-tree.h): Remove include.
2173         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
2174         before copy_freq_compare_func.
2175         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
2176         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
2177         New definitions.
2178         (hard_regs_roots, hard_regs_node_vec): Ditto.
2179         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
2180         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
2181         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
2182         (create_new_object_hard_regs_node): Ditto.
2183         (add_new_object_hard_regs_node_to_forest): Ditto.
2184         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
2185         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
2186         Ditto.
2187         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
2188         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
2189         (remove_unused_object_hard_regs_nodes): Ditto.
2190         (enumerate_object_hard_regs_nodes): Ditto.
2191         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
2192         (object_hard_regs_subnode_t): Ditto.
2193         (struct object_hard_regs_subnode): Ditto.
2194         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
2195         (setup_object_hard_regs_subnode_index): Ditto.
2196         (get_object_hard_regs_subnodes_num): Ditto.
2197         (form_object_hard_regs_nodes_forest): Ditto.
2198         (finish_object_hard_regs_nodes_tree): Ditto.
2199         (finish_object_hard_regs_nodes_forest): Ditto.
2200         (allocnos_have_intersected_live_ranges_p): Rename to
2201         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
2202         (pseudos_have_intersected_live_ranges_p): Rename to
2203         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
2204         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
2205         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
2206         (update_copy_costs): Remove assert.  Skip cost update if the hard
2207         reg does not belong the class.
2208         (assign_hard_reg): Process only profitable hard regs.
2209         (uncolorable_allocnos_num): Make it scalar.
2210         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2211         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
2212         and ira_reg_class_max_nregs.
2213         (bucket_allocno_compare_func): Check frequency first.
2214         (sort_bucket): Add compare function as a parameter.
2215         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
2216         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
2217         (push_allocno_to_stack): Rewrite for checking new allocno
2218         colorability.
2219         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
2220         (push_only_colorable): Pass new parameter to sort_bucket.
2221         (push_allocno_to_spill): Remove.
2222         (allocno_spill_priority_compare): Make it inline and rewrite.
2223         (splay_tree_allocate, splay_tree_free): Remove.
2224         (allocno_spill_sort_compare): New function.
2225         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
2226         build and use splay tree.  Choose first allocno in uncolorable
2227         allocno bucket to spill.  Remove setting spill cost.
2228         (all_conflicting_hard_regs): Remove.
2229         (setup_allocno_available_regs_num): Check only profitable hard
2230         regs.  Print info about hard regs nodes.
2231         (setup_allocno_left_conflicts_size): Remove.
2232         (put_allocno_into_bucket): Don't call
2233         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
2234         (improve_allocation): New.
2235         (color_allocnos): Call setup_profitable_hard_regs,
2236         form_object_hard_regs_nodes_forest, improve_allocation,
2237         finish_object_hard_regs_nodes_forest.  Setup spill cost.
2238         (print_loop_title): Use pressure classes.
2239         (color_allocnso): Ditto.
2240         (do_coloring): Remove allocation and freeing splay_tree_node_pool
2241         and allocnos_for_spilling.
2242         (ira_sort_regnos_for_alter_reg): Don't setup members
2243         {first,next}_coalesced_allocno.
2244         (color): Remove allocating and freeing removed_splay_allocno_vec.
2245         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
2246         prohibited_class_mode_regs.
2247
2248         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
2249         formatting.
2250         (update_allocno_pressure_excess_length): Use pressure classes.
2251         (inc_register_pressure, dec_register_pressure): Check for pressure
2252         class.
2253         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
2254         pressure class.  Use ira_reg_class_nregs instead of
2255         ira_reg_class_max_nregs.
2256         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
2257         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
2258         (single_reg_class): Use ira_reg_class_nregs instead of
2259         ira_reg_class_max_nregs.
2260         (process_bb_node_lives): Use pressure classes.
2261
2262         * ira-emit.c: Remove mentioning cover classes from the file.  Use
2263         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
2264         (change_loop): Use pressure classes.
2265         (modify_move_list): Call ira_set_allocno_class instead of
2266         ira_set_allocno_cover_class.
2267
2268         * ira-build.c: Remove mentioning cover classes from the file.  Use
2269         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
2270         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
2271         ALLOCNO_UPDATED_CLASS_COST instead of
2272         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
2273         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
2274         (ira_create_allocno): Remove initialization of
2275         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
2276         ALLOCNO_COLORABLE_P.
2277         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2278         Update conflict regs for the objects.
2279         (create_cap_allocno): Remove assert.  Don't propagate
2280         ALLOCNO_AVAILABLE_REGS_NUM.
2281         (ira_free_allocno_costs): New function.
2282         (finish_allocno): Change a part of code into call of
2283         ira_free_allocno_costs.
2284         (low_pressure_loop_node_p): Use pressure classes.
2285         (object_range_compare_func): Don't compare classes.
2286         (setup_min_max_conflict_allocno_ids): Ditto.
2287
2288         * loop-invariant.c: Remove mentioning cover classes from the file.
2289         Use ira_pressure_classes and ira_pressure_classes_num instead of
2290         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
2291         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
2292         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2293         Use reg_allocno_class instead of reg_cover_class.
2294         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
2295         STACK_REG_COVER_CLASS.
2296         (get_regno_cover_class): Rename to get_regno_pressure_class.
2297         (move_loop_invariants): Initialize and finalize regstat.
2298
2299         * ira.c: Remove mentioning cover classes from the file.  Add
2300         comments about coloring without cover classes.  Use ALLOCNO_CLASS
2301         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
2302         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
2303         setup_class_subset_and_memory_move_costs.
2304         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
2305         (setup_cover_and_important_classes): Rename to
2306         setup_allocno_and_important_classes.
2307         (setup_class_translate_array): New.
2308         (setup_class_translate): Call it for allocno and pressure classes.
2309         (cover_class_order): Rename to allocno_class_order.
2310         (comp_reg_classes_func): Use ira_allocno_class_translate instead
2311         of ira_class_translate.
2312         (reorder_important_classes): Set up ira_important_class_nums.
2313         (setup_reg_class_relations): Set up ira_reg_class_superunion.
2314         (print_class_cover): Rename to print_classes.  Add parameter.
2315         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2316         Print pressure classes too.
2317         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
2318         setup_reg_subclasses.
2319         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2320         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2321         (setup_prohibited_class_mode_regs): Use
2322         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
2323         (clarify_prohibited_class_mode_regs): New function.
2324         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
2325         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
2326         (ira_init_once): Initialize them.
2327         (free_register_move_costs): Process them.
2328         (ira_init): Move calls of find_reg_classes and
2329         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
2330         Call clarify_prohibited_class_mode_regs.
2331         (ira_no_alloc_reg): Remove.
2332         (too_high_register_pressure_p): Use pressure classes.
2333
2334         * sched-deps.c: Remove mentioning cover classes from the file.
2335         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
2336         ira_pressure_classes and ira_pressure_classes_num instead of
2337         ira_reg_class_cover_size and ira_reg_class_cover.
2338         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
2339         sched_regno_pressure_class instead of sched_regno_cover_class.
2340         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
2341         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2342
2343         * ira.h: Add 2010 to Copyright.
2344         (ira_no_alloc_reg): Remove external.
2345         (struct target_ira): Rename x_ira_hard_regno_cover_class,
2346         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
2347         x_ira_class_translate to x_ira_hard_regno_allocno_class,
2348         x_ira_allocno_classes_num, x_ira_allocno_classes, and
2349         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
2350         x_ira_pressure_classes, x_ira_pressure_class_translate, and
2351         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
2352         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
2353         x_ira_no_alloc_regs.
2354         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2355         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
2356         ira_allocno_classes_num and ira_allocno_classes.
2357         (ira_class_translate): Rename to ira_allocno_class_translate.
2358         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
2359         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
2360         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2361         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
2362         (ira_no_alloc_regs): New.
2363
2364         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
2365         classes from the file.  Use ALLOCNO_CLASS instead of
2366         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
2367         ALLOCNO_COVER_CLASS_COST.
2368         (regno_cover_class): Rename to regno_aclass.
2369         (record_reg_classes): Use ira_reg_class_subunion instead of
2370         ira_reg_class_union.
2371         (record_address_regs): Check overflow.
2372         (scan_one_insn): Ditto.
2373         (print_allocno_costs): Print total mem cost fore regional allocation.
2374         (print_pseudo_costs): Use REG_N_REFS.
2375         (find_costs_and_classes): Use classes intersected with them on the
2376         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
2377         ira_reg_class_union.  Use ira_allocno_class_translate and
2378         regno_aclass instead of ira_class_translate and regno_cover_class.
2379         Modify code for finding regno_aclass.  Setup preferred classes for
2380         the next pass.
2381         (setup_allocno_cover_class_and_costs): Rename to
2382         setup_allocno_class_and_costs.  Use regno_aclass instead of
2383         regno_cover_class.  Use ira_set_allocno_class instead of
2384         ira_set_allocno_cover_class.
2385         (init_costs, finish_costs): Use regno_aclass instead of
2386         regno_cover_class.
2387         (ira_costs): Use setup_allocno_class_and_costs instead of
2388         setup_allocno_cover_class_and_costs.
2389         (ira_tune_allocno_costs_and_cover_classes): Rename to
2390         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
2391         by processing objects.  Use ira_reg_class_max_nregs instead of
2392         ira_reg_class_nregs.
2393
2394         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
2395
2396         * sched-int.h: Remove mentioning cover classes from the file.
2397         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
2398
2399         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
2400         classes from the file.
2401         (struct reg_pref): Rename coverclass into allocnoclass.
2402         (reg_cover_class): Rename to reg_allocno_class.
2403
2404         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
2405
2406         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
2407
2408         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2409
2410         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
2411
2412         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
2413
2414         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
2415
2416         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
2417
2418         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
2419
2420         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
2421
2422         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
2423
2424         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
2425         (i386_ira_cover_classes): Ditto.
2426
2427         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2428
2429         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
2430
2431         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
2432
2433         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
2434
2435         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
2436
2437         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
2438
2439         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
2440         (mips_ira_cover_classes): Ditto.
2441
2442         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
2443
2444         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
2445
2446         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
2447
2448         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
2449
2450         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
2451
2452         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
2453         (IRA_COVER_CLASSES_VSX): Ditto.
2454
2455         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
2456         (rs6000_ira_cover_classes): Ditto.
2457
2458         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
2459
2460         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
2461
2462         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
2463
2464         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
2465
2466         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
2467
2468         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
2469
2470         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
2471
2472         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
2473
2474         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
2475
2476         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
2477
2478 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
2479
2480         PR debug/48253
2481         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2482         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2483         dw_fde_unlikely_section_end_label, cold_in_std_section,
2484         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2485         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2486         fields.
2487         (output_fde): Use dw_fde_second_{begin,end} if second is
2488         true, otherwise dw_fde_{begin,end}.
2489         (output_call_frame_info): Test dw_fde_second_begin != NULL
2490         instead of dw_fde_switched_sections.
2491         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2492         fields, initialize new fields.  Initialize in_std_section
2493         unconditionally from the first partition.
2494         (dwarf2out_end_epilogue): Don't override dw_fde_end when
2495         dw_fde_second_begin is non-NULL.
2496         (dwarf2out_switch_text_section): Stop initializing removed
2497         dw_fde_struct fields, initialize new fields, initialize
2498         also dw_fde_end here.  Set dw_fde_switch_cfi even when
2499         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
2500         (struct var_loc_list_def): Add last_before_switch field.
2501         (arange_table, arange_table_allocated, arange_table_in_use,
2502         ARANGE_TABLE_INCREMENT, add_arange): Removed.
2503         (size_of_aranges): Count !in_std_section and !second_in_std_section
2504         hunks in fdes, instead of looking at arange_table_in_use.
2505         (output_aranges): Add aranges_length argument, don't call
2506         size_of_aranges here.  Instead of using aranges_table*
2507         emit ranges for fdes when !in_std_section resp.
2508         !second_in_std_section.
2509         (dw_loc_list): Break ranges crossing section switch.
2510         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
2511         use dw_fde_second_end instead of dw_fde_end as end of last range.
2512         (gen_subprogram_die): Don't call add_arange.  Use
2513         dw_fde_{begin,end} for first partition and if switched
2514         section dw_fde_second_{begin,end} for the second.
2515         (var_location_switch_text_section_1,
2516         var_location_switch_text_section): New functions.
2517         (dwarf2out_begin_function): Initialize cold_text_section even
2518         when function_section () isn't text_section.
2519         (prune_unused_types): Don't walk arange_table.
2520         (dwarf2out_finish): Don't needlessly test
2521         flag_reorder_blocks_and_partition when testing cold_text_section_used.
2522         If info_section_emitted, call size_of_aranges and if it indicates
2523         non-empty .debug_aranges, call output_aranges with the computed
2524         size.  Stop using removed dw_fde_struct fields, use
2525         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2526         for second.
2527
2528         PR debug/48203
2529         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
2530         create ENTRY_VALUE if incoming or address of incoming's MEM
2531         is a hard REG.
2532         * dwarf2out.c (mem_loc_descriptor): Don't emit
2533         DW_OP_GNU_entry_value of DW_OP_fbreg.
2534         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
2535         on ENTRY_VALUE is able to find the canonical parameter VALUE.
2536         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
2537         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
2538         ENTRY_VALUE_EXPs.
2539         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
2540         is a REG_P or MEM_P with REG_P address, compute hash directly
2541         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
2542         (preserve_only_constants): Don't clear VALUES forwaring
2543         ENTRY_VALUE to some other VALUE.
2544
2545 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
2546
2547         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
2548         instead of GEN_INT.
2549
2550 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
2551
2552         * cfgexpand.c (expand_gimple_cond): Always set the source location and
2553         block before expanding the statement.
2554         (expand_gimple_stmt_1): Likewise.  Set them here...
2555         (expand_gimple_stmt): ...and not here.  Tidy.
2556         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
2557         unknown.
2558
2559 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
2560
2561         * Makefile.in: New rule for cprop.o.
2562         * gcse.c: Move constant/copy propagation to cprop.c.
2563         (compute_local_properties): Only handle expression tables.
2564         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
2565         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
2566         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
2567         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
2568         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
2569         compute_cprop_data, find_used_regs, try_replace_reg,
2570         find_avail_set, cprop_jump, constprop_register, cprop_insn,
2571         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
2572         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
2573         find_bypass_set, reg_killed_on_edge, bypass_block,
2574         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
2575         execute_rtl_cprop, pass_rtl_cprop): Move to...
2576         * cprop.c: ...here.  New file, constant/copy propagation for RTL
2577         moved from gcse.c to here with minor cleanups in duplicated code.
2578
2579 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
2580
2581         * config/i386/i386.c (flag_opts): Fix a typo in
2582         -mavx256-split-unaligned-store.
2583
2584 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
2585
2586         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2587         LIBCALL_VALUE): Remove macros.
2588         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2589         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2590         (h8300_function_value, h8300_libcall_value,
2591         h8300_function_value_regno_p): New functions.
2592
2593 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
2594
2595         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
2596
2597 2011-03-28  Jeff Law  <law@redhat.com>
2598
2599         * tree-ssa-threadupdate.c (redirect_edges): Call
2600         create_edge_and_update_destination_phis as needed.
2601         (create_edge_and_update_destination_phis): Accept new BB argument.
2602         All callers updated.
2603         (thread_block): Do not update the profile when threading around
2604         intermediate blocks.
2605         (thread_single_edge): Likewise.
2606         (determine_bb_domination_status): If BB is not a successor of the
2607         loop header, return NONDOMINATING.
2608         (register_jump_thread): Note when we register a jump thread around
2609         an intermediate block.
2610         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
2611         (thread_across_edge): Use it.
2612
2613 2011-03-28  Tristan Gingold  <gingold@adacore.com>
2614
2615         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
2616         when for_return is 2.
2617
2618 2011-03-28  Jeff Law  <law@redhat.com>
2619
2620         * var-tracking.c (canonicalize_values_mark): Delete unused
2621         lhs assignment.
2622         (canonicalize_values_star, set_variable_part): Likewise.
2623         (clobber_variable_part, delete_variable_part): Likewise.
2624
2625 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
2626
2627         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
2628
2629 2011-03-28  Martin Jambor  <mjambor@suse.cz>
2630
2631         * tree-inline.c (expand_call_inline): Do not check that destination
2632         node is analyzed.
2633         (optimize_inline_calls): Assert that destination node is analyzed.
2634         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
2635         not call tree_lowering_passes.
2636         * cgraph.h (cgraph_analyze_function): Declare.
2637         * cgraphunit.c (cgraph_analyze_function): Make public.
2638
2639 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
2640
2641         * config/sparc/sparc-opts.h: New.
2642         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
2643         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
2644         (sparc_option_override): Store processor_type enumeration rather
2645         than string in cpu_default.  Remove name and enumeration from
2646         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
2647         without using sparc_select.  Use target_flags_explicit instead of
2648         fpu_option_set.
2649         * config/sparc/sparc.h (enum processor_type): Move to
2650         sparc-opts.h.
2651         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
2652         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
2653         HeaderInclude entry.
2654         (mcpu=, mtune=): Use Var and Enum.
2655         (sparc_processor_type): New Enum and EnumValue entries.
2656
2657 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2658             Iain Sandoe  <iains@gcc.gnu.org>
2659
2660         PR target/48245
2661         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
2662
2663 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
2664
2665         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
2666         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
2667         Insert new statements at it in lieu of STMT.
2668         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
2669         * tree-vect-stmts.c (vectorizable_store): Likewise.
2670         (vectorizable_load): Likewise.
2671
2672 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
2673
2674         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
2675         (divtf3): Ditto.
2676         (multf3): Ditto.
2677         (subtf3): Ditto.
2678
2679 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2680
2681         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
2682         unaligned 256bit load/store.
2683         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
2684         (*avx_movdqu<avxmodesuffix>): Likewise.
2685
2686 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2687
2688         PR target/48288
2689         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
2690         * config/pa/pa.md (iordi3): Use new predicate in expander.
2691         (iorsi3): Likewise.
2692
2693 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
2694
2695         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
2696         FUNCTION_VALUE_REGNO_P): Remove macros.
2697         * config/mips/mips-protos.h (mips_function_value): Remove.
2698         * config/mips/mips.c (mips_function_value): Rename to...
2699         (mips_function_value_1): ... this. Make static.  Handle receiving
2700         the function type in 'fn_decl_or_type' argument.
2701         (mips_function_value, mips_libcall_value,
2702         mips_function_value_regno_p): New function.
2703         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2704         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2705
2706 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2707
2708         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
2709         and -mavx256-split-unaligned-store.
2710         (ix86_option_override_internal): Split 32-byte AVX unaligned
2711         load/store by default.
2712         (ix86_avx256_split_vector_move_misalign): New.
2713         (ix86_expand_vector_move_misalign): Use it.
2714
2715         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
2716         -mavx256-split-unaligned-store.
2717
2718         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
2719         256bit load/store.  Generate unaligned store on misaligned memory
2720         operand.
2721         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
2722         256bit load/store.
2723         (*avx_movdqu<avxmodesuffix>): Likewise.
2724
2725         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
2726         -mavx256-split-unaligned-store.
2727
2728 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
2729
2730         PR target/38598
2731         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
2732         Update commentary.
2733
2734 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
2735
2736         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
2737         opno arguments with an expand_operand.  Use create_input_operand.
2738         (mips_prepare_builtin_target): Delete.
2739         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
2740         functions.
2741         (mips_expand_builtin_direct): Use create_output_operand and
2742         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
2743         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
2744         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
2745
2746 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
2747
2748         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
2749         function.
2750         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2751
2752 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
2753
2754         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
2755         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
2756         basic blocks and call commit_edge_insertions directly.
2757         (fixup_abnormal_edges): Move from here to...
2758         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
2759         on the edges and return whether some have actually been inserted.
2760         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
2761         compensation code.
2762
2763 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
2764
2765         PR rtl-optimization/48144
2766         * sel-sched-ir.c (merge_history_vect): Factor out from ...
2767         (merge_expr_data): ... here.
2768         (av_set_intersect): Rename to av_set_code_motion_filter.
2769         Update all callers.  Call merge_history_vect when an expression
2770         is found in both sets.
2771         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2772
2773 2011-03-26  Alan Modra  <amodra@gmail.com>
2774
2775         * config/rs6000/predicates.md (word_offset_memref_op): Handle
2776         cmodel medium addresses.
2777         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
2778         64-bit gpr loads and stores.
2779         (rs6000_secondary_reload_ppc64): New function.
2780         * config/rs6000/rs6000-protos.h: Declare it.
2781         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
2782
2783 2011-03-26  Alan Modra  <amodra@gmail.com>
2784
2785         PR target/47487
2786         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
2787         GNU Go in traceback table.
2788
2789 2011-03-25  Richard Henderson  <rth@redhat.com>
2790
2791         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
2792         if there are exactly 6 operands.
2793         (set_storage_via_setmem): Similarly.
2794
2795 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2796
2797         * collect2.c (write_c_file_stat): Handle backslash
2798         as right-hand directory separator.
2799         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
2800         checking just for slash.
2801         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
2802         instead of checking for trailing slash.
2803         * gcc.c (record_temp_file): Use filename_cmp instead
2804         of strcmp.
2805         (do_spec_1): Likewise.
2806         (replace_outfile_spec_function): Likewise.
2807         (is_directory): Use filename_ncmp instead of strncmp.
2808         (print_multilib_info): Likewise.
2809         * gcov.c (find_source): Use filename_cmp instead
2810         instead of strcmp.
2811         (make_gcov_file_name): Fix order of slash/backslash
2812         checks.
2813         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
2814         (add_standard_paths): Likewise.
2815         * mips-tfile.c (saber_stop): Handle backslash.
2816         * prefix.c (update_path): Use filename_ncmp instead of
2817         strncmp.
2818         * profile.c (output_location): Use filename_cmp instead
2819         of strcmp.
2820         * read-md.c (handle_toplevel_file): Handle backslash.
2821         * tlink.c (frob_extension):  Likewise.
2822         * tree-cfg.c (same_line_p): Use filename_cmp instead of
2823         strcmp.
2824         * tree-dump.c (dequeue_and_dump): Handle backslash.
2825         * tree.c (get_file_function_name): Likewise.
2826         * gengtype.c (read_input_list): Likewise.
2827         (get_file_realbasename): Likewise.
2828         (get_output_file_with_visibility): Use filename_cmp
2829         instead of strcmp.
2830
2831 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
2832
2833         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
2834         case to VFPv1.
2835
2836 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
2837
2838         * fold-const.c (expr_location_or): New function.
2839         (fold_truth_not_expr): Call it.
2840
2841 2011-03-25  Jeff Law  <law@redhat.com>
2842
2843         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
2844         va_end.
2845         * c-family/c-common.c (def_fn_type): Likewise.
2846         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
2847         * emit-rtl.c (gen_rtvec): Likewise.
2848         * lto/lto-lang.c (def_fn_type): Likewise.
2849
2850 2011-03-25  Richard Guenther  <rguenther@suse.de>
2851
2852         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
2853         also generate copies.
2854         (fini_copy_prop): Handle constant values properly.
2855
2856 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
2857
2858         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
2859         mode size instead of bitsize with DWARF2_ADDR_SIZE.
2860         (hash_loc_operands, compare_loc_operands): Handle
2861         DW_OP_GNU_entry_value.
2862
2863 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2864
2865         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
2866         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
2867         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
2868         comment and use macro TARGET_64BIT_MS_ABI instead.
2869         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
2870         and change default behavior for 32-bit MS_ABI.
2871         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
2872         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
2873         32-bit, too.
2874         (ix86_cfun_abi): Likewise.
2875         (ix86_maybe_switch_abi): Adjust comment.
2876         (init_cumulative_args): Check for bit-ness in MS_ABI case.
2877         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
2878         instead of checking for SYSV_ABI.
2879         (ix86_nsaved_sseregs): Likewise.
2880         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
2881         to 16 bytes.
2882         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
2883         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
2884         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
2885         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
2886         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
2887
2888 2011-03-25  Richard Guenther  <rguenther@suse.de>
2889
2890         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
2891         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2892         (verify_gimple): Remove.
2893         * tree-cfg.c (verify_gimple_call): Merge verification
2894         from verify_stmts.
2895         (verify_gimple_phi): Merge verification from verify_stmts.
2896         (verify_gimple_label): New function.
2897         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
2898         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2899         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
2900         (verify_stmts): Rename to verify_gimple_in_cfg.
2901         (verify_gimple_in_cfg): New function.
2902         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
2903         * tree-ssa.c (verify_ssa): Likewise.
2904         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
2905
2906 2011-03-25  Richard Guenther  <rguenther@suse.de>
2907
2908         * passes.c (init_optimization_passes): Add FRE pass after
2909         early SRA.
2910
2911 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
2912             Andrew Stubbs  <ams@codesourcery.com>
2913
2914         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2915         for Cortex-A8.
2916         (arm_movdi_vfp_cortexa8): New pattern.
2917         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2918         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2919         instructions when tuning for Cortex-A8.  Set attribute "arch".
2920         * config/arm/arm.md: Move include arm-tune.md up a bit.
2921         (define_attr "arch"): Add "onlya8" and "nota8" values.
2922         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2923
2924 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
2925
2926         PR bootstrap/48282
2927         Revert:
2928         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
2929
2930         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2931         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
2932         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2933         * passes.c (init_optimization_passes): Move
2934         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2935
2936 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2937
2938         * c-typeck.c (comptypes_internal): Replace target
2939         hook call of comp_type_attributes by version in tree.c file.
2940         * gimple.c (gimple_types_compatible_p_1): Likewise.
2941         * tree-ssa.c (useless_type_conversion_p): Likewise.
2942         * tree.c (build_type_attribute_qual_variant): Likewise.
2943         (attribute_value_equal): New static helper function.
2944         (comp_type_attributes): New function.
2945         (merge_attributes): Use attribute_value_equal for comparison.
2946         (attribute_list_contained): Likewise.
2947         * tree.h (comp_type_attributes): New prototype.
2948
2949 2011-03-25  Richard Guenther  <rguenther@suse.de>
2950
2951         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2952         of complex types at -O0.
2953         (verify_gimple_assign_binary): Likewise.
2954         (verify_gimple_assign_ternary): Likewise.
2955
2956 2011-03-24  Mark Wielaard  <mjw@redhat.com>
2957
2958         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2959         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2960
2961 2011-03-24  Mark Wielaard  <mjw@redhat.com>
2962
2963         PR debug/48041
2964         * dwarf2out.c (output_abbrev_section): Only write table when
2965         abbrev_die_table_in_use > 1.
2966
2967 2011-02-24  Richard Henderson  <rth@redhat.com>
2968
2969         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2970         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2971         (alpha_expand_unaligned_load_words): Use extql.
2972         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2973         (emit_insxl): Handle all modes for consistency.
2974
2975 2011-02-24  Richard Henderson  <rth@redhat.com>
2976
2977         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2978         (alpha_expand_unaligned_load): Likewise.
2979         (alpha_expand_unaligned_store): Likewise.
2980         (alpha_expand_unaligned_load_words): Likewise.
2981         (alpha_expand_unaligned_store_words): Likewise.
2982         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2983         (alpha_split_lock_test_and_set_12): Likewise.
2984         (print_operand, alpha_fold_builtin_extxx): Likewise.
2985         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2986         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2987         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2988         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2989         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2990         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2991         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2992         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2993         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2994         (extwl, extll, extql): Similarly.
2995         (inswh, inslh, insqh): Similarly.
2996         (mskbl, mskwl, mskll, mskql): Similarly.
2997         (mskwh, msklh, mskqh): Similarly.
2998
2999 2011-02-24  Richard Henderson  <rth@redhat.com>
3000
3001         * config/alpha/alpha.md (attribute isa): Add er, ner.
3002         (attribute enabled): Handle them.
3003         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
3004
3005 2011-02-24  Richard Henderson  <rth@redhat.com>
3006
3007         * config/alpha/alpha.md (attribute isa): Add vms.
3008         (attribute enabled): Handle it.
3009         (*movsf): Merge *movsf_{nofix,fix,nofp}.
3010         (*movdf): Merge *movdf_{nofix,fix,nofp}.
3011         (*movtf): Rename from *movtf_internal for consistency.
3012         (*movsi): Merge with *movsi_nt_vms.
3013         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
3014         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
3015         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
3016         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
3017
3018 2011-02-24  Richard Henderson  <rth@redhat.com>
3019
3020         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
3021         (extendqisi2, extendhisi2): Likewise.
3022         (extendqidi2): Simplify BWX/non-BWX expansions.
3023         (extendhidi2): Similarly.
3024
3025 2011-02-24  Richard Henderson  <rth@redhat.com>
3026
3027         * config/alpha/alpha.md (attribute isa): New.
3028         (attribute enabled): New.
3029         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
3030         (zero_extendqisi2, zero_extendqidi2): Similarly.
3031         (zero_extendhisi2, zero_extendhidi2): Similarly.
3032         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
3033
3034 2011-02-24  Richard Henderson  <rth@redhat.com>
3035
3036         * config/alpha/predicates.md (input_operand): Revert last change;
3037         update comment to mention 32-bit VMS rather than Windows.
3038
3039 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
3040
3041         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3042         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
3043         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3044         * passes.c (init_optimization_passes): Move
3045         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3046
3047 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3048
3049         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
3050
3051 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
3052
3053         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
3054         correctly.
3055
3056 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
3057
3058         PR debug/48204
3059         * simplify-rtx.c (simplify_const_unary_operation): Call
3060         real_convert when changing mode class with FLOAT_EXTEND.
3061
3062 2011-03-24  Nick Clifton  <nickc@redhat.com>
3063
3064         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
3065         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3066         * config/rx/rx.c (rx_option_override): Set align_jumps,
3067         align_loops and align_labels if not set by the user.
3068         (rx_align_for_label): New function.
3069         (rx_max_skip_for_label): New function.
3070         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
3071         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
3072         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
3073         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
3074         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
3075
3076 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
3077
3078         PR rtl-optimization/48263
3079         * optabs.c (expand_binop_directly): Reinstate convert_modes code
3080         and original commutative_p handling.  Use maybe_gen_insn.
3081
3082 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3083
3084         * reload.c (find_reloads_subreg_address): Add address_reloaded
3085         parameter and return true there if the full address has been
3086         reloaded.
3087         (find_reloads_toplev): Pass address_reloaded flag.
3088         (find_reloads_address_1): Don't use address_reloaded parameter.
3089
3090 2011-03-24  Jeff Law  <law@redhat.com>
3091
3092         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
3093         unused variable "ann".
3094         (remove_unused_locals): Likewise.
3095
3096         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
3097         statement.
3098
3099         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
3100         after it is freed.
3101
3102 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3103
3104         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
3105         for invalid symbolic addresses.
3106         (s390_secondary_reload): Don't use s390_check_symref_alignment for
3107         larl operands.
3108
3109 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3110
3111         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
3112         the argument in calls to fold_truth_not_expr.
3113
3114 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
3115
3116         * tree.c (record_node_allocation_statistics): New function.
3117         (make_node_stat, copy_node_stat, build_string): Call it.
3118         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
3119         (build1_stat, build_omp_clause): Likewise.
3120
3121 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
3122
3123         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
3124         last commit.
3125
3126 2011-03-24  Richard Guenther  <rguenther@suse.de>
3127
3128         PR tree-optimization/48271
3129         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
3130         blocks that still exist.
3131
3132 2011-03-24  Richard Guenther  <rguenther@suse.de>
3133
3134         PR tree-optimization/48270
3135         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
3136         not free datarefs before ddrs.
3137
3138 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3139
3140         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
3141         from the address built for a reference with variable offset.
3142
3143 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
3144
3145         PR target/48237
3146         * config/i386/i386.md (*movdf_internal_rex64): Do not split
3147         alternatives that can be handled with movq or movabsq insn.
3148         (*movdf_internal): Disable for !TARGET_64BIT.
3149         (*movdf_internal_nointeger): Ditto.
3150         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3151
3152 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
3153
3154         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3155         (FUNCTION_ARG_ADVANCE): Likewise.
3156         * tm.texi.in: Change references to them to hook references.
3157         * tm.texi: Regenerate.
3158         * targhooks.c (default_function_arg): Eliminate check for target macro.
3159         (default_function_incoming_arg): Likewise.
3160         (default_function_arg_advance): Likewise.
3161         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3162         (function_arg_advance): Likewise.
3163         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3164
3165 2011-03-24  Richard Guenther  <rguenther@suse.de>
3166
3167         PR middle-end/48269
3168         * tree-object-size.c (addr_object_size): Do not double-account
3169         for MEM_REF offsets.
3170
3171 2011-03-24  Diego Novillo  <dnovillo@google.com>
3172
3173         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
3174         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
3175         (lto_input_data_block): Move from lto-opts.c.  Make extern.
3176         Update all users.
3177         (lto_input_string): Rename from input_string.  Make extern.
3178         Update all users.
3179         * lto-streamer-out.c (lto_output_string_with_length): Rename from
3180         output_string_with_length.
3181         Output 0 to indicate a non-NULL string.  Update all callers to
3182         not emit 0.
3183         (lto_output_string): Rename from output_string.  Make extern.
3184         Update all users.
3185         (lto_output_decl_state_streams): Make extern.
3186         (lto_output_decl_state_refs): Make extern.
3187         * lto-streamer.h (lto_input_string): Declare.
3188         (lto_input_data_block): Declare.
3189         (lto_output_string): Declare.
3190         (lto_output_string_with_length): Declare.
3191         (lto_output_decl_state_streams): Declare.
3192         (lto_output_decl_state_refs): Declare.
3193
3194 2011-03-24  Richard Guenther  <rguenther@suse.de>
3195
3196         PR tree-optimization/46562
3197         * tree.c (build_invariant_address): New function.
3198         * tree.h (build_invariant_address): Declare.
3199         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
3200         a renamed function moved ...
3201         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
3202         Take valueization callback parameter.
3203         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
3204         * gimple-fold.h: New file.
3205         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
3206         (ccp_fold, fold_const_aggregate_ref,
3207         fold_ctor_reference, fold_nonarray_ctor_reference,
3208         fold_array_ctor_reference, fold_string_cst_ctor_reference,
3209         get_base_constructor): Move ...
3210         * gimple-fold.c: ... here.
3211         (gimple_fold_stmt_to_constant_1): New function
3212         split out from ccp_fold.  Take a valueization callback parameter.
3213         Valueize all operands.
3214         (gimple_fold_stmt_to_constant): New wrapper function.
3215         (fold_const_aggregate_ref_1): New function split out from
3216         fold_const_aggregate_ref.  Take a valueization callback parameter.
3217         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
3218         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
3219         invariant POINTER_PLUS_EXPRs to invariant form.
3220         (vn_valueize): New function.
3221         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
3222         * tree-vrp.c (vrp_valueize): New function.
3223         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
3224         to fold statements to constants.
3225         * tree-ssa-pre.c (eliminate): Properly guard propagation of
3226         function declarations.
3227         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
3228         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
3229
3230 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
3231
3232         * config/h8300/predicates.md (jump_address_operand): Fix register
3233         mode check.
3234
3235 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
3236
3237         * doc/invoke.texi (max-stores-to-sink): Document.
3238         * params.h (MAX_STORES_TO_SINK): Define.
3239         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
3240         if either vectorization or if-conversion is disabled.
3241         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
3242         tree-vect-data-refs.c vect_equal_offsets.
3243         (dr_equal_offsets_p): New function.
3244         (find_data_references_in_bb): Remove static.
3245         * tree-data-ref.h (find_data_references_in_bb): Declare.
3246         (dr_equal_offsets_p): Likewise.
3247         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
3248         (vect_drs_dependent_in_basic_block): Update calls to
3249         vect_equal_offsets.
3250         (vect_check_interleaving): Likewise.
3251         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
3252         (cond_if_else_store_replacement): Rename to...
3253         (cond_if_else_store_replacement_1): ... this.  Change arguments and
3254         documentation.
3255         (cond_if_else_store_replacement): New function.
3256         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
3257         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
3258
3259 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
3260
3261         PR target/46934
3262         * config/arm/arm.md (casesi): Use the gen_int_mode() function
3263         to subtract lower bound instead of GEN_INT().
3264
3265 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
3266
3267         PR other/48179
3268         PR other/48221
3269         PR other/48234
3270         * doc/extend.texi (Alignment): Move section to match order in TOC.
3271         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3272         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3273
3274 2011-03-23  Jeff Law  <law@redhat.com>
3275
3276         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
3277         before removing the edge.
3278
3279         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
3280         it may have been freed by redirect_branch_edge or
3281         redirect_edge_succ_nodup.
3282
3283 2011-03-23  Richard Guenther  <rguenther@suse.de>
3284
3285         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
3286         (check_va_list_escapes): Likewise.
3287         (check_all_va_list_escapes): Likewise.
3288
3289 2011-03-23  Richard Guenther  <rguenther@suse.de>
3290
3291         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
3292         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
3293         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
3294         (alias.o): Likewise.
3295         (ipa-type-escape.o): Remove.
3296         (ipa-struct-reorg.o): Likewise.
3297         (GTFILES): Remove ipa-struct-reorg.c.
3298         * alias.c: Do not include ipa-type-escape.h.
3299         * tree-ssa-alias.c: Likewise.
3300         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
3301         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
3302         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
3303         and ipa-type-escape passes.
3304         * tree-pass.h (pass_ipa_type_escape): Remove.
3305         (pass_ipa_struct_reorg): Likewise.
3306         * ipa-struct-reorg.h: Remove.
3307         * ipa-struct-reorg.c: Likewise.
3308         * ipa-type-escape.h: Likewise.
3309         * ipa-type-escape.c: Likewise.
3310         * doc/invoke.texi (-fipa-struct-reorg): Remove.
3311         (--param struct-reorg-cold-struct-ratio): Likewise.
3312         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3313         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3314         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
3315
3316 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3317
3318         * config/s390/2084.md: Enable all insn reservations also for z9_ec
3319         cpu attribute value.
3320         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
3321         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
3322         * config/s390/s390.c (processor_flags_table): New constant array.
3323         (s390_handle_arch_option): Remove.
3324         (s390_handle_option): Remove s390_handle_arch_option invocations
3325         and OPT_mwarn_framesize_ handling.
3326         (s390_option_override): Remove s390_handle_arch_option invocation.
3327         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
3328         warnings.
3329         * config/s390/s390.md (cpu attribute): Add z9_ec value.
3330         * config/s390/s390.opt (s390_tune, s390_arch)
3331         (march=): Replace s390_arch_option enum and values with
3332         processor_type.  Set variable name to s390_arch.  Set
3333         initialization value.
3334         (mtune=): Replace s390_arch_option with processor_type.  Set
3335         variable name to s390_tune.  Set initialization value.
3336
3337 2011-03-23  Julian Brown  <julian@codesourcery.com>
3338
3339         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
3340         accesses which are not naturally aligned.
3341
3342 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
3343
3344         PR target/47553
3345         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3346
3347 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
3348
3349         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
3350         parameter from "int" to "enum insn_code".
3351         (expand_operand_type): New enum.
3352         (expand_operand): New structure.
3353         (create_expand_operand): New function.
3354         (create_fixed_operand, create_output_operand): Likewise
3355         (create_input_operand, create_convert_operand_to): Likewise.
3356         (create_convert_operand_from, create_address_operand): Likewise.
3357         (create_integer_operand): Likewise.
3358         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
3359         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3360         (expand_insn, expand_jump_insn): Likewise.
3361         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
3362         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
3363         (expand_movstr, expand_builtin___clear_cache): Likewise.
3364         (expand_builtin_lock_release): Likewise.
3365         * explow.c (allocate_dynamic_stack_space): Likewise.
3366         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
3367         and use the default handling in that case.
3368         * expmed.c (check_predicate_volatile_ok): Delete.
3369         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
3370         (emit_cstore): Likewise.
3371         * expr.c (emit_block_move_via_movmem): Likewise.
3372         (set_storage_via_setmem, expand_assignment): Likewise.
3373         (emit_storent_insn, try_casesi): Likewise.
3374         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
3375         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
3376         (expand_vec_shift_expr, expand_binop_directly): Likewise.
3377         (expand_twoval_unop, expand_twoval_binop): Likewise.
3378         (expand_unop_direct, emit_indirect_jump): Likewise.
3379         (emit_conditional_move, vector_compare_rtx): Likewise.
3380         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
3381         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
3382         (expand_sync_lock_test_and_set): Likewise.
3383         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
3384         (emit_unop_insn): Likewise.
3385         (expand_copysign_absneg): Change icode to an insn_code.
3386         (create_convert_operand_from_type): New function.
3387         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
3388         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3389         (expand_insn, expand_jump_insn): Likewise.
3390         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
3391         than const_int_operand for operand 2.
3392
3393 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3394
3395         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
3396         if possible.
3397
3398 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
3399
3400         * emit-rtl.c (emit_pattern_before_noloc): New function.
3401         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
3402         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
3403         (emit_pattern_after_noloc): New function.
3404         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
3405         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
3406
3407 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
3408
3409         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
3410         (__ffsDI2): Likewise.
3411
3412 2011-03-22  Richard Henderson  <rth@redhat.com>
3413
3414         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
3415         of !TARGET_ABI_OPEN_VMS.
3416         (alpha_trampoline_init, alpha_start_function): Likewise.
3417         (alpha_expand_epilogue, alpha_file_start): Likewise.
3418         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
3419         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
3420         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
3421         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
3422         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
3423
3424 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3425
3426         * config/s390/s390-opts.h: New.
3427         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
3428         s390_arch_flags, s390_warn_framesize, s390_stack_size,
3429         s390_stack_guard): Remove.
3430         (s390_handle_arch_option): Return void.  Take enum
3431         s390_arch_option value instead of string and searching array.
3432         (s390_handle_option): Don't assert that global structures are in
3433         use.  Access variables via opts pointer.  Use error_at.  Don't use
3434         sscanf for -mstack-guard= or -mstack-size=.  Update call to
3435         s390_handle_arch_option.
3436         (s390_option_override): Update call to s390_handle_arch_option.
3437         (s390_emit_prologue): Use %d format for s390_stack_size in
3438         diagnostic.  Use %wd for HOST_WIDE_INT.
3439         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
3440         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
3441         * config/s390/s390.opt (config/s390/s390-opts.h): New
3442         HeaderInclude entry.
3443         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
3444         s390_arch_flags, s390_warn_framesize): New Variable entries.
3445         (s390_arch_option): New Enum and EnumValue entries.
3446         (march=): Use Enum instead of Var.
3447         (mstack-guard=, mstack-size=): Use UInteger and Var.
3448         (mtune=): Use Enum.
3449
3450 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3451
3452         * config/score/score.c (score_handle_option): Don't assert that
3453         global structures are in use.  Access target_flags via opts
3454         pointer.  Use value of -march= option to determine target_flags
3455         settings.
3456         * config/score/score.opt (march=): Use Enum.
3457         (score_arch): New Enum and EnumValue entries.
3458
3459 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3460
3461         * config/mep/mep.c (option_mtiny_specified): Remove.
3462         (mep_option_override): Move register handling for -mivc2 from
3463         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
3464         instead of option_mtiny_specified.
3465         (mep_handle_option): Access target_flags via opts pointer.  Don't
3466         assert that global structures are in use.  Defer part of -mivc2
3467         handling and move it to mep_option_override.
3468         * config/mep/mep.opt (IVC2): New Mask entry.
3469         (mivc2): Use Var and Defer instead of Mask.
3470
3471 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3472
3473         * config/v850/v850-opts.h: New.
3474         * config/v850/v850.c (small_memory): Replace with
3475         small_memory_physical_max array.  Make that array static const.
3476         (v850_handle_memory_option): Take integer value of argument.  Take
3477         gcc_options pointer, option text and location.  Return void.
3478         Update for changes to small memory structures.
3479         (v850_handle_option): Access target_flags via opts pointer.  Don't
3480         assert that global structures are in use.  Update calls to
3481         v850_handle_memory_option.
3482         (v850_encode_data_area): Update references to small memory settings.
3483         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
3484         (enum small_memory_type): Move to v850-opts.h.
3485         * config/v850/v850.opt (config/v850/v850-opts.h): New
3486         HeaderInclude entry.
3487         (small_memory_max): New Variable entry.
3488         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
3489         (mtda, mzda): Likewise.
3490
3491 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3492
3493         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
3494         pointer.  Don't assert that global structures are in use.
3495
3496 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3497
3498         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
3499         via opts pointer.  Don't assert that global structures are in use.
3500
3501 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3502
3503         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
3504         (munix=93): Use Var.
3505         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
3506         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
3507         * config/pa/pa-opts.h: New.
3508         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
3509         (pa_handle_option): Don't assert that global structures are in
3510         use.  Access target_flags via opts pointer.  Don't handle
3511         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
3512         OPT_munix_98 here.
3513         (pa_option_override): Handle deferred OPT_mfixed_range_.
3514
3515 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3516
3517         * config/mn10300/mn10300-opts.h: New.
3518         * config/mn10300/mn10300.c (mn10300_processor,
3519         mn10300_tune_string): Remove.
3520         (mn10300_handle_option): Don't assert that global structures are
3521         in use.  Access mn10300_processor via opts pointer.  Don't handle
3522         OPT_mtune_ here.
3523         * config/mn10300/mn10300.h (enum processor_type): Move to
3524         mn10300-opts.h.
3525         (mn10300_processor): Remove.
3526         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
3527         HeaderInclude entry.
3528         (mn10300_processor): New Variable entry.
3529         (mtune=): Use Var.
3530
3531 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3532
3533         * config/microblaze/microblaze.c: Don't include opts.h.
3534         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
3535         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
3536         (mno-clearbss): Use Var and Warn.
3537
3538 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3539
3540         * config/m32r/m32r-opts.h: New.
3541         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
3542         (m32r_handle_option): Don't assert that global structures are in
3543         use.  Access target_flags and m32r_cache_flush_func via opts
3544         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
3545         OPT_mno_flush_trap here.
3546         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
3547         include of m32r-opts.h.
3548         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
3549         HeaderInclude entry.
3550         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
3551         (mmodel=): Use Enum and Var.
3552         (m32r_model): New Enum and EnumValue entries.
3553         (mno-flush-trap): Use Var.
3554         (msdata=): Use Enum and Var.
3555         (m32r_sdata): New Enum and EnumValue entries.
3556
3557 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3558
3559         * config/m32c/m32c.c: Don't include opts.h.
3560         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
3561         m32c_handle_option): Remove.
3562         (m32c_option_override): Check global_options_set.x_target_memregs
3563         instead of target_memregs_set.
3564         * config/m32c/m32c.h (target_memregs): Remove.
3565         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
3566         variable.
3567
3568 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3569
3570         * config/iq2000/iq2000-opts.h: New.
3571         * config/iq2000/iq2000.c: Don't include opts.h.
3572         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
3573         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
3574         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
3575         HeaderInclude entry.
3576         (iq2000_tune): New Variable entry.
3577         (march=): Add comment.  Use Enum.
3578         (iq2000_arch): New Enum and EnumValue entries.
3579         (mcpu=): Use Enum and Var.
3580         (iq2000_tune): New Enum and EnumValue entries.
3581
3582 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3583
3584         * config/ia64/ia64-opts.h: New.
3585         * config/ia64/ia64.c (ia64_tune): Remove.
3586         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
3587         here.  Use error_at.
3588         (ia64_option_override): Handle deferred OPT_mfixed_range_.
3589         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
3590         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
3591         HeaderInclude entry.
3592         (ia64_tune): New Variable entry.
3593         (mfixed-range=): Use Defer and Var.
3594         (mtune=): Use Enum and Var.
3595         (ia64_tune): New Enum and EnumValue entries.
3596
3597 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3598
3599         * config/frv/frv-opts.h: New.
3600         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
3601         frv-opts.h.
3602         (frv_cpu_type): Remove.
3603         * config/frv/frv.c: Don't include opts.h.
3604         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
3605         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
3606         (frv_cpu_type): New Variable entry.
3607         (frv_cpu): New Enum and EnumValue entries.
3608
3609 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3610
3611         * config/cris/cris.c (cris_handle_option): Access target_flags via
3612         opts pointer.  Don't assert that global structures are in use.
3613         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
3614         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
3615
3616 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3617
3618         * config/bfin/bfin-opts.h: New.
3619         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
3620         bfin_si_revision, bfin_workarounds): Remove.
3621         (bfin_cpus): Make static const.
3622         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
3623         not bfin_lib_id_given.
3624         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
3625         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
3626         pointer. Use error_at.  Don't assert that global structures are in use.
3627         * config/bfin/bfin.h: Include bfin-opts.h.
3628         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
3629         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
3630         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
3631         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
3632         entries.
3633
3634 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3635
3636         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
3637         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
3638         or -msoft-float here.
3639         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
3640         -msoft-float and -mhard-float.
3641         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
3642         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3643         msoft-float.
3644         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
3645         -msoft-float.
3646         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
3647         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
3648         not mhard-float.
3649         (LIBGCC_SPEC): Don't handle -msoft-float.
3650         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
3651         -mhard-float.
3652         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3653         msoft-float.
3654         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
3655         -mfloat-abi=*, not -msoft-float and -mhard-float.
3656         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
3657         -msoft-float.
3658         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
3659         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
3660         mhard-float and msoft-float.
3661         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
3662         mfloat-abi=soft in comments, not mhard-float and msoft-float.
3663         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3664         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
3665         mhard-float.
3666         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
3667         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
3668         msoft-float.
3669         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
3670         not mhard-float.
3671         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
3672         not msoft-float.
3673
3674 2011-03-22  Richard Henderson  <rth@redhat.com>
3675
3676         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
3677         TARGET_ABI_WINDOWS_NT.
3678         (alpha_output_function_end_prologue): Likewise.
3679         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
3680         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3681         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
3682         (trap, *movsi_nt_vms): Likewise.
3683         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
3684         (*tablejump_osf_nt_internal): Remove.
3685         * config/alpha/predicates.md (input_operand): Only test Pmode.
3686
3687 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3688
3689         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
3690         via opts pointer.  Use error_at.  Don't assert that global
3691         structures are in use.
3692
3693 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3694
3695         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
3696         (ix86_handle_option): Access ix86_isa_flags and
3697         ix86_isa_flags_explicit via opts pointer.  Don't assert that
3698         global structures are in use.
3699         (ix86_function_specific_save, ix86_function_specific_restore):
3700         Update ix86_isa_flags_explicit field name.
3701         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
3702         (ix86_isa_flags_explicit): Rename TargetSave entry to
3703         x_ix86_isa_flags_explicit.
3704
3705 2011-03-22  Richard Henderson  <rth@redhat.com>
3706
3707         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
3708         (alpha_option_override, direct_return): Likewise.
3709         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
3710         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
3711         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
3712         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3713         (alpha_expand_epilogue, alpha_end_function): Likewise.
3714         (alpha_init_libfuncs): Likewise.
3715         (struct machine_function): Remove unicosmk members.
3716         (print_operand) ['t']: Remove.
3717         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
3718         unicosmk_output_module_name, unicosmk_output_common,
3719         current_section_align, unicosmk_output_text_section_asm_op,
3720         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
3721         unicosmk_section_type_flags, unicosmk_unique_section,
3722         unicosmk_asm_named_section, unicosmk_insert_attributes,
3723         unicosmk_output_align, unicosmk_defer_case_vector,
3724         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
3725         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
3726         unicosmk_output_ssib, unicosmk_add_call_info_word,
3727         unicosmk_extern_head, unicosmk_output_default_externs,
3728         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
3729         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
3730         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
3731         * config/alpha/alpha-protos.h: Update.
3732         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
3733         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
3734         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
3735         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
3736         (*mulsi_se, mulvsi3): Likewise.
3737         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
3738         (*divmodsi_internal, call, call_value, realign): Likewise.
3739         (moddi3, umoddi3): Likewise; remove duplicate expander.
3740         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
3741         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
3742         (*movdi_nofix): Remove r/U alternative.
3743         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
3744         * config/alpha/constraints.md ("U"): Remove.
3745         * config/alpha/predicates.md (call_operand"): Don't test
3746         TARGET_ABI_UNICOSMK.
3747
3748 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3749
3750         * target.def (handle_option): Take gcc_options and
3751         cl_decoded_option pointers and location_t.
3752         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
3753         * doc/tm.texi: Regenerate.
3754         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
3755         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
3756         * lto-opts.c (lto_reissue_options): Generate option structure for
3757         targetm.handle_option call.
3758         * opts.c (target_handle_option): Update call to
3759         targetm.handle_option.  Remove assertions about values now passed
3760         down to hook.
3761         * targhooks.c (default_target_handle_option): New.
3762         * targhooks.h (default_target_handle_option): Declare.
3763         * config/alpha/alpha.c: Include opts.h.
3764         (alpha_handle_option): Update to new hook interface.
3765         * config/arm/arm.c: Include opts.h.
3766         (arm_handle_option): Update to new hook interface.
3767         * config/arm/t-arm (arm.o): Update dependencies.
3768         * config/bfin/bfin.c: Include opts.h.
3769         (bfin_handle_option): Update to new hook interface.
3770         * config/cris/cris.c: Include opts.h.
3771         (cris_handle_option): Update to new hook interface.
3772         * config/frv/frv.c: Include opts.h.
3773         (frv_handle_option): Update to new hook interface.
3774         * config/i386/i386.c: Include opts.h.
3775         (ix86_handle_option): Update to new hook interface.
3776         (ix86_valid_target_attribute_inner_p): Generate option structure
3777         for call to ix86_handle_option.
3778         * config/i386/t-i386 (i386.o): Update dependencies.
3779         * config/ia64/ia64.c: Include opts.h.
3780         (ia64_handle_option): Update to new hook interface.
3781         * config/ia64/t-ia64 (ia64.o): Update dependencies.
3782         * config/iq2000/iq2000.c: Include opts.h.
3783         (iq2000_handle_option): Update to new hook interface.
3784         * config/m32c/m32c.c: Include opts.h.
3785         (m32c_handle_option): Update to new hook interface.
3786         * config/m32r/m32r.c: Include opts.h.
3787         (m32r_handle_option): Update to new hook interface.
3788         * config/m68k/m68k.c: Include opts.h.
3789         (m68k_handle_option): Update to new hook interface.
3790         * config/mep/mep.c: Include opts.h.
3791         (mep_handle_option): Update to new hook interface.
3792         * config/microblaze/microblaze.c: Include opts.h.
3793         (microblaze_handle_option): Update to new hook interface.
3794         * config/mips/mips.c: Include opts.h.
3795         (mips_handle_option): Update to new hook interface.
3796         * config/mn10300/mn10300.c: Include opts.h.
3797         (mn10300_handle_option): Update to new hook interface.
3798         * config/pa/pa.c: Include opts.h.
3799         (pa_handle_option): Update to new hook interface.
3800         * config/pdp11/pdp11.c: Include opts.h.
3801         (pdp11_handle_option): Update to new hook interface.
3802         * config/rs6000/rs6000.c: Include opts.h.
3803         (rs6000_handle_option): Update to new hook interface.
3804         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3805         * config/rx/rx.c: Include opts.h.
3806         (rx_handle_option): Update to new hook interface.
3807         * config/s390/s390.c: Include opts.h.
3808         (s390_handle_option): Update to new hook interface.
3809         * config/score/score.c: Include opts.h.
3810         (score_handle_option): Update to new hook interface.
3811         * config/sh/sh.c: Include opts.h.
3812         (sh_handle_option): Update to new hook interface.
3813         * config/sparc/sparc.c: Include opts.h.
3814         (sparc_handle_option): Update to new hook interface.
3815         * config/v850/v850.c: Include opts.h.
3816         (v850_handle_option): Update to new hook interface.
3817
3818 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3819
3820         * gcc.c (driver_unknown_option_callback): Only permit and save
3821         unknown -Wno- options.
3822         (driver_wrong_lang_callback): Save options directly instead of via
3823         driver_unknown_option_callback.
3824
3825 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3826
3827         * combine.c (simplify_set): Try harder to find the best CC mode when
3828         simplifying a nested COMPARE on the RHS.
3829
3830 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
3831
3832         * config/alpha/gnu.h: Remove.
3833         * config/arc: Remove directory.
3834         * config/arm/netbsd.h: Remove.
3835         * config/arm/t-pe: Remove.
3836         * config/crx: Remove directory.
3837         * config/i386/netbsd.h: Remove.
3838         * config/m68hc11: Remove directory.
3839         * config/m68k/uclinux-oldabi.h: Remove.
3840         * config/mcore/mcore-pe.h: Remove.
3841         * config/mcore/t-mcore-pe: Remove.
3842         * config/netbsd-aout.h: Remove.
3843         * config/rs6000/gnu.h: Remove.
3844         * config/sh/sh-symbian.h: Remove.
3845         * config/sh/symbian-base.c: Remove.
3846         * config/sh/symbian-c.c: Remove.
3847         * config/sh/symbian-cxx.c: Remove.
3848         * config/sh/symbian-post.h: Remove.
3849         * config/sh/symbian-pre.h: Remove.
3850         * config/sh/t-symbian: Remove.
3851         * config/svr3.h: Remove.
3852         * config/vax/netbsd.h: Remove.
3853         * config.build: Don't handle i[34567]86-*-pe.
3854         * config.gcc: Remove handling of deprecations for most deprecated
3855         targets.
3856         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
3857         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
3858         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
3859         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
3860         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
3861         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
3862         Remove cases.
3863         * config.host: Don't handle i[34567]86-*-pe.
3864         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
3865         (ASM_SPEC32): Don't handle -mcall-gnu.
3866         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
3867         -mcall-gnu.
3868         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
3869         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
3870         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3871         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
3872         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
3873         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
3874         conditional on SYMBIAN.
3875         * configure.ac: Don't handle powerpc*-*-gnu*.
3876         * configure: Regenerate.
3877         * doc/extend.texi (interrupt attribute): Don't mention CRX.
3878         * doc/install-old.texi (m6811, m6812): Don't mention.
3879         * doc/install.texi (arc-*-elf*): Don't document multilib option.
3880         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
3881         (m68k-uclinuxoldabi): Don't mention.
3882         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
3883         Remove.
3884         (-mcall-gnu): Remove.
3885         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
3886         families): Remove constraint documentation.
3887
3888 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
3889
3890         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
3891         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
3892         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3893
3894 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
3895
3896         * config/avr/avr-protos.h (expand_epilogue): Change prototype
3897         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
3898         * config/avr/avr.c (init_cumulative_args)
3899         (avr_function_arg_advance): Use it.
3900         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
3901         sibcall epilogues.
3902         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
3903         (avr_function_ok_for_sibcall): ...this new function.
3904         (avr_lookup_function_attribute1): New static Function.
3905         (avr_naked_function_p, interrupt_function_p)
3906         (signal_function_p, avr_OS_task_function_p)
3907         (avr_OS_main_function_p): Use it.
3908         * config/avr/avr.md ("sibcall", "sibcall_value")
3909         ("sibcall_epilogue"): New expander.
3910         ("*call_insn", "*call_value_insn"): New insn.
3911         ("call_insn", "call_value_insn"): Remove
3912         ("call", "call_value", "epilogue"): Change expander to handle
3913         sibling calls.
3914
3915 2011-03-21  Nick Clifton  <nickc@redhat.com>
3916
3917         * doc/invoke.texi (Overall Options): Move closing brace to end of
3918         options list.
3919         (Optimization Options): Add missing @gol.
3920         (Directory Options): Likewise.
3921         (i386 and x86-64 Options): Likewise.
3922         (RS6000 and PowerPC Options): Likewise.
3923         (i386 and x86-64 Windows Options): Likewise.
3924         (V850 Options): Add text missing from descriptions.
3925
3926 2011-03-22  Richard Henderson  <rth@redhat.com>
3927
3928         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3929         (avr_incoming_return_addr_rtx): New.
3930         (emit_push_byte): New.
3931         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
3932         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
3933         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
3934         (emit_pop_byte): New.
3935         (expand_epilogue): Use it.  Pop frame pointer by bytes.
3936         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3937         (INCOMING_RETURN_ADDR_RTX): New.
3938         (INCOMING_FRAME_SP_OFFSET): New.
3939         (ARG_POINTER_CFA_OFFSET): New.
3940         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3941         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3942         (pophi): Remove.
3943
3944         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3945
3946 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
3947
3948         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3949         (FUNCTION_ARG_ADVANCE): Likewise.
3950         * tm.texi.in: Change references to them to hook references.
3951         * tm.texi: Regenerate.
3952         * targhooks.c (default_function_arg): Eliminate check for target
3953         macro.
3954         (default_function_incoming_arg): Likewise.
3955         (default_function_arg_advance): Likewise.
3956         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3957         (function_arg_advance): Likewise.
3958         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3959
3960 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
3961
3962         * tree.c (build_call_1): New function.
3963         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3964
3965 2011-03-22  Richard Guenther  <rguenther@suse.de>
3966
3967         PR tree-optimization/48228
3968         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3969         for single-arg PHIs.
3970
3971 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
3972
3973         PR rtl-optimization/48143
3974         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3975         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3976         sse2_cvtps2pd): Likewise.
3977
3978 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3979
3980         * recog.c (canonicalize_change_group): Use validate_unshare_change.
3981
3982 2011-03-22  Richard Guenther  <rguenther@suse.de>
3983
3984         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3985         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3986         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3987         and REALIGN_LOAD_EXPR.
3988         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3989         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3990         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3991         DOT_PROD_EXPR case ...
3992         (expand_expr_real_2): ... here.
3993         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3994         and REALIGN_LOAD_EXPR.
3995         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3996         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3997         (vect_create_epilog_for_reduction): Likewise.
3998         (vectorizable_reduction): Likewise.
3999         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
4000         * tree-vect-stmts.c (vectorizable_load): Likewise.
4001
4002 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
4003
4004         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
4005
4006 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4007
4008         * config/s390/s390.c (s390_delegitimize_address): Fix offset
4009         handling for PLTOFF/GOTOFF.
4010
4011 2011-03-22  Nick Clifton  <nickc@redhat.com>
4012
4013         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4014         trailing backslash from the end of the macro definition.
4015
4016 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4017
4018         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
4019         and PLT unspecs.
4020
4021 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
4022
4023         * expr.h (prepare_operand): Move to...
4024         * optabs.h (prepare_operand): ...here and change the insn code
4025         parameter from "int" to "enum insn_code".
4026         (insn_operand_matches): Declare.
4027         * expr.c (init_expr_target): Use insn_operand_matches.
4028         (compress_float_constant): Likewise.
4029         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
4030         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
4031         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
4032         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
4033         Likewise.
4034         (gen_cond_trap): Likewise.
4035         (prepare_operand): Likewise.  Change icode to an insn_code.
4036         (insn_operand_matches): New function.
4037         * reload.c (find_reloads_address_1): Use insn_operand_matches.
4038         * reload1.c (gen_reload): Likewise.
4039         * targhooks.c (default_secondary_reload): Likewise.
4040
4041 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
4042
4043         * config/alpha/alpha.md (unspec): New define_c_enum.
4044         (unspecv): Ditto.
4045
4046 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
4047
4048         PR debug/48214
4049         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
4050         between a call and its CALL_ARG_LOCATION note.
4051
4052 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
4053
4054         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
4055
4056 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
4057
4058         PR c/42544
4059         PR c/48197
4060         * c-common.c (shorten_compare): If primopN is first sign-extended
4061         to opN and then zero-extended to result type, set primopN to opN.
4062
4063 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
4064
4065         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
4066         for barrier handlers.
4067
4068 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
4069
4070         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
4071         UNSPEC constants to be in the unspec enumeration, and redefine
4072         all UNSPECV constants to be in the unspecv enumeration, so that
4073         dumps print which unspec/unspec_volatile this is.
4074         * config/rs6000/vector.md (UNSPEC_*): Ditto.
4075         * config/rs6000/paired.md (UNSPEC_*): Ditto.
4076         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
4077         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
4078         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
4079
4080         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
4081         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
4082         UNSPECV_LWSYNC, since these are used as unspec_volatile.
4083         * config/rs6000/sync.md (isync, lwsync): Ditto.
4084
4085 2011-03-21  Richard Guenther  <rguenther@suse.de>
4086
4087         * params.def (lto-min-partition): Fix typo.
4088
4089 2011-03-21  Richard Guenther  <rguenther@suse.de>
4090
4091         PR c/47939
4092         * c-decl.c (grokdeclarator): Drop to the main variant only
4093         for array types.  Drop flag_gen_aux_info check.
4094
4095 2011-03-21  Richard Guenther  <rguenther@suse.de>
4096
4097         PR translation/47911
4098         * params.def (lto-partitions): Fix typo.
4099         (lto-min-partition): Fix wording.
4100
4101 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
4102
4103         * config/rs6000/t-freebsd: Remove duplication from file.
4104
4105 2011-03-21  Richard Guenther  <rguenther@suse.de>
4106
4107         PR middle-end/47661
4108         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
4109
4110 2011-03-21  Richard Guenther  <rguenther@suse.de>
4111
4112         PR lto/48210
4113         * params.def (lto-partitions): Require at least 1 partition.
4114
4115 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4116
4117         * gthr-solaris.h: Remove.
4118         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
4119         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
4120         (LIB_SPEC): Likewise.
4121         * config/sol2.opt (threads): Remove.
4122         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
4123         (sparc*-*-solaris2*): Likewise.
4124         * configure.ac (enable_threads): Enable solaris support.
4125         * configure: Regenerate.
4126         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
4127         * doc/install.texi (Configuration, --enable-threads=lib): Remove
4128         solaris.
4129
4130 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4131
4132         * config.gcc: Obsolete *-*-solaris2.8*.
4133         * doc/install.texi (Specific, *-*-solaris2*): Document it.
4134
4135 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4136
4137         PR bootstrap/48135
4138         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
4139         reference.  Solaris 8 perl works.
4140
4141 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4142
4143         PR bootstrap/48135
4144         * doc/install.texi (Prerequisites): Move jar etc. up.
4145         Explain support library version requirements.
4146
4147 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4148
4149         PR bootstrap/48135
4150         * doc/install.texi (Prerequisites): Move Perl to build
4151         requirements.  Always necessary on Solaris 2 with Sun ld.
4152
4153 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4154
4155         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
4156         binutils 2.21.
4157         (Specific, i?86-*-solaris2.[89]): Likewise.
4158         (Specific, i?86-*-solaris2.10): Likewise.
4159         (Specific, mips-sgi-irix6): Likewise.
4160         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
4161         Update for binutils 2.21.
4162
4163 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4164
4165         * configure.ac (gcc_cv_lto_plugin): Fix typo.
4166         Allow -fuse-linker-plugin for non-default plugin linker.
4167         * configure: Regenerate.
4168
4169 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4170
4171         PR bootstrap/48167
4172         * gengtype.c (files_rules): Added rule for cp/parser.h.
4173
4174 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
4175
4176         PR target/48213
4177         * config/s390/s390.c (s390_delegitimize_address): Don't call
4178         lowpart_subreg if orig_x has BLKmode.
4179
4180 2011-03-21  Kai Tietz  <ktietz@redhat.com>
4181
4182         PR target/12171
4183         * doc/plugins.texi: Adjust documentation for plugin register_callback.
4184         * tree.h (attribute_spec): Add new member affects_type_identity.
4185         * attribs.c (empty_attribute_table): Adjust attribute_spec
4186         initializers.
4187         * config/alpha/alpha.c: Likewise.
4188         * config/arc/arc.c: Likewise.
4189         * config/arm/arm.c: Likewise.
4190         * config/avr/avr.c: Likewise.
4191         * config/bfin/bfin.c: Likewise.
4192         * config/crx/crx.c: Likewise.
4193         * config/darwin.h: Likewise.
4194         * config/h8300/h8300.c: Likewise.
4195         * config/i386/cygming.h: Likewise.
4196         * config/i386/i386.c: Likewise.
4197         * config/ia64/ia64.c: Likewise.
4198         * config/m32c/m32c.c: Likewise.
4199         * config/m32r/m32r.c: Likewise.
4200         * config/m68hc11/m68hc11.c: Likewise.
4201         * config/m68k/m68k.c: Likewise.
4202         * config/mcore/mcore.c: Likewise.
4203         * config/mep/mep.c: Likewise.
4204         * config/microblaze/microblaze.c: Likewise.
4205         * config/mips/mips.c: Likewise.
4206         * config/rs6000/rs6000.c: Likewise.
4207         * config/rx/rx.c: Likewise.
4208         * config/sh/sh.c: Likewise.
4209         * config/sol2.h: Likewise.
4210         * config/sparc/sparc.c: Likewise.
4211         * config/spu/spu.c: Likewise.
4212         * config/stormy16/stormy16.c: Likewise.
4213         * config/v850/v850.c: Likewise.
4214
4215 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
4216
4217         * simplify-rtx.c (simplify_binary_operation_1): Handle
4218         (xor (and A B) C) case when B and C are both constants.
4219
4220 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
4221
4222         * tree-dfa.c (add_referenced_var): Fix typo in comment.
4223
4224 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
4225
4226         PR bootstrap/48168
4227         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
4228
4229 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
4230
4231         PR rtl-optimization/48156
4232         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
4233         assume df and df_lr are not NULL.
4234
4235 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4236
4237         PR debug/48023
4238         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
4239         between a call and its CALL_ARG_LOCATION note.
4240
4241 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4242
4243         PR debug/48178
4244         * config/sh/sh.c (find_barrier): Don't emit a constant pool
4245         between a call and its corresponding CALL_ARG_LOCATION note.
4246
4247 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
4248
4249         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
4250         instead of loop. Use HARD_REGISTER_NUM_P predicate.
4251         * haifa-sched.c (setup_ref_regs): Ditto.
4252         * caller-save.c (add_used_regs_1): Ditto.
4253         * dse.c (look_for_hardregs): Ditto.
4254         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
4255         * sched-rgn.c (check_live_1): Ditto.
4256
4257 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
4258
4259         * c-decl.c (diagnose_mismatched_decls): Give an error for
4260         redefining a typedef with variably modified type.
4261
4262 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
4263
4264         * c-decl.c (grokfield): Don't allow typedefs for structures or
4265         unions with no tag by default.
4266         * doc/extend.texi (Unnamed Fields): Update.
4267
4268 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
4269
4270         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4271         Rewrite using indirect functions.
4272         (lwp_slwpcb): Ditto.
4273         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
4274         (avx_vinsertf128<mode>): Ditto.
4275
4276 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4277
4278         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
4279         unspecs.
4280
4281 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4282
4283         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
4284         splitting between a call and its corresponding CALL_ARG_LOCATION note.
4285
4286 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4287
4288         PR rtl-optimization/48170
4289         * gcse.c (hoist_code): Remove bogus asserts.
4290
4291 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
4292
4293         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
4294         computation for prologue/epilogue.
4295
4296 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4297
4298         * Makefile.in (check-consistency): Remove.
4299
4300 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
4301
4302         PR debug/48176
4303         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
4304         arange_table_in_use is 0, but either text_section_used or
4305         cold_text_section_used is true.  Don't call it if
4306         !info_section_emitted.
4307
4308 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
4309
4310         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
4311         FUNCTION_VALUE_REGNO_P): Remove.
4312         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
4313         Remove.
4314         * config/avr/avr.c (avr_ret_register): Make static inline.
4315         (avr_function_value_regno_p): New function.
4316         (avr_libcall_value): Make static. Add 'func' argument.
4317         (avr_function_value): Make static. Rename 'func' argument to
4318         'fn_decl_or_type', forward it to avr_libcall_value. Call
4319         avr_ret_register function instead of RET_REGISTER macro.
4320         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4321
4322 2011-03-18  Jason Merrill  <jason@redhat.com>
4323
4324         PR c++/23372
4325         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
4326
4327 2011-03-18  Richard Guenther  <rguenther@suse.de>
4328
4329         * doc/install.texi (--enable-gold): Remove.
4330         (--with-plugin-ld): Document.
4331         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
4332
4333 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
4334
4335         PR middle-end/47790
4336         * expr.c (optimize_bitfield_assignment_op): Revamp to work
4337         again after expansion changes.
4338
4339 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
4340
4341         * combine.c (try_combine): Do simplification only call of
4342         subst() on i2 even when i1 is present. Update comments.
4343
4344 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
4345
4346         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
4347         and UNSPEC_PCREL_SYMOFF.
4348
4349 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4350
4351         * config/s390/s390.md: Use define_c_enum for the unspec constant
4352         definitions.
4353
4354 2011-03-18  Richard Henderson  <rth@redhat.com>
4355             Jakub Jelinek  <jakub@redhat.com>
4356
4357         PR bootstrap/48161
4358         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
4359         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
4360
4361 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4362
4363         PR middle-end/47725
4364         * combine.c (cant_combine_insn_p): Don't check zero/sign
4365         extended hard registers.
4366
4367 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4368
4369         PR middle-end/47725
4370         * combine.c (cant_combine_insn_p): Check zero/sign extended
4371         hard registers.
4372
4373 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
4374
4375         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4376         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
4377         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
4378         Change return type to bool.
4379         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4380
4381 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
4382
4383         PR debug/48163
4384         * var-tracking.c (prepare_call_arguments): If CALL target
4385         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
4386         pc instead of looking it up using cselib_lookup and use
4387         Pmode for it if x has VOIDmode.
4388         * dwarf2out.c (gen_subprogram_die): If also both first and
4389         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
4390
4391         PR debug/48163
4392         * function.c (assign_parms): For data.passed_pointer parms
4393         use MEM of data.entry_parm instead of data.entry_parm itself
4394         as DECL_INCOMING_RTL.
4395         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
4396         also when passed and declared mode is the same, DECL_RTL
4397         is a MEM with pseudo as address and DECL_INCOMING_RTL is
4398         a MEM too.
4399
4400 2011-03-16  Jeff Law  <law@redhat.com>
4401
4402         PR rtl-optimization/37273
4403         * ira-costs.c (scan_one_insn): Detect constants living in memory and
4404         handle them like argument loads from stack slots.  Do not double
4405         count memory for memory constants and argument loads from stack slots.
4406
4407 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4408
4409         PR debug/48160
4410         * var-tracking.c (prepare_call_arguments): Check SUBREG.
4411
4412 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4413
4414         PR target/48171
4415         * config/i386/i386.opt: Add Save to -mavx and -mfma.
4416
4417 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
4418
4419         PR bootstrap/48153
4420         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
4421         if dwarf_strict.
4422         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
4423         Clear call_arg_locations and call_arg_loc_last always.
4424
4425         PR middle-end/48152
4426         * var-tracking.c (prepare_call_arguments): If argument needs to be
4427         passed by reference, adjust argtype and mode.
4428
4429 2011-03-17  Richard Guenther  <rguenther@suse.de>
4430
4431         PR middle-end/48134
4432         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
4433         a value make sure to fold the statement.
4434
4435 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
4436
4437         PR target/43872
4438         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
4439         return condition with !cfun->calls_alloca.
4440
4441 2011-03-17  Richard Guenther  <rguenther@suse.de>
4442
4443         PR bootstrap/48148
4444         * lto-cgraph.c (input_overwrite_node): Clear the abstract
4445         origin for decls in other ltrans units.
4446         (input_varpool_node): Likewise.
4447
4448 2011-03-17  Richard Guenther  <rguenther@suse.de>
4449
4450         PR middle-end/48165
4451         * tree-object-size.c (compute_object_offset): Properly return
4452         the offset operand of MEM_REFs as sizetype.
4453
4454 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
4455
4456         PR rtl-optimization/48141
4457         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
4458         * dse.c: Include params.h.
4459         (active_local_stores_len): New variable.
4460         (add_wild_read, dse_step1): Clear it when setting active_local_stores
4461         to NULL.
4462         (record_store, check_mem_read_rtx): Decrease it when removing
4463         from the chain.
4464         (scan_insn): Likewise.  Increase it when adding to chain, if it
4465         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
4466         set active_local_stores to NULL before the addition.
4467         * Makefile.in (dse.o): Depend on $(PARAMS_H).
4468
4469         PR rtl-optimization/48141
4470         * dse.c (record_store): If no positions are needed in an insn
4471         that cannot be deleted, at least unchain it from active_local_stores.
4472
4473 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
4474
4475         PR debug/47510
4476         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
4477         (lookup_type_die_strip_naming_typedef): ... here.
4478         (get_context_die): Use it.
4479         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
4480         the anonymous struct named by the naming typedef.
4481
4482 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4483
4484         PR target/48154
4485         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
4486         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4487
4488 2011-03-16  Jeff Law  <law@redhat.com>
4489
4490         * tree-vrp.c (identify_jump_threads): Slightly simplify type
4491         check for operands of conditional.  Allow type to be a pointer.
4492
4493 2011-03-16  Richard Guenther  <rguenther@suse.de>
4494
4495         PR tree-optimization/48149
4496         * fold-const.c (fold_binary_loc): Fold
4497         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
4498
4499 2011-03-16  Richard Guenther  <rguenther@suse.de>
4500
4501         PR tree-optimization/26134
4502         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
4503         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
4504         (non_rewritable_mem_ref_base): Handle complex type component
4505         accesses, constrain offsets for vector and complex extracts
4506         more properly.
4507
4508 2011-03-16  Richard Guenther  <rguenther@suse.de>
4509
4510         PR tree-optimization/48146
4511         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
4512         operands avoiding the need for renaming.
4513
4514 2011-03-16  Richard Guenther  <rguenther@suse.de>
4515
4516         * gimple-fold.c (maybe_fold_reference): Open-code relevant
4517         constant folding.  Move MEM_REF canonicalization first.
4518         Rely on fold_const_aggregate_ref for initializer folding.
4519         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
4520
4521 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
4522
4523         PR middle-end/48136
4524         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4525         arg0/arg1 or their arguments are always fold converted to matching
4526         types.
4527
4528         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
4529         to nargs.
4530
4531 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4532
4533         PR lto/46944
4534         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
4535         Handle in-tree gold.
4536         (ld_vers): Extract binutils version for gold.
4537         (gcc_cv_ld_hidden): Handle gold here.
4538         (gcc_cv_lto_plugin): Determine level of linker plugin support.
4539         * configure: Regenerate.
4540         * config.in: Regenerate.
4541         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
4542         -fuse-linker-plugin otherwise.
4543         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
4544         (LINK_COMMAND_SPEC): Use it.
4545         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
4546
4547 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
4548
4549         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
4550         * calls.c: Remove debug.h include.
4551         (emit_call_1): Don't call virtual_call_token debug hook.
4552         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
4553         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
4554         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
4555         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
4556         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
4557         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
4558         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
4559         dwarf2out_virtual_call): Remove.
4560         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
4561         copy_call_info and virtual_call hooks.
4562         (dwarf2out_init): Don't initialize vcall_insn_table,
4563         debug_dcall_section and debug_vcall_section.
4564         (prune_unused_types): Don't mark nodes from dcall_table.
4565         (dwarf2out_finish): Don't output dcall or vcall tables.
4566         * final.c (final_scan_insn): Don't call direct_call or
4567         virtual_call debug hooks.
4568         * debug.h (struct gcc_debug_hooks): Remove direct_call,
4569         virtual_call_token, copy_call_info and virtual_call hooks.
4570         (debug_nothing_uid): Remove prototype.
4571         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
4572         copy_call_info and virtual_call hooks.
4573         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4574         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4575         * debug.c (do_nothing_debug_hooks): Likewise.
4576         (debug_nothing_uid): Remove.
4577         * doc/invoke.texi (-fenable-icf-debug): Remove.
4578         * common.opt (-fenable-icf-debug): Likewise.
4579
4580         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
4581         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
4582         call's MEM.  Handle functions returning aggregate through a hidden
4583         first pointer.  For virtual calls add clobbered pc to call arguments
4584         chain.
4585         * dwarf2out.c (gen_subprogram_die): Emit
4586         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
4587         can't be emitted.
4588
4589         PR debug/45882
4590         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
4591         * rtl.h (ENTRY_VALUE_EXP): Define.
4592         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
4593         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
4594         * print-rtl.c (print_rtx): Likewise.
4595         * gengtype.c (adjust_field_rtx_def): Likewise.
4596         * var-tracking.c (vt_add_function_parameter): Adjust
4597         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
4598         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
4599         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
4600         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
4601         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
4602
4603         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
4604         Call var_location debug hook even on CALL_INSNs.
4605         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
4606         * rtl.def (ENTRY_VALUE): New.
4607         * dwarf2out.c: Include cfglayout.h.
4608         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4609         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
4610         (struct call_arg_loc_node): New type.
4611         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
4612         tail_call_site_count): New variables.
4613         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
4614         DW_TAG_GNU_call_site_parameter.
4615         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
4616         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
4617         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
4618         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
4619         and DW_AT_GNU_all_source_call_sites.
4620         (mem_loc_descriptor): Handle ENTRY_VALUE.
4621         (add_src_coords_attributes): Don't add enything if
4622         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
4623         (dwarf2out_abstract_function): Save and clear call_arg_location,
4624         call_site_count and tail_call_site_count around dwarf2out_decl call.
4625         (gen_call_site_die): New function.
4626         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
4627         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
4628         (dwarf2out_function_decl): Clear call_arg_locations,
4629         call_arg_loc_last, set call_site_count and tail_call_site_count
4630         to -1 and free block_map.
4631         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
4632         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
4633         followed by any real instructions.
4634         (dwarf2out_begin_function): Set call_site_count and
4635         tail_call_site_count to 0.
4636         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
4637         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
4638         attempt to force a DIE for it and worst case remove the attribute.
4639         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
4640         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
4641         the decl itself.
4642         * var-tracking.c: Include tm_p.h.
4643         (vt_stack_adjustments): For calls call note_register_arguments.
4644         (argument_reg_set): New variable.
4645         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
4646         ensure the VALUE is resolved.
4647         (call_arguments): New variable.
4648         (prepare_call_arguments): New function.
4649         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
4650         (struct expand_loc_callback_data): Add ignore_cur_loc field.
4651         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
4652         always use the best expression.
4653         (vt_expand_loc): Add ignore_cur_loc argument.
4654         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
4655         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
4656         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
4657         note for all calls.
4658         (vt_add_function_parameter): Use cselib_lookup_from_insn.
4659         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
4660         argument.  Don't call cselib_preserve_only_values and
4661         cselib_reset_table.
4662         (note_register_arguments): New function.
4663         (vt_initialize): Compute argument_reg_set.  Call
4664         vt_add_function_parameters before processing basic blocks instead of
4665         afterwards.  For calls call prepare_call_arguments before calling
4666         cselib_process_insn.
4667         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
4668         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
4669         (var-tracking.o): Depend on $(TM_P_H).
4670         * cfglayout.h (insn_scope): New prototype.
4671         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
4672         * cfglayout.c (insn_scope): No longer static.
4673         * insn-notes.def (CALL_ARG_LOCATION): New.
4674         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
4675         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
4676         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
4677         nothing for DECL_EXTERNAL BLOCK_VARS.
4678
4679 2011-03-16  Alan Modra  <amodra@gmail.com>
4680
4681         PR target/45844
4682         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
4683         create invalid offset address for vsx splat insn.
4684         * config/rs6000/predicates.md (splat_input_operand): New.
4685         * config/rs6000/vsx.md (vsx_splat_*): Use it.
4686
4687 2011-03-15  Xinliang David Li  <davidxl@google.com>
4688
4689         PR c/47837
4690         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
4691         (normalize_preds): New function.
4692         (is_use_properly_guarded): Normalize def predicates.
4693
4694 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4695
4696         PR target/46788
4697         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
4698         in the output template.
4699
4700 2011-03-15  Richard Guenther  <rguenther@suse.de>
4701
4702         PR middle-end/47650
4703         * tree-pretty-print.c (dump_function_declaration): Properly
4704         dump unprototyped and varargs function types.
4705
4706 2011-03-15  Richard Guenther  <rguenther@suse.de>
4707
4708         PR tree-optimization/13954
4709         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
4710         and friends.
4711
4712 2011-03-15  Richard Guenther  <rguenther@suse.de>
4713
4714         PR tree-optimization/48037
4715         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
4716         selects into BIT_FIELD_REFs.
4717         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
4718         vector select.
4719
4720 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
4721
4722         PR tree-optimization/48129
4723         * builtins.c (fold_builtin_snprintf): Convert to type of
4724         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
4725         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
4726
4727 2011-03-15  Richard Guenther  <rguenther@suse.de>
4728
4729         PR tree-optimization/41490
4730         * tree-ssa-dce.c (propagate_necessity): Handle returns without
4731         value but with VUSE.
4732         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
4733         return statements.
4734         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
4735         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
4736         * tree-tailcall.c (find_tail_calls): Ignore returns.
4737
4738 2011-03-15  Richard Guenther  <rguenther@suse.de>
4739
4740         PR middle-end/48031
4741         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
4742         or variable-indexed array accesses when in gimple form.
4743
4744 2011-03-15  Richard Guenther  <rguenther@suse.de>
4745
4746         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
4747
4748 2011-03-15  Alan Modra  <amodra@gmail.com>
4749
4750         PR target/48032
4751         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
4752         presume symbol_refs without a symbol_ref_decl are suitably
4753         aligned, nor other trees we may see here.  Handle anchor symbols.
4754         (legitimate_constant_pool_address_p): Comment.  Add mode param.
4755         Check cmodel=medium addresses.  Adjust all calls.
4756         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
4757         creating cmodel=medium optimized access to locals.
4758         * config/rs6000/constraints.md (R): Pass QImode to
4759         legitimate_constant_pool_address_p.
4760         * config/rs6000/predicates.md (input_operand): Pass mode to
4761         legitimate_constant_pool_address_p.
4762         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
4763         Update prototype.
4764
4765 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4766
4767         PR target/48053
4768         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
4769         64-bit constants being loaded into registers other than GPRs such
4770         as loading 0 into a VSX register.
4771
4772 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4773
4774         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
4775
4776 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
4777
4778         PR middle-end/47917
4779         * builtins.c (fold_builtin_snprintf): New function.
4780         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
4781         (fold_builtin_4): Likewise.
4782
4783         PR middle-end/38878
4784         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
4785         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
4786         and C - X == X also strip nops from +/-/p+ operand.
4787         When optimizing -X == C, fold C to arg0's type.
4788
4789         PR debug/47946
4790         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
4791         emit it as add_AT_int instead of add_AT_unsigned.
4792
4793 2011-03-14  Tom Tromey  <tromey@redhat.com>
4794
4795         * unwind-dw2.c: Include sys/sdt.h if it exists.
4796         (_Unwind_DebugHook): Use STAP_PROBE2.
4797         * config.in, configure: Rebuild.
4798         * configure.ac: Check for sys/sdt.h.
4799
4800 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
4801
4802         * config/i386/i386.md (ROUND_FLOOR): New constant.
4803         (ROUND_CEIL): Ditto.
4804         (ROUND_TRUNC): Ditto.
4805         (ROUND_MXCSR): Ditto.
4806         (ROUND_NO_EXC): Ditto.
4807         (rint<mode>2): Use new defines instead of numerical constants.
4808         (floor<mode>2): Ditto.
4809         (ceil<mode>2): Ditto.
4810         (btrunc<mode>2): Ditto.
4811         * config/i386/i386-builtin-types.def: Define ROUND function type
4812         aliases.
4813         * config/i386/i386.c (enum ix86_builtins): Add
4814         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
4815         (struct builtin_description): Add
4816         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
4817         (ix86_expand_sse_round): New static function.
4818         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
4819         function types.
4820         (ix86_builtin_vectorized_function): Handle
4821         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4822
4823 2011-03-14  Tom Tromey  <tromey@redhat.com>
4824
4825         * c-parser.c (c_parser_asm_string_literal): Clear
4826         warn_overlength_strings.
4827
4828 2011-03-14  Tom Tromey  <tromey@redhat.com>
4829
4830         * c-parser.c (disable_extension_diagnostics): Save
4831         warn_overlength_strings.
4832         (restore_extension_diagnostics): Restore warn_overlength_strings.
4833
4834 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
4835
4836         * BASE-VER: Change to 4.7.0.
4837
4838 2011-03-14  Richard Guenther  <rguenther@suse.de>
4839
4840         PR middle-end/48098
4841         * tree.c (build_vector_from_val): Adjust assert to requirements
4842         and reality.
4843
4844 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
4845
4846         PR bootstrap/48102
4847         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
4848
4849 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
4850
4851         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
4852         terms of target_flags_explicit. Adjust copyright year.
4853
4854         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
4855         * config/rs6000/t-freebsd: New file. Add override for
4856         LIB2FUNCS_EXTRA.
4857
4858 2011-03-13  Chris Demetriou  <cgd@google.com>
4859
4860         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4861         (-fno-diagnostics-show-option): this, to reflect current default.
4862         (-Werror=): Update text about -fno-diagnostics-show-option.
4863
4864 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
4865
4866         PR target/48053
4867         * config/rs6000/predicates.md (easy_vector_constant_add_self,
4868         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
4869         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
4870         mode is not V2DImode or V2DFmode.
4871         (vspltis_constant): Do not handle V2DImode and V2DFmode.
4872         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
4873         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
4874         registers to 0.
4875         (movdi_internal64): Likewise.
4876
4877 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
4878
4879         PR tree-optimization/47127
4880         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
4881         parameter.
4882         (set_cloog_options): Same.
4883         (scop_to_clast): Same.
4884         (print_clast_stmt): Do not call cloog_state_malloc and
4885         cloog_state_free.
4886         (print_generated_program): Same.
4887         (gloog): Same.
4888         * graphite-clast-to-gimple.h (cloog_state): Declared.
4889         (scop_to_clast): Adjust declaration.
4890         * graphite.c (cloog_state): Defined here.
4891         (graphite_initialize): Call cloog_state_malloc.
4892         (graphite_finalize): Call cloog_state_free.
4893
4894 2011-03-11  Jason Merrill  <jason@redhat.com>
4895
4896         * attribs.c (lookup_attribute_spec): Take const_tree.
4897         * tree.h: Adjust.
4898
4899 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
4900
4901         * config/sparc/sparc.c (sparc_option_override): Use
4902         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
4903
4904 2011-03-11  Richard Guenther  <rguenther@suse.de>
4905
4906         PR tree-optimization/48067
4907         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
4908         multiplication result will be only used once on the target
4909         stmt.
4910
4911 2011-03-11  Richard Guenther  <rguenther@suse.de>
4912
4913         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4914
4915 2011-03-11  Richard Guenther  <rguenther@suse.de>
4916
4917         PR lto/48073
4918         * tree.c (find_decls_types_r): Do not walk types only reachable
4919         from IDENTIFIER_NODEs.
4920
4921 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
4922
4923         PR middle-end/48044
4924         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4925         all vnode->force_output nodes as needed.
4926
4927 2011-03-11  Jason Merrill  <jason@redhat.com>
4928
4929         PR c++/48069
4930         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4931         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4932
4933 2011-03-11  Martin Jambor  <mjambor@suse.cz>
4934
4935         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4936         cgraph_node.
4937
4938 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
4939
4940         PR tree-optimization/48063
4941         * ipa-inline.c (cgraph_decide_inlining): Don't try to
4942         inline functions called once if !tree_can_inline_p (node->callers).
4943
4944 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
4945
4946         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4947         extra_objs.
4948         * config/score/score3.c: Delete.
4949         * config/score/score3.h: Delete.
4950         * config/score/mul-div.S: Delete.
4951         * config/score/sfp-machine.h: Add new file.
4952         * config/score/constraints.md: Add new file.
4953         * config/score/t-score-softfp: Add new file.
4954         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
4955         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4956         (score7_extra_constraint): Delete.
4957         (score7_option_override): Remove unused code.
4958         * config/score/score.c: Remove score3 and score5 define and code.
4959         * config/score/score.h: Remove score3 and score5 define and code.
4960         * config/score/score.md: Remove score3 template and unusual insn.
4961         * config/score/score.opt: Remove score3 and score5 options.
4962
4963 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4964
4965         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4966         when _HPUX_SOURCE is defined.
4967         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4968
4969 2011-03-10  Jason Merrill  <jason@redhat.com>
4970
4971         PR c++/48029
4972         * stor-layout.c (layout_type): Don't set structural equality
4973         on arrays of incomplete type.
4974         * tree.c (type_hash_eq): Handle comparing them properly.
4975
4976 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
4977
4978         PR debug/48043
4979         * config/s390/s390.c (s390_delegitimize_address): Make sure the
4980         result mode matches original rtl mode.
4981
4982 2011-03-10  Nick Clifton  <nickc@redhat.com>
4983
4984         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
4985         (andsi3, andsi3_flags): Fix timings for three operand alternative.
4986
4987 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
4988
4989         PR rtl-optimization/47866
4990         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4991         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4992         if target wasn't scalar.
4993         * function.c (assign_stack_temp_for_type): Assert that neither
4994         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4995         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4996         macro.
4997         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4998
4999 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5000
5001         * config/s390/s390-protos.h (s390_label_align): New prototype.
5002         * config/s390/s390.c (s390_label_align): New function.
5003         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
5004
5005 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5006
5007         PR target/47755
5008         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
5009         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
5010         (output_vec_const_move): Ditto.
5011
5012 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
5013
5014         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
5015         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
5016         * config/mips/mips.c (mips_preferred_reload_class): Make static.
5017         Change 'rclass' argument and result type to reg_class_t.
5018         (TARGET_PREFERRED_RELOAD_CLASS): Define.
5019
5020 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
5021
5022         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5023         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
5024         (TARGET_MEMORY_MOVE_COST): Define.
5025         (avr_register_move_cost, avr_memory_move_cost): New Functions.
5026
5027 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
5028
5029         PR debug/47881
5030         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
5031         removed anything.
5032
5033         PR tree-optimization/48022
5034         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
5035         for EQ/NE_EXPR.
5036
5037 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
5038
5039         PR debug/47991
5040         * var-tracking.c (find_use_val): Return NULL for
5041         cui->sets && cui->store_p BLKmode MEMs.
5042
5043 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
5044
5045         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5046         Remove.
5047         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
5048         xstormy16_print_operand_address): Remove.
5049         * config/stormy16/stormy16.c (xstormy16_print_operand,
5050         xstormy16_print_operand_address): Make static.
5051         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5052
5053 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
5054
5055         PR target/47862
5056         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5057         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
5058         before definition.
5059
5060 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
5061
5062         PR bootstrap/48000
5063         * cfgloopmanip.c (fix_bb_placements): Return immediately
5064         if FROM is BASE_LOOP's header.
5065
5066 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
5067
5068         * gimplify.c (gimplify_function_tree): Fix building calls
5069         to __builtin_return_address.
5070
5071 2011-03-07  Alan Modra  <amodra@gmail.com>
5072
5073         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
5074         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
5075         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
5076         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
5077         return_mode args.
5078         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
5079         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
5080         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
5081         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
5082         * config/rs6000/rs6000.c
5083         (rs6000_elf_end_indicate_exec_stack): Rename to..
5084         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
5085         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
5086         (rs6000_file_start): ..here.
5087         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
5088         file scope variables.
5089         (call_ABI_of_interest): New function.
5090         (init_cumulative_args): Set above vars when function return value
5091         is a float, vector, or small struct.
5092         (rs6000_function_arg_advance_1): Likewise for function args.
5093         (rs6000_va_start): Set rs6000_passes_float if variable arg function
5094         references float args.
5095
5096 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
5097
5098         * doc/cfg.texi: Remove "See" before @ref.
5099         * doc/invoke.texi: Likewise.
5100
5101 2011-03-05  Jason Merrill  <jason@redhat.com>
5102
5103         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
5104
5105 2011-03-05  Anthony Green  <green@moxielogic.com>
5106
5107         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
5108
5109 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
5110
5111         PR rtl-optimization/47899
5112         * cfgloopmanip.c (fix_bb_placements): Fix first argument
5113         to flow_loop_nested_p when moving the loop upward.
5114
5115 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
5116
5117         PR target/47719
5118         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
5119
5120 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
5121
5122         PR tree-optimization/47967
5123         * ipa-cp.c (build_const_val): Return NULL instead of creating
5124         VIEW_CONVERT_EXPR for mismatching sizes.
5125         (ipcp_create_replace_map): Return NULL if build_const_val failed.
5126         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
5127         give up on versioning.
5128
5129 2011-03-05  Alan Modra  <amodra@gmail.com>
5130
5131         PR target/47986
5132         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5133         full cmodel medium/large lo_sum + high addresses.
5134
5135 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5136
5137         * config/s390/s390.c (s390_decompose_address): Reject non-literal
5138         pool references in UNSPEC_LTREL_OFFSET.
5139
5140 2011-03-04  Jan Hubicka  <jh@suse.cz>
5141
5142         PR lto/47497
5143         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
5144         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
5145         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
5146         Add node pointers.
5147         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
5148         cgraph_add_thunk): Add node pointers.
5149         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
5150         associated to right node.
5151         (input_node): Update use of cgraph_same_body_alias
5152         and cgraph_add_thunk.
5153
5154 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
5155
5156         * config/i386/i386.opt (mprefer-avx128): New flag.
5157         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
5158         modes when the flag -mprefer-avx128 is on.
5159
5160 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
5161
5162         * dwarf2out.c (compare_loc_operands): Fix address handling.
5163
5164 2011-03-04  Alan Modra  <amodra@gmail.com>
5165
5166         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
5167
5168 2011-03-04  Richard Guenther  <rguenther@suse.de>
5169
5170         PR middle-end/47968
5171         * expmed.c (extract_bit_field_1): Prefer vector modes that
5172         vec_extract patterns can handle.
5173
5174 2011-03-04  Richard Guenther  <rguenther@suse.de>
5175
5176         PR middle-end/47975
5177         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
5178
5179 2011-03-04  Richard Henderson  <rth@redhat.com>
5180
5181         * explow.c (emit_stack_save): Remove 'after' parameter.
5182         (emit_stack_restore): Likewise.
5183         * expr.h: Update to match.
5184         * builtins.c, calls.c, stmt.c: Likewise.
5185         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
5186         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
5187         * function.c (expand_function_end): Insert the emit_stack_save
5188         sequence before parm_birth_insn instead of after.
5189
5190 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
5191
5192         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
5193         (ssse3_pmaddubsw128): Ditto.
5194         (ssse3_pmaddubsw): Ditto.
5195
5196 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
5197
5198         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
5199
5200 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
5201
5202         PR c/47963
5203         * gimplify.c (omp_add_variable): Only call omp_notice_variable
5204         on TYPE_SIZE_UNIT if it is a DECL.
5205
5206         PR debug/47283
5207         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
5208         first operand is not is_gimple_mem_ref_addr, try to fold it.
5209         If the operand still isn't is_gimple_mem_ref_addr, clear
5210         MEM_EXPR on op0.
5211
5212 2011-03-03  Richard Guenther  <rguenther@suse.de>
5213
5214         PR middle-end/47283
5215         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
5216         match comment.
5217         (refs_may_alias_p_1): For release branches return true if
5218         we are confused by our input.
5219
5220 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5221
5222         * config/s390/s390.c (s390_function_value): Rename to ...
5223         (s390_function_and_libcall_value): ... this.
5224         (s390_function_value): New function.
5225         (s390_libcall_value): New function.
5226         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
5227         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
5228         target macro definitions.
5229         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
5230
5231 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
5232
5233         * config/i386/freebsd64.h (CC1_SPEC): Define.
5234         * config/i386/linux64.h (CC1_SPEC): Define.
5235         * config/i386/x86-64.h (CC1_SPEC): Don't define.
5236
5237 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
5238
5239         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5240         Remove.
5241         * config/stormy16/stormy16.c: Include reload.h.
5242         (xstormy16_memory_move_cost): New function.
5243         (TARGET_MEMORY_MOVE_COST): Define.
5244
5245 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
5246
5247         PR rtl-optimization/47925
5248         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
5249         with side effects.  Remove the more-specific check for volatile asms.
5250
5251 2011-03-02  Alan Modra  <amodra@gmail.com>
5252
5253         PR target/47935
5254         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
5255         toc relative addresses for valid offsets.
5256
5257 2011-03-01  Richard Guenther  <rguenther@suse.de>
5258
5259         PR tree-optimization/47890
5260         * tree-vect-loop.c (get_initial_def_for_induction): Set
5261         related stmt properly.
5262
5263 2011-03-01  Richard Guenther  <rguenther@suse.de>
5264
5265         PR lto/47924
5266         * lto-streamer.c (lto_record_common_node): Also register
5267         the canonical type.
5268
5269 2011-03-01  Richard Guenther  <rguenther@suse.de>
5270
5271         PR lto/46911
5272         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5273         Do not stream DECL_ABSTRACT_ORIGIN.
5274         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5275         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5276         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5277         Do not stream DECL_ABSTRACT_ORIGIN.
5278         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5279         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5280
5281 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
5282
5283         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
5284         FUNCTION_VALUE_REGNO_P): Remove.
5285         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
5286         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
5287         Add 'outgoing' argument.
5288         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
5289         function.
5290         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5291         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5292
5293 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
5294
5295         PR debug/28047
5296         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
5297         (lookup_filename): Likewise.
5298         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
5299
5300 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
5301             Jakub Jelinek  <jakub@redhat.com>
5302
5303         PR middle-end/47893
5304         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
5305         (assign_stack_local_1): Change last argument type to int.
5306         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
5307         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
5308         don't record padding space into frame_space_list nor use those areas.
5309         (assign_stack_local): Adjust caller.
5310         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
5311         of assign_stack_local, pass 0 as last argument.
5312         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
5313         callers.
5314
5315 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
5316
5317         PR debug/47283
5318         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
5319         Use target address_mode and pointer_mode hooks instead of hardcoded
5320         Pmode and ptr_mode.  Handle some simple cases of extending if
5321         POINTERS_EXTEND_UNSIGNED < 0.
5322         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
5323         Call convert_debug_memory_address.
5324         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
5325         convert_debug_memory_address.
5326
5327         PR middle-end/46790
5328         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
5329         * configure: Regenerated.
5330         * config.in: Regenerated.
5331         * varasm.c (default_function_section): Return NULL
5332         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
5333
5334 2011-02-28  Martin Jambor  <mjambor@suse.cz>
5335
5336         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
5337         the description to match the printed values.
5338
5339 2011-02-28  Richard Guenther  <rguenther@suse.de>
5340
5341         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
5342         of the copied scope tree.
5343
5344 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5345
5346         * doc/extend.texi (Function Attributes): Avoid deeply (and
5347         wrongly) nested tables.
5348
5349 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
5350
5351         PR middle-end/47903
5352         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
5353         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
5354         r isn't op0 nor op1.
5355
5356 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
5357
5358         * config/avr/avr.md: Remove magic comment for emacs.
5359
5360 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
5361
5362         PR target/45261
5363         * config/avr/avr.c (avr_option_override): Use error on bad options.
5364         (avr_help): New function.
5365         (TARGET_HELP): Define.
5366
5367 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
5368
5369         PR target/42240
5370         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
5371         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
5372
5373 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
5374
5375         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
5376         (ARM Options): Ditto.
5377         (i386 and x86-64 Options): Ditto.
5378         (RX Options): Ditto.
5379         (SPARC Options): Ditto.
5380
5381 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
5382
5383         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
5384         FreeBSD 6 and later.  Generally use cpu generic.
5385
5386 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
5387
5388         * doc/cpp.texi: Update copyright years.
5389
5390 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
5391
5392         PR target/46898
5393         * config/lm32/lm32.md (ashrsi3): Added needed variable.
5394
5395 2011-02-25  Jon Beniston  <jon@beniston.com>
5396
5397         PR target/46898
5398         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
5399         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5400         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
5401         (lm32_block_move_inline): Add type cast to remove warning.
5402         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
5403         (gen_int_relational): Move declarations to start of function.
5404
5405 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
5406
5407         PR tree-optimization/45470
5408         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5409         can throw internally only.
5410         * tree-vect-stmts.c (vectorizable_call): Likewise.
5411
5412 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
5413
5414         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
5415         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5416         * config/stormy16/stormy16-protos.h
5417         (xstormy16_preferred_reload_class): Remove.
5418         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
5419         static. Change 'rclass' argument and return type to reg_class_t.
5420         (TARGET_PREFERRED_RELOAD_CLASS,
5421         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5422
5423 2011-02-24  Richard Guenther  <rguenther@suse.de>
5424
5425         * lto-streamer-in.c (input_bb): Do not find referenced vars
5426         in debug statements.
5427
5428 2011-02-23  Jason Merrill  <jason@redhat.com>
5429
5430         * common.opt (fabi-version): Document v5 and v6.
5431
5432 2011-02-23  Richard Guenther  <rguenther@suse.de>
5433
5434         PR tree-optimization/47849
5435         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
5436
5437 2011-02-23  Jie Zhang  <jie@codesourcery.com>
5438
5439         * opts-common.c (decode_cmdline_option): Print empty string
5440         argument as "" in decoded->orig_option_with_args_text.
5441         * gcc.c (execute): Print empty string argument as ""
5442         in the verbose output.
5443         (do_spec_1): Keep empty string argument.
5444
5445 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
5446
5447         * config.gcc: Declare score-* and crx-* obsolete.
5448
5449 2011-02-23  Jie Zhang  <jie@codesourcery.com>
5450
5451         PR rtl-optimization/47763
5452         * web.c (web_main): Ignore naked clobber when replacing register.
5453
5454 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
5455
5456         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5457         Remove.
5458
5459 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
5460
5461         PR doc/47848
5462         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
5463
5464 2011-02-22  Mike Stump  <mikestump@comcast.net>
5465
5466         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
5467         assembler.
5468         * configure: Regenerate.
5469
5470 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
5471
5472         PR rtl-optimization/46002
5473         * ira-color.c (update_copy_costs): Change class intersection
5474         test to reg_class_contents[] test of 'hard_regno'.
5475
5476 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
5477
5478         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
5479         than Driver option.
5480         * config/hpux11.opt (mt): Likewise.
5481         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
5482         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
5483         * config/vax/elf.opt (mno-asm-pic): Likewise.
5484         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
5485
5486 2011-02-21  Mike Stump  <mikestump@comcast.net>
5487
5488         PR target/47822
5489         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
5490         tree so we can get save the type.
5491         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
5492         for CFString instead of trying to use past the end of the builtins.
5493         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
5494         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
5495         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
5496         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
5497         Rename to darwin_builtin_cfstring.
5498         (darwin_init_cfstring_builtins): Return the built type.
5499
5500 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
5501
5502         PR target/47840
5503         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
5504         (_mm256_insert_epi64): Use _mm_insert_epi64.
5505
5506 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
5507
5508         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5509         * config/stormy16/stormy16-protos.h
5510         (xstormy16_mode_dependent_address_p): Remove.
5511         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
5512         Make static. Change return type to bool. Change argument type to
5513         const_rtx. Remove dead code.
5514         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5515
5516 2011-02-21  Richard Guenther  <rguenther@suse.de>
5517
5518         PR lto/47820
5519         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5520         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5521         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
5522         TUs context.
5523         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5524         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5525
5526 2011-02-20  Richard Guenther  <rguenther@suse.de>
5527
5528         PR lto/47822
5529         * tree.c (free_lang_data_in_decl): Clean builtins from
5530         the TU decl BLOCK_VARS.
5531
5532 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
5533
5534         PR debug/47620
5535         PR debug/47630
5536         * haifa-sched.c (fix_tick_ready): Skip tick computation
5537         for debug insns.
5538
5539 2011-02-19  Richard Guenther  <rguenther@suse.de>
5540
5541         PR lto/47647
5542         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5543         Remove lazy BLOCK_VARS streaming.
5544         (lto_input_ts_block_tree_pointers): Likewise.
5545         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5546
5547 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
5548
5549         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
5550
5551 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
5552
5553         * config/i386/biarch32.h, config/i386/mach.h,
5554         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
5555
5556 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
5557
5558         PR target/47800
5559         * config/i386/i386.md (peephole2 for shift and plus): Use
5560         operands[1] original mode in the first insn.
5561
5562 2011-02-18  Mike Stump  <mikestump@comcast.net>
5563
5564         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
5565
5566 2011-02-18  Jan Hubicka  <jh@suse.cz>
5567
5568         PR middle-end/47788
5569         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
5570         to zero when the function is not inlinable at all.
5571
5572 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5573
5574         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
5575         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5576         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
5577         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
5578         * config/pa/t-pa64: Likewise.
5579         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5580
5581 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
5582
5583         PR driver/47787
5584         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
5585
5586 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5587
5588         PR target/47792
5589         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
5590
5591 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
5592
5593         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5594         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
5595         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
5596         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5597         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
5598         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
5599         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
5600         m32r_load_postinc_p, m32r_store_preinc_predec_p,
5601         m32r_legitimate_address_p): New functions.
5602         * config/m32r/constraints.md (constraint "S"): Don't use
5603         STORE_PREINC_PREDEC_P.
5604         (constraint "U"): Don't use LOAD_POSTINC_P.
5605
5606 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
5607
5608         PR rtl-optimization/46178
5609         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
5610         compute ira_hard_regno_cover_class[].
5611
5612 2011-02-18  Richard Guenther  <rguenther@suse.de>
5613
5614         PR lto/47798
5615         * lto-streamer.h (lto_global_var_decls): Declare.
5616         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
5617         statics for global var processing.
5618
5619 2011-02-18  Richard Guenther  <rguenther@suse.de>
5620
5621         PR tree-optimization/47737
5622         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
5623         edge dominance check.
5624
5625 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
5626
5627         PR debug/47780
5628         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
5629         avoid invalid rtx sharing.
5630
5631 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
5632
5633         * doc/cpp.texi (Obsolete Features): Add background on the
5634         origin of assertions.
5635
5636 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
5637
5638         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
5639         objc_abi == 2.
5640         * config/darwin.c (output_objc_section_asm_op): Added support for
5641         ABI v1 and v2.
5642         (is_objc_metadata): New.
5643         (darwin_objc2_section): New.
5644         (darwin_objc1_section): New.
5645         (machopic_select_section): Added support for ABI v1 and v2.
5646         (darwin_emit_objc_zeroed): New.
5647         (darwin_output_aligned_bss): Detect objc metadata and treat it
5648         appropriately.
5649         (darwin_asm_output_aligned_decl_common): Same.
5650         (darwin_asm_output_aligned_decl_local): Same.
5651         * config/darwin-sections.def: Updated for ABI v1 and v2.
5652         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
5653         compiling Objective-C code for the NeXT runtime, default to using
5654         ABI version 0 for 32-bit, and version 2 for 64-bit.
5655
5656 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
5657
5658         * common.opt (optimize_fast): New Variable.
5659         * opts.c (default_options_optimization): Use opts->x_optimize_fast
5660         instead of local variable ofast.
5661
5662 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
5663
5664         * doc/invoke.texi (fobjc-abi-version): Documented.
5665         (fobjc-nilcheck): Documented.
5666         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
5667         version.
5668
5669 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
5670
5671         PR driver/47390
5672         * common.opt (export-dynamic): New Driver option.
5673         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
5674
5675 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
5676
5677         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
5678
5679 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
5680             Jan Hubicka  <jh@suse.cz>
5681
5682         PR debug/47106
5683         PR debug/47402
5684         * cfgexpand.c (account_used_vars_for_block): Remove.
5685         (estimated_stack_frame_size): Use referenced vars.
5686         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
5687         that were referenced in the original function.  Test src_fn
5688         rather than cfun.  Drop redundant get_var_ann.
5689         (setup_one_parameter): Drop redundant get_var_ann.
5690         (declare_return_variable): Likewise.
5691         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
5692         (copy_arguments_for_versioning): Drop redundant get_var_ann.
5693         * ipa-inline.c (compute_inline_parameters): Do not compute
5694         disregard_inline_limits here.
5695         (compute_inlinable_for_current, pass_inlinable): New.
5696         (pass_inline_parameters): Require PROP_referenced_vars.
5697         * cgraphunit.c (cgraph_process_new_functions): Don't run
5698         compute_inline_parameters explicitly unless function is in SSA form.
5699         (cgraph_analyze_function): Set .disregard_inline_limits.
5700         * tree-sra.c (convert_callers): Compute inliner parameters
5701         only for functions already in SSA form.
5702
5703 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
5704
5705         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
5706         -mlittle-endian-data.
5707
5708 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
5709
5710         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
5711         -mno-fpu, not -fpu and -no-fpu.
5712         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
5713         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
5714
5715 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
5716
5717         PR target/43653
5718         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
5719         input reload with PLUS RTX.
5720
5721 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
5722
5723         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
5724         of InverseVar(MDMX).
5725
5726 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
5727
5728         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
5729         --m4-340.
5730
5731 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
5732
5733         * config/mn10300/mn10300.opt (mno-crt0): New.
5734
5735 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
5736
5737         * config/m68k/uclinux.opt (static-libc): New Driver option.
5738
5739 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
5740
5741         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
5742
5743 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
5744
5745         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
5746         %{muser-extend-enabled}.
5747
5748 2011-02-16  Richard Guenther  <rguenther@suse.de>
5749
5750         PR tree-optimization/47738
5751         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
5752         the TODO from tree_predictive_commoning.
5753
5754 2011-02-15  Jeff Law  <law@redhat.com>
5755
5756         Revert
5757         2011-01-25  Jeff Law  <law@redhat.com>
5758
5759         PR rtl-optimization/37273
5760         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5761         handle them like argument loads from stack slots.  Do not double
5762         count memory for memory constants and argument loads from stack slots.
5763
5764 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
5765
5766         PR middle-end/47725
5767         * combine.c (cant_combine_insn_p): Revert the last change.
5768
5769 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5770
5771         PR target/47755
5772         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
5773         mode for vector constants.  Remove code that checks for TImode.
5774
5775 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5776
5777         PR debug/47106
5778         PR debug/47402
5779         * cgraph.h (compute_inline_parameters): Return void.
5780         * ipa-inline.c (compute_inline_parameters): Adjust.
5781
5782 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5783
5784         PR debug/47106
5785         PR debug/47402
5786         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
5787         rather than decl.
5788         * cfgexpand.c (estimated_stack_frame_size): Likewise.
5789         * ipa-inline.c (compute_inline_parameters): Adjust.
5790
5791 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5792
5793         PR debug/47106
5794         PR debug/47402
5795         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
5796         Adjust all users.  Pass FN to...
5797         * tree-flow-inline.h (first_referenced_var): ... this.  Add
5798         fn argument.
5799         * ipa-struct-reorg.c: Adjust.
5800         * tree-dfa.c: Adjust.
5801         * tree-into-ssa.c: Adjust.
5802         * tree-sra.c: Adjust.
5803         * tree-ssa-alias.c: Adjust.
5804         * tree-ssa-live.c: Adjust.
5805         * tree-ssa.c: Adjust.
5806         * tree-ssanames.c: Adjust.
5807         * tree-tailcall.c: Adjust.
5808
5809 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
5810
5811         PR debug/47106
5812         PR debug/47402
5813         * tree-flow.h (referenced_var_lookup): Add fn parameter.
5814         Adjust all callers.
5815         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
5816         * tree-flow-inline.h: Adjust.
5817         * gimple-pretty-print.c: Adjust.
5818         * tree-into-ssa.c: Adjust.
5819         * tree-ssa.c: Adjust.
5820         * cfgexpand.c: Adjust.
5821
5822 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
5823
5824         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
5825         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5826         (EXTRA_CONSTRAINT): Delete.
5827         * config/iq2000/constraints.md: New file.
5828         * config/iq2000/iq2000.md: Include it.
5829         (define_insn ""): Delete.
5830         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
5831         unsupported constraint letters from patterns.
5832         (call_value, call_value_internal1): Likewise.
5833         (call_value_multiple_internal1): Likewise.
5834
5835 2011-02-15  Nick Clifton  <nickc@redhat.com>
5836
5837         * config/mn10300/mn10300.c: Include tm-constrs.h.
5838         (struct liw_data): New data structure describing an LIW candidate
5839         instruction.
5840         (extract_bundle): Use struct liw_data.  Allow small integer
5841         operands for some instructions.
5842         (check_liw_constraints): Use struct liw_data.  Remove swapped
5843         parameter.  Add comments describing the checks.  Fix bug when
5844         assigning the source of liw1 to the source of liw2.
5845         (liw_candidate): Delete.  Code moved into extract_bundle.
5846         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
5847         before swapping.
5848         * config/mn10300/predicates.md (liw_operand): New predicate.
5849         Allows registers and small integer constants.
5850         * config/mn10300/constraints.md (O): New constraint.  Accetps
5851         integers in the range -8 to +7 inclusive.
5852         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
5853         for moving a small integer into a register.  Give this alternative
5854         LIW attributes.
5855         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
5856         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
5857         using the J,K,L and M constraints,
5858         (liw): Remove SI mode on second operands to allow for HI and QI
5859         mode values.
5860         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
5861         instruction.
5862
5863 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         PR middle-end/47725
5866         * combine.c (cant_combine_insn_p): Check zero/sign extended
5867         hard registers.
5868
5869 2011-02-15  Richard Guenther  <rguenther@suse.de>
5870
5871         PR tree-optimization/47743
5872         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
5873         for a non-type-compatible VN lookup bail out.
5874
5875 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
5876
5877         * config/fr30/constraints.md: New file.
5878         * config/fr30/fr30.md: Include it.
5879         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
5880         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5881         (EXTRA_CONSTRAINT): Delete.
5882
5883 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
5884
5885         * config/frv/constraints.md: New file.
5886         * config/frv/predicates.md: Include it.
5887         * config/frv/frv.c (reg_class_from_letter): Delete.
5888         (frv_option_override): Don't initialize it.
5889         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
5890         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
5891         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
5892         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5893         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
5894         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5895         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
5896         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
5897         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
5898         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
5899         (REG_CLASS_FROM_CONSTRAINT): Delete.
5900
5901 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
5902
5903         PR middle-end/47581
5904         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
5905         if frame size is 0 in a leaf function.
5906
5907 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5908
5909         PR pch/14940
5910         * config/alpha/host-osf.c: New file.
5911         * config/alpha/x-osf: New file.
5912         * config.host (alpha*-dec-osf*): Use it.
5913
5914 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
5915
5916         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5917         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5918         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5919         (rx_mode_dependent_address_p): ...this. Make static. Change argument
5920         type to const_rtx.
5921         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5922
5923 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
5924
5925         * config/stormy16/constraints.md: New file.
5926         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5927         Use satisfies_constraint_Q and satisfies_constraint_R.
5928         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5929         Delete.
5930         (xstormy16_legitiamte_address_p): Declare.
5931         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5932         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5933         (EXTRA_CONSTRAINT): Delete.
5934         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5935         Un-staticize.
5936         (xstormy16_extra_constraint_p): Delete.
5937
5938 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
5939
5940         PR tree-optimization/46494
5941         * loop-unroll.c (split_edge_and_insert): Adjust comment.
5942         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5943         (pass_rtl_loop_done): Add TODO_verify_flow.
5944         * fwprop.c (pass_rtl_fwprop): Likewise.
5945         * modulo-sched.c (pass_sms): Likewise.
5946         * tree-ssa-dom.c (pass_dominator): Likewise.
5947         * tree-ssa-loop-ch.c (pass_ch): Likewise.
5948         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5949         (pass_tree_loop_done): Likewise.
5950         * tree-ssa-pre.c (execute_pre): Likewise.
5951         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5952         * tree-ssa-sink.c (pass_sink_code): Likewise.
5953         * tree-vrp.c (pass_vrp): Likewise.
5954
5955 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
5956
5957         * config/v850/constraints.md: New file.
5958         * config/v850/v850.md: Include it.
5959         * config/v850/predicates.md (reg_or_0_operand): Use
5960         satisfies_constraint_G.
5961         (special_symbolref_operand): Use satisfies_constraint_K.
5962         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5963         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5964         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5965         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5966         (EXTRA_CONSTRAINT): Delete.
5967         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5968         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5969         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
5970
5971 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
5972
5973         PR target/47696
5974         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5975         description.
5976
5977 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
5978
5979         * config/mcore/constraints.md: New file.
5980         * config/mcore/mcore.md: Include it.
5981         * config/mcore/mcore.c (reg_class_from_letter): Delete.
5982         * config/mcore/mcore.h (reg_class_from_letter): Delete.
5983         (REG_CLASS_FROM_LETTER): Delete.
5984         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5985         insn_const_int_ok_for_constraint.
5986         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5987         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5988         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5989         (EXTRA_CONSTRAINT): Delete.
5990
5991 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5992
5993         PR ada/41929
5994         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5995         (IS_SIGHANDLER): Define.
5996         (sparc64_is_sighandler): New function, split off from
5997         sparc64_fallback_frame_state.
5998         (sparc_is_sighandler): New function, split off from
5999         sparc_fallback_frame_state.
6000         (sparc64_fallback_frame_state): Merge with ...
6001         (sparc_fallback_frame_state): ... this into ...
6002         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
6003         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
6004         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
6005         stack instead of hardcoded offsets.
6006
6007 2011-02-14  Andriy Gapon  <avg@freebsd.org>
6008
6009         PR target/45808
6010         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
6011
6012 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6013
6014         * configure: Regenerate.
6015
6016 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
6017
6018         PR driver/45731
6019         * gcc.c (asm_options): Correct spec matching --target-help.
6020
6021 2011-02-12  Martin Jambor  <mjambor@suse.cz>
6022
6023         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
6024         to gimple call error.
6025
6026 2011-02-12  Mike Stump  <mikestump@comcast.net>
6027
6028         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
6029         comments in backslash regions.
6030
6031 2011-02-12  Mike Stump  <mikestump@comcast.net>
6032             Jakub Jelinek  <jakub@redhat.com>
6033             Iain Sandoe  <iains@gcc.gnu.org>
6034
6035         PR target/47324
6036         * dwarf2out.c (output_cfa_loc): When required, apply the
6037         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
6038         (output_loc_sequence): Likewise.
6039         (output_loc_operands_raw): Likewise.
6040         (output_loc_sequence_raw): Likewise.
6041         (output_cfa_loc): Likewise.
6042         (output_loc_list): Suppress register number adjustment when
6043         calling output_loc_sequence()
6044         (output_die): Likewise.
6045
6046 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
6047
6048         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6049         Remove macros.
6050         * config/xtensa/xtensa.c (xtensa_register_move_cost,
6051         xtensa_memory_move_cost): New functions.
6052         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
6053
6054 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
6055
6056         PR lto/47225
6057         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
6058         in the current directory.
6059         * configure: Rebuilt.
6060
6061 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
6062
6063         * config/darwin.c (darwin_override_options): Add a hunk missed
6064         from the commit of r168571.  Trim comment line lengths and
6065         correct indents of the preceding block.
6066
6067 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
6068
6069         * gcc.c (driver_handle_option): Concatenate the argument to -F with
6070         the switch.
6071
6072 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
6073
6074         * common.opt (nostartfiles): New Driver option.
6075
6076 2011-02-11  Xinliang David Li  <davidxl@google.com>
6077
6078         PR tree-optimization/47707
6079         * tree-chrec.c (convert_affine_scev): Keep type precision.
6080
6081 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
6082
6083         PR tree-optimization/47420
6084         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
6085
6086 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
6087
6088         PR rtl-optimization/47614
6089         * rtl.h (check_for_inc_dec): Declare.
6090         * dse.c (check_for_inc_dec): Externalize...
6091         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
6092         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
6093
6094 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
6095
6096         PR driver/47678
6097         * gcc.c (main): Do not compile inputs if there were errors in
6098         option handling.
6099         * opts-common.c (read_cmdline_option): Check for wrong language
6100         after other error checks.
6101
6102 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
6103
6104         * cgraph.c: Fix comment typos.
6105         * cgraph.h: Likewise.
6106         * cgraphunit.c: Likewise.
6107         * ipa-cp.c: Likewise.
6108         * ipa-inline.c: Likewise.
6109         * ipa-prop.c: Likewise.
6110         * ipa-pure-const.c: Likewise.
6111         * ipa-ref.c: Likewise.
6112         * ipa-reference.c: Likewise.
6113
6114 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
6115
6116         PR debug/47684
6117         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
6118
6119 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6120
6121         PR testsuite/47400
6122         * doc/sourcebuild.texi (Require Support): Document
6123         dg-require-ascii-locale.
6124
6125 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
6126
6127         * doc/lto.texi (Write summary): Fix missing parentheses.
6128
6129 2011-02-10  DJ Delorie  <dj@redhat.com>
6130
6131         * config/m32c/m32c.c (m32c_option_override): Disable
6132         -fcombine-stack-adjustments until flag value tracking and compare
6133         optimization can be rewritten.
6134
6135 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
6136
6137         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
6138         PROCESSOR_POWER7.
6139         (PROCESSOR_DEFAULT64): Likewise.
6140
6141 2011-02-10  Richard Henderson  <rth@redhat.com>
6142
6143         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
6144         change from 2011-02-03.
6145         * config/rx/rx.c (flags_from_code): Likewise.
6146         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
6147         is valid, n/pz otherwise.
6148         (rx_select_cc_mode): Return CCmode if Y is not zero.
6149
6150 2011-02-10  Richard Guenther  <rguenther@suse.de>
6151
6152         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
6153
6154 2011-02-10  Richard Guenther  <rguenther@suse.de>
6155
6156         PR tree-optimization/47677
6157         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
6158
6159 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
6160
6161         PR target/47665
6162         * combine.c (make_compound_operation): Only change shifts into
6163         multiplication for SCALAR_INT_MODE_P.
6164
6165 2011-02-10  Jie Zhang  <jie@codesourcery.com>
6166
6167         PR testsuite/47622
6168         Revert
6169         2011-02-05  Jie Zhang  <jie@codesourcery.com>
6170         PR debug/42631
6171         * web.c (entry_register): Don't clobber the number of the
6172         first uninitialized reference in used[].
6173
6174 2011-02-09  Richard Guenther  <rguenther@suse.de>
6175
6176         PR tree-optimization/47664
6177         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
6178         all edges again.
6179
6180 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
6181
6182         PR target/46481
6183         PR target/47032
6184         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
6185         PROCESSOR_POWER7.
6186         (PROCESSOR_DEFAULT64): Same.
6187         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
6188
6189 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6190
6191         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
6192
6193 2011-02-09  Martin Jambor  <mjambor@suse.cz>
6194
6195         PR middle-end/45505
6196         * tree-sra.c (struct access): New flags grp_scalar_read and
6197         grp_scalar_write.  Changed description of assignment read and write
6198         flags.
6199         (dump_access): Dump new flags, reorder all of them.
6200         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
6201         to detect multiple scalar reads.
6202         (analyze_access_subtree): Use the new scalar read write flags instead
6203         of the old flags.  Adjusted comments.
6204
6205 2011-02-08  DJ Delorie  <dj@redhat.com>
6206
6207         PR target/47548
6208         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
6209         patterns.
6210
6211 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6212
6213         * config/m68k/uclinux.opt: New.
6214         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
6215
6216 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6217
6218         * config/cris/elf.opt (sim): New Driver option.
6219
6220 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6221
6222         * config/xtensa/elf.opt: New.
6223         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
6224
6225 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6226
6227         * config/vax/elf.opt: New.
6228         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
6229
6230 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6231
6232         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
6233
6234 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6235
6236         * config/gnu-user.opt: New.
6237         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6238         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
6239         *-*-uclinux*): Use gnu-user.opt.
6240
6241 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
6242
6243         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
6244         * config/i386/gnu.h (CPP_SPEC): Likewise.
6245
6246 2011-02-08  Ian Lance Taylor  <iant@google.com>
6247
6248         * common.opt (fcx-limited-range): Add SetByCombined flag.
6249         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
6250         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
6251         (fassociative-math, freciprocal-math): Likewise.
6252         (funsafe-math-optimizations): Likewise.
6253         * opth-gen.awk: Handle SetByCombined.
6254         * optc-gen.awk: Likewise.
6255         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
6256         (set_unsafe_math_optimizations_flags): Likewise.
6257         * doc/options.texi (Option properties): Document SetByCombined.
6258
6259 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6260
6261         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
6262         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
6263         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
6264         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
6265         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
6266
6267 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
6268
6269         PR tree-optimization/46834
6270         PR tree-optimization/46994
6271         PR tree-optimization/46995
6272         * graphite-sese-to-poly.c (used_outside_reduction): New.
6273         (detect_commutative_reduction): Call used_outside_reduction.
6274         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
6275         translate_scalar_reduction_to_array only when at least one
6276         loop-phi/close-phi tuple has been detected.
6277
6278 2011-02-08  Richard Guenther  <rguenther@suse.de>
6279
6280         PR middle-end/47639
6281         * tree-vect-generic.c (expand_vector_operations_1): Update
6282         stmts here ...
6283         (expand_vector_operations): ... not here.  Cleanup EH info
6284         and the CFG if required.
6285
6286 2011-02-08  Richard Guenther  <rguenther@suse.de>
6287
6288         PR tree-optimization/47641
6289         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
6290         require type compatibility.
6291
6292 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6293
6294         * gimple-low.c (lower_function_body): Don't remove the location of
6295         the return statement here.
6296         (lower_gimple_return): Do it here instead but only if the return
6297         statement is actually used twice.
6298
6299 2011-02-08  Richard Guenther  <rguenther@suse.de>
6300
6301         PR tree-optimization/47632
6302         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
6303         unused up_to_stmt parameter, return whether cfg-cleanup is
6304         necessary, remove EH info properly.
6305         (forward_propagate_into_gimple_cond): Adjust caller.
6306         (forward_propagate_into_cond): Likewise.
6307         (forward_propagate_comparison): Likewise.
6308         (tree_ssa_forward_propagate_single_use_vars): Make
6309         forward_propagate_comparison case similar to the two others.
6310
6311 2011-02-08  Nick Clifton  <nickc@redhat.com>
6312
6313         * config/mn10300/mn10300.opt (mliw): New command line option.
6314         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
6315         (liw_bundling): New automaton.
6316         (liw): New attribute.
6317         (liw_op): New attribute.
6318         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
6319         (movsi_internal): Add LIW attributes.
6320         (andsi3): Likewise.
6321         (iorsi3): Likewise.
6322         (xorsi3): Likewise.
6323         (addsi3): Separate register and immediate alternatives.
6324         Add LIW attributes.
6325         (subsi3): Likewise.
6326         (cmpsi): Likewise.
6327         (aslsi3): Likewise.
6328         (lshrsi3): Likewise.
6329         (ashrsi3): Likewise.
6330         (liw): New pattern.
6331         * config/mn10300/mn10300.c (liw_op_names): New
6332         (mn10300_print_operand): Handle 'W' operand descriptor.
6333         (extract_bundle): New function.
6334         (check_liw_constraints): New function.
6335         (liw_candidate): New function.
6336         (mn10300_bundle_liw): New function.
6337         (mn10300_reorg): New function.
6338         (TARGET_MACHINE_DEPENDENT_REORG): Define.
6339         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
6340         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
6341         __LIW__ or __NO_LIW__.
6342         * doc/invoke.texi: Describe the -mliw command line option.
6343
6344 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6345
6346         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
6347         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6348         pthread_mutex_unlock): Remove.
6349         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
6350         * config/pa/t-pa64: Likewise.
6351         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
6352         shared libc if not linking against libpthread.
6353         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6354
6355 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
6356
6357         PR target/47558
6358         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
6359         on 10.6 and later to ensure that we always use the unwinder from
6360         the system.  Only add -no_compact_unwind when tarteting darwin
6361         10.6 or later.
6362
6363 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
6364
6365         PR target/46997
6366         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
6367         (vec_interleave_lowv2sf): Ditto.
6368         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
6369         (vec_extract_oddv2sf): Ditto.
6370
6371 2011-02-07  Mike Stump  <mikestump@comcast.net>
6372
6373         PR target/42333
6374         Add __ieee_divdc3 entry point.
6375         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
6376         entry point.
6377         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
6378         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
6379         * config/darwin.c (darwin_rename_builtins): Add.
6380         * config/darwin-protos.h (darwin_rename_builtins): Add.
6381
6382 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
6383
6384         PR target/47636
6385         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
6386         for the condition.
6387
6388 2011-02-07  Mike Stump  <mikestump@comcast.net>
6389
6390         * config/darwin.opt (mmacosx-version-min): Update default OS version.
6391
6392 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
6393
6394         PR target/47534
6395         * config/avr/libgcc.S (exit): Move .endfunc
6396
6397 2011-02-07  Richard Guenther  <rguenther@suse.de>
6398
6399         PR tree-optimization/47615
6400         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
6401         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
6402         (run_scc_vn): Initialize it.
6403         (visit_reference_op_load): Use it.
6404         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
6405
6406 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6407
6408         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
6409         DImode trapping arithmetic libfuncs.
6410
6411 2011-02-07  Richard Guenther  <rguenther@suse.de>
6412
6413         PR tree-optimization/47621
6414         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
6415         two duplicates ...
6416         (execute_update_addresses_taken): ... here.  Make it more
6417         conservative in what we accept.
6418
6419 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
6420
6421         * config/sparc/freebsd.h (ASM_SPEC): Define.
6422         * config/sparc/vxworks.h (ASM_SPEC): Define.
6423
6424 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
6425
6426         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6427
6428 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
6429
6430         * doc/invoke.texi: Remove reference to compiler internals from
6431         user documentation.
6432
6433         * reg-notes.def: Remove REG_VALUE_PROFILE.
6434         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
6435
6436 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
6437
6438         PR middle-end/47610
6439         * varasm.c (default_section_type_flags): If decl is NULL,
6440         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
6441
6442 2011-02-05  Jie Zhang  <jie@codesourcery.com>
6443
6444         PR debug/42631
6445         * web.c (entry_register): Don't clobber the number of the
6446         first uninitialized reference in used[].
6447
6448 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
6449
6450         PR tree-optimization/46194
6451         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
6452         (build_classic_dist_vector_1): Do not represent classic distance
6453         vectors when the access functions are variating in different loops.
6454
6455 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
6456
6457         * config/mips/iris6.opt: New.
6458         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
6459
6460 2011-02-04  Richard Henderson  <rth@redhat.com>
6461             Steve Ellcey  <sje@cup.hp.com>
6462
6463         PR target/46997
6464         * config/ia64/predicates.md (mux1_brcst_element): New.
6465         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
6466         * config/ia64/ia64.c (ia64_unpack_assemble): New.
6467         (ia64_unpack_sign): New.
6468         (ia64_expand_unpack): Rewrite using new routines.
6469         (ia64_expand_widen_sum): Ditto.
6470         (ia64_expand_dot_prod_v8qi): Ditto.
6471         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
6472         routines, add endian check.
6473         (pmpy2_even): Rename from pmpy2_r, add endian check.
6474         (pmpy2_odd): Rename from pmpy2_l, add endian check.
6475         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
6476         (vec_widen_smult_hi_v4hi): Ditto.
6477         (vec_widen_umult_lo_v4hi): Ditto.
6478         (vec_widen_umult_hi_v4hi): Ditto.
6479         (mulv2si3): Change endian checks.
6480         (sdot_prodv4hi): Rewrite with new calls.
6481         (udot_prodv4hi): New.
6482         (vec_pack_ssat_v4hi): Add endian check.
6483         (vec_pack_usat_v4hi): Ditto.
6484         (vec_pack_ssat_v2si): Ditto.
6485         (max1_even): Rename from max1_r, add endian check.
6486         (max1_odd): Rename from max1_l, add endian check.
6487         (*mux1_rev): Format change.
6488         (*mux1_mix): Ditto.
6489         (*mux1_shuf): Ditto.
6490         (*mux1_alt): Ditto.
6491         (*mux1_brcst_v8qi): Use new predicate.
6492         (vec_extract_evenv8qi): Remove endian check.
6493         (vec_extract_oddv8qi): Ditto.
6494         (vec_interleave_lowv4hi): Format change.
6495         (vec_interleave_highv4hi): Ditto.
6496         (mix2_even): Rename from mix2_r, add endian check.
6497         (mix2_odd): Rename from mux2_l, add endian check.
6498         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
6499         (vec_extract_evenodd_helper): Format change.
6500         (vec_extract_evenv4hi): Remove endian check.
6501         (vec_extract_oddv4hi): Remove endian check.
6502         (vec_interleave_lowv2si): Format change.
6503         (vec_interleave_highv2si): Format change.
6504         (vec_initv2si): Remove endian check.
6505         (vecinit_v2si): Add endian check.
6506         (reduc_splus_v2sf): Add endian check.
6507         (reduc_smax_v2sf): Ditto.
6508         (reduc_smin_v2sf): Ditto.
6509         (vec_initv2sf): Remove endian check.
6510         (fpack): Add endian check.
6511         (fswap): Add endian check.
6512         (vec_interleave_highv2sf): Add endian check.
6513         (vec_interleave_lowv2sf): Add endian check.
6514         (fmix_lr): Add endian check.
6515         (vec_setv2sf): Format change.
6516         (*vec_extractv2sf_0_be): Use shift to extract operand.
6517         (*vec_extractv2sf_1_be): New.
6518         (vec_pack_trunc_v4hi): Add endian check.
6519         (vec_pack_trunc_v2si): Format change.
6520
6521 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
6522
6523         PR inline-asm/23200
6524         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
6525         do bb, locus and block comparison and disallow loads if it is not set.
6526         (stmt_is_replaceable_p): New function.
6527         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
6528         callers.
6529         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
6530         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
6531         SSA_NAME_DEF_STMT.
6532         * tree-flow.h (stmt_is_replaceable_p): New prototype.
6533
6534 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
6535
6536         * config/rs6000/xilinx.opt: New.
6537         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
6538
6539 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
6540
6541         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
6542
6543 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
6544
6545         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
6546         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6547         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
6548         secondary_reload_info, xtensa_secondary_reload): Remove.
6549         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
6550         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6551         (xtensa_preferred_reload_class): Make static. Change return and
6552         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
6553         Use CONST_DOUBLE_P predicate.
6554         (xtensa_preferred_output_reload_class): New function.
6555         (xtensa_secondary_reload): Make static.
6556
6557 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
6558
6559         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
6560         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
6561         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
6562
6563 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
6564
6565         PR middle-end/31490
6566         * output.h (SECTION_RELRO): Define.
6567         (SECTION_MACH_DEP): Adjust.
6568         (get_variable_section): New prototype.
6569         * varpool.c (varpool_finalize_named_section_flags): New function.
6570         (varpool_assemble_pending_decls): Call it.
6571         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
6572         * cgraphunit.c (cgraph_output_in_order): Call
6573         varpool_finalize_named_section_flags.
6574         * varasm.c (get_section): Allow section flags conflicts between
6575         relro and read-only sections if the section hasn't been declared yet.
6576         Set SECTION_OVERRIDE after diagnosing section type conflict.
6577         (get_variable_section): No longer static.
6578         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
6579         readonly sections that need relocations.
6580         (decl_readonly_section_1): New function.
6581         (decl_readonly_section): Use it.
6582
6583         Revert:
6584         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
6585                     Steve Ellcey  <sje@cup.hp.com>
6586
6587         PR middle-end/31490
6588         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
6589         if section attribute used.
6590
6591 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
6592
6593         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
6594         * config/darwin.c (SECTION_NO_ANCHOR): Define.
6595         (darwin_init_sections): Remove assertion.
6596
6597 2011-02-03  Nick Clifton  <nickc@redhat.com>
6598
6599         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
6600         lt and ge.
6601         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6602         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
6603         instead of "n" and "pz".
6604         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
6605         CC_FLAG_S.
6606
6607 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
6608
6609         PR target/47312
6610         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
6611         fma, expand FMA_EXPR as fma{,f,l} call.
6612
6613         PR lto/47274
6614         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
6615         copy them into a unsigned char variable and pass address of it to
6616         lto_output_data_stream.
6617
6618         PR target/47564
6619         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
6620         around backend_init_target and lang_dependent_init_target calls.
6621         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
6622         (verify_cgraph_node): Don't call set_cfun here.  Use
6623         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
6624         Set error_found for incorrectly represented calls to thunks.
6625
6626 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
6627
6628         PR debug/43092
6629         PR rtl-optimization/43494
6630         * rtl.h (for_each_inc_dec_fn): New type.
6631         (for_each_inc_dec): Declare.
6632         * rtlanal.c (struct for_each_inc_dec_ops): New type.
6633         (for_each_inc_dec_find_inc_dec): New fn.
6634         (for_each_inc_dec_find_mem): New fn.
6635         (for_each_inc_dec): New fn.
6636         * dse.c (struct insn_size): Remove.
6637         (replace_inc_dec, replace_inc_dec_mem): Remove.
6638         (emit_inc_dec_insn_before): New fn.
6639         (check_for_inc_dec): Use it, along with for_each_inc_dec.
6640         (canon_address): Pass mem modes to cselib_lookup.
6641         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
6642         (cselib_lookup_from_insn): Likewise.
6643         (cselib_subst_to_values): Likewise.
6644         * cselib.c (find_slot_memmode): New var.
6645         (cselib_find_slot): New fn.  Use it instead of
6646         htab_find_slot_with_hash everywhere.
6647         (entry_and_rtx_equal_p): Use find_slot_memmode.
6648         (autoinc_split): New fn.
6649         (rtx_equal_for_cselib_p): Rename and implement in terms of...
6650         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
6651         Deal with autoinc.  Special-case recursion into MEMs.
6652         (cselib_hash_rtx): Likewise.
6653         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
6654         address and MEM modes.
6655         (cselib_subst_to_values): Add memmode, pass it on.
6656         Deal with autoinc.
6657         (cselib_lookup): Add memmode argument, pass it on.
6658         (cselib_lookup_from_insn): Add memmode.
6659         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
6660         (struct cselib_record_autoinc_data): New.
6661         (cselib_record_autoinc_cb): New fn.
6662         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
6663         mode to cselib_lookup.  Reset autoinced REGs here instead of...
6664         (cselib_process_insn): ... here.
6665         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
6666         to cselib_lookup.
6667         (add_uses): Likewise, also to cselib_subst_to_values.
6668         (add_stores): Likewise.
6669         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
6670         cselib_subst_to_values.
6671         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
6672         * gcse.c (do_local_cprop): Adjusted.
6673         * postreload.c (reload_cse_simplify_set): Adjusted.
6674         (reload_cse_simplify_operands): Adjusted.
6675         * sel-sched-dump (debug_mem_addr_value): Pass mode.
6676
6677 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
6678
6679         PR tree-optimization/45122
6680         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
6681         unsafe assumptions when there's more than one loop exit.
6682
6683 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6684
6685         PR target/47272
6686         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
6687         Document using vector double with the load/store builtins, and
6688         that the load/store builtins always use Altivec instructions.
6689
6690         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
6691         to use altivec memory instructions, even on VSX.
6692         (vector_altivec_store_<mode>): Ditto.
6693
6694         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
6695         function.
6696
6697         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6698         V2DF, V2DI support to load/store overloaded builtins.
6699
6700         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
6701         altivec load/store builtins for V2DF/V2DI types.
6702
6703         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6704         set avoid indexed addresses on power6 if -maltivec.
6705         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
6706         vector_altivec_load/vector_altivec_store builtins.
6707         (altivec_expand_st_builtin): Ditto.
6708         (altivec_expand_builtin): Add VSX memory builtins.
6709         (rs6000_init_builtins): Add V2DI types to internal types.
6710         (altivec_init_builtins): Add support for V2DF/V2DI altivec
6711         load/store builtins.
6712         (rs6000_address_for_altivec): Insure memory address is appropriate
6713         for Altivec.
6714
6715         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
6716         vec_vsx_ld and vec_vsx_st.
6717         (vsx_store_<mode>): Ditto.
6718
6719         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
6720         variables to hold long long types for VSX vector memory builtins.
6721         (RS6000_BTI_unsigned_long_long): Ditto.
6722         (long_long_integer_type_internal_node): Ditti.
6723         (long_long_unsigned_type_internal_node): Ditti.
6724
6725         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
6726         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
6727         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
6728
6729         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
6730         short cuts.
6731         (vec_vsx_st): Ditto.
6732
6733 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
6734
6735         * config/pa/pa-hpux10.opt: New.
6736         * config/hpux11.opt (pthread): New Driver option.
6737         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
6738         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
6739
6740 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
6741
6742         * config/ia64/vms.opt: New.
6743         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
6744
6745 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6746
6747         PR target/47580
6748         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
6749         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
6750         generator functions.
6751         (vsx_floatuns<VSi><mode>2): Ditto.
6752         (vsx_fix_trunc<mode><VSi>2): Ditto.
6753         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
6754
6755 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
6756
6757         * config/i386/djgpp.opt (posix): New Driver option.
6758
6759 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
6760
6761         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
6762         Move to the unsupported targets list.
6763
6764 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
6765
6766         PR rtl-optimization/47525
6767         * df-scan.c: Update copyright years.
6768         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
6769         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
6770
6771 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6772
6773         * config/i386/sysv4.h (TARGET_VERSION): Remove.
6774         (SUBTARGET_RETURN_IN_MEMORY): Remove.
6775         (ASM_OUTPUT_ASCII): Remove.
6776         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
6777
6778 2011-02-02  Jeff Law  <law@redhat.com>
6779
6780         PR middle-end/47543
6781         * reload.c (find_reloads_address): Handle reg+d address where both
6782         components are invalid by reloading the entire address.
6783
6784 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
6785             Richard Guenther  <rguenther@suse.de>
6786
6787         PR tree-optimization/40979
6788         PR bootstrap/47044
6789         * passes.c (init_optimization_passes): After LIM call copy_prop
6790         and DCE to clean up.
6791         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
6792
6793 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
6794
6795         PR tree-optimization/47576
6796         PR tree-optimization/47555
6797         * doc/invoke.texi (scev-max-expr-complexity): Documented.
6798         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6799         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
6800         * tree-scalar-evolution.c (follow_ssa_edge): Use
6801         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
6802
6803 2011-02-02  Richard Guenther  <rguenther@suse.de>
6804
6805         PR tree-optimization/47566
6806         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
6807
6808 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
6809
6810         PR debug/47106
6811         PR debug/47402
6812         * tree-inline.c (declare_return_variable): Remove unused caller
6813         variable.
6814
6815         PR debug/47106
6816         PR debug/47402
6817         * tree-flow-inline.h (clear_is_used, is_used_p): New.
6818         * cfgexpand.c (account_used_vars_for_block): Use them.
6819         * tree-nrv.c (tree_nrv): Likewise.
6820         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
6821         (dump_scope_block): Likewise.
6822         (remove_unused_locals): Likewise.
6823
6824         PR debug/47106
6825         PR debug/47402
6826         * tree-inline.c (declare_return_variable): Add result decl to
6827         local decls only once.
6828         * gimple-low.c (record_vars_into): Mark newly-created variables
6829         as referenced.
6830
6831 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
6832
6833         PR debug/47498
6834         PR debug/47501
6835         PR debug/45136
6836         PR debug/45130
6837         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6838         debug insns.
6839         (no_real_insns_p, schedule_block, set_priorities): Drop special
6840         treatment of boundary debug insns.
6841         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6842         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
6843         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6844         (BOUNDARY_DEBUG_INSN_P): Likewise.
6845         (SCHEDULE_DEBUG_INSN_P): Likewise.
6846         * sched-rgn.c (init_ready_list): Drop special treatment of
6847         boundary debug insns.
6848         * final.c (rest_of_clean_state): Clear notes' BB.
6849
6850 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6851
6852         * config/openbsd.opt (assert=): New Driver option.
6853
6854 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6855
6856         * config/i386/nto.opt: New.
6857         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
6858
6859 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6860
6861         * config/i386/netware.opt: New.
6862         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
6863
6864 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6865
6866         * config/interix.opt (posix): New Driver option.
6867
6868 2011-02-01  DJ Delorie  <dj@redhat.com>
6869
6870         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
6871
6872         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
6873         class for A0/A1.
6874
6875 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
6876
6877         PR tree-optimization/47561
6878         * toplev.c (process_options): Print the Graphite flags.  Add
6879         flag_loop_flatten to the list of options requiring Graphite.
6880
6881 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6882
6883         * config/i386/cygming.opt (posix): New Driver option.
6884
6885 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6886
6887         * config/arm/vxworks.opt: New.
6888         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
6889
6890 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
6891
6892         * config/alpha/elf.opt: New.
6893         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
6894         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
6895
6896 2011-02-01  Richard Guenther  <rguenther@suse.de>
6897
6898         PR tree-optimization/47559
6899         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
6900         store-motion on references that can throw.
6901
6902 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
6903
6904         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
6905         * tree-pass.h (TDF_CSELIB): New macro.
6906         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
6907         cselib_lookup): Check for it rather than for TDF_DETAILS.
6908
6909 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
6910
6911         PR driver/47547
6912         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6913         is HOST_BIT_BUCKET.
6914
6915         * opts.c (finish_options): Don't add x_aux_base_name if it is
6916         HOST_BIT_BUCKET.
6917
6918 2011-02-01  Richard Guenther  <rguenther@suse.de>
6919
6920         PR tree-optimization/47555
6921         Revert
6922         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
6923
6924         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6925
6926 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6927
6928         PR gcc/46692
6929         * config/lm32/t-lm32: Add multilib for all CPU options.
6930
6931 2011-02-01  Richard Guenther  <rguenther@suse.de>
6932
6933         PR tree-optimization/47541
6934         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6935         sure to have a field at offset zero.
6936
6937 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
6938
6939         * config/arc/arc.opt (EB, EL): New Driver options.
6940
6941 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
6942
6943         * config/alpha/osf5.opt: New.
6944         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6945
6946 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
6947
6948         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6949
6950 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
6951
6952         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6953         -floop-interchange.
6954         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6955         is an alias of -floop-interchange and that it requires the
6956         Graphite infrastructure.
6957         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6958         flag_loop_interchange based on the value of flag_tree_loop_linear.
6959
6960 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
6961             Richard Guenther  <rguenther@suse.de>
6962
6963         PR tree-optimization/47538
6964         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6965         type instead of r1type, except for comparisons.  For right
6966         shifts and comparisons punt if there are mismatches in
6967         sizetype vs. non-sizetype types.
6968
6969 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6970
6971         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6972         avx_runtime.
6973
6974 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6975
6976         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6977         version number.
6978         * configure: Regenerate.
6979
6980 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6981
6982         * configure.ac (gcc_cv_ld_static_option): Define.
6983         (gcc_cv_ld_dynamic_option): Define.
6984         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6985         instead.
6986         (HAVE_LD_STATIC_DYNAMIC): Update message.
6987         (LD_STATIC_OPTION): Define.
6988         (LD_DYNAMIC_OPTION): Define.
6989         * configure: Regenerate.
6990         * config.in: Regenerate.
6991         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6992         HAVE_LD_STATIC_DYNAMIC]: Use them.
6993
6994 2011-01-31  Nick Clifton  <nickc@redhat.com>
6995
6996         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6997         registers inside interrupt handlers if the handler is not a leaf
6998         function.
6999
7000 2011-01-31  Nick Clifton  <nickc@redhat.com>
7001
7002         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
7003         reg_renumber returning an INVALID_REGNUM.
7004
7005 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
7006
7007         PR libgcj/44341
7008         * doc/install.texi: Document host options discarded when cross
7009         configuring target libraries.
7010
7011 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
7012
7013         Reverted:
7014         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
7015         PR debug/45136
7016         PR debug/45130
7017         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7018         debug insns.
7019         (no_real_insns_p, schedule_block, set_priorities): Drop special
7020         treatment of boundary debug insns.
7021         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7022         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7023         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7024         (BOUNDARY_DEBUG_INSN_P): Likewise.
7025         (SCHEDULE_DEBUG_INSN_P): Likewise.
7026         * sched-rgn.c (init_ready_list): Drop special treatment of
7027         boundary debug insns.
7028         * final.c (rest_of_clean-state): Clear notes' BB.
7029
7030 2011-01-31  Alan Modra  <amodra@gmail.com>
7031
7032         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
7033         toc relative expressions as we do in print_operand_address.
7034
7035 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
7036
7037         * doc/extend.texi: Follow spelling conventions.
7038         * doc/invoke.texi: Fix a typo.
7039
7040 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
7041
7042         * config/hpux11.opt: New.
7043         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
7044         ia64*-*-hpux*): Use hpux11.opt.
7045
7046 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
7047
7048         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
7049         to tmake_file.
7050
7051 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
7052
7053         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
7054         support sites.
7055
7056 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
7057
7058         * doc/install.texi (Binaries): Remove outdated reference for
7059         Motorola 68HC11/68HC12 downloads.
7060
7061 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
7062
7063         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
7064         Drepper's paper.
7065
7066 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
7067
7068         PR bootstrap/47147
7069         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
7070         used by NetBSD.
7071
7072 2011-01-28  Ahmad Sharif  <asharif@google.com>
7073
7074         * value-prof.c (check_counter): Corrected error message.
7075
7076 2011-01-29  Jie Zhang  <jie@codesourcery.com>
7077
7078         * config/arm/arm.c (arm_legitimize_reload_address): New.
7079         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
7080         arm_legitimize_reload_address.
7081         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
7082
7083 2011-01-28  Ian Lance Taylor  <iant@google.com>
7084
7085         * godump.c (go_define): Ignore macros whose definitions include
7086         two adjacent operands.
7087
7088 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
7089
7090         PR target/42894
7091         * varasm.c (force_const_mem): Store copy of x in desc->constant
7092         instead of x itself.
7093         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
7094         itself into REG_EQUAL note.
7095
7096 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
7097
7098         * config/freebsd.opt (posix, rdynamic): New Driver options.
7099
7100 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7101
7102         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
7103         -Bstatic/-Bdynamic.
7104         * configure: Regenerate.
7105
7106 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
7107
7108         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
7109         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
7110
7111 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
7112
7113         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
7114         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
7115         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7116         (s390_preferred_reload_class): Make static. Change return and
7117         'rclass' argument type to reg_class_t.
7118
7119 2011-01-27  Jan Hubicka  <jh@suse.cz>
7120
7121         PR middle-end/46949
7122         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
7123         (process_function_and_variable_attributes): Check defined weakrefs.
7124
7125 2011-01-27  Martin Jambor  <mjambor@suse.cz>
7126
7127         PR tree-optimization/47228
7128         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
7129         build_ref_for_offset.
7130
7131 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7132
7133         * config/spu/spu-elf.h (ASM_SPEC): Remove.
7134
7135 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
7136
7137         PR rtl-optimization/46856
7138         * postreload.c (reload_combine_recognize_const_pattern): Do not
7139         separate cc0 setter and user on cc0 targets.
7140
7141 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
7142
7143         PR c/43082
7144         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
7145         passed a VOID_TYPE expression, immediately emit an error and
7146         return error_mark_node.
7147
7148 2011-01-26  Jeff Law  <law@redhat.com>
7149
7150         PR rtl-optimization/47464
7151         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
7152         rather than may_trap_p as needed.
7153
7154 2011-01-26  DJ Delorie  <dj@redhat.com>
7155
7156         PR rtl-optimization/46878
7157         * combine.c (insn_a_feeds_b): Check for the implicit cc0
7158         setter/user dependency as well.
7159
7160 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7161
7162         PR rtl-optimization/44469
7163         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
7164         after removing trivially dead basic blocks.
7165
7166 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7167
7168         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
7169         * config/frv/frv.h (LINK_SPEC): Likewise.
7170         * config/i386/netware.h (LINK_SPEC): Likewise.
7171         * config/m68k/linux.h (ASM_SPEC): Likewise.
7172         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
7173         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7174         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7175         * config/sparc/linux.h (ASM_SPEC): Likewise.
7176         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7177         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7178
7179 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7180
7181         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
7182         * config/frv/frv.h (ASM_SPEC): Likewise.
7183         * config/m68k/linux.h (ASM_SPEC): Likewise.
7184         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7185         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
7186         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7187         * config/sparc/linux.h (ASM_SPEC): Likewise.
7188         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7189         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7190
7191 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7192
7193         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
7194         * config/frv/frv.h (LINK_SPEC): Likewise.
7195         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7196
7197 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7198
7199         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
7200         * config/frv/frv.h (ASM_SPEC): Likewise.
7201         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
7202         * config/m68k/linux.h (ASM_SPEC): Likewise.
7203         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7204         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
7205         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7206         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
7207         * config/sparc/linux.h (ASM_SPEC): Likewise.
7208         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7209         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7210         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
7211
7212 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
7213
7214         PR target/46997
7215         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
7216         (*mux2): Ditto.
7217         (vec_extract_evenodd_help): Ditto.
7218         (vec_extract_evenv4hi): Ditto.
7219         (vec_extract_oddv4hi): Ditto.
7220         (vec_interleave_lowv2si): Ditto.
7221         (vec_interleave_highv2si): Ditto.
7222         (vec_extract_evenv2si): Ditto.
7223         (vec_extract_oddv2si: Ditto.
7224         (vec_pack_trunc_v2si): Ditto.
7225
7226 2011-01-22  Jan Hubicka  <jh@suse.cz>
7227
7228         PR target/47237
7229         * cgraph.h (cgraph_local_info): New field can_change_signature.
7230         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
7231         signature can change.
7232         (ipcp_estimate_growth): Call sequence simplify only if calle signature
7233         can change.
7234         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
7235         (cgraph_function_versioning): We can not change signature of functions
7236         that don't allow that.
7237         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
7238         (lto_input_node): Likewise.
7239         * ipa-inline.c (compute_inline_parameters): Compute
7240         local.can_change_signature.
7241         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
7242         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
7243         functions that can not change signature.
7244         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
7245         init_cumulative_args): Do not use local calling conventions
7246         for functions that can not change signature.
7247
7248 2011-01-22  Jan Hubicka  <jh@suse.cz>
7249
7250         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
7251
7252 2011-01-26  Richard Guenther  <rguenther@suse.de>
7253
7254         PR tree-optimization/47190
7255         * cgraphunit.c (process_common_attributes): New function.
7256         (process_function_and_variable_attributes): Use it.
7257
7258 2011-01-26  Richard Guenther  <rguenther@suse.de>
7259
7260         PR lto/47423
7261         * cgraphbuild.c (record_eh_tables): Record reference to personality
7262         function.
7263
7264 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
7265
7266         PR debug/45454
7267         * sel-sched.c (moveup_expr): Don't let debug insns prevent
7268         non-debug insns from moving up.
7269
7270 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7271
7272         PR target/40125
7273         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
7274         t-dlldir{,-x} fragment for build and add it to tmake_file.
7275         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7276         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
7277         * config/i386/t-dlldir: New file.
7278         (SHLIB_DLLDIR): Define.
7279         * config/i386/t-dlldir-x: New file.
7280         (SHLIB_DLLDIR): Define.
7281         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
7282         (SHLIB_INSTALL): Use it.
7283
7284 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
7285
7286         PR target/47246
7287         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
7288         lower bound of the allowed Thumb-2 coprocessor load/store
7289         index range to -256. Add explaining comment.
7290
7291 2011-01-25  Ian Lance Taylor  <iant@google.com>
7292
7293         * godump.c (go_define): Improve lexing of macro expansion to only
7294         accept expressions which match Go spec.
7295
7296 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7297
7298         PR c++/43601
7299         * tree.c (handle_dll_attribute): Handle it.
7300         * doc/extend.texi (@item dllexport): Mention it.
7301         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
7302
7303 2011-01-25  Ian Lance Taylor  <iant@google.com>
7304
7305         PR tree-optimization/26854
7306         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
7307         (decl_jump_unsafe): Move higher in file, with no other change.
7308         (bind): Set has_jump_unsafe_decl if appropriate.
7309         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
7310         (check_earlier_gotos): Likewise.
7311         (c_check_switch_jump_warnings): Likewise.
7312
7313 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
7314
7315         * doc/invoke.texi (Warning Options): Add missing hyphen.
7316         (-fprofile-dir): Minor grammatical fixes.
7317         (-fbranch-probabilities): Likewise.
7318
7319 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
7320
7321         PR debug/45136
7322         PR debug/45130
7323         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7324         debug insns.
7325         (no_real_insns_p, schedule_block, set_priorities): Drop special
7326         treatment of boundary debug insns.
7327         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7328         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7329         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7330         (BOUNDARY_DEBUG_INSN_P): Likewise.
7331         (SCHEDULE_DEBUG_INSN_P): Likewise.
7332         * sched-rgn.c (init_ready_list): Drop special treatment of
7333         boundary debug insns.
7334         * final.c (rest_of_clean-state): Clear notes' BB.
7335
7336 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7337
7338         * Makefile.in (LAMBDA_H): Removed.
7339         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
7340         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
7341         lambda-trans.o, and tree-loop-linear.o.
7342         (lto-symtab.o): Remove dependence on LAMBDA_H.
7343         (tree-loop-linear.o): Remove rule.
7344         (lambda-mat.o): Same.
7345         (lambda-trans.o): Same.
7346         (lambda-code.o): Same.
7347         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
7348         (tree-vect-slp.o): Same.
7349         * hwint.h (gcd): Moved here.
7350         (least_common_multiple): Same.
7351         * lambda-code.c: Removed.
7352         * lambda-mat.c: Removed.
7353         * lambda-trans.c: Removed.
7354         * lambda.h: Removed.
7355         * tree-loop-linear.c: Removed.
7356         * lto-symtab.c: Do not include lambda.h.
7357         * omega.c (gcd): Removed.
7358         * passes.c (init_optimization_passes): Remove pass_linear_transform.
7359         * tree-data-ref.c (print_lambda_vector): Moved here.
7360         (lambda_vector_copy): Same.
7361         (lambda_matrix_copy): Same.
7362         (lambda_matrix_id): Same.
7363         (lambda_vector_first_nz): Same.
7364         (lambda_matrix_row_add): Same.
7365         (lambda_matrix_row_exchange): Same.
7366         (lambda_vector_mult_const): Same.
7367         (lambda_vector_negate): Same.
7368         (lambda_matrix_row_negate): Same.
7369         (lambda_vector_equal): Same.
7370         (lambda_matrix_right_hermite): Same.
7371         * tree-data-ref.h: Do not include lambda.h.
7372         (lambda_vector): Moved here.
7373         (lambda_matrix): Same.
7374         (dependence_level): Same.
7375         (lambda_transform_legal_p): Removed declaration.
7376         (lambda_collect_parameters): Same.
7377         (lambda_compute_access_matrices): Same.
7378         (lambda_vector_gcd): Same.
7379         (lambda_vector_new): Same.
7380         (lambda_vector_clear): Same.
7381         (lambda_vector_lexico_pos): Same.
7382         (lambda_vector_zerop): Same.
7383         (lambda_matrix_new): Same.
7384         * tree-flow.h (least_common_multiple): Removed declaration.
7385         * tree-parloops.c (lambda_trans_matrix): Moved here.
7386         (LTM_MATRIX): Same.
7387         (LTM_ROWSIZE): Same.
7388         (LTM_COLSIZE): Same.
7389         (LTM_DENOMINATOR): Same.
7390         (lambda_trans_matrix_new): Same.
7391         (lambda_matrix_vector_mult): Same.
7392         (lambda_transform_legal_p): Same.
7393         * tree-pass.h (pass_linear_transform): Removed declaration.
7394         * tree-ssa-loop.c (tree_linear_transform): Removed.
7395         (gate_tree_linear_transform): Removed.
7396         (pass_linear_transform): Removed.
7397         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
7398         flag_loop_interchange.
7399
7400 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
7401
7402         PR tree-optimization/47265
7403         PR tree-optimization/47443
7404         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
7405         if name still has some uses.
7406
7407 2011-01-25  Martin Jambor  <mjambor@suse.cz>
7408
7409         PR tree-optimization/47382
7410         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
7411         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
7412
7413 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
7414
7415         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
7416         sjlj_except_unwind_info.
7417
7418 2011-01-25  Richard Guenther  <rguenther@suse.de>
7419
7420         PR tree-optimization/47426
7421         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
7422         visible functions results escape.
7423
7424 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
7425
7426         PR target/45701
7427         * config/arm/arm.c (any_sibcall_uses_r3): New function.
7428         (arm_get_frame_offsets): Use it.
7429
7430 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7431             Jakub Jelinek  <jakub@redhat.com>
7432
7433         PR tree-optimization/47271
7434         * tree-if-conv.c (bb_postdominates_preds): New.
7435         (if_convertible_bb_p): Call bb_postdominates_preds.
7436         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
7437         (predicate_scalar_phi): Call bb_postdominates_preds.
7438
7439 2011-01-25  Nick Clifton  <nickc@redhat.com>
7440
7441         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
7442         * config/rx/rx.c (rx_function_value): Likewise.
7443         (rx_promote_function_mode): Likewise.
7444         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
7445         in order to make it legitimate.
7446         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
7447         make sure that the first operand is the same as the result register.
7448         (addsi3_unspec): Delete.
7449         (subdi3): Do not accept immediate operands.
7450         (subdi3_internal): Likewise.
7451
7452 2011-01-25  Jeff Law  <law@redhat.com>
7453
7454         PR rtl-optimization/37273
7455         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7456         handle them like argument loads from stack slots.  Do not double
7457         count memory for memory constants and argument loads from stack slots.
7458
7459 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
7460
7461         PR tree-optimization/47427
7462         PR tree-optimization/47428
7463         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7464         coalesce if the new root var would be TREE_READONLY.
7465
7466 2011-01-25  Richard Guenther  <rguenther@suse.de>
7467
7468         PR middle-end/47414
7469         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
7470         correct type for TBAA.
7471
7472 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7473
7474         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
7475         (close_phi_written_to_memory): Call for_each_index with
7476         dr_indices_valid_in_loop.
7477
7478 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7479
7480         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
7481         when it is initialized.
7482
7483 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7484
7485         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
7486         call to graphite_find_data_references_in_stmt.
7487         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
7488         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
7489         call to graphite_find_data_references_in_stmt.
7490         (analyze_drs_in_stmts): Same.
7491         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
7492         in which the scalar analysis of indices is performed.
7493         (create_data_ref): Same.  Update call to dr_analyze_indices.
7494         (find_data_references_in_stmt): Update call to create_data_ref.
7495         (graphite_find_data_references_in_stmt): Same.
7496         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
7497         declaration.
7498         (create_data_ref): Same.
7499         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
7500         call to create_data_ref.
7501
7502 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7503
7504         * graphite-sese-to-poly.c (build_poly_scop): Move
7505         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
7506
7507 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7508
7509         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
7510         VAR_DECL, PARM_DECL, and RESULT_DECL.
7511
7512 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7513
7514         * graphite-dependences.c (reduction_dr_1): Allow several reductions
7515         in a reduction PBB.
7516         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
7517         that have already been marked as PBB_IS_REDUCTION.
7518
7519 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7520
7521         * graphite-scop-detection.c (same_close_phi_node): New.
7522         (remove_duplicate_close_phi): New.
7523         (make_close_phi_nodes_unique): New.
7524         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
7525
7526 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7527
7528         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
7529         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
7530         of both data references to be the same.
7531
7532 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7533
7534         * graphite-dependences.c (build_lexicographical_constraint): Remove
7535         the gdim parameter.
7536         (build_lexicographical_constraint): Adjust call to
7537         ppl_powerset_is_empty.
7538         (dependence_polyhedron): Same.
7539         (graphite_legal_transform_dr): Same.
7540         (graphite_carried_dependence_level_k): Same.
7541         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
7542         parameter.
7543         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
7544
7545 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7546
7547         * graphite-sese-to-poly.c
7548         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
7549         (close_phi_written_to_memory): New.
7550         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
7551         and unshare_expr.
7552
7553 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7554
7555         * doc/install.texi: Update the expected version number of PPL to 0.11.
7556         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
7557         #if PPL_VERSION_MINOR < 11.
7558
7559 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7560
7561         * graphite-dependences.c: Include graphite-cloog-util.h.
7562         (new_poly_ddr): Inlined into dependence_polyhedron.
7563         (free_poly_ddr): Moved close by new_poly_ddr.
7564         (dependence_polyhedron_1): Renamed dependence_polyhedron.
7565         Early return NULL when ppl_powerset_is_empty returns true.
7566         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
7567         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
7568         (graphite_legal_transform_dr): Call new_poly_ddr.
7569         (graphite_carried_dependence_level_k): Same.
7570         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
7571         (dot_transformed_deps_stmt_1): Removed.
7572         (dot_deps_stmt_1): Call dot_deps_stmt_2.
7573         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
7574         (dot_deps_1): Call dot_deps_2.
7575         * Makefile.in (graphite-dependences.o): Add missing dependence on
7576         graphite-cloog-util.h.
7577
7578 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7579
7580         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
7581         (build_lexicographical_constraint): Same.
7582         (dependence_polyhedron_1): Same.
7583         (graphite_legal_transform_dr): Same.
7584         (graphite_carried_dependence_level_k): Same.
7585         * graphite-ppl.c (ppl_powerset_is_empty): New.
7586         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
7587         * tree-data-ref.c (dump_data_reference): Print the basic block index.
7588
7589 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7590
7591         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
7592         the "a followed by b" relation and document it.
7593
7594 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7595
7596         * graphite-dependences.c (build_lexicographical_constraint): Stop the
7597         iteration when the bag of constraints is empty.
7598
7599 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7600
7601         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
7602
7603 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7604
7605         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
7606         nest and two loop depths as parameters.
7607         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
7608         lst_perfect_nestify.
7609
7610 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7611
7612         * graphite-dependences.c (print_pddr): Call
7613         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
7614
7615 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7616
7617         * graphite-ppl.c (debug_gmp_value): New.
7618         * graphite-ppl.h (debug_gmp_value): Declared.
7619
7620 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
7621
7622         * doc/install.texi: Document availability of cloog-0.16.
7623
7624 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
7625
7626         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
7627         invalid postdominance info.
7628
7629 2011-01-24  Jan Hubicka  <jh@suse.cz>
7630
7631         PR c/21659
7632         * doc/extend.texi (weak pragma): Drop claim that it must
7633         appear before definition.
7634         * varasm.c (merge_weak, declare_weak): Only sanity check
7635         that DECL is not output at a time it is declared weak.
7636
7637 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
7638
7639         * machmode.def: Fixed comments.
7640
7641 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
7642
7643         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
7644
7645 2011-01-24  Paul Koning  <ni1d@arrl.net>
7646
7647         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
7648         WORDS_BIG_ENDIAN.
7649
7650 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
7651
7652         PR target/46519
7653         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
7654         (block_info): Add scanned and prev.
7655         (move_or_delete_vzeroupper_2): Return if the basic block
7656         has been scanned and the upper 128bit state is unchanged
7657         from the last scan.
7658         (move_or_delete_vzeroupper_1): Return true if the exit
7659         state is changed.
7660         (move_or_delete_vzeroupper): Visit basic blocks using the
7661         work-list based algorithm based on vt_find_locations in
7662         var-tracking.c.
7663
7664         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
7665
7666 2011-01-24  Nick Clifton  <nickc@redhat.com>
7667
7668         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
7669         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
7670         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
7671         then define __v850e1__.
7672         * doc/invoke.texi: Document -mv850es.
7673
7674 2011-01-24  Richard Henderson  <rth@redhat.com>
7675
7676         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
7677         compound unordered comparisons.
7678         * config/rx/rx.c (rx_split_fp_compare): Remove.
7679         * config/rx/rx-protos.h: Update.
7680         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
7681         (cbranchsf4): Don't call rx_split_fp_compare.
7682         (*cbranchsf4): Use rx_split_cbranch.
7683         (*cmpsf): Don't accept "i" constraint.
7684         (*conditional_branch): Only valid after reload.
7685         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
7686
7687 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7688
7689         PR target/47385
7690         * config/rs6000/altivec.md (vector constant splitters): Add
7691         support for creating vector single precision constants if -mvsx is
7692         used and we would create the constant using Altivec primitives.
7693
7694 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
7695             Richard Sandiford  <rdsandiford@googlemail.com>
7696
7697         PR rtl-optimization/47166
7698         * reload1.c (emit_reload_insns): Disable the spill_reg_store
7699         mechanism for PRE_MODIFY and POST_MODIFY.
7700         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
7701         reloadreg.
7702
7703 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
7704
7705         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7706
7707 2011-01-22  Jan Hubicka  <jh@suse.cz>
7708
7709         PR lto/47333
7710         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
7711
7712 2011-01-22  Jan Hubicka  <jh@suse.cz>
7713
7714         PR tree-optimization/43884
7715         PR lto/44334
7716         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
7717         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
7718
7719 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
7720
7721         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7722         * config/s390/s390.c (s390_register_move_cost,
7723         s390_memory_move_cost): New.
7724         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7725
7726 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7727
7728         PR middle-end/47401
7729         * except.c (sjlj_assign_call_site_values): Move setting the
7730         crtl->uses_eh_lsda flag to ...
7731         (sjlj_mark_call_sites): ... here.
7732         (sjlj_emit_function_enter): Support NULL dispatch label.
7733         (sjlj_build_landing_pads): In a function with no landing pads
7734         that still has must-not-throw regions, generate code to register
7735         a personality function with empty LSDA.
7736
7737 2011-01-21  Richard Henderson  <rth@redhat.com>
7738
7739         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
7740
7741         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
7742
7743         * compare-elim.c: New file.
7744         * Makefile.in (OBJS-common): Add it.
7745         (compare-elim.o): New.
7746         * common.opt (fcompare-elim): New.
7747         * opts.c (default_options_table): Add OPT_fcompare_elim.
7748         * tree-pass.h (pass_compare_elim_after_reload): New.
7749         * passes.c (init_optimization_passes): Add it.
7750         * recog.h: Protect against re-inclusion.
7751         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
7752         * doc/invoke.texi (-fcompare-elim): Document it.
7753         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
7754         * doc/tm.texi: Rebuild.
7755
7756 2011-01-22  Nick Clifton  <nickc@redhat.com>
7757
7758         * config/rx/rx.md (cstoresf4): Pass comparison operator to
7759         rx_split_fp_compare.
7760
7761 2011-01-22  Nick Clifton  <nickc@redhat.com>
7762
7763         * config/rx/rx.md (UNSPEC_CONST): New.
7764         (deallocate_and_return): Wrap the amount popped off the stack in
7765         an UNSPEC_CONST in order to stop it being rejected by
7766         -mmax-constant-size.
7767         (pop_and_return): Add a "(return)" rtx.
7768         (call): Drop the immediate operand.
7769         (call_internal): Likewise.
7770         (call_value): Likewise.
7771         (call_value_internal): Likewise.
7772         (sibcall_internal): Likewise.
7773         (sibcall_value_internal): Likewise.
7774         (sibcall): Likewise.  Generate an explicit call using
7775         sibcall_internal.
7776         (sibcall_value): Likewise.
7777         (mov<>): FAIL if a constant operand is not legitimate.
7778         (addsi3_unpsec): New pattern.
7779
7780         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
7781         (ok_for_max_constant): New function.
7782         (gen_safe_add): New function.
7783         (rx_expand_prologue): Use gen_safe_add.
7784         (rx_expand_epilogue): Likewise.
7785         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
7786         UNSPEC CONSTs.
7787
7788 2011-01-21  Jeff Law  <law@redhat.com>
7789
7790         PR tree-optimization/47053
7791         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
7792         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
7793         statements are deleted.
7794         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
7795         is nonempty, then purge dead edges and cleanup the CFG.
7796
7797 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
7798
7799         PR debug/47402
7800         Temporarily revert:
7801         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
7802         PR debug/47106
7803         * tree-dfa.c (create_var_ann): Mark variable as used.
7804
7805 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
7806
7807         PR middle-end/45566
7808         * except.c (convert_to_eh_region_ranges): Emit queued no-region
7809         notes from other section in hot/cold partitioning even if
7810         last_action is -3.  Increment call_site_base.
7811
7812         PR rtl-optimization/47366
7813         * fwprop.c (forward_propagate_into): Return bool.  If
7814         any changes are made, -fnon-call-exceptions is used and
7815         REG_EH_REGION note is present, call purge_dead_edges
7816         and return true if it purged anything.
7817         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
7818         any EH edges were purged.
7819
7820 2011-01-21  Jeff Law  <law@redhat.com>
7821
7822         PR rtl-optimization/41619
7823         * caller-save.c (setup_save_areas): Break out code to determine
7824         which hard regs are live across calls by examining the reload chains
7825         so that it is always used.
7826         Eliminate code which checked REG_N_CALLS_CROSSED.
7827
7828 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
7829
7830         PR tree-optimization/47355
7831         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
7832         NOP has non-debug uses beyond PHIs in new_bb.
7833
7834 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
7835
7836         PR debug/47106
7837         * cfgexpand.c (account_used_vars_for_block): Only account vars
7838         that are annotated as used.
7839         (estimated_stack_frame_size): Don't set TREE_USED.
7840         * tree-dfa.c (create_var_ann): Mark variable as used.
7841
7842 2011-01-21  Richard Guenther  <rguenther@suse.de>
7843
7844         PR middle-end/47395
7845         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
7846
7847 2011-01-21  Richard Guenther  <rguenther@suse.de>
7848
7849         PR tree-optimization/47365
7850         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
7851         (vn_reference_lookup_pieces): Adjust.
7852         (vn_reference_lookup): Likewise.
7853         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
7854         (vn_reference_lookup_3): Only look through kills if in
7855         VN_WALKREWRITE mode.
7856         (vn_reference_lookup_pieces): Adjust.
7857         (vn_reference_lookup): Likewise.
7858         (visit_reference_op_load): Likewise.
7859         (visit_reference_op_store): Likewise.
7860         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
7861         (compute_avail): Likewise.
7862         (eliminate): Likewise.
7863
7864 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
7865
7866         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
7867         DECL_IGNORED_P non-reg vars if they are used.
7868
7869         PR tree-optimization/47391
7870         * varpool.c (const_value_known_p): Return false if
7871         decl is volatile.
7872
7873 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
7874
7875         PR bootstrap/47215
7876         * config/i386/i386.c (ix86_local_alignment): Handle
7877         case for va_list_type_node is nil.
7878         (ix86_canonical_va_list_type): Likewise.
7879
7880 2011-01-21  Alan Modra  <amodra@gmail.com>
7881
7882         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
7883         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
7884
7885 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7886
7887         * config/arm/arm.md (define_attr type): Rename f_load
7888         and f_store to f_fpa_load and f_fpa_store. Update.
7889         (write_conflict): Deal with rename fallout.
7890         (*push_fp_multi): Likewise.
7891         * config/arm/fpa.md (f_load): Use f_fpa_load.
7892         (f_store): Use f_fpa_store.
7893         (*movsf_fpa): Likewise.
7894         (*movdf_fpa): Likewise.
7895         (*movxf_fpa): Likewise.
7896         (*thumb2_movsf_fpa): Likewise.
7897         (*thumb2_movdf_fpa): Likewise.
7898         (*thumb2_movxf_fpa): Likewise.
7899         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
7900         f_loadd and f_stored.
7901         (*thumb2_movdi_vfp): Likewise.
7902         (*thumb2_movsf_vfp): Fix attribute to f_loads.
7903         (*thumb2_movsi_vfp): Likewise.
7904         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
7905         Use f_loads instead of f_load.
7906         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
7907
7908 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
7909
7910         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7911         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
7912         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7913         (xtensa_mode_dependent_address_p): New function.
7914         (constantpool_address_p): Make static. Change return type to bool.
7915         Change argument type to const_rtx. Use CONST_INT_P predicate.
7916
7917 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
7918
7919         PR debug/46583
7920         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7921
7922 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
7923
7924         PR debug/47283
7925         * cfgexpand.c (expand_debug_expr): Instead of generating
7926         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7927         etc. handling.
7928
7929 2011-01-20  Richard Guenther  <rguenther@suse.de>
7930
7931         PR middle-end/47370
7932         * tree-inline.c (remap_gimple_op_r): Recurse manually for
7933         the pointer operand of MEM_REFs.
7934
7935 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
7936
7937         PR tree-optimization/46130
7938         * ipa-split.c (consider_split): If return_bb contains non-virtual
7939         PHIs other than for retval or if split_function would not adjust it,
7940         refuse to split.
7941
7942 2011-01-20  Richard Guenther  <rguenther@suse.de>
7943
7944         PR tree-optimization/47167
7945         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7946         Revert previous change, only avoid enumeral type changes.
7947
7948 2011-01-19  Mike Stump  <mikestump@comcast.net>
7949
7950         * doc/tm.texi.in (BRANCH_COST): Englishify.
7951         * doc/tm.texi (BRANCH_COST): Likewise.
7952
7953 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
7954
7955         PR c++/47291
7956         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
7957         (gen_scheduled_generic_parms_dies): New functions.
7958         (gen_struct_or_union_type_die): Schedule template parameters DIEs
7959         generation for the end of CU compilation.
7960         (dwarf2out_finish): Generate template parameters DIEs here.
7961
7962 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
7963
7964         PR debug/46240
7965         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7966         debug bind stmt on merge edges.
7967
7968 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
7969
7970         PR debug/47079
7971         PR debug/46724
7972         * function.c (instantiate_expr): Instantiate incoming rtl of
7973         implicit arguments, and recurse on VALUE_EXPRs.
7974         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7975         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7976
7977 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
7978
7979         * c-parser.c (c_parser_for_statement): Initialize
7980         collection_expression.
7981
7982 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7983
7984         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7985
7986 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7987
7988         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7989         (LINK_SHLIB_SPEC): Don't use %(link_path).
7990         (SUBTARGET_EXTRA_SPECS): Remove link_path.
7991
7992 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7993
7994         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7995         (NO_SHARED_LIB_SUPPORT): Remove.
7996         (LINK_SHLIB_SPEC): Remove one conditional definition.
7997
7998 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
7999
8000         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
8001         %{call_shared}.
8002         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
8003         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
8004         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
8005         %{call_shared} and conditionals on these options not being passed.
8006         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
8007         %{call_shared}.
8008
8009 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
8010
8011         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
8012         simplify.
8013
8014         * ipa-split.c: Spelling fixes.
8015
8016 2011-01-19  Richard Henderson  <rth@redhat.com>
8017
8018         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
8019         (*mulsi3): Likewise.
8020
8021         * longlong.h [__mn10300__] (count_leading_zeros): New.
8022         [__mn10300__] (umul_ppmm, smul_ppmm): New.
8023         [__mn10300__] (add_ssaaaa, subddmmss): New.
8024         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
8025         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
8026
8027 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8028
8029         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
8030
8031 2011-01-19  Richard Henderson  <rth@redhat.com>
8032
8033         * config/mn10300/mn10300.md (addsi3_flags): New.
8034         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
8035         (subsi3_flags, subc_internal, subdi3): New.
8036         (subdi3_internal, *subdi3_degenerate): New.
8037         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
8038
8039         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
8040         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
8041         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
8042         * config/mn10300/mn10300-protos.h: Update.
8043         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
8044         (return_ret): Likewise.  Rename from return_internal_regs.
8045         (return_internal): Remove.
8046
8047         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
8048         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
8049         (mn10300_legitimate_constant_p): Likewise.
8050         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
8051         (mn10300_frame_size): New.
8052         (mn10300_expand_prologue): Use it.
8053         (mn10300_expand_epilogue): Likewise.
8054         (mn10300_initial_offset): Likewise.
8055         * config/mn10300/mn10300-protos.h: Update.
8056         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
8057         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
8058         (prologue, epilogue, return_internal): Tidy output code.
8059         (mn10300_store_multiple_operation, return): Likewise.
8060         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
8061         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
8062         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
8063         (load_pic, am33_load_pic): New.
8064         (mn10300_load_pic0, mn10300_load_pic1): New.
8065
8066         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
8067         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
8068         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
8069         (cc_flags_for_mode, cc_flags_for_code): New.
8070         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
8071         overflow flag is not valid.  Validate that the flags we need
8072         for the comparison are valid.
8073         (mn10300_output_cmp): Remove.
8074         (mn10300_output_add): New.
8075         (mn10300_select_cc_mode): Use cc_flags_for_code.
8076         (mn10300_split_cbranch): New.
8077         (mn10300_match_ccmode): New.
8078         (mn10300_split_and_operand_count): New.
8079         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
8080         to the function.
8081         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
8082         (addsi3): ... here.  Use mn10300_output_add.
8083         (*addsi3_flags): New.
8084         (*am33_subsi3, *mn10300_subsi3): Merge...
8085         (subsi3): ... here.  Use attribute isa.
8086         (*subsi3_flags): New.
8087         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
8088         when possible.
8089         (*am33_andsi3, *mn10300_andsi3): Merge...
8090         (andsi3): ... here.
8091         (*andsi3_flags): New.
8092         (andsi3 splitters): New.
8093         (*am33_iorsi3, *mn10300_iorsi3): Merge...
8094         (iorsi3): ... here.
8095         (*iorsi3_flags): New.
8096         (*am33_xorsi3, *mn10300_xorsi3): Merge...
8097         (xorsi3): ... here.
8098         (*xorsi3_flags): New.
8099         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
8100         (one_cmplsi2): ... here.
8101         (*one_cmplsi2_flags): New.
8102         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
8103         instead of "dax" in constraints.  Use mn10300_split_cbranch.
8104         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
8105         use matching constraints to eliminate a self-comparison.
8106         (*integer_conditional_branch): Rename from integer_conditional_branch.
8107         Use int_mode_flags to match CC_REG.
8108         (*cbranchsi4_btst, *btstsi): New.
8109         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
8110         mn10300_split_cbranch.
8111         (*am33_cmpsf): Rename from am33_cmpsf.
8112         (*float_conditional_branch): Rename from float_conditional_branch.
8113         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
8114         (zero_extendqisi2): ... here.
8115         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
8116         (zero_extendhisi2): ... here.
8117         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
8118         (extendqisi2): ... here.
8119         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
8120         (extendhisi2): ... here.
8121         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
8122         (ashlsi3): ... here.
8123         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
8124         (lshrsi3): ... here.
8125         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
8126         (ashrsi3): ... here.
8127         (consecutive add peephole): Remove.
8128         * config/mn10300/predicates.md (label_ref_operand): New.
8129         (int_mode_flags): New.
8130         (CCZN_comparison_operator): New.
8131
8132         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
8133         (throughput_42_latency_43): New reservation.
8134         (mulsidi3, umulsidi3): New expanders.
8135         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
8136         the MDR register to allocation; separately allocate the low and
8137         high parts of the DImode result.
8138         (umulsidi3_internal): Similarly.
8139         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
8140         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
8141         (udivsi3, umodsi3): Remove.
8142         (udivmodsi4, divmodsi4): New expanders.
8143         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
8144         (*divmodsi4): Simiarly.
8145         (ext_internal): New.
8146
8147         * config/mn10300/constraints.md ("z"): New constraint.
8148         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
8149         (FIXED_REGISTERS): Don't fix MDR.
8150         (CALL_USED_REGSITERS): Reformat nicely.
8151         (REG_ALLOC_ORDER): Add MDR.
8152         (enum regclass): Add MDR_REGS.
8153         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
8154         (IRA_COVER_CLASSES): Add MDR_REGS.
8155         (REGNO_REG_CLASS): Handle MDR_REG.
8156         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
8157         (mn10300_register_move_cost): Likewise.
8158         * config/mn10300/mn10300.md (MDR_REG): New.
8159         (*movsi_internal): Handle moves to/from MDR_REGS.
8160
8161         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
8162         POST_MODIFY.
8163         (mn10300_secondary_reload): Tidy combination reload classes.
8164         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
8165         addresses for AM33.  Allow symbolic offsets for reg+imm.
8166         (mn10300_regno_in_class_p): New.
8167         (mn10300_legitimize_reload_address): New.
8168         * config/mn10300/mn10300.h (enum reg_class): Remove
8169         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
8170         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
8171         SP_OR_GENERAL_REGS.
8172         (REG_CLASS_NAMES): Update to match.
8173         (REG_CLASS_CONTENTS): Likewise.
8174         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
8175         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
8176         (REGNO_IN_RANGE_P): Remove.
8177         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
8178         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
8179         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
8180         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
8181         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
8182         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
8183         (REGNO_GENERAL_P): New.
8184         (HAVE_POST_MODIFY_DISP): New.
8185         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
8186         (LEGITIMIZE_RELOAD_ADDRESS): New.
8187         * config/mn10300/mn10300-protos.h: Update.
8188
8189         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
8190         DATA_REGS for AM33 stack-pointer destination.
8191         (mn10300_preferred_output_reload_class): Likewise.
8192         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
8193         into a form appropriate for ...
8194         (TARGET_SECONDARY_RELOAD): New.
8195         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
8196         * config/mn10300/mn10300-protos.h: Update.
8197         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
8198         reload_insi; use the "A" constraint for the scratch; handle AM33
8199         moves of sp to non-address registers.
8200
8201         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
8202         (*movqi_internal): ... here.
8203         (*am33_movhi, *mn10300_movhi): Merge into...
8204         (*movhi_internal): ... here.
8205         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
8206         as the source/destination of moves from/to SP.
8207         (movsf): Only allow for AM33-2.
8208         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
8209         any integer constant constraint.  Only allow for AM33-2.  Tidy
8210         all of the alternative outputs.
8211         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
8212         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
8213         for MN103.
8214         (udivsi3, umodsi3): New patterns for MN103 only.
8215
8216 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
8217
8218         * doc/tm.texi.in: Spell out that a lack of register class unions
8219         can lead to ICEs.
8220         * doc/tm.texi: Regenerate.
8221
8222 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
8223
8224         PR rtl-optimization/47337
8225         * dce.c (check_argument_store): New function.
8226         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
8227
8228         PR tree-optimization/47290
8229         * tree-eh.c (infinite_empty_loop_p): New function.
8230         (cleanup_empty_eh): Use it.
8231
8232 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
8233
8234         PR target/46997
8235         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
8236         (a64_expand_widen_sum): Ditto.
8237         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
8238         (vec_extract_evenodd_help): Ditto.
8239         (vec_extract_evenv4hi): Ditto.
8240         (vec_extract_oddv4hi): Ditto.
8241         (vec_extract_evenv2si): Ditto.
8242         (vec_extract_oddv2si): Ditto.
8243         (vec_extract_evenv2sf): Ditto.
8244         (vec_extract_oddv2sf): Ditto.
8245         (vec_pack_trunc_v4hi: Ditto.
8246         (vec_pack_trunc_v2si): Ditto.
8247         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
8248         (vec_interleave_highv8qi): Ditto.
8249         (mix1_r): Ditto.
8250         (vec_extract_oddv8qi): Ditto.
8251         (vec_interleave_lowv4hi): Ditto.
8252         (vec_interleave_highv4hi): Ditto.
8253         (vec_interleave_lowv2si): Ditto.
8254         (vec_interleave_highv2si): Ditto.
8255
8256 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8257
8258         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
8259         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
8260         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
8261         (pa_c_mode_for_suffix): New.
8262         (TARGET_EXPAND_BUILTIN): Define.
8263         (TARGET_C_MODE_FOR_SUFFIX): Define.
8264         (pa_builtins): Define.
8265         (pa_init_builtins): Register __float128 type and init new support
8266         builtins.
8267         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
8268         * config/pa/quadlib.c (_U_Qfcopysign): New.
8269
8270 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
8271
8272         PR middle-end/46894
8273         * explow.c (allocate_dynamic_stack_space): Do not assume more than
8274         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
8275         are defined.
8276
8277 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8278
8279         PR tree-optimization/47179
8280         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
8281         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
8282
8283 2011-01-18  Richard Guenther  <rguenther@suse.de>
8284
8285         PR rtl-optimization/47216
8286         * emit-rtl.c: Include tree-flow.h.
8287         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
8288         of replicating it with different semantics.
8289         * Makefile.in (emit-rtl.o): Adjust.
8290
8291 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8292
8293         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
8294         (cortex_a9_dp): Handle neon types correctly.
8295
8296 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
8297
8298         PR rtl-optimization/47299
8299         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
8300         subtarget.  Use normal multiplication if both operands are constants.
8301         * expmed.c (expand_widening_mult): Don't try to optimize constant
8302         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
8303         before using it.
8304
8305 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8306
8307         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
8308         spacing after 'e.g.', typos, comma, hyphenation.
8309
8310 2011-01-17  Richard Henderson  <rth@redhat.com>
8311
8312         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
8313         (rx_restricted_mem_operand): New.
8314         (rx_shift_operand): Use register_operand.
8315         (rx_source_operand, rx_compare_operand): Likewise.
8316         * config/rx/rx.md (addsi3_flags): New expander.
8317         (adddi3): Rewrite as expander.
8318         (adc_internal, *adc_flags, adddi3_internal): New patterns.
8319         (subsi3_flags): New expander.
8320         (subdi3): Rewrite as expander.
8321         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
8322
8323         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
8324         (rx_init_builtins): Remove sat builtin.
8325         (rx_expand_builtin): Likewise.
8326         * config/rx/rx.md (ssaddsi3): New.
8327         (*sat): Rename from sat.  Represent the CC_REG input.
8328
8329         * config/rx/predicates.md (rshift_operator): New.
8330         * config/rx/rx.c (rx_expand_insv): Remove.
8331         * config/rx/rx-protos.h: Update.
8332         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
8333         operand to the canonical position.
8334         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
8335         (*bitclr, *bitclr_in_memory): Similarly.
8336         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
8337         (insv): Retain the zero_extract in the expansion.
8338
8339         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
8340         (bswaphi2, bitinvert, revw): Likewise.
8341
8342         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
8343         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
8344         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
8345         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
8346         (bitset, bitset_in_memory): Likewise.
8347         (bitinvert, bitinvert_in_memory): Likewise.
8348         (bitclr, bitclr_in_memory): Likewise.
8349         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
8350         (rx_strend, rx_cmpstrn): Likewise.
8351         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
8352         (bitop peep2 patterns): Remove.
8353
8354         * config/rx/rx.c (rx_match_ccmode): New.
8355         * config/rx/rx-protos.h: Update.
8356         * config/rx/rx.md (abssi2): Clobber, don't set flags.
8357         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
8358         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
8359         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
8360         (fix_truncsfsi2, floatsisf2): Likewise.
8361         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
8362         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
8363         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
8364         (*subsi3_flags, *xorsi3_flags): New.
8365
8366         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
8367
8368         * config/rx/rx.c (rx_print_operand): Remove workaround for
8369         unsplit comparison operations.
8370
8371         * config/rx/rx.md (movsicc): Split after reload.
8372         (*movsicc): Merge *movsieq and *movsine via match_operator.
8373         (*stcc): New pattern.
8374
8375         * config/rx/rx.c (rx_float_compare_mode): Remove.
8376         * config/rx/rx.h (rx_float_compare_mode): Remove.
8377         * config/rx/rx.md (cstoresi4): Split after reload.
8378         (*sccc): New pattern.
8379
8380         * config/rx/predicates.md (label_ref_operand): New.
8381         (rx_z_comparison_operator): New.
8382         (rx_zs_comparison_operator): New.
8383         (rx_fp_comparison_operator): New.
8384         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
8385         Validate that the flags are set properly for the comparison.
8386         (rx_gen_cond_branch_template): Remove.
8387         (rx_cc_modes_compatible): Remove.
8388         (mode_from_flags): New.
8389         (flags_from_code): Rename from flags_needed_for_conditional.
8390         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
8391         (rx_select_cc_mode): Likewise.
8392         (rx_split_fp_compare): New.
8393         (rx_split_cbranch): New.
8394         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
8395         (*cbranchsi4): Use match_operator and rx_split_cbranch.
8396         (*cbranchsf4): Similarly.
8397         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
8398         match_operator and rx_split_cbranch.
8399         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
8400         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
8401         (*cmpsi): Rename from cmpsi.
8402         (*tstsi): Rename from tstsi.
8403         (*cmpsf): Rename from cmpsf; use CC_Fmode.
8404         (*conditional_branch): Rename from conditional_branch.
8405         (*reveresed_conditional_branch): Remove.
8406         (b<code>): Remove expander.
8407         * config/rx/rx-protos.h: Update.
8408
8409         * config/rx/rx.c (rx_compare_redundant): Remove.
8410         * config/rx/rx.md (cmpsi): Don't use it.
8411         * config/rx/rx-protos.h: Update.
8412
8413         * config/rx/rx-modes.def (CC_F): New mode.
8414         * config/rx/rx.c (rx_select_cc_mode): New.
8415         * config/rx/rx.h (SELECT_CC_MODE): Use it.
8416         * config/rx/rx-protos.h: Update.
8417
8418 2011-01-17  Richard Henderson  <rth@redhat.com>
8419
8420         * except.c (dump_eh_tree): Fix stray ; after for statement.
8421
8422 2011-01-17  Richard Guenther  <rguenther@suse.de>
8423
8424         PR tree-optimization/47313
8425         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
8426         handling before copying the body.  Properly deal with
8427         by-reference result in SSA form.
8428
8429 2011-01-17  Ian Lance Taylor  <iant@google.com>
8430
8431         PR target/47219
8432         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
8433         (struct_value_alias_set): Don't define.
8434         (sparc_option_override): Don't set sparc_sr_alias_set and
8435         struct_value_alias_set.
8436         (save_or_restore_regs): Use gen_frame_mem rather than calling
8437         set_mem_alias_set.
8438         (sparc_struct_value_rtx): Likewise.
8439
8440 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
8441
8442         PR target/47318
8443         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
8444         (_mm_maskstore_pd): Likewise.
8445         (_mm_maskload_ps): Likewise.
8446         (_mm_maskstore_ps): Likewise.
8447         (_mm256_maskload_pd): Change mask to __m256i.
8448         (_mm256_maskstore_pd): Likewise.
8449         (_mm256_maskload_ps): Likewise.
8450         (_mm256_maskstore_ps): Likewise.
8451
8452         * config/i386/i386-builtin-types.def: Updated.
8453         (ix86_expand_special_args_builtin): Likewise.
8454
8455         * config/i386/i386.c (bdesc_special_args): Update
8456         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
8457         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
8458         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
8459         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
8460
8461         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
8462         Use <avxpermvecmode> on mask register.
8463         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
8464
8465 2011-01-17  Olivier Hainque  <hainque@adacore.com>
8466             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8467             Eric Botcazou  <ebotcazou@adacore.com>
8468
8469         PR target/46655
8470         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
8471         if <= USHRT_MAX in 32-bit mode.
8472
8473 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8474
8475         * doc/install.texi (Configuration, Specific): Wrap long
8476         lines in examples.  Allow line wrapping in long options
8477         and URLs where beneficial for PDF output.
8478
8479 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
8480
8481         * config/mips/mips.c (mips_classify_symbol): Don't return
8482         SYMBOL_PC_RELATIVE for nonlocal labels.
8483
8484 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
8485
8486         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
8487
8488 2011-01-15  Jan Hubicka  <jh@suse.cz>
8489
8490         PR tree-optimization/47276
8491         * ipa.c (function_and_variable_visibility): Do not try to mark alias
8492         declarations as needed.
8493
8494 2011-01-15  Martin Jambor  <mjambor@suse.cz>
8495
8496         * common.opt (fdevirtualize): New flag.
8497         * doc/invoke.texi (Option Summary): Document it.
8498         * opts.c (default_options_table): Add devirtualize flag.
8499         * ipa-prop.c (detect_type_change): Return immediately if
8500         devirtualize flag is not set.
8501         (detect_type_change_ssa): Likewise.
8502         (compute_known_type_jump_func): Likewise.
8503         (ipa_analyze_virtual_call_uses): Likewise.
8504
8505 2011-01-14  Martin Jambor  <mjambor@suse.cz>
8506
8507         PR tree-optimization/45934
8508         PR tree-optimization/46302
8509         * ipa-prop.c (type_change_info): New type.
8510         (stmt_may_be_vtbl_ptr_store): New function.
8511         (check_stmt_for_type_change): Likewise.
8512         (detect_type_change): Likewise.
8513         (detect_type_change_ssa): Likewise.
8514         (compute_complex_assign_jump_func): Check for dynamic type change.
8515         (compute_complex_ancestor_jump_func): Likewise.
8516         (compute_known_type_jump_func): Likewise.
8517         (compute_scalar_jump_functions): Likewise.
8518         (ipa_analyze_virtual_call_uses): Likewise.
8519         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
8520
8521 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8522
8523         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
8524         * config/i386/i386.opt (msse5): New Alias.
8525
8526 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8527
8528         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8529         * config/sparc/linux64.h (CC1_SPEC): Likewise.
8530         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8531         * config/sparc/sparc.h (CC1_SPEC): Likewise.
8532
8533 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8534
8535         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
8536         -mcpu options.
8537         * config/sparc/linux64.h (CC1_SPEC): Likewise.
8538         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8539         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
8540         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
8541         Likewise.
8542         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
8543
8544 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8545
8546         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
8547
8548 2011-01-14  Mike Stump  <mikestump@comcast.net>
8549
8550         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
8551         * config/fr30/fr30.md: Likweise
8552         (movsi_push): Likewise.
8553         (movsi_pop): Likewise.
8554         (enter_func): Likewise.
8555         * config/moxie/moxie.md (movsi_push): Likewise.
8556         (movsi_pop): Likewise.
8557
8558 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8559
8560         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
8561         %{no_archive} %{exact_version}.
8562         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
8563         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
8564         %{no_archive} %{exact_version}.
8565         * config/mips/openbsd.h (LINK_SPEC): Likewise.
8566         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
8567         * config/mips/vxworks.h: Likewise.
8568
8569 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8570
8571         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
8572
8573 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8574
8575         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
8576         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
8577
8578 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8579
8580         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
8581         -nodefaultlib.
8582
8583 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8584
8585         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
8586         for mcpu not cpu.
8587         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
8588         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
8589         not cpu.
8590         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
8591         Don't handle -shlib.
8592
8593 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8594
8595         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
8596         (CC1_SPEC): Don't handle -profile.
8597
8598 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8599
8600         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
8601         * config/mips/mips.h (CC1_SPEC): Likewise.
8602
8603 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
8606         * config/mips/mips.h (CC1_SPEC): Likewise.
8607
8608 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8609
8610         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
8611         * config/m32r/linux.h (LINK_SPEC): Likewise.
8612         * config/mips/linux.h (LINK_SPEC): Likewise.
8613         * config/mips/linux64.h (LINK_SPEC): Likewise.
8614         * config/sparc/linux.h (LINK_SPEC): Likewise.
8615         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8616         LINK_SPEC): Likewise.
8617         * config/xtensa/linux.h (LINK_SPEC): Likewise.
8618
8619 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8620
8621         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
8622         %{version:-v}.
8623         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
8624
8625 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8626
8627         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
8628         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8629
8630 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
8631
8632         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
8633
8634 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8635
8636         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
8637         supports -Bstatic/-Bdynamic.
8638         * configure: Regenerate.
8639
8640 2011-01-14  Jan Hubicka  <jh@suse.cz>
8641             Jack Howarth  <howarth@bromo.med.uc.edu>
8642
8643         PR target/46037
8644         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
8645         when checking debug_info_level. Test write_symbols instead of
8646         debug_hooks->var_location when setting flag_var_tracking_uninit.
8647
8648 2011-01-14  Richard Guenther  <rguenther@suse.de>
8649
8650         PR tree-optimization/47179
8651         * target.def (ref_may_alias_errno): New target hook.
8652         * targhooks.h (default_ref_may_alias_errno): Declare.
8653         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
8654         (default_ref_may_alias_errno): New function.
8655         * target.h (struct ao_ref_s): Declare.
8656         * tree-ssa-alias.c: Include target.h.
8657         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
8658         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
8659         (targhooks.o): Likewise.
8660         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
8661         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
8662
8663 2011-01-14  Richard Guenther  <rguenther@suse.de>
8664
8665         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
8666
8667 2011-01-14  Richard Guenther  <rguenther@suse.de>
8668
8669         PR tree-optimization/47280
8670         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
8671         return CFG changes.
8672         (tree_ssa_forward_propagate_single_use_vars): Deal with
8673         CFG changes from associate_plusminus.
8674
8675 2011-01-14  Richard Guenther  <rguenther@suse.de>
8676
8677         PR middle-end/47281
8678         Revert
8679         2011-01-11  Richard Guenther  <rguenther@suse.de>
8680
8681         PR tree-optimization/46076
8682         * tree-ssa.c (useless_type_conversion_p): Conversions from
8683         unprototyped to empty argument list function types are useless.
8684
8685 2011-01-14  Richard Guenther  <rguenther@suse.de>
8686
8687         PR tree-optimization/47286
8688         * tree-ssa-structalias.c (new_var_info): Register variables are global.
8689
8690 2011-01-14  Martin Jambor  <mjambor@suse.cz>
8691
8692         PR middle-end/46823
8693         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
8694
8695 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
8696
8697         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
8698         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8699         * config/xtensa/xtensa.c (xtensa_libcall_value,
8700         xtensa_function_value_regno_p): New functions.
8701         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8702
8703 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
8704
8705         PR c++/47213
8706         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
8707         PE specific hook.
8708         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
8709         New function prototype.
8710         * config/i386/winnt.c (i386_pe_assemble_visibility):
8711         Warn only if attribute was specified by user.
8712
8713 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8714
8715         PR target/47251
8716         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
8717         floating point.
8718         (floatunsdidf2_fcfidu): Ditto.
8719
8720 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8721
8722         * config/s390/s390.c (print_operand_address): Replace 'error' with
8723         'output_operand_lossage'.
8724         (print_operand): Likewise.
8725
8726 2011-01-13  Jeff Law  <law@redhat.com>
8727
8728         PR rtl-optimization/39077
8729         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
8730         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
8731         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
8732         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
8733         * gcse.c (prune_insertions_deletions): New function.
8734         (compute_pre_data): Use it.
8735
8736 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
8737
8738         PR debug/PR46973
8739         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
8740         static function.
8741         (prune_unused_types_mark): Use it.
8742
8743 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
8744
8745         PR rtl-optimization/45352
8746         * sel-sched.c: Update copyright years.
8747         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
8748         in the advancing loop when we have issued issue_rate insns.
8749
8750 2011-01-12  Richard Henderson  <rth@redhat.com>
8751
8752         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
8753         (TARGET_MD_ASM_CLOBBERS): New.
8754
8755         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
8756         (TARGET_DELEGITIMIZE_ADDRESS): New.
8757
8758         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
8759         (clzsi2, *bsch): New patterns.
8760
8761         * config/mn10300/mn10300.md (INT): New mode iterator.
8762         (*mov<INT>_clr): New pattern, and peep2 to generate it.
8763
8764         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
8765         flag_split_wide_types.
8766
8767         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
8768         (mn10300_trampoline_init): Rewrite without a template, an immediate
8769         load and a direct branch.
8770         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
8771
8772 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
8773
8774         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8775         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
8776         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
8777         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8778
8779 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
8780
8781         PR debug/47209
8782         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
8783         of type.
8784
8785 2011-01-12  Jan Hubicka  <jh@suse.cz>
8786
8787         PR driver/47244
8788         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
8789         (PLUGIN_COND_CLOSE): New macro.
8790         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
8791
8792 2011-01-12  Richard Guenther  <rguenther@suse.de>
8793
8794         PR lto/47259
8795         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
8796         register variables in a MEM_REF.
8797
8798 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
8799
8800         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
8801         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
8802         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
8803         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8804         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8805         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
8806         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
8807         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
8808         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
8809         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
8810         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
8811         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
8812         * config/gnu-user.h: New.  Copied from linux.h.
8813         (LINUX_TARGET_STARTFILE_SPEC): Rename to
8814         GNU_USER_TARGET_STARTFILE_SPEC.
8815         (LINUX_TARGET_ENDFILE_SPEC): Rename to
8816         GNU_USER_TARGET_ENDFILE_SPEC.
8817         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
8818         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
8819         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
8820         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
8821         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
8822         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8823         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
8824         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
8825         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
8826         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
8827         * config/arm/linux-eabi.h (CC1_SPEC): Use
8828         GNU_USER_TARGET_CC1_SPEC.
8829         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
8830         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
8831         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
8832         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
8833         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
8834         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
8835         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
8836         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
8837
8838 2011-01-12  Richard Guenther  <rguenther@suse.de>
8839
8840         PR other/46946
8841         * doc/invoke.texi (ffast-math): Document it is turned on
8842         with -Ofast.
8843
8844 2011-01-12  Jan Hubicka  <jh@suse.cz>
8845
8846         PR tree-optimization/47233
8847         * opts.c (common_handle_option): Disable ipa-reference with profile
8848         feedback.
8849
8850 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
8851
8852         * c-parser.c (c_parser_objc_at_property_declaration): Improved
8853         error message.
8854
8855 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
8856
8857         * c-parser.c (c_lex_one_token): Updated and reindented some
8858         comments.  No changes in code.
8859
8860 2011-01-11  Ian Lance Taylor  <iant@google.com>
8861
8862         * godump.c (go_output_var): Don't output the variable if there is
8863         already a type with the same name.
8864
8865 2011-01-11  Ian Lance Taylor  <iant@google.com>
8866
8867         * godump.c (go_format_type): Don't generate float80.
8868
8869 2011-01-11  Richard Henderson  <rth@redhat.com>
8870
8871         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
8872         declaration.  Rewrite for both speed and size.
8873         (mn10300_address_cost_1): Remove.
8874         (mn10300_register_move_cost): New.
8875         (mn10300_memory_move_cost): New.
8876         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
8877         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
8878         extensions, shifts, BSWAP, CLZ.
8879         (mn10300_wide_const_load_uses_clr): Remove.
8880         (TARGET_REGISTER_MOVE_COST): New.
8881         (TARGET_MEMORY_MOVE_COST): New.
8882         * config/mn10300/mn10300-protos.h: Update.
8883         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
8884
8885         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
8886         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
8887         * config/mn10300/mn10300-protos.h: Update.
8888         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
8889         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
8890         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
8891         (*test_int_bitfield, *test_byte_bitfield): Remove.
8892         (*bit_test, *subreg_bit_test): Remove.
8893         * config/mn10300/predicates.md (const_8bit_operand): Remove.
8894
8895         * config/mn10300/constraints.md ("c"): Rename from "A".
8896         ("A", "D"): New constraint letters.
8897         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
8898         (fmssf4, fnmasf4, fnmssf4): Likewise.
8899
8900         * config/mn10300/mn10300.md (isa): New attribute.
8901         (enabled): New attribute.
8902
8903         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
8904         (abssf2, negsf2): Define only for hardware fp.
8905         (sqrtsf2): Reformat.
8906         (addsf3, subsf3, mulsf3): Merge expander and insn.
8907
8908         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
8909         (DEBUGGER_AUTO_OFFSET): Remove.
8910         (DEBUGGER_ARG_OFFSET): Remove.
8911
8912         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
8913         Emit register stores with the same offsets as the hardware.
8914         (mn10300_store_multiple_operation): Don't check that the register
8915         save offsets are monotonic.
8916         * config/mn10300/mn10300-protos.h: Update.
8917
8918         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8919
8920         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8921         in terms of the value on the stack, not the MDR register.
8922
8923 2011-01-11  Jan Hubicka  <jh@suse.cz>
8924
8925         PR lto/45721
8926         PR lto/45375
8927         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8928         (symbol_alias_set_destroy, symbol_alias_set_contains,
8929         propagate_aliases_backward): Declare.
8930         * lto-streamer-out.c (struct sets): New sturcture.
8931         (trivally_defined_alias): New function.
8932         (output_alias_pair_p): Rewrite.
8933         (output_unreferenced_globals): Fix output of alias pairs.
8934         (produce_symtab): Likewise.
8935         * ipa.c (function_and_variable_visibility): Set weak alias destination
8936         as needed in lto.
8937         * varasm.c (symbol_alias_set_t): Remove.
8938         (symbol_alias_set_destroy): Export.
8939         (propagate_aliases_forward, propagate_aliases_backward): New functions
8940         based on ...
8941         (compute_visible_aliases): ... this one; remove.
8942         (trivially_visible_alias): New
8943         (trivially_defined_alias): New.
8944         (remove_unreachable_alias_pairs): Rewrite.
8945         (finish_aliases_1): Reorganize code checking if alias is defined.
8946         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8947         in LTO mode.
8948
8949 2011-01-11  Richard Guenther  <rguenther@suse.de>
8950
8951         PR tree-optimization/46076
8952         * tree-ssa.c (useless_type_conversion_p): Conversions from
8953         unprototyped to empty argument list function types are useless.
8954
8955 2011-01-11  Richard Guenther  <rguenther@suse.de>
8956
8957         PR middle-end/45235
8958         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8959         volatile MEMs as MEM_READONLY_P.
8960
8961 2011-01-11  Richard Guenther  <rguenther@suse.de>
8962
8963         PR tree-optimization/47239
8964         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8965
8966 2011-01-11  Jeff Law  <law@redhat.com>
8967
8968         PR tree-optimization/47086
8969         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8970         IVs from statements that might throw.
8971
8972 2011-01-10  Jan Hubicka  <jh@suse.cz>
8973
8974         PR lto/45375
8975         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8976
8977 2011-01-10  Jan Hubicka  <jh@suse.cz>
8978
8979         PR lto/45375
8980         * profile.c (read_profile_edge_counts): Ignore profile inconistency
8981         when correcting profile.
8982
8983 2011-01-10  Jan Hubicka  <jh@suse.cz>
8984
8985         PR lto/46083
8986         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8987         DECL_FINI_PRIORITY.
8988         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8989         Restore DECL_FINI_PRIORITY.
8990
8991 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8992
8993         * doc/gimple.texi: Fix quoting of multi-word return values in
8994         @deftypefn statements.  Ensure presence of return value.  Wrap
8995         overlong @deftypefn lines.
8996         (is_gimple_operand, is_gimple_min_invariant_address): Remove
8997         descriptions of removed functions.
8998         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8999         of multi-word return value in @deftypefn statement.
9000
9001 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9002
9003         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
9004         (Conditional Expressions, Logical Operators)
9005         (Statement and operand traversals): Do not indent smallexample
9006         code.  Fix duplicate function argument in example.
9007
9008 2011-01-10  Jeff Law  <law@redhat.com>
9009
9010         PR tree-optimization/47141
9011         * ipa-split.c (split_function): Handle case where we are
9012         returning a value and the return block has a virtual operand phi.
9013
9014 2011-01-10  Jan Hubicka  <jh@suse.cz>
9015
9016         PR tree-optimization/47234
9017         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
9018         (pass_feedback_split_functions): Declare.
9019         * passes.c (init_optimization_passes): Add ipa-split as subpass of
9020         tree-profile.
9021         * ipa-split.c (gate_split_functions): Update comments; disable
9022         split-functions for profile_arc_flag and branch_probabilities.
9023         (gate_feedback_split_functions): New function.
9024         (execute_feedback_split_functions): New function.
9025         (pass_feedback_split_functions): New global var.
9026
9027 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
9028
9029         PR lto/46760
9030         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
9031         calling gimple_call_set_cannot_inline.
9032
9033 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
9034
9035         * config/darwin-sections.def: Remove unused section.
9036
9037 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
9038
9039         PR c++/47218
9040         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
9041
9042 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
9043
9044         PR objc/47232
9045         * c-parser.c (c_parser_declaration_or_fndef): Improved
9046         error message.
9047
9048 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
9049
9050         * config/i386/winnt.c (i386_pe_start_function): Make sure
9051         to switch back to function's section.
9052
9053 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
9054
9055         PR gcc/46902
9056         PR testsuite/46912
9057         * plugin.c: Move include of dlfcn.h from here...
9058         * system.h: ... to here.
9059
9060 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9061
9062         * doc/cpp.texi (C++ Named Operators): Fix markup for header
9063         file name.
9064         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
9065         two extra empty pages in PDF output.
9066
9067 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
9068
9069         PR objc/47078
9070         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
9071         for error recovery purposes behave as if it was not specified so
9072         that the default type is usd.
9073
9074 2011-01-07  Jan Hubicka  <jh@suse.cz>
9075
9076         PR tree-optmization/46469
9077         * ipa.c (function_and_variable_visibility): Clear needed flags on
9078         nodes with external decls; handle weakrefs merging correctly.
9079
9080 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
9081
9082         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
9083         not false.
9084
9085 2011-01-07  Jan Hubicka  <jh@suse.cz>
9086
9087         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
9088         and no longer claim that gold is required for linker plugin.
9089         * configure: Regenerate.
9090         * gcc.c (PLUGIN_COND): New macro.
9091         (LINK_COMMAND_SPEC): Use it.
9092         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
9093         * config.in (HAVE_LTO_PLUGIN): New.
9094         * configure.ac (--with-lto-plugin): New parameter; autodetect
9095         HAVE_LTO_PLUGIN.
9096
9097 2011-01-07  Jan Hubicka  <jh@suse.cz>
9098
9099         PR tree-optimization/46367
9100         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
9101         when we can update original.
9102         (cgraph_mark_inline_edge): Sanity check.
9103         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
9104
9105 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9106
9107         * config/spu/spu.h (ASM_COMMENT_START): Define.
9108
9109 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9110
9111         PR driver/42445
9112         * gcc.c (%>S): New.
9113         (SWITCH_KEEP_FOR_GCC): Likewise.
9114         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
9115         (do_spec_1): Handle "%>".
9116
9117         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
9118
9119 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
9120
9121         PR target/47201
9122         * config/i386/i386.c (ix86_delegitimize_address): If
9123         simplify_gen_subreg fails, return orig_x.
9124
9125         PR bootstrap/47187
9126         * value-prof.c (gimple_stringop_fixed_value): Handle
9127         lhs of the call properly.
9128
9129 2011-01-07  Jan Hubicka  <jh@suse.cz>
9130
9131         PR lto/45375
9132         * lto-opt.c (lto_reissue_options): Set flag_shlib.
9133
9134 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
9135
9136         * target.def (function_switched_text_sections): New hook.
9137         * doc/tm.texi: Regenerated.
9138         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9139         * final.c (default_function_switched_text_sections): New.
9140         (final_scan_insn): Call function_switched_text_sections when a
9141         mid-function section change occurs.
9142         * output.h (default_function_switched_text_sections): Declare.
9143         * config/darwin-protos.h (darwin_function_switched_text_sections):
9144         Likewise.
9145         * config/darwin.c (darwin_function_switched_text_sections): New.
9146         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9147
9148 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
9149
9150         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
9151         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
9152         the secondary code fragment when outputting for DWARF == 2.
9153
9154 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
9155
9156         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9157         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
9158         Remove.
9159         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
9160         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9161
9162 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
9163
9164         PR debug/46704
9165         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
9166         when it is not empty.
9167
9168 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
9169
9170         Bobcat Enablement
9171         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
9172         (case ${target}): Add btver1.
9173         * config/i386/driver-i386.c (host_detect_local_cpu): Let
9174         -march=native recognize btver1 processors.
9175         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9176         btver1 def_and_undef
9177         * config/i386/i386.c (struct processor_costs btver1_cost): New
9178         btver1 cost table.
9179         (m_BTVER1): New definition.
9180         (m_AMD_MULTIPLE): Includes m_BTVER1.
9181         (initial_ix86_tune_features): Add btver1 tune.
9182         (processor_target_table): Add btver1 entry.
9183         (static const char *const cpu_names): Add btver1 entry.
9184         (software_prefetching_beneficial_p): Add btver1.
9185         (ix86_option_override_internal): Add btver1 instruction sets.
9186         (ix86_issue_rate): Add btver1.
9187         (ix86_adjust_cost): Add btver1.
9188         * config/i386/i386.h (TARGET_BTVER1): New definition.
9189         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
9190         (enum processor_type): Add PROCESSOR_BTVER1.
9191         * config/i386/i386.md (define_attr "cpu"): Add btver1.
9192
9193 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9194
9195         PR target/43309
9196         * config/i386/i386.c (legitimize_tls_address)
9197         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
9198         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
9199         (tls_initial_exec_64_sun): New pattern.
9200
9201 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
9202
9203         * doc/invoke.texi (Overall Options): Improve wording and markup
9204         of the description of -wrapper.
9205
9206 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
9207
9208         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
9209         rdynamic, threads): New Driver options.
9210
9211 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9212
9213         PR target/38118
9214         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
9215         if coming from .tdata.
9216         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9217
9218 2011-01-06  Jan Hubicka  <jh@suse.cz>
9219
9220         PR lto/47188
9221         * collect2.c (main): Do not enable LTOmode when plugin is active.
9222
9223 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9224
9225         PR other/45915
9226         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
9227         --version output if supported.
9228         * configure: Regenerate.
9229
9230 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
9231
9232         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
9233         Driver options.
9234
9235 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
9236
9237         PR c/47150
9238         * c-convert.c (convert): When converting a complex expression
9239         other than COMPLEX_EXPR to a different complex type, ensure
9240         c_save_expr is called instead of save_expr, unless in_late_binary_op.
9241         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
9242         when converting COMPLEX_TYPE.
9243
9244 2011-01-06  Ira Rosen  <irar@il.ibm.com>
9245
9246         PR tree-optimization/47139
9247         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
9248         only the last reduction value is used outside the loop.  Update
9249         documentation.
9250
9251 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
9252
9253         * config/rtems.opt: New.
9254         * config.gcc (*-*-rtems*): Use rtems.opt.
9255
9256 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
9257
9258         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
9259         processors do not support 3DNow instructions.
9260
9261 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9262
9263         * config/spu/spu.c (spu_option_override): Set parameter
9264         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
9265
9266 2011-01-05  Jan Hubicka  <jh@suse.cz>
9267
9268         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
9269         at the command line.
9270
9271 2011-01-05  Martin Jambor  <mjambor@suse.cz>
9272
9273         PR lto/47162
9274         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
9275         deltas on streamed outgoing edges.
9276         (output_node_opt_summary): Output info for outgoing edges only when
9277         the node is in new parameter set.
9278         (output_cgraph_opt_summary): New parameter set, passed to the two
9279         aforementioned functions.  Update its forward declaration and its
9280         callee too.
9281
9282 2011-01-05  Tom Tromey  <tromey@redhat.com>
9283
9284         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
9285         operator to c_finish_omp_atomic.
9286         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
9287         (build_unary_op): Update.
9288         (build_modify_expr): Update.
9289         (build_asm_expr): Update.
9290
9291 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9292
9293         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
9294         newly inserted insns.
9295         (pad_bb): Likewise.
9296         (spu_emit_branch_hint): Likewise.
9297         (insert_hbrp_for_ilb_runout): Likewise.
9298         (spu_machine_dependent_reorg): Call df_finish_pass after
9299         schedule_insns returns.
9300
9301 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9302
9303         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
9304
9305 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
9306
9307         PR tree-optimization/47005
9308         * tree-sra.c (struct access): Add 'non_addressable' bit.
9309         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
9310         (decide_one_param_reduction): Return 0 if the parameter is passed by
9311         reference and one of the accesses in the group is non_addressable.
9312
9313 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9314
9315         PR tree-optimization/47056
9316         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
9317         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
9318         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
9319
9320 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9321
9322         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
9323         initializer.  Skip view conversions from aggregate types.
9324
9325 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
9326
9327         PR bootstrap/47055
9328         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
9329
9330 2011-01-04  Philipp Thomas  <pth@suse.de>
9331
9332         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
9333         obvious typo.
9334
9335 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9336
9337         * function.c (thread_prologue_and_epilogue_insns): Do not crash
9338         on empty epilogue sequences.
9339
9340 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
9341
9342         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
9343         non-static): New Driver options.
9344
9345 2011-01-04  Jie Zhang  <jie@codesourcery.com>
9346
9347         PR driver/47137
9348         * gcc.c (default_compilers[]): Set combinable field to 0
9349         for all assembly languages.
9350
9351 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
9352
9353         * config/mips/loongson3a.md: New file.
9354         * config/mips/mips.md: Include loongson3a.md.
9355         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
9356         TUNE_LOONGSON_3A.
9357
9358 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
9359
9360         PR middle-end/47017
9361         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
9362         instead of convert_memory_address_addr_space on the base expression.
9363
9364 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9365
9366         * config/spu/spu.c (spu_option_override): Update error text
9367         for bad -march= / -mtune= values.
9368
9369 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9370
9371         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
9372         if branch-hint optimization will be performed.
9373
9374 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
9375
9376         PR tree-optimization/47148
9377         * ipa-split.c (split_function): Convert arguments to
9378         DECL_ARG_TYPE if possible.
9379
9380         PR tree-optimization/47155
9381         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
9382         when computing uns.
9383
9384         PR rtl-optimization/47157
9385         * combine.c (try_combine): If undobuf.other_insn becomes
9386         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
9387         and set *new_direct_jump_p too.
9388
9389 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
9390
9391         PR tree-optimization/47021
9392         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
9393
9394 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
9395
9396         * gcc.c (process_command): Update copyright notice dates.
9397         * gcov.c (print_version): Likewise.
9398         * gcov-dump.c (print_version): Likewise.
9399         * mips-tfile.c (main): Likewise.
9400         * mips-tdump.c (main): Likewise.
9401
9402 2011-01-03  Martin Jambor  <mjambor@suse.cz>
9403
9404         PR tree-optimization/46801
9405         * tree-sra.c (type_internals_preclude_sra_p): Check whether
9406         aggregate fields start at byte boundary instead of the bit-field flag.
9407
9408 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
9409
9410         PR driver/47137
9411         * gcc.c (main): Revert revision 168407.
9412
9413 2011-01-03  Martin Jambor  <mjambor@suse.cz>
9414
9415         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
9416
9417 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9418
9419         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
9420         vector optab to expand vector/scalar shift, update gimple to vector.
9421
9422 2011-01-03  Martin Jambor  <mjambor@suse.cz>
9423
9424         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
9425         a thunk.
9426
9427 2011-01-03  Martin Jambor  <mjambor@suse.cz>
9428
9429         PR tree-optimization/46984
9430         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
9431         HOST_WIDE_INT.
9432         (cgraph_create_indirect_edge): Fixed line length.
9433         (cgraph_indirect_call_info): Declare.
9434         (cgraph_make_edge_direct) Update declaration.
9435         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
9436         (cgraph_create_indirect_edge): Use it.
9437         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
9438         callees.
9439         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
9440         the new thunk_delta representation.
9441         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
9442         HOST_WIDE_INT.
9443         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
9444         (ipa_read_indirect_edge_info): Likewise.
9445         * lto-cgraph.c (output_edge_opt_summary): New function.
9446         (output_node_opt_summary): Call it on all outgoing edges.
9447         (input_edge_opt_summary): New function.
9448         (input_node_opt_summary): Call it on all outgoing edges.
9449
9450 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
9451
9452         PR driver/47137
9453         * gcc.c (main): Don't check have_o when settting combine_inputs.
9454
9455 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
9456
9457         * regrename.c: Add general comment describing the pass.
9458         (struct du_head): Remove 'length' field.
9459         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
9460         (regrename_optimize): Do not sort chains.  Rework comments, add others.
9461         Force renaming to the preferred class (if any) in the first pass and do
9462         not consider registers that belong to it in the second pass.
9463         (create_new_chain): Do not set 'length' field.
9464         (scan_rtx_reg): Likewise.
9465
9466 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
9467
9468         PR tree-optimization/47140
9469         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
9470         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
9471         to bit_value_binop.
9472
9473         PR rtl-optimization/47028
9474         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
9475         parm_birth_insn instead of at the beginning of first bb.
9476
9477 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
9478
9479         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
9480         Remove the word "see" before "@pxref".
9481         * doc/rtl.texi: Remove the word "see" before "@pxref".
9482
9483 2011-01-01  Jan Hubicka  <jh@suse.cz>
9484
9485         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
9486         memory.
9487
9488 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
9489
9490         PR target/38662
9491         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
9492
9493 \f
9494 Copyright (C) 2011 Free Software Foundation, Inc.
9495
9496 Copying and distribution of this file, with or without modification,
9497 are permitted in any medium without royalty provided the copyright
9498 notice and this notice are preserved.