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