OSDN Git Service

2011-04-26 Andrew Stubbs <ams@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2
3         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4
5 2011-04-26  Richard Guenther  <rguenther@suse.de>
6
7         * c-typeck.c (build_unary_op): Do not expand array-refs via
8         pointer arithmetic.  Only adjust qualifiers for function types.
9
10 2011-04-26  Richard Guenther  <rguenther@suse.de>
11
12         PR middle-end/48694
13         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat
16         trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF
17         is set.
18
19 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
20
21         * c-family/c-common.c (struct c_common_resword): Add
22         __underlying_type.
23         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
24         * doc/extend.texi: Document __underlying_type.
25
26 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
27
28         * config/rs6000/titan.md (automata_option "progress"): Remove.
29
30 2011-04-25  Jeff Law  <law@redhat.com>
31
32         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
33
34 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
35
36         * system.h (ENUM_BITFIELD): Remove.
37
38 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
39             Eric Botcazou <ebotcazou@adacore.com>
40
41         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
42         for STORE_FLAG_VALUE==-1 case.
43
44 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
45
46         PR target/43804
47         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
48         LEGITIMATE_PIC_OPERAND_P.
49
50 2011-04-24  Jan Hubicka  <jh@suse.cz>
51
52         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
53         WPA hack.
54         * ipa-prop.h (ipa_get_param, ipa_is_param_used, ipa_param_cannot_devirtualize_p,
55         ipa_param_types_vec_empty, ipa_get_ith_jump_func, ipa_get_lattice):
56         Fortify array bounds.
57         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
58         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
59         Sanity check predicate length.
60         (remap_predicate): Likewise; sanity check jump functions.
61         (inline_read_section, inline_write_summary): Sanity check
62         predicate length.
63
64 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
65
66         PR other/48748
67         * doc/extend.texi (Type Traits): Document __is_standard_layout,
68         __is_literal_type, and __is_trivial; update throughout about
69         possibly cv-qualified void types.
70
71 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
72
73         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
74         testsuite and make it version agnostic.
75
76 2011-04-22  Jan Hubicka  <jh@suse.cz>
77
78         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
79
80 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
81
82         PR c/48685
83         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
84         to VOID_TYPE even around MODIFY_EXPR.
85
86 2011-04-22  Mike Stump  <mikestump@comcast.net>
87
88         * gensupport.c (read_md_rtx): Fix typo in comment.
89         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
90         comment.
91
92 2011-04-22  Jan Hubicka  <jh@suse.cz>
93
94         * gengtype.c (open_base_files): Add ipa-inline.h include.
95         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to ipa-prop.c
96         update all uses.
97         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
98         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to merge
99         summary of inlined function into former caller.
100         * ipa-inline.c (max_benefit): Remove.
101         (edge_badness): Compensate for removal of benefits.
102         (update_caller_keys): Use reset_node_growth_cache/reset_edge_growth_cache.
103         (update_callee_keys): Likewise.
104         (update_all_callee_keys): Likewise.
105         (inline_small_functions): Do not collect max_benefit; do not
106         reset stimated_growth; call free_growth_caches and initialize_growth_caches.
107         * ipa-inline.h (struct condition, type clause_t, struct predicate, struct
108         size_time_entry): New structures.
109         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
110         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit and
111         estimated_growth.
112         (edge_growth_cache_entry): New structure.
113         (node_growth_cache, edge_growth_cache): New global vars.
114         (estimate_growth): Turn into inline.
115         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
116         initialize_growth_caches, free_growth_caches): Declare.
117         (estimate_edge_growth): Rewrite.
118         (estimate_edge_time): Implement as inline cache lookup.
119         (reset_node_growth_cache, reset_edge_growth_cache): New inline functions.
120         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
121         (NUM_CONDITIONS): New constant.
122         (predicate_conditions): New enum.
123         (IS_NOT_CONSTANT): New constant.
124         (edge_removal_hook_holder): New var.
125         (node_growth_cache, edge_growth_cache): New global vars.
126         (true_predicate, single_cond_predicate, false_predicate, not_inlined_predicate,
127         add_condition, add_clause, and_predicates, or_predicates, predicates_equal_p,
128         evaulate_predicate, dump_condition, dump_clause, dump_predicate, account_size_time,
129         evaulate_conditions_for_edge): New functions.
130         (inline_summary_alloc): Move to heap.
131         (inline_node_removal_hook): Clear condition and entry vectors.
132         (inline_edge_removal_hook): New function.
133         (initialize_growth_caches, free_growth_caches): New function.
134         (dump_inline_summary): Update.
135         (edge_execution_predicate): New function.
136         (will_be_nonconstant_predicate): New function.
137         (estimate_function_body_sizes): Compute BB and constantness predicates.
138         (compute_inline_parameters): Do not clear estimated_growth.
139         (estimate_edge_size_and_time): New function.
140         (estimate_calls_size_and_time): New function.
141         (estimate_callee_size_and_time): New function.
142         (remap_predicate): New function.
143         (inline_merge_summary): New function.
144         (do_estimate_edge_time): New function based on...
145         (estimate_edge_time): ... this one.
146         (do_estimate_edge_growth): New function.
147         (do_estimate_growth): New function based on....
148         (estimate_growth): ... this one.
149         (inline_analyze_function): Analyze after deciding on jump functions.
150         (inline_read_section): New function.
151         (inline_read_summary): Use it.
152         (inline_write_summary): Write all the new data.
153         * ipa-prop.c (ipa_get_param_decl_index): Export.
154         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
155         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc): Declare.
156         (ipa_get_lattice): Move hre from ipa-cp.c
157         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
158         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
159         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
160         cgraph_edge_inlinable_p): Remove.
161         * cgraphunit.c: Include ipainline.h
162         (cgraph_process_new_functions): Update call of compute_inline_parameters.
163
164 2011-04-22  Richard Guenther  <rguenther@suse.de>
165
166         * tree.c (build_int_cst): Properly create canonicalized integer
167         constants.
168         (build_int_cst_type): Remove scary comments.
169
170 2011-04-22  Xinliang David Li  <davidxl@google.com>
171
172         * toplev.c (process_options): Enable -Werror=coverage-mismatch
173         by default when -Wno-error is not specified.
174         * opts-global.c (decode_options): Remove call to
175         control_warning_options.
176
177 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
178
179         PR tree-optimization/48717
180         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
181         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
182
183 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
184
185         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
186         definition where used.
187
188 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
189
190         PR c/48716
191         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
192         TREE_STATIC variables declared inside of some OpenMP construct.
193
194 2011-04-22  Martin Jambor  <mjambor@suse.cz>
195
196         PR middle-end/48585
197         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
198
199 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
200
201         PR c/36750
202         * c-typeck.c (pop_init_level): Do not warn about initializing
203         with ` = {0}'.
204
205 2011-04-22  Alan Modra  <amodra@gmail.com>
206
207         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
208         when returning call_cookie.
209         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
210         pointers, to functions with no more vector args than the current
211         function, and some non-local calls for ABI_V4.
212         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
213         sibcall_nonlocal_aix64): Combine to ..
214         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
215         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
216         (sibcall_value_nonlocal_aix<mode>): ..likewise.
217         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
218         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
219         operand.
220         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
221         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
222         sibcall_value_symbolic_64): Delete.
223
224 2011-04-21  Xinliang David Li  <davidxl@google.com>
225
226         * cgraph.h: Remove pid.
227         * cgraph.c: Remove pid.
228         * value-prof.c (init_node_map): New function.
229         (del_node_map): New function.
230         (find_func_by_funcdef_no): New function.
231         (gimple_ic_transform): Call new function.
232         * cgraphunit.c (cgraph_finalize_function): Remove pid.
233         * function.c (get_last_funcdef_no): New function.
234         * function.h (get_last_funcdef_no): New function.
235         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
236         to libgcov function.
237         (tree-profiling): Call node map init and delete function.
238
239 2011-04-21  Ian Lance Taylor  <iant@google.com>
240
241         * godump.c (go_format_type): Use exported Go name for anonymous
242         field name.
243
244 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
245
246         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
247         Call builtin_function_type_list instead of builtin_function_type.
248         (UNARY, BINARY, TRINARY, QUAD): Likewise.
249
250 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
251
252         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
253         build_function_type_list instead of build_function_type.
254         Delete variable `endlink'.
255
256 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
257
258         * config/s390/s390.c (s390_init_builtins): Call
259         build_function_type_list instead of build_function_type.
260
261 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
262
263         * config/ia64/ia64.c (ia64_init_builtins): Call
264         build_function_type_list instead of builtin_function_type.
265
266 2011-04-21  Easwaran Raman  <eraman@google.com>
267
268         * cfgexpand.c (stack_var): Remove OFFSET...
269         (add_stack_var): ...and its reference here...
270         (expand_stack_vars): ...and here.
271         (stack_var_cmp): Sort by descending order of size.
272         (partition_stack_vars): Change heuristic.
273         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
274         (dump_stack_var_partition): Add newline after each partition.
275
276 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
277             Jeff Law  <law@redhat.com>
278
279         * gengtype-state.c (read_a_state_token): Fix argument to
280         obstack_free.
281         * gengtype.c (matching_file_name_substitute): Likewise.
282
283 2011-04-21  Richard Guenther  <rguenther@suse.de>
284
285         PR lto/48703
286         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
287
288 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
289
290         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
291
292 2011-04-21  Richard Guenther  <rguenther@suse.de>
293
294         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
295         file name.
296
297 2011-04-21  Richard Guenther  <rguenther@suse.de>
298
299         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
300         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
301         Use DECL_P, not SSA_VAR_P.
302         (ptr_derefs_may_alias_p): Likewise.
303         (ptr_deref_may_alias_ref_p_1): Likewise.
304         (decl_refs_may_alias_p): Likewise.
305         (refs_may_alias_p_1): Likewise.
306         (ref_maybe_used_by_call_p_1): Likewise.
307         (call_may_clobber_ref_p_1): Likewise.
308         (indirect_ref_may_alias_decl_p): Assume indirect refrences
309         are either MEM_REF or TARGET_MEM_REF.
310         (indirect_refs_may_alias_p): Likewise.
311         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
312         for MEM_EXPR of indirect calls.
313
314 2011-04-21  Tristan Gingold  <gingold@adacore.com>
315
316         * vmsdbgout.c (write_srccorr): Compute file length from the string.
317         (dst_file_info_struct): Remove flen field.
318         (lookup_filename): Remove code that set flen field.
319
320 2011-04-21  Tristan Gingold  <gingold@adacore.com>
321
322         * config/ia64/ia64.c (ia64_start_function): Add a guard.
323
324 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
325
326         PR target/48708
327         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
328         vec_extract and vec_concat for non-SSE4_1 targets.
329
330 2011-04-21  Richard Guenther  <rguenther@suse.de>
331
332         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
333         return statements.
334
335 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
336
337         * config/i386/cygming.h (union tree_node, TREE): Don't define or
338         undefine.
339         (FILE): Don't undefine.
340
341 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
342
343         * config/alpha/alpha.c (struct machine_function): Use rtx, not
344         struct rtx_def *.
345         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
346         struct rtx_def *.
347         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
348         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
349         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
350         rtx_def *.
351         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
352         definitions where used.
353         * config/microblaze/microblaze.h (struct microblaze_args): Use
354         rtx, not struct rtx_def *.
355         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
356         rtx_def *.
357         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
358         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
359         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
360         not struct rtx_def *.
361         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
362         struct rtx_def *.
363         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
364         rtx_def *.
365         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
366
367 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
368
369         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
370         operand_equal_p to compare DR_BASE_ADDRESSes.
371         (vect_check_interleaving): Likewise.
372
373 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
374
375         PR target/46329
376         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
377         for all Neon struct constants.
378
379 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
380
381         * target.def (legitimate_constant_p): New hook.
382         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
383         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
384         * doc/tm.texi: Regenerate.
385         * hooks.h (hook_bool_mode_rtx_true): Declare.
386         * hooks.c (hook_bool_mode_rtx_true): Define.
387         * system.h (LEGITIMATE_CONSTANT_P): Poison.
388         * calls.c (precompute_register_parameters): Replace uses of
389         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
390         (emit_library_call_value_1): Likewise.
391         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
392         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
393         * ira-costs.c (scan_one_insn): Likewise.
394         * recog.c (general_operand, immediate_operand): Likewise.
395         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
396         * reload1.c (init_eliminable_invariants): Likewise.
397
398         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
399         mode argument.
400         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
401         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
402         argument.
403         (TARGET_LEGITIMATE_CONSTANT_P): Define.
404         * config/alpha/predicates.md (input_operand): Update call to
405         alpha_legitimate_constant_p.
406
407         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
408         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
409         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
410         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
411         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
412         (arm_legitimate_constant_p): New functions.
413         (arm_cannot_force_const_mem): Make static.
414
415         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
416
417         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
418         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
419         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
420         instead of bfin_legitimate_constant_p.
421         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
422         (TARGET_LEGITIMATE_CONSTANT_P): Define.
423
424         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
425
426         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
427
428         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
429         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
430         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
431         (frv_legitimate_constant_p): Make static.  Add a mode argument.
432
433         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
434         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
435         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
436
437         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
438         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
439         * config/i386/i386.c (legitimate_constant_p): Rename to...
440         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
441         argument.
442         (ix86_cannot_force_const_mem): Update accordingly.
443         (ix86_legitimate_address_p): Likewise.
444         (TARGET_LEGITIMATE_CONSTANT_P): Define.
445         * config/i386/i386.md: Update commentary.
446
447         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
448         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
449         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
450         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
451
452         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
453
454         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
455         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
456         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
457         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
458
459         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
460         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
461         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
462
463         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
464         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
465         (m32r_legitimate_constant_p): New function.
466
467         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
468         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
469         LEGITIMATE_CONSTANT_P.
470         (LEGITIMATE_CONSTANT_P): Delete.
471         * config/m68k/m68k.c (m68k_expand_prologue): Call
472         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
473         (m68k_legitimate_constant_p): New function.
474         * config/m68k/m68k.md: Update comments.
475
476         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
477         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
478         (mcore_legitimate_constant_p): New function.
479
480         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
481         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
482         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
483         Add a mode argument.
484         (mep_legitimate_address): Update accordingly.
485         (TARGET_LEGITIMATE_CONSTANT_P): Define.
486
487         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
488         Delete.
489         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
490         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
491         static.  Check OP's mode for VOIDmode.
492         (microblaze_legitimate_constant_p): New function.
493         (TARGET_LEGITIMATE_CONSTANT_P): Define.
494
495         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
496         * config/mips/mips.c (mips_legitimate_constant_p): New function.
497         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
498         (TARGET_LEGITIMATE_CONSTANT_P): Define.
499         * config/mips/predicates.md: Update comments.
500
501         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
502         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
503         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
504         (mmix_legitimate_constant_p): Make static, return a bool, and take
505         a mode argument.
506         (mmix_print_operand_address): Update accordingly.
507
508         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
509         Delete.
510         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
511         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
512         static.  Add a mode argument.
513         (TARGET_LEGITIMATE_CONSTANT_P): Define.
514
515         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
516
517         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
518         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
519         (pa_legitimate_constant_p): New function.
520
521         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
522
523         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
524         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
525         (pdp11_legitimate_constant_p): New function.
526
527         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
528         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
529         (rs6000_legitimate_constant_p): New function.
530
531         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
532         (rx_legitimate_constant_p): ...this.
533         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
534         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
535         (rx_legitimate_constant_p): ...this.
536         (TARGET_LEGITIMATE_CONSTANT_P): Define.
537         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
538
539         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
540         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
541         * config/s390/s390.c (legitimate_constant_p): Rename to...
542         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
543         and add a mode argument.
544         (TARGET_LEGITIMATE_CONSTANT_P): Define.
545
546         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
547
548         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
549         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
550         (sh_legitimate_constant_p): New function.
551
552         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
553         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
554         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
555         (legitimate_constant_p): Rename to...
556         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
557         argument.
558         (constant_address_p): Update accordingly.
559
560         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
561         argument and return a bool.
562         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
563         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
564         (spu_legitimate_constant_p): Add a mode argument and return a bool.
565         (spu_rtx_costs): Update accordingly.
566         * config/spu/predicates.md (vec_imm_operand): Likewise.
567
568         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
569
570         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
571         * config/v850/v850.c (v850_legitimate_constant_p): New function.
572         (TARGET_LEGITIMATE_CONSTANT_P): Define.
573
574         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
575         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
576         * config/vax/vax.c (legitimate_constant_p): Likewise.
577
578         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
579         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
580         (xtensa_legitimate_constant_p): New function.
581
582 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
583
584         * target.def (cannot_force_const_mem): Add a mode argument.
585         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
586         * doc/tm.texi: Regenerate.
587         * hooks.h (hook_bool_mode_rtx_false): Declare.
588         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
589         (hook_bool_mode_const_rtx_true): Likewise.
590         (hook_bool_mode_rtx_false): New function.
591         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
592         to be non-VOID.  Update call to cannot_force_const_mem.
593         (find_reloads): Update accordingly.
594         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
595         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
596         argument.
597         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
598         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
599         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
600         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
601         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
602         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
603         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
604         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
605         (m68k_cannot_force_const_mem): ...this new function.
606         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
607         argument.
608         (mips_const_insns, mips_legitimize_const_move): Update calls.
609         (mips_secondary_reload_class): Likewise.
610         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
611         (pa_cannot_force_const_mem): ...this new function.
612         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
613         (rs6000_cannot_force_const_mem): ...this new function.
614         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
615         argument.
616         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
617         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
618         to...
619         (xtensa_cannot_force_const_mem): ...this new function.
620
621 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
622
623         * config/mips/mips.c (mips16_build_function_stub): Call
624         build_function_type_list instead of build_function_type.
625         (mips16_build_call_stub): Likewise.
626
627 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
628
629         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
630         instead of build_function_type.
631
632 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
633
634         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
635         instead of build_function_type.
636
637 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
638
639         PR target/48678
640         * config/i386/i386.md (insv): Change operand 0 constraint to
641         "register_operand".  Change operand 1 and 2 constraint to
642         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
643         * config/i386/sse.md (sse4_1_pinsrb): Export.
644         (sse2_pinsrw): Ditto.
645         (sse4_1_pinsrd): Ditto.
646         (sse4_1_pinsrq): Ditto.
647         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
648         * config/i386/i386.c (ix86_expand_pinsr): New.
649
650 2011-04-20  Easwaran Raman  <eraman@google.com>
651
652         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
653         containing union type only with -fstrict-aliasing.
654
655 2011-04-20  Jim Meyering  <meyering@redhat.com>
656
657         Remove useless if-before-free tests.
658         * calls.c (expand_call, save_area): Likewise.
659         * cfgcleanup.c (try_forward_edges): Likewise.
660         * collect2.c (collect_execute): Likewise.
661         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
662         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
663         * coverage.c (coverage_checksum_string): Likewise.
664         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
665         * cselib.c (cselib_init): Likewise.
666         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
667         (df_set_clean_cfg): Likewise.
668         * function.c (free_after_compilation): Likewise.
669         * gcc.c (do_spec_1, main): Likewise.
670         * gcov.c (create_file_names): Likewise.
671         * gensupport.c (identify_predicable_attribute): Likewise.
672         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
673         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
674         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
675         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
676         * ipa-pure-const.c (local_pure_const): Likewise.
677         * ipa-reference.c (propagate): Likewise.
678         * ira-costs.c (free_ira_costs): Likewise.
679         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
680         * matrix-reorg.c (mat_free): Likewise.
681         * prefix.c (get_key_value): Likewise.
682         * profile.c (compute_value_histograms): Likewise.
683         * reload1.c (free_reg_equiv): Likewise.
684         * sched-deps.c (free_deps): Likewise.
685         * sel-sched-ir.c (fence_clear): Likewise.
686         * sese.c (set_rename, if_region_set_false_region): Likewise.
687         * tree-data-ref.c (free_rdg): Likewise.
688         * tree-eh.c (lower_try_finally): Likewise.
689         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
690         * tree-ssa-live.c (delete_var_map): Likewise.
691         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
692         * tree-ssa-pre.c (phi_trans_add): Likewise.
693
694 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
695
696         PR tree-optimization/48611
697         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
698         beyond ERT_MUST_NOT_THROW region.
699
700 2011-04-20  Catherine Moore  <clm@codesourcery.com>
701
702         * config/mips/mips.opt (mfix-24k): New.
703         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
704         * config/mips/mips.md (length): Increase by 4 for stores if
705         fixing 24K errata.
706         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
707         all noreorder if fixing 24K errata.
708         * doc/invoke.texi: Document mfix-24k.
709
710 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
711
712         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
713         quad-word modes, reduce to 9-bit index range when above 1016 limit.
714
715 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
716
717         * config/arm/arm.c (arm_gen_constant): Move movw support ....
718         (const_ok_for_op): ... to here.
719
720 2011-04-20  Kai Tietz  <ktietz@redhat.com>
721
722         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
723         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
724
725 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
726
727         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
728
729 2011-04-20  Richard Guenther  <rguenther@suse.de>
730
731         PR tree-optimization/47892
732         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
733         are if-convertible.
734
735 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
736
737         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
738
739 2011-04-20  Tristan Gingold  <gingold@adacore.com>
740
741         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
742
743 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
744
745         PR target/18145
746
747         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
748         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
749         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
750         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
751         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
752
753         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
754         New prototype.
755
756         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
757         (avr_asm_named_section, avr_asm_output_aligned_common,
758         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
759         New functions to update...
760         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
761         (avr_asm_init_sections): Overwrite section callbacks for
762         data_section, bss_section.
763         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
764         from here to...
765         (avr_file_end): ...here.
766
767 2011-04-20  Richard Guenther  <rguenther@suse.de>
768
769         PR middle-end/48695
770         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
771         objects and types here.  Adjust for their offset before comparing.
772
773 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
774
775         * tree-vect-stmts.c (vectorizable_store): Only chain one related
776         statement per copy.
777
778 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
779
780         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
781         (GIMPLE_H): Include $(INTERNAL_FN_H).
782         (OBJS-common): Add internal-fn.o.
783         (internal-fn.o): New rule.
784         * internal-fn.def: New file.
785         * internal-fn.h: Likewise.
786         * internal-fn.c: Likewise.
787         * gimple.h: Include internal-fn.h.
788         (GF_CALL_INTERNAL): New gf_mask.
789         (gimple_statement_call): Put fntype into a union with a new
790         internal_fn field.
791         (gimple_build_call_internal): Declare.
792         (gimple_build_call_internal_vec): Likewise.
793         (gimple_call_same_target_p): Likewise.
794         (gimple_call_internal_p): New function.
795         (gimple_call_internal_fn): Likewise.
796         (gimple_call_fntype): Return null for internal calls.
797         (gimple_call_set_fntype): Assert that the function is not internal.
798         (gimple_call_set_fn): Likewise.
799         (gimple_call_set_fndecl): Likewise.
800         (gimple_call_set_internal_fn): New function.
801         (gimple_call_addr_fndecl): Handle null functions.
802         (gimple_call_return_type): Likewise null types.
803         * gimple.c (gimple_build_call_internal_1): New function.
804         (gimple_build_call_internal): Likewise.
805         (gimple_build_call_internal_vec): Likewise.
806         (gimple_call_same_target_p): Likewise.
807         (gimple_call_flags): Handle calls to internal functions.
808         (gimple_call_fnspec): New function.
809         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
810         (gimple_has_side_effects): Handle null functions.
811         (gimple_rhs_has_side_effects): Likewise.
812         (gimple_call_copy_skip_args): Handle calls to internal functions.
813         * cfgexpand.c (expand_call_stmt): Likewise.
814         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
815         * gimple-fold.c (gimple_fold_call): Handle null functions.
816         (gimple_fold_stmt_to_constant_1): Don't fold
817         calls to internal functions.
818         * gimple-low.c (gimple_check_call_args): Handle calls to internal
819         functions.
820         * gimple-pretty-print.c (dump_gimple_call): Likewise.
821         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
822         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
823         (do_warn_unused_result): Likewise.
824         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
825         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
826         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
827         the target of a call.
828         (initialize_hash_element): Update accordingly.
829         (hashable_expr_equal_p): Use gimple_call_same_target_p.
830         (iterative_hash_hashable_expr): Handle calls to internal functions.
831         (print_expr_hash_elt): Likewise.
832         * tree-ssa-pre.c (can_value_number_call): Likewise.
833         (eliminate): Handle null functions.
834         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
835         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
836         (find_func_aliases): Likewise.
837         * value-prof.c (gimple_ic_transform): Likewise.
838         (gimple_indirect_call_to_profile): Likewise.
839         * lto-streamer-in.c (input_gimple_stmt): Likewise.
840         * lto-streamer-out.c (output_gimple_stmt): Likewise.
841
842 2011-04-19  Jan Hubicka  <jh@suse.cz>
843
844         * ipa-inline-transform.c (save_inline_function_body): Add comments.
845         * ipa-inline.c (inline_small_functions): Compute summaries first,
846         populate heap later.
847
848 2011-04-19  Jan Hubicka  <jh@suse.cz>
849
850         * cgraph.h (save_inline_function_body): Remove.
851         * ipa-inline-transform.c: New file, broke out of...
852         * ipa-inline.c: ... this one; Update toplevel comment.
853         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
854         make global.
855         (update_noncloned_frequencies): Move to ipa-inline-transform.c
856         (cgraph_mark_inline_edge): Rename to inline_call; move to
857         ipa-inline-transform.c.
858         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
859         move to ipa-inline-transform.c
860         (recursive_inlining, inline_small_functions, flatten_function,
861         ipa_inline, inline_always_inline_functions,
862         early_inline_small_functions): Update.
863         (inline_transform): Move to ipa-inline-transform.c.
864         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
865         Declare.
866         * Makefile.in (ipa-inline-transform.o): New file.
867         * cgraphunit.c (save_inline_function_body): Move to
868         ipa-inline-transform.c
869
870 2011-04-19  DJ Delorie  <dj@redhat.com>
871
872         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
873         registers if we already know there aren't any.
874         (m32c_emit_epilogue): Don't emit a barrier here.
875         (m32c_emit_eh_epilogue): Likewise.
876         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
877         operands at expand time.
878         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
879         int" wchar type.
880         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
881         duplicates.  Provide aliases instead.
882         * config/m32c/prologue.md (eh_return): Emit a barrier here.
883         (eh_epilogue): Add a "(return)" here as a hint to other parts of
884         the compiler.
885
886 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
887
888         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
889         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
890         (general_or_i64_p, sparc_register_move_cost): New function.
891
892 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
893
894         * doc/install.texi (Configuration, --enable-threads): Remove mach.
895         Add lynx, mipssde.  Sort table.
896
897 2011-04-19  Xinliang David Li  <davidxl@google.com>
898
899         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
900         not negative.
901
902 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
903
904         PR target/48678
905         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
906         is a SUBREG with non-MODE_INT mode inside of it.
907
908 2011-04-19  Martin Jambor  <mjambor@suse.cz>
909
910         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
911         also according to actual contants.
912         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
913         (gimple_fold_call): Use it.
914         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
915
916 2011-04-19  Martin Jambor  <mjambor@suse.cz>
917
918         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
919         non-pointer assignments.
920
921 2011-04-19  Martin Jambor  <mjambor@suse.cz>
922
923         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
924         account anc_offset and otr_type from the indirect edge info.
925         * ipa-prop.c (get_ancestor_addr_info): New function.
926         (compute_complex_ancestor_jump_func): Assignment analysis moved to
927         get_ancestor_addr_info, call it.
928         (ipa_note_param_call): Do not initialize information about polymorphic
929         calls, return the indirect call graph edge.  Remove the last
930         parameter, adjust all callers.
931         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
932         parameters.  Initialize polymorphic information in the indirect edge.
933
934 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
935
936         PR lto/48148
937         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
938         the types if they have different enumeration identifiers.
939
940 2011-04-19  Jan Hubicka  <jh@suse.cz>
941
942         * cgraph.h (cgraph_optimize_for_size_p): Declare.
943         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
944         * predict.c (cgraph_optimize_for_size_p): Break out from ...
945         (optimize_function_for_size_p) ... here.
946
947 2011-04-19  Richard Guenther  <rguenther@suse.de>
948
949         PR lto/48207
950         * tree.c (free_lang_data): Do not reset the decl-assembler-name
951         langhook.
952
953 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
954
955         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
956         if DECL_NO_INLINE_WARNING_P is set on the function.
957
958 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
959
960         PR fortran/47976
961         * reload1.c (inc_for_reload): Return void. All callers changed.
962         (emit_input_reload_insns): Don't try to delete previous output
963         reloads to a register, or record spill_reg_store for autoincs.
964
965 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
966
967         * gengtype.h: Updated copyright year.
968         (struct input_file_st): Add inpisplugin field.
969         (type_fileloc): New function.
970         * gengtype.c
971         (write_typed_struct_alloc_def): Add gcc_assert.
972         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
973         (write_typed_alloc_defns): Don't output for plugin files.
974         (input_file_by_name): Clear inpisplugin field.
975         (main): Set inpisplugin field for plugin files.
976
977 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
978
979         * gengtype-state.c (string_eq): New.
980         (read_state): Use string_eq instead of strcmp when creating the
981         state_ident_tab.
982
983 2011-04-19  Wei Guozhi  <carrot@google.com>
984
985         PR target/47855
986         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
987         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
988         linkage.
989         * config/arm/constraints.md (Uu): New constraint.
990         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
991
992 2011-04-19  Tristan Gingold  <gingold@adacore.com>
993
994         * config.gcc (-*-*-*vms): Added.
995         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
996         definitions moved.
997         * config/vms/vms-ld.c: New file.
998         * config/vms/vms-ar.c: New file.
999         * config/vms/t-vmsnative: New file.
1000
1001 2011-04-18  Xinliang David Li  <davidxl@google.com>
1002
1003         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1004
1005 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1006
1007         PR middle-end/48661
1008         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1009         if TREE_TYPE (v) is non-NULL.
1010
1011         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1012         gimple_get_virt_mehtod_for_binfo.
1013         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1014         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1015         callers.
1016         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1017
1018 2011-04-18  Michael Matz  <matz@suse.de>
1019             Steve Ellcey  <sje@cup.hp.com>
1020
1021         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1022         use its mode as source mode if it isn't VOIDmode.
1023
1024 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
1025
1026         * doc/passes.texi: Fill crossref nodes.
1027
1028 2011-04-18  Jim Meyering  <meyering@redhat.com>
1029
1030         Fix doubled-word typos in comments and strings
1031         * config/alpha/vms-unwind.h: s/for for/for/
1032         * config/arm/unwind-arm.h: Likewise.
1033         * config/microblaze/microblaze.c: Likewise.
1034         * config/sh/constraints.md: s/in in/in/
1035         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1036
1037 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
1038
1039         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1040         (AVX_FLOAT_MODE_P): Ditto.
1041         (AVX128_VEC_FLOAT_MODE_P): Ditto.
1042         (AVX256_VEC_FLOAT_MODE_P): Ditto.
1043         (AVX_VEC_FLOAT_MODE_P): Ditto.
1044         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1045         (UNSPEC_MASKSTORE): Ditto.
1046         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1047         Merge from <sse>_movmsk<ssemodesuffix> and
1048         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
1049         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
1050         iterator.
1051         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1052         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1053         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1054
1055 2011-04-18  Jan Hubicka  <jh@suse.cz>
1056
1057         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1058
1059         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1060         (want_inline_function_called_once_p): Break out the logic from
1061         ipa_inline.
1062         (edge_badness): Ensure that profile is not misupdated.
1063         (lookup_recursive_calls): Prioritize by call frequencies.
1064         (inline_small_functions): Move program size estimates here;
1065         actually process whole queue even when unit growth has been
1066         met. (to properly compute inline_failed reasons and for the
1067         case unit size decrease.) Revisit comments on recursive inlining.
1068         (ipa_inline): Remove unit summary code; first inline hot calls
1069         of functions called once, cold calls next.
1070         (order, nnodes): Remove unused variables.
1071         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1072         (GTFILES): Remove ipa-inline.c
1073         * sel-sched.c (fill_insns): Silence uninitialized var warning.
1074
1075 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1076
1077         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1078
1079 2011-04-18  Jie Zhang  <jie@codesourcery.com>
1080             Richard Earnshaw  <rearnsha@arm.com>
1081
1082         * arm.c (neon_builtin_type_bits): Remove.
1083         (typedef enum neon_builtin_mode): New.
1084         (T_MAX): Don't define.
1085         (typedef enum neon_builtin_datum): Remove bits, codes[],
1086         num_vars and base_fcode.  Add mode, code and fcode.
1087         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1088         VAR10): Change accordingly.
1089         (neon_builtin_data[]): Change accordingly
1090         (arm_init_neon_builtins): Change accordingly.
1091         (neon_builtin_compare): Remove.
1092         (locate_neon_builtin_icode): Remove.
1093         (arm_expand_neon_builtin): Change accordingly.
1094
1095         * arm.h (enum arm_builtins): Move to ...
1096         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1097
1098         * arm.c (arm_builtin_decl): Declare.
1099         (TARGET_BUILTIN_DECL): Define.
1100         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1101         (arm_builtin_decls[]): New.
1102         (arm_init_neon_builtins): Store builtin declarations in
1103         arm_builtin_decls[].
1104         (arm_init_tls_builtins): Likewise.
1105         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
1106         (arm_builtin_decl): New.
1107
1108 2011-04-18  Richard Guenther  <rguenther@suse.de>
1109
1110         * tree.c (upper_bound_in_type): Build properly canonicalized
1111         INTEGER_CSTs.
1112         (lower_bound_in_type): Likewise.
1113
1114 2011-04-18  Richard Guenther  <rguenther@suse.de>
1115
1116         * gimple.h (gimple_call_addr_fndecl): New function.
1117         (gimple_call_fndecl): Use it.
1118         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1119         for direct calls.
1120         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1121         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1122
1123 2011-04-18  Richard Guenther  <rguenther@suse.de>
1124
1125         PR middle-end/48650
1126         * tree.c (build_string): STRING_CST is now derived from tree_typed.
1127
1128 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1129
1130         PR lto/48492
1131         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1132         DECL_IN_CONSTANT_POOL without RTL.
1133
1134 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
1135             Ira Rosen  <ira.rosen@linaro.org>
1136
1137         PR target/48252
1138         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1139         to match neon_vzip/vuzp/vtrn_internal.
1140         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1141         outputs explicitly dependent on both inputs.
1142         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1143
1144 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1145
1146         PR tree-optimization/48616
1147         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1148         whether the shift is by scalar or vector based on whether all SLP
1149         scalar stmts have the same rhs.
1150
1151 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
1152
1153         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1154         memory operands.
1155
1156 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1157
1158         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1159         registers.
1160
1161 2011-04-17  Jan Hubicka  <jh@suse.cz>
1162
1163         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1164         * cgrpahunit.c (cgraph_finalize_function): Do not set
1165         finalized_by_frontend.
1166         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1167         finalized_by_frontend.
1168
1169 2011-04-17  Jan Hubicka  <jh@suse.cz>
1170
1171         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1172         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1173         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1174         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1175         method.
1176         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1177         gimple-fold.c
1178         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1179
1180 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1181
1182         PR lto/48538
1183         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1184         is non-null before accessing it.
1185         (input_cgraph): Remove trailing spaces.
1186
1187 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1188
1189         * params.def (sms-min-sc): New param flag.
1190         * modulo-sched.c (sms_schedule): Use it.
1191         * doc/invoke.texi (sms-min-sc): Document it.
1192
1193 2011-04-17  Jan Hubicka  <jh@suse.cz>
1194
1195         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1196         present, also set gimple_call_set_cannot_inline.
1197         * ipa-inline.c: Update toplevel comment.
1198         (MAX_TIME): Remove.
1199         (cgraph_clone_inlined_nodes): Fix linebreaks.
1200         (cgraph_check_inline_limits): Restructure to ...
1201         (caller_growth_limits): ... this one; be more tolerant
1202         on growth in nested inline chains; add explanatory comment;
1203         fix stack accounting thinko introduced by previous patch.
1204         (cgraph_default_inline_p): Remove.
1205         (report_inline_failed_reason): New function.
1206         (can_inline_edge_p): New function.
1207         (can_early_inline_edge_p): New function.
1208         (leaf_node_p): Move upwards in file.
1209         (want_early_inline_function_p): New function.
1210         (want_inline_small_function_p): New function.
1211         (want_inline_self_recursive_call_p): New function.
1212         (cgraph_edge_badness): Rename to ...
1213         (edge_badness) ... this one; fix linebreaks.
1214         (update_edge_key): Update call of edge_baddness; add
1215         detailed dump about queue updates.
1216         (update_caller_keys): Use can_inline_edge_p and
1217         want_inline_small_function_p.
1218         (cgraph_decide_recursive_inlining): Rename to...
1219         (recursive_inlining): Use can_inline_edge_p and
1220         want_inline_self_recursive_call_p; simplify and remove no longer
1221         valid FIXME.
1222         (cgraph_set_inline_failed): Remove.
1223         (add_new_edges_to_heap): Use can_inline_edge_p and
1224         want_inline_small_function_p.
1225         (cgraph_decide_inlining_of_small_functions): Rename to ...
1226         (inline_small_functions): ... this one; cleanup; use
1227         can/want predicates; cleanup debug ouput; work edges till fibheap
1228         is exhausted and do not stop once unit growth is reached; remove
1229         later loop processing remaining edges.
1230         (cgraph_flatten): Rename to ...
1231         (flatten_function): ... this one; use can_inline_edge_p
1232         and can_early_inline_edge_p predicates.
1233         (cgraph_decide_inlining): Rename to ...
1234         (ipa_inline): ... this one; remove unreachable nodes before
1235         inlining functions called once; simplify the pass.
1236         (cgraph_perform_always_inlining): Rename to ...
1237         (inline_always_inline_functions): ... this one; use
1238         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1239         (cgraph_decide_inlining_incrementally): Rename to ...
1240         (early_inline_small_functions): ... this one; simplify
1241         using new predicates; cleanup; make dumps prettier.
1242         (cgraph_early_inlining): Rename to ...
1243         (early_inliner): newer inline regular functions into always-inlines;
1244         fix updating of call stmt summaries.
1245         (pass_early_inline): Update for new names.
1246         (inline_transform): Fix formating.
1247         (gate_cgraph_decide_inlining): Rename to ...
1248         (pass_ipa_inline): ... this one.
1249         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1250         * ipa-inline-analysis.c (dump_inline_summary): Update.
1251         (compute_inline_parameters): Do not compute disregard_inline_limits;
1252         look for mismatching arguments.
1253         (estimate_growth): Fix handlig of non-trivial self recursion.
1254         (inline_read_summary): Do not read info->disregard_inline_limits.
1255         (inline_write_summary): Do not write info->disregard_inline_limits.
1256         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1257         and move all checks into can_inline_edge_p predicate; re-enable code
1258         comparing optimization levels.
1259         (expand_call_inline): Do not test inline_forbidden_into_p.
1260         * Makefile.in (ipa-inline.o): Update arguments.
1261
1262 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1263
1264         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1265
1266 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1267
1268         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1269
1270 2011-04-17  Michael Matz  <matz@suse.de>
1271
1272         PR tree-optimization/48622
1273         PR lto/48645
1274         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1275         in same order as they're written.
1276
1277 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1278
1279         * config/pa/predicates.md: Reorganize and simplify predicates.
1280         Eliminate duplicate code checks.
1281         (arith_operand): Rename to arith14_operand
1282         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1283         * config/pa/pa.md: Use renamed operands.
1284         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1285         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1286         arith11_operand, adddi3_operand, indexed_memory_operand,
1287         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1288         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1289         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1290         move_dest_operand, move_src_operand, prefetch_cc_operand,
1291         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1292         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1293         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1294         div_operand, int5_operand, movb_comparison_operator,
1295         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1296         arith_double_operand, ireg_operand, lhs_lshift_operand,
1297         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1298         integer_store_memory_operand): Likewise.
1299         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1300         (integer_store_memory_operand, read_only_operand,
1301         function_label_operand, borx_reg_operand,
1302         non_hard_reg_operand): Likewise.
1303         (eq_neq_comparison_operator): Delete unused operator.
1304         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1305         function_label_operand.
1306         (emit_move_sequence): Likewise.
1307
1308 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1309
1310         * config/i386/sse.md (sseunpackmode): New mode attribute.
1311         (ssepackmode): Ditto.
1312         (vec_pack_trunc_<mode>): Macroize expander from
1313         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1314         (vec_unpacks_lo_<mode>): Macroize expander from
1315         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1316         (vec_unpacks_hi_<mode>): Macroize expander from
1317         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1318         (vec_unpacku_lo_<mode>): Macroize expander from
1319         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1320         (vec_unpacku_hi_<mode>): Macroize expander from
1321         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1322         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1323         ix86_expand_sse4_unpack.
1324         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1325
1326 2011-04-16  Jan Hubicka  <jh@suse.cz>
1327
1328         * cgraphbuild.c: Include ipa-inline.h.
1329         (reset_inline_failed): Use initialize_inline_failed.
1330         * cgraph.c: Include ipa-inline.h.
1331         (cgraph_create_node_1): Do not initialize estimated_growth.
1332         (initialize_inline_failed): More to ipa-inline-analysis.c
1333         (dump_cgraph_node): Do not dump inline flags.
1334         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1335         and disregard_inline_limits flags.
1336         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1337         time, size, estimated_growth.
1338         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1339         Update.
1340         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1341         DECL_DISREGARD_INLINE_LIMITS.
1342         (cgraph_analyze_function): Do not initialize
1343         node->local.disregard_inline_limits.
1344         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1345         inlinable, versionable and disregard_inline_limits.
1346         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1347         cgraph_check_inline_limits, cgraph_default_inline_p,
1348         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1349         add_new_edges_to_heap): Update.
1350         (cgraph_decide_inlining_of_small_function): Update; set
1351         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1352         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1353         cgraph_decide_inlining_incrementally): Update.
1354         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1355         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1356         time, size and estimated_growth parameters.
1357         (estimate_edge_growth): Update.
1358         (initialize_inline_failed): Declare.
1359         * ipa-split.c: Include ipa-inline.h
1360         (execute_split_functions): Update.
1361         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1362         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1363         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1364         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1365         estimated_growth to INT_MIN.
1366         (inline_node_duplication_hook): Likewise.
1367         (dump_inline_summary): Dump new fields.
1368         (compute_inline_parameters): Update.
1369         (estimate_edge_time, estimate_time_after_inlining,
1370         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1371         inline_write_summary):
1372         (initialize_inline_failed): Move here from cgraph.c.
1373         * tree-sra.c: Include ipa-inline.h.
1374         (ipa_sra_preliminary_function_checks): Update.
1375         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1376         ipa-inline.h.
1377
1378 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1379
1380         * config/i386/sse.md (V16): New mode iterator.
1381         (VI1, VI8): Ditto.
1382         (AVXMODEQI, AVXMODEDI): Remove.
1383         (sse2, sse3): New mode attribute.
1384         (mov<mode>): Use V16 mode iterator.
1385         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1386         (push<mode>1): Use V16 mode iterator.
1387         (movmisalign<mode>): Ditto.
1388         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1389         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1390         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1391         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1392         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1393         avx_movdqu<avxmodesuffix>.
1394         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1395         *avx_movdqu<avxmodesuffix>.
1396         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1397         avx_lddqu<avxmodesuffix>.
1398         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1399         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1400         avx_movnt<AVXMODEDI:mode>.
1401         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1402         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1403
1404 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1405
1406         PR target/48629
1407         * haifa-sched.c (prune_ready_list, schedule_block): Use
1408         sched_pressure_p rather than flag_sched_pressure.
1409
1410 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1411
1412         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1413         cgraph_get_node instead of cgraph_get_create_node.
1414
1415 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1416
1417         * cfgexpand.c (expand_debug_expr): Use
1418         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1419
1420 2011-04-15  Michael Matz  <matz@suse.de>
1421
1422         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1423         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1424         * function.c (gimplify_parameters): Ditto.
1425         * gimplify.c (gimplify_vla_decl): Ditto.
1426
1427         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1428         (gimple_call_set_alloca_for_var): New inline function.
1429         (gimple_call_alloca_for_var_p): Ditto.
1430         * gimple.c (gimple_build_call_from_tree): Remember
1431         CALL_ALLOCA_FOR_VAR_P state.
1432         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1433
1434         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1435         calls if they were for VLA objects.
1436
1437 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1438
1439         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1440         of ADR_EXPRs.
1441
1442 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1443
1444         PR middle-end/48601
1445         * tree-emutls.c (lower_emutls_function_body): Call
1446         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1447         result is non-NULL.
1448
1449 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1450
1451         * c-decl.c (detect_field_duplicates): Call
1452         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1453
1454 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1455
1456         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1457         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1458         * ipa-pure-const.c (check_stmt): Call it.
1459         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1460
1461 2011-04-15  Richard Guenther  <rguenther@suse.de>
1462
1463         PR tree-optimization/48290
1464         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1465         Properly decide inhibiting propagation based on the valueized
1466         operand.  Do loop-closed SSA form preserving here ...
1467         (init_copy_prop): ... not here.
1468
1469 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         PR target/48612
1472         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1473         (*ieee_smax<mode>3): Likewise.
1474
1475 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1476
1477         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1478         Replace match_operand with match_dup for the third operand in
1479         these expanders.
1480
1481 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1482
1483         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1484         to track processing of conditionals.  Update all callers.
1485         (try_combine, simplify_if_then_else): Update.
1486
1487 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1488
1489         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1490         -fsched-pressure.
1491
1492 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1493
1494         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1495         instead of match_operand for operand 3.
1496
1497 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1498
1499         * recog.h (insn_operand_data): Add an "allows_mem" field.
1500         * genoutput.c (output_operand_data): Initialize it.
1501         * optabs.c (maybe_legitimize_operand_same_code): New function.
1502         (maybe_legitimize_operand): Use it when matching the original
1503         op->value.
1504
1505 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1506
1507         * gimplify.c: Fix issues in comments throughout.
1508         (voidify_wrapper_expr): Fix long line.
1509         (build_stack_save_restore): Likewise.
1510         (gimplify_loop_expr): Likewise.
1511         (gimplify_compound_lval): Likewise.
1512         (gimplify_init_ctor_eval): Likewise.
1513         (gimplify_modify_expr_rhs): Likewise.
1514         (omp_notice_threadprivate_variable): Likewise.
1515
1516 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1517
1518         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1519         original one if this is not a builtin function.
1520
1521 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1522
1523         PR target/48605
1524         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1525         offset it as needed based on top 2 bits in operands[3], change
1526         MEM mode to SFmode and mask those 2 bits away from operands[3].
1527
1528 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1529
1530         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1531         change from objc_declare_protocols() to objc_declare_protocol().
1532
1533 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1534
1535         * config/i386/sse.md (sse4_1): New mode attribute.
1536         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1537         avx_blend<ssemodesuffix><avxmodesuffix> and
1538         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1539         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1540         avx_blendv<ssemodesuffix><avxmodesuffix> and
1541         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1542         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1543         avx_dp<ssemodesuffix><avxmodesuffix> and
1544         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1545         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1546         (sse4_1_packusdw): Merge with *avx_packusdw.
1547         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1548         (sse4_1_pblendw): Merge with *avx_pblendw.
1549         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1550         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1551         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1552         VF mode iterator.
1553         (sse4_1_round<ssescalarmodesuffix>): Merge with
1554         *avx_round<ssescalarmodesuffix>.
1555         (aesenc): Merge with *avx_aesenc.
1556         (aesenclast): Merge with *avx_aesenclast.
1557         (aesdec): Merge with *avx_aesdec.
1558         (aesdeclast): Merge with *avx_aesdeclast.
1559         (pclmulqdq): Merge with *pclmulqdq.
1560         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1561         New predicate.
1562         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1563
1564 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1565
1566         PR middle-end/48608
1567         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1568         (align_local_variable): This.  Update DECL_ALIGN.
1569         (add_stack_var): Updated.
1570         (expand_one_stack_var): Likewise.
1571
1572 2011-04-14  Richard Guenther  <rguenther@suse.de>
1573
1574         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1575         Remove.
1576         (dse_initialize_block_local_data, dse_leave_block,
1577         record_voperand_set, get_stmt_uid): Likewise.
1578         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1579         (dse_optimize_stmt): Remove voperand set handling code.
1580         Simplify and improve to handle any kind of killing stmt.
1581         (dse_record_phi): Remove.
1582         (dse_enter_block): Simplify.
1583         (tree_ssa_dse): Likewise.
1584         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1585
1586 2011-04-14  Jan Hubicka  <jh@suse.cz>
1587
1588         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1589         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1590         (cgraph_local_info): Remove inline_summary.
1591         * ipa-cp.c: Include ipa-inline.h.
1592         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1593         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1594         accesor.
1595         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1596         (input_overwrite_node): Do not set inline summary.
1597         (input_node): Do not stream inline summary.
1598         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1599         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1600         growth; we do not have inline parameters computed for that anyway.
1601         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1602         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1603         (inline_summary_t): New type and VECtor.
1604         (debug_inline_summary, dump_inline_summaries): Declare.
1605         (inline_summary): Use VOCtor.
1606         (estimate_edge_growth): Kill hack computing call stmt size directly.
1607         * lto-section-in.c (lto_section_name): Add inline section.
1608         * ipa-inline-analysis.c: Include lto-streamer.h
1609         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1610         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1611         (inline_summary_vec): Define.
1612         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1613         dump_inline_summaries): New functions.
1614         (estimate_function_body_sizes): Properly compute size/time of outgoing
1615         calls.
1616         (compute_inline_parameters): Alloc inline_summary; do not compute
1617         size/time of incomming calls.
1618         (estimate_edge_time): Avoid missing time summary hack.
1619         (inline_read_summary): Read inline summary info.
1620         (inline_write_summary): Write inline summary info.
1621         (inline_free_summary): Free all hooks and inline summary vector.
1622         * lto-streamer.h: Add LTO_section_inline_summary section.
1623         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1624         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1625
1626 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1627
1628         * tree-vectorizer.h (vect_strided_store_supported): Add a
1629         HOST_WIDE_INT argument.
1630         (vect_strided_load_supported): Likewise.
1631         (vect_permute_store_chain): Return void.
1632         (vect_transform_strided_load): Likewise.
1633         (vect_permute_load_chain): Delete.
1634         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1635         count argument.  Check that the count is a power of two.
1636         (vect_strided_load_supported): Likewise.
1637         (vect_permute_store_chain): Return void.  Update after above changes.
1638         Assert that the access is supported.
1639         (vect_permute_load_chain): Likewise.
1640         (vect_transform_strided_load): Return void.
1641         * tree-vect-stmts.c (vectorizable_store): Update calls after
1642         above interface changes.
1643         (vectorizable_load): Likewise.
1644         (vect_analyze_stmt): Don't check for strided powers of two here.
1645
1646 2011-04-14  Richard Guenther  <rguenther@suse.de>
1647
1648         PR tree-optimization/48590
1649         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1650         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1651         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1652         BUILT_IN_STACK_SAVE.
1653         * tree-ssa-dce.c (propagate_necessity): Handle
1654         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1655
1656 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1657
1658         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1659         objc_declare_class.
1660
1661 2011-04-14  Richard Guenther  <rguenther@suse.de>
1662
1663         * tree.h (get_object_alignment_1): Declare.
1664         * builtins.c (get_object_alignment_1): Split out worker from ...
1665         (get_object_alignment): ... here.
1666         * fold-const.c (get_pointer_modulus_and_residue): Use
1667         get_object_alignment_1.
1668
1669 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1670
1671         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1672         type parameter.
1673         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1674         parameter.  Generalise code to handle arrays as well as vectors.
1675         (vect_setup_realignment): Update accordingly.
1676         * tree-vect-stmts.c (vectorizable_store): Likewise.
1677         (vectorizable_load): Likewise.
1678
1679 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1680
1681         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1682         within the per-copy loop.
1683
1684 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1685
1686         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1687         in the dump file.
1688
1689 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1690
1691         * doc/options.texi (Negative): Explicitly mention that the
1692         Negative chain must be circular.
1693
1694 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1695
1696         * function.h (block_chainon): Declare.
1697         * function.c (block_chainon): Define.
1698
1699 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1700             Eric Weddington  <eric.weddington@atmel.com>
1701             Georg-Johann Lay <avr@gjlay.de>
1702
1703         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1704         New Includes
1705         (avr_init_builtins, avr_expand_builtin,
1706         avr_expand_delay_cycles, avr_expand_unop_builtin,
1707         avr_expand_binop_builtin ): New functions.
1708         (avr_builtin_id): New enum
1709         (struct avr_builtin_description): New struct
1710         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1711         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1712
1713         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1714         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1715         UNSPECV_DELAY_CYCLES): new enumeration values
1716         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1717         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1718         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1719         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1720         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1721         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1722         "fmulsu"): New insns
1723
1724         * config/avr/avr-c.c: fix line endings
1725         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1726         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1727         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1728         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1729         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1730
1731         * doc/extend.texi (AVR Built-in Functions): New node
1732         (Target Builtins): Add documentation of AVR
1733         built-in functions.
1734
1735 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1736
1737         PR target/44643
1738         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1739         alone. Error if non-const data has attribute progmem.
1740
1741 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1742
1743         * tree.h (struct tree_constructor): Include tree_typed instead of
1744         tree_common.
1745         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1746         TS_TYPED instead of TS_COMMON.
1747
1748 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1749
1750         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1751         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1752         (sse2_psadbw): Merge with *avx_psadbw.
1753         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1754         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1755         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1756         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1757         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1758         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1759         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1760         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1761         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1762         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1763         (ssse3_palignrti): Merge with *avx_palignrti.
1764
1765 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1766
1767         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1768         * tree-ssanames.c (fini_ssanames): VEC_free it.
1769         (make_ssa_name_fn): Update for VECness of free_ssanames.
1770         (release_ssa_name, release_dead_ssa_names): Likewise.
1771         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1772         tree_common.
1773         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1774         TS_TYPED instead of TS_COMMON.
1775
1776 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1777
1778         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1779         statistics_counter_event.
1780         * tree-ssa-copyrename.c (stats): Define.
1781         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1782         statistics_counter_event.
1783         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1784         (bswap_stats, widen_mul_stats): Define.
1785         (insert_reciprocals): Increment rdivs_inserted.
1786         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1787         rfuncs_inserted.  Add calls to statistics_counter_event.
1788         (execute_cse_sincos_1): Increment inserted.
1789         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1790         statistics_counter_event.
1791         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1792         of bswap_stats.  Add calls to statistics_counter_event.
1793         (convert_mult_to_widen): Increment widen_mults_inserted.
1794         (convert_plusminus_to_widen): Increment maccs_inserted.
1795         (convert_mult_to_fma): Increment fmas_inserted.
1796         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1797         calls to statistics_counter_event.
1798
1799 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1800
1801         PR rtl-optimization/48455
1802         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1803         `temp_costs->mem_cost'.
1804
1805 2011-04-13  Jan Hubicka  <jh@suse.cz>
1806
1807         * ipa-inline.h: New file.
1808         * ipa-inline-analysis.c: New file. Broken out of ...
1809         * ipa-inline.c: ... this file; update toplevel comment;
1810         include ipa-inline.h
1811         (inline_summary): Move to ipa-inline.h
1812         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1813         ipa-inline-analysis.c.
1814         (cgraph_estimate_time_after_inlining): Rename to
1815         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1816         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1817         to estimate_edge_growth.
1818         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1819         rename to estimate_size_after_inlining.
1820         (cgraph_mark_inline_edge): Update for new naming convention.
1821         (cgraph_check_inline_limits): Likewise.
1822         (cgraph_edge_badness): Likewise.
1823         (cgraph_decide_recursive_inlining): Likewise.
1824         (cgraph_decide_inlining_of_small_functions): Likewise.
1825         (cgraph_decide_inlining_incrementally): Likewise.
1826         (cgraph_estimate_growth): Rename to estimate_growth; move to
1827         ipa-inline-analysis.c.
1828         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1829         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1830         (compute_inline_parameters): Likewise.
1831         (compute_inline_parameters_for_current): Likewise.
1832         (pass_inline_parameters): Likewise.
1833         (inline_indirect_intraprocedural_analysis): Likewise.
1834         (analyze_function): Rename to inline_analyze_function; likewise.
1835         (add_new_function): Move to ipa-inline-analysis.c.
1836         (inline_generate_summary): Likewise.
1837         (inline_read_summary): Likewise.
1838         (inline_write_summary): Likewise.
1839         * Makefile.in (ipa-inline-analysis.c): New file.
1840
1841 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1842
1843         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1844         * configure: Regenerate.
1845
1846 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1847
1848         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1849         instead of tree_common.
1850         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1851         Likewise.
1852         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1853         TS_TYPED rather than TS_COMMON.
1854         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1855
1856 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1857
1858         PR target/45263
1859         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1860         r20 around calls of __tablejump_elpm__
1861
1862 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1863
1864         PR middle-end/48591
1865         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1866         NULL.
1867         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1868
1869 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1870
1871         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1872         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1873         (cfi_vec): New typedef.
1874         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1875         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1876         (cie_cfi_vec): New static variable.
1877         (cie_cfi_head): Delete.
1878         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1879         declaration changed. Use vector rather than list operations.
1880         (new_cfi): Don't initialize the dw_cfi_next field.
1881         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1882         rather than list operations.
1883         (lookup_cfa): Use vector rather than list operations.
1884         (output_cfis): New argument upto. Accept a cfi_vec rather than
1885         a dw_cfi_ref list head as argument. All callers changed.
1886         Iterate over the vector using upto as a maximum index.
1887         (output_all_cfis): New static function.
1888         (output_fde): Use vector rather than list operations. Use the
1889         new upto argument for output_cfis rather than manipulating a
1890         list.
1891         (dwarf2out_begin_prologue): Change initializations to match
1892         new struct members.
1893         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1894         from the vector length rather than searching for the end of a list.
1895         Use output_all_cfis.
1896         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1897
1898 2011-04-13  Nick Clifton  <nickc@redhat.com>
1899
1900         * config/rx/rx.md (movmemsi): Do not use this pattern when
1901         volatile pointers are involved.
1902
1903 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1904
1905         * config/i386/sse.md (pinsrbits): Remove.
1906         (sse2_packsswb): Merge with *avx_packsswb.
1907         (sse2_packssdw): Merge with *avx_packssdw.
1908         (sse2_packuswb): Merge with *avx_packuswb.
1909         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1910         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1911         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1912         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1913         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1914         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1915         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1916         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1917         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1918         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1919         (sse2_loadld): Merge with *avx_loadld.
1920         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1921         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1922         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1923         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1924         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1925
1926 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1927
1928         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1929         calling TREE_CHAIN.
1930         * print-tree.c (print_node): Likewise.
1931         * tree-inline.c (copy_tree_r): Likewise.
1932         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1933         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1934         instead of TS_COMMON.
1935         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1936         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1937         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1938         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1939         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1940         ...and these...
1941         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1942         * tree.h: ...here.
1943         (TREE_CHAIN): Check for a TS_COMMON structure.
1944         (TREE_TYPE): Check for a TS_TYPED structure.
1945
1946 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1947
1948         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1949         cgraph_get_create_node instead of cgraph_node.
1950
1951 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1952
1953         * c-parser.c (c_parser_initelt): Updated call to
1954         objc_build_message_expr.
1955         (c_parser_postfix_expression): Likewise.
1956
1957 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1958
1959         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1960         MASK_MS_BITFIELD_LAYOUT bit.
1961
1962 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1963
1964         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1965         assert it is always true.
1966         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1967         moves.
1968
1969 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1970
1971         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1972         compiling Objective-C to be more efficient.
1973
1974 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1975
1976         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1977         argv_copied.
1978
1979 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1980
1981         * recog.h, genoutput.c, optabs.c: Revert last patch.
1982
1983 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1984
1985         PR target/48090
1986         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1987
1988 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1989
1990         * recog.h (insn_operand_data): Add an "allows_mem" field.
1991         * genoutput.c (output_operand_data): Initialize it.
1992         * optabs.c (maybe_legitimize_operand_same_code): New function.
1993         (maybe_legitimize_operand): Use it when matching the original
1994         op->value.
1995
1996 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1997
1998         * genpreds.c (process_define_predicate): Move most processing
1999         to gensupport.c.  Continue to validate the expression.
2000         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2001         (process_define_predicate): Move processing to gensupport.c.
2002         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2003         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2004         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
2005         argument.
2006         (valid_predicate_name_p): New function, split out from old
2007         genpreds.c:process_define_predicate.
2008         (process_define_predicate): New function, combining code from
2009         old genpreds.c and genrecog.c functions.
2010         (process_rtx): Call it for DEFINE_PREDICATE and
2011         DEFINE_SPECIAL_PREDICATE.
2012
2013 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2014
2015         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2016         size of a '%A' memory reference.
2017         (T_DREG, T_QREG): New neon_builtin_type_bits.
2018         (arm_init_neon_builtins): Assert that the load and store operands
2019         are neon_struct_operands.
2020         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2021         (NEON_ARG_MEMORY): New builtin_arg.
2022         (neon_dereference_pointer): New function.
2023         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2024         Handle NEON_ARG_MEMORY.
2025         (arm_expand_neon_builtin): Update after above interface changes.
2026         Use NEON_ARG_MEMORY for loads and stores.
2027         * config/arm/predicates.md (neon_struct_operand): New predicate.
2028         * config/arm/iterators.md (V_two_elem): Tweak formatting.
2029         (V_three_elem): Use BLKmode for accesses that have no associated mode.
2030         (V_four_elem): Tweak formatting.
2031         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2032         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2033         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2034         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2035         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2036         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2037         (neon_vst4<mode>): Replace pointer operand with a memory operand.
2038         Use %A in the output template.
2039         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2040         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2041         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2042         the width of the memory access.  Remove post-increment.
2043         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2044
2045 2011-04-12  Nick Clifton  <nickc@redhat.com>
2046
2047         * config/v850/v850.c (expand_prologue): Do not use the CALLT
2048         instruction for interrupt handlers if the target is the basic V850
2049         architecture.
2050         (expand_epilogue): Likewise.
2051
2052 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2053
2054         PR rtl-optimization/48549
2055         * combine.c (propagate_for_debug): Also stop after BB_END of
2056         this_basic_block.  Process LAST and just stop processing after it.
2057         (combine_instructions): If last_combined_insn has been deleted,
2058         set last_combined_insn to its PREV_INSN.
2059
2060 2011-04-12  Richard Guenther  <rguenther@suse.de>
2061
2062         PR tree-optimization/46076
2063         * gimple.h (struct gimple_statement_call): Add fntype field.
2064         (gimple_call_fntype): Adjust.
2065         (gimple_call_set_fntype): New function.
2066         * gimple.c (gimple_build_call_1): Set the call function type.
2067         * gimplify.c (gimplify_call_expr): Preserve the function
2068         type the frontend used for the call.
2069         (gimplify_modify_expr): Likewise.
2070         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2071         function type.
2072         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2073         function type.
2074         * tree-ssa.c (useless_type_conversion_p): Function pointer
2075         conversions are useless.
2076
2077 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2078
2079         * cgraph.h (cgraph_node): Remove function declaration.
2080         (cgraph_create_node): Declare.
2081         (cgraph_get_create_node): Likewise.
2082         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2083         Updated all callers.
2084         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2085         the decl does not already exist.  Call cgraph_get_create_node instead
2086         of cgraph_node.
2087         (cgraph_get_create_node): New function.
2088         (cgraph_same_body_alias): Update comment.
2089         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2090         assert it does not return NULL.
2091         (cgraph_update_edges_for_call_stmt): Likewise.
2092         (cgraph_clone_edge): Likewise.
2093         (cgraph_create_virtual_clone): Likewise.
2094         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2095         instead of cgraph_node.
2096         (cgraph_add_new_function): Call cgraph_create_node or
2097         cgraph_get_create_node instead of cgraph_node.
2098         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2099         instead of cgraph_node.
2100         (record_eh_tables): Likewise.
2101         (mark_address): Likewise.
2102         (mark_load): Likewise.
2103         (build_cgraph_edges): Call cgraph_get_create_node instead
2104         of cgraph_node.
2105         (rebuild_cgraph_edges): Likewise.
2106         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2107         instead of cgraph_node.
2108         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2109         cgraph_node.
2110         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2111         cgraph_create_node instead of cgraph_node.
2112         * c-decl.c (finish_function): Call cgraph_get_create_node instead
2113         of cgraph_node.
2114         * lto-cgraph.c (input_node): Likewise.
2115         * lto-streamer-in.c (input_function): Likewise.
2116         * varasm.c (mark_decl_referenced): Likewise.
2117         (assemble_alias): Likewise.
2118
2119 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2120
2121         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2122         instead of cgraph_node and assert it does not return NULL.
2123         * lto-streamer-in.c (lto_read_body): Likewise.
2124         * omp-low.c (new_omp_context): Likewise.
2125         (create_task_copyfn): Likewise.
2126         * tree-emutls.c (lower_emutls_function_body): Likewise.
2127         * matrix-reorg.c (transform_allocation_sites): Likewise.
2128
2129 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2130
2131         PR c/48552
2132         * c-typeck.c (build_asm_expr): Error out on attempts to use
2133         void type outputs or inputs for constraints that allow reg or
2134         don't allow memory.
2135
2136 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
2137             Richard Earnshaw  <rearnsha@arm.com>
2138
2139         PR target/48250
2140         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2141         to use sign-magnitude offsets. Reject unsupported unaligned
2142         cases. Add detailed description in comments.
2143         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2144         condition from TARGET_32BIT to TARGET_ARM.
2145
2146 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
2147
2148         * tree.h (struct typed_tree): New.
2149         (struct tree_common): Include it instead of tree_base.
2150         (TREE_TYPE): Update for new location of type field.
2151         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2152         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2153         (union tree_node): Add typed field.
2154         * treestruct.def (TS_TYPED): New.
2155         * lto-streamer.c (check_handled_ts_structures): Handle it.
2156         * tree.c (MARK_TS_TYPED): New macro.
2157         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2158
2159 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2160
2161         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2162         (force_nonfallthru): Do not alter the loop nest if no basic block
2163         was created.
2164
2165 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2166
2167         * config/i386/sse.md (VI): New mode iterator.
2168         (SSEMODEI): Remove.
2169         (AVX256MODEI): Ditto.
2170         (AVXMODEF4P): Ditto.
2171         (avxvecpsmode): Ditto.
2172         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2173         (sse2_andnot<mode>3): New expander.
2174         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2175         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2176         (<any_logic:code><mode>3): Use VI mode iterator.
2177         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2178         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2179         (*andnottf3): Handle AVX three-operand constraints.
2180         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2181
2182 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2183             Robert Millan  <rmh@gnu.org>
2184
2185         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2186         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2187         GNU_USER_DYNAMIC_LINKER64): Define.
2188         (REG_NAME): Don't undefine.
2189         (MD_UNWIND_SUPPORT): Undefine.
2190         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2191         (REG_NAME): Don't undefine.
2192         (MD_UNWIND_SUPPORT): Undefine.
2193         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2194
2195 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2196
2197         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2198         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2199
2200 2011-04-11  Xinliang David Li  <davidxl@google.com>
2201
2202         * value-profile.c (check_ic_target): New function.
2203         (gimple_ic_transform): Sanity check indirect call target.
2204         * gimple-low.c (gimple_check_call_args): Interface change.
2205         (gimple_check_call_matching_types): New function.
2206         * tree-inline.c (tree_can_inline_p): Call new function.
2207
2208 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2209
2210         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2211         tree-pretty-print.h & realmpfr.h.
2212
2213 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2214
2215         PR middle-end/48464
2216         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2217         (setup_allocno_and_important_classes): Ditto.
2218
2219 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2220
2221         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2222         GNU_USER_DYNAMIC_LINKER.
2223         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2224         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2225         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2226         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2227         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2228         GNU_USER_TARGET_OS_CPP_BUILTINS.
2229         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2230         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2231         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2232         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2233         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2234         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2235         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2236         GNU_USER_TARGET_OS_CPP_BUILTINS.
2237         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2238         GNU_USER_DYNAMIC_LINKER.
2239         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2240         GNU_USER_TARGET_OS_CPP_BUILTINS.
2241         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2242         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2243         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2244         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2245         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2246         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2247         GNU_USER_DYNAMIC_LINKER64): Remove.
2248         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2249         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2250         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2251         GNU_USER_DYNAMIC_LINKER.
2252         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2253         GNU_USER_TARGET_OS_CPP_BUILTINS.
2254         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2255         GNU_USER_TARGET_OS_CPP_BUILTINS.
2256         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2257         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2258         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2259         GNU_USER_TARGET_OS_CPP_BUILTINS.
2260         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2261         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2262         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2263         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2264         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2265         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2266         GNU_USER_DYNAMIC_LINKER.
2267         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2268         GNU_USER_TARGET_OS_CPP_BUILTINS.
2269         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2270         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2271         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2272         GNU_USER_DYNAMIC_LINKER.
2273         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2274         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2275         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2276         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2277         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2278         GNU_USER_DYNAMIC_LINKER.
2279         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2280         GNU_USER_DYNAMIC_LINKERN32.
2281         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2282         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2283         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2284         GNU_USER_DYNAMIC_LINKER32.
2285         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2286         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2287         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2288         GNU_USER_DYNAMIC_LINKER.
2289         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2290         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2291         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2292         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2293         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2294         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2295         GNU_USER_DYNAMIC_LINKER32.
2296         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2297         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2298         GNU_USER_DYNAMIC_LINKER.
2299         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2300         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2301         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2302         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2303         GNU_USER_DYNAMIC_LINKER64.
2304         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2305         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2306         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2307         GNU_USER_DYNAMIC_LINKER.
2308         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2309         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2310         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2311         GNU_USER_DYNAMIC_LINKER.
2312         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2313         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2314         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2315         GNU_USER_DYNAMIC_LINKER32.
2316         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2317         GNU_USER_DYNAMIC_LINKER64.
2318         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2319         GNU_USER_DYNAMIC_LINKER64.
2320         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2321         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2322         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2323         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2324         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2325
2326 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2327
2328         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2329         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2330         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2331         GNU_USER_DYNAMIC_LINKER.
2332         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2333         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2334         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2335         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2336         GNU_USER_DYNAMIC_LINKER64.
2337         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2338         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2339         GNU_USER_LINK_EMULATION.
2340         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2341         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2342         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2343         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2344         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2345         CPP_SPEC, CC1_SPEC): Remove.
2346         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2347         (GNU_USER_DYNAMIC_LINKER): Define.
2348         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2349         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2350         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2351         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2352         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2353         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2354         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2355         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2356         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2357         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2358         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2359         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2360         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2361         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2362         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2363         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2364         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2365         GNU_USER_DYNAMIC_LINKER.
2366         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2367         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2368         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2369         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2370         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2371         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2372         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2373         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2374         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2375         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2376
2377 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2378
2379         PR target/9601
2380         PR target/11772
2381         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2382         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2383         comment.
2384         (ix86_is_msabi_thiscall): Removed.
2385         (ix86_is_type_thiscall): Likewise.
2386         (ix86_get_callcvt): New function.
2387         (ix86_comp_type_attributes): Simplify check.
2388         (ix86_function_regparm): Use ix86_get_callcvt for calling
2389         convention attribute checks.
2390         (ix86_return_pops_args): Likewise.
2391         (ix86_static_chain): Likewise.
2392         (x86_this_parameter): Likewise.
2393         (x86_output_mi_thunk): Likewise.
2394         (ix86_function_type_abi): Optimize check for types without attributes.
2395         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2396         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2397         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2398         by flag-values.
2399         (IX86_BASE_CALLCVT): Helper macro.
2400         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2401         Use ix86_get_callcvt for calling convention attribute checks and avoid
2402         symbol-decoration for stdcall in TARGET_RTD case.
2403         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2404         Likewise.
2405         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2406         for declaration.
2407
2408 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2409
2410         * config/i386/sse.md (VI_128): New mode iterator.
2411         (VI12_128): Rename from SSEMODE12.
2412         (VI14_128): Rename from SSEMODE14.
2413         (VI124_128): New mode iterator.
2414         (VI24_128): Rename from SSEMODE248.
2415         (VI248_128): Rename from SSEMODE248.
2416         (SSEMODE124C8): Remove.
2417         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2418         (*sse2_<plusminus_insn><mode>3): Merge with
2419         *avx_<plusminus_insn><mode>3.
2420         (*mulv8hi3): Merge with *avx_mulv8hi3.
2421         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2422         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2423         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2424         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2425         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2426         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2427         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2428         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2429         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2430         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2431         (*<smaxmin:code>v8hi3): Ditto.
2432         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2433         (*<smaxmin:code>v16qi3): Ditto.
2434         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2435         (*sse2_eq<mode>3): Ditto.
2436         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2437         (*sse2_gt<mode>3): Ditto.
2438         (vcondv2di): Split out of vcond<mode>.
2439         (vconduv2di): Split out of vcondu<mode>.
2440
2441 2011-04-11  Richard Guenther  <rguenther@suse.de>
2442
2443         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2444         before calling tree_low_cst.
2445
2446 2011-04-11  Richard Guenther  <rguenther@suse.de>
2447
2448         * stor-layout.c (layout_type): Compute all array index size operations
2449         in the original type.
2450         (initialize_sizetypes): Add comment.
2451         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2452
2453 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2454
2455         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2456
2457 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2458
2459         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2460         of cgraph_node, handle NULL return value.
2461         (cgraph_global_info): Likewise.
2462         (cgraph_rtl_info): Likewise.
2463         * tree-inline.c (estimate_num_insns): Likewise.
2464         * gimplify.c (unshare_body): Likewise.
2465         (unvisit_body): Likewise.
2466         (gimplify_body): Likewise.
2467         * predict.c (optimize_function_for_size_p): Likewise.
2468         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2469         (call_may_clobber_ref_p_1): Likewise.
2470         * varasm.c (function_section_1): Likewise.
2471         (assemble_start_function): Likewise.
2472
2473 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2474
2475         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2476         of cgraph_node.
2477         * final.c (rest_of_clean_state): Likewise.
2478         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2479         * passes.c (pass_init_dump_file): Likewise.
2480         (execute_all_ipa_transforms): Likewise.
2481         (function_called_by_processed_nodes_p): Likewise.
2482         * predict.c (maybe_hot_frequency_p): Likewise.
2483         (probably_never_executed_bb_p): Likewise.
2484         (compute_function_frequency): Likewise.
2485         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2486         (unnest_nesting_tree_1): Likewise.
2487         (lower_nested_functions): Likewise.
2488         * tree-optimize.c (execute_fixup_cfg): Likewise.
2489         (tree_rest_of_compilation): Likewise.
2490         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2491         * tree-sra.c (ipa_early_sra): Likewise.
2492         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2493         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2494         * ipa.c (record_cdtor_fn): Likewise.
2495         * ipa-inline.c (cgraph_early_inlining): Likewise.
2496         (compute_inline_parameters_for_current): Likewise.
2497         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2498         * ipa-pure-const.c (local_pure_const): Likewise.
2499         * ipa-split.c (split_function): Likewise.
2500         (execute_split_functions): Likewise.
2501         * cgraphbuild.c (build_cgraph_edges): Likewise.
2502         (rebuild_cgraph_edges): Likewise.
2503         (cgraph_rebuild_references): Likewise.
2504         (remove_cgraph_callee_edges): Likewise.
2505         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2506         (verify_cgraph_node): Likewise.
2507         (cgraph_analyze_functions): Likewise.
2508         (cgraph_preserve_function_body_p): Likewise.
2509         (save_inline_function_body): Likewise.
2510         (save_inline_function_body): Likewise.
2511         * tree-inline.c (copy_bb): Likewise.
2512         (optimize_inline_calls): Likewise.
2513
2514 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2515
2516         PR tree-optimization/48195
2517         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2518         ipa_check_create_edge_args.
2519         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2520         ipa_check_create_edge_args.
2521         * ipa-inline.c (inline_generate_summary): Do not call
2522         ipa_check_create_node_params and ipa_check_create_edge_args.
2523         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2524         ipa_check_create_edge_args.
2525
2526 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2527
2528         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2529         instead of loop.
2530         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2531         * function.c (record_hard_reg_sets): Likewise.
2532         * ira.c (compute_regs_asm_clobbered): Likewise.
2533         * sched-deps.c (sched_analyze_1): Likewise.
2534         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2535
2536 2011-04-09  Xinliang David Li  <davidxl@google.com>
2537
2538         PR tree-optimization/PR48484
2539         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2540         has_valid_pred lazily
2541
2542 2011-04-09  Duncan Sands  <baldrick@free.fr>
2543
2544         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2545
2546 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2547
2548         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2549         cost of I0 to zero at the end, if any.
2550
2551 2011-04-08  Xinliang David Li  <davidxl@google.com>
2552
2553         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2554         to insane profile data.
2555
2556 2011-04-08  Xinliang David Li  <davidxl@google.com>
2557
2558         * ipa-cp.c (ipcp_update_profiling): Correct
2559          negative scale factor due to insane profile data.
2560
2561 2011-04-08  Xinliang David Li  <davidxl@google.com>
2562
2563         * final.c (dump_basic_block_info): New function.
2564         (final): Dump basic block.
2565         (final_scan_insn): Remove old dump.
2566
2567 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2568
2569         PR target/47829
2570         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2571         crtbegin/crtend.
2572
2573 2011-04-08  Michael Matz  <matz@suse.de>
2574
2575         PR middle-end/48389
2576         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2577         functions.
2578         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2579         * rtl.h (rebuild_jump_labels_chain): Declare.
2580         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2581         insns inserted on edges.
2582
2583 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2584
2585         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2586         * config/arm/arm-arches.def: New.
2587         * config/arm/arm-opts.h: New.
2588         * config/arm/genopt.sh: New.
2589         * config/arm/arm-tables.opt: New (generated).
2590         * config/arm/arm.c (arm_handle_option, arm_target_help,
2591         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2592         (all_architectures): Get most table contents from arm-arches.def.
2593         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2594         arm_selected_tune here.
2595         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2596         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2597         (march=, mcpu=, mtune=): Use Enum and Var.
2598         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2599         (arm.o): Update dependencies.
2600
2601 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2602
2603         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2604         of header_file.
2605         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2606         (write_typed_alloc_defns): Likewise.
2607         (main): Calls write_typed_alloc_defns with output_header.
2608
2609 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2610
2611         PR inline-asm/48435
2612         * ira-color.c (setup_profitable_hard_regs): Add comments.
2613         Don't take prohibited hard regs into account.
2614         (setup_conflict_profitable_regs): Rename to
2615         get_conflict_profitable_regs.
2616         (check_hard_reg_p): Check prohibited hard regs.
2617
2618 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2619
2620         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2621         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2622         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2623
2624 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2625
2626         PR target/48366
2627         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2628         move from floating point to shift amount register.
2629         (emit_move_sequence): Remove secondary reload support for floating
2630         point to shift amount amount register copies.
2631         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2632         amount register copies.
2633         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2634         register, return false if mode isn't a scalar integer mode.
2635         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2636
2637 2011-04-08  Richard Guenther  <rguenther@suse.de>
2638
2639         * gimple.c (gimple_call_flags): Remove kludge.
2640
2641 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2642
2643         * sel-sched.c (sel_region_init): Move call to
2644         sel_setup_region_sched_flags after setup_current_loop_nest.
2645
2646 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2647
2648         PR rtl-optimization/48272
2649         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2650         init_insn_reg_pressure_info.  Adjust a caller.
2651         * sched-int.h (init_insn_reg_pressure_info): Declare.
2652         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2653         when sched-pressure is enabled.
2654
2655 2011-04-08  Richard Guenther  <rguenther@suse.de>
2656
2657         * gimple.c (gimple_set_modified): Do not queue calls to
2658         MODIFIED_NORETURN_CALLS here ...
2659         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2660
2661 2011-04-08  Richard Guenther  <rguenther@suse.de>
2662
2663         PR lto/48467
2664         * toplev.c (lang_dependent_init): Do not open asm_out_file
2665         in WPA mode, nor perform debug machinery initialization.
2666         (finalize): Do not unlink asm_out_file in WPA mode.
2667
2668 2011-04-08  Richard Guenther  <rguenther@suse.de>
2669
2670         * gimple.h (gimple_call_fntype): New function.
2671         (gimple_call_return_type): Use it.
2672         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2673         * gimple-low.c (gimple_check_call_args): Likewise.
2674         * gimple.c (gimple_call_flags): Likewise.
2675         (gimple_call_arg_flags): Likewise.
2676         (gimple_call_return_flags): Likewise.
2677         * tree-cfg.c (verify_gimple_call): Likewise.
2678         (do_warn_unused_result): Likewise.
2679         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2680         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2681
2682 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2683
2684         PR rtl-optimization/48235
2685         * sel-sched.c (code_motion_process_successors): Recompute the last
2686         insn in basic block if control flow changed.
2687         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2688         Update condition for ilist_remove.
2689
2690 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2691
2692         PR rtl-optimization/48302
2693         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2694         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2695         it to record added preheader blocks.
2696         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2697         on to sel_add_loop_preheaders.
2698         (sel_region_init): Move call to setup_current_loop_nest after
2699         sel_init_bbs.
2700
2701 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2702
2703         PR target/48273
2704         * cfgloop.h (loop_has_exit_edges): New helper.
2705         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2706         non-clonable.
2707         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2708         that have no exit edges.
2709
2710 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2711
2712         PR rtl-optimization/48442
2713         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2714         all callers.  Adjust assert.
2715
2716 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2717
2718         PR tree-optimization/48377
2719         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2720         is_packed to true even for types with smaller TYPE_ALIGN than
2721         TYPE_SIZE.
2722
2723 2011-04-08  Richard Guenther  <rguenther@suse.de>
2724
2725         PR bootstrap/48513
2726         * doc/tm.texi: Re-generate.
2727
2728 2011-04-08  Wei Guozhi  <carrot@google.com>
2729
2730         PR target/47855
2731         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2732         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2733         * config/arm/arm.md (*push_multi): Change the length computation to
2734         call a C function.
2735
2736 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2737
2738         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2739         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2740         * doc/tm.texi: Regenerate.
2741         * system.h (ASM_OUTPUT_BSS): Poison.
2742         * varasm.c (asm_output_bss): Remove function.
2743         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2744
2745         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2746         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2747         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2748         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2749         Likewise.
2750         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2751         Likewise.
2752         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2753         Likewise.
2754         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2755
2756 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2757
2758         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2759         EnumValue lines.
2760
2761 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2762
2763         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2764         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2765         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2766         OPT_mcpu32.
2767         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2768         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2769         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2770         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2771         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2772         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2773         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2774         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2775         options.  Don't map other m68k options manually.  Don't handle
2776         old-style options as canonical.
2777         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2778         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2779
2780 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2781
2782         * basic-block.h (force_nonfallthru): Move to...
2783         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2784         (force_nonfallthru): ...here.
2785         * cfghooks.c (force_nonfallthru): New function.
2786         * cfgrtl.c (force_nonfallthru): Rename into...
2787         (rtl_force_nonfallthru): ...this.
2788         (commit_one_edge_insertion): Do not set AUX field.
2789         (commit_edge_insertions): Do not discover new basic blocks.
2790         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2791         (cfg_layout_rtl_cfg_hooks): Likewise.
2792         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2793         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2794         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2795
2796 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2797
2798         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2799         Remove macros.
2800
2801 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2802
2803         * config/i386/sse.md: Update copyright year.
2804         (avxcvtvecmode): Remove.
2805         (sse_movhlps): Merge with *avx_movhlps.
2806         (sse_movlhps): Merge with *avx_movlhps.
2807         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2808         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2809         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2810         (sse_loadhps): Merge with *avx_loadhps.
2811         (sse_storelps): Merge with *avx_storelps.
2812         (sse_loadlps): Merge with *avx_loadlps.
2813         (sse_movss): Merge with *avx_movss.
2814         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2815         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2816         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2817         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2818         (vec_set<mode>_0): Ditto.
2819         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2820         (sse4_1_insertps): Merge with *avx_insertps.
2821         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2822         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2823         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2824         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2825         (sse2_storehpd): Merge with *avx_storehpd.
2826         (sse2_loadhpd): Merge with *avx_loadhpd.
2827         (sse2_loadlpd): Merge with *avx_loadlpd.
2828         (sse2_movsd): Merge with *avx_movsd.
2829         (*vec_concatv2df): Merge with *vec_concatv2df.
2830
2831 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2832
2833         PR debug/48343
2834         * combine.c (combine_instructions): Add last_combined_insn,
2835         update it if insn is after it, pass it to all try_combine calls.
2836         (try_combine): Add last_combined_insn parameter, pass it instead of
2837         i3 to propagate_for_debug.
2838
2839 2011-04-07  Nick Clifton  <nickc@redhat.com>
2840
2841         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2842         to handle MDR <-> data register transfers.
2843         (movhi_internal): Likewise.
2844
2845 2011-04-07  Alan Modra  <amodra@gmail.com>
2846
2847         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2848         previous stack info.
2849
2850 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2851
2852         PR target/43920
2853         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2854         flow_find_cross_jump.  Swap variables to implement backward replacement.
2855         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2856
2857 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2858
2859         PR target/43920
2860         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2861         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2862         and bb2.
2863         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2864         src1 or src2.  Redirect edges to the last basic block.  Update
2865         frequency and count on multiple basic blocks in case of fallthru.
2866
2867 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2868
2869         PR target/43920
2870         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2871         function.
2872         (old_insns_match_p): Change return type.  Replace return false/true
2873         with return dir_none/dir_both.  Use can_replace_by.
2874         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2875         direction from dir_p.  Register replacement direction in dir, last_dir
2876         and afterlast_dir.  Handle new return type of old_insns_match_p using
2877         merge_dir.  Return replacement direction in dir_p.
2878         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2879         return type of old_insns_match_p.
2880         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2881         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2882         flow_find_cross_jump.
2883         * basic-block.h (enum replace_direction): New type.
2884         (flow_find_cross_jump): Add parameter to declaration.
2885
2886 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2887
2888         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2889         (AVXMODEDCVTPS2DQ): Ditto.
2890         (VEC_FLOAT_MODE): Ditto.
2891         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2892         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2893         (<any_logic:code><mode>3): Use VF mode iterator.
2894         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2895         Use VF mode iterator.
2896         (copysign<mode>3): Use VF mode iterator.
2897         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2898         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2899         (*<any_logic:code><MODEF:mode>3): Merge with
2900         *avx_<any_logic:code><MODEF:mode>3.
2901         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2902         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2903         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2904         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2905         (sse2_cvtdq2ps): Use %v modifier.
2906         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2907         (avx_cvtps2dq<avxmodesuffix>): Remove.
2908         (sse2_cvtps2dq): Use %v modifier.
2909         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2910         (avx_cvttps2dq<avxmodesuffix>): Remove.
2911         (sse2_cvttps2dq): Use %v modifier.
2912         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2913         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2914         (sse2_cvtsd2siq): Fix insn template.
2915         (sse2_cvtsd2siq_2): Ditto.
2916         (sse2_cvttsd2siq): Ditto.
2917         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2918         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2919
2920 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2921
2922         * gcov-io.c: Use GCC Runtime Library Exception.
2923
2924 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2925
2926         PR debug/48466
2927         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2928         as base_reg whatever register reg has been eliminated to, instead
2929         of hardcoding STACK_POINTER_REGNUM.
2930
2931 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2932
2933         * doc/tm.texi.in: Document C target hooks as separate from general
2934         target hooks.
2935         * doc/tm.texi: Regenerate.
2936         * genhooks.c (struct hook_desc): Add docname field.
2937         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2938         docname field.
2939         (hook_array): Include c-target.def.
2940         (emit_documentation): Use docname field in output.
2941         (emit_init_macros): Take docname argument.  Only emit definitions
2942         for hooks matching docname.
2943         (main): Expect additional arguments in all cases.  Pass argument
2944         to emit_init_macros.
2945         * target.def: Move initial macro definitions and comments to
2946         target-hooks-macros.h.
2947         (gcc_targetcm): Move to c-family/c-target.def.
2948         * target.h (targetcm): Move declaration to c-family/c-target.h.
2949         * targhooks.c (default_handle_c_option): Move to
2950         c-family/c-opts.c.
2951         * targhooks.h (default_handle_c_option): Move declaration to
2952         c-family/c-common.h.
2953         * target-hooks-macros.h: New file.
2954         * config.gcc (target_has_targetcm): Define and use to add to
2955         c_target_objs and cxx_target_objs.
2956         * config/default-c.c: New file.
2957         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2958         of target.h and target-def.h.
2959         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2960         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2961         darwin_check_cfstring_format_arg): Make static.
2962         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2963         TARGET_STRING_OBJECT_REF_TYPE_P,
2964         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2965         * config/darwin-protos.h (darwin_objc_construct_string,
2966         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2967         declare.
2968         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2969         TARGET_STRING_OBJECT_REF_TYPE_P,
2970         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2971         * config/t-darwin (darwin-c.o): Update dependencies.
2972         * system.h (TARGET_HAS_TARGETCM): Poison.
2973         * Makefile.in (TARGET_H): Update.
2974         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2975         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2976         (default-c.o): New target.
2977         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2978         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2979         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2980         c-target.def.
2981         (build/genhooks.o): Update dependencies.
2982
2983 2011-04-06  Richard Guenther  <rguenther@suse.de>
2984
2985         * ipa-inline.c (enum inlining_mode): Remove.
2986         (cgraph_flatten): Use some other token.
2987         (cgraph_edge_early_inlinable_p): New function, split out from ...
2988         (cgraph_perform_always_inlining): New function, split out from ...
2989         (cgraph_decide_inlining_incrementally): ... here.
2990         (cgraph_mark_inline_edge): Adjust.
2991         (cgraph_early_inlining): Re-structure.
2992         (pass_early_inline): Require SSA form.
2993
2994 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2995             Julian Brown  <julian@codesourcery.com>
2996             Mark Shinwell  <shinwell@codesourcery.com>
2997
2998         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2999         LO_REGS only for Thumb-1.
3000         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3001         be used in short instructions when optimising for size on Thumb-2.
3002
3003 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3004
3005         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3006         associated with user returns to be preserved.
3007
3008 2011-04-06  Tristan Gingold  <gingold@adacore.com>
3009
3010         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3011         symbol_queue_size, DBXOUT_DECR_NESTING,
3012         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3013         if XCOFF_DEBUGGING_INFO.
3014
3015 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
3016
3017         * config/i386/i386.md (attribute isa): New.
3018         (attribute enabled): New.
3019         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3020         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3021         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3022         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3023         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3024         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3025         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3026         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3027
3028         * config/i386/sse.md (VF): New mode iterator.
3029         (VF1): Ditto.
3030         (VF2): Ditto.
3031         (VF_128): Ditto.
3032         (SSEMODEF4): Remove.
3033         (attribute sse): Handle V8SF and V4DF modes.
3034         (<absneg:code><mode>2): Use VF mode iterator.
3035         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
3036         mode iterator.
3037         (<plusminus_insn><mode>3): Use VF mode iterator.
3038         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3039         Use VF mode iterator.
3040         (<sse>_vm<plusminus_insn><mode>3): Merge with
3041         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
3042         (mul<mode>3): Use VF mode iterator.
3043         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
3044         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
3045         mode iterator.
3046         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3047         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3048         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
3049         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
3050         mode iterator.
3051         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3052         Use VF1 mode iterator.
3053         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3054         (sqrt<VF2:mode>2): New expander.
3055         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3056         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3057         and sqrtv2df2.  Use VF mode iterator.
3058         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
3059         mode iterator.
3060         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3061         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3062         Use VF1 mode iterator.
3063         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3064         (<smaxmin:code><mode>3): Use VF mode iterator.
3065         (*<smaxmin:code><mode>3_finite): Merge with
3066         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
3067         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3068         (<sse>_vm<smaxmin:code><mode>2): Merge with
3069         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
3070         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
3071         mode iterator.
3072         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
3073         mode iterator.
3074         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3075         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3076         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3077         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3078         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
3079         VF mode iterator.
3080         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3081         Use VF_128 mode iterator.
3082         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
3083         mode iterator.
3084         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
3085         VF_128 mode iterator.
3086         (vcond<mode>): Use VF mode iterator.
3087         * config/i386/predicates.md (sse_comparison_operator): Merge with
3088         avx_comparison_float_operator.  Do not declare as special_predicate.
3089         * config/i386/i386.c (struct builtin_description): Update for renamed
3090         compare patterns.
3091         (ix86_expand_args_builtin): Ditto.
3092         (ix86_expand_sse_compare_mask): Ditto.
3093
3094 2011-04-06  Richard Guenther  <rguenther@suse.de>
3095
3096         * tree-inline.c (estimate_num_insns): For calls simply account
3097         for all passed arguments and a used return value.
3098
3099 2011-04-06  Richard Guenther  <rguenther@suse.de>
3100
3101         PR tree-optimization/47663
3102         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3103         call_stmt_time fields.
3104         (cgraph_edge_inlinable_p): Declare.
3105         (cgraph_edge_recursive_p): New inline function.
3106         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3107         (cgraph_clone_edge): Copy it.
3108         * ipa-inline.c (cgraph_estimate_edge_time): New function.
3109         Account for call stmt time.
3110         (cgraph_estimate_time_after_inlining): Take edge argument.
3111         (cgraph_estimate_edge_growth): Account call stmt size.
3112         (cgraph_estimate_size_after_inlining): Take edge argument.
3113         (cgraph_mark_inline_edge): Adjust.
3114         (cgraph_check_inline_limits): Likewise.
3115         (cgraph_recursive_inlining_p): Remove.
3116         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3117         (cgraph_decide_recursive_inlining): Take edge argument and
3118         adjust.
3119         (cgraph_decide_inlining_of_small_functions): Do not avoid
3120         diags for recursive inlining here.
3121         (cgraph_flatten): Adjust.
3122         (cgraph_decide_inlining_incrementally): Likewise.
3123         (estimate_function_body_sizes): Remove call cost handling.
3124         (compute_inline_parameters): Initialize caller edge call costs.
3125         (cgraph_estimate_edge_growth): New function.
3126         (cgraph_estimate_growth): Use it.
3127         (cgraph_edge_badness): Likewise.
3128         (cgraph_check_inline_limits): Take an edge argument.
3129         (cgraph_decide_inlining_of_small_functions): Adjust.
3130         (cgraph_decide_inlining): Likewise.
3131         * tree-inline.c (estimate_num_insns): Only account for call
3132         return value if it is used.
3133         (expand_call_inline): Avoid diagnostics on recursive inline
3134         functions here.
3135         * lto-cgraph.c (lto_output_edge): Output edge call costs.
3136         (input_edge): Input edge call costs.
3137
3138 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3139
3140         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3141
3142 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3143
3144         * doc/invoke.texi (Spec Files): Fix typo.
3145
3146 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3147
3148         * profile.c (branch_prob): Move declaration of local variable.  Remove
3149         obsolete ??? comment.  Expand the location explicitly instead of using
3150         the LOCATION_FILE and LOCATION_LINE macros.
3151
3152 2011-04-06  Wei Guozhi  <carrot@google.com>
3153
3154         PR target/47855
3155         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3156         (arm_cond_branch): Likewise.
3157         (arm_cond_branch_reversed): Likewise.
3158         (arm_jump): Likewise.
3159         (push_multi): Likewise.
3160         * config/arm/constraints.md (Py): New constraint.
3161
3162 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3163
3164         PR bootstrap/48471
3165         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3166         Move these...
3167         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3168         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3169         #ifdef DBX_DEBUGGING_INFO.
3170
3171 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3172
3173         PR bootstrap/48403
3174         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3175         if old and new states differ.
3176
3177 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3178
3179         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3180         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3181         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3182         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3183         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3184         mcfv4e): Use Alias.
3185         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3186         ColdFire options to -mcpu= options.
3187
3188 2011-04-05  Jeff Law  <law@redhat.com>
3189
3190         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3191         check if BB is a successor of LOOP->header and return
3192         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3193
3194 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3195
3196         * cprop.c (struct reg_use): Remove.
3197         (reg_use_table): Make an array of RTX.
3198         (find_used_regs, constprop_register, local_cprop_pass,
3199         bypass_block): Simplify users of reg_use_table.
3200         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3201         on one of the uses found by find_used_regs.
3202
3203 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3204
3205         PR bootstrap/48469
3206         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3207         declaration.
3208
3209 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3210
3211         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3212         as an rtx.
3213         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3214
3215 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3216
3217         PR middle-end/48441
3218         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3219
3220 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3221
3222         * combine.c: Include obstack.h.
3223         (struct insn_link): Define.
3224         (uid_log_links): Adjust type.
3225         (FOR_EACH_LOG_LINK): New macro.
3226         (insn_link_obstack): Declare.
3227         (alloc_insn_link): Define.
3228         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3229         type of link variables.
3230         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3231         (try_combine, record_promoted_values, distribute_notes): Likewise.
3232         (distribute_links): Likewise.  Tweak prototype.
3233         (clear_log_links): Delete.
3234         (adjust_for_new_dest): Call alloc_insn_link.
3235         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3236
3237 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3238
3239         * gcse.c (modify_mem_list): Convert to an array of VECs.
3240         (canon_modify_mem_list, compute_transp): Tweak formatting.
3241         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3242         (load_killed_in_block_p): Likewise.
3243         (record_last_mem_set_info): Likewise.
3244         (clear_modify_mem_tables): Likewise.
3245
3246 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3247
3248         PR middle-end/48461
3249         * function.c (emit_use_return_register_into_block): Only define if
3250         HAVE_return.
3251
3252 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3253
3254         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3255
3256 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3257
3258         * config/rx/rx-opts.h: New.
3259         * config/rx/rx.c (rx_cpu_type): Remove.
3260         (rx_handle_option): Don't assert that global structures are in
3261         use.  Access variables via opts pointer.  Defer most handling of
3262         OPT_mint_register_.  Use error_at.
3263         (rx_option_override): Handle deferred OPT_mint_register_ here.
3264         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3265         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3266         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3267         (rx_cpu_types): New Enum and EnumValue entries.
3268         (mint-register=): Use Defer and use Var accordingly.
3269
3270 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3271
3272         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3273         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3274         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3275         Move these...
3276         (debug_free_queue, debug_nesting, symbol_queue_index):
3277         ...and these...
3278         * dbxout.c: ...to here.  Make static.
3279
3280 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3281
3282         * gcse.c (modify_pair): Define.  Define a VEC of it.
3283         (canon_modify_mem_list): Convert to an array of VECs.
3284         (free_insn_expr_list_list): Delete.
3285         (clear_modify_mem_tables): Call VEC_free instead.
3286         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3287         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3288         (canon_list_insert, compute_transp): Likewise.
3289
3290 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3291
3292         PR target/43920
3293         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3294         for size.
3295
3296 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3297
3298         PR target/43920
3299         * function.c (emit_use_return_register_into_block): New function.
3300         (thread_prologue_and_epilogue_insns): Use
3301         emit_use_return_register_into_block.
3302
3303 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3304
3305         PR target/43920
3306         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3307         insn.
3308
3309 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3310
3311         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3312
3313 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3314
3315         * config/arm/arm.md (define_constants for unspec): Replace with
3316         define_c_enum.
3317         (define_constants for unspecv): Replace with define_c_enum.
3318         * config/arm/neon.md (define_constants for unspec): Replace with
3319         define_c_enum.
3320
3321 2011-04-04  Richard Henderson  <rth@redhat.com>
3322
3323         PR bootstrap/48400
3324         * dwarf2out.c (output_line_info): Always emit line info from
3325         at least one section.
3326         (dwarf2out_init): Create text_section_line_info here ...
3327         (set_cur_line_info_table): ... not here.
3328
3329 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3330
3331         PR target/48380
3332         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3333         not called.
3334
3335         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3336
3337 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3338
3339         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3340         (expr_equiv_p): Remove.
3341         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3342         (hash_scan_set): Update call to insert_set_in_table.
3343         (dump_hash_table): Dump <dest, src> pair.
3344         (lookup_set): Simplify.  Lookup <dest, src> pair.
3345         (compute_transp): Remove, fold heavily simplified code into...
3346         (compute_local_properties): ...here.  Expect COMP and TRANSP
3347         unconditionally.
3348         (find_avail_set): Take set directly from struct expr.
3349         (find_bypass-set): Likewise.
3350         (bypass_block): Likewise.
3351         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3352
3353         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3354         checks on form of COND from find_implicit_sets to here.
3355         (find_implicit_sets): Cleanup control flow. Split critical edges
3356         if it exposes implicit sets.  Allocate/resize implicit_sets as
3357         necessary.
3358         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3359         changed something.  Run df_analyze after find_implicit_sets if any
3360         edges were split.  Do not allocate implicit_sets here.
3361
3362         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3363         (gcse_obstack): Renamed to cprop_obstack.
3364         (GNEW, GNEWVEC, GNEWVAR): Remove.
3365         (gmalloc): Remove.
3366         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3367         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3368         (gcse_alloc): Likewise, and rename to cprop_alloc.
3369         (alloc_gcse_men, free_gcse_mem): Remove.
3370         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3371         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3372         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3373
3374         * cprop.c (oprs_not_set_p): Remove.
3375         (mark_set, mark_clobber): Remove.
3376         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3377         (reg_not_set_p): New function.
3378         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3379         (cprop_insn): Likewise.
3380         (cprop_jump): Use FOR_EACH_EDGE.
3381
3382 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3383
3384         PR bootstrap/48403
3385         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3386         (rank_for_schedule): Use scheduled_insns vector instead of
3387         last_scheduled_insn.
3388         (ok_for_early_queue_removal): Likewise.
3389         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3390         we have a dbg_cnt.
3391         (choose_ready): Likewise.
3392         (commit_schedule): Use VEC_iterate.
3393         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3394         a dbg_cnt, use it and ensure the first insn is in the ready list.
3395         (haifa_sched_init): Allocate scheduled_insns.
3396         (sched_extend_ready_list): Don't allocate it; reserve space.
3397         (haifa_sched_finish): Free it.
3398
3399 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3400
3401         * optc-gen.awk: Always remove type from Variable entry before
3402         recording in var_seen.
3403
3404 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3405
3406         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3407         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3408         call to tidy_fallthru_edges.
3409
3410 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3411
3412         * doc/options.texi (ToLower): Document.
3413         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3414         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3415         * opts.h (cl_option): Add cl_tolower field.
3416         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3417         arguments with lowercase strings.
3418         * config/rx/rx.opt (mcpu=): Add ToLower.
3419         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3420         argument.
3421
3422 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3423
3424         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3425
3426 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3427
3428         * config/vax/vax.c: Include reload.h.
3429
3430 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3431
3432         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3433         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3434         (sparc_preferred_reload_class): New function.
3435
3436 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3437
3438         PR debug/48401
3439         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3440         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3441
3442 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3443
3444         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3445         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3446
3447 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3448
3449         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3450         (ASM_OUTPUT_ALIGNED_BSS): Define.
3451
3452 2011-04-03  Michael Matz  <matz@suse.de>
3453
3454         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3455         and next_slot members.
3456         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3457         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3458         (lto_streamer_cache_append): Declare.
3459         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3460         unsigned index, remove offset parameter, ensure that we append
3461         or update existing entries.
3462         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3463         parameter, update next_slot for append.
3464         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3465         parameter.
3466         (lto_streamer_cache_insert_at): Likewise.
3467         (lto_streamer_cache_append): New function.
3468         (lto_streamer_cache_lookup): Use unsigned index.
3469         (lto_streamer_cache_get): Likewise.
3470         (lto_record_common_node): Don't test tree_node_can_be_shared.
3471         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3472         (lto_streamer_cache_delete): Don't free offsets member.
3473         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3474         (lto_output_string_with_length): Use lto_output_data_stream.
3475         (lto_output_tree_header): Remove ix parameter, don't write it.
3476         (lto_output_builtin_tree): Likewise.
3477         (lto_write_tree): Adjust callers to above, don't track and write
3478         offset, write unsigned index.
3479         (output_unreferenced_globals): Don't emit all global vars.
3480         (write_global_references): Use unsigned indices.
3481         (lto_output_decl_state_refs): Likewise.
3482         (write_symbol): Likewise.
3483         * lto-streamer-in.c (lto_input_chain): Move earlier.
3484         (input_function): Use unsigned index.
3485         (input_alias_pairs): Don't read and then ignore all global vars.
3486         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3487         don't pass it back, use lto_streamer_cache_append.
3488         (lto_register_var_decl_in_symtab): Use unsigned index.
3489         (lto_register_function_decl_in_symtab): Likewise.
3490         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3491         index.
3492         (lto_get_builtin_tree): Don't read index, use
3493         lto_streamer_cache_append.
3494         (lto_read_tree): Adjust call to lto_materialize_tree.
3495
3496         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3497         don't use function calls in arguments to MIN.
3498
3499         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3500         twice.
3501
3502         * gimple.c (gimple_type_leader_entry): Mark deletable.
3503
3504 2011-04-03  Alan Modra  <amodra@gmail.com>
3505
3506         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3507
3508 2011-04-03  Michael Matz  <matz@suse.de>
3509
3510         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3511         an integer.
3512         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3513
3514 2011-04-03  Michael Matz  <matz@suse.de>
3515
3516         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3517         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3518         without function context.
3519         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3520         current_function_decl and cfun.
3521
3522 2011-04-03  Michael Matz  <matz@suse.de>
3523
3524         * tree.c (decl_init_priority_insert): Don't create entry for
3525         default priority.
3526         (decl_fini_priority_insert): Ditto.
3527         (fields_compatible_p, find_compatible_field): Remove.
3528         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3529         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3530
3531 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3532
3533         * combine.c (try_combine): Remove useless local variable.
3534
3535 2011-04-03  Richard Guenther  <rguenther@suse.de>
3536             Ira Rosen  <ira.rosen@linaro.org>
3537
3538         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3539         non-variable offsets and compare the remaining bases of the two
3540         accesses instead of looking for exact same data-ref.
3541
3542 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3543
3544         PR target/48416
3545         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3546
3547         * i386.c (ix86_is_msabi_thiscall): New helper function.
3548         (ix86_is_type_thiscall): New helper function.
3549         (ix86_comp_type_attributes): Handle thiscall for method-functions
3550         special.
3551         (init_cumulative_args): Likewise.
3552         (find_drap_reg): Likewise.
3553         (ix86_static_chain): Likewise.
3554         (x86_this_parameter): Likewise.
3555         (x86_output_mi_thunk): Likewise.
3556
3557 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3558             Nicolas Setton  <setton@adacore.com>
3559             Eric Botcazou  <ebotcazou@adacore.com>
3560
3561         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3562         (add_gnat_descriptive_type_attribute): New function.
3563         (gen_array_type_die): Call it.
3564         (gen_enumeration_type_die): Likewise.
3565         (gen_struct_or_union_type_die): Likewise.
3566         (modified_type_die): Likewise.
3567         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3568         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3569         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3570
3571 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3572
3573         PR bootstrap/48148
3574         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3575         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3576
3577         Revert:
3578         2011-03-17  Richard Guenther  <rguenther@suse.de>
3579
3580         PR bootstrap/48148
3581         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3582         origin for decls in other ltrans units.
3583         (input_varpool_node): Likewise.
3584
3585 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3586
3587         PR middle-end/48335
3588         * expr.c (expand_assignment): Handle all possibilities
3589         if TO_RTX is CONCAT.
3590         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3591         (store_split_bit_field): If SUBREG_REG (op0) or
3592         op0 itself has smaller mode than word, return it
3593         for offset 0 and const0_rtx for out-of-bounds stores.
3594         If word is const0_rtx, skip it.
3595
3596 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3597
3598         * config/h8300/h8300.c (print_operand_address): Rename to...
3599         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3600         Call h8300_print_operand and h8300_print_operand_address instead of
3601         print_operand and print_operand_address. Declare.
3602         (print_operand): Renake to...
3603         (h8300_print_operand): ...this. Make static. Adjust comments.
3604         Call h8300_print_operand instead of print_operand. Declare.
3605         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3606         (h8300_register_move_cost): Likewise.
3607         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3608         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3609         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3610         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3611         * config/h8300/h8300-protos.h (print_operand): Delete.
3612         (print_operand_address): Delete.
3613
3614 2011-04-01  Richard Henderson  <rth@redhat.com>
3615
3616         PR 48400
3617         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3618         in strict mode before dwarf4.  Re-order tests to early out
3619         before switching sections.
3620
3621 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3622
3623         * config/h8300/constraints.md: New file.
3624         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3625         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3626         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3627         * config/h8300/predicates.md (bit_operand): Likewise.
3628         (incdec_operand): Use satisfies_constraint_M and
3629         satisfies_constraint_O.  Don't use C code block.
3630         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3631         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3632         (compute_mov_length): Use satisfies_constraint_G.
3633         (fix_bit_operand): Use satisfies_constraint_U.
3634         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3635         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3636         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3637         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3638         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3639         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3640         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3641         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3642         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3643         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3644         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3645         (EXTRA_MEMORY_CONSTRAINT): Delete.
3646
3647 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3648             Michael Meissner  <meissner@linux.vnet.ibm.com>
3649
3650         PR target/48262
3651         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3652         operands, as per the specifications.
3653
3654         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3655         (vec_extract_evenv4sf): Ditto.
3656         (vec_extract_evenv8hi): Ditto.
3657         (vec_extract_evenv16qi): Ditto.
3658         (vec_extract_oddv4si): Ditto.
3659
3660 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3661
3662         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3663         high_pc attribute if the CU has no associated code. Only output
3664         DW_AT_entry_pc for CU if not generating strict dwarf and
3665         dwarf_version < 4.
3666
3667 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3668
3669         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3670         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3671         out of ...
3672         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3673         * final.c (final_start_function): Call the new function rather
3674         than using a NULL argument for dwarf2out_frame_debug.
3675
3676         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3677         that contains the prologue.
3678
3679         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3680         changed.  Print it in debugging output.
3681
3682         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3683
3684         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3685         Split most of the code into...
3686         (begin_move_insn): ... here.  New function.
3687         (ebb_sched_info): Add a pointer to it.
3688         * haifa-sched.c (scheduled_insns): New static variable.
3689         (sched_extend_ready_list): Allocate it.
3690         (schedule_block): Use it to record the order of scheduled insns.
3691         Perform RTL changes to move insns only after all scheduling
3692         decisions have been made.
3693         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3694         begin_move_insn field.
3695         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3696         * sched-int.h (struct haifa_sched_info): Remove second argument
3697         from begin_schedule_ready hook.  Add new member begin_move_insn.
3698         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3699         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3700
3701         * haifa-sched.c (prune_ready_list): New function, broken out of
3702         schedule_block.
3703         (schedule_block): Use it.
3704
3705 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3706
3707         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3708
3709 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3710
3711         * config.gcc (*-*-mingw*): Allow as option the
3712         posix threading model.
3713         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3714         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3715         definition.
3716         (CPP_SPEC): Add pthread/no-pthread handling.
3717         (LIB_SPEC): Likewise.
3718         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3719         (LIB_SPEC): Likewise.
3720         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3721         flag to pass -pthread option for shared libgcc build.
3722         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3723         for shared libgcc build.
3724         * config/i386/t-mingw-pthread: New file.
3725         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3726         New define to enable use of library pthread by default.
3727         * config/i386/mingw.opt (pthread): New driver option.
3728         (no-pthread): New driver option.
3729         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3730         * config/i386/mingw-w64.opt: Likewise.
3731
3732 2011-04-01  Gary Funck <gary@intrepid.com>
3733
3734         * c-decl.c (grokdeclarator): Fix formatting.
3735
3736 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3737
3738         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3739         instead of n_operands.
3740         (set_storage_via_setmem): Likewise.
3741         * optabs.c (maybe_gen_insn): Likewise.
3742         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3743         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3744         (mips_expand_builtin_direct): Likewise.
3745         * config/spu/spu.c (expand_builtin_args): Likewise.
3746
3747 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3748
3749         * recog.h (insn_data_d): Add n_generator_args.
3750         * genoutput.c (data): Likewise.
3751         (output_insn_data): Print it.
3752         (max_opno, num_dups): Delete.
3753         (scan_operands): Just fill in "d->operand[...]".
3754         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3755
3756 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3757
3758         * gensupport.h (pattern_stats): New structure.
3759         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3760         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3761         (max_operand_1, max_operand_vec): Delete.
3762         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3763
3764 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3765
3766         * emit-rtl.c (emit_pattern_after_setloc): New function.
3767         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3768         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3769         (emit_pattern_after): New function.
3770         (emit_insn_after, emit_jump_insn_after): Call it.
3771         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3772         (emit_pattern_before_setloc): New function.
3773         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3774         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3775         Likewise.
3776         (emit_pattern_before): New function.
3777         (emit_insn_before, emit_jump_insn_before): Call it.
3778         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3779
3780 2011-03-31  Richard Henderson  <rth@redhat.com>
3781
3782         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3783         (dw_separate_line_info_entry): Remove.
3784         (enum dw_line_info_opcode): New.
3785         (dw_line_info_entry): Use it.
3786         (dw_line_info_table, dw_line_info_table_p): New.
3787         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3788         (line_info_table, line_info_label_num): Remove.
3789         (line_info_table_in_use): Remove.
3790         (separate_line_info_table): Remove.
3791         (separate_line_info_table_allocated): Remove.
3792         (separate_line_info_table_in_use): Remove.
3793         (LINE_INFO_TABLE_INCREMENT): Remove.
3794         (line_info_label_num): New.
3795         (cur_line_info_table): New.
3796         (text_section_line_info, cold_text_section_line_info): New.
3797         (separate_line_info): New.
3798         (SEPARATE_LINE_CODE_LABEL): Remove.
3799         (print_dwarf_line_table): Remove.
3800         (debug_dwarf): Don't dump it.
3801         (output_one_line_info_table): New.
3802         (output_line_info): Use it.
3803         (new_line_info_table): New.
3804         (set_cur_line_info_table): New.
3805         (dwarf2out_switch_text_section): Use it.
3806         (dwarf2out_begin_function): Likewise.
3807         (push_dw_line_info_entry): New.
3808         (dwarf2out_source_line): Rewrite for new line info tables.
3809         (dwarf2out_init): Remove dead initailizations.
3810
3811 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3812
3813         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3814         various flags.
3815         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3816         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3817         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3818         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3819         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3820         * opt-functions.awk (flag_init, switch_bit_fields): New.
3821         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3822         generate CL_MISSING_OK or CL_SAVE.
3823         * optc-gen.awk: Update to generate bit-field output as well as
3824         flags field.
3825         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3826         bit-field instead of CL_REJECT_DRIVER flag.
3827         * opts-common.c (generate_canonical_option,
3828         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3829         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3830         instead of CL_REJECT_NEGATIVE flag.
3831         * toplev.c (print_switch_values): Use cl_report bit-field instead
3832         of CL_REPORT flag.
3833
3834 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3835
3836         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3837         a zero minimum index only if it is redundant.
3838
3839 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3840
3841         PR rtl-optimization/48381
3842         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3843         instead of ira_class_hard_reg_index for calculating conflicting
3844         hard registers.
3845
3846 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3847
3848         * cprop.c: Clean up hash table building.
3849         (reg_avail_info): Remove.
3850         (oprs_available_p): Remove.
3851         (record_last_reg_set_info): Remove.
3852         (record_last_set_info): Remove.
3853         (reg_available_p): New function.
3854         (gcse_constant_p): Do not treat unfolded conditions as constants.
3855         (make_set_regs_unavailable): New function.
3856         (hash_scan_set): Simplify with new reg_available_p.
3857         (compute_hash_table_work): Traverse insns stream only once.
3858         Do not compute reg_avail_info. Traverse insns in reverse order.
3859         Record implicit sets after recording explicit sets from the block.
3860
3861 2011-03-31  Michael Matz  <matz@suse.de>
3862
3863         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3864
3865 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3866
3867         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3868         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3869         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3870         (h8300_mode_dependent_address_p): New function.
3871         (h8300_get_index): Make static.
3872
3873 2011-03-31  Jeff Law  <law@redhat.com>
3874
3875         * reload1.c (elimination_effects): Fix typo in recent change.
3876
3877         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3878         typo potentially leading to null pointer dereference.
3879
3880         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3881         (setup_save_areas): Corresponding changes to avoid useless
3882         assignments.
3883
3884         * jump.c (reversed_comparison_code_parts): Avoid successive return
3885         statements when REVERSE_CONDITION is defined.
3886
3887         * expr.c (expand_assignment): Avoid useless assignments.
3888         (expand_expr_real_1): Likewise.
3889         (expand_expr_real_2): Avoid useless statements.
3890
3891         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3892
3893         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3894
3895         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3896         statements.
3897
3898         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3899
3900 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3901
3902         PR target/47109
3903         * doc/tm.texi.in (TARGET_VERSION): Remove.
3904         * doc/tm.texi: Regenerate.
3905         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3906         * collect2.c (main): Don't use TARGET_VERSION.
3907         * mips-tdump.c (main): Don't use TARGET_VERSION.
3908         * mips-tfile.c (main): Don't use TARGET_VERSION.
3909         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3910         * config/rs6000/vxworksae.h: Remove.
3911         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3912         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3913         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3914         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3915         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3916         * config/arm/arm.h (TARGET_VERSION): Remove.
3917         * config/arm/coff.h (TARGET_VERSION): Remove.
3918         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3919         * config/arm/elf.h (TARGET_VERSION): Remove.
3920         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3921         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3922         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3923         * config/arm/pe.h (TARGET_VERSION): Remove.
3924         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3925         * config/arm/semi.h (TARGET_VERSION): Remove.
3926         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3927         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3928         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3929         * config/avr/avr.h (TARGET_VERSION): Remove.
3930         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3931         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3932         * config/frv/frv.h (TARGET_VERSION): Remove.
3933         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3934         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3935         * config/i386/darwin.h (TARGET_VERSION): Remove.
3936         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3937         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3938         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3939         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3940         * config/i386/gnu.h (TARGET_VERSION): Remove.
3941         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3942         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3943         * config/i386/linux.h (TARGET_VERSION): Remove.
3944         * config/i386/linux64.h (TARGET_VERSION): Remove.
3945         * config/i386/lynx.h (TARGET_VERSION): Remove.
3946         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3947         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3948         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3949         * config/i386/netware.h (TARGET_VERSION): Remove.
3950         * config/i386/nto.h (TARGET_VERSION): Remove.
3951         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3952         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3953         * config/ia64/elf.h (TARGET_VERSION): Remove.
3954         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3955         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3956         * config/ia64/linux.h (TARGET_VERSION): Remove.
3957         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3958         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3959         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3960         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3961         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3962         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3963         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3964         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3965         * config/m68k/linux.h (TARGET_VERSION): Remove.
3966         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3967         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3968         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3969         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3970         * config/mep/mep.h (TARGET_VERSION): Remove.
3971         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3972         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3973         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3974         * config/mips/linux.h (TARGET_VERSION): Remove.
3975         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3976         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3977         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3978         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3979         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3980         * config/pa/pa.h (TARGET_VERSION): Remove.
3981         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3982         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3983         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3984         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3985         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3986         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3987         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3988         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3989         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3990         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3991         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3992         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3993         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3994         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3995         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3996         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3997         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3998         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3999         * config/s390/linux.h (TARGET_VERSION): Remove.
4000         * config/s390/s390.h (TARGET_VERSION): Remove.
4001         * config/s390/tpf.h (TARGET_VERSION): Remove.
4002         * config/score/score.h (TARGET_VERSION): Remove.
4003         * config/sh/linux.h (TARGET_VERSION): Remove.
4004         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4005         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4006         * config/sh/sh.h (TARGET_VERSION): Remove.
4007         * config/sh/sh64.h (TARGET_VERSION): Remove.
4008         * config/sh/superh.h (TARGET_VERSION): Remove.
4009         * config/sh/vxworks.h (TARGET_VERSION): Remove.
4010         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4011         * config/sparc/linux.h (TARGET_VERSION): Remove.
4012         * config/sparc/linux64.h (TARGET_VERSION): Remove.
4013         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4014         TARGET_NAME32, TARGET_NAME): Remove.
4015         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4016         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4017         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4018         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4019         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4020         * config/spu/spu.h (TARGET_VERSION): Remove.
4021         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4022         * config/v850/v850.h (TARGET_VERSION): Remove.
4023         * config/vax/linux.h (TARGET_VERSION): Remove.
4024         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4025         * config/xtensa/elf.h (TARGET_VERSION): Remove.
4026         * config/xtensa/linux.h (TARGET_VERSION): Remove.
4027
4028 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4029
4030         PR target/48142
4031         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4032         frame-related from frame-unrelated adjustments to the stack pointer.
4033
4034 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
4035
4036         * common.opt (fdebug-types-section): Move earlier.
4037         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4038
4039 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
4040
4041         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4042         var.
4043
4044 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
4045
4046         * tree.h (CASE_CHAIN): Define.
4047         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4048         (gimple_redirect_edge_and_branch): Likewise.
4049
4050 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4051
4052         PR middle-end/48367
4053         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4054         calculation.
4055
4056 2011-03-30  Jeff Law  <law@redhat.com>
4057
4058         * PR bootstrap/48371
4059         * reload1.c (reload): Fix botch in last change.
4060
4061         * reload.h (struct reload): Fix typo introduced in last change.
4062
4063 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4064
4065         * config/arm/arm.opt (mhard-float, msoft-float): Mark
4066         Undocumented.  Remove help text.
4067         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4068         -mhard-float.
4069
4070 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4071
4072         * doc/options.texi (NegativeAlias): Document.
4073         (Alias): Mention NegativeAlias.
4074         * opt-functions.awk: Handle NegativeAlias.
4075         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4076         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4077         * opts.h (CL_NEGATIVE_ALIAS): Define.
4078         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4079         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4080         OPT_mspe_.
4081         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4082         Alias entries.
4083         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4084         mno-spe and mno-isel instead of mspe=no and -misel=no.
4085
4086 2011-03-29  Mark Wielaard  <mjw@redhat.com>
4087
4088         * common.opt (fdebug-types-section): New flag.
4089         * doc/invoke.texi: Document new -fno-debug-types-section flag.
4090         * dwarf2out.c (use_debug_types): New define.
4091         (struct die_struct): Mark die_id with GTY desc use_debug_types.
4092         (print_die): Guard output of type unit signatures using
4093         use_debug_types.
4094         (build_abbrev_table): Replace assert of dwarf_version >= 4
4095         with assert on use_debug_types.
4096         (size_of_die): Likewise.
4097         (unmark_dies): Likewise.
4098         (value_format): Decide AT_ref_external form on use_debug_types.
4099         (output_die): Replace dwarf_version version check guard with
4100         use_debug_types where appropriate.
4101         (modified_type_die): Likewise.
4102         (gen_reference_type_die): Likewise.
4103         (dwarf2out_start_source_file): Likewise.
4104         (dwarf2out_end_source_file): Likewise.
4105         (prune_unused_types_walk_attribs): Likewise.
4106         (dwarf2out_finish): Likewise.
4107
4108 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4109
4110         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4111
4112 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4113
4114         PR rtl-optimization/48332
4115         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4116         mode of input operand N and modeN to its actual mode.
4117
4118 2011-03-30  Jeff Law  <law@redhat.com>
4119
4120         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4121         define accessor macro.
4122         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4123         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4124         (reg_equiv_init): Likewise.
4125         (reg_equivs_size): New variable.
4126         (reg_equiv_init_size): Remove.
4127         (allocate_initial_values): Move prototype to here from....
4128         * integrate.h (allocate_initial_values): Remove prototype.
4129         * integrate.c: Include reload.h.
4130         (allocate_initial_values): Corresponding changes.
4131         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4132         (fix_reg_equiv_init, no_equiv): Corresponding changes.
4133         (update_equiv_regs): Corresponding changes.
4134         (ira): Corresponding changes.
4135         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4136         (push_secondary_reload): Corresponding changes.
4137         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4138         (make_memloc, find_reloads_address): Corresponding changes.
4139         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4140         (find_reloads_address_1): Corresponding changes.
4141         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4142         (refers_to_regno_for_reload_p): Corresponding changes.
4143         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4144         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4145         * reload1.c: Include ggc.h.
4146         (grow_reg_equivs): New function.
4147         (replace_pseudos_in, reload): Corresponding changes.
4148         (calculate_needs_all_insns, alter_regs): Corresponding changes.
4149         (eliminate_regs_1, elimination_effects): Corresponding changes.
4150         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4151         (delete_output_reload): Likewise.
4152         * caller-save.c (mark_referenced_regs): Corresponding changes.
4153         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4154         * frv/predicates.md (frv_load_operand): Corresponding changes.
4155         * microblaze/microblaze.c (double_memory_operand): Corresponding
4156         changes.
4157         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4158         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4159         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4160         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4161         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4162         changes.
4163         * pa/pa.c (emit_move_sequence): Corresponding changes.
4164         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4165
4166 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4167
4168         PR target/47551
4169         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4170         structure modes.  Don't check neon_vector_mem_operand for
4171         vector or structure modes.
4172
4173 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4174             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4175
4176         PR target/43590
4177         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4178         operand 1 and reshuffle the operands to match.
4179         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4180
4181 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4182
4183         PR driver/48208
4184         * config/c.opt (F): Added 'Driver' to -F option.
4185
4186         PR driver/48260
4187         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4188           handler function.
4189         * config/darwin.opt: Added '-arch' option.
4190
4191 2011-03-30  Nick Clifton  <nickc@redhat.com>
4192
4193         * config/rx/rx.md: Add peepholes and patterns to combine
4194         extending loads and simple arithmetic instructions.
4195         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4196         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4197         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4198         modes to use pre-decrement and post-increment addressing.
4199         (rx_is_restricted_memory_address): Add range checking of REG+INT
4200         addresses.
4201         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4202         (rx_memory_move_cost): Adjust cost of stores.
4203         (rx_adjust_insn_length): New function.
4204
4205 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4206
4207         PR c/48305
4208         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4209         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4210         matching arg00/arg01 types.
4211
4212 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4213
4214         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4215         last_location to UNKNOWN_LOCATION.
4216
4217 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4218
4219         PR target/48349
4220         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4221         FLOAT_SSE_REGS.
4222
4223 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4224             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4225
4226         PR bootstrap/48337
4227         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4228         Init(PROCESSOR_V7).
4229         (sparc_cpu): Likewise.
4230         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4231         PROCESSOR_V7.
4232
4233 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4234
4235         PR target/48336
4236         PR middle-end/48342
4237         PR rtl-optimization/48345
4238         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4239         hard regs for given mode from profitable regs when doing secondary
4240         allocation.
4241
4242 2011-03-29  Jeff Law  <law@redhat.com>
4243
4244         PR bootstrap/48327
4245         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4246         do_not_duplicate field.
4247         (lookup_redirection_data): Corresponding changes.
4248         (create_duplicates): Always create a template block.
4249         (redirect_edges): Remove code which reused the original block
4250         when it was going to become unreachable code.
4251         (thread_block): Don't set do_not_duplicate field.
4252
4253 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4254
4255         * lto-opts.c (register_user_option_p, lto_register_user_option):
4256         Make type argument unsigned.
4257         * lto-streamer.h (lto_register_user_option): Make type argument
4258         unsigned.
4259         * opth-gen.awk: Make CL_* macros unsigned.
4260         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4261         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4262         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4263         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4264         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4265         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4266         (find_opt): Make lang_mask argument unsigned.
4267
4268 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4269
4270         PR rtl-optimization/48331
4271         PR rtl-optimization/48334
4272         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4273         for any used algorithm.
4274
4275 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4276
4277         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4278         to parent_max.
4279
4280 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4281
4282         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4283         (alpha_option_override): Don't set alpha_sr_alias_set.
4284         (emit_frame_store_1): Use gen_frame_mem rather than calling
4285         set_mem_alias_set.
4286         (alpha_expand_epilogue): Ditto.
4287
4288 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4289
4290         PR tree-optimization/48290
4291         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4292         vectorization, check that relevant phis in the basic block after
4293         the inner loop are really inner loop's exit phis.
4294
4295 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4296
4297         PR debug/48190
4298         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4299         (cached_dw_loc_list_def): New structure.
4300         (cached_dw_loc_list): New typedef.
4301         (cached_dw_loc_list_table): New variable.
4302         (cached_dw_loc_list_table_hash): New function.
4303         (cached_dw_loc_list_table_eq): Likewise.
4304         (add_location_or_const_value_attribute): Take a bool cache_p.
4305         Cache the list when the parameter is true.
4306         (gen_formal_parameter_die): Update caller.
4307         (gen_variable_die): Likewise.
4308         (dwarf2out_finish): Likewise.
4309         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4310         while generating debug info for the decl.
4311         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4312         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4313         (resolve_addr): Cache the result of resolving a chain of
4314         location lists.
4315
4316 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4317
4318         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4319         conflict object hard regset nodes have intersecting hard reg sets.
4320
4321         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4322         after regstat_init_n_sets_and_refs.
4323
4324         * ira.c: Add more comments at the top.
4325         (setup_stack_reg_pressure_class, setup_pressure_classes):
4326         Add comments how we compute the register pressure classes.
4327         (setup_allocno_and_important_classes): Add more comments.
4328         (setup_class_translate_array, reorder_important_classes)
4329         (setup_reg_class_relations): Add comments.
4330
4331         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4332         start of the file.
4333
4334         * ira-color.c: Add 2011 to the Copyright line.
4335         (assign_hard_reg):  Add more comments.
4336         (improve_allocation): Ditto.
4337
4338         * ira-costs.c: Add 2011 to the Copyright line.
4339         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4340         comments.
4341         (setup_regno_cost_classes_by_mode): Ditto.
4342
4343         Initial patches from ira-improv branch:
4344
4345         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4346
4347         * ira-build.c (ira_create_object): Remove initialization of
4348         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4349         (ira_create_allocno): Remove initialization of
4350         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4351         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4352         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4353         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4354         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4355         Initialize ALLOCNO_ADD_DATA.
4356         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4357         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4358         ALLOCNO_REG.
4359         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4360         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4361
4362         * ira.c (ira_reallocate): Remove.
4363         (setup_pressure_classes): Call
4364         ira_init_register_move_cost_if_necessary.  Use
4365         ira_register_move_cost instead of ira_get_register_move_cost.
4366         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4367         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4368
4369         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4370         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4371         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4372         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4373         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4374         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4375         Fix formatting.
4376         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4377         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4378         (struct allocno_color_data): New.
4379         (allocno_color_data_t): New typedef.
4380         (allocno_color_data): New definition.
4381         (ALLOCNO_COLOR_DATA): New macro.
4382         (struct object_color_data): New.
4383         (object_color_data_t): New typedef.
4384         (object_color_data): New definition.
4385         (OBJECT_COLOR_DATA): New macro.
4386         (update_copy_costs, calculate_allocno_spill_cost): Call
4387         ira_init_register_move_cost_if_necessary.  Use
4388         ira_register_move_cost instead of ira_get_register_move_cost.
4389         (move_spill_restore, update_curr_costs): Ditto.
4390         (allocno_spill_priority): Make it inline.
4391         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4392         (struct coalesce_data, coalesce_data_t): New.
4393         (allocno_coalesce_data): New definition.
4394         (ALLOCNO_COALESCE_DATA): New macro.
4395         (merge_allocnos, coalesced_allocno_conflict_p): Use
4396         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4397         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4398         (coalesce_allocnos): Ditto.
4399         (setup_coalesced_allocno_costs_and_nums): Ditto.
4400         (collect_spilled_coalesced_allocnos): Ditto.
4401         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4402         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4403         (coalesce_spill_slots): Ditto.
4404         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4405         free allocno_coalesce_data.
4406
4407         * ira-conflicts.c: Fix formatting.
4408         (process_regs_for_copy): Call
4409         ira_init_register_move_cost_if_necessary.  Use
4410         ira_register_move_cost instead of ira_get_register_move_cost.
4411         (build_object_conflicts): Optimize.
4412
4413         * ira-costs.c (record_reg_classes): Optimize.  Call
4414         ira_init_register_move_cost_if_necessary.  Use
4415         ira_register_move_cost, ira_may_move_in_cost, and
4416         ira_may_move_out_cost instead of ira_get_register_move_cost and
4417         ira_get_may_move_cost.
4418         (record_address_regs): Ditto.
4419         (scan_one_insn): Optimize.
4420         (find_costs_and_classes): Optimize.
4421         (process_bb_node_for_hard_reg_moves): Call
4422         ira_init_register_move_cost_if_necessary.  Use
4423         ira_register_move_cost instead of ira_get_register_move_cost.
4424
4425         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4426         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4427         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4428         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4429         definitions.
4430         (ira_initiate_emit_data, ira_finish_emit_data)
4431         (create_new_allocno): New functions.
4432         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4433         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4434         Use ira_register_move_cost instead of ira_get_register_move_cost.
4435
4436         * ira-int.h: Fix some comments.
4437         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4438         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4439         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4440         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4441         add_data.
4442         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4443         bitfield after mode.  Make hard_regno a short int.  Make
4444         hard_regno short.  Remove first_coalesced_allocno and
4445         next_coalesced_allocno.  Move mem_optimized_dest_p,
4446         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4447         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4448         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4449         temp, colorable_p.  Add new member add_data.
4450         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4451         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4452         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4453         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4454         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4455         (ALLOCNO_ADD_DATA): New macro.
4456         (ira_emit_data_t): New typedef.
4457         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4458         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4459         from struct ira_allocno.
4460         (ALLOCNO_EMIT_DATA): New macro.
4461         (ira_allocno_emit_data, allocno_emit_reg): New.
4462         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4463         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4464         (OBJECT_ADD_DATA): New macro.
4465         (ira_reallocate): Remove.
4466         (ira_initiate_emit_data, ira_finish_emit_data): New.
4467         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4468         (ira_init_register_move_cost_if_necessary): New.
4469         (ira_object_conflict_iter_next): Merge into
4470         ira_object_conflict_iter_cond.
4471         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4472
4473         * ira-live.c (process_single_reg_class_operands): Call
4474         ira_init_register_move_cost_if_necessary.  Use
4475         ira_register_move_cost instead of ira_get_register_move_cost.
4476
4477         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4478
4479         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4480
4481         * ira-costs.c: Fix formatting.
4482         (cost_classes, cost_classes_num): Remove.
4483         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4484         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4485         (cost_classes_del, cost_classes_htab): New.
4486         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4487         (initiate_regno_cost_classes, setup_cost_classes): New.
4488         (setup_regno_cost_classes_by_aclass): New.
4489         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4490         (record_reg_classes): Use regno_cost_classes instead of
4491         cost_classes.  Move checking opposite operand up.
4492         (record_address_regs): Use regno_cost_classes
4493         instead of cost_classes.
4494         (scan_one_insn): Ditto.  Use always general register.
4495         (print_allocno_costs): Use regno_cost_classes instead of
4496         cost_classes.
4497         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4498         (find_costs_and_classes): Set up cost classes for each registers.
4499         Use also their mode for this.  Use regno_cost_classes instead of
4500         cost_classes.
4501         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4502         cost_classes.
4503         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4504         (ira_costs, ira_set_pseudo_classes): Call
4505         initiate_regno_cost_classes and finish_regno_cost_classes.
4506
4507         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4508
4509         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4510
4511         * target.def (ira_cover_classes): Remove.
4512
4513         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4514
4515         * doc/tm.texi.in: Ditto.
4516
4517         * ira-conflicts.c: Remove mentioning cover classes from the file.
4518         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4519         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4520
4521         * targhooks.c (default_ira_cover_classes): Remove.
4522
4523         * targhooks.h (default_ira_cover_classes): Ditto.
4524
4525         * haifa-sched.c: Remove mentioning cover classes from the file.
4526         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4527         ira_pressure_classes and ira_pressure_classes_num instead of
4528         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4529         sched_regno_pressure_class instead of sched_regno_cover_class.
4530         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4531         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4532
4533         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4534         classes from the file.
4535         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4536         (struct object_hard_regs, struct object_hard_regs_node): New.
4537         (struct ira_object): New members profitable_hard_regs,
4538         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4539         (struct ira_allocno): Rename cover_class to aclass.  Rename
4540         cover_class_cost and updated_cover_class_cost to class_cost and
4541         updated_class_cost.  Remove splay_removed_p and
4542         left_conflict_size.  Add new members colorable_p.
4543         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4544         (ALLOCNO_COLORABLE_P): New macro.
4545         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4546         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4547         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4548         (OBJECT_...): Rename parameter C to O.
4549         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4550         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4551         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4552         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4553         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4554         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4555         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4556         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4557         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4558         x_ira_reg_class_subunion.
4559         (ira_max_memory_move_cost, ira_max_register_move_cost)
4560         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4561         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4562         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4563         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4564         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4565         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4566         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4567         (ira_tune_allocno_costs_and_cover_classes): Rename to
4568         ira_tune_allocno_costs.
4569         (ira_debug_hard_regs_forest): New.
4570         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4571         (ira_object_conflict_iter_next): Fix comments.
4572         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4573         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4574         cover_class to aclass.
4575         (ira_allocate_and_accumulate_costs): Ditto.
4576         (ira_allocate_and_set_or_copy_costs): Ditto.
4577
4578         * opts.c (decode_options): Remove ira_cover_class check.
4579
4580         * ira-color.c: Remove mentioning cover classes from the file.  Use
4581         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4582         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4583         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4584         (splay-tree.h): Remove include.
4585         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4586         before copy_freq_compare_func.
4587         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4588         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4589         New definitions.
4590         (hard_regs_roots, hard_regs_node_vec): Ditto.
4591         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4592         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4593         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4594         (create_new_object_hard_regs_node): Ditto.
4595         (add_new_object_hard_regs_node_to_forest): Ditto.
4596         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4597         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4598         Ditto.
4599         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4600         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4601         (remove_unused_object_hard_regs_nodes): Ditto.
4602         (enumerate_object_hard_regs_nodes): Ditto.
4603         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4604         (object_hard_regs_subnode_t): Ditto.
4605         (struct object_hard_regs_subnode): Ditto.
4606         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4607         (setup_object_hard_regs_subnode_index): Ditto.
4608         (get_object_hard_regs_subnodes_num): Ditto.
4609         (form_object_hard_regs_nodes_forest): Ditto.
4610         (finish_object_hard_regs_nodes_tree): Ditto.
4611         (finish_object_hard_regs_nodes_forest): Ditto.
4612         (allocnos_have_intersected_live_ranges_p): Rename to
4613         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4614         (pseudos_have_intersected_live_ranges_p): Rename to
4615         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4616         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4617         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4618         (update_copy_costs): Remove assert.  Skip cost update if the hard
4619         reg does not belong the class.
4620         (assign_hard_reg): Process only profitable hard regs.
4621         (uncolorable_allocnos_num): Make it scalar.
4622         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4623         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4624         and ira_reg_class_max_nregs.
4625         (bucket_allocno_compare_func): Check frequency first.
4626         (sort_bucket): Add compare function as a parameter.
4627         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4628         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4629         (push_allocno_to_stack): Rewrite for checking new allocno
4630         colorability.
4631         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4632         (push_only_colorable): Pass new parameter to sort_bucket.
4633         (push_allocno_to_spill): Remove.
4634         (allocno_spill_priority_compare): Make it inline and rewrite.
4635         (splay_tree_allocate, splay_tree_free): Remove.
4636         (allocno_spill_sort_compare): New function.
4637         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4638         build and use splay tree.  Choose first allocno in uncolorable
4639         allocno bucket to spill.  Remove setting spill cost.
4640         (all_conflicting_hard_regs): Remove.
4641         (setup_allocno_available_regs_num): Check only profitable hard
4642         regs.  Print info about hard regs nodes.
4643         (setup_allocno_left_conflicts_size): Remove.
4644         (put_allocno_into_bucket): Don't call
4645         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4646         (improve_allocation): New.
4647         (color_allocnos): Call setup_profitable_hard_regs,
4648         form_object_hard_regs_nodes_forest, improve_allocation,
4649         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4650         (print_loop_title): Use pressure classes.
4651         (color_allocnso): Ditto.
4652         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4653         and allocnos_for_spilling.
4654         (ira_sort_regnos_for_alter_reg): Don't setup members
4655         {first,next}_coalesced_allocno.
4656         (color): Remove allocating and freeing removed_splay_allocno_vec.
4657         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4658         prohibited_class_mode_regs.
4659
4660         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4661         formatting.
4662         (update_allocno_pressure_excess_length): Use pressure classes.
4663         (inc_register_pressure, dec_register_pressure): Check for pressure
4664         class.
4665         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4666         pressure class.  Use ira_reg_class_nregs instead of
4667         ira_reg_class_max_nregs.
4668         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4669         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4670         (single_reg_class): Use ira_reg_class_nregs instead of
4671         ira_reg_class_max_nregs.
4672         (process_bb_node_lives): Use pressure classes.
4673
4674         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4675         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4676         (change_loop): Use pressure classes.
4677         (modify_move_list): Call ira_set_allocno_class instead of
4678         ira_set_allocno_cover_class.
4679
4680         * ira-build.c: Remove mentioning cover classes from the file.  Use
4681         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4682         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4683         ALLOCNO_UPDATED_CLASS_COST instead of
4684         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4685         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4686         (ira_create_allocno): Remove initialization of
4687         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4688         ALLOCNO_COLORABLE_P.
4689         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4690         Update conflict regs for the objects.
4691         (create_cap_allocno): Remove assert.  Don't propagate
4692         ALLOCNO_AVAILABLE_REGS_NUM.
4693         (ira_free_allocno_costs): New function.
4694         (finish_allocno): Change a part of code into call of
4695         ira_free_allocno_costs.
4696         (low_pressure_loop_node_p): Use pressure classes.
4697         (object_range_compare_func): Don't compare classes.
4698         (setup_min_max_conflict_allocno_ids): Ditto.
4699
4700         * loop-invariant.c: Remove mentioning cover classes from the file.
4701         Use ira_pressure_classes and ira_pressure_classes_num instead of
4702         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4703         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4704         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4705         Use reg_allocno_class instead of reg_cover_class.
4706         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4707         STACK_REG_COVER_CLASS.
4708         (get_regno_cover_class): Rename to get_regno_pressure_class.
4709         (move_loop_invariants): Initialize and finalize regstat.
4710
4711         * ira.c: Remove mentioning cover classes from the file.  Add
4712         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4713         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4714         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4715         setup_class_subset_and_memory_move_costs.
4716         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4717         (setup_cover_and_important_classes): Rename to
4718         setup_allocno_and_important_classes.
4719         (setup_class_translate_array): New.
4720         (setup_class_translate): Call it for allocno and pressure classes.
4721         (cover_class_order): Rename to allocno_class_order.
4722         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4723         of ira_class_translate.
4724         (reorder_important_classes): Set up ira_important_class_nums.
4725         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4726         (print_class_cover): Rename to print_classes.  Add parameter.
4727         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4728         Print pressure classes too.
4729         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4730         setup_reg_subclasses.
4731         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4732         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4733         (setup_prohibited_class_mode_regs): Use
4734         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4735         (clarify_prohibited_class_mode_regs): New function.
4736         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4737         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4738         (ira_init_once): Initialize them.
4739         (free_register_move_costs): Process them.
4740         (ira_init): Move calls of find_reg_classes and
4741         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4742         Call clarify_prohibited_class_mode_regs.
4743         (ira_no_alloc_reg): Remove.
4744         (too_high_register_pressure_p): Use pressure classes.
4745
4746         * sched-deps.c: Remove mentioning cover classes from the file.
4747         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4748         ira_pressure_classes and ira_pressure_classes_num instead of
4749         ira_reg_class_cover_size and ira_reg_class_cover.
4750         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4751         sched_regno_pressure_class instead of sched_regno_cover_class.
4752         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4753         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4754
4755         * ira.h: Add 2010 to Copyright.
4756         (ira_no_alloc_reg): Remove external.
4757         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4758         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4759         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4760         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4761         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4762         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4763         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4764         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4765         x_ira_no_alloc_regs.
4766         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4767         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4768         ira_allocno_classes_num and ira_allocno_classes.
4769         (ira_class_translate): Rename to ira_allocno_class_translate.
4770         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4771         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4772         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4773         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4774         (ira_no_alloc_regs): New.
4775
4776         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4777         classes from the file.  Use ALLOCNO_CLASS instead of
4778         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4779         ALLOCNO_COVER_CLASS_COST.
4780         (regno_cover_class): Rename to regno_aclass.
4781         (record_reg_classes): Use ira_reg_class_subunion instead of
4782         ira_reg_class_union.
4783         (record_address_regs): Check overflow.
4784         (scan_one_insn): Ditto.
4785         (print_allocno_costs): Print total mem cost fore regional allocation.
4786         (print_pseudo_costs): Use REG_N_REFS.
4787         (find_costs_and_classes): Use classes intersected with them on the
4788         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4789         ira_reg_class_union.  Use ira_allocno_class_translate and
4790         regno_aclass instead of ira_class_translate and regno_cover_class.
4791         Modify code for finding regno_aclass.  Setup preferred classes for
4792         the next pass.
4793         (setup_allocno_cover_class_and_costs): Rename to
4794         setup_allocno_class_and_costs.  Use regno_aclass instead of
4795         regno_cover_class.  Use ira_set_allocno_class instead of
4796         ira_set_allocno_cover_class.
4797         (init_costs, finish_costs): Use regno_aclass instead of
4798         regno_cover_class.
4799         (ira_costs): Use setup_allocno_class_and_costs instead of
4800         setup_allocno_cover_class_and_costs.
4801         (ira_tune_allocno_costs_and_cover_classes): Rename to
4802         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4803         by processing objects.  Use ira_reg_class_max_nregs instead of
4804         ira_reg_class_nregs.
4805
4806         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4807
4808         * sched-int.h: Remove mentioning cover classes from the file.
4809         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4810
4811         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4812         classes from the file.
4813         (struct reg_pref): Rename coverclass into allocnoclass.
4814         (reg_cover_class): Rename to reg_allocno_class.
4815
4816         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4817
4818         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4819
4820         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4821
4822         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4823
4824         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4825
4826         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4827
4828         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4829
4830         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4831
4832         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4833
4834         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4835
4836         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4837         (i386_ira_cover_classes): Ditto.
4838
4839         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4840
4841         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4842
4843         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4844
4845         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4846
4847         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4848
4849         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4850
4851         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4852         (mips_ira_cover_classes): Ditto.
4853
4854         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4855
4856         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4857
4858         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4859
4860         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4861
4862         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4863
4864         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4865         (IRA_COVER_CLASSES_VSX): Ditto.
4866
4867         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4868         (rs6000_ira_cover_classes): Ditto.
4869
4870         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4871
4872         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4873
4874         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4875
4876         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4877
4878         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4879
4880         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4881
4882         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4883
4884         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4885
4886         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4887
4888         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4889
4890 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4891
4892         PR debug/48253
4893         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4894         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4895         dw_fde_unlikely_section_end_label, cold_in_std_section,
4896         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4897         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4898         fields.
4899         (output_fde): Use dw_fde_second_{begin,end} if second is
4900         true, otherwise dw_fde_{begin,end}.
4901         (output_call_frame_info): Test dw_fde_second_begin != NULL
4902         instead of dw_fde_switched_sections.
4903         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4904         fields, initialize new fields.  Initialize in_std_section
4905         unconditionally from the first partition.
4906         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4907         dw_fde_second_begin is non-NULL.
4908         (dwarf2out_switch_text_section): Stop initializing removed
4909         dw_fde_struct fields, initialize new fields, initialize
4910         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4911         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4912         (struct var_loc_list_def): Add last_before_switch field.
4913         (arange_table, arange_table_allocated, arange_table_in_use,
4914         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4915         (size_of_aranges): Count !in_std_section and !second_in_std_section
4916         hunks in fdes, instead of looking at arange_table_in_use.
4917         (output_aranges): Add aranges_length argument, don't call
4918         size_of_aranges here.  Instead of using aranges_table*
4919         emit ranges for fdes when !in_std_section resp.
4920         !second_in_std_section.
4921         (dw_loc_list): Break ranges crossing section switch.
4922         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4923         use dw_fde_second_end instead of dw_fde_end as end of last range.
4924         (gen_subprogram_die): Don't call add_arange.  Use
4925         dw_fde_{begin,end} for first partition and if switched
4926         section dw_fde_second_{begin,end} for the second.
4927         (var_location_switch_text_section_1,
4928         var_location_switch_text_section): New functions.
4929         (dwarf2out_begin_function): Initialize cold_text_section even
4930         when function_section () isn't text_section.
4931         (prune_unused_types): Don't walk arange_table.
4932         (dwarf2out_finish): Don't needlessly test
4933         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4934         If info_section_emitted, call size_of_aranges and if it indicates
4935         non-empty .debug_aranges, call output_aranges with the computed
4936         size.  Stop using removed dw_fde_struct fields, use
4937         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4938         for second.
4939
4940         PR debug/48203
4941         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4942         create ENTRY_VALUE if incoming or address of incoming's MEM
4943         is a hard REG.
4944         * dwarf2out.c (mem_loc_descriptor): Don't emit
4945         DW_OP_GNU_entry_value of DW_OP_fbreg.
4946         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4947         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4948         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4949         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4950         ENTRY_VALUE_EXPs.
4951         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4952         is a REG_P or MEM_P with REG_P address, compute hash directly
4953         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4954         (preserve_only_constants): Don't clear VALUES forwaring
4955         ENTRY_VALUE to some other VALUE.
4956
4957 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4958
4959         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4960         instead of GEN_INT.
4961
4962 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4963
4964         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4965         block before expanding the statement.
4966         (expand_gimple_stmt_1): Likewise.  Set them here...
4967         (expand_gimple_stmt): ...and not here.  Tidy.
4968         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4969         unknown.
4970
4971 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4972
4973         * Makefile.in: New rule for cprop.o.
4974         * gcse.c: Move constant/copy propagation to cprop.c.
4975         (compute_local_properties): Only handle expression tables.
4976         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4977         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4978         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4979         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4980         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4981         compute_cprop_data, find_used_regs, try_replace_reg,
4982         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4983         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4984         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4985         find_bypass_set, reg_killed_on_edge, bypass_block,
4986         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4987         execute_rtl_cprop, pass_rtl_cprop): Move to...
4988         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4989         moved from gcse.c to here with minor cleanups in duplicated code.
4990
4991 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4992
4993         * config/i386/i386.c (flag_opts): Fix a typo in
4994         -mavx256-split-unaligned-store.
4995
4996 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4997
4998         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4999         LIBCALL_VALUE): Remove macros.
5000         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5001         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5002         (h8300_function_value, h8300_libcall_value,
5003         h8300_function_value_regno_p): New functions.
5004
5005 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
5006
5007         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5008
5009 2011-03-28  Jeff Law  <law@redhat.com>
5010
5011         * tree-ssa-threadupdate.c (redirect_edges): Call
5012         create_edge_and_update_destination_phis as needed.
5013         (create_edge_and_update_destination_phis): Accept new BB argument.
5014         All callers updated.
5015         (thread_block): Do not update the profile when threading around
5016         intermediate blocks.
5017         (thread_single_edge): Likewise.
5018         (determine_bb_domination_status): If BB is not a successor of the
5019         loop header, return NONDOMINATING.
5020         (register_jump_thread): Note when we register a jump thread around
5021         an intermediate block.
5022         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5023         (thread_across_edge): Use it.
5024
5025 2011-03-28  Tristan Gingold  <gingold@adacore.com>
5026
5027         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5028         when for_return is 2.
5029
5030 2011-03-28  Jeff Law  <law@redhat.com>
5031
5032         * var-tracking.c (canonicalize_values_mark): Delete unused
5033         lhs assignment.
5034         (canonicalize_values_star, set_variable_part): Likewise.
5035         (clobber_variable_part, delete_variable_part): Likewise.
5036
5037 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5038
5039         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5040
5041 2011-03-28  Martin Jambor  <mjambor@suse.cz>
5042
5043         * tree-inline.c (expand_call_inline): Do not check that destination
5044         node is analyzed.
5045         (optimize_inline_calls): Assert that destination node is analyzed.
5046         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5047         not call tree_lowering_passes.
5048         * cgraph.h (cgraph_analyze_function): Declare.
5049         * cgraphunit.c (cgraph_analyze_function): Make public.
5050
5051 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
5052
5053         * config/sparc/sparc-opts.h: New.
5054         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5055         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5056         (sparc_option_override): Store processor_type enumeration rather
5057         than string in cpu_default.  Remove name and enumeration from
5058         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
5059         without using sparc_select.  Use target_flags_explicit instead of
5060         fpu_option_set.
5061         * config/sparc/sparc.h (enum processor_type): Move to
5062         sparc-opts.h.
5063         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5064         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5065         HeaderInclude entry.
5066         (mcpu=, mtune=): Use Var and Enum.
5067         (sparc_processor_type): New Enum and EnumValue entries.
5068
5069 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5070             Iain Sandoe  <iains@gcc.gnu.org>
5071
5072         PR target/48245
5073         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5074
5075 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5076
5077         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5078         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5079         Insert new statements at it in lieu of STMT.
5080         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5081         * tree-vect-stmts.c (vectorizable_store): Likewise.
5082         (vectorizable_load): Likewise.
5083
5084 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
5085
5086         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5087         (divtf3): Ditto.
5088         (multf3): Ditto.
5089         (subtf3): Ditto.
5090
5091 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5092
5093         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5094         unaligned 256bit load/store.
5095         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5096         (*avx_movdqu<avxmodesuffix>): Likewise.
5097
5098 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5099
5100         PR target/48288
5101         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5102         * config/pa/pa.md (iordi3): Use new predicate in expander.
5103         (iorsi3): Likewise.
5104
5105 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
5106
5107         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5108         FUNCTION_VALUE_REGNO_P): Remove macros.
5109         * config/mips/mips-protos.h (mips_function_value): Remove.
5110         * config/mips/mips.c (mips_function_value): Rename to...
5111         (mips_function_value_1): ... this. Make static.  Handle receiving
5112         the function type in 'fn_decl_or_type' argument.
5113         (mips_function_value, mips_libcall_value,
5114         mips_function_value_regno_p): New function.
5115         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5116         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5117
5118 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5119
5120         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5121         and -mavx256-split-unaligned-store.
5122         (ix86_option_override_internal): Split 32-byte AVX unaligned
5123         load/store by default.
5124         (ix86_avx256_split_vector_move_misalign): New.
5125         (ix86_expand_vector_move_misalign): Use it.
5126
5127         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5128         -mavx256-split-unaligned-store.
5129
5130         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5131         256bit load/store.  Generate unaligned store on misaligned memory
5132         operand.
5133         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5134         256bit load/store.
5135         (*avx_movdqu<avxmodesuffix>): Likewise.
5136
5137         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5138         -mavx256-split-unaligned-store.
5139
5140 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5141
5142         PR target/38598
5143         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5144         Update commentary.
5145
5146 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5147
5148         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5149         opno arguments with an expand_operand.  Use create_input_operand.
5150         (mips_prepare_builtin_target): Delete.
5151         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5152         functions.
5153         (mips_expand_builtin_direct): Use create_output_operand and
5154         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
5155         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
5156         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5157
5158 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
5159
5160         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5161         function.
5162         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5163
5164 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5165
5166         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5167         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5168         basic blocks and call commit_edge_insertions directly.
5169         (fixup_abnormal_edges): Move from here to...
5170         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5171         on the edges and return whether some have actually been inserted.
5172         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5173         compensation code.
5174
5175 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5176
5177         PR rtl-optimization/48144
5178         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5179         (merge_expr_data): ... here.
5180         (av_set_intersect): Rename to av_set_code_motion_filter.
5181         Update all callers.  Call merge_history_vect when an expression
5182         is found in both sets.
5183         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5184
5185 2011-03-26  Alan Modra  <amodra@gmail.com>
5186
5187         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5188         cmodel medium addresses.
5189         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5190         64-bit gpr loads and stores.
5191         (rs6000_secondary_reload_ppc64): New function.
5192         * config/rs6000/rs6000-protos.h: Declare it.
5193         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5194
5195 2011-03-26  Alan Modra  <amodra@gmail.com>
5196
5197         PR target/47487
5198         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5199         GNU Go in traceback table.
5200
5201 2011-03-25  Richard Henderson  <rth@redhat.com>
5202
5203         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5204         if there are exactly 6 operands.
5205         (set_storage_via_setmem): Similarly.
5206
5207 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5208
5209         * collect2.c (write_c_file_stat): Handle backslash
5210         as right-hand directory separator.
5211         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5212         checking just for slash.
5213         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5214         instead of checking for trailing slash.
5215         * gcc.c (record_temp_file): Use filename_cmp instead
5216         of strcmp.
5217         (do_spec_1): Likewise.
5218         (replace_outfile_spec_function): Likewise.
5219         (is_directory): Use filename_ncmp instead of strncmp.
5220         (print_multilib_info): Likewise.
5221         * gcov.c (find_source): Use filename_cmp instead
5222         instead of strcmp.
5223         (make_gcov_file_name): Fix order of slash/backslash
5224         checks.
5225         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5226         (add_standard_paths): Likewise.
5227         * mips-tfile.c (saber_stop): Handle backslash.
5228         * prefix.c (update_path): Use filename_ncmp instead of
5229         strncmp.
5230         * profile.c (output_location): Use filename_cmp instead
5231         of strcmp.
5232         * read-md.c (handle_toplevel_file): Handle backslash.
5233         * tlink.c (frob_extension):  Likewise.
5234         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5235         strcmp.
5236         * tree-dump.c (dequeue_and_dump): Handle backslash.
5237         * tree.c (get_file_function_name): Likewise.
5238         * gengtype.c (read_input_list): Likewise.
5239         (get_file_realbasename): Likewise.
5240         (get_output_file_with_visibility): Use filename_cmp
5241         instead of strcmp.
5242
5243 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5244
5245         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5246         case to VFPv1.
5247
5248 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5249
5250         * fold-const.c (expr_location_or): New function.
5251         (fold_truth_not_expr): Call it.
5252
5253 2011-03-25  Jeff Law  <law@redhat.com>
5254
5255         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5256         va_end.
5257         * c-family/c-common.c (def_fn_type): Likewise.
5258         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5259         * emit-rtl.c (gen_rtvec): Likewise.
5260         * lto/lto-lang.c (def_fn_type): Likewise.
5261
5262 2011-03-25  Richard Guenther  <rguenther@suse.de>
5263
5264         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5265         also generate copies.
5266         (fini_copy_prop): Handle constant values properly.
5267
5268 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5269
5270         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5271         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5272         (hash_loc_operands, compare_loc_operands): Handle
5273         DW_OP_GNU_entry_value.
5274
5275 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5276
5277         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5278         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5279         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5280         comment and use macro TARGET_64BIT_MS_ABI instead.
5281         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5282         and change default behavior for 32-bit MS_ABI.
5283         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5284         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5285         32-bit, too.
5286         (ix86_cfun_abi): Likewise.
5287         (ix86_maybe_switch_abi): Adjust comment.
5288         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5289         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5290         instead of checking for SYSV_ABI.
5291         (ix86_nsaved_sseregs): Likewise.
5292         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5293         to 16 bytes.
5294         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5295         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5296         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5297         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5298         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5299
5300 2011-03-25  Richard Guenther  <rguenther@suse.de>
5301
5302         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5303         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5304         (verify_gimple): Remove.
5305         * tree-cfg.c (verify_gimple_call): Merge verification
5306         from verify_stmts.
5307         (verify_gimple_phi): Merge verification from verify_stmts.
5308         (verify_gimple_label): New function.
5309         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5310         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5311         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5312         (verify_stmts): Rename to verify_gimple_in_cfg.
5313         (verify_gimple_in_cfg): New function.
5314         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5315         * tree-ssa.c (verify_ssa): Likewise.
5316         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5317
5318 2011-03-25  Richard Guenther  <rguenther@suse.de>
5319
5320         * passes.c (init_optimization_passes): Add FRE pass after
5321         early SRA.
5322
5323 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5324             Andrew Stubbs  <ams@codesourcery.com>
5325
5326         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5327         for Cortex-A8.
5328         (arm_movdi_vfp_cortexa8): New pattern.
5329         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5330         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5331         instructions when tuning for Cortex-A8.  Set attribute "arch".
5332         * config/arm/arm.md: Move include arm-tune.md up a bit.
5333         (define_attr "arch"): Add "onlya8" and "nota8" values.
5334         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5335
5336 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5337
5338         PR bootstrap/48282
5339         Revert:
5340         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5341
5342         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5343         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5344         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5345         * passes.c (init_optimization_passes): Move
5346         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5347
5348 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5349
5350         * c-typeck.c (comptypes_internal): Replace target
5351         hook call of comp_type_attributes by version in tree.c file.
5352         * gimple.c (gimple_types_compatible_p_1): Likewise.
5353         * tree-ssa.c (useless_type_conversion_p): Likewise.
5354         * tree.c (build_type_attribute_qual_variant): Likewise.
5355         (attribute_value_equal): New static helper function.
5356         (comp_type_attributes): New function.
5357         (merge_attributes): Use attribute_value_equal for comparison.
5358         (attribute_list_contained): Likewise.
5359         * tree.h (comp_type_attributes): New prototype.
5360
5361 2011-03-25  Richard Guenther  <rguenther@suse.de>
5362
5363         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5364         of complex types at -O0.
5365         (verify_gimple_assign_binary): Likewise.
5366         (verify_gimple_assign_ternary): Likewise.
5367
5368 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5369
5370         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5371         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5372
5373 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5374
5375         PR debug/48041
5376         * dwarf2out.c (output_abbrev_section): Only write table when
5377         abbrev_die_table_in_use > 1.
5378
5379 2011-02-24  Richard Henderson  <rth@redhat.com>
5380
5381         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5382         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5383         (alpha_expand_unaligned_load_words): Use extql.
5384         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5385         (emit_insxl): Handle all modes for consistency.
5386
5387 2011-02-24  Richard Henderson  <rth@redhat.com>
5388
5389         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5390         (alpha_expand_unaligned_load): Likewise.
5391         (alpha_expand_unaligned_store): Likewise.
5392         (alpha_expand_unaligned_load_words): Likewise.
5393         (alpha_expand_unaligned_store_words): Likewise.
5394         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5395         (alpha_split_lock_test_and_set_12): Likewise.
5396         (print_operand, alpha_fold_builtin_extxx): Likewise.
5397         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5398         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5399         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5400         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5401         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5402         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5403         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5404         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5405         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5406         (extwl, extll, extql): Similarly.
5407         (inswh, inslh, insqh): Similarly.
5408         (mskbl, mskwl, mskll, mskql): Similarly.
5409         (mskwh, msklh, mskqh): Similarly.
5410
5411 2011-02-24  Richard Henderson  <rth@redhat.com>
5412
5413         * config/alpha/alpha.md (attribute isa): Add er, ner.
5414         (attribute enabled): Handle them.
5415         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5416
5417 2011-02-24  Richard Henderson  <rth@redhat.com>
5418
5419         * config/alpha/alpha.md (attribute isa): Add vms.
5420         (attribute enabled): Handle it.
5421         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5422         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5423         (*movtf): Rename from *movtf_internal for consistency.
5424         (*movsi): Merge with *movsi_nt_vms.
5425         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5426         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5427         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5428         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5429
5430 2011-02-24  Richard Henderson  <rth@redhat.com>
5431
5432         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5433         (extendqisi2, extendhisi2): Likewise.
5434         (extendqidi2): Simplify BWX/non-BWX expansions.
5435         (extendhidi2): Similarly.
5436
5437 2011-02-24  Richard Henderson  <rth@redhat.com>
5438
5439         * config/alpha/alpha.md (attribute isa): New.
5440         (attribute enabled): New.
5441         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5442         (zero_extendqisi2, zero_extendqidi2): Similarly.
5443         (zero_extendhisi2, zero_extendhidi2): Similarly.
5444         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5445
5446 2011-02-24  Richard Henderson  <rth@redhat.com>
5447
5448         * config/alpha/predicates.md (input_operand): Revert last change;
5449         update comment to mention 32-bit VMS rather than Windows.
5450
5451 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5452
5453         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5454         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5455         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5456         * passes.c (init_optimization_passes): Move
5457         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5458
5459 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5460
5461         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5462
5463 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5464
5465         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5466         correctly.
5467
5468 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5469
5470         PR debug/48204
5471         * simplify-rtx.c (simplify_const_unary_operation): Call
5472         real_convert when changing mode class with FLOAT_EXTEND.
5473
5474 2011-03-24  Nick Clifton  <nickc@redhat.com>
5475
5476         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5477         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5478         * config/rx/rx.c (rx_option_override): Set align_jumps,
5479         align_loops and align_labels if not set by the user.
5480         (rx_align_for_label): New function.
5481         (rx_max_skip_for_label): New function.
5482         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5483         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5484         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5485         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5486         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5487
5488 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5489
5490         PR rtl-optimization/48263
5491         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5492         and original commutative_p handling.  Use maybe_gen_insn.
5493
5494 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5495
5496         * reload.c (find_reloads_subreg_address): Add address_reloaded
5497         parameter and return true there if the full address has been
5498         reloaded.
5499         (find_reloads_toplev): Pass address_reloaded flag.
5500         (find_reloads_address_1): Don't use address_reloaded parameter.
5501
5502 2011-03-24  Jeff Law  <law@redhat.com>
5503
5504         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5505         unused variable "ann".
5506         (remove_unused_locals): Likewise.
5507
5508         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5509         statement.
5510
5511         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5512         after it is freed.
5513
5514 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5515
5516         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5517         for invalid symbolic addresses.
5518         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5519         larl operands.
5520
5521 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5522
5523         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5524         the argument in calls to fold_truth_not_expr.
5525
5526 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5527
5528         * tree.c (record_node_allocation_statistics): New function.
5529         (make_node_stat, copy_node_stat, build_string): Call it.
5530         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5531         (build1_stat, build_omp_clause): Likewise.
5532
5533 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5534
5535         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5536         last commit.
5537
5538 2011-03-24  Richard Guenther  <rguenther@suse.de>
5539
5540         PR tree-optimization/48271
5541         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5542         blocks that still exist.
5543
5544 2011-03-24  Richard Guenther  <rguenther@suse.de>
5545
5546         PR tree-optimization/48270
5547         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5548         not free datarefs before ddrs.
5549
5550 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5551
5552         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5553         from the address built for a reference with variable offset.
5554
5555 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5556
5557         PR target/48237
5558         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5559         alternatives that can be handled with movq or movabsq insn.
5560         (*movdf_internal): Disable for !TARGET_64BIT.
5561         (*movdf_internal_nointeger): Ditto.
5562         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5563
5564 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5565
5566         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5567         (FUNCTION_ARG_ADVANCE): Likewise.
5568         * tm.texi.in: Change references to them to hook references.
5569         * tm.texi: Regenerate.
5570         * targhooks.c (default_function_arg): Eliminate check for target macro.
5571         (default_function_incoming_arg): Likewise.
5572         (default_function_arg_advance): Likewise.
5573         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5574         (function_arg_advance): Likewise.
5575         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5576
5577 2011-03-24  Richard Guenther  <rguenther@suse.de>
5578
5579         PR middle-end/48269
5580         * tree-object-size.c (addr_object_size): Do not double-account
5581         for MEM_REF offsets.
5582
5583 2011-03-24  Diego Novillo  <dnovillo@google.com>
5584
5585         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5586         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5587         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5588         Update all users.
5589         (lto_input_string): Rename from input_string.  Make extern.
5590         Update all users.
5591         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5592         output_string_with_length.
5593         Output 0 to indicate a non-NULL string.  Update all callers to
5594         not emit 0.
5595         (lto_output_string): Rename from output_string.  Make extern.
5596         Update all users.
5597         (lto_output_decl_state_streams): Make extern.
5598         (lto_output_decl_state_refs): Make extern.
5599         * lto-streamer.h (lto_input_string): Declare.
5600         (lto_input_data_block): Declare.
5601         (lto_output_string): Declare.
5602         (lto_output_string_with_length): Declare.
5603         (lto_output_decl_state_streams): Declare.
5604         (lto_output_decl_state_refs): Declare.
5605
5606 2011-03-24  Richard Guenther  <rguenther@suse.de>
5607
5608         PR tree-optimization/46562
5609         * tree.c (build_invariant_address): New function.
5610         * tree.h (build_invariant_address): Declare.
5611         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5612         a renamed function moved ...
5613         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5614         Take valueization callback parameter.
5615         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5616         * gimple-fold.h: New file.
5617         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5618         (ccp_fold, fold_const_aggregate_ref,
5619         fold_ctor_reference, fold_nonarray_ctor_reference,
5620         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5621         get_base_constructor): Move ...
5622         * gimple-fold.c: ... here.
5623         (gimple_fold_stmt_to_constant_1): New function
5624         split out from ccp_fold.  Take a valueization callback parameter.
5625         Valueize all operands.
5626         (gimple_fold_stmt_to_constant): New wrapper function.
5627         (fold_const_aggregate_ref_1): New function split out from
5628         fold_const_aggregate_ref.  Take a valueization callback parameter.
5629         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5630         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5631         invariant POINTER_PLUS_EXPRs to invariant form.
5632         (vn_valueize): New function.
5633         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5634         * tree-vrp.c (vrp_valueize): New function.
5635         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5636         to fold statements to constants.
5637         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5638         function declarations.
5639         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5640         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5641
5642 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5643
5644         * config/h8300/predicates.md (jump_address_operand): Fix register
5645         mode check.
5646
5647 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5648
5649         * doc/invoke.texi (max-stores-to-sink): Document.
5650         * params.h (MAX_STORES_TO_SINK): Define.
5651         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5652         if either vectorization or if-conversion is disabled.
5653         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5654         tree-vect-data-refs.c vect_equal_offsets.
5655         (dr_equal_offsets_p): New function.
5656         (find_data_references_in_bb): Remove static.
5657         * tree-data-ref.h (find_data_references_in_bb): Declare.
5658         (dr_equal_offsets_p): Likewise.
5659         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5660         (vect_drs_dependent_in_basic_block): Update calls to
5661         vect_equal_offsets.
5662         (vect_check_interleaving): Likewise.
5663         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5664         (cond_if_else_store_replacement): Rename to...
5665         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5666         documentation.
5667         (cond_if_else_store_replacement): New function.
5668         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5669         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5670
5671 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5672
5673         PR target/46934
5674         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5675         to subtract lower bound instead of GEN_INT().
5676
5677 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5678
5679         PR other/48179
5680         PR other/48221
5681         PR other/48234
5682         * doc/extend.texi (Alignment): Move section to match order in TOC.
5683         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5684         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5685
5686 2011-03-23  Jeff Law  <law@redhat.com>
5687
5688         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5689         before removing the edge.
5690
5691         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5692         it may have been freed by redirect_branch_edge or
5693         redirect_edge_succ_nodup.
5694
5695 2011-03-23  Richard Guenther  <rguenther@suse.de>
5696
5697         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5698         (check_va_list_escapes): Likewise.
5699         (check_all_va_list_escapes): Likewise.
5700
5701 2011-03-23  Richard Guenther  <rguenther@suse.de>
5702
5703         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5704         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5705         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5706         (alias.o): Likewise.
5707         (ipa-type-escape.o): Remove.
5708         (ipa-struct-reorg.o): Likewise.
5709         (GTFILES): Remove ipa-struct-reorg.c.
5710         * alias.c: Do not include ipa-type-escape.h.
5711         * tree-ssa-alias.c: Likewise.
5712         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5713         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5714         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5715         and ipa-type-escape passes.
5716         * tree-pass.h (pass_ipa_type_escape): Remove.
5717         (pass_ipa_struct_reorg): Likewise.
5718         * ipa-struct-reorg.h: Remove.
5719         * ipa-struct-reorg.c: Likewise.
5720         * ipa-type-escape.h: Likewise.
5721         * ipa-type-escape.c: Likewise.
5722         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5723         (--param struct-reorg-cold-struct-ratio): Likewise.
5724         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5725         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5726         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5727
5728 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5729
5730         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5731         cpu attribute value.
5732         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5733         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5734         * config/s390/s390.c (processor_flags_table): New constant array.
5735         (s390_handle_arch_option): Remove.
5736         (s390_handle_option): Remove s390_handle_arch_option invocations
5737         and OPT_mwarn_framesize_ handling.
5738         (s390_option_override): Remove s390_handle_arch_option invocation.
5739         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5740         warnings.
5741         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5742         * config/s390/s390.opt (s390_tune, s390_arch)
5743         (march=): Replace s390_arch_option enum and values with
5744         processor_type.  Set variable name to s390_arch.  Set
5745         initialization value.
5746         (mtune=): Replace s390_arch_option with processor_type.  Set
5747         variable name to s390_tune.  Set initialization value.
5748
5749 2011-03-23  Julian Brown  <julian@codesourcery.com>
5750
5751         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5752         accesses which are not naturally aligned.
5753
5754 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5755
5756         PR target/47553
5757         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5758
5759 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5760
5761         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5762         parameter from "int" to "enum insn_code".
5763         (expand_operand_type): New enum.
5764         (expand_operand): New structure.
5765         (create_expand_operand): New function.
5766         (create_fixed_operand, create_output_operand): Likewise
5767         (create_input_operand, create_convert_operand_to): Likewise.
5768         (create_convert_operand_from, create_address_operand): Likewise.
5769         (create_integer_operand): Likewise.
5770         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5771         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5772         (expand_insn, expand_jump_insn): Likewise.
5773         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5774         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5775         (expand_movstr, expand_builtin___clear_cache): Likewise.
5776         (expand_builtin_lock_release): Likewise.
5777         * explow.c (allocate_dynamic_stack_space): Likewise.
5778         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5779         and use the default handling in that case.
5780         * expmed.c (check_predicate_volatile_ok): Delete.
5781         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5782         (emit_cstore): Likewise.
5783         * expr.c (emit_block_move_via_movmem): Likewise.
5784         (set_storage_via_setmem, expand_assignment): Likewise.
5785         (emit_storent_insn, try_casesi): Likewise.
5786         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5787         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5788         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5789         (expand_twoval_unop, expand_twoval_binop): Likewise.
5790         (expand_unop_direct, emit_indirect_jump): Likewise.
5791         (emit_conditional_move, vector_compare_rtx): Likewise.
5792         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5793         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5794         (expand_sync_lock_test_and_set): Likewise.
5795         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5796         (emit_unop_insn): Likewise.
5797         (expand_copysign_absneg): Change icode to an insn_code.
5798         (create_convert_operand_from_type): New function.
5799         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5800         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5801         (expand_insn, expand_jump_insn): Likewise.
5802         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5803         than const_int_operand for operand 2.
5804
5805 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5806
5807         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5808         if possible.
5809
5810 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5811
5812         * emit-rtl.c (emit_pattern_before_noloc): New function.
5813         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5814         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5815         (emit_pattern_after_noloc): New function.
5816         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5817         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5818
5819 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5820
5821         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5822         (__ffsDI2): Likewise.
5823
5824 2011-03-22  Richard Henderson  <rth@redhat.com>
5825
5826         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5827         of !TARGET_ABI_OPEN_VMS.
5828         (alpha_trampoline_init, alpha_start_function): Likewise.
5829         (alpha_expand_epilogue, alpha_file_start): Likewise.
5830         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5831         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5832         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5833         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5834         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5835
5836 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5837
5838         * config/s390/s390-opts.h: New.
5839         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5840         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5841         s390_stack_guard): Remove.
5842         (s390_handle_arch_option): Return void.  Take enum
5843         s390_arch_option value instead of string and searching array.
5844         (s390_handle_option): Don't assert that global structures are in
5845         use.  Access variables via opts pointer.  Use error_at.  Don't use
5846         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5847         s390_handle_arch_option.
5848         (s390_option_override): Update call to s390_handle_arch_option.
5849         (s390_emit_prologue): Use %d format for s390_stack_size in
5850         diagnostic.  Use %wd for HOST_WIDE_INT.
5851         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5852         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5853         * config/s390/s390.opt (config/s390/s390-opts.h): New
5854         HeaderInclude entry.
5855         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5856         s390_arch_flags, s390_warn_framesize): New Variable entries.
5857         (s390_arch_option): New Enum and EnumValue entries.
5858         (march=): Use Enum instead of Var.
5859         (mstack-guard=, mstack-size=): Use UInteger and Var.
5860         (mtune=): Use Enum.
5861
5862 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5863
5864         * config/score/score.c (score_handle_option): Don't assert that
5865         global structures are in use.  Access target_flags via opts
5866         pointer.  Use value of -march= option to determine target_flags
5867         settings.
5868         * config/score/score.opt (march=): Use Enum.
5869         (score_arch): New Enum and EnumValue entries.
5870
5871 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5872
5873         * config/mep/mep.c (option_mtiny_specified): Remove.
5874         (mep_option_override): Move register handling for -mivc2 from
5875         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5876         instead of option_mtiny_specified.
5877         (mep_handle_option): Access target_flags via opts pointer.  Don't
5878         assert that global structures are in use.  Defer part of -mivc2
5879         handling and move it to mep_option_override.
5880         * config/mep/mep.opt (IVC2): New Mask entry.
5881         (mivc2): Use Var and Defer instead of Mask.
5882
5883 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5884
5885         * config/v850/v850-opts.h: New.
5886         * config/v850/v850.c (small_memory): Replace with
5887         small_memory_physical_max array.  Make that array static const.
5888         (v850_handle_memory_option): Take integer value of argument.  Take
5889         gcc_options pointer, option text and location.  Return void.
5890         Update for changes to small memory structures.
5891         (v850_handle_option): Access target_flags via opts pointer.  Don't
5892         assert that global structures are in use.  Update calls to
5893         v850_handle_memory_option.
5894         (v850_encode_data_area): Update references to small memory settings.
5895         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5896         (enum small_memory_type): Move to v850-opts.h.
5897         * config/v850/v850.opt (config/v850/v850-opts.h): New
5898         HeaderInclude entry.
5899         (small_memory_max): New Variable entry.
5900         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5901         (mtda, mzda): Likewise.
5902
5903 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5904
5905         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5906         pointer.  Don't assert that global structures are in use.
5907
5908 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5909
5910         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5911         via opts pointer.  Don't assert that global structures are in use.
5912
5913 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5914
5915         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5916         (munix=93): Use Var.
5917         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5918         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5919         * config/pa/pa-opts.h: New.
5920         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5921         (pa_handle_option): Don't assert that global structures are in
5922         use.  Access target_flags via opts pointer.  Don't handle
5923         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5924         OPT_munix_98 here.
5925         (pa_option_override): Handle deferred OPT_mfixed_range_.
5926
5927 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5928
5929         * config/mn10300/mn10300-opts.h: New.
5930         * config/mn10300/mn10300.c (mn10300_processor,
5931         mn10300_tune_string): Remove.
5932         (mn10300_handle_option): Don't assert that global structures are
5933         in use.  Access mn10300_processor via opts pointer.  Don't handle
5934         OPT_mtune_ here.
5935         * config/mn10300/mn10300.h (enum processor_type): Move to
5936         mn10300-opts.h.
5937         (mn10300_processor): Remove.
5938         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5939         HeaderInclude entry.
5940         (mn10300_processor): New Variable entry.
5941         (mtune=): Use Var.
5942
5943 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5944
5945         * config/microblaze/microblaze.c: Don't include opts.h.
5946         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5947         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5948         (mno-clearbss): Use Var and Warn.
5949
5950 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5951
5952         * config/m32r/m32r-opts.h: New.
5953         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5954         (m32r_handle_option): Don't assert that global structures are in
5955         use.  Access target_flags and m32r_cache_flush_func via opts
5956         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5957         OPT_mno_flush_trap here.
5958         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5959         include of m32r-opts.h.
5960         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5961         HeaderInclude entry.
5962         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5963         (mmodel=): Use Enum and Var.
5964         (m32r_model): New Enum and EnumValue entries.
5965         (mno-flush-trap): Use Var.
5966         (msdata=): Use Enum and Var.
5967         (m32r_sdata): New Enum and EnumValue entries.
5968
5969 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5970
5971         * config/m32c/m32c.c: Don't include opts.h.
5972         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5973         m32c_handle_option): Remove.
5974         (m32c_option_override): Check global_options_set.x_target_memregs
5975         instead of target_memregs_set.
5976         * config/m32c/m32c.h (target_memregs): Remove.
5977         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5978         variable.
5979
5980 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5981
5982         * config/iq2000/iq2000-opts.h: New.
5983         * config/iq2000/iq2000.c: Don't include opts.h.
5984         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5985         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5986         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5987         HeaderInclude entry.
5988         (iq2000_tune): New Variable entry.
5989         (march=): Add comment.  Use Enum.
5990         (iq2000_arch): New Enum and EnumValue entries.
5991         (mcpu=): Use Enum and Var.
5992         (iq2000_tune): New Enum and EnumValue entries.
5993
5994 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5995
5996         * config/ia64/ia64-opts.h: New.
5997         * config/ia64/ia64.c (ia64_tune): Remove.
5998         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5999         here.  Use error_at.
6000         (ia64_option_override): Handle deferred OPT_mfixed_range_.
6001         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6002         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6003         HeaderInclude entry.
6004         (ia64_tune): New Variable entry.
6005         (mfixed-range=): Use Defer and Var.
6006         (mtune=): Use Enum and Var.
6007         (ia64_tune): New Enum and EnumValue entries.
6008
6009 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6010
6011         * config/frv/frv-opts.h: New.
6012         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6013         frv-opts.h.
6014         (frv_cpu_type): Remove.
6015         * config/frv/frv.c: Don't include opts.h.
6016         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6017         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6018         (frv_cpu_type): New Variable entry.
6019         (frv_cpu): New Enum and EnumValue entries.
6020
6021 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6022
6023         * config/cris/cris.c (cris_handle_option): Access target_flags via
6024         opts pointer.  Don't assert that global structures are in use.
6025         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6026         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6027
6028 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6029
6030         * config/bfin/bfin-opts.h: New.
6031         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6032         bfin_si_revision, bfin_workarounds): Remove.
6033         (bfin_cpus): Make static const.
6034         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6035         not bfin_lib_id_given.
6036         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
6037         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6038         pointer. Use error_at.  Don't assert that global structures are in use.
6039         * config/bfin/bfin.h: Include bfin-opts.h.
6040         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6041         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6042         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6043         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6044         entries.
6045
6046 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6047
6048         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6049         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6050         or -msoft-float here.
6051         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6052         -msoft-float and -mhard-float.
6053         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6054         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6055         msoft-float.
6056         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6057         -msoft-float.
6058         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6059         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6060         not mhard-float.
6061         (LIBGCC_SPEC): Don't handle -msoft-float.
6062         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6063         -mhard-float.
6064         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6065         msoft-float.
6066         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6067         -mfloat-abi=*, not -msoft-float and -mhard-float.
6068         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6069         -msoft-float.
6070         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6071         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6072         mhard-float and msoft-float.
6073         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6074         mfloat-abi=soft in comments, not mhard-float and msoft-float.
6075         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6076         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6077         mhard-float.
6078         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6079         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6080         msoft-float.
6081         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6082         not mhard-float.
6083         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6084         not msoft-float.
6085
6086 2011-03-22  Richard Henderson  <rth@redhat.com>
6087
6088         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6089         TARGET_ABI_WINDOWS_NT.
6090         (alpha_output_function_end_prologue): Likewise.
6091         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6092         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6093         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6094         (trap, *movsi_nt_vms): Likewise.
6095         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6096         (*tablejump_osf_nt_internal): Remove.
6097         * config/alpha/predicates.md (input_operand): Only test Pmode.
6098
6099 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6100
6101         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6102         via opts pointer.  Use error_at.  Don't assert that global
6103         structures are in use.
6104
6105 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6106
6107         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6108         (ix86_handle_option): Access ix86_isa_flags and
6109         ix86_isa_flags_explicit via opts pointer.  Don't assert that
6110         global structures are in use.
6111         (ix86_function_specific_save, ix86_function_specific_restore):
6112         Update ix86_isa_flags_explicit field name.
6113         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6114         (ix86_isa_flags_explicit): Rename TargetSave entry to
6115         x_ix86_isa_flags_explicit.
6116
6117 2011-03-22  Richard Henderson  <rth@redhat.com>
6118
6119         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6120         (alpha_option_override, direct_return): Likewise.
6121         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6122         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6123         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6124         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6125         (alpha_expand_epilogue, alpha_end_function): Likewise.
6126         (alpha_init_libfuncs): Likewise.
6127         (struct machine_function): Remove unicosmk members.
6128         (print_operand) ['t']: Remove.
6129         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6130         unicosmk_output_module_name, unicosmk_output_common,
6131         current_section_align, unicosmk_output_text_section_asm_op,
6132         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6133         unicosmk_section_type_flags, unicosmk_unique_section,
6134         unicosmk_asm_named_section, unicosmk_insert_attributes,
6135         unicosmk_output_align, unicosmk_defer_case_vector,
6136         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6137         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6138         unicosmk_output_ssib, unicosmk_add_call_info_word,
6139         unicosmk_extern_head, unicosmk_output_default_externs,
6140         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6141         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6142         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6143         * config/alpha/alpha-protos.h: Update.
6144         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6145         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6146         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6147         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6148         (*mulsi_se, mulvsi3): Likewise.
6149         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6150         (*divmodsi_internal, call, call_value, realign): Likewise.
6151         (moddi3, umoddi3): Likewise; remove duplicate expander.
6152         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6153         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6154         (*movdi_nofix): Remove r/U alternative.
6155         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6156         * config/alpha/constraints.md ("U"): Remove.
6157         * config/alpha/predicates.md (call_operand"): Don't test
6158         TARGET_ABI_UNICOSMK.
6159
6160 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6161
6162         * target.def (handle_option): Take gcc_options and
6163         cl_decoded_option pointers and location_t.
6164         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6165         * doc/tm.texi: Regenerate.
6166         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6167         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6168         * lto-opts.c (lto_reissue_options): Generate option structure for
6169         targetm.handle_option call.
6170         * opts.c (target_handle_option): Update call to
6171         targetm.handle_option.  Remove assertions about values now passed
6172         down to hook.
6173         * targhooks.c (default_target_handle_option): New.
6174         * targhooks.h (default_target_handle_option): Declare.
6175         * config/alpha/alpha.c: Include opts.h.
6176         (alpha_handle_option): Update to new hook interface.
6177         * config/arm/arm.c: Include opts.h.
6178         (arm_handle_option): Update to new hook interface.
6179         * config/arm/t-arm (arm.o): Update dependencies.
6180         * config/bfin/bfin.c: Include opts.h.
6181         (bfin_handle_option): Update to new hook interface.
6182         * config/cris/cris.c: Include opts.h.
6183         (cris_handle_option): Update to new hook interface.
6184         * config/frv/frv.c: Include opts.h.
6185         (frv_handle_option): Update to new hook interface.
6186         * config/i386/i386.c: Include opts.h.
6187         (ix86_handle_option): Update to new hook interface.
6188         (ix86_valid_target_attribute_inner_p): Generate option structure
6189         for call to ix86_handle_option.
6190         * config/i386/t-i386 (i386.o): Update dependencies.
6191         * config/ia64/ia64.c: Include opts.h.
6192         (ia64_handle_option): Update to new hook interface.
6193         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6194         * config/iq2000/iq2000.c: Include opts.h.
6195         (iq2000_handle_option): Update to new hook interface.
6196         * config/m32c/m32c.c: Include opts.h.
6197         (m32c_handle_option): Update to new hook interface.
6198         * config/m32r/m32r.c: Include opts.h.
6199         (m32r_handle_option): Update to new hook interface.
6200         * config/m68k/m68k.c: Include opts.h.
6201         (m68k_handle_option): Update to new hook interface.
6202         * config/mep/mep.c: Include opts.h.
6203         (mep_handle_option): Update to new hook interface.
6204         * config/microblaze/microblaze.c: Include opts.h.
6205         (microblaze_handle_option): Update to new hook interface.
6206         * config/mips/mips.c: Include opts.h.
6207         (mips_handle_option): Update to new hook interface.
6208         * config/mn10300/mn10300.c: Include opts.h.
6209         (mn10300_handle_option): Update to new hook interface.
6210         * config/pa/pa.c: Include opts.h.
6211         (pa_handle_option): Update to new hook interface.
6212         * config/pdp11/pdp11.c: Include opts.h.
6213         (pdp11_handle_option): Update to new hook interface.
6214         * config/rs6000/rs6000.c: Include opts.h.
6215         (rs6000_handle_option): Update to new hook interface.
6216         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6217         * config/rx/rx.c: Include opts.h.
6218         (rx_handle_option): Update to new hook interface.
6219         * config/s390/s390.c: Include opts.h.
6220         (s390_handle_option): Update to new hook interface.
6221         * config/score/score.c: Include opts.h.
6222         (score_handle_option): Update to new hook interface.
6223         * config/sh/sh.c: Include opts.h.
6224         (sh_handle_option): Update to new hook interface.
6225         * config/sparc/sparc.c: Include opts.h.
6226         (sparc_handle_option): Update to new hook interface.
6227         * config/v850/v850.c: Include opts.h.
6228         (v850_handle_option): Update to new hook interface.
6229
6230 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6231
6232         * gcc.c (driver_unknown_option_callback): Only permit and save
6233         unknown -Wno- options.
6234         (driver_wrong_lang_callback): Save options directly instead of via
6235         driver_unknown_option_callback.
6236
6237 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6238
6239         * combine.c (simplify_set): Try harder to find the best CC mode when
6240         simplifying a nested COMPARE on the RHS.
6241
6242 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6243
6244         * config/alpha/gnu.h: Remove.
6245         * config/arc: Remove directory.
6246         * config/arm/netbsd.h: Remove.
6247         * config/arm/t-pe: Remove.
6248         * config/crx: Remove directory.
6249         * config/i386/netbsd.h: Remove.
6250         * config/m68hc11: Remove directory.
6251         * config/m68k/uclinux-oldabi.h: Remove.
6252         * config/mcore/mcore-pe.h: Remove.
6253         * config/mcore/t-mcore-pe: Remove.
6254         * config/netbsd-aout.h: Remove.
6255         * config/rs6000/gnu.h: Remove.
6256         * config/sh/sh-symbian.h: Remove.
6257         * config/sh/symbian-base.c: Remove.
6258         * config/sh/symbian-c.c: Remove.
6259         * config/sh/symbian-cxx.c: Remove.
6260         * config/sh/symbian-post.h: Remove.
6261         * config/sh/symbian-pre.h: Remove.
6262         * config/sh/t-symbian: Remove.
6263         * config/svr3.h: Remove.
6264         * config/vax/netbsd.h: Remove.
6265         * config.build: Don't handle i[34567]86-*-pe.
6266         * config.gcc: Remove handling of deprecations for most deprecated
6267         targets.
6268         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6269         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6270         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6271         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6272         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6273         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6274         Remove cases.
6275         * config.host: Don't handle i[34567]86-*-pe.
6276         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6277         (ASM_SPEC32): Don't handle -mcall-gnu.
6278         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6279         -mcall-gnu.
6280         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6281         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6282         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6283         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6284         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6285         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6286         conditional on SYMBIAN.
6287         * configure.ac: Don't handle powerpc*-*-gnu*.
6288         * configure: Regenerate.
6289         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6290         * doc/install-old.texi (m6811, m6812): Don't mention.
6291         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6292         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6293         (m68k-uclinuxoldabi): Don't mention.
6294         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6295         Remove.
6296         (-mcall-gnu): Remove.
6297         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6298         families): Remove constraint documentation.
6299
6300 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6301
6302         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6303         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6304         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6305
6306 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6307
6308         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6309         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6310         * config/avr/avr.c (init_cumulative_args)
6311         (avr_function_arg_advance): Use it.
6312         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6313         sibcall epilogues.
6314         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6315         (avr_function_ok_for_sibcall): ...this new function.
6316         (avr_lookup_function_attribute1): New static Function.
6317         (avr_naked_function_p, interrupt_function_p)
6318         (signal_function_p, avr_OS_task_function_p)
6319         (avr_OS_main_function_p): Use it.
6320         * config/avr/avr.md ("sibcall", "sibcall_value")
6321         ("sibcall_epilogue"): New expander.
6322         ("*call_insn", "*call_value_insn"): New insn.
6323         ("call_insn", "call_value_insn"): Remove
6324         ("call", "call_value", "epilogue"): Change expander to handle
6325         sibling calls.
6326
6327 2011-03-21  Nick Clifton  <nickc@redhat.com>
6328
6329         * doc/invoke.texi (Overall Options): Move closing brace to end of
6330         options list.
6331         (Optimization Options): Add missing @gol.
6332         (Directory Options): Likewise.
6333         (i386 and x86-64 Options): Likewise.
6334         (RS6000 and PowerPC Options): Likewise.
6335         (i386 and x86-64 Windows Options): Likewise.
6336         (V850 Options): Add text missing from descriptions.
6337
6338 2011-03-22  Richard Henderson  <rth@redhat.com>
6339
6340         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6341         (avr_incoming_return_addr_rtx): New.
6342         (emit_push_byte): New.
6343         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6344         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6345         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6346         (emit_pop_byte): New.
6347         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6348         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6349         (INCOMING_RETURN_ADDR_RTX): New.
6350         (INCOMING_FRAME_SP_OFFSET): New.
6351         (ARG_POINTER_CFA_OFFSET): New.
6352         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6353         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6354         (pophi): Remove.
6355
6356         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6357
6358 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6359
6360         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6361         (FUNCTION_ARG_ADVANCE): Likewise.
6362         * tm.texi.in: Change references to them to hook references.
6363         * tm.texi: Regenerate.
6364         * targhooks.c (default_function_arg): Eliminate check for target
6365         macro.
6366         (default_function_incoming_arg): Likewise.
6367         (default_function_arg_advance): Likewise.
6368         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6369         (function_arg_advance): Likewise.
6370         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6371
6372 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6373
6374         * tree.c (build_call_1): New function.
6375         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6376
6377 2011-03-22  Richard Guenther  <rguenther@suse.de>
6378
6379         PR tree-optimization/48228
6380         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6381         for single-arg PHIs.
6382
6383 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6384
6385         PR rtl-optimization/48143
6386         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6387         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6388         sse2_cvtps2pd): Likewise.
6389
6390 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6391
6392         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6393
6394 2011-03-22  Richard Guenther  <rguenther@suse.de>
6395
6396         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6397         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6398         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6399         and REALIGN_LOAD_EXPR.
6400         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6401         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6402         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6403         DOT_PROD_EXPR case ...
6404         (expand_expr_real_2): ... here.
6405         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6406         and REALIGN_LOAD_EXPR.
6407         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6408         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6409         (vect_create_epilog_for_reduction): Likewise.
6410         (vectorizable_reduction): Likewise.
6411         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6412         * tree-vect-stmts.c (vectorizable_load): Likewise.
6413
6414 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6415
6416         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6417
6418 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6419
6420         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6421         handling for PLTOFF/GOTOFF.
6422
6423 2011-03-22  Nick Clifton  <nickc@redhat.com>
6424
6425         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6426         trailing backslash from the end of the macro definition.
6427
6428 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6429
6430         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6431         and PLT unspecs.
6432
6433 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6434
6435         * expr.h (prepare_operand): Move to...
6436         * optabs.h (prepare_operand): ...here and change the insn code
6437         parameter from "int" to "enum insn_code".
6438         (insn_operand_matches): Declare.
6439         * expr.c (init_expr_target): Use insn_operand_matches.
6440         (compress_float_constant): Likewise.
6441         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6442         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6443         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6444         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6445         Likewise.
6446         (gen_cond_trap): Likewise.
6447         (prepare_operand): Likewise.  Change icode to an insn_code.
6448         (insn_operand_matches): New function.
6449         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6450         * reload1.c (gen_reload): Likewise.
6451         * targhooks.c (default_secondary_reload): Likewise.
6452
6453 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6454
6455         * config/alpha/alpha.md (unspec): New define_c_enum.
6456         (unspecv): Ditto.
6457
6458 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6459
6460         PR debug/48214
6461         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6462         between a call and its CALL_ARG_LOCATION note.
6463
6464 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6465
6466         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6467
6468 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6469
6470         PR c/42544
6471         PR c/48197
6472         * c-common.c (shorten_compare): If primopN is first sign-extended
6473         to opN and then zero-extended to result type, set primopN to opN.
6474
6475 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6476
6477         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6478         for barrier handlers.
6479
6480 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6481
6482         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6483         UNSPEC constants to be in the unspec enumeration, and redefine
6484         all UNSPECV constants to be in the unspecv enumeration, so that
6485         dumps print which unspec/unspec_volatile this is.
6486         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6487         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6488         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6489         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6490         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6491
6492         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6493         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6494         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6495         * config/rs6000/sync.md (isync, lwsync): Ditto.
6496
6497 2011-03-21  Richard Guenther  <rguenther@suse.de>
6498
6499         * params.def (lto-min-partition): Fix typo.
6500
6501 2011-03-21  Richard Guenther  <rguenther@suse.de>
6502
6503         PR c/47939
6504         * c-decl.c (grokdeclarator): Drop to the main variant only
6505         for array types.  Drop flag_gen_aux_info check.
6506
6507 2011-03-21  Richard Guenther  <rguenther@suse.de>
6508
6509         PR translation/47911
6510         * params.def (lto-partitions): Fix typo.
6511         (lto-min-partition): Fix wording.
6512
6513 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6514
6515         * config/rs6000/t-freebsd: Remove duplication from file.
6516
6517 2011-03-21  Richard Guenther  <rguenther@suse.de>
6518
6519         PR middle-end/47661
6520         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6521
6522 2011-03-21  Richard Guenther  <rguenther@suse.de>
6523
6524         PR lto/48210
6525         * params.def (lto-partitions): Require at least 1 partition.
6526
6527 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6528
6529         * gthr-solaris.h: Remove.
6530         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6531         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6532         (LIB_SPEC): Likewise.
6533         * config/sol2.opt (threads): Remove.
6534         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6535         (sparc*-*-solaris2*): Likewise.
6536         * configure.ac (enable_threads): Enable solaris support.
6537         * configure: Regenerate.
6538         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6539         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6540         solaris.
6541
6542 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6543
6544         * config.gcc: Obsolete *-*-solaris2.8*.
6545         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6546
6547 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6548
6549         PR bootstrap/48135
6550         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6551         reference.  Solaris 8 perl works.
6552
6553 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6554
6555         PR bootstrap/48135
6556         * doc/install.texi (Prerequisites): Move jar etc. up.
6557         Explain support library version requirements.
6558
6559 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6560
6561         PR bootstrap/48135
6562         * doc/install.texi (Prerequisites): Move Perl to build
6563         requirements.  Always necessary on Solaris 2 with Sun ld.
6564
6565 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6566
6567         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6568         binutils 2.21.
6569         (Specific, i?86-*-solaris2.[89]): Likewise.
6570         (Specific, i?86-*-solaris2.10): Likewise.
6571         (Specific, mips-sgi-irix6): Likewise.
6572         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6573         Update for binutils 2.21.
6574
6575 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6576
6577         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6578         Allow -fuse-linker-plugin for non-default plugin linker.
6579         * configure: Regenerate.
6580
6581 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6582
6583         PR bootstrap/48167
6584         * gengtype.c (files_rules): Added rule for cp/parser.h.
6585
6586 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6587
6588         PR target/48213
6589         * config/s390/s390.c (s390_delegitimize_address): Don't call
6590         lowpart_subreg if orig_x has BLKmode.
6591
6592 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6593
6594         PR target/12171
6595         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6596         * tree.h (attribute_spec): Add new member affects_type_identity.
6597         * attribs.c (empty_attribute_table): Adjust attribute_spec
6598         initializers.
6599         * config/alpha/alpha.c: Likewise.
6600         * config/arc/arc.c: Likewise.
6601         * config/arm/arm.c: Likewise.
6602         * config/avr/avr.c: Likewise.
6603         * config/bfin/bfin.c: Likewise.
6604         * config/crx/crx.c: Likewise.
6605         * config/darwin.h: Likewise.
6606         * config/h8300/h8300.c: Likewise.
6607         * config/i386/cygming.h: Likewise.
6608         * config/i386/i386.c: Likewise.
6609         * config/ia64/ia64.c: Likewise.
6610         * config/m32c/m32c.c: Likewise.
6611         * config/m32r/m32r.c: Likewise.
6612         * config/m68hc11/m68hc11.c: Likewise.
6613         * config/m68k/m68k.c: Likewise.
6614         * config/mcore/mcore.c: Likewise.
6615         * config/mep/mep.c: Likewise.
6616         * config/microblaze/microblaze.c: Likewise.
6617         * config/mips/mips.c: Likewise.
6618         * config/rs6000/rs6000.c: Likewise.
6619         * config/rx/rx.c: Likewise.
6620         * config/sh/sh.c: Likewise.
6621         * config/sol2.h: Likewise.
6622         * config/sparc/sparc.c: Likewise.
6623         * config/spu/spu.c: Likewise.
6624         * config/stormy16/stormy16.c: Likewise.
6625         * config/v850/v850.c: Likewise.
6626
6627 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6628
6629         * simplify-rtx.c (simplify_binary_operation_1): Handle
6630         (xor (and A B) C) case when B and C are both constants.
6631
6632 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6633
6634         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6635
6636 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6637
6638         PR bootstrap/48168
6639         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6640
6641 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6642
6643         PR rtl-optimization/48156
6644         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6645         assume df and df_lr are not NULL.
6646
6647 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6648
6649         PR debug/48023
6650         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6651         between a call and its CALL_ARG_LOCATION note.
6652
6653 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6654
6655         PR debug/48178
6656         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6657         between a call and its corresponding CALL_ARG_LOCATION note.
6658
6659 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6660
6661         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6662         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6663         * haifa-sched.c (setup_ref_regs): Ditto.
6664         * caller-save.c (add_used_regs_1): Ditto.
6665         * dse.c (look_for_hardregs): Ditto.
6666         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6667         * sched-rgn.c (check_live_1): Ditto.
6668
6669 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6670
6671         * c-decl.c (diagnose_mismatched_decls): Give an error for
6672         redefining a typedef with variably modified type.
6673
6674 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6675
6676         * c-decl.c (grokfield): Don't allow typedefs for structures or
6677         unions with no tag by default.
6678         * doc/extend.texi (Unnamed Fields): Update.
6679
6680 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6681
6682         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6683         Rewrite using indirect functions.
6684         (lwp_slwpcb): Ditto.
6685         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6686         (avx_vinsertf128<mode>): Ditto.
6687
6688 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6689
6690         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6691         unspecs.
6692
6693 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6694
6695         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6696         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6697
6698 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6699
6700         PR rtl-optimization/48170
6701         * gcse.c (hoist_code): Remove bogus asserts.
6702
6703 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6704
6705         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6706         computation for prologue/epilogue.
6707
6708 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6709
6710         * Makefile.in (check-consistency): Remove.
6711
6712 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6713
6714         PR debug/48176
6715         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6716         arange_table_in_use is 0, but either text_section_used or
6717         cold_text_section_used is true.  Don't call it if
6718         !info_section_emitted.
6719
6720 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6721
6722         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6723         FUNCTION_VALUE_REGNO_P): Remove.
6724         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6725         Remove.
6726         * config/avr/avr.c (avr_ret_register): Make static inline.
6727         (avr_function_value_regno_p): New function.
6728         (avr_libcall_value): Make static. Add 'func' argument.
6729         (avr_function_value): Make static. Rename 'func' argument to
6730         'fn_decl_or_type', forward it to avr_libcall_value. Call
6731         avr_ret_register function instead of RET_REGISTER macro.
6732         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6733
6734 2011-03-18  Jason Merrill  <jason@redhat.com>
6735
6736         PR c++/23372
6737         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6738
6739 2011-03-18  Richard Guenther  <rguenther@suse.de>
6740
6741         * doc/install.texi (--enable-gold): Remove.
6742         (--with-plugin-ld): Document.
6743         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6744
6745 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6746
6747         PR middle-end/47790
6748         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6749         again after expansion changes.
6750
6751 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6752
6753         * combine.c (try_combine): Do simplification only call of
6754         subst() on i2 even when i1 is present. Update comments.
6755
6756 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6757
6758         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6759         and UNSPEC_PCREL_SYMOFF.
6760
6761 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6762
6763         * config/s390/s390.md: Use define_c_enum for the unspec constant
6764         definitions.
6765
6766 2011-03-18  Richard Henderson  <rth@redhat.com>
6767             Jakub Jelinek  <jakub@redhat.com>
6768
6769         PR bootstrap/48161
6770         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6771         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6772
6773 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6774
6775         PR middle-end/47725
6776         * combine.c (cant_combine_insn_p): Don't check zero/sign
6777         extended hard registers.
6778
6779 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         PR middle-end/47725
6782         * combine.c (cant_combine_insn_p): Check zero/sign extended
6783         hard registers.
6784
6785 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6786
6787         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6788         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6789         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6790         Change return type to bool.
6791         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6792
6793 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6794
6795         PR debug/48163
6796         * var-tracking.c (prepare_call_arguments): If CALL target
6797         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6798         pc instead of looking it up using cselib_lookup and use
6799         Pmode for it if x has VOIDmode.
6800         * dwarf2out.c (gen_subprogram_die): If also both first and
6801         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6802
6803         PR debug/48163
6804         * function.c (assign_parms): For data.passed_pointer parms
6805         use MEM of data.entry_parm instead of data.entry_parm itself
6806         as DECL_INCOMING_RTL.
6807         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6808         also when passed and declared mode is the same, DECL_RTL
6809         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6810         a MEM too.
6811
6812 2011-03-16  Jeff Law  <law@redhat.com>
6813
6814         PR rtl-optimization/37273
6815         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6816         handle them like argument loads from stack slots.  Do not double
6817         count memory for memory constants and argument loads from stack slots.
6818
6819 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6820
6821         PR debug/48160
6822         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6823
6824 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6825
6826         PR target/48171
6827         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6828
6829 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6830
6831         PR bootstrap/48153
6832         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6833         if dwarf_strict.
6834         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6835         Clear call_arg_locations and call_arg_loc_last always.
6836
6837         PR middle-end/48152
6838         * var-tracking.c (prepare_call_arguments): If argument needs to be
6839         passed by reference, adjust argtype and mode.
6840
6841 2011-03-17  Richard Guenther  <rguenther@suse.de>
6842
6843         PR middle-end/48134
6844         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6845         a value make sure to fold the statement.
6846
6847 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6848
6849         PR target/43872
6850         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6851         return condition with !cfun->calls_alloca.
6852
6853 2011-03-17  Richard Guenther  <rguenther@suse.de>
6854
6855         PR bootstrap/48148
6856         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6857         origin for decls in other ltrans units.
6858         (input_varpool_node): Likewise.
6859
6860 2011-03-17  Richard Guenther  <rguenther@suse.de>
6861
6862         PR middle-end/48165
6863         * tree-object-size.c (compute_object_offset): Properly return
6864         the offset operand of MEM_REFs as sizetype.
6865
6866 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6867
6868         PR rtl-optimization/48141
6869         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6870         * dse.c: Include params.h.
6871         (active_local_stores_len): New variable.
6872         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6873         to NULL.
6874         (record_store, check_mem_read_rtx): Decrease it when removing
6875         from the chain.
6876         (scan_insn): Likewise.  Increase it when adding to chain, if it
6877         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6878         set active_local_stores to NULL before the addition.
6879         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6880
6881         PR rtl-optimization/48141
6882         * dse.c (record_store): If no positions are needed in an insn
6883         that cannot be deleted, at least unchain it from active_local_stores.
6884
6885 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6886
6887         PR debug/47510
6888         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6889         (lookup_type_die_strip_naming_typedef): ... here.
6890         (get_context_die): Use it.
6891         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6892         the anonymous struct named by the naming typedef.
6893
6894 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6895
6896         PR target/48154
6897         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6898         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6899
6900 2011-03-16  Jeff Law  <law@redhat.com>
6901
6902         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6903         check for operands of conditional.  Allow type to be a pointer.
6904
6905 2011-03-16  Richard Guenther  <rguenther@suse.de>
6906
6907         PR tree-optimization/48149
6908         * fold-const.c (fold_binary_loc): Fold
6909         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6910
6911 2011-03-16  Richard Guenther  <rguenther@suse.de>
6912
6913         PR tree-optimization/26134
6914         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6915         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6916         (non_rewritable_mem_ref_base): Handle complex type component
6917         accesses, constrain offsets for vector and complex extracts
6918         more properly.
6919
6920 2011-03-16  Richard Guenther  <rguenther@suse.de>
6921
6922         PR tree-optimization/48146
6923         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6924         operands avoiding the need for renaming.
6925
6926 2011-03-16  Richard Guenther  <rguenther@suse.de>
6927
6928         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6929         constant folding.  Move MEM_REF canonicalization first.
6930         Rely on fold_const_aggregate_ref for initializer folding.
6931         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6932
6933 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6934
6935         PR middle-end/48136
6936         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6937         arg0/arg1 or their arguments are always fold converted to matching
6938         types.
6939
6940         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6941         to nargs.
6942
6943 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6944
6945         PR lto/46944
6946         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6947         Handle in-tree gold.
6948         (ld_vers): Extract binutils version for gold.
6949         (gcc_cv_ld_hidden): Handle gold here.
6950         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6951         * configure: Regenerate.
6952         * config.in: Regenerate.
6953         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6954         -fuse-linker-plugin otherwise.
6955         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6956         (LINK_COMMAND_SPEC): Use it.
6957         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6958
6959 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6960
6961         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6962         * calls.c: Remove debug.h include.
6963         (emit_call_1): Don't call virtual_call_token debug hook.
6964         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6965         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6966         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6967         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6968         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6969         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6970         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6971         dwarf2out_virtual_call): Remove.
6972         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6973         copy_call_info and virtual_call hooks.
6974         (dwarf2out_init): Don't initialize vcall_insn_table,
6975         debug_dcall_section and debug_vcall_section.
6976         (prune_unused_types): Don't mark nodes from dcall_table.
6977         (dwarf2out_finish): Don't output dcall or vcall tables.
6978         * final.c (final_scan_insn): Don't call direct_call or
6979         virtual_call debug hooks.
6980         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6981         virtual_call_token, copy_call_info and virtual_call hooks.
6982         (debug_nothing_uid): Remove prototype.
6983         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6984         copy_call_info and virtual_call hooks.
6985         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6986         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6987         * debug.c (do_nothing_debug_hooks): Likewise.
6988         (debug_nothing_uid): Remove.
6989         * doc/invoke.texi (-fenable-icf-debug): Remove.
6990         * common.opt (-fenable-icf-debug): Likewise.
6991
6992         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6993         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6994         call's MEM.  Handle functions returning aggregate through a hidden
6995         first pointer.  For virtual calls add clobbered pc to call arguments
6996         chain.
6997         * dwarf2out.c (gen_subprogram_die): Emit
6998         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6999         can't be emitted.
7000
7001         PR debug/45882
7002         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7003         * rtl.h (ENTRY_VALUE_EXP): Define.
7004         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7005         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7006         * print-rtl.c (print_rtx): Likewise.
7007         * gengtype.c (adjust_field_rtx_def): Likewise.
7008         * var-tracking.c (vt_add_function_parameter): Adjust
7009         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7010         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7011         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7012         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7013         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7014
7015         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7016         Call var_location debug hook even on CALL_INSNs.
7017         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7018         * rtl.def (ENTRY_VALUE): New.
7019         * dwarf2out.c: Include cfglayout.h.
7020         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7021         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7022         (struct call_arg_loc_node): New type.
7023         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7024         tail_call_site_count): New variables.
7025         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7026         DW_TAG_GNU_call_site_parameter.
7027         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7028         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7029         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7030         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7031         and DW_AT_GNU_all_source_call_sites.
7032         (mem_loc_descriptor): Handle ENTRY_VALUE.
7033         (add_src_coords_attributes): Don't add enything if
7034         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7035         (dwarf2out_abstract_function): Save and clear call_arg_location,
7036         call_site_count and tail_call_site_count around dwarf2out_decl call.
7037         (gen_call_site_die): New function.
7038         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7039         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7040         (dwarf2out_function_decl): Clear call_arg_locations,
7041         call_arg_loc_last, set call_site_count and tail_call_site_count
7042         to -1 and free block_map.
7043         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7044         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
7045         followed by any real instructions.
7046         (dwarf2out_begin_function): Set call_site_count and
7047         tail_call_site_count to 0.
7048         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7049         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7050         attempt to force a DIE for it and worst case remove the attribute.
7051         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7052         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7053         the decl itself.
7054         * var-tracking.c: Include tm_p.h.
7055         (vt_stack_adjustments): For calls call note_register_arguments.
7056         (argument_reg_set): New variable.
7057         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7058         ensure the VALUE is resolved.
7059         (call_arguments): New variable.
7060         (prepare_call_arguments): New function.
7061         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7062         (struct expand_loc_callback_data): Add ignore_cur_loc field.
7063         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7064         always use the best expression.
7065         (vt_expand_loc): Add ignore_cur_loc argument.
7066         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7067         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7068         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7069         note for all calls.
7070         (vt_add_function_parameter): Use cselib_lookup_from_insn.
7071         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7072         argument.  Don't call cselib_preserve_only_values and
7073         cselib_reset_table.
7074         (note_register_arguments): New function.
7075         (vt_initialize): Compute argument_reg_set.  Call
7076         vt_add_function_parameters before processing basic blocks instead of
7077         afterwards.  For calls call prepare_call_arguments before calling
7078         cselib_process_insn.
7079         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7080         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7081         (var-tracking.o): Depend on $(TM_P_H).
7082         * cfglayout.h (insn_scope): New prototype.
7083         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7084         * cfglayout.c (insn_scope): No longer static.
7085         * insn-notes.def (CALL_ARG_LOCATION): New.
7086         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7087         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7088         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7089         nothing for DECL_EXTERNAL BLOCK_VARS.
7090
7091 2011-03-16  Alan Modra  <amodra@gmail.com>
7092
7093         PR target/45844
7094         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7095         create invalid offset address for vsx splat insn.
7096         * config/rs6000/predicates.md (splat_input_operand): New.
7097         * config/rs6000/vsx.md (vsx_splat_*): Use it.
7098
7099 2011-03-15  Xinliang David Li  <davidxl@google.com>
7100
7101         PR c/47837
7102         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7103         (normalize_preds): New function.
7104         (is_use_properly_guarded): Normalize def predicates.
7105
7106 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7107
7108         PR target/46788
7109         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7110         in the output template.
7111
7112 2011-03-15  Richard Guenther  <rguenther@suse.de>
7113
7114         PR middle-end/47650
7115         * tree-pretty-print.c (dump_function_declaration): Properly
7116         dump unprototyped and varargs function types.
7117
7118 2011-03-15  Richard Guenther  <rguenther@suse.de>
7119
7120         PR tree-optimization/13954
7121         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7122         and friends.
7123
7124 2011-03-15  Richard Guenther  <rguenther@suse.de>
7125
7126         PR tree-optimization/48037
7127         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7128         selects into BIT_FIELD_REFs.
7129         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7130         vector select.
7131
7132 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
7133
7134         PR tree-optimization/48129
7135         * builtins.c (fold_builtin_snprintf): Convert to type of
7136         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7137         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7138
7139 2011-03-15  Richard Guenther  <rguenther@suse.de>
7140
7141         PR tree-optimization/41490
7142         * tree-ssa-dce.c (propagate_necessity): Handle returns without
7143         value but with VUSE.
7144         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7145         return statements.
7146         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7147         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7148         * tree-tailcall.c (find_tail_calls): Ignore returns.
7149
7150 2011-03-15  Richard Guenther  <rguenther@suse.de>
7151
7152         PR middle-end/48031
7153         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7154         or variable-indexed array accesses when in gimple form.
7155
7156 2011-03-15  Richard Guenther  <rguenther@suse.de>
7157
7158         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7159
7160 2011-03-15  Alan Modra  <amodra@gmail.com>
7161
7162         PR target/48032
7163         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7164         presume symbol_refs without a symbol_ref_decl are suitably
7165         aligned, nor other trees we may see here.  Handle anchor symbols.
7166         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7167         Check cmodel=medium addresses.  Adjust all calls.
7168         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7169         creating cmodel=medium optimized access to locals.
7170         * config/rs6000/constraints.md (R): Pass QImode to
7171         legitimate_constant_pool_address_p.
7172         * config/rs6000/predicates.md (input_operand): Pass mode to
7173         legitimate_constant_pool_address_p.
7174         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7175         Update prototype.
7176
7177 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7178
7179         PR target/48053
7180         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7181         64-bit constants being loaded into registers other than GPRs such
7182         as loading 0 into a VSX register.
7183
7184 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7185
7186         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7187
7188 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7189
7190         PR middle-end/47917
7191         * builtins.c (fold_builtin_snprintf): New function.
7192         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7193         (fold_builtin_4): Likewise.
7194
7195         PR middle-end/38878
7196         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7197         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7198         and C - X == X also strip nops from +/-/p+ operand.
7199         When optimizing -X == C, fold C to arg0's type.
7200
7201         PR debug/47946
7202         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7203         emit it as add_AT_int instead of add_AT_unsigned.
7204
7205 2011-03-14  Tom Tromey  <tromey@redhat.com>
7206
7207         * unwind-dw2.c: Include sys/sdt.h if it exists.
7208         (_Unwind_DebugHook): Use STAP_PROBE2.
7209         * config.in, configure: Rebuild.
7210         * configure.ac: Check for sys/sdt.h.
7211
7212 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7213
7214         * config/i386/i386.md (ROUND_FLOOR): New constant.
7215         (ROUND_CEIL): Ditto.
7216         (ROUND_TRUNC): Ditto.
7217         (ROUND_MXCSR): Ditto.
7218         (ROUND_NO_EXC): Ditto.
7219         (rint<mode>2): Use new defines instead of numerical constants.
7220         (floor<mode>2): Ditto.
7221         (ceil<mode>2): Ditto.
7222         (btrunc<mode>2): Ditto.
7223         * config/i386/i386-builtin-types.def: Define ROUND function type
7224         aliases.
7225         * config/i386/i386.c (enum ix86_builtins): Add
7226         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7227         (struct builtin_description): Add
7228         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7229         (ix86_expand_sse_round): New static function.
7230         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7231         function types.
7232         (ix86_builtin_vectorized_function): Handle
7233         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7234
7235 2011-03-14  Tom Tromey  <tromey@redhat.com>
7236
7237         * c-parser.c (c_parser_asm_string_literal): Clear
7238         warn_overlength_strings.
7239
7240 2011-03-14  Tom Tromey  <tromey@redhat.com>
7241
7242         * c-parser.c (disable_extension_diagnostics): Save
7243         warn_overlength_strings.
7244         (restore_extension_diagnostics): Restore warn_overlength_strings.
7245
7246 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7247
7248         * BASE-VER: Change to 4.7.0.
7249
7250 2011-03-14  Richard Guenther  <rguenther@suse.de>
7251
7252         PR middle-end/48098
7253         * tree.c (build_vector_from_val): Adjust assert to requirements
7254         and reality.
7255
7256 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7257
7258         PR bootstrap/48102
7259         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7260
7261 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7262
7263         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7264         terms of target_flags_explicit. Adjust copyright year.
7265
7266         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7267         * config/rs6000/t-freebsd: New file. Add override for
7268         LIB2FUNCS_EXTRA.
7269
7270 2011-03-13  Chris Demetriou  <cgd@google.com>
7271
7272         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7273         (-fno-diagnostics-show-option): this, to reflect current default.
7274         (-Werror=): Update text about -fno-diagnostics-show-option.
7275
7276 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7277
7278         PR target/48053
7279         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7280         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7281         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7282         mode is not V2DImode or V2DFmode.
7283         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7284         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7285         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7286         registers to 0.
7287         (movdi_internal64): Likewise.
7288
7289 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7290
7291         PR tree-optimization/47127
7292         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7293         parameter.
7294         (set_cloog_options): Same.
7295         (scop_to_clast): Same.
7296         (print_clast_stmt): Do not call cloog_state_malloc and
7297         cloog_state_free.
7298         (print_generated_program): Same.
7299         (gloog): Same.
7300         * graphite-clast-to-gimple.h (cloog_state): Declared.
7301         (scop_to_clast): Adjust declaration.
7302         * graphite.c (cloog_state): Defined here.
7303         (graphite_initialize): Call cloog_state_malloc.
7304         (graphite_finalize): Call cloog_state_free.
7305
7306 2011-03-11  Jason Merrill  <jason@redhat.com>
7307
7308         * attribs.c (lookup_attribute_spec): Take const_tree.
7309         * tree.h: Adjust.
7310
7311 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7312
7313         * config/sparc/sparc.c (sparc_option_override): Use
7314         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7315
7316 2011-03-11  Richard Guenther  <rguenther@suse.de>
7317
7318         PR tree-optimization/48067
7319         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7320         multiplication result will be only used once on the target
7321         stmt.
7322
7323 2011-03-11  Richard Guenther  <rguenther@suse.de>
7324
7325         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7326
7327 2011-03-11  Richard Guenther  <rguenther@suse.de>
7328
7329         PR lto/48073
7330         * tree.c (find_decls_types_r): Do not walk types only reachable
7331         from IDENTIFIER_NODEs.
7332
7333 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7334
7335         PR middle-end/48044
7336         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7337         all vnode->force_output nodes as needed.
7338
7339 2011-03-11  Jason Merrill  <jason@redhat.com>
7340
7341         PR c++/48069
7342         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7343         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7344
7345 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7346
7347         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7348         cgraph_node.
7349
7350 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7351
7352         PR tree-optimization/48063
7353         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7354         inline functions called once if !tree_can_inline_p (node->callers).
7355
7356 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7357
7358         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7359         extra_objs.
7360         * config/score/score3.c: Delete.
7361         * config/score/score3.h: Delete.
7362         * config/score/mul-div.S: Delete.
7363         * config/score/sfp-machine.h: Add new file.
7364         * config/score/constraints.md: Add new file.
7365         * config/score/t-score-softfp: Add new file.
7366         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7367         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7368         (score7_extra_constraint): Delete.
7369         (score7_option_override): Remove unused code.
7370         * config/score/score.c: Remove score3 and score5 define and code.
7371         * config/score/score.h: Remove score3 and score5 define and code.
7372         * config/score/score.md: Remove score3 template and unusual insn.
7373         * config/score/score.opt: Remove score3 and score5 options.
7374
7375 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7376
7377         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7378         when _HPUX_SOURCE is defined.
7379         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7380
7381 2011-03-10  Jason Merrill  <jason@redhat.com>
7382
7383         PR c++/48029
7384         * stor-layout.c (layout_type): Don't set structural equality
7385         on arrays of incomplete type.
7386         * tree.c (type_hash_eq): Handle comparing them properly.
7387
7388 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7389
7390         PR debug/48043
7391         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7392         result mode matches original rtl mode.
7393
7394 2011-03-10  Nick Clifton  <nickc@redhat.com>
7395
7396         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7397         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7398
7399 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7400
7401         PR rtl-optimization/47866
7402         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7403         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7404         if target wasn't scalar.
7405         * function.c (assign_stack_temp_for_type): Assert that neither
7406         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7407         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7408         macro.
7409         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7410
7411 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7412
7413         * config/s390/s390-protos.h (s390_label_align): New prototype.
7414         * config/s390/s390.c (s390_label_align): New function.
7415         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7416
7417 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7418
7419         PR target/47755
7420         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7421         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7422         (output_vec_const_move): Ditto.
7423
7424 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7425
7426         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7427         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7428         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7429         Change 'rclass' argument and result type to reg_class_t.
7430         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7431
7432 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7433
7434         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7435         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7436         (TARGET_MEMORY_MOVE_COST): Define.
7437         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7438
7439 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7440
7441         PR debug/47881
7442         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7443         removed anything.
7444
7445         PR tree-optimization/48022
7446         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7447         for EQ/NE_EXPR.
7448
7449 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7450
7451         PR debug/47991
7452         * var-tracking.c (find_use_val): Return NULL for
7453         cui->sets && cui->store_p BLKmode MEMs.
7454
7455 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7456
7457         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7458         Remove.
7459         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7460         xstormy16_print_operand_address): Remove.
7461         * config/stormy16/stormy16.c (xstormy16_print_operand,
7462         xstormy16_print_operand_address): Make static.
7463         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7464
7465 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7466
7467         PR target/47862
7468         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7469         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7470         before definition.
7471
7472 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7473
7474         PR bootstrap/48000
7475         * cfgloopmanip.c (fix_bb_placements): Return immediately
7476         if FROM is BASE_LOOP's header.
7477
7478 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7479
7480         * gimplify.c (gimplify_function_tree): Fix building calls
7481         to __builtin_return_address.
7482
7483 2011-03-07  Alan Modra  <amodra@gmail.com>
7484
7485         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7486         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7487         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7488         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7489         return_mode args.
7490         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7491         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7492         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7493         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7494         * config/rs6000/rs6000.c
7495         (rs6000_elf_end_indicate_exec_stack): Rename to..
7496         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7497         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7498         (rs6000_file_start): ..here.
7499         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7500         file scope variables.
7501         (call_ABI_of_interest): New function.
7502         (init_cumulative_args): Set above vars when function return value
7503         is a float, vector, or small struct.
7504         (rs6000_function_arg_advance_1): Likewise for function args.
7505         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7506         references float args.
7507
7508 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7509
7510         * doc/cfg.texi: Remove "See" before @ref.
7511         * doc/invoke.texi: Likewise.
7512
7513 2011-03-05  Jason Merrill  <jason@redhat.com>
7514
7515         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7516
7517 2011-03-05  Anthony Green  <green@moxielogic.com>
7518
7519         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7520
7521 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7522
7523         PR rtl-optimization/47899
7524         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7525         to flow_loop_nested_p when moving the loop upward.
7526
7527 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7528
7529         PR target/47719
7530         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7531
7532 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7533
7534         PR tree-optimization/47967
7535         * ipa-cp.c (build_const_val): Return NULL instead of creating
7536         VIEW_CONVERT_EXPR for mismatching sizes.
7537         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7538         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7539         give up on versioning.
7540
7541 2011-03-05  Alan Modra  <amodra@gmail.com>
7542
7543         PR target/47986
7544         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7545         full cmodel medium/large lo_sum + high addresses.
7546
7547 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7548
7549         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7550         pool references in UNSPEC_LTREL_OFFSET.
7551
7552 2011-03-04  Jan Hubicka  <jh@suse.cz>
7553
7554         PR lto/47497
7555         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7556         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7557         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7558         Add node pointers.
7559         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7560         cgraph_add_thunk): Add node pointers.
7561         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7562         associated to right node.
7563         (input_node): Update use of cgraph_same_body_alias
7564         and cgraph_add_thunk.
7565
7566 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7567
7568         * config/i386/i386.opt (mprefer-avx128): New flag.
7569         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7570         modes when the flag -mprefer-avx128 is on.
7571
7572 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7573
7574         * dwarf2out.c (compare_loc_operands): Fix address handling.
7575
7576 2011-03-04  Alan Modra  <amodra@gmail.com>
7577
7578         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7579
7580 2011-03-04  Richard Guenther  <rguenther@suse.de>
7581
7582         PR middle-end/47968
7583         * expmed.c (extract_bit_field_1): Prefer vector modes that
7584         vec_extract patterns can handle.
7585
7586 2011-03-04  Richard Guenther  <rguenther@suse.de>
7587
7588         PR middle-end/47975
7589         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7590
7591 2011-03-04  Richard Henderson  <rth@redhat.com>
7592
7593         * explow.c (emit_stack_save): Remove 'after' parameter.
7594         (emit_stack_restore): Likewise.
7595         * expr.h: Update to match.
7596         * builtins.c, calls.c, stmt.c: Likewise.
7597         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7598         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7599         * function.c (expand_function_end): Insert the emit_stack_save
7600         sequence before parm_birth_insn instead of after.
7601
7602 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7603
7604         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7605         (ssse3_pmaddubsw128): Ditto.
7606         (ssse3_pmaddubsw): Ditto.
7607
7608 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7609
7610         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7611
7612 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7613
7614         PR c/47963
7615         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7616         on TYPE_SIZE_UNIT if it is a DECL.
7617
7618         PR debug/47283
7619         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7620         first operand is not is_gimple_mem_ref_addr, try to fold it.
7621         If the operand still isn't is_gimple_mem_ref_addr, clear
7622         MEM_EXPR on op0.
7623
7624 2011-03-03  Richard Guenther  <rguenther@suse.de>
7625
7626         PR middle-end/47283
7627         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7628         match comment.
7629         (refs_may_alias_p_1): For release branches return true if
7630         we are confused by our input.
7631
7632 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7633
7634         * config/s390/s390.c (s390_function_value): Rename to ...
7635         (s390_function_and_libcall_value): ... this.
7636         (s390_function_value): New function.
7637         (s390_libcall_value): New function.
7638         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7639         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7640         target macro definitions.
7641         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7642
7643 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7644
7645         * config/i386/freebsd64.h (CC1_SPEC): Define.
7646         * config/i386/linux64.h (CC1_SPEC): Define.
7647         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7648
7649 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7650
7651         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7652         Remove.
7653         * config/stormy16/stormy16.c: Include reload.h.
7654         (xstormy16_memory_move_cost): New function.
7655         (TARGET_MEMORY_MOVE_COST): Define.
7656
7657 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7658
7659         PR rtl-optimization/47925
7660         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7661         with side effects.  Remove the more-specific check for volatile asms.
7662
7663 2011-03-02  Alan Modra  <amodra@gmail.com>
7664
7665         PR target/47935
7666         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7667         toc relative addresses for valid offsets.
7668
7669 2011-03-01  Richard Guenther  <rguenther@suse.de>
7670
7671         PR tree-optimization/47890
7672         * tree-vect-loop.c (get_initial_def_for_induction): Set
7673         related stmt properly.
7674
7675 2011-03-01  Richard Guenther  <rguenther@suse.de>
7676
7677         PR lto/47924
7678         * lto-streamer.c (lto_record_common_node): Also register
7679         the canonical type.
7680
7681 2011-03-01  Richard Guenther  <rguenther@suse.de>
7682
7683         PR lto/46911
7684         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7685         Do not stream DECL_ABSTRACT_ORIGIN.
7686         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7687         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7688         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7689         Do not stream DECL_ABSTRACT_ORIGIN.
7690         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7691         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7692
7693 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7694
7695         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7696         FUNCTION_VALUE_REGNO_P): Remove.
7697         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7698         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7699         Add 'outgoing' argument.
7700         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7701         function.
7702         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7703         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7704
7705 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7706
7707         PR debug/28047
7708         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7709         (lookup_filename): Likewise.
7710         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7711
7712 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7713             Jakub Jelinek  <jakub@redhat.com>
7714
7715         PR middle-end/47893
7716         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7717         (assign_stack_local_1): Change last argument type to int.
7718         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7719         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7720         don't record padding space into frame_space_list nor use those areas.
7721         (assign_stack_local): Adjust caller.
7722         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7723         of assign_stack_local, pass 0 as last argument.
7724         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7725         callers.
7726
7727 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7728
7729         PR debug/47283
7730         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7731         Use target address_mode and pointer_mode hooks instead of hardcoded
7732         Pmode and ptr_mode.  Handle some simple cases of extending if
7733         POINTERS_EXTEND_UNSIGNED < 0.
7734         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7735         Call convert_debug_memory_address.
7736         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7737         convert_debug_memory_address.
7738
7739         PR middle-end/46790
7740         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7741         * configure: Regenerated.
7742         * config.in: Regenerated.
7743         * varasm.c (default_function_section): Return NULL
7744         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7745
7746 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7747
7748         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7749         the description to match the printed values.
7750
7751 2011-02-28  Richard Guenther  <rguenther@suse.de>
7752
7753         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7754         of the copied scope tree.
7755
7756 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7757
7758         * doc/extend.texi (Function Attributes): Avoid deeply (and
7759         wrongly) nested tables.
7760
7761 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7762
7763         PR middle-end/47903
7764         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7765         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7766         r isn't op0 nor op1.
7767
7768 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7769
7770         * config/avr/avr.md: Remove magic comment for emacs.
7771
7772 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7773
7774         PR target/45261
7775         * config/avr/avr.c (avr_option_override): Use error on bad options.
7776         (avr_help): New function.
7777         (TARGET_HELP): Define.
7778
7779 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7780
7781         PR target/42240
7782         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7783         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7784
7785 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7786
7787         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7788         (ARM Options): Ditto.
7789         (i386 and x86-64 Options): Ditto.
7790         (RX Options): Ditto.
7791         (SPARC Options): Ditto.
7792
7793 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7794
7795         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7796         FreeBSD 6 and later.  Generally use cpu generic.
7797
7798 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7799
7800         * doc/cpp.texi: Update copyright years.
7801
7802 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7803
7804         PR target/46898
7805         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7806
7807 2011-02-25  Jon Beniston  <jon@beniston.com>
7808
7809         PR target/46898
7810         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7811         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7812         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7813         (lm32_block_move_inline): Add type cast to remove warning.
7814         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7815         (gen_int_relational): Move declarations to start of function.
7816
7817 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7818
7819         PR tree-optimization/45470
7820         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7821         can throw internally only.
7822         * tree-vect-stmts.c (vectorizable_call): Likewise.
7823
7824 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7825
7826         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7827         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7828         * config/stormy16/stormy16-protos.h
7829         (xstormy16_preferred_reload_class): Remove.
7830         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7831         static. Change 'rclass' argument and return type to reg_class_t.
7832         (TARGET_PREFERRED_RELOAD_CLASS,
7833         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7834
7835 2011-02-24  Richard Guenther  <rguenther@suse.de>
7836
7837         * lto-streamer-in.c (input_bb): Do not find referenced vars
7838         in debug statements.
7839
7840 2011-02-23  Jason Merrill  <jason@redhat.com>
7841
7842         * common.opt (fabi-version): Document v5 and v6.
7843
7844 2011-02-23  Richard Guenther  <rguenther@suse.de>
7845
7846         PR tree-optimization/47849
7847         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7848
7849 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7850
7851         * opts-common.c (decode_cmdline_option): Print empty string
7852         argument as "" in decoded->orig_option_with_args_text.
7853         * gcc.c (execute): Print empty string argument as ""
7854         in the verbose output.
7855         (do_spec_1): Keep empty string argument.
7856
7857 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7858
7859         * config.gcc: Declare score-* and crx-* obsolete.
7860
7861 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7862
7863         PR rtl-optimization/47763
7864         * web.c (web_main): Ignore naked clobber when replacing register.
7865
7866 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7867
7868         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7869         Remove.
7870
7871 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7872
7873         PR doc/47848
7874         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7875
7876 2011-02-22  Mike Stump  <mikestump@comcast.net>
7877
7878         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7879         assembler.
7880         * configure: Regenerate.
7881
7882 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7883
7884         PR rtl-optimization/46002
7885         * ira-color.c (update_copy_costs): Change class intersection
7886         test to reg_class_contents[] test of 'hard_regno'.
7887
7888 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7889
7890         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7891         than Driver option.
7892         * config/hpux11.opt (mt): Likewise.
7893         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7894         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7895         * config/vax/elf.opt (mno-asm-pic): Likewise.
7896         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7897
7898 2011-02-21  Mike Stump  <mikestump@comcast.net>
7899
7900         PR target/47822
7901         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7902         tree so we can get save the type.
7903         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7904         for CFString instead of trying to use past the end of the builtins.
7905         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7906         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7907         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7908         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7909         Rename to darwin_builtin_cfstring.
7910         (darwin_init_cfstring_builtins): Return the built type.
7911
7912 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7913
7914         PR target/47840
7915         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7916         (_mm256_insert_epi64): Use _mm_insert_epi64.
7917
7918 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7919
7920         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7921         * config/stormy16/stormy16-protos.h
7922         (xstormy16_mode_dependent_address_p): Remove.
7923         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7924         Make static. Change return type to bool. Change argument type to
7925         const_rtx. Remove dead code.
7926         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7927
7928 2011-02-21  Richard Guenther  <rguenther@suse.de>
7929
7930         PR lto/47820
7931         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7932         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7933         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7934         TUs context.
7935         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7936         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7937
7938 2011-02-20  Richard Guenther  <rguenther@suse.de>
7939
7940         PR lto/47822
7941         * tree.c (free_lang_data_in_decl): Clean builtins from
7942         the TU decl BLOCK_VARS.
7943
7944 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7945
7946         PR debug/47620
7947         PR debug/47630
7948         * haifa-sched.c (fix_tick_ready): Skip tick computation
7949         for debug insns.
7950
7951 2011-02-19  Richard Guenther  <rguenther@suse.de>
7952
7953         PR lto/47647
7954         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7955         Remove lazy BLOCK_VARS streaming.
7956         (lto_input_ts_block_tree_pointers): Likewise.
7957         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7958
7959 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7960
7961         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7962
7963 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7964
7965         * config/i386/biarch32.h, config/i386/mach.h,
7966         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7967
7968 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7969
7970         PR target/47800
7971         * config/i386/i386.md (peephole2 for shift and plus): Use
7972         operands[1] original mode in the first insn.
7973
7974 2011-02-18  Mike Stump  <mikestump@comcast.net>
7975
7976         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7977
7978 2011-02-18  Jan Hubicka  <jh@suse.cz>
7979
7980         PR middle-end/47788
7981         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7982         to zero when the function is not inlinable at all.
7983
7984 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7985
7986         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7987         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7988         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7989         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7990         * config/pa/t-pa64: Likewise.
7991         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7992
7993 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7994
7995         PR driver/47787
7996         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7997
7998 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7999
8000         PR target/47792
8001         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8002
8003 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
8004
8005         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8006         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8007         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8008         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8009         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8010         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8011         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8012         m32r_load_postinc_p, m32r_store_preinc_predec_p,
8013         m32r_legitimate_address_p): New functions.
8014         * config/m32r/constraints.md (constraint "S"): Don't use
8015         STORE_PREINC_PREDEC_P.
8016         (constraint "U"): Don't use LOAD_POSTINC_P.
8017
8018 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
8019
8020         PR rtl-optimization/46178
8021         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8022         compute ira_hard_regno_cover_class[].
8023
8024 2011-02-18  Richard Guenther  <rguenther@suse.de>
8025
8026         PR lto/47798
8027         * lto-streamer.h (lto_global_var_decls): Declare.
8028         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8029         statics for global var processing.
8030
8031 2011-02-18  Richard Guenther  <rguenther@suse.de>
8032
8033         PR tree-optimization/47737
8034         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8035         edge dominance check.
8036
8037 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8038
8039         PR debug/47780
8040         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8041         avoid invalid rtx sharing.
8042
8043 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
8044
8045         * doc/cpp.texi (Obsolete Features): Add background on the
8046         origin of assertions.
8047
8048 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
8049
8050         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8051         objc_abi == 2.
8052         * config/darwin.c (output_objc_section_asm_op): Added support for
8053         ABI v1 and v2.
8054         (is_objc_metadata): New.
8055         (darwin_objc2_section): New.
8056         (darwin_objc1_section): New.
8057         (machopic_select_section): Added support for ABI v1 and v2.
8058         (darwin_emit_objc_zeroed): New.
8059         (darwin_output_aligned_bss): Detect objc metadata and treat it
8060         appropriately.
8061         (darwin_asm_output_aligned_decl_common): Same.
8062         (darwin_asm_output_aligned_decl_local): Same.
8063         * config/darwin-sections.def: Updated for ABI v1 and v2.
8064         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8065         compiling Objective-C code for the NeXT runtime, default to using
8066         ABI version 0 for 32-bit, and version 2 for 64-bit.
8067
8068 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8069
8070         * common.opt (optimize_fast): New Variable.
8071         * opts.c (default_options_optimization): Use opts->x_optimize_fast
8072         instead of local variable ofast.
8073
8074 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8075
8076         * doc/invoke.texi (fobjc-abi-version): Documented.
8077         (fobjc-nilcheck): Documented.
8078         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8079         version.
8080
8081 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8082
8083         PR driver/47390
8084         * common.opt (export-dynamic): New Driver option.
8085         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8086
8087 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8088
8089         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8090
8091 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
8092             Jan Hubicka  <jh@suse.cz>
8093
8094         PR debug/47106
8095         PR debug/47402
8096         * cfgexpand.c (account_used_vars_for_block): Remove.
8097         (estimated_stack_frame_size): Use referenced vars.
8098         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8099         that were referenced in the original function.  Test src_fn
8100         rather than cfun.  Drop redundant get_var_ann.
8101         (setup_one_parameter): Drop redundant get_var_ann.
8102         (declare_return_variable): Likewise.
8103         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8104         (copy_arguments_for_versioning): Drop redundant get_var_ann.
8105         * ipa-inline.c (compute_inline_parameters): Do not compute
8106         disregard_inline_limits here.
8107         (compute_inlinable_for_current, pass_inlinable): New.
8108         (pass_inline_parameters): Require PROP_referenced_vars.
8109         * cgraphunit.c (cgraph_process_new_functions): Don't run
8110         compute_inline_parameters explicitly unless function is in SSA form.
8111         (cgraph_analyze_function): Set .disregard_inline_limits.
8112         * tree-sra.c (convert_callers): Compute inliner parameters
8113         only for functions already in SSA form.
8114
8115 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8116
8117         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8118         -mlittle-endian-data.
8119
8120 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8121
8122         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8123         -mno-fpu, not -fpu and -no-fpu.
8124         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8125         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8126
8127 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
8128
8129         PR target/43653
8130         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8131         input reload with PLUS RTX.
8132
8133 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8134
8135         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8136         of InverseVar(MDMX).
8137
8138 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8139
8140         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8141         --m4-340.
8142
8143 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8144
8145         * config/mn10300/mn10300.opt (mno-crt0): New.
8146
8147 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8148
8149         * config/m68k/uclinux.opt (static-libc): New Driver option.
8150
8151 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8152
8153         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8154
8155 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8156
8157         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8158         %{muser-extend-enabled}.
8159
8160 2011-02-16  Richard Guenther  <rguenther@suse.de>
8161
8162         PR tree-optimization/47738
8163         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8164         the TODO from tree_predictive_commoning.
8165
8166 2011-02-15  Jeff Law  <law@redhat.com>
8167
8168         Revert
8169         2011-01-25  Jeff Law  <law@redhat.com>
8170
8171         PR rtl-optimization/37273
8172         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8173         handle them like argument loads from stack slots.  Do not double
8174         count memory for memory constants and argument loads from stack slots.
8175
8176 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8177
8178         PR middle-end/47725
8179         * combine.c (cant_combine_insn_p): Revert the last change.
8180
8181 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8182
8183         PR target/47755
8184         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8185         mode for vector constants.  Remove code that checks for TImode.
8186
8187 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8188
8189         PR debug/47106
8190         PR debug/47402
8191         * cgraph.h (compute_inline_parameters): Return void.
8192         * ipa-inline.c (compute_inline_parameters): Adjust.
8193
8194 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8195
8196         PR debug/47106
8197         PR debug/47402
8198         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8199         rather than decl.
8200         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8201         * ipa-inline.c (compute_inline_parameters): Adjust.
8202
8203 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8204
8205         PR debug/47106
8206         PR debug/47402
8207         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8208         Adjust all users.  Pass FN to...
8209         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8210         fn argument.
8211         * ipa-struct-reorg.c: Adjust.
8212         * tree-dfa.c: Adjust.
8213         * tree-into-ssa.c: Adjust.
8214         * tree-sra.c: Adjust.
8215         * tree-ssa-alias.c: Adjust.
8216         * tree-ssa-live.c: Adjust.
8217         * tree-ssa.c: Adjust.
8218         * tree-ssanames.c: Adjust.
8219         * tree-tailcall.c: Adjust.
8220
8221 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8222
8223         PR debug/47106
8224         PR debug/47402
8225         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8226         Adjust all callers.
8227         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8228         * tree-flow-inline.h: Adjust.
8229         * gimple-pretty-print.c: Adjust.
8230         * tree-into-ssa.c: Adjust.
8231         * tree-ssa.c: Adjust.
8232         * cfgexpand.c: Adjust.
8233
8234 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8235
8236         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8237         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8238         (EXTRA_CONSTRAINT): Delete.
8239         * config/iq2000/constraints.md: New file.
8240         * config/iq2000/iq2000.md: Include it.
8241         (define_insn ""): Delete.
8242         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8243         unsupported constraint letters from patterns.
8244         (call_value, call_value_internal1): Likewise.
8245         (call_value_multiple_internal1): Likewise.
8246
8247 2011-02-15  Nick Clifton  <nickc@redhat.com>
8248
8249         * config/mn10300/mn10300.c: Include tm-constrs.h.
8250         (struct liw_data): New data structure describing an LIW candidate
8251         instruction.
8252         (extract_bundle): Use struct liw_data.  Allow small integer
8253         operands for some instructions.
8254         (check_liw_constraints): Use struct liw_data.  Remove swapped
8255         parameter.  Add comments describing the checks.  Fix bug when
8256         assigning the source of liw1 to the source of liw2.
8257         (liw_candidate): Delete.  Code moved into extract_bundle.
8258         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8259         before swapping.
8260         * config/mn10300/predicates.md (liw_operand): New predicate.
8261         Allows registers and small integer constants.
8262         * config/mn10300/constraints.md (O): New constraint.  Accetps
8263         integers in the range -8 to +7 inclusive.
8264         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8265         for moving a small integer into a register.  Give this alternative
8266         LIW attributes.
8267         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8268         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8269         using the J,K,L and M constraints,
8270         (liw): Remove SI mode on second operands to allow for HI and QI
8271         mode values.
8272         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8273         instruction.
8274
8275 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8276
8277         PR middle-end/47725
8278         * combine.c (cant_combine_insn_p): Check zero/sign extended
8279         hard registers.
8280
8281 2011-02-15  Richard Guenther  <rguenther@suse.de>
8282
8283         PR tree-optimization/47743
8284         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8285         for a non-type-compatible VN lookup bail out.
8286
8287 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8288
8289         * config/fr30/constraints.md: New file.
8290         * config/fr30/fr30.md: Include it.
8291         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8292         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8293         (EXTRA_CONSTRAINT): Delete.
8294
8295 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8296
8297         * config/frv/constraints.md: New file.
8298         * config/frv/predicates.md: Include it.
8299         * config/frv/frv.c (reg_class_from_letter): Delete.
8300         (frv_option_override): Don't initialize it.
8301         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8302         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8303         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8304         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8305         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8306         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8307         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8308         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8309         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8310         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8311         (REG_CLASS_FROM_CONSTRAINT): Delete.
8312
8313 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8314
8315         PR middle-end/47581
8316         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8317         if frame size is 0 in a leaf function.
8318
8319 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8320
8321         PR pch/14940
8322         * config/alpha/host-osf.c: New file.
8323         * config/alpha/x-osf: New file.
8324         * config.host (alpha*-dec-osf*): Use it.
8325
8326 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8327
8328         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8329         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8330         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8331         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8332         type to const_rtx.
8333         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8334
8335 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8336
8337         * config/stormy16/constraints.md: New file.
8338         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8339         Use satisfies_constraint_Q and satisfies_constraint_R.
8340         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8341         Delete.
8342         (xstormy16_legitiamte_address_p): Declare.
8343         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8344         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8345         (EXTRA_CONSTRAINT): Delete.
8346         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8347         Un-staticize.
8348         (xstormy16_extra_constraint_p): Delete.
8349
8350 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8351
8352         PR tree-optimization/46494
8353         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8354         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8355         (pass_rtl_loop_done): Add TODO_verify_flow.
8356         * fwprop.c (pass_rtl_fwprop): Likewise.
8357         * modulo-sched.c (pass_sms): Likewise.
8358         * tree-ssa-dom.c (pass_dominator): Likewise.
8359         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8360         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8361         (pass_tree_loop_done): Likewise.
8362         * tree-ssa-pre.c (execute_pre): Likewise.
8363         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8364         * tree-ssa-sink.c (pass_sink_code): Likewise.
8365         * tree-vrp.c (pass_vrp): Likewise.
8366
8367 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8368
8369         * config/v850/constraints.md: New file.
8370         * config/v850/v850.md: Include it.
8371         * config/v850/predicates.md (reg_or_0_operand): Use
8372         satisfies_constraint_G.
8373         (special_symbolref_operand): Use satisfies_constraint_K.
8374         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8375         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8376         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8377         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8378         (EXTRA_CONSTRAINT): Delete.
8379         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8380         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8381         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8382
8383 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8384
8385         PR target/47696
8386         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8387         description.
8388
8389 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8390
8391         * config/mcore/constraints.md: New file.
8392         * config/mcore/mcore.md: Include it.
8393         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8394         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8395         (REG_CLASS_FROM_LETTER): Delete.
8396         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8397         insn_const_int_ok_for_constraint.
8398         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8399         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8400         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8401         (EXTRA_CONSTRAINT): Delete.
8402
8403 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8404
8405         PR ada/41929
8406         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8407         (IS_SIGHANDLER): Define.
8408         (sparc64_is_sighandler): New function, split off from
8409         sparc64_fallback_frame_state.
8410         (sparc_is_sighandler): New function, split off from
8411         sparc_fallback_frame_state.
8412         (sparc64_fallback_frame_state): Merge with ...
8413         (sparc_fallback_frame_state): ... this into ...
8414         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8415         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8416         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8417         stack instead of hardcoded offsets.
8418
8419 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8420
8421         PR target/45808
8422         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8423
8424 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8425
8426         * configure: Regenerate.
8427
8428 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8429
8430         PR driver/45731
8431         * gcc.c (asm_options): Correct spec matching --target-help.
8432
8433 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8434
8435         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8436         to gimple call error.
8437
8438 2011-02-12  Mike Stump  <mikestump@comcast.net>
8439
8440         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8441         comments in backslash regions.
8442
8443 2011-02-12  Mike Stump  <mikestump@comcast.net>
8444             Jakub Jelinek  <jakub@redhat.com>
8445             Iain Sandoe  <iains@gcc.gnu.org>
8446
8447         PR target/47324
8448         * dwarf2out.c (output_cfa_loc): When required, apply the
8449         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8450         (output_loc_sequence): Likewise.
8451         (output_loc_operands_raw): Likewise.
8452         (output_loc_sequence_raw): Likewise.
8453         (output_cfa_loc): Likewise.
8454         (output_loc_list): Suppress register number adjustment when
8455         calling output_loc_sequence()
8456         (output_die): Likewise.
8457
8458 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8459
8460         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8461         Remove macros.
8462         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8463         xtensa_memory_move_cost): New functions.
8464         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8465
8466 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8467
8468         PR lto/47225
8469         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8470         in the current directory.
8471         * configure: Rebuilt.
8472
8473 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8474
8475         * config/darwin.c (darwin_override_options): Add a hunk missed
8476         from the commit of r168571.  Trim comment line lengths and
8477         correct indents of the preceding block.
8478
8479 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8480
8481         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8482         the switch.
8483
8484 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8485
8486         * common.opt (nostartfiles): New Driver option.
8487
8488 2011-02-11  Xinliang David Li  <davidxl@google.com>
8489
8490         PR tree-optimization/47707
8491         * tree-chrec.c (convert_affine_scev): Keep type precision.
8492
8493 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8494
8495         PR tree-optimization/47420
8496         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8497
8498 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8499
8500         PR rtl-optimization/47614
8501         * rtl.h (check_for_inc_dec): Declare.
8502         * dse.c (check_for_inc_dec): Externalize...
8503         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8504         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8505
8506 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8507
8508         PR driver/47678
8509         * gcc.c (main): Do not compile inputs if there were errors in
8510         option handling.
8511         * opts-common.c (read_cmdline_option): Check for wrong language
8512         after other error checks.
8513
8514 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8515
8516         * cgraph.c: Fix comment typos.
8517         * cgraph.h: Likewise.
8518         * cgraphunit.c: Likewise.
8519         * ipa-cp.c: Likewise.
8520         * ipa-inline.c: Likewise.
8521         * ipa-prop.c: Likewise.
8522         * ipa-pure-const.c: Likewise.
8523         * ipa-ref.c: Likewise.
8524         * ipa-reference.c: Likewise.
8525
8526 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8527
8528         PR debug/47684
8529         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8530
8531 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8532
8533         PR testsuite/47400
8534         * doc/sourcebuild.texi (Require Support): Document
8535         dg-require-ascii-locale.
8536
8537 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8538
8539         * doc/lto.texi (Write summary): Fix missing parentheses.
8540
8541 2011-02-10  DJ Delorie  <dj@redhat.com>
8542
8543         * config/m32c/m32c.c (m32c_option_override): Disable
8544         -fcombine-stack-adjustments until flag value tracking and compare
8545         optimization can be rewritten.
8546
8547 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8548
8549         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8550         PROCESSOR_POWER7.
8551         (PROCESSOR_DEFAULT64): Likewise.
8552
8553 2011-02-10  Richard Henderson  <rth@redhat.com>
8554
8555         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8556         change from 2011-02-03.
8557         * config/rx/rx.c (flags_from_code): Likewise.
8558         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8559         is valid, n/pz otherwise.
8560         (rx_select_cc_mode): Return CCmode if Y is not zero.
8561
8562 2011-02-10  Richard Guenther  <rguenther@suse.de>
8563
8564         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8565
8566 2011-02-10  Richard Guenther  <rguenther@suse.de>
8567
8568         PR tree-optimization/47677
8569         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8570
8571 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8572
8573         PR target/47665
8574         * combine.c (make_compound_operation): Only change shifts into
8575         multiplication for SCALAR_INT_MODE_P.
8576
8577 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8578
8579         PR testsuite/47622
8580         Revert
8581         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8582         PR debug/42631
8583         * web.c (entry_register): Don't clobber the number of the
8584         first uninitialized reference in used[].
8585
8586 2011-02-09  Richard Guenther  <rguenther@suse.de>
8587
8588         PR tree-optimization/47664
8589         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8590         all edges again.
8591
8592 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8593
8594         PR target/46481
8595         PR target/47032
8596         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8597         PROCESSOR_POWER7.
8598         (PROCESSOR_DEFAULT64): Same.
8599         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8600
8601 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8602
8603         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8604
8605 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8606
8607         PR middle-end/45505
8608         * tree-sra.c (struct access): New flags grp_scalar_read and
8609         grp_scalar_write.  Changed description of assignment read and write
8610         flags.
8611         (dump_access): Dump new flags, reorder all of them.
8612         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8613         to detect multiple scalar reads.
8614         (analyze_access_subtree): Use the new scalar read write flags instead
8615         of the old flags.  Adjusted comments.
8616
8617 2011-02-08  DJ Delorie  <dj@redhat.com>
8618
8619         PR target/47548
8620         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8621         patterns.
8622
8623 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8624
8625         * config/m68k/uclinux.opt: New.
8626         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8627
8628 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8629
8630         * config/cris/elf.opt (sim): New Driver option.
8631
8632 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8633
8634         * config/xtensa/elf.opt: New.
8635         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8636
8637 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8638
8639         * config/vax/elf.opt: New.
8640         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8641
8642 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8643
8644         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8645
8646 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8647
8648         * config/gnu-user.opt: New.
8649         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8650         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8651         *-*-uclinux*): Use gnu-user.opt.
8652
8653 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8654
8655         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8656         * config/i386/gnu.h (CPP_SPEC): Likewise.
8657
8658 2011-02-08  Ian Lance Taylor  <iant@google.com>
8659
8660         * common.opt (fcx-limited-range): Add SetByCombined flag.
8661         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8662         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8663         (fassociative-math, freciprocal-math): Likewise.
8664         (funsafe-math-optimizations): Likewise.
8665         * opth-gen.awk: Handle SetByCombined.
8666         * optc-gen.awk: Likewise.
8667         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8668         (set_unsafe_math_optimizations_flags): Likewise.
8669         * doc/options.texi (Option properties): Document SetByCombined.
8670
8671 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8672
8673         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8674         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8675         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8676         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8677         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8678
8679 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8680
8681         PR tree-optimization/46834
8682         PR tree-optimization/46994
8683         PR tree-optimization/46995
8684         * graphite-sese-to-poly.c (used_outside_reduction): New.
8685         (detect_commutative_reduction): Call used_outside_reduction.
8686         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8687         translate_scalar_reduction_to_array only when at least one
8688         loop-phi/close-phi tuple has been detected.
8689
8690 2011-02-08  Richard Guenther  <rguenther@suse.de>
8691
8692         PR middle-end/47639
8693         * tree-vect-generic.c (expand_vector_operations_1): Update
8694         stmts here ...
8695         (expand_vector_operations): ... not here.  Cleanup EH info
8696         and the CFG if required.
8697
8698 2011-02-08  Richard Guenther  <rguenther@suse.de>
8699
8700         PR tree-optimization/47641
8701         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8702         require type compatibility.
8703
8704 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8705
8706         * gimple-low.c (lower_function_body): Don't remove the location of
8707         the return statement here.
8708         (lower_gimple_return): Do it here instead but only if the return
8709         statement is actually used twice.
8710
8711 2011-02-08  Richard Guenther  <rguenther@suse.de>
8712
8713         PR tree-optimization/47632
8714         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8715         unused up_to_stmt parameter, return whether cfg-cleanup is
8716         necessary, remove EH info properly.
8717         (forward_propagate_into_gimple_cond): Adjust caller.
8718         (forward_propagate_into_cond): Likewise.
8719         (forward_propagate_comparison): Likewise.
8720         (tree_ssa_forward_propagate_single_use_vars): Make
8721         forward_propagate_comparison case similar to the two others.
8722
8723 2011-02-08  Nick Clifton  <nickc@redhat.com>
8724
8725         * config/mn10300/mn10300.opt (mliw): New command line option.
8726         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8727         (liw_bundling): New automaton.
8728         (liw): New attribute.
8729         (liw_op): New attribute.
8730         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8731         (movsi_internal): Add LIW attributes.
8732         (andsi3): Likewise.
8733         (iorsi3): Likewise.
8734         (xorsi3): Likewise.
8735         (addsi3): Separate register and immediate alternatives.
8736         Add LIW attributes.
8737         (subsi3): Likewise.
8738         (cmpsi): Likewise.
8739         (aslsi3): Likewise.
8740         (lshrsi3): Likewise.
8741         (ashrsi3): Likewise.
8742         (liw): New pattern.
8743         * config/mn10300/mn10300.c (liw_op_names): New
8744         (mn10300_print_operand): Handle 'W' operand descriptor.
8745         (extract_bundle): New function.
8746         (check_liw_constraints): New function.
8747         (liw_candidate): New function.
8748         (mn10300_bundle_liw): New function.
8749         (mn10300_reorg): New function.
8750         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8751         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8752         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8753         __LIW__ or __NO_LIW__.
8754         * doc/invoke.texi: Describe the -mliw command line option.
8755
8756 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8757
8758         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8759         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8760         pthread_mutex_unlock): Remove.
8761         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8762         * config/pa/t-pa64: Likewise.
8763         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8764         shared libc if not linking against libpthread.
8765         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8766
8767 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8768
8769         PR target/47558
8770         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8771         on 10.6 and later to ensure that we always use the unwinder from
8772         the system.  Only add -no_compact_unwind when tarteting darwin
8773         10.6 or later.
8774
8775 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8776
8777         PR target/46997
8778         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8779         (vec_interleave_lowv2sf): Ditto.
8780         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8781         (vec_extract_oddv2sf): Ditto.
8782
8783 2011-02-07  Mike Stump  <mikestump@comcast.net>
8784
8785         PR target/42333
8786         Add __ieee_divdc3 entry point.
8787         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8788         entry point.
8789         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8790         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8791         * config/darwin.c (darwin_rename_builtins): Add.
8792         * config/darwin-protos.h (darwin_rename_builtins): Add.
8793
8794 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8795
8796         PR target/47636
8797         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8798         for the condition.
8799
8800 2011-02-07  Mike Stump  <mikestump@comcast.net>
8801
8802         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8803
8804 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8805
8806         PR target/47534
8807         * config/avr/libgcc.S (exit): Move .endfunc
8808
8809 2011-02-07  Richard Guenther  <rguenther@suse.de>
8810
8811         PR tree-optimization/47615
8812         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8813         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8814         (run_scc_vn): Initialize it.
8815         (visit_reference_op_load): Use it.
8816         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8817
8818 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8819
8820         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8821         DImode trapping arithmetic libfuncs.
8822
8823 2011-02-07  Richard Guenther  <rguenther@suse.de>
8824
8825         PR tree-optimization/47621
8826         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8827         two duplicates ...
8828         (execute_update_addresses_taken): ... here.  Make it more
8829         conservative in what we accept.
8830
8831 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8832
8833         * config/sparc/freebsd.h (ASM_SPEC): Define.
8834         * config/sparc/vxworks.h (ASM_SPEC): Define.
8835
8836 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8837
8838         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8839
8840 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8841
8842         * doc/invoke.texi: Remove reference to compiler internals from
8843         user documentation.
8844
8845         * reg-notes.def: Remove REG_VALUE_PROFILE.
8846         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8847
8848 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8849
8850         PR middle-end/47610
8851         * varasm.c (default_section_type_flags): If decl is NULL,
8852         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8853
8854 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8855
8856         PR debug/42631
8857         * web.c (entry_register): Don't clobber the number of the
8858         first uninitialized reference in used[].
8859
8860 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8861
8862         PR tree-optimization/46194
8863         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8864         (build_classic_dist_vector_1): Do not represent classic distance
8865         vectors when the access functions are variating in different loops.
8866
8867 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8868
8869         * config/mips/iris6.opt: New.
8870         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8871
8872 2011-02-04  Richard Henderson  <rth@redhat.com>
8873             Steve Ellcey  <sje@cup.hp.com>
8874
8875         PR target/46997
8876         * config/ia64/predicates.md (mux1_brcst_element): New.
8877         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8878         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8879         (ia64_unpack_sign): New.
8880         (ia64_expand_unpack): Rewrite using new routines.
8881         (ia64_expand_widen_sum): Ditto.
8882         (ia64_expand_dot_prod_v8qi): Ditto.
8883         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8884         routines, add endian check.
8885         (pmpy2_even): Rename from pmpy2_r, add endian check.
8886         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8887         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8888         (vec_widen_smult_hi_v4hi): Ditto.
8889         (vec_widen_umult_lo_v4hi): Ditto.
8890         (vec_widen_umult_hi_v4hi): Ditto.
8891         (mulv2si3): Change endian checks.
8892         (sdot_prodv4hi): Rewrite with new calls.
8893         (udot_prodv4hi): New.
8894         (vec_pack_ssat_v4hi): Add endian check.
8895         (vec_pack_usat_v4hi): Ditto.
8896         (vec_pack_ssat_v2si): Ditto.
8897         (max1_even): Rename from max1_r, add endian check.
8898         (max1_odd): Rename from max1_l, add endian check.
8899         (*mux1_rev): Format change.
8900         (*mux1_mix): Ditto.
8901         (*mux1_shuf): Ditto.
8902         (*mux1_alt): Ditto.
8903         (*mux1_brcst_v8qi): Use new predicate.
8904         (vec_extract_evenv8qi): Remove endian check.
8905         (vec_extract_oddv8qi): Ditto.
8906         (vec_interleave_lowv4hi): Format change.
8907         (vec_interleave_highv4hi): Ditto.
8908         (mix2_even): Rename from mix2_r, add endian check.
8909         (mix2_odd): Rename from mux2_l, add endian check.
8910         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8911         (vec_extract_evenodd_helper): Format change.
8912         (vec_extract_evenv4hi): Remove endian check.
8913         (vec_extract_oddv4hi): Remove endian check.
8914         (vec_interleave_lowv2si): Format change.
8915         (vec_interleave_highv2si): Format change.
8916         (vec_initv2si): Remove endian check.
8917         (vecinit_v2si): Add endian check.
8918         (reduc_splus_v2sf): Add endian check.
8919         (reduc_smax_v2sf): Ditto.
8920         (reduc_smin_v2sf): Ditto.
8921         (vec_initv2sf): Remove endian check.
8922         (fpack): Add endian check.
8923         (fswap): Add endian check.
8924         (vec_interleave_highv2sf): Add endian check.
8925         (vec_interleave_lowv2sf): Add endian check.
8926         (fmix_lr): Add endian check.
8927         (vec_setv2sf): Format change.
8928         (*vec_extractv2sf_0_be): Use shift to extract operand.
8929         (*vec_extractv2sf_1_be): New.
8930         (vec_pack_trunc_v4hi): Add endian check.
8931         (vec_pack_trunc_v2si): Format change.
8932
8933 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8934
8935         PR inline-asm/23200
8936         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8937         do bb, locus and block comparison and disallow loads if it is not set.
8938         (stmt_is_replaceable_p): New function.
8939         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8940         callers.
8941         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8942         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8943         SSA_NAME_DEF_STMT.
8944         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8945
8946 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8947
8948         * config/rs6000/xilinx.opt: New.
8949         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8950
8951 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8952
8953         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8954
8955 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8956
8957         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8958         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8959         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8960         secondary_reload_info, xtensa_secondary_reload): Remove.
8961         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8962         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8963         (xtensa_preferred_reload_class): Make static. Change return and
8964         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8965         Use CONST_DOUBLE_P predicate.
8966         (xtensa_preferred_output_reload_class): New function.
8967         (xtensa_secondary_reload): Make static.
8968
8969 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8970
8971         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8972         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8973         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8974
8975 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8976
8977         PR middle-end/31490
8978         * output.h (SECTION_RELRO): Define.
8979         (SECTION_MACH_DEP): Adjust.
8980         (get_variable_section): New prototype.
8981         * varpool.c (varpool_finalize_named_section_flags): New function.
8982         (varpool_assemble_pending_decls): Call it.
8983         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8984         * cgraphunit.c (cgraph_output_in_order): Call
8985         varpool_finalize_named_section_flags.
8986         * varasm.c (get_section): Allow section flags conflicts between
8987         relro and read-only sections if the section hasn't been declared yet.
8988         Set SECTION_OVERRIDE after diagnosing section type conflict.
8989         (get_variable_section): No longer static.
8990         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8991         readonly sections that need relocations.
8992         (decl_readonly_section_1): New function.
8993         (decl_readonly_section): Use it.
8994
8995         Revert:
8996         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8997                     Steve Ellcey  <sje@cup.hp.com>
8998
8999         PR middle-end/31490
9000         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9001         if section attribute used.
9002
9003 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9004
9005         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9006         * config/darwin.c (SECTION_NO_ANCHOR): Define.
9007         (darwin_init_sections): Remove assertion.
9008
9009 2011-02-03  Nick Clifton  <nickc@redhat.com>
9010
9011         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9012         lt and ge.
9013         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9014         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9015         instead of "n" and "pz".
9016         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9017         CC_FLAG_S.
9018
9019 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9020
9021         PR target/47312
9022         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9023         fma, expand FMA_EXPR as fma{,f,l} call.
9024
9025         PR lto/47274
9026         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9027         copy them into a unsigned char variable and pass address of it to
9028         lto_output_data_stream.
9029
9030         PR target/47564
9031         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9032         around backend_init_target and lang_dependent_init_target calls.
9033         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9034         (verify_cgraph_node): Don't call set_cfun here.  Use
9035         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9036         Set error_found for incorrectly represented calls to thunks.
9037
9038 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9039
9040         PR debug/43092
9041         PR rtl-optimization/43494
9042         * rtl.h (for_each_inc_dec_fn): New type.
9043         (for_each_inc_dec): Declare.
9044         * rtlanal.c (struct for_each_inc_dec_ops): New type.
9045         (for_each_inc_dec_find_inc_dec): New fn.
9046         (for_each_inc_dec_find_mem): New fn.
9047         (for_each_inc_dec): New fn.
9048         * dse.c (struct insn_size): Remove.
9049         (replace_inc_dec, replace_inc_dec_mem): Remove.
9050         (emit_inc_dec_insn_before): New fn.
9051         (check_for_inc_dec): Use it, along with for_each_inc_dec.
9052         (canon_address): Pass mem modes to cselib_lookup.
9053         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
9054         (cselib_lookup_from_insn): Likewise.
9055         (cselib_subst_to_values): Likewise.
9056         * cselib.c (find_slot_memmode): New var.
9057         (cselib_find_slot): New fn.  Use it instead of
9058         htab_find_slot_with_hash everywhere.
9059         (entry_and_rtx_equal_p): Use find_slot_memmode.
9060         (autoinc_split): New fn.
9061         (rtx_equal_for_cselib_p): Rename and implement in terms of...
9062         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
9063         Deal with autoinc.  Special-case recursion into MEMs.
9064         (cselib_hash_rtx): Likewise.
9065         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
9066         address and MEM modes.
9067         (cselib_subst_to_values): Add memmode, pass it on.
9068         Deal with autoinc.
9069         (cselib_lookup): Add memmode argument, pass it on.
9070         (cselib_lookup_from_insn): Add memmode.
9071         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9072         (struct cselib_record_autoinc_data): New.
9073         (cselib_record_autoinc_cb): New fn.
9074         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
9075         mode to cselib_lookup.  Reset autoinced REGs here instead of...
9076         (cselib_process_insn): ... here.
9077         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9078         to cselib_lookup.
9079         (add_uses): Likewise, also to cselib_subst_to_values.
9080         (add_stores): Likewise.
9081         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
9082         cselib_subst_to_values.
9083         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
9084         * gcse.c (do_local_cprop): Adjusted.
9085         * postreload.c (reload_cse_simplify_set): Adjusted.
9086         (reload_cse_simplify_operands): Adjusted.
9087         * sel-sched-dump (debug_mem_addr_value): Pass mode.
9088
9089 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9090
9091         PR tree-optimization/45122
9092         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9093         unsafe assumptions when there's more than one loop exit.
9094
9095 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9096
9097         PR target/47272
9098         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9099         Document using vector double with the load/store builtins, and
9100         that the load/store builtins always use Altivec instructions.
9101
9102         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9103         to use altivec memory instructions, even on VSX.
9104         (vector_altivec_store_<mode>): Ditto.
9105
9106         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9107         function.
9108
9109         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9110         V2DF, V2DI support to load/store overloaded builtins.
9111
9112         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9113         altivec load/store builtins for V2DF/V2DI types.
9114
9115         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9116         set avoid indexed addresses on power6 if -maltivec.
9117         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9118         vector_altivec_load/vector_altivec_store builtins.
9119         (altivec_expand_st_builtin): Ditto.
9120         (altivec_expand_builtin): Add VSX memory builtins.
9121         (rs6000_init_builtins): Add V2DI types to internal types.
9122         (altivec_init_builtins): Add support for V2DF/V2DI altivec
9123         load/store builtins.
9124         (rs6000_address_for_altivec): Insure memory address is appropriate
9125         for Altivec.
9126
9127         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9128         vec_vsx_ld and vec_vsx_st.
9129         (vsx_store_<mode>): Ditto.
9130
9131         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9132         variables to hold long long types for VSX vector memory builtins.
9133         (RS6000_BTI_unsigned_long_long): Ditto.
9134         (long_long_integer_type_internal_node): Ditti.
9135         (long_long_unsigned_type_internal_node): Ditti.
9136
9137         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9138         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9139         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9140
9141         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9142         short cuts.
9143         (vec_vsx_st): Ditto.
9144
9145 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9146
9147         * config/pa/pa-hpux10.opt: New.
9148         * config/hpux11.opt (pthread): New Driver option.
9149         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9150         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9151
9152 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9153
9154         * config/ia64/vms.opt: New.
9155         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9156
9157 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9158
9159         PR target/47580
9160         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9161         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9162         generator functions.
9163         (vsx_floatuns<VSi><mode>2): Ditto.
9164         (vsx_fix_trunc<mode><VSi>2): Ditto.
9165         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9166
9167 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9168
9169         * config/i386/djgpp.opt (posix): New Driver option.
9170
9171 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9172
9173         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9174         Move to the unsupported targets list.
9175
9176 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9177
9178         PR rtl-optimization/47525
9179         * df-scan.c: Update copyright years.
9180         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9181         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9182
9183 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9184
9185         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9186         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9187         (ASM_OUTPUT_ASCII): Remove.
9188         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9189
9190 2011-02-02  Jeff Law  <law@redhat.com>
9191
9192         PR middle-end/47543
9193         * reload.c (find_reloads_address): Handle reg+d address where both
9194         components are invalid by reloading the entire address.
9195
9196 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9197             Richard Guenther  <rguenther@suse.de>
9198
9199         PR tree-optimization/40979
9200         PR bootstrap/47044
9201         * passes.c (init_optimization_passes): After LIM call copy_prop
9202         and DCE to clean up.
9203         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9204
9205 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9206
9207         PR tree-optimization/47576
9208         PR tree-optimization/47555
9209         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9210         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9211         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9212         * tree-scalar-evolution.c (follow_ssa_edge): Use
9213         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9214
9215 2011-02-02  Richard Guenther  <rguenther@suse.de>
9216
9217         PR tree-optimization/47566
9218         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9219
9220 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9221
9222         PR debug/47106
9223         PR debug/47402
9224         * tree-inline.c (declare_return_variable): Remove unused caller
9225         variable.
9226
9227         PR debug/47106
9228         PR debug/47402
9229         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9230         * cfgexpand.c (account_used_vars_for_block): Use them.
9231         * tree-nrv.c (tree_nrv): Likewise.
9232         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9233         (dump_scope_block): Likewise.
9234         (remove_unused_locals): Likewise.
9235
9236         PR debug/47106
9237         PR debug/47402
9238         * tree-inline.c (declare_return_variable): Add result decl to
9239         local decls only once.
9240         * gimple-low.c (record_vars_into): Mark newly-created variables
9241         as referenced.
9242
9243 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9244
9245         PR debug/47498
9246         PR debug/47501
9247         PR debug/45136
9248         PR debug/45130
9249         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9250         debug insns.
9251         (no_real_insns_p, schedule_block, set_priorities): Drop special
9252         treatment of boundary debug insns.
9253         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9254         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9255         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9256         (BOUNDARY_DEBUG_INSN_P): Likewise.
9257         (SCHEDULE_DEBUG_INSN_P): Likewise.
9258         * sched-rgn.c (init_ready_list): Drop special treatment of
9259         boundary debug insns.
9260         * final.c (rest_of_clean_state): Clear notes' BB.
9261
9262 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9263
9264         * config/openbsd.opt (assert=): New Driver option.
9265
9266 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9267
9268         * config/i386/nto.opt: New.
9269         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9270
9271 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9272
9273         * config/i386/netware.opt: New.
9274         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9275
9276 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9277
9278         * config/interix.opt (posix): New Driver option.
9279
9280 2011-02-01  DJ Delorie  <dj@redhat.com>
9281
9282         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9283
9284         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9285         class for A0/A1.
9286
9287 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9288
9289         PR tree-optimization/47561
9290         * toplev.c (process_options): Print the Graphite flags.  Add
9291         flag_loop_flatten to the list of options requiring Graphite.
9292
9293 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9294
9295         * config/i386/cygming.opt (posix): New Driver option.
9296
9297 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9298
9299         * config/arm/vxworks.opt: New.
9300         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9301
9302 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9303
9304         * config/alpha/elf.opt: New.
9305         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9306         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9307
9308 2011-02-01  Richard Guenther  <rguenther@suse.de>
9309
9310         PR tree-optimization/47559
9311         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9312         store-motion on references that can throw.
9313
9314 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9315
9316         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9317         * tree-pass.h (TDF_CSELIB): New macro.
9318         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9319         cselib_lookup): Check for it rather than for TDF_DETAILS.
9320
9321 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9322
9323         PR driver/47547
9324         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9325         is HOST_BIT_BUCKET.
9326
9327         * opts.c (finish_options): Don't add x_aux_base_name if it is
9328         HOST_BIT_BUCKET.
9329
9330 2011-02-01  Richard Guenther  <rguenther@suse.de>
9331
9332         PR tree-optimization/47555
9333         Revert
9334         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9335
9336         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9337
9338 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9339
9340         PR gcc/46692
9341         * config/lm32/t-lm32: Add multilib for all CPU options.
9342
9343 2011-02-01  Richard Guenther  <rguenther@suse.de>
9344
9345         PR tree-optimization/47541
9346         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9347         sure to have a field at offset zero.
9348
9349 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9350
9351         * config/arc/arc.opt (EB, EL): New Driver options.
9352
9353 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9354
9355         * config/alpha/osf5.opt: New.
9356         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9357
9358 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9359
9360         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9361
9362 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9363
9364         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9365         -floop-interchange.
9366         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9367         is an alias of -floop-interchange and that it requires the
9368         Graphite infrastructure.
9369         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9370         flag_loop_interchange based on the value of flag_tree_loop_linear.
9371
9372 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9373             Richard Guenther  <rguenther@suse.de>
9374
9375         PR tree-optimization/47538
9376         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9377         type instead of r1type, except for comparisons.  For right
9378         shifts and comparisons punt if there are mismatches in
9379         sizetype vs. non-sizetype types.
9380
9381 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9382
9383         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9384         avx_runtime.
9385
9386 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9387
9388         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9389         version number.
9390         * configure: Regenerate.
9391
9392 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9393
9394         * configure.ac (gcc_cv_ld_static_option): Define.
9395         (gcc_cv_ld_dynamic_option): Define.
9396         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9397         instead.
9398         (HAVE_LD_STATIC_DYNAMIC): Update message.
9399         (LD_STATIC_OPTION): Define.
9400         (LD_DYNAMIC_OPTION): Define.
9401         * configure: Regenerate.
9402         * config.in: Regenerate.
9403         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9404         HAVE_LD_STATIC_DYNAMIC]: Use them.
9405
9406 2011-01-31  Nick Clifton  <nickc@redhat.com>
9407
9408         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9409         registers inside interrupt handlers if the handler is not a leaf
9410         function.
9411
9412 2011-01-31  Nick Clifton  <nickc@redhat.com>
9413
9414         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9415         reg_renumber returning an INVALID_REGNUM.
9416
9417 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9418
9419         PR libgcj/44341
9420         * doc/install.texi: Document host options discarded when cross
9421         configuring target libraries.
9422
9423 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9424
9425         Reverted:
9426         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9427         PR debug/45136
9428         PR debug/45130
9429         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9430         debug insns.
9431         (no_real_insns_p, schedule_block, set_priorities): Drop special
9432         treatment of boundary debug insns.
9433         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9434         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9435         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9436         (BOUNDARY_DEBUG_INSN_P): Likewise.
9437         (SCHEDULE_DEBUG_INSN_P): Likewise.
9438         * sched-rgn.c (init_ready_list): Drop special treatment of
9439         boundary debug insns.
9440         * final.c (rest_of_clean-state): Clear notes' BB.
9441
9442 2011-01-31  Alan Modra  <amodra@gmail.com>
9443
9444         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9445         toc relative expressions as we do in print_operand_address.
9446
9447 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9448
9449         * doc/extend.texi: Follow spelling conventions.
9450         * doc/invoke.texi: Fix a typo.
9451
9452 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9453
9454         * config/hpux11.opt: New.
9455         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9456         ia64*-*-hpux*): Use hpux11.opt.
9457
9458 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9459
9460         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9461         to tmake_file.
9462
9463 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9464
9465         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9466         support sites.
9467
9468 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9469
9470         * doc/install.texi (Binaries): Remove outdated reference for
9471         Motorola 68HC11/68HC12 downloads.
9472
9473 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9474
9475         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9476         Drepper's paper.
9477
9478 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9479
9480         PR bootstrap/47147
9481         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9482         used by NetBSD.
9483
9484 2011-01-28  Ahmad Sharif  <asharif@google.com>
9485
9486         * value-prof.c (check_counter): Corrected error message.
9487
9488 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9489
9490         * config/arm/arm.c (arm_legitimize_reload_address): New.
9491         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9492         arm_legitimize_reload_address.
9493         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9494
9495 2011-01-28  Ian Lance Taylor  <iant@google.com>
9496
9497         * godump.c (go_define): Ignore macros whose definitions include
9498         two adjacent operands.
9499
9500 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9501
9502         PR target/42894
9503         * varasm.c (force_const_mem): Store copy of x in desc->constant
9504         instead of x itself.
9505         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9506         itself into REG_EQUAL note.
9507
9508 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9509
9510         * config/freebsd.opt (posix, rdynamic): New Driver options.
9511
9512 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9513
9514         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9515         -Bstatic/-Bdynamic.
9516         * configure: Regenerate.
9517
9518 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9519
9520         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9521         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9522
9523 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9524
9525         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9526         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9527         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9528         (s390_preferred_reload_class): Make static. Change return and
9529         'rclass' argument type to reg_class_t.
9530
9531 2011-01-27  Jan Hubicka  <jh@suse.cz>
9532
9533         PR middle-end/46949
9534         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9535         (process_function_and_variable_attributes): Check defined weakrefs.
9536
9537 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9538
9539         PR tree-optimization/47228
9540         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9541         build_ref_for_offset.
9542
9543 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9544
9545         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9546
9547 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9548
9549         PR rtl-optimization/46856
9550         * postreload.c (reload_combine_recognize_const_pattern): Do not
9551         separate cc0 setter and user on cc0 targets.
9552
9553 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9554
9555         PR c/43082
9556         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9557         passed a VOID_TYPE expression, immediately emit an error and
9558         return error_mark_node.
9559
9560 2011-01-26  Jeff Law  <law@redhat.com>
9561
9562         PR rtl-optimization/47464
9563         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9564         rather than may_trap_p as needed.
9565
9566 2011-01-26  DJ Delorie  <dj@redhat.com>
9567
9568         PR rtl-optimization/46878
9569         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9570         setter/user dependency as well.
9571
9572 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9573
9574         PR rtl-optimization/44469
9575         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9576         after removing trivially dead basic blocks.
9577
9578 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9579
9580         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9581         * config/frv/frv.h (LINK_SPEC): Likewise.
9582         * config/i386/netware.h (LINK_SPEC): Likewise.
9583         * config/m68k/linux.h (ASM_SPEC): Likewise.
9584         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9585         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9586         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9587         * config/sparc/linux.h (ASM_SPEC): Likewise.
9588         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9589         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9590
9591 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9592
9593         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9594         * config/frv/frv.h (ASM_SPEC): Likewise.
9595         * config/m68k/linux.h (ASM_SPEC): Likewise.
9596         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9597         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9598         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9599         * config/sparc/linux.h (ASM_SPEC): Likewise.
9600         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9601         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9602
9603 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9604
9605         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9606         * config/frv/frv.h (LINK_SPEC): Likewise.
9607         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9608
9609 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9610
9611         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9612         * config/frv/frv.h (ASM_SPEC): Likewise.
9613         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9614         * config/m68k/linux.h (ASM_SPEC): Likewise.
9615         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9616         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9617         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9618         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9619         * config/sparc/linux.h (ASM_SPEC): Likewise.
9620         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9621         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9622         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9623
9624 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9625
9626         PR target/46997
9627         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9628         (*mux2): Ditto.
9629         (vec_extract_evenodd_help): Ditto.
9630         (vec_extract_evenv4hi): Ditto.
9631         (vec_extract_oddv4hi): Ditto.
9632         (vec_interleave_lowv2si): Ditto.
9633         (vec_interleave_highv2si): Ditto.
9634         (vec_extract_evenv2si): Ditto.
9635         (vec_extract_oddv2si: Ditto.
9636         (vec_pack_trunc_v2si): Ditto.
9637
9638 2011-01-22  Jan Hubicka  <jh@suse.cz>
9639
9640         PR target/47237
9641         * cgraph.h (cgraph_local_info): New field can_change_signature.
9642         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9643         signature can change.
9644         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9645         can change.
9646         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9647         (cgraph_function_versioning): We can not change signature of functions
9648         that don't allow that.
9649         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9650         (lto_input_node): Likewise.
9651         * ipa-inline.c (compute_inline_parameters): Compute
9652         local.can_change_signature.
9653         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9654         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9655         functions that can not change signature.
9656         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9657         init_cumulative_args): Do not use local calling conventions
9658         for functions that can not change signature.
9659
9660 2011-01-22  Jan Hubicka  <jh@suse.cz>
9661
9662         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9663
9664 2011-01-26  Richard Guenther  <rguenther@suse.de>
9665
9666         PR tree-optimization/47190
9667         * cgraphunit.c (process_common_attributes): New function.
9668         (process_function_and_variable_attributes): Use it.
9669
9670 2011-01-26  Richard Guenther  <rguenther@suse.de>
9671
9672         PR lto/47423
9673         * cgraphbuild.c (record_eh_tables): Record reference to personality
9674         function.
9675
9676 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9677
9678         PR debug/45454
9679         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9680         non-debug insns from moving up.
9681
9682 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9683
9684         PR target/40125
9685         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9686         t-dlldir{,-x} fragment for build and add it to tmake_file.
9687         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9688         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9689         * config/i386/t-dlldir: New file.
9690         (SHLIB_DLLDIR): Define.
9691         * config/i386/t-dlldir-x: New file.
9692         (SHLIB_DLLDIR): Define.
9693         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9694         (SHLIB_INSTALL): Use it.
9695
9696 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9697
9698         PR target/47246
9699         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9700         lower bound of the allowed Thumb-2 coprocessor load/store
9701         index range to -256. Add explaining comment.
9702
9703 2011-01-25  Ian Lance Taylor  <iant@google.com>
9704
9705         * godump.c (go_define): Improve lexing of macro expansion to only
9706         accept expressions which match Go spec.
9707
9708 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9709
9710         PR c++/43601
9711         * tree.c (handle_dll_attribute): Handle it.
9712         * doc/extend.texi (@item dllexport): Mention it.
9713         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9714
9715 2011-01-25  Ian Lance Taylor  <iant@google.com>
9716
9717         PR tree-optimization/26854
9718         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9719         (decl_jump_unsafe): Move higher in file, with no other change.
9720         (bind): Set has_jump_unsafe_decl if appropriate.
9721         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9722         (check_earlier_gotos): Likewise.
9723         (c_check_switch_jump_warnings): Likewise.
9724
9725 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9726
9727         * doc/invoke.texi (Warning Options): Add missing hyphen.
9728         (-fprofile-dir): Minor grammatical fixes.
9729         (-fbranch-probabilities): Likewise.
9730
9731 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9732
9733         PR debug/45136
9734         PR debug/45130
9735         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9736         debug insns.
9737         (no_real_insns_p, schedule_block, set_priorities): Drop special
9738         treatment of boundary debug insns.
9739         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9740         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9741         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9742         (BOUNDARY_DEBUG_INSN_P): Likewise.
9743         (SCHEDULE_DEBUG_INSN_P): Likewise.
9744         * sched-rgn.c (init_ready_list): Drop special treatment of
9745         boundary debug insns.
9746         * final.c (rest_of_clean-state): Clear notes' BB.
9747
9748 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9749
9750         * Makefile.in (LAMBDA_H): Removed.
9751         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9752         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9753         lambda-trans.o, and tree-loop-linear.o.
9754         (lto-symtab.o): Remove dependence on LAMBDA_H.
9755         (tree-loop-linear.o): Remove rule.
9756         (lambda-mat.o): Same.
9757         (lambda-trans.o): Same.
9758         (lambda-code.o): Same.
9759         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9760         (tree-vect-slp.o): Same.
9761         * hwint.h (gcd): Moved here.
9762         (least_common_multiple): Same.
9763         * lambda-code.c: Removed.
9764         * lambda-mat.c: Removed.
9765         * lambda-trans.c: Removed.
9766         * lambda.h: Removed.
9767         * tree-loop-linear.c: Removed.
9768         * lto-symtab.c: Do not include lambda.h.
9769         * omega.c (gcd): Removed.
9770         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9771         * tree-data-ref.c (print_lambda_vector): Moved here.
9772         (lambda_vector_copy): Same.
9773         (lambda_matrix_copy): Same.
9774         (lambda_matrix_id): Same.
9775         (lambda_vector_first_nz): Same.
9776         (lambda_matrix_row_add): Same.
9777         (lambda_matrix_row_exchange): Same.
9778         (lambda_vector_mult_const): Same.
9779         (lambda_vector_negate): Same.
9780         (lambda_matrix_row_negate): Same.
9781         (lambda_vector_equal): Same.
9782         (lambda_matrix_right_hermite): Same.
9783         * tree-data-ref.h: Do not include lambda.h.
9784         (lambda_vector): Moved here.
9785         (lambda_matrix): Same.
9786         (dependence_level): Same.
9787         (lambda_transform_legal_p): Removed declaration.
9788         (lambda_collect_parameters): Same.
9789         (lambda_compute_access_matrices): Same.
9790         (lambda_vector_gcd): Same.
9791         (lambda_vector_new): Same.
9792         (lambda_vector_clear): Same.
9793         (lambda_vector_lexico_pos): Same.
9794         (lambda_vector_zerop): Same.
9795         (lambda_matrix_new): Same.
9796         * tree-flow.h (least_common_multiple): Removed declaration.
9797         * tree-parloops.c (lambda_trans_matrix): Moved here.
9798         (LTM_MATRIX): Same.
9799         (LTM_ROWSIZE): Same.
9800         (LTM_COLSIZE): Same.
9801         (LTM_DENOMINATOR): Same.
9802         (lambda_trans_matrix_new): Same.
9803         (lambda_matrix_vector_mult): Same.
9804         (lambda_transform_legal_p): Same.
9805         * tree-pass.h (pass_linear_transform): Removed declaration.
9806         * tree-ssa-loop.c (tree_linear_transform): Removed.
9807         (gate_tree_linear_transform): Removed.
9808         (pass_linear_transform): Removed.
9809         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9810         flag_loop_interchange.
9811
9812 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9813
9814         PR tree-optimization/47265
9815         PR tree-optimization/47443
9816         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9817         if name still has some uses.
9818
9819 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9820
9821         PR tree-optimization/47382
9822         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9823         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9824
9825 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9826
9827         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9828         sjlj_except_unwind_info.
9829
9830 2011-01-25  Richard Guenther  <rguenther@suse.de>
9831
9832         PR tree-optimization/47426
9833         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9834         visible functions results escape.
9835
9836 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9837
9838         PR target/45701
9839         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9840         (arm_get_frame_offsets): Use it.
9841
9842 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9843             Jakub Jelinek  <jakub@redhat.com>
9844
9845         PR tree-optimization/47271
9846         * tree-if-conv.c (bb_postdominates_preds): New.
9847         (if_convertible_bb_p): Call bb_postdominates_preds.
9848         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9849         (predicate_scalar_phi): Call bb_postdominates_preds.
9850
9851 2011-01-25  Nick Clifton  <nickc@redhat.com>
9852
9853         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9854         * config/rx/rx.c (rx_function_value): Likewise.
9855         (rx_promote_function_mode): Likewise.
9856         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9857         in order to make it legitimate.
9858         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9859         make sure that the first operand is the same as the result register.
9860         (addsi3_unspec): Delete.
9861         (subdi3): Do not accept immediate operands.
9862         (subdi3_internal): Likewise.
9863
9864 2011-01-25  Jeff Law  <law@redhat.com>
9865
9866         PR rtl-optimization/37273
9867         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9868         handle them like argument loads from stack slots.  Do not double
9869         count memory for memory constants and argument loads from stack slots.
9870
9871 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9872
9873         PR tree-optimization/47427
9874         PR tree-optimization/47428
9875         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9876         coalesce if the new root var would be TREE_READONLY.
9877
9878 2011-01-25  Richard Guenther  <rguenther@suse.de>
9879
9880         PR middle-end/47414
9881         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9882         correct type for TBAA.
9883
9884 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9885
9886         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9887         (close_phi_written_to_memory): Call for_each_index with
9888         dr_indices_valid_in_loop.
9889
9890 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9891
9892         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9893         when it is initialized.
9894
9895 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9896
9897         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9898         call to graphite_find_data_references_in_stmt.
9899         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9900         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9901         call to graphite_find_data_references_in_stmt.
9902         (analyze_drs_in_stmts): Same.
9903         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9904         in which the scalar analysis of indices is performed.
9905         (create_data_ref): Same.  Update call to dr_analyze_indices.
9906         (find_data_references_in_stmt): Update call to create_data_ref.
9907         (graphite_find_data_references_in_stmt): Same.
9908         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9909         declaration.
9910         (create_data_ref): Same.
9911         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9912         call to create_data_ref.
9913
9914 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9915
9916         * graphite-sese-to-poly.c (build_poly_scop): Move
9917         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9918
9919 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9920
9921         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9922         VAR_DECL, PARM_DECL, and RESULT_DECL.
9923
9924 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9925
9926         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9927         in a reduction PBB.
9928         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9929         that have already been marked as PBB_IS_REDUCTION.
9930
9931 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9932
9933         * graphite-scop-detection.c (same_close_phi_node): New.
9934         (remove_duplicate_close_phi): New.
9935         (make_close_phi_nodes_unique): New.
9936         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9937
9938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9939
9940         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9941         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9942         of both data references to be the same.
9943
9944 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9945
9946         * graphite-dependences.c (build_lexicographical_constraint): Remove
9947         the gdim parameter.
9948         (build_lexicographical_constraint): Adjust call to
9949         ppl_powerset_is_empty.
9950         (dependence_polyhedron): Same.
9951         (graphite_legal_transform_dr): Same.
9952         (graphite_carried_dependence_level_k): Same.
9953         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9954         parameter.
9955         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9956
9957 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9958
9959         * graphite-sese-to-poly.c
9960         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9961         (close_phi_written_to_memory): New.
9962         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9963         and unshare_expr.
9964
9965 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9966
9967         * doc/install.texi: Update the expected version number of PPL to 0.11.
9968         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9969         #if PPL_VERSION_MINOR < 11.
9970
9971 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9972
9973         * graphite-dependences.c: Include graphite-cloog-util.h.
9974         (new_poly_ddr): Inlined into dependence_polyhedron.
9975         (free_poly_ddr): Moved close by new_poly_ddr.
9976         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9977         Early return NULL when ppl_powerset_is_empty returns true.
9978         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9979         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9980         (graphite_legal_transform_dr): Call new_poly_ddr.
9981         (graphite_carried_dependence_level_k): Same.
9982         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9983         (dot_transformed_deps_stmt_1): Removed.
9984         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9985         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9986         (dot_deps_1): Call dot_deps_2.
9987         * Makefile.in (graphite-dependences.o): Add missing dependence on
9988         graphite-cloog-util.h.
9989
9990 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9991
9992         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9993         (build_lexicographical_constraint): Same.
9994         (dependence_polyhedron_1): Same.
9995         (graphite_legal_transform_dr): Same.
9996         (graphite_carried_dependence_level_k): Same.
9997         * graphite-ppl.c (ppl_powerset_is_empty): New.
9998         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9999         * tree-data-ref.c (dump_data_reference): Print the basic block index.
10000
10001 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10002
10003         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10004         the "a followed by b" relation and document it.
10005
10006 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10007
10008         * graphite-dependences.c (build_lexicographical_constraint): Stop the
10009         iteration when the bag of constraints is empty.
10010
10011 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10012
10013         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10014
10015 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10016
10017         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10018         nest and two loop depths as parameters.
10019         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10020         lst_perfect_nestify.
10021
10022 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10023
10024         * graphite-dependences.c (print_pddr): Call
10025         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10026
10027 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10028
10029         * graphite-ppl.c (debug_gmp_value): New.
10030         * graphite-ppl.h (debug_gmp_value): Declared.
10031
10032 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
10033
10034         * doc/install.texi: Document availability of cloog-0.16.
10035
10036 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
10037
10038         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10039         invalid postdominance info.
10040
10041 2011-01-24  Jan Hubicka  <jh@suse.cz>
10042
10043         PR c/21659
10044         * doc/extend.texi (weak pragma): Drop claim that it must
10045         appear before definition.
10046         * varasm.c (merge_weak, declare_weak): Only sanity check
10047         that DECL is not output at a time it is declared weak.
10048
10049 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
10050
10051         * machmode.def: Fixed comments.
10052
10053 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
10054
10055         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10056
10057 2011-01-24  Paul Koning  <ni1d@arrl.net>
10058
10059         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10060         WORDS_BIG_ENDIAN.
10061
10062 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10063
10064         PR target/46519
10065         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10066         (block_info): Add scanned and prev.
10067         (move_or_delete_vzeroupper_2): Return if the basic block
10068         has been scanned and the upper 128bit state is unchanged
10069         from the last scan.
10070         (move_or_delete_vzeroupper_1): Return true if the exit
10071         state is changed.
10072         (move_or_delete_vzeroupper): Visit basic blocks using the
10073         work-list based algorithm based on vt_find_locations in
10074         var-tracking.c.
10075
10076         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10077
10078 2011-01-24  Nick Clifton  <nickc@redhat.com>
10079
10080         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10081         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10082         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
10083         then define __v850e1__.
10084         * doc/invoke.texi: Document -mv850es.
10085
10086 2011-01-24  Richard Henderson  <rth@redhat.com>
10087
10088         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10089         compound unordered comparisons.
10090         * config/rx/rx.c (rx_split_fp_compare): Remove.
10091         * config/rx/rx-protos.h: Update.
10092         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10093         (cbranchsf4): Don't call rx_split_fp_compare.
10094         (*cbranchsf4): Use rx_split_cbranch.
10095         (*cmpsf): Don't accept "i" constraint.
10096         (*conditional_branch): Only valid after reload.
10097         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
10098
10099 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10100
10101         PR target/47385
10102         * config/rs6000/altivec.md (vector constant splitters): Add
10103         support for creating vector single precision constants if -mvsx is
10104         used and we would create the constant using Altivec primitives.
10105
10106 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
10107             Richard Sandiford  <rdsandiford@googlemail.com>
10108
10109         PR rtl-optimization/47166
10110         * reload1.c (emit_reload_insns): Disable the spill_reg_store
10111         mechanism for PRE_MODIFY and POST_MODIFY.
10112         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10113         reloadreg.
10114
10115 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
10116
10117         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10118
10119 2011-01-22  Jan Hubicka  <jh@suse.cz>
10120
10121         PR lto/47333
10122         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10123
10124 2011-01-22  Jan Hubicka  <jh@suse.cz>
10125
10126         PR tree-optimization/43884
10127         PR lto/44334
10128         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10129         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10130
10131 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
10132
10133         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10134         * config/s390/s390.c (s390_register_move_cost,
10135         s390_memory_move_cost): New.
10136         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10137
10138 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10139
10140         PR middle-end/47401
10141         * except.c (sjlj_assign_call_site_values): Move setting the
10142         crtl->uses_eh_lsda flag to ...
10143         (sjlj_mark_call_sites): ... here.
10144         (sjlj_emit_function_enter): Support NULL dispatch label.
10145         (sjlj_build_landing_pads): In a function with no landing pads
10146         that still has must-not-throw regions, generate code to register
10147         a personality function with empty LSDA.
10148
10149 2011-01-21  Richard Henderson  <rth@redhat.com>
10150
10151         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10152
10153         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10154
10155         * compare-elim.c: New file.
10156         * Makefile.in (OBJS-common): Add it.
10157         (compare-elim.o): New.
10158         * common.opt (fcompare-elim): New.
10159         * opts.c (default_options_table): Add OPT_fcompare_elim.
10160         * tree-pass.h (pass_compare_elim_after_reload): New.
10161         * passes.c (init_optimization_passes): Add it.
10162         * recog.h: Protect against re-inclusion.
10163         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10164         * doc/invoke.texi (-fcompare-elim): Document it.
10165         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10166         * doc/tm.texi: Rebuild.
10167
10168 2011-01-22  Nick Clifton  <nickc@redhat.com>
10169
10170         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10171         rx_split_fp_compare.
10172
10173 2011-01-22  Nick Clifton  <nickc@redhat.com>
10174
10175         * config/rx/rx.md (UNSPEC_CONST): New.
10176         (deallocate_and_return): Wrap the amount popped off the stack in
10177         an UNSPEC_CONST in order to stop it being rejected by
10178         -mmax-constant-size.
10179         (pop_and_return): Add a "(return)" rtx.
10180         (call): Drop the immediate operand.
10181         (call_internal): Likewise.
10182         (call_value): Likewise.
10183         (call_value_internal): Likewise.
10184         (sibcall_internal): Likewise.
10185         (sibcall_value_internal): Likewise.
10186         (sibcall): Likewise.  Generate an explicit call using
10187         sibcall_internal.
10188         (sibcall_value): Likewise.
10189         (mov<>): FAIL if a constant operand is not legitimate.
10190         (addsi3_unpsec): New pattern.
10191
10192         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10193         (ok_for_max_constant): New function.
10194         (gen_safe_add): New function.
10195         (rx_expand_prologue): Use gen_safe_add.
10196         (rx_expand_epilogue): Likewise.
10197         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10198         UNSPEC CONSTs.
10199
10200 2011-01-21  Jeff Law  <law@redhat.com>
10201
10202         PR tree-optimization/47053
10203         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10204         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10205         statements are deleted.
10206         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10207         is nonempty, then purge dead edges and cleanup the CFG.
10208
10209 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10210
10211         PR debug/47402
10212         Temporarily revert:
10213         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10214         PR debug/47106
10215         * tree-dfa.c (create_var_ann): Mark variable as used.
10216
10217 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10218
10219         PR middle-end/45566
10220         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10221         notes from other section in hot/cold partitioning even if
10222         last_action is -3.  Increment call_site_base.
10223
10224         PR rtl-optimization/47366
10225         * fwprop.c (forward_propagate_into): Return bool.  If
10226         any changes are made, -fnon-call-exceptions is used and
10227         REG_EH_REGION note is present, call purge_dead_edges
10228         and return true if it purged anything.
10229         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10230         any EH edges were purged.
10231
10232 2011-01-21  Jeff Law  <law@redhat.com>
10233
10234         PR rtl-optimization/41619
10235         * caller-save.c (setup_save_areas): Break out code to determine
10236         which hard regs are live across calls by examining the reload chains
10237         so that it is always used.
10238         Eliminate code which checked REG_N_CALLS_CROSSED.
10239
10240 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10241
10242         PR tree-optimization/47355
10243         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10244         NOP has non-debug uses beyond PHIs in new_bb.
10245
10246 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10247
10248         PR debug/47106
10249         * cfgexpand.c (account_used_vars_for_block): Only account vars
10250         that are annotated as used.
10251         (estimated_stack_frame_size): Don't set TREE_USED.
10252         * tree-dfa.c (create_var_ann): Mark variable as used.
10253
10254 2011-01-21  Richard Guenther  <rguenther@suse.de>
10255
10256         PR middle-end/47395
10257         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10258
10259 2011-01-21  Richard Guenther  <rguenther@suse.de>
10260
10261         PR tree-optimization/47365
10262         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10263         (vn_reference_lookup_pieces): Adjust.
10264         (vn_reference_lookup): Likewise.
10265         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10266         (vn_reference_lookup_3): Only look through kills if in
10267         VN_WALKREWRITE mode.
10268         (vn_reference_lookup_pieces): Adjust.
10269         (vn_reference_lookup): Likewise.
10270         (visit_reference_op_load): Likewise.
10271         (visit_reference_op_store): Likewise.
10272         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10273         (compute_avail): Likewise.
10274         (eliminate): Likewise.
10275
10276 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10277
10278         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10279         DECL_IGNORED_P non-reg vars if they are used.
10280
10281         PR tree-optimization/47391
10282         * varpool.c (const_value_known_p): Return false if
10283         decl is volatile.
10284
10285 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10286
10287         PR bootstrap/47215
10288         * config/i386/i386.c (ix86_local_alignment): Handle
10289         case for va_list_type_node is nil.
10290         (ix86_canonical_va_list_type): Likewise.
10291
10292 2011-01-21  Alan Modra  <amodra@gmail.com>
10293
10294         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10295         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10296
10297 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10298
10299         * config/arm/arm.md (define_attr type): Rename f_load
10300         and f_store to f_fpa_load and f_fpa_store. Update.
10301         (write_conflict): Deal with rename fallout.
10302         (*push_fp_multi): Likewise.
10303         * config/arm/fpa.md (f_load): Use f_fpa_load.
10304         (f_store): Use f_fpa_store.
10305         (*movsf_fpa): Likewise.
10306         (*movdf_fpa): Likewise.
10307         (*movxf_fpa): Likewise.
10308         (*thumb2_movsf_fpa): Likewise.
10309         (*thumb2_movdf_fpa): Likewise.
10310         (*thumb2_movxf_fpa): Likewise.
10311         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10312         f_loadd and f_stored.
10313         (*thumb2_movdi_vfp): Likewise.
10314         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10315         (*thumb2_movsi_vfp): Likewise.
10316         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10317         Use f_loads instead of f_load.
10318         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10319
10320 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10321
10322         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10323         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10324         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10325         (xtensa_mode_dependent_address_p): New function.
10326         (constantpool_address_p): Make static. Change return type to bool.
10327         Change argument type to const_rtx. Use CONST_INT_P predicate.
10328
10329 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10330
10331         PR debug/46583
10332         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10333
10334 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10335
10336         PR debug/47283
10337         * cfgexpand.c (expand_debug_expr): Instead of generating
10338         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10339         etc. handling.
10340
10341 2011-01-20  Richard Guenther  <rguenther@suse.de>
10342
10343         PR middle-end/47370
10344         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10345         the pointer operand of MEM_REFs.
10346
10347 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10348
10349         PR tree-optimization/46130
10350         * ipa-split.c (consider_split): If return_bb contains non-virtual
10351         PHIs other than for retval or if split_function would not adjust it,
10352         refuse to split.
10353
10354 2011-01-20  Richard Guenther  <rguenther@suse.de>
10355
10356         PR tree-optimization/47167
10357         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10358         Revert previous change, only avoid enumeral type changes.
10359
10360 2011-01-19  Mike Stump  <mikestump@comcast.net>
10361
10362         * doc/tm.texi.in (BRANCH_COST): Englishify.
10363         * doc/tm.texi (BRANCH_COST): Likewise.
10364
10365 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10366
10367         PR c++/47291
10368         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10369         (gen_scheduled_generic_parms_dies): New functions.
10370         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10371         generation for the end of CU compilation.
10372         (dwarf2out_finish): Generate template parameters DIEs here.
10373
10374 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10375
10376         PR debug/46240
10377         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10378         debug bind stmt on merge edges.
10379
10380 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10381
10382         PR debug/47079
10383         PR debug/46724
10384         * function.c (instantiate_expr): Instantiate incoming rtl of
10385         implicit arguments, and recurse on VALUE_EXPRs.
10386         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10387         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10388
10389 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10390
10391         * c-parser.c (c_parser_for_statement): Initialize
10392         collection_expression.
10393
10394 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10395
10396         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10397
10398 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10399
10400         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10401         (LINK_SHLIB_SPEC): Don't use %(link_path).
10402         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10403
10404 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10405
10406         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10407         (NO_SHARED_LIB_SUPPORT): Remove.
10408         (LINK_SHLIB_SPEC): Remove one conditional definition.
10409
10410 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10411
10412         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10413         %{call_shared}.
10414         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10415         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10416         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10417         %{call_shared} and conditionals on these options not being passed.
10418         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10419         %{call_shared}.
10420
10421 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10422
10423         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10424         simplify.
10425
10426         * ipa-split.c: Spelling fixes.
10427
10428 2011-01-19  Richard Henderson  <rth@redhat.com>
10429
10430         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10431         (*mulsi3): Likewise.
10432
10433         * longlong.h [__mn10300__] (count_leading_zeros): New.
10434         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10435         [__mn10300__] (add_ssaaaa, subddmmss): New.
10436         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10437         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10438
10439 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10440
10441         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10442
10443 2011-01-19  Richard Henderson  <rth@redhat.com>
10444
10445         * config/mn10300/mn10300.md (addsi3_flags): New.
10446         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10447         (subsi3_flags, subc_internal, subdi3): New.
10448         (subdi3_internal, *subdi3_degenerate): New.
10449         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10450
10451         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10452         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10453         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10454         * config/mn10300/mn10300-protos.h: Update.
10455         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10456         (return_ret): Likewise.  Rename from return_internal_regs.
10457         (return_internal): Remove.
10458
10459         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10460         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10461         (mn10300_legitimate_constant_p): Likewise.
10462         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10463         (mn10300_frame_size): New.
10464         (mn10300_expand_prologue): Use it.
10465         (mn10300_expand_epilogue): Likewise.
10466         (mn10300_initial_offset): Likewise.
10467         * config/mn10300/mn10300-protos.h: Update.
10468         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10469         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10470         (prologue, epilogue, return_internal): Tidy output code.
10471         (mn10300_store_multiple_operation, return): Likewise.
10472         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10473         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10474         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10475         (load_pic, am33_load_pic): New.
10476         (mn10300_load_pic0, mn10300_load_pic1): New.
10477
10478         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10479         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10480         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10481         (cc_flags_for_mode, cc_flags_for_code): New.
10482         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10483         overflow flag is not valid.  Validate that the flags we need
10484         for the comparison are valid.
10485         (mn10300_output_cmp): Remove.
10486         (mn10300_output_add): New.
10487         (mn10300_select_cc_mode): Use cc_flags_for_code.
10488         (mn10300_split_cbranch): New.
10489         (mn10300_match_ccmode): New.
10490         (mn10300_split_and_operand_count): New.
10491         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10492         to the function.
10493         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10494         (addsi3): ... here.  Use mn10300_output_add.
10495         (*addsi3_flags): New.
10496         (*am33_subsi3, *mn10300_subsi3): Merge...
10497         (subsi3): ... here.  Use attribute isa.
10498         (*subsi3_flags): New.
10499         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10500         when possible.
10501         (*am33_andsi3, *mn10300_andsi3): Merge...
10502         (andsi3): ... here.
10503         (*andsi3_flags): New.
10504         (andsi3 splitters): New.
10505         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10506         (iorsi3): ... here.
10507         (*iorsi3_flags): New.
10508         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10509         (xorsi3): ... here.
10510         (*xorsi3_flags): New.
10511         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10512         (one_cmplsi2): ... here.
10513         (*one_cmplsi2_flags): New.
10514         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10515         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10516         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10517         use matching constraints to eliminate a self-comparison.
10518         (*integer_conditional_branch): Rename from integer_conditional_branch.
10519         Use int_mode_flags to match CC_REG.
10520         (*cbranchsi4_btst, *btstsi): New.
10521         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10522         mn10300_split_cbranch.
10523         (*am33_cmpsf): Rename from am33_cmpsf.
10524         (*float_conditional_branch): Rename from float_conditional_branch.
10525         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10526         (zero_extendqisi2): ... here.
10527         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10528         (zero_extendhisi2): ... here.
10529         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10530         (extendqisi2): ... here.
10531         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10532         (extendhisi2): ... here.
10533         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10534         (ashlsi3): ... here.
10535         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10536         (lshrsi3): ... here.
10537         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10538         (ashrsi3): ... here.
10539         (consecutive add peephole): Remove.
10540         * config/mn10300/predicates.md (label_ref_operand): New.
10541         (int_mode_flags): New.
10542         (CCZN_comparison_operator): New.
10543
10544         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10545         (throughput_42_latency_43): New reservation.
10546         (mulsidi3, umulsidi3): New expanders.
10547         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10548         the MDR register to allocation; separately allocate the low and
10549         high parts of the DImode result.
10550         (umulsidi3_internal): Similarly.
10551         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10552         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10553         (udivsi3, umodsi3): Remove.
10554         (udivmodsi4, divmodsi4): New expanders.
10555         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10556         (*divmodsi4): Simiarly.
10557         (ext_internal): New.
10558
10559         * config/mn10300/constraints.md ("z"): New constraint.
10560         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10561         (FIXED_REGISTERS): Don't fix MDR.
10562         (CALL_USED_REGSITERS): Reformat nicely.
10563         (REG_ALLOC_ORDER): Add MDR.
10564         (enum regclass): Add MDR_REGS.
10565         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10566         (IRA_COVER_CLASSES): Add MDR_REGS.
10567         (REGNO_REG_CLASS): Handle MDR_REG.
10568         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10569         (mn10300_register_move_cost): Likewise.
10570         * config/mn10300/mn10300.md (MDR_REG): New.
10571         (*movsi_internal): Handle moves to/from MDR_REGS.
10572
10573         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10574         POST_MODIFY.
10575         (mn10300_secondary_reload): Tidy combination reload classes.
10576         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10577         addresses for AM33.  Allow symbolic offsets for reg+imm.
10578         (mn10300_regno_in_class_p): New.
10579         (mn10300_legitimize_reload_address): New.
10580         * config/mn10300/mn10300.h (enum reg_class): Remove
10581         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10582         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10583         SP_OR_GENERAL_REGS.
10584         (REG_CLASS_NAMES): Update to match.
10585         (REG_CLASS_CONTENTS): Likewise.
10586         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10587         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10588         (REGNO_IN_RANGE_P): Remove.
10589         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10590         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10591         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10592         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10593         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10594         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10595         (REGNO_GENERAL_P): New.
10596         (HAVE_POST_MODIFY_DISP): New.
10597         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10598         (LEGITIMIZE_RELOAD_ADDRESS): New.
10599         * config/mn10300/mn10300-protos.h: Update.
10600
10601         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10602         DATA_REGS for AM33 stack-pointer destination.
10603         (mn10300_preferred_output_reload_class): Likewise.
10604         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10605         into a form appropriate for ...
10606         (TARGET_SECONDARY_RELOAD): New.
10607         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10608         * config/mn10300/mn10300-protos.h: Update.
10609         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10610         reload_insi; use the "A" constraint for the scratch; handle AM33
10611         moves of sp to non-address registers.
10612
10613         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10614         (*movqi_internal): ... here.
10615         (*am33_movhi, *mn10300_movhi): Merge into...
10616         (*movhi_internal): ... here.
10617         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10618         as the source/destination of moves from/to SP.
10619         (movsf): Only allow for AM33-2.
10620         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10621         any integer constant constraint.  Only allow for AM33-2.  Tidy
10622         all of the alternative outputs.
10623         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10624         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10625         for MN103.
10626         (udivsi3, umodsi3): New patterns for MN103 only.
10627
10628 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10629
10630         * doc/tm.texi.in: Spell out that a lack of register class unions
10631         can lead to ICEs.
10632         * doc/tm.texi: Regenerate.
10633
10634 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10635
10636         PR rtl-optimization/47337
10637         * dce.c (check_argument_store): New function.
10638         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10639
10640         PR tree-optimization/47290
10641         * tree-eh.c (infinite_empty_loop_p): New function.
10642         (cleanup_empty_eh): Use it.
10643
10644 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10645
10646         PR target/46997
10647         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10648         (a64_expand_widen_sum): Ditto.
10649         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10650         (vec_extract_evenodd_help): Ditto.
10651         (vec_extract_evenv4hi): Ditto.
10652         (vec_extract_oddv4hi): Ditto.
10653         (vec_extract_evenv2si): Ditto.
10654         (vec_extract_oddv2si): Ditto.
10655         (vec_extract_evenv2sf): Ditto.
10656         (vec_extract_oddv2sf): Ditto.
10657         (vec_pack_trunc_v4hi: Ditto.
10658         (vec_pack_trunc_v2si): Ditto.
10659         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10660         (vec_interleave_highv8qi): Ditto.
10661         (mix1_r): Ditto.
10662         (vec_extract_oddv8qi): Ditto.
10663         (vec_interleave_lowv4hi): Ditto.
10664         (vec_interleave_highv4hi): Ditto.
10665         (vec_interleave_lowv2si): Ditto.
10666         (vec_interleave_highv2si): Ditto.
10667
10668 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10669
10670         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10671         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10672         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10673         (pa_c_mode_for_suffix): New.
10674         (TARGET_EXPAND_BUILTIN): Define.
10675         (TARGET_C_MODE_FOR_SUFFIX): Define.
10676         (pa_builtins): Define.
10677         (pa_init_builtins): Register __float128 type and init new support
10678         builtins.
10679         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10680         * config/pa/quadlib.c (_U_Qfcopysign): New.
10681
10682 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10683
10684         PR middle-end/46894
10685         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10686         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10687         are defined.
10688
10689 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10690
10691         PR tree-optimization/47179
10692         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10693         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10694
10695 2011-01-18  Richard Guenther  <rguenther@suse.de>
10696
10697         PR rtl-optimization/47216
10698         * emit-rtl.c: Include tree-flow.h.
10699         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10700         of replicating it with different semantics.
10701         * Makefile.in (emit-rtl.o): Adjust.
10702
10703 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10704
10705         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10706         (cortex_a9_dp): Handle neon types correctly.
10707
10708 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10709
10710         PR rtl-optimization/47299
10711         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10712         subtarget.  Use normal multiplication if both operands are constants.
10713         * expmed.c (expand_widening_mult): Don't try to optimize constant
10714         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10715         before using it.
10716
10717 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10718
10719         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10720         spacing after 'e.g.', typos, comma, hyphenation.
10721
10722 2011-01-17  Richard Henderson  <rth@redhat.com>
10723
10724         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10725         (rx_restricted_mem_operand): New.
10726         (rx_shift_operand): Use register_operand.
10727         (rx_source_operand, rx_compare_operand): Likewise.
10728         * config/rx/rx.md (addsi3_flags): New expander.
10729         (adddi3): Rewrite as expander.
10730         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10731         (subsi3_flags): New expander.
10732         (subdi3): Rewrite as expander.
10733         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10734
10735         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10736         (rx_init_builtins): Remove sat builtin.
10737         (rx_expand_builtin): Likewise.
10738         * config/rx/rx.md (ssaddsi3): New.
10739         (*sat): Rename from sat.  Represent the CC_REG input.
10740
10741         * config/rx/predicates.md (rshift_operator): New.
10742         * config/rx/rx.c (rx_expand_insv): Remove.
10743         * config/rx/rx-protos.h: Update.
10744         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10745         operand to the canonical position.
10746         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10747         (*bitclr, *bitclr_in_memory): Similarly.
10748         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10749         (insv): Retain the zero_extract in the expansion.
10750
10751         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10752         (bswaphi2, bitinvert, revw): Likewise.
10753
10754         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10755         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10756         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10757         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10758         (bitset, bitset_in_memory): Likewise.
10759         (bitinvert, bitinvert_in_memory): Likewise.
10760         (bitclr, bitclr_in_memory): Likewise.
10761         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10762         (rx_strend, rx_cmpstrn): Likewise.
10763         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10764         (bitop peep2 patterns): Remove.
10765
10766         * config/rx/rx.c (rx_match_ccmode): New.
10767         * config/rx/rx-protos.h: Update.
10768         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10769         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10770         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10771         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10772         (fix_truncsfsi2, floatsisf2): Likewise.
10773         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10774         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10775         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10776         (*subsi3_flags, *xorsi3_flags): New.
10777
10778         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10779
10780         * config/rx/rx.c (rx_print_operand): Remove workaround for
10781         unsplit comparison operations.
10782
10783         * config/rx/rx.md (movsicc): Split after reload.
10784         (*movsicc): Merge *movsieq and *movsine via match_operator.
10785         (*stcc): New pattern.
10786
10787         * config/rx/rx.c (rx_float_compare_mode): Remove.
10788         * config/rx/rx.h (rx_float_compare_mode): Remove.
10789         * config/rx/rx.md (cstoresi4): Split after reload.
10790         (*sccc): New pattern.
10791
10792         * config/rx/predicates.md (label_ref_operand): New.
10793         (rx_z_comparison_operator): New.
10794         (rx_zs_comparison_operator): New.
10795         (rx_fp_comparison_operator): New.
10796         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10797         Validate that the flags are set properly for the comparison.
10798         (rx_gen_cond_branch_template): Remove.
10799         (rx_cc_modes_compatible): Remove.
10800         (mode_from_flags): New.
10801         (flags_from_code): Rename from flags_needed_for_conditional.
10802         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10803         (rx_select_cc_mode): Likewise.
10804         (rx_split_fp_compare): New.
10805         (rx_split_cbranch): New.
10806         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10807         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10808         (*cbranchsf4): Similarly.
10809         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10810         match_operator and rx_split_cbranch.
10811         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10812         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10813         (*cmpsi): Rename from cmpsi.
10814         (*tstsi): Rename from tstsi.
10815         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10816         (*conditional_branch): Rename from conditional_branch.
10817         (*reveresed_conditional_branch): Remove.
10818         (b<code>): Remove expander.
10819         * config/rx/rx-protos.h: Update.
10820
10821         * config/rx/rx.c (rx_compare_redundant): Remove.
10822         * config/rx/rx.md (cmpsi): Don't use it.
10823         * config/rx/rx-protos.h: Update.
10824
10825         * config/rx/rx-modes.def (CC_F): New mode.
10826         * config/rx/rx.c (rx_select_cc_mode): New.
10827         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10828         * config/rx/rx-protos.h: Update.
10829
10830 2011-01-17  Richard Henderson  <rth@redhat.com>
10831
10832         * except.c (dump_eh_tree): Fix stray ; after for statement.
10833
10834 2011-01-17  Richard Guenther  <rguenther@suse.de>
10835
10836         PR tree-optimization/47313
10837         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10838         handling before copying the body.  Properly deal with
10839         by-reference result in SSA form.
10840
10841 2011-01-17  Ian Lance Taylor  <iant@google.com>
10842
10843         PR target/47219
10844         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10845         (struct_value_alias_set): Don't define.
10846         (sparc_option_override): Don't set sparc_sr_alias_set and
10847         struct_value_alias_set.
10848         (save_or_restore_regs): Use gen_frame_mem rather than calling
10849         set_mem_alias_set.
10850         (sparc_struct_value_rtx): Likewise.
10851
10852 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10853
10854         PR target/47318
10855         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10856         (_mm_maskstore_pd): Likewise.
10857         (_mm_maskload_ps): Likewise.
10858         (_mm_maskstore_ps): Likewise.
10859         (_mm256_maskload_pd): Change mask to __m256i.
10860         (_mm256_maskstore_pd): Likewise.
10861         (_mm256_maskload_ps): Likewise.
10862         (_mm256_maskstore_ps): Likewise.
10863
10864         * config/i386/i386-builtin-types.def: Updated.
10865         (ix86_expand_special_args_builtin): Likewise.
10866
10867         * config/i386/i386.c (bdesc_special_args): Update
10868         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10869         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10870         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10871         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10872
10873         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10874         Use <avxpermvecmode> on mask register.
10875         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10876
10877 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10878             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10879             Eric Botcazou  <ebotcazou@adacore.com>
10880
10881         PR target/46655
10882         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10883         if <= USHRT_MAX in 32-bit mode.
10884
10885 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10886
10887         * doc/install.texi (Configuration, Specific): Wrap long
10888         lines in examples.  Allow line wrapping in long options
10889         and URLs where beneficial for PDF output.
10890
10891 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10892
10893         * config/mips/mips.c (mips_classify_symbol): Don't return
10894         SYMBOL_PC_RELATIVE for nonlocal labels.
10895
10896 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10897
10898         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10899
10900 2011-01-15  Jan Hubicka  <jh@suse.cz>
10901
10902         PR tree-optimization/47276
10903         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10904         declarations as needed.
10905
10906 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10907
10908         * common.opt (fdevirtualize): New flag.
10909         * doc/invoke.texi (Option Summary): Document it.
10910         * opts.c (default_options_table): Add devirtualize flag.
10911         * ipa-prop.c (detect_type_change): Return immediately if
10912         devirtualize flag is not set.
10913         (detect_type_change_ssa): Likewise.
10914         (compute_known_type_jump_func): Likewise.
10915         (ipa_analyze_virtual_call_uses): Likewise.
10916
10917 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10918
10919         PR tree-optimization/45934
10920         PR tree-optimization/46302
10921         * ipa-prop.c (type_change_info): New type.
10922         (stmt_may_be_vtbl_ptr_store): New function.
10923         (check_stmt_for_type_change): Likewise.
10924         (detect_type_change): Likewise.
10925         (detect_type_change_ssa): Likewise.
10926         (compute_complex_assign_jump_func): Check for dynamic type change.
10927         (compute_complex_ancestor_jump_func): Likewise.
10928         (compute_known_type_jump_func): Likewise.
10929         (compute_scalar_jump_functions): Likewise.
10930         (ipa_analyze_virtual_call_uses): Likewise.
10931         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10932
10933 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10934
10935         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10936         * config/i386/i386.opt (msse5): New Alias.
10937
10938 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10939
10940         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10941         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10942         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10943         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10944
10945 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10946
10947         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10948         -mcpu options.
10949         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10950         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10951         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10952         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10953         Likewise.
10954         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10955
10956 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10957
10958         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10959
10960 2011-01-14  Mike Stump  <mikestump@comcast.net>
10961
10962         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10963         * config/fr30/fr30.md: Likweise
10964         (movsi_push): Likewise.
10965         (movsi_pop): Likewise.
10966         (enter_func): Likewise.
10967         * config/moxie/moxie.md (movsi_push): Likewise.
10968         (movsi_pop): Likewise.
10969
10970 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10971
10972         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10973         %{no_archive} %{exact_version}.
10974         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10975         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10976         %{no_archive} %{exact_version}.
10977         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10978         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10979         * config/mips/vxworks.h: Likewise.
10980
10981 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10982
10983         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10984
10985 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10986
10987         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10988         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10989
10990 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10991
10992         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10993         -nodefaultlib.
10994
10995 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10996
10997         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10998         for mcpu not cpu.
10999         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11000         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11001         not cpu.
11002         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11003         Don't handle -shlib.
11004
11005 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11006
11007         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11008         (CC1_SPEC): Don't handle -profile.
11009
11010 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11011
11012         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11013         * config/mips/mips.h (CC1_SPEC): Likewise.
11014
11015 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11016
11017         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11018         * config/mips/mips.h (CC1_SPEC): Likewise.
11019
11020 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11021
11022         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11023         * config/m32r/linux.h (LINK_SPEC): Likewise.
11024         * config/mips/linux.h (LINK_SPEC): Likewise.
11025         * config/mips/linux64.h (LINK_SPEC): Likewise.
11026         * config/sparc/linux.h (LINK_SPEC): Likewise.
11027         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11028         LINK_SPEC): Likewise.
11029         * config/xtensa/linux.h (LINK_SPEC): Likewise.
11030
11031 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11032
11033         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11034         %{version:-v}.
11035         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11036
11037 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11038
11039         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11040         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11041
11042 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11043
11044         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11045
11046 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11047
11048         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11049         supports -Bstatic/-Bdynamic.
11050         * configure: Regenerate.
11051
11052 2011-01-14  Jan Hubicka  <jh@suse.cz>
11053             Jack Howarth  <howarth@bromo.med.uc.edu>
11054
11055         PR target/46037
11056         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11057         when checking debug_info_level. Test write_symbols instead of
11058         debug_hooks->var_location when setting flag_var_tracking_uninit.
11059
11060 2011-01-14  Richard Guenther  <rguenther@suse.de>
11061
11062         PR tree-optimization/47179
11063         * target.def (ref_may_alias_errno): New target hook.
11064         * targhooks.h (default_ref_may_alias_errno): Declare.
11065         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11066         (default_ref_may_alias_errno): New function.
11067         * target.h (struct ao_ref_s): Declare.
11068         * tree-ssa-alias.c: Include target.h.
11069         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11070         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11071         (targhooks.o): Likewise.
11072         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11073         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11074
11075 2011-01-14  Richard Guenther  <rguenther@suse.de>
11076
11077         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
11078
11079 2011-01-14  Richard Guenther  <rguenther@suse.de>
11080
11081         PR tree-optimization/47280
11082         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11083         return CFG changes.
11084         (tree_ssa_forward_propagate_single_use_vars): Deal with
11085         CFG changes from associate_plusminus.
11086
11087 2011-01-14  Richard Guenther  <rguenther@suse.de>
11088
11089         PR middle-end/47281
11090         Revert
11091         2011-01-11  Richard Guenther  <rguenther@suse.de>
11092
11093         PR tree-optimization/46076
11094         * tree-ssa.c (useless_type_conversion_p): Conversions from
11095         unprototyped to empty argument list function types are useless.
11096
11097 2011-01-14  Richard Guenther  <rguenther@suse.de>
11098
11099         PR tree-optimization/47286
11100         * tree-ssa-structalias.c (new_var_info): Register variables are global.
11101
11102 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11103
11104         PR middle-end/46823
11105         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11106
11107 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
11108
11109         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11110         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11111         * config/xtensa/xtensa.c (xtensa_libcall_value,
11112         xtensa_function_value_regno_p): New functions.
11113         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11114
11115 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
11116
11117         PR c++/47213
11118         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11119         PE specific hook.
11120         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11121         New function prototype.
11122         * config/i386/winnt.c (i386_pe_assemble_visibility):
11123         Warn only if attribute was specified by user.
11124
11125 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11126
11127         PR target/47251
11128         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11129         floating point.
11130         (floatunsdidf2_fcfidu): Ditto.
11131
11132 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11133
11134         * config/s390/s390.c (print_operand_address): Replace 'error' with
11135         'output_operand_lossage'.
11136         (print_operand): Likewise.
11137
11138 2011-01-13  Jeff Law  <law@redhat.com>
11139
11140         PR rtl-optimization/39077
11141         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11142         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11143         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11144         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11145         * gcse.c (prune_insertions_deletions): New function.
11146         (compute_pre_data): Use it.
11147
11148 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
11149
11150         PR debug/PR46973
11151         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11152         static function.
11153         (prune_unused_types_mark): Use it.
11154
11155 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
11156
11157         PR rtl-optimization/45352
11158         * sel-sched.c: Update copyright years.
11159         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11160         in the advancing loop when we have issued issue_rate insns.
11161
11162 2011-01-12  Richard Henderson  <rth@redhat.com>
11163
11164         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11165         (TARGET_MD_ASM_CLOBBERS): New.
11166
11167         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11168         (TARGET_DELEGITIMIZE_ADDRESS): New.
11169
11170         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11171         (clzsi2, *bsch): New patterns.
11172
11173         * config/mn10300/mn10300.md (INT): New mode iterator.
11174         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11175
11176         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11177         flag_split_wide_types.
11178
11179         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11180         (mn10300_trampoline_init): Rewrite without a template, an immediate
11181         load and a direct branch.
11182         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11183
11184 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11185
11186         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11187         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11188         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11189         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11190
11191 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11192
11193         PR debug/47209
11194         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11195         of type.
11196
11197 2011-01-12  Jan Hubicka  <jh@suse.cz>
11198
11199         PR driver/47244
11200         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11201         (PLUGIN_COND_CLOSE): New macro.
11202         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11203
11204 2011-01-12  Richard Guenther  <rguenther@suse.de>
11205
11206         PR lto/47259
11207         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11208         register variables in a MEM_REF.
11209
11210 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11211
11212         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11213         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11214         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11215         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11216         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11217         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11218         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11219         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11220         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11221         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11222         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11223         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11224         * config/gnu-user.h: New.  Copied from linux.h.
11225         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11226         GNU_USER_TARGET_STARTFILE_SPEC.
11227         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11228         GNU_USER_TARGET_ENDFILE_SPEC.
11229         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11230         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11231         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11232         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11233         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11234         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11235         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11236         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11237         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11238         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11239         * config/arm/linux-eabi.h (CC1_SPEC): Use
11240         GNU_USER_TARGET_CC1_SPEC.
11241         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11242         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11243         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11244         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11245         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11246         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11247         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11248         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11249
11250 2011-01-12  Richard Guenther  <rguenther@suse.de>
11251
11252         PR other/46946
11253         * doc/invoke.texi (ffast-math): Document it is turned on
11254         with -Ofast.
11255
11256 2011-01-12  Jan Hubicka  <jh@suse.cz>
11257
11258         PR tree-optimization/47233
11259         * opts.c (common_handle_option): Disable ipa-reference with profile
11260         feedback.
11261
11262 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11263
11264         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11265         error message.
11266
11267 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11268
11269         * c-parser.c (c_lex_one_token): Updated and reindented some
11270         comments.  No changes in code.
11271
11272 2011-01-11  Ian Lance Taylor  <iant@google.com>
11273
11274         * godump.c (go_output_var): Don't output the variable if there is
11275         already a type with the same name.
11276
11277 2011-01-11  Ian Lance Taylor  <iant@google.com>
11278
11279         * godump.c (go_format_type): Don't generate float80.
11280
11281 2011-01-11  Richard Henderson  <rth@redhat.com>
11282
11283         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11284         declaration.  Rewrite for both speed and size.
11285         (mn10300_address_cost_1): Remove.
11286         (mn10300_register_move_cost): New.
11287         (mn10300_memory_move_cost): New.
11288         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11289         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11290         extensions, shifts, BSWAP, CLZ.
11291         (mn10300_wide_const_load_uses_clr): Remove.
11292         (TARGET_REGISTER_MOVE_COST): New.
11293         (TARGET_MEMORY_MOVE_COST): New.
11294         * config/mn10300/mn10300-protos.h: Update.
11295         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11296
11297         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11298         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11299         * config/mn10300/mn10300-protos.h: Update.
11300         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11301         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11302         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11303         (*test_int_bitfield, *test_byte_bitfield): Remove.
11304         (*bit_test, *subreg_bit_test): Remove.
11305         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11306
11307         * config/mn10300/constraints.md ("c"): Rename from "A".
11308         ("A", "D"): New constraint letters.
11309         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11310         (fmssf4, fnmasf4, fnmssf4): Likewise.
11311
11312         * config/mn10300/mn10300.md (isa): New attribute.
11313         (enabled): New attribute.
11314
11315         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11316         (abssf2, negsf2): Define only for hardware fp.
11317         (sqrtsf2): Reformat.
11318         (addsf3, subsf3, mulsf3): Merge expander and insn.
11319
11320         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11321         (DEBUGGER_AUTO_OFFSET): Remove.
11322         (DEBUGGER_ARG_OFFSET): Remove.
11323
11324         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11325         Emit register stores with the same offsets as the hardware.
11326         (mn10300_store_multiple_operation): Don't check that the register
11327         save offsets are monotonic.
11328         * config/mn10300/mn10300-protos.h: Update.
11329
11330         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11331
11332         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11333         in terms of the value on the stack, not the MDR register.
11334
11335 2011-01-11  Jan Hubicka  <jh@suse.cz>
11336
11337         PR lto/45721
11338         PR lto/45375
11339         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11340         (symbol_alias_set_destroy, symbol_alias_set_contains,
11341         propagate_aliases_backward): Declare.
11342         * lto-streamer-out.c (struct sets): New sturcture.
11343         (trivally_defined_alias): New function.
11344         (output_alias_pair_p): Rewrite.
11345         (output_unreferenced_globals): Fix output of alias pairs.
11346         (produce_symtab): Likewise.
11347         * ipa.c (function_and_variable_visibility): Set weak alias destination
11348         as needed in lto.
11349         * varasm.c (symbol_alias_set_t): Remove.
11350         (symbol_alias_set_destroy): Export.
11351         (propagate_aliases_forward, propagate_aliases_backward): New functions
11352         based on ...
11353         (compute_visible_aliases): ... this one; remove.
11354         (trivially_visible_alias): New
11355         (trivially_defined_alias): New.
11356         (remove_unreachable_alias_pairs): Rewrite.
11357         (finish_aliases_1): Reorganize code checking if alias is defined.
11358         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11359         in LTO mode.
11360
11361 2011-01-11  Richard Guenther  <rguenther@suse.de>
11362
11363         PR tree-optimization/46076
11364         * tree-ssa.c (useless_type_conversion_p): Conversions from
11365         unprototyped to empty argument list function types are useless.
11366
11367 2011-01-11  Richard Guenther  <rguenther@suse.de>
11368
11369         PR middle-end/45235
11370         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11371         volatile MEMs as MEM_READONLY_P.
11372
11373 2011-01-11  Richard Guenther  <rguenther@suse.de>
11374
11375         PR tree-optimization/47239
11376         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11377
11378 2011-01-11  Jeff Law  <law@redhat.com>
11379
11380         PR tree-optimization/47086
11381         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11382         IVs from statements that might throw.
11383
11384 2011-01-10  Jan Hubicka  <jh@suse.cz>
11385
11386         PR lto/45375
11387         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11388
11389 2011-01-10  Jan Hubicka  <jh@suse.cz>
11390
11391         PR lto/45375
11392         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11393         when correcting profile.
11394
11395 2011-01-10  Jan Hubicka  <jh@suse.cz>
11396
11397         PR lto/46083
11398         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11399         DECL_FINI_PRIORITY.
11400         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11401         Restore DECL_FINI_PRIORITY.
11402
11403 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11404
11405         * doc/gimple.texi: Fix quoting of multi-word return values in
11406         @deftypefn statements.  Ensure presence of return value.  Wrap
11407         overlong @deftypefn lines.
11408         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11409         descriptions of removed functions.
11410         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11411         of multi-word return value in @deftypefn statement.
11412
11413 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11414
11415         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11416         (Conditional Expressions, Logical Operators)
11417         (Statement and operand traversals): Do not indent smallexample
11418         code.  Fix duplicate function argument in example.
11419
11420 2011-01-10  Jeff Law  <law@redhat.com>
11421
11422         PR tree-optimization/47141
11423         * ipa-split.c (split_function): Handle case where we are
11424         returning a value and the return block has a virtual operand phi.
11425
11426 2011-01-10  Jan Hubicka  <jh@suse.cz>
11427
11428         PR tree-optimization/47234
11429         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11430         (pass_feedback_split_functions): Declare.
11431         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11432         tree-profile.
11433         * ipa-split.c (gate_split_functions): Update comments; disable
11434         split-functions for profile_arc_flag and branch_probabilities.
11435         (gate_feedback_split_functions): New function.
11436         (execute_feedback_split_functions): New function.
11437         (pass_feedback_split_functions): New global var.
11438
11439 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11440
11441         PR lto/46760
11442         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11443         calling gimple_call_set_cannot_inline.
11444
11445 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11446
11447         * config/darwin-sections.def: Remove unused section.
11448
11449 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11450
11451         PR c++/47218
11452         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11453
11454 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11455
11456         PR objc/47232
11457         * c-parser.c (c_parser_declaration_or_fndef): Improved
11458         error message.
11459
11460 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11461
11462         * config/i386/winnt.c (i386_pe_start_function): Make sure
11463         to switch back to function's section.
11464
11465 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11466
11467         PR gcc/46902
11468         PR testsuite/46912
11469         * plugin.c: Move include of dlfcn.h from here...
11470         * system.h: ... to here.
11471
11472 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11473
11474         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11475         file name.
11476         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11477         two extra empty pages in PDF output.
11478
11479 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11480
11481         PR objc/47078
11482         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11483         for error recovery purposes behave as if it was not specified so
11484         that the default type is usd.
11485
11486 2011-01-07  Jan Hubicka  <jh@suse.cz>
11487
11488         PR tree-optmization/46469
11489         * ipa.c (function_and_variable_visibility): Clear needed flags on
11490         nodes with external decls; handle weakrefs merging correctly.
11491
11492 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11493
11494         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11495         not false.
11496
11497 2011-01-07  Jan Hubicka  <jh@suse.cz>
11498
11499         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11500         and no longer claim that gold is required for linker plugin.
11501         * configure: Regenerate.
11502         * gcc.c (PLUGIN_COND): New macro.
11503         (LINK_COMMAND_SPEC): Use it.
11504         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11505         * config.in (HAVE_LTO_PLUGIN): New.
11506         * configure.ac (--with-lto-plugin): New parameter; autodetect
11507         HAVE_LTO_PLUGIN.
11508
11509 2011-01-07  Jan Hubicka  <jh@suse.cz>
11510
11511         PR tree-optimization/46367
11512         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11513         when we can update original.
11514         (cgraph_mark_inline_edge): Sanity check.
11515         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11516
11517 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11518
11519         * config/spu/spu.h (ASM_COMMENT_START): Define.
11520
11521 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11522
11523         PR driver/42445
11524         * gcc.c (%>S): New.
11525         (SWITCH_KEEP_FOR_GCC): Likewise.
11526         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11527         (do_spec_1): Handle "%>".
11528
11529         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11530
11531 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11532
11533         PR target/47201
11534         * config/i386/i386.c (ix86_delegitimize_address): If
11535         simplify_gen_subreg fails, return orig_x.
11536
11537         PR bootstrap/47187
11538         * value-prof.c (gimple_stringop_fixed_value): Handle
11539         lhs of the call properly.
11540
11541 2011-01-07  Jan Hubicka  <jh@suse.cz>
11542
11543         PR lto/45375
11544         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11545
11546 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11547
11548         * target.def (function_switched_text_sections): New hook.
11549         * doc/tm.texi: Regenerated.
11550         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11551         * final.c (default_function_switched_text_sections): New.
11552         (final_scan_insn): Call function_switched_text_sections when a
11553         mid-function section change occurs.
11554         * output.h (default_function_switched_text_sections): Declare.
11555         * config/darwin-protos.h (darwin_function_switched_text_sections):
11556         Likewise.
11557         * config/darwin.c (darwin_function_switched_text_sections): New.
11558         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11559
11560 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11561
11562         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11563         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11564         the secondary code fragment when outputting for DWARF == 2.
11565
11566 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11567
11568         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11569         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11570         Remove.
11571         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11572         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11573
11574 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11575
11576         PR debug/46704
11577         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11578         when it is not empty.
11579
11580 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11581
11582         Bobcat Enablement
11583         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11584         (case ${target}): Add btver1.
11585         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11586         -march=native recognize btver1 processors.
11587         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11588         btver1 def_and_undef
11589         * config/i386/i386.c (struct processor_costs btver1_cost): New
11590         btver1 cost table.
11591         (m_BTVER1): New definition.
11592         (m_AMD_MULTIPLE): Includes m_BTVER1.
11593         (initial_ix86_tune_features): Add btver1 tune.
11594         (processor_target_table): Add btver1 entry.
11595         (static const char *const cpu_names): Add btver1 entry.
11596         (software_prefetching_beneficial_p): Add btver1.
11597         (ix86_option_override_internal): Add btver1 instruction sets.
11598         (ix86_issue_rate): Add btver1.
11599         (ix86_adjust_cost): Add btver1.
11600         * config/i386/i386.h (TARGET_BTVER1): New definition.
11601         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11602         (enum processor_type): Add PROCESSOR_BTVER1.
11603         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11604
11605 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11606
11607         PR target/43309
11608         * config/i386/i386.c (legitimize_tls_address)
11609         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11610         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11611         (tls_initial_exec_64_sun): New pattern.
11612
11613 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11614
11615         * doc/invoke.texi (Overall Options): Improve wording and markup
11616         of the description of -wrapper.
11617
11618 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11619
11620         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11621         rdynamic, threads): New Driver options.
11622
11623 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11624
11625         PR target/38118
11626         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11627         if coming from .tdata.
11628         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11629
11630 2011-01-06  Jan Hubicka  <jh@suse.cz>
11631
11632         PR lto/47188
11633         * collect2.c (main): Do not enable LTOmode when plugin is active.
11634
11635 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11636
11637         PR other/45915
11638         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11639         --version output if supported.
11640         * configure: Regenerate.
11641
11642 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11643
11644         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11645         Driver options.
11646
11647 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11648
11649         PR c/47150
11650         * c-convert.c (convert): When converting a complex expression
11651         other than COMPLEX_EXPR to a different complex type, ensure
11652         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11653         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11654         when converting COMPLEX_TYPE.
11655
11656 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11657
11658         PR tree-optimization/47139
11659         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11660         only the last reduction value is used outside the loop.  Update
11661         documentation.
11662
11663 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11664
11665         * config/rtems.opt: New.
11666         * config.gcc (*-*-rtems*): Use rtems.opt.
11667
11668 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11669
11670         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11671         processors do not support 3DNow instructions.
11672
11673 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11674
11675         * config/spu/spu.c (spu_option_override): Set parameter
11676         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11677
11678 2011-01-05  Jan Hubicka  <jh@suse.cz>
11679
11680         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11681         at the command line.
11682
11683 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11684
11685         PR lto/47162
11686         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11687         deltas on streamed outgoing edges.
11688         (output_node_opt_summary): Output info for outgoing edges only when
11689         the node is in new parameter set.
11690         (output_cgraph_opt_summary): New parameter set, passed to the two
11691         aforementioned functions.  Update its forward declaration and its
11692         callee too.
11693
11694 2011-01-05  Tom Tromey  <tromey@redhat.com>
11695
11696         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11697         operator to c_finish_omp_atomic.
11698         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11699         (build_unary_op): Update.
11700         (build_modify_expr): Update.
11701         (build_asm_expr): Update.
11702
11703 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11704
11705         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11706         newly inserted insns.
11707         (pad_bb): Likewise.
11708         (spu_emit_branch_hint): Likewise.
11709         (insert_hbrp_for_ilb_runout): Likewise.
11710         (spu_machine_dependent_reorg): Call df_finish_pass after
11711         schedule_insns returns.
11712
11713 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11714
11715         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11716
11717 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11718
11719         PR tree-optimization/47005
11720         * tree-sra.c (struct access): Add 'non_addressable' bit.
11721         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11722         (decide_one_param_reduction): Return 0 if the parameter is passed by
11723         reference and one of the accesses in the group is non_addressable.
11724
11725 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11726
11727         PR tree-optimization/47056
11728         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11729         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11730         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11731
11732 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11733
11734         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11735         initializer.  Skip view conversions from aggregate types.
11736
11737 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11738
11739         PR bootstrap/47055
11740         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11741
11742 2011-01-04  Philipp Thomas  <pth@suse.de>
11743
11744         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11745         obvious typo.
11746
11747 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11748
11749         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11750         on empty epilogue sequences.
11751
11752 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11753
11754         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11755         non-static): New Driver options.
11756
11757 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11758
11759         PR driver/47137
11760         * gcc.c (default_compilers[]): Set combinable field to 0
11761         for all assembly languages.
11762
11763 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11764
11765         * config/mips/loongson3a.md: New file.
11766         * config/mips/mips.md: Include loongson3a.md.
11767         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11768         TUNE_LOONGSON_3A.
11769
11770 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11771
11772         PR middle-end/47017
11773         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11774         instead of convert_memory_address_addr_space on the base expression.
11775
11776 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11777
11778         * config/spu/spu.c (spu_option_override): Update error text
11779         for bad -march= / -mtune= values.
11780
11781 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11782
11783         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11784         if branch-hint optimization will be performed.
11785
11786 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11787
11788         PR tree-optimization/47148
11789         * ipa-split.c (split_function): Convert arguments to
11790         DECL_ARG_TYPE if possible.
11791
11792         PR tree-optimization/47155
11793         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11794         when computing uns.
11795
11796         PR rtl-optimization/47157
11797         * combine.c (try_combine): If undobuf.other_insn becomes
11798         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11799         and set *new_direct_jump_p too.
11800
11801 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11802
11803         PR tree-optimization/47021
11804         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11805
11806 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11807
11808         * gcc.c (process_command): Update copyright notice dates.
11809         * gcov.c (print_version): Likewise.
11810         * gcov-dump.c (print_version): Likewise.
11811         * mips-tfile.c (main): Likewise.
11812         * mips-tdump.c (main): Likewise.
11813
11814 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11815
11816         PR tree-optimization/46801
11817         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11818         aggregate fields start at byte boundary instead of the bit-field flag.
11819
11820 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11821
11822         PR driver/47137
11823         * gcc.c (main): Revert revision 168407.
11824
11825 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11826
11827         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11828
11829 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11830
11831         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11832         vector optab to expand vector/scalar shift, update gimple to vector.
11833
11834 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11835
11836         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11837         a thunk.
11838
11839 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11840
11841         PR tree-optimization/46984
11842         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11843         HOST_WIDE_INT.
11844         (cgraph_create_indirect_edge): Fixed line length.
11845         (cgraph_indirect_call_info): Declare.
11846         (cgraph_make_edge_direct) Update declaration.
11847         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11848         (cgraph_create_indirect_edge): Use it.
11849         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11850         callees.
11851         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11852         the new thunk_delta representation.
11853         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11854         HOST_WIDE_INT.
11855         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11856         (ipa_read_indirect_edge_info): Likewise.
11857         * lto-cgraph.c (output_edge_opt_summary): New function.
11858         (output_node_opt_summary): Call it on all outgoing edges.
11859         (input_edge_opt_summary): New function.
11860         (input_node_opt_summary): Call it on all outgoing edges.
11861
11862 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11863
11864         PR driver/47137
11865         * gcc.c (main): Don't check have_o when settting combine_inputs.
11866
11867 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11868
11869         * regrename.c: Add general comment describing the pass.
11870         (struct du_head): Remove 'length' field.
11871         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11872         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11873         Force renaming to the preferred class (if any) in the first pass and do
11874         not consider registers that belong to it in the second pass.
11875         (create_new_chain): Do not set 'length' field.
11876         (scan_rtx_reg): Likewise.
11877
11878 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11879
11880         PR tree-optimization/47140
11881         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11882         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11883         to bit_value_binop.
11884
11885         PR rtl-optimization/47028
11886         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11887         parm_birth_insn instead of at the beginning of first bb.
11888
11889 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11890
11891         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11892         Remove the word "see" before "@pxref".
11893         * doc/rtl.texi: Remove the word "see" before "@pxref".
11894
11895 2011-01-01  Jan Hubicka  <jh@suse.cz>
11896
11897         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11898         memory.
11899
11900 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11901
11902         PR target/38662
11903         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11904
11905 \f
11906 Copyright (C) 2011 Free Software Foundation, Inc.
11907
11908 Copying and distribution of this file, with or without modification,
11909 are permitted in any medium without royalty provided the copyright
11910 notice and this notice are preserved.