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