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