OSDN Git Service

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