Implement -Wno-maybe-uninitialized
[official-gcc.git] / gcc / ChangeLog
blob248ba57fa80dd1471d8c50ac823a47004e53fb7e
1 2011-04-26  Xinliang David Li  <davidxl@google.com>
3         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass
4          warning code.
5         * c-family/c-opts.c (c_common_handle_option): Set
6         warn_maybe_uninitialized.
7         * opts.c (common_handle_option): Ditto.
8         * common.opt:  New option.
9         * tree-ssa.c (warn_uninit): Add one more parameter.
10         (warn_uninitialized_var): Pass warning code.
11         * tree-flow.h: Interface change.
14 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test
17         TARGET_NEWABI.
18         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
19         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
21 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
24         * config/mips/mips.opt (mmips-tfile): Remove.
26         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
27         mips-tdump reference to ...
28         (Specific, alpha*-dec-osf5.1): ... here.
29         Adapt for Tru64 UNIX.
30         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
31         reference by Tru64 UNIX.
33 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
35         PR debug/48768
36         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
37         is error_mark_node, set value to NULL.
39         PR tree-optimization/48734
40         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
41         if return value from maybe_fold_*_comparsions isn't something
42         the code is prepared to handle.
44 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
46         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
47         mode check.
48         (ext_QIreg_nomode_operands): Remove.
49         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
50         (*andsi_1): Ditto.
51         (*andhi_1): Ditto.
53 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
55         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
57 2011-04-26  Richard Guenther  <rguenther@suse.de>
59         * c-typeck.c (build_unary_op): Do not expand array-refs via
60         pointer arithmetic.  Only adjust qualifiers for function types.
62 2011-04-26  Richard Guenther  <rguenther@suse.de>
64         PR middle-end/48694
65         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
66         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
67         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
68         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
70 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
72         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
73         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
74         * doc/extend.texi: Document __underlying_type.
76 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
78         * config/rs6000/titan.md (automata_option "progress"): Remove.
80 2011-04-25  Jeff Law  <law@redhat.com>
82         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
84 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
86         * system.h (ENUM_BITFIELD): Remove.
88 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
89             Eric Botcazou <ebotcazou@adacore.com>
91         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
92         for STORE_FLAG_VALUE==-1 case.
94 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
96         PR target/43804
97         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
98         LEGITIMATE_PIC_OPERAND_P.
100 2011-04-24  Jan Hubicka  <jh@suse.cz>
102         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
103         WPA hack.
104         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
105         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
106         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
107         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
108         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
109         Sanity check predicate length.
110         (remap_predicate): Likewise; sanity check jump functions.
111         (inline_read_section, inline_write_summary): Sanity check
112         predicate length.
114 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
116         PR other/48748
117         * doc/extend.texi (Type Traits): Document __is_standard_layout,
118         __is_literal_type, and __is_trivial; update throughout about
119         possibly cv-qualified void types.
121 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
123         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
124         testsuite and make it version agnostic.
126 2011-04-22  Jan Hubicka  <jh@suse.cz>
128         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
130 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
132         PR c/48685
133         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
134         to VOID_TYPE even around MODIFY_EXPR.
136 2011-04-22  Mike Stump  <mikestump@comcast.net>
138         * gensupport.c (read_md_rtx): Fix typo in comment.
139         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
140         comment.
142 2011-04-22  Jan Hubicka  <jh@suse.cz>
144         * gengtype.c (open_base_files): Add ipa-inline.h include.
145         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
146         ipa-prop.c; update all uses.
147         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
148         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
149         merge summary of inlined function into former caller.
150         * ipa-inline.c (max_benefit): Remove.
151         (edge_badness): Compensate for removal of benefits.
152         (update_caller_keys): Use
153         reset_node_growth_cache/reset_edge_growth_cache.
154         (update_callee_keys): Likewise.
155         (update_all_callee_keys): Likewise.
156         (inline_small_functions): Do not collect max_benefit; do not reset
157         estimated_growth; call free_growth_caches and initialize_growth_caches.
158         * ipa-inline.h (struct condition, type clause_t, struct predicate,
159         struct size_time_entry): New structures.
160         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
161         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
162         and estimated_growth.
163         (edge_growth_cache_entry): New structure.
164         (node_growth_cache, edge_growth_cache): New global vars.
165         (estimate_growth): Turn into inline.
166         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
167         initialize_growth_caches, free_growth_caches): Declare.
168         (estimate_edge_growth): Rewrite.
169         (estimate_edge_time): Implement as inline cache lookup.
170         (reset_node_growth_cache, reset_edge_growth_cache): New inline
171         functions.
172         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
173         (NUM_CONDITIONS): New constant.
174         (predicate_conditions): New enum.
175         (IS_NOT_CONSTANT): New constant.
176         (edge_removal_hook_holder): New var.
177         (node_growth_cache, edge_growth_cache): New global vars.
178         (true_predicate, single_cond_predicate, false_predicate,
179         not_inlined_predicate, add_condition, add_clause, and_predicates,
180         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
181         dump_clause, dump_predicate, account_size_time,
182         evaulate_conditions_for_edge): New functions.
183         (inline_summary_alloc): Move to heap.
184         (inline_node_removal_hook): Clear condition and entry vectors.
185         (inline_edge_removal_hook): New function.
186         (initialize_growth_caches, free_growth_caches): New function.
187         (dump_inline_summary): Update.
188         (edge_execution_predicate): New function.
189         (will_be_nonconstant_predicate): New function.
190         (estimate_function_body_sizes): Compute BB and constantness predicates.
191         (compute_inline_parameters): Do not clear estimated_growth.
192         (estimate_edge_size_and_time): New function.
193         (estimate_calls_size_and_time): New function.
194         (estimate_callee_size_and_time): New function.
195         (remap_predicate): New function.
196         (inline_merge_summary): New function.
197         (do_estimate_edge_time): New function based on...
198         (estimate_edge_time): ... this one.
199         (do_estimate_edge_growth): New function.
200         (do_estimate_growth): New function based on....
201         (estimate_growth): ... this one.
202         (inline_analyze_function): Analyze after deciding on jump functions.
203         (inline_read_section): New function.
204         (inline_read_summary): Use it.
205         (inline_write_summary): Write all the new data.
206         * ipa-prop.c (ipa_get_param_decl_index): Export.
207         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
208         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
209         Declare.
210         (ipa_get_lattice): Move here from ipa-cp.c
211         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
212         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
213         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
214         cgraph_edge_inlinable_p): Remove.
215         * cgraphunit.c: Include ipainline.h
216         (cgraph_process_new_functions): Update call of
217         compute_inline_parameters.
219 2011-04-22  Richard Guenther  <rguenther@suse.de>
221         * tree.c (build_int_cst): Properly create canonicalized integer
222         constants.
223         (build_int_cst_type): Remove scary comments.
225 2011-04-22  Xinliang David Li  <davidxl@google.com>
227         * toplev.c (process_options): Enable -Werror=coverage-mismatch
228         by default when -Wno-error is not specified.
229         * opts-global.c (decode_options): Remove call to
230         control_warning_options.
232 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
234         PR tree-optimization/48717
235         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
236         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
238 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
240         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
241         definition where used.
243 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
245         PR c/48716
246         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
247         TREE_STATIC variables declared inside of some OpenMP construct.
249 2011-04-22  Martin Jambor  <mjambor@suse.cz>
251         PR middle-end/48585
252         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
254 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
256         PR c/36750
257         * c-typeck.c (pop_init_level): Do not warn about initializing
258         with ` = {0}'.
260 2011-04-22  Alan Modra  <amodra@gmail.com>
262         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
263         when returning call_cookie.
264         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
265         pointers, to functions with no more vector args than the current
266         function, and some non-local calls for ABI_V4.
267         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
268         sibcall_nonlocal_aix64): Combine to ..
269         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
270         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
271         (sibcall_value_nonlocal_aix<mode>): ..likewise.
272         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
273         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
274         operand.
275         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
276         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
277         sibcall_value_symbolic_64): Delete.
279 2011-04-21  Xinliang David Li  <davidxl@google.com>
281         * cgraph.h: Remove pid.
282         * cgraph.c: Remove pid.
283         * value-prof.c (init_node_map): New function.
284         (del_node_map): New function.
285         (find_func_by_funcdef_no): New function.
286         (gimple_ic_transform): Call new function.
287         * cgraphunit.c (cgraph_finalize_function): Remove pid.
288         * function.c (get_last_funcdef_no): New function.
289         * function.h (get_last_funcdef_no): New function.
290         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
291         to libgcov function.
292         (tree-profiling): Call node map init and delete function.
294 2011-04-21  Ian Lance Taylor  <iant@google.com>
296         * godump.c (go_format_type): Use exported Go name for anonymous
297         field name.
299 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
301         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
302         Call builtin_function_type_list instead of builtin_function_type.
303         (UNARY, BINARY, TRINARY, QUAD): Likewise.
305 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
307         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
308         build_function_type_list instead of build_function_type.
309         Delete variable `endlink'.
311 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
313         * config/s390/s390.c (s390_init_builtins): Call
314         build_function_type_list instead of build_function_type.
316 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
318         * config/ia64/ia64.c (ia64_init_builtins): Call
319         build_function_type_list instead of builtin_function_type.
321 2011-04-21  Easwaran Raman  <eraman@google.com>
323         * cfgexpand.c (stack_var): Remove OFFSET...
324         (add_stack_var): ...and its reference here...
325         (expand_stack_vars): ...and here.
326         (stack_var_cmp): Sort by descending order of size.
327         (partition_stack_vars): Change heuristic.
328         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
329         (dump_stack_var_partition): Add newline after each partition.
331 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
332             Jeff Law  <law@redhat.com>
334         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
335         * gengtype.c (matching_file_name_substitute): Likewise.
337 2011-04-21  Richard Guenther  <rguenther@suse.de>
339         PR lto/48703
340         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
342 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
344         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
346 2011-04-21  Richard Guenther  <rguenther@suse.de>
348         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
349         file name.
351 2011-04-21  Richard Guenther  <rguenther@suse.de>
353         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
354         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
355         Use DECL_P, not SSA_VAR_P.
356         (ptr_derefs_may_alias_p): Likewise.
357         (ptr_deref_may_alias_ref_p_1): Likewise.
358         (decl_refs_may_alias_p): Likewise.
359         (refs_may_alias_p_1): Likewise.
360         (ref_maybe_used_by_call_p_1): Likewise.
361         (call_may_clobber_ref_p_1): Likewise.
362         (indirect_ref_may_alias_decl_p): Assume indirect refrences
363         are either MEM_REF or TARGET_MEM_REF.
364         (indirect_refs_may_alias_p): Likewise.
365         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
366         for MEM_EXPR of indirect calls.
368 2011-04-21  Tristan Gingold  <gingold@adacore.com>
370         * vmsdbgout.c (write_srccorr): Compute file length from the string.
371         (dst_file_info_struct): Remove flen field.
372         (lookup_filename): Remove code that set flen field.
374 2011-04-21  Tristan Gingold  <gingold@adacore.com>
376         * config/ia64/ia64.c (ia64_start_function): Add a guard.
378 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
380         PR target/48708
381         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
382         vec_extract and vec_concat for non-SSE4_1 targets.
384 2011-04-21  Richard Guenther  <rguenther@suse.de>
386         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
387         return statements.
389 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
391         * config/i386/cygming.h (union tree_node, TREE): Don't define or
392         undefine.
393         (FILE): Don't undefine.
395 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
397         * config/alpha/alpha.c (struct machine_function): Use rtx, not
398         struct rtx_def *.
399         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
400         struct rtx_def *.
401         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
402         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
403         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
404         rtx_def *.
405         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
406         definitions where used.
407         * config/microblaze/microblaze.h (struct microblaze_args): Use
408         rtx, not struct rtx_def *.
409         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
410         rtx_def *.
411         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
412         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
413         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
414         not struct rtx_def *.
415         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
416         struct rtx_def *.
417         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
418         rtx_def *.
419         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
421 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
423         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
424         operand_equal_p to compare DR_BASE_ADDRESSes.
425         (vect_check_interleaving): Likewise.
427 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
429         PR target/46329
430         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
431         for all Neon struct constants.
433 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
435         * target.def (legitimate_constant_p): New hook.
436         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
437         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
438         * doc/tm.texi: Regenerate.
439         * hooks.h (hook_bool_mode_rtx_true): Declare.
440         * hooks.c (hook_bool_mode_rtx_true): Define.
441         * system.h (LEGITIMATE_CONSTANT_P): Poison.
442         * calls.c (precompute_register_parameters): Replace uses of
443         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
444         (emit_library_call_value_1): Likewise.
445         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
446         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
447         * ira-costs.c (scan_one_insn): Likewise.
448         * recog.c (general_operand, immediate_operand): Likewise.
449         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
450         * reload1.c (init_eliminable_invariants): Likewise.
452         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
453         mode argument.
454         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
455         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
456         argument.
457         (TARGET_LEGITIMATE_CONSTANT_P): Define.
458         * config/alpha/predicates.md (input_operand): Update call to
459         alpha_legitimate_constant_p.
461         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
462         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
463         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
464         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
465         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
466         (arm_legitimate_constant_p): New functions.
467         (arm_cannot_force_const_mem): Make static.
469         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
471         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
472         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
473         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
474         instead of bfin_legitimate_constant_p.
475         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
476         (TARGET_LEGITIMATE_CONSTANT_P): Define.
478         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
480         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
482         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
483         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
484         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
485         (frv_legitimate_constant_p): Make static.  Add a mode argument.
487         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
488         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
489         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
491         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
492         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
493         * config/i386/i386.c (legitimate_constant_p): Rename to...
494         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
495         argument.
496         (ix86_cannot_force_const_mem): Update accordingly.
497         (ix86_legitimate_address_p): Likewise.
498         (TARGET_LEGITIMATE_CONSTANT_P): Define.
499         * config/i386/i386.md: Update commentary.
501         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
502         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
503         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
504         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
506         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
508         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
509         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
510         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
511         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
513         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
514         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
515         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
517         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
518         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
519         (m32r_legitimate_constant_p): New function.
521         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
522         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
523         LEGITIMATE_CONSTANT_P.
524         (LEGITIMATE_CONSTANT_P): Delete.
525         * config/m68k/m68k.c (m68k_expand_prologue): Call
526         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
527         (m68k_legitimate_constant_p): New function.
528         * config/m68k/m68k.md: Update comments.
530         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
531         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
532         (mcore_legitimate_constant_p): New function.
534         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
535         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
536         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
537         Add a mode argument.
538         (mep_legitimate_address): Update accordingly.
539         (TARGET_LEGITIMATE_CONSTANT_P): Define.
541         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
542         Delete.
543         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
544         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
545         static.  Check OP's mode for VOIDmode.
546         (microblaze_legitimate_constant_p): New function.
547         (TARGET_LEGITIMATE_CONSTANT_P): Define.
549         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
550         * config/mips/mips.c (mips_legitimate_constant_p): New function.
551         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
552         (TARGET_LEGITIMATE_CONSTANT_P): Define.
553         * config/mips/predicates.md: Update comments.
555         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
556         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
557         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
558         (mmix_legitimate_constant_p): Make static, return a bool, and take
559         a mode argument.
560         (mmix_print_operand_address): Update accordingly.
562         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
563         Delete.
564         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
565         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
566         static.  Add a mode argument.
567         (TARGET_LEGITIMATE_CONSTANT_P): Define.
569         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
571         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
572         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
573         (pa_legitimate_constant_p): New function.
575         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
577         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
578         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
579         (pdp11_legitimate_constant_p): New function.
581         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
582         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
583         (rs6000_legitimate_constant_p): New function.
585         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
586         (rx_legitimate_constant_p): ...this.
587         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
588         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
589         (rx_legitimate_constant_p): ...this.
590         (TARGET_LEGITIMATE_CONSTANT_P): Define.
591         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
593         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
594         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
595         * config/s390/s390.c (legitimate_constant_p): Rename to...
596         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
597         and add a mode argument.
598         (TARGET_LEGITIMATE_CONSTANT_P): Define.
600         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
602         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
603         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
604         (sh_legitimate_constant_p): New function.
606         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
607         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
608         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
609         (legitimate_constant_p): Rename to...
610         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
611         argument.
612         (constant_address_p): Update accordingly.
614         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
615         argument and return a bool.
616         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
617         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
618         (spu_legitimate_constant_p): Add a mode argument and return a bool.
619         (spu_rtx_costs): Update accordingly.
620         * config/spu/predicates.md (vec_imm_operand): Likewise.
622         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
624         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
625         * config/v850/v850.c (v850_legitimate_constant_p): New function.
626         (TARGET_LEGITIMATE_CONSTANT_P): Define.
628         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
629         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
630         * config/vax/vax.c (legitimate_constant_p): Likewise.
632         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
633         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
634         (xtensa_legitimate_constant_p): New function.
636 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
638         * target.def (cannot_force_const_mem): Add a mode argument.
639         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
640         * doc/tm.texi: Regenerate.
641         * hooks.h (hook_bool_mode_rtx_false): Declare.
642         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
643         (hook_bool_mode_const_rtx_true): Likewise.
644         (hook_bool_mode_rtx_false): New function.
645         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
646         to be non-VOID.  Update call to cannot_force_const_mem.
647         (find_reloads): Update accordingly.
648         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
649         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
650         argument.
651         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
652         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
653         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
654         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
655         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
656         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
657         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
658         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
659         (m68k_cannot_force_const_mem): ...this new function.
660         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
661         argument.
662         (mips_const_insns, mips_legitimize_const_move): Update calls.
663         (mips_secondary_reload_class): Likewise.
664         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
665         (pa_cannot_force_const_mem): ...this new function.
666         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
667         (rs6000_cannot_force_const_mem): ...this new function.
668         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
669         argument.
670         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
671         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
672         to...
673         (xtensa_cannot_force_const_mem): ...this new function.
675 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
677         * config/mips/mips.c (mips16_build_function_stub): Call
678         build_function_type_list instead of build_function_type.
679         (mips16_build_call_stub): Likewise.
681 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
683         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
684         instead of build_function_type.
686 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
688         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
689         instead of build_function_type.
691 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
693         PR target/48678
694         * config/i386/i386.md (insv): Change operand 0 constraint to
695         "register_operand".  Change operand 1 and 2 constraint to
696         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
697         * config/i386/sse.md (sse4_1_pinsrb): Export.
698         (sse2_pinsrw): Ditto.
699         (sse4_1_pinsrd): Ditto.
700         (sse4_1_pinsrq): Ditto.
701         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
702         * config/i386/i386.c (ix86_expand_pinsr): New.
704 2011-04-20  Easwaran Raman  <eraman@google.com>
706         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
707         containing union type only with -fstrict-aliasing.
709 2011-04-20  Jim Meyering  <meyering@redhat.com>
711         Remove useless if-before-free tests.
712         * calls.c (expand_call, save_area): Likewise.
713         * cfgcleanup.c (try_forward_edges): Likewise.
714         * collect2.c (collect_execute): Likewise.
715         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
716         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
717         * coverage.c (coverage_checksum_string): Likewise.
718         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
719         * cselib.c (cselib_init): Likewise.
720         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
721         (df_set_clean_cfg): Likewise.
722         * function.c (free_after_compilation): Likewise.
723         * gcc.c (do_spec_1, main): Likewise.
724         * gcov.c (create_file_names): Likewise.
725         * gensupport.c (identify_predicable_attribute): Likewise.
726         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
727         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
728         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
729         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
730         * ipa-pure-const.c (local_pure_const): Likewise.
731         * ipa-reference.c (propagate): Likewise.
732         * ira-costs.c (free_ira_costs): Likewise.
733         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
734         * matrix-reorg.c (mat_free): Likewise.
735         * prefix.c (get_key_value): Likewise.
736         * profile.c (compute_value_histograms): Likewise.
737         * reload1.c (free_reg_equiv): Likewise.
738         * sched-deps.c (free_deps): Likewise.
739         * sel-sched-ir.c (fence_clear): Likewise.
740         * sese.c (set_rename, if_region_set_false_region): Likewise.
741         * tree-data-ref.c (free_rdg): Likewise.
742         * tree-eh.c (lower_try_finally): Likewise.
743         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
744         * tree-ssa-live.c (delete_var_map): Likewise.
745         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
746         * tree-ssa-pre.c (phi_trans_add): Likewise.
748 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
750         PR tree-optimization/48611
751         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
752         beyond ERT_MUST_NOT_THROW region.
754 2011-04-20  Catherine Moore  <clm@codesourcery.com>
756         * config/mips/mips.opt (mfix-24k): New.
757         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
758         * config/mips/mips.md (length): Increase by 4 for stores if
759         fixing 24K errata.
760         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
761         all noreorder if fixing 24K errata.
762         * doc/invoke.texi: Document mfix-24k.
764 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
766         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
767         quad-word modes, reduce to 9-bit index range when above 1016 limit.
769 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
771         * config/arm/arm.c (arm_gen_constant): Move movw support ....
772         (const_ok_for_op): ... to here.
774 2011-04-20  Kai Tietz  <ktietz@redhat.com>
776         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
777         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
779 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
781         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
783 2011-04-20  Richard Guenther  <rguenther@suse.de>
785         PR tree-optimization/47892
786         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
787         are if-convertible.
789 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
791         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
793 2011-04-20  Tristan Gingold  <gingold@adacore.com>
795         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
797 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
799         PR target/18145
801         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
802         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
803         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
804         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
805         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
807         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
808         New prototype.
810         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
811         (avr_asm_named_section, avr_asm_output_aligned_common,
812         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
813         New functions to update...
814         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
815         (avr_asm_init_sections): Overwrite section callbacks for
816         data_section, bss_section.
817         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
818         from here to...
819         (avr_file_end): ...here.
821 2011-04-20  Richard Guenther  <rguenther@suse.de>
823         PR middle-end/48695
824         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
825         objects and types here.  Adjust for their offset before comparing.
827 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
829         * tree-vect-stmts.c (vectorizable_store): Only chain one related
830         statement per copy.
832 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
834         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
835         (GIMPLE_H): Include $(INTERNAL_FN_H).
836         (OBJS-common): Add internal-fn.o.
837         (internal-fn.o): New rule.
838         * internal-fn.def: New file.
839         * internal-fn.h: Likewise.
840         * internal-fn.c: Likewise.
841         * gimple.h: Include internal-fn.h.
842         (GF_CALL_INTERNAL): New gf_mask.
843         (gimple_statement_call): Put fntype into a union with a new
844         internal_fn field.
845         (gimple_build_call_internal): Declare.
846         (gimple_build_call_internal_vec): Likewise.
847         (gimple_call_same_target_p): Likewise.
848         (gimple_call_internal_p): New function.
849         (gimple_call_internal_fn): Likewise.
850         (gimple_call_fntype): Return null for internal calls.
851         (gimple_call_set_fntype): Assert that the function is not internal.
852         (gimple_call_set_fn): Likewise.
853         (gimple_call_set_fndecl): Likewise.
854         (gimple_call_set_internal_fn): New function.
855         (gimple_call_addr_fndecl): Handle null functions.
856         (gimple_call_return_type): Likewise null types.
857         * gimple.c (gimple_build_call_internal_1): New function.
858         (gimple_build_call_internal): Likewise.
859         (gimple_build_call_internal_vec): Likewise.
860         (gimple_call_same_target_p): Likewise.
861         (gimple_call_flags): Handle calls to internal functions.
862         (gimple_call_fnspec): New function.
863         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
864         (gimple_has_side_effects): Handle null functions.
865         (gimple_rhs_has_side_effects): Likewise.
866         (gimple_call_copy_skip_args): Handle calls to internal functions.
867         * cfgexpand.c (expand_call_stmt): Likewise.
868         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
869         * gimple-fold.c (gimple_fold_call): Handle null functions.
870         (gimple_fold_stmt_to_constant_1): Don't fold
871         calls to internal functions.
872         * gimple-low.c (gimple_check_call_args): Handle calls to internal
873         functions.
874         * gimple-pretty-print.c (dump_gimple_call): Likewise.
875         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
876         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
877         (do_warn_unused_result): Likewise.
878         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
879         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
880         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
881         the target of a call.
882         (initialize_hash_element): Update accordingly.
883         (hashable_expr_equal_p): Use gimple_call_same_target_p.
884         (iterative_hash_hashable_expr): Handle calls to internal functions.
885         (print_expr_hash_elt): Likewise.
886         * tree-ssa-pre.c (can_value_number_call): Likewise.
887         (eliminate): Handle null functions.
888         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
889         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
890         (find_func_aliases): Likewise.
891         * value-prof.c (gimple_ic_transform): Likewise.
892         (gimple_indirect_call_to_profile): Likewise.
893         * lto-streamer-in.c (input_gimple_stmt): Likewise.
894         * lto-streamer-out.c (output_gimple_stmt): Likewise.
896 2011-04-19  Jan Hubicka  <jh@suse.cz>
898         * ipa-inline-transform.c (save_inline_function_body): Add comments.
899         * ipa-inline.c (inline_small_functions): Compute summaries first,
900         populate heap later.
902 2011-04-19  Jan Hubicka  <jh@suse.cz>
904         * cgraph.h (save_inline_function_body): Remove.
905         * ipa-inline-transform.c: New file, broke out of...
906         * ipa-inline.c: ... this one; Update toplevel comment.
907         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
908         make global.
909         (update_noncloned_frequencies): Move to ipa-inline-transform.c
910         (cgraph_mark_inline_edge): Rename to inline_call; move to
911         ipa-inline-transform.c.
912         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
913         move to ipa-inline-transform.c
914         (recursive_inlining, inline_small_functions, flatten_function,
915         ipa_inline, inline_always_inline_functions,
916         early_inline_small_functions): Update.
917         (inline_transform): Move to ipa-inline-transform.c.
918         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
919         Declare.
920         * Makefile.in (ipa-inline-transform.o): New file.
921         * cgraphunit.c (save_inline_function_body): Move to
922         ipa-inline-transform.c
924 2011-04-19  DJ Delorie  <dj@redhat.com>
926         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
927         registers if we already know there aren't any.
928         (m32c_emit_epilogue): Don't emit a barrier here.
929         (m32c_emit_eh_epilogue): Likewise.
930         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
931         operands at expand time.
932         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
933         int" wchar type.
934         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
935         duplicates.  Provide aliases instead.
936         * config/m32c/prologue.md (eh_return): Emit a barrier here.
937         (eh_epilogue): Add a "(return)" here as a hint to other parts of
938         the compiler.
940 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
942         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
943         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
944         (general_or_i64_p, sparc_register_move_cost): New function.
946 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
948         * doc/install.texi (Configuration, --enable-threads): Remove mach.
949         Add lynx, mipssde.  Sort table.
951 2011-04-19  Xinliang David Li  <davidxl@google.com>
953         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
954         not negative.
956 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
958         PR target/48678
959         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
960         is a SUBREG with non-MODE_INT mode inside of it.
962 2011-04-19  Martin Jambor  <mjambor@suse.cz>
964         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
965         also according to actual contants.
966         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
967         (gimple_fold_call): Use it.
968         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
970 2011-04-19  Martin Jambor  <mjambor@suse.cz>
972         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
973         non-pointer assignments.
975 2011-04-19  Martin Jambor  <mjambor@suse.cz>
977         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
978         account anc_offset and otr_type from the indirect edge info.
979         * ipa-prop.c (get_ancestor_addr_info): New function.
980         (compute_complex_ancestor_jump_func): Assignment analysis moved to
981         get_ancestor_addr_info, call it.
982         (ipa_note_param_call): Do not initialize information about polymorphic
983         calls, return the indirect call graph edge.  Remove the last
984         parameter, adjust all callers.
985         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
986         parameters.  Initialize polymorphic information in the indirect edge.
988 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
990         PR lto/48148
991         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
992         the types if they have different enumeration identifiers.
994 2011-04-19  Jan Hubicka  <jh@suse.cz>
996         * cgraph.h (cgraph_optimize_for_size_p): Declare.
997         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
998         * predict.c (cgraph_optimize_for_size_p): Break out from ...
999         (optimize_function_for_size_p) ... here.
1001 2011-04-19  Richard Guenther  <rguenther@suse.de>
1003         PR lto/48207
1004         * tree.c (free_lang_data): Do not reset the decl-assembler-name
1005         langhook.
1007 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1009         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1010         if DECL_NO_INLINE_WARNING_P is set on the function.
1012 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
1014         PR fortran/47976
1015         * reload1.c (inc_for_reload): Return void. All callers changed.
1016         (emit_input_reload_insns): Don't try to delete previous output
1017         reloads to a register, or record spill_reg_store for autoincs.
1019 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
1021         * gengtype.h: Updated copyright year.
1022         (struct input_file_st): Add inpisplugin field.
1023         (type_fileloc): New function.
1024         * gengtype.c
1025         (write_typed_struct_alloc_def): Add gcc_assert.
1026         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1027         (write_typed_alloc_defns): Don't output for plugin files.
1028         (input_file_by_name): Clear inpisplugin field.
1029         (main): Set inpisplugin field for plugin files.
1031 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
1033         * gengtype-state.c (string_eq): New.
1034         (read_state): Use string_eq instead of strcmp when creating the
1035         state_ident_tab.
1037 2011-04-19  Wei Guozhi  <carrot@google.com>
1039         PR target/47855
1040         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1041         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1042         linkage.
1043         * config/arm/constraints.md (Uu): New constraint.
1044         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1046 2011-04-19  Tristan Gingold  <gingold@adacore.com>
1048         * config.gcc (-*-*-*vms): Added.
1049         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1050         definitions moved.
1051         * config/vms/vms-ld.c: New file.
1052         * config/vms/vms-ar.c: New file.
1053         * config/vms/t-vmsnative: New file.
1055 2011-04-18  Xinliang David Li  <davidxl@google.com>
1057         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1059 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1061         PR middle-end/48661
1062         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1063         if TREE_TYPE (v) is non-NULL.
1065         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1066         gimple_get_virt_mehtod_for_binfo.
1067         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1068         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1069         callers.
1070         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1072 2011-04-18  Michael Matz  <matz@suse.de>
1073             Steve Ellcey  <sje@cup.hp.com>
1075         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1076         use its mode as source mode if it isn't VOIDmode.
1078 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
1080         * doc/passes.texi: Fill crossref nodes.
1082 2011-04-18  Jim Meyering  <meyering@redhat.com>
1084         Fix doubled-word typos in comments and strings
1085         * config/alpha/vms-unwind.h: s/for for/for/
1086         * config/arm/unwind-arm.h: Likewise.
1087         * config/microblaze/microblaze.c: Likewise.
1088         * config/sh/constraints.md: s/in in/in/
1089         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1091 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
1093         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1094         (AVX_FLOAT_MODE_P): Ditto.
1095         (AVX128_VEC_FLOAT_MODE_P): Ditto.
1096         (AVX256_VEC_FLOAT_MODE_P): Ditto.
1097         (AVX_VEC_FLOAT_MODE_P): Ditto.
1098         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1099         (UNSPEC_MASKSTORE): Ditto.
1100         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1101         Merge from <sse>_movmsk<ssemodesuffix> and
1102         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
1103         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
1104         iterator.
1105         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1106         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1107         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1109 2011-04-18  Jan Hubicka  <jh@suse.cz>
1111         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1113         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1114         (want_inline_function_called_once_p): Break out the logic from
1115         ipa_inline.
1116         (edge_badness): Ensure that profile is not misupdated.
1117         (lookup_recursive_calls): Prioritize by call frequencies.
1118         (inline_small_functions): Move program size estimates here;
1119         actually process whole queue even when unit growth has been
1120         met. (to properly compute inline_failed reasons and for the
1121         case unit size decrease.) Revisit comments on recursive inlining.
1122         (ipa_inline): Remove unit summary code; first inline hot calls
1123         of functions called once, cold calls next.
1124         (order, nnodes): Remove unused variables.
1125         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1126         (GTFILES): Remove ipa-inline.c
1127         * sel-sched.c (fill_insns): Silence uninitialized var warning.
1129 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1131         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1133 2011-04-18  Jie Zhang  <jie@codesourcery.com>
1134             Richard Earnshaw  <rearnsha@arm.com>
1136         * arm.c (neon_builtin_type_bits): Remove.
1137         (typedef enum neon_builtin_mode): New.
1138         (T_MAX): Don't define.
1139         (typedef enum neon_builtin_datum): Remove bits, codes[],
1140         num_vars and base_fcode.  Add mode, code and fcode.
1141         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1142         VAR10): Change accordingly.
1143         (neon_builtin_data[]): Change accordingly
1144         (arm_init_neon_builtins): Change accordingly.
1145         (neon_builtin_compare): Remove.
1146         (locate_neon_builtin_icode): Remove.
1147         (arm_expand_neon_builtin): Change accordingly.
1149         * arm.h (enum arm_builtins): Move to ...
1150         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1152         * arm.c (arm_builtin_decl): Declare.
1153         (TARGET_BUILTIN_DECL): Define.
1154         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1155         (arm_builtin_decls[]): New.
1156         (arm_init_neon_builtins): Store builtin declarations in
1157         arm_builtin_decls[].
1158         (arm_init_tls_builtins): Likewise.
1159         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
1160         (arm_builtin_decl): New.
1162 2011-04-18  Richard Guenther  <rguenther@suse.de>
1164         * tree.c (upper_bound_in_type): Build properly canonicalized
1165         INTEGER_CSTs.
1166         (lower_bound_in_type): Likewise.
1168 2011-04-18  Richard Guenther  <rguenther@suse.de>
1170         * gimple.h (gimple_call_addr_fndecl): New function.
1171         (gimple_call_fndecl): Use it.
1172         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1173         for direct calls.
1174         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1175         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1177 2011-04-18  Richard Guenther  <rguenther@suse.de>
1179         PR middle-end/48650
1180         * tree.c (build_string): STRING_CST is now derived from tree_typed.
1182 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1184         PR lto/48492
1185         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1186         DECL_IN_CONSTANT_POOL without RTL.
1188 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
1189             Ira Rosen  <ira.rosen@linaro.org>
1191         PR target/48252
1192         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1193         to match neon_vzip/vuzp/vtrn_internal.
1194         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1195         outputs explicitly dependent on both inputs.
1196         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1198 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1200         PR tree-optimization/48616
1201         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1202         whether the shift is by scalar or vector based on whether all SLP
1203         scalar stmts have the same rhs.
1205 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
1207         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1208         memory operands.
1210 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1212         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1213         registers.
1215 2011-04-17  Jan Hubicka  <jh@suse.cz>
1217         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1218         * cgrpahunit.c (cgraph_finalize_function): Do not set
1219         finalized_by_frontend.
1220         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1221         finalized_by_frontend.
1223 2011-04-17  Jan Hubicka  <jh@suse.cz>
1225         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1226         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1227         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1228         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1229         method.
1230         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1231         gimple-fold.c
1232         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1234 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1236         PR lto/48538
1237         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1238         is non-null before accessing it.
1239         (input_cgraph): Remove trailing spaces.
1241 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1243         * params.def (sms-min-sc): New param flag.
1244         * modulo-sched.c (sms_schedule): Use it.
1245         * doc/invoke.texi (sms-min-sc): Document it.
1247 2011-04-17  Jan Hubicka  <jh@suse.cz>
1249         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1250         present, also set gimple_call_set_cannot_inline.
1251         * ipa-inline.c: Update toplevel comment.
1252         (MAX_TIME): Remove.
1253         (cgraph_clone_inlined_nodes): Fix linebreaks.
1254         (cgraph_check_inline_limits): Restructure to ...
1255         (caller_growth_limits): ... this one; be more tolerant
1256         on growth in nested inline chains; add explanatory comment;
1257         fix stack accounting thinko introduced by previous patch.
1258         (cgraph_default_inline_p): Remove.
1259         (report_inline_failed_reason): New function.
1260         (can_inline_edge_p): New function.
1261         (can_early_inline_edge_p): New function.
1262         (leaf_node_p): Move upwards in file.
1263         (want_early_inline_function_p): New function.
1264         (want_inline_small_function_p): New function.
1265         (want_inline_self_recursive_call_p): New function.
1266         (cgraph_edge_badness): Rename to ...
1267         (edge_badness) ... this one; fix linebreaks.
1268         (update_edge_key): Update call of edge_baddness; add
1269         detailed dump about queue updates.
1270         (update_caller_keys): Use can_inline_edge_p and
1271         want_inline_small_function_p.
1272         (cgraph_decide_recursive_inlining): Rename to...
1273         (recursive_inlining): Use can_inline_edge_p and
1274         want_inline_self_recursive_call_p; simplify and remove no longer
1275         valid FIXME.
1276         (cgraph_set_inline_failed): Remove.
1277         (add_new_edges_to_heap): Use can_inline_edge_p and
1278         want_inline_small_function_p.
1279         (cgraph_decide_inlining_of_small_functions): Rename to ...
1280         (inline_small_functions): ... this one; cleanup; use
1281         can/want predicates; cleanup debug ouput; work edges till fibheap
1282         is exhausted and do not stop once unit growth is reached; remove
1283         later loop processing remaining edges.
1284         (cgraph_flatten): Rename to ...
1285         (flatten_function): ... this one; use can_inline_edge_p
1286         and can_early_inline_edge_p predicates.
1287         (cgraph_decide_inlining): Rename to ...
1288         (ipa_inline): ... this one; remove unreachable nodes before
1289         inlining functions called once; simplify the pass.
1290         (cgraph_perform_always_inlining): Rename to ...
1291         (inline_always_inline_functions): ... this one; use
1292         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1293         (cgraph_decide_inlining_incrementally): Rename to ...
1294         (early_inline_small_functions): ... this one; simplify
1295         using new predicates; cleanup; make dumps prettier.
1296         (cgraph_early_inlining): Rename to ...
1297         (early_inliner): newer inline regular functions into always-inlines;
1298         fix updating of call stmt summaries.
1299         (pass_early_inline): Update for new names.
1300         (inline_transform): Fix formating.
1301         (gate_cgraph_decide_inlining): Rename to ...
1302         (pass_ipa_inline): ... this one.
1303         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1304         * ipa-inline-analysis.c (dump_inline_summary): Update.
1305         (compute_inline_parameters): Do not compute disregard_inline_limits;
1306         look for mismatching arguments.
1307         (estimate_growth): Fix handlig of non-trivial self recursion.
1308         (inline_read_summary): Do not read info->disregard_inline_limits.
1309         (inline_write_summary): Do not write info->disregard_inline_limits.
1310         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1311         and move all checks into can_inline_edge_p predicate; re-enable code
1312         comparing optimization levels.
1313         (expand_call_inline): Do not test inline_forbidden_into_p.
1314         * Makefile.in (ipa-inline.o): Update arguments.
1316 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1318         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1320 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1322         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1324 2011-04-17  Michael Matz  <matz@suse.de>
1326         PR tree-optimization/48622
1327         PR lto/48645
1328         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1329         in same order as they're written.
1331 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1333         * config/pa/predicates.md: Reorganize and simplify predicates.
1334         Eliminate duplicate code checks.
1335         (arith_operand): Rename to arith14_operand
1336         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1337         * config/pa/pa.md: Use renamed operands.
1338         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1339         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1340         arith11_operand, adddi3_operand, indexed_memory_operand,
1341         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1342         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1343         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1344         move_dest_operand, move_src_operand, prefetch_cc_operand,
1345         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1346         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1347         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1348         div_operand, int5_operand, movb_comparison_operator,
1349         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1350         arith_double_operand, ireg_operand, lhs_lshift_operand,
1351         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1352         integer_store_memory_operand): Likewise.
1353         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1354         (integer_store_memory_operand, read_only_operand,
1355         function_label_operand, borx_reg_operand,
1356         non_hard_reg_operand): Likewise.
1357         (eq_neq_comparison_operator): Delete unused operator.
1358         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1359         function_label_operand.
1360         (emit_move_sequence): Likewise.
1362 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1364         * config/i386/sse.md (sseunpackmode): New mode attribute.
1365         (ssepackmode): Ditto.
1366         (vec_pack_trunc_<mode>): Macroize expander from
1367         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1368         (vec_unpacks_lo_<mode>): Macroize expander from
1369         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1370         (vec_unpacks_hi_<mode>): Macroize expander from
1371         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1372         (vec_unpacku_lo_<mode>): Macroize expander from
1373         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1374         (vec_unpacku_hi_<mode>): Macroize expander from
1375         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1376         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1377         ix86_expand_sse4_unpack.
1378         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1380 2011-04-16  Jan Hubicka  <jh@suse.cz>
1382         * cgraphbuild.c: Include ipa-inline.h.
1383         (reset_inline_failed): Use initialize_inline_failed.
1384         * cgraph.c: Include ipa-inline.h.
1385         (cgraph_create_node_1): Do not initialize estimated_growth.
1386         (initialize_inline_failed): More to ipa-inline-analysis.c
1387         (dump_cgraph_node): Do not dump inline flags.
1388         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1389         and disregard_inline_limits flags.
1390         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1391         time, size, estimated_growth.
1392         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1393         Update.
1394         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1395         DECL_DISREGARD_INLINE_LIMITS.
1396         (cgraph_analyze_function): Do not initialize
1397         node->local.disregard_inline_limits.
1398         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1399         inlinable, versionable and disregard_inline_limits.
1400         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1401         cgraph_check_inline_limits, cgraph_default_inline_p,
1402         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1403         add_new_edges_to_heap): Update.
1404         (cgraph_decide_inlining_of_small_function): Update; set
1405         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1406         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1407         cgraph_decide_inlining_incrementally): Update.
1408         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1409         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1410         time, size and estimated_growth parameters.
1411         (estimate_edge_growth): Update.
1412         (initialize_inline_failed): Declare.
1413         * ipa-split.c: Include ipa-inline.h
1414         (execute_split_functions): Update.
1415         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1416         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1417         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1418         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1419         estimated_growth to INT_MIN.
1420         (inline_node_duplication_hook): Likewise.
1421         (dump_inline_summary): Dump new fields.
1422         (compute_inline_parameters): Update.
1423         (estimate_edge_time, estimate_time_after_inlining,
1424         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1425         inline_write_summary):
1426         (initialize_inline_failed): Move here from cgraph.c.
1427         * tree-sra.c: Include ipa-inline.h.
1428         (ipa_sra_preliminary_function_checks): Update.
1429         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1430         ipa-inline.h.
1432 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1434         * config/i386/sse.md (V16): New mode iterator.
1435         (VI1, VI8): Ditto.
1436         (AVXMODEQI, AVXMODEDI): Remove.
1437         (sse2, sse3): New mode attribute.
1438         (mov<mode>): Use V16 mode iterator.
1439         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1440         (push<mode>1): Use V16 mode iterator.
1441         (movmisalign<mode>): Ditto.
1442         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1443         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1444         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1445         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1446         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1447         avx_movdqu<avxmodesuffix>.
1448         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1449         *avx_movdqu<avxmodesuffix>.
1450         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1451         avx_lddqu<avxmodesuffix>.
1452         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1453         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1454         avx_movnt<AVXMODEDI:mode>.
1455         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1456         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1458 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1460         PR target/48629
1461         * haifa-sched.c (prune_ready_list, schedule_block): Use
1462         sched_pressure_p rather than flag_sched_pressure.
1464 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1466         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1467         cgraph_get_node instead of cgraph_get_create_node.
1469 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1471         * cfgexpand.c (expand_debug_expr): Use
1472         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1474 2011-04-15  Michael Matz  <matz@suse.de>
1476         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1477         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1478         * function.c (gimplify_parameters): Ditto.
1479         * gimplify.c (gimplify_vla_decl): Ditto.
1481         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1482         (gimple_call_set_alloca_for_var): New inline function.
1483         (gimple_call_alloca_for_var_p): Ditto.
1484         * gimple.c (gimple_build_call_from_tree): Remember
1485         CALL_ALLOCA_FOR_VAR_P state.
1486         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1488         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1489         calls if they were for VLA objects.
1491 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1493         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1494         of ADR_EXPRs.
1496 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1498         PR middle-end/48601
1499         * tree-emutls.c (lower_emutls_function_body): Call
1500         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1501         result is non-NULL.
1503 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1505         * c-decl.c (detect_field_duplicates): Call
1506         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1508 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1510         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1511         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1512         * ipa-pure-const.c (check_stmt): Call it.
1513         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1515 2011-04-15  Richard Guenther  <rguenther@suse.de>
1517         PR tree-optimization/48290
1518         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1519         Properly decide inhibiting propagation based on the valueized
1520         operand.  Do loop-closed SSA form preserving here ...
1521         (init_copy_prop): ... not here.
1523 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1525         PR target/48612
1526         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1527         (*ieee_smax<mode>3): Likewise.
1529 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1531         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1532         Replace match_operand with match_dup for the third operand in
1533         these expanders.
1535 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1537         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1538         to track processing of conditionals.  Update all callers.
1539         (try_combine, simplify_if_then_else): Update.
1541 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1543         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1544         -fsched-pressure.
1546 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1548         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1549         instead of match_operand for operand 3.
1551 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1553         * recog.h (insn_operand_data): Add an "allows_mem" field.
1554         * genoutput.c (output_operand_data): Initialize it.
1555         * optabs.c (maybe_legitimize_operand_same_code): New function.
1556         (maybe_legitimize_operand): Use it when matching the original
1557         op->value.
1559 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1561         * gimplify.c: Fix issues in comments throughout.
1562         (voidify_wrapper_expr): Fix long line.
1563         (build_stack_save_restore): Likewise.
1564         (gimplify_loop_expr): Likewise.
1565         (gimplify_compound_lval): Likewise.
1566         (gimplify_init_ctor_eval): Likewise.
1567         (gimplify_modify_expr_rhs): Likewise.
1568         (omp_notice_threadprivate_variable): Likewise.
1570 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1572         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1573         original one if this is not a builtin function.
1575 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1577         PR target/48605
1578         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1579         offset it as needed based on top 2 bits in operands[3], change
1580         MEM mode to SFmode and mask those 2 bits away from operands[3].
1582 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1584         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1585         change from objc_declare_protocols() to objc_declare_protocol().
1587 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1589         * config/i386/sse.md (sse4_1): New mode attribute.
1590         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1591         avx_blend<ssemodesuffix><avxmodesuffix> and
1592         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1593         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1594         avx_blendv<ssemodesuffix><avxmodesuffix> and
1595         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1596         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1597         avx_dp<ssemodesuffix><avxmodesuffix> and
1598         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1599         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1600         (sse4_1_packusdw): Merge with *avx_packusdw.
1601         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1602         (sse4_1_pblendw): Merge with *avx_pblendw.
1603         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1604         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1605         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1606         VF mode iterator.
1607         (sse4_1_round<ssescalarmodesuffix>): Merge with
1608         *avx_round<ssescalarmodesuffix>.
1609         (aesenc): Merge with *avx_aesenc.
1610         (aesenclast): Merge with *avx_aesenclast.
1611         (aesdec): Merge with *avx_aesdec.
1612         (aesdeclast): Merge with *avx_aesdeclast.
1613         (pclmulqdq): Merge with *pclmulqdq.
1614         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1615         New predicate.
1616         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1618 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1620         PR middle-end/48608
1621         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1622         (align_local_variable): This.  Update DECL_ALIGN.
1623         (add_stack_var): Updated.
1624         (expand_one_stack_var): Likewise.
1626 2011-04-14  Richard Guenther  <rguenther@suse.de>
1628         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1629         Remove.
1630         (dse_initialize_block_local_data, dse_leave_block,
1631         record_voperand_set, get_stmt_uid): Likewise.
1632         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1633         (dse_optimize_stmt): Remove voperand set handling code.
1634         Simplify and improve to handle any kind of killing stmt.
1635         (dse_record_phi): Remove.
1636         (dse_enter_block): Simplify.
1637         (tree_ssa_dse): Likewise.
1638         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1640 2011-04-14  Jan Hubicka  <jh@suse.cz>
1642         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1643         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1644         (cgraph_local_info): Remove inline_summary.
1645         * ipa-cp.c: Include ipa-inline.h.
1646         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1647         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1648         accesor.
1649         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1650         (input_overwrite_node): Do not set inline summary.
1651         (input_node): Do not stream inline summary.
1652         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1653         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1654         growth; we do not have inline parameters computed for that anyway.
1655         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1656         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1657         (inline_summary_t): New type and VECtor.
1658         (debug_inline_summary, dump_inline_summaries): Declare.
1659         (inline_summary): Use VOCtor.
1660         (estimate_edge_growth): Kill hack computing call stmt size directly.
1661         * lto-section-in.c (lto_section_name): Add inline section.
1662         * ipa-inline-analysis.c: Include lto-streamer.h
1663         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1664         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1665         (inline_summary_vec): Define.
1666         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1667         dump_inline_summaries): New functions.
1668         (estimate_function_body_sizes): Properly compute size/time of outgoing
1669         calls.
1670         (compute_inline_parameters): Alloc inline_summary; do not compute
1671         size/time of incomming calls.
1672         (estimate_edge_time): Avoid missing time summary hack.
1673         (inline_read_summary): Read inline summary info.
1674         (inline_write_summary): Write inline summary info.
1675         (inline_free_summary): Free all hooks and inline summary vector.
1676         * lto-streamer.h: Add LTO_section_inline_summary section.
1677         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1678         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1680 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1682         * tree-vectorizer.h (vect_strided_store_supported): Add a
1683         HOST_WIDE_INT argument.
1684         (vect_strided_load_supported): Likewise.
1685         (vect_permute_store_chain): Return void.
1686         (vect_transform_strided_load): Likewise.
1687         (vect_permute_load_chain): Delete.
1688         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1689         count argument.  Check that the count is a power of two.
1690         (vect_strided_load_supported): Likewise.
1691         (vect_permute_store_chain): Return void.  Update after above changes.
1692         Assert that the access is supported.
1693         (vect_permute_load_chain): Likewise.
1694         (vect_transform_strided_load): Return void.
1695         * tree-vect-stmts.c (vectorizable_store): Update calls after
1696         above interface changes.
1697         (vectorizable_load): Likewise.
1698         (vect_analyze_stmt): Don't check for strided powers of two here.
1700 2011-04-14  Richard Guenther  <rguenther@suse.de>
1702         PR tree-optimization/48590
1703         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1704         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1705         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1706         BUILT_IN_STACK_SAVE.
1707         * tree-ssa-dce.c (propagate_necessity): Handle
1708         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1710 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1712         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1713         objc_declare_class.
1715 2011-04-14  Richard Guenther  <rguenther@suse.de>
1717         * tree.h (get_object_alignment_1): Declare.
1718         * builtins.c (get_object_alignment_1): Split out worker from ...
1719         (get_object_alignment): ... here.
1720         * fold-const.c (get_pointer_modulus_and_residue): Use
1721         get_object_alignment_1.
1723 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1725         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1726         type parameter.
1727         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1728         parameter.  Generalise code to handle arrays as well as vectors.
1729         (vect_setup_realignment): Update accordingly.
1730         * tree-vect-stmts.c (vectorizable_store): Likewise.
1731         (vectorizable_load): Likewise.
1733 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1735         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1736         within the per-copy loop.
1738 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1740         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1741         in the dump file.
1743 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1745         * doc/options.texi (Negative): Explicitly mention that the
1746         Negative chain must be circular.
1748 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1750         * function.h (block_chainon): Declare.
1751         * function.c (block_chainon): Define.
1753 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1754             Eric Weddington  <eric.weddington@atmel.com>
1755             Georg-Johann Lay <avr@gjlay.de>
1757         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1758         New Includes
1759         (avr_init_builtins, avr_expand_builtin,
1760         avr_expand_delay_cycles, avr_expand_unop_builtin,
1761         avr_expand_binop_builtin ): New functions.
1762         (avr_builtin_id): New enum
1763         (struct avr_builtin_description): New struct
1764         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1765         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1767         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1768         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1769         UNSPECV_DELAY_CYCLES): new enumeration values
1770         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1771         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1772         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1773         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1774         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1775         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1776         "fmulsu"): New insns
1778         * config/avr/avr-c.c: fix line endings
1779         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1780         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1781         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1782         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1783         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1785         * doc/extend.texi (AVR Built-in Functions): New node
1786         (Target Builtins): Add documentation of AVR
1787         built-in functions.
1789 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1791         PR target/44643
1792         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1793         alone. Error if non-const data has attribute progmem.
1795 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1797         * tree.h (struct tree_constructor): Include tree_typed instead of
1798         tree_common.
1799         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1800         TS_TYPED instead of TS_COMMON.
1802 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1804         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1805         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1806         (sse2_psadbw): Merge with *avx_psadbw.
1807         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1808         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1809         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1810         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1811         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1812         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1813         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1814         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1815         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1816         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1817         (ssse3_palignrti): Merge with *avx_palignrti.
1819 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1821         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1822         * tree-ssanames.c (fini_ssanames): VEC_free it.
1823         (make_ssa_name_fn): Update for VECness of free_ssanames.
1824         (release_ssa_name, release_dead_ssa_names): Likewise.
1825         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1826         tree_common.
1827         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1828         TS_TYPED instead of TS_COMMON.
1830 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1832         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1833         statistics_counter_event.
1834         * tree-ssa-copyrename.c (stats): Define.
1835         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1836         statistics_counter_event.
1837         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1838         (bswap_stats, widen_mul_stats): Define.
1839         (insert_reciprocals): Increment rdivs_inserted.
1840         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1841         rfuncs_inserted.  Add calls to statistics_counter_event.
1842         (execute_cse_sincos_1): Increment inserted.
1843         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1844         statistics_counter_event.
1845         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1846         of bswap_stats.  Add calls to statistics_counter_event.
1847         (convert_mult_to_widen): Increment widen_mults_inserted.
1848         (convert_plusminus_to_widen): Increment maccs_inserted.
1849         (convert_mult_to_fma): Increment fmas_inserted.
1850         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1851         calls to statistics_counter_event.
1853 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1855         PR rtl-optimization/48455
1856         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1857         `temp_costs->mem_cost'.
1859 2011-04-13  Jan Hubicka  <jh@suse.cz>
1861         * ipa-inline.h: New file.
1862         * ipa-inline-analysis.c: New file. Broken out of ...
1863         * ipa-inline.c: ... this file; update toplevel comment;
1864         include ipa-inline.h
1865         (inline_summary): Move to ipa-inline.h
1866         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1867         ipa-inline-analysis.c.
1868         (cgraph_estimate_time_after_inlining): Rename to
1869         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1870         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1871         to estimate_edge_growth.
1872         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1873         rename to estimate_size_after_inlining.
1874         (cgraph_mark_inline_edge): Update for new naming convention.
1875         (cgraph_check_inline_limits): Likewise.
1876         (cgraph_edge_badness): Likewise.
1877         (cgraph_decide_recursive_inlining): Likewise.
1878         (cgraph_decide_inlining_of_small_functions): Likewise.
1879         (cgraph_decide_inlining_incrementally): Likewise.
1880         (cgraph_estimate_growth): Rename to estimate_growth; move to
1881         ipa-inline-analysis.c.
1882         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1883         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1884         (compute_inline_parameters): Likewise.
1885         (compute_inline_parameters_for_current): Likewise.
1886         (pass_inline_parameters): Likewise.
1887         (inline_indirect_intraprocedural_analysis): Likewise.
1888         (analyze_function): Rename to inline_analyze_function; likewise.
1889         (add_new_function): Move to ipa-inline-analysis.c.
1890         (inline_generate_summary): Likewise.
1891         (inline_read_summary): Likewise.
1892         (inline_write_summary): Likewise.
1893         * Makefile.in (ipa-inline-analysis.c): New file.
1895 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1897         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1898         * configure: Regenerate.
1900 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1902         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1903         instead of tree_common.
1904         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1905         Likewise.
1906         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1907         TS_TYPED rather than TS_COMMON.
1908         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1910 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1912         PR target/45263
1913         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1914         r20 around calls of __tablejump_elpm__
1916 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1918         PR middle-end/48591
1919         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1920         NULL.
1921         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1923 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1925         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1926         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1927         (cfi_vec): New typedef.
1928         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1929         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1930         (cie_cfi_vec): New static variable.
1931         (cie_cfi_head): Delete.
1932         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1933         declaration changed. Use vector rather than list operations.
1934         (new_cfi): Don't initialize the dw_cfi_next field.
1935         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1936         rather than list operations.
1937         (lookup_cfa): Use vector rather than list operations.
1938         (output_cfis): New argument upto. Accept a cfi_vec rather than
1939         a dw_cfi_ref list head as argument. All callers changed.
1940         Iterate over the vector using upto as a maximum index.
1941         (output_all_cfis): New static function.
1942         (output_fde): Use vector rather than list operations. Use the
1943         new upto argument for output_cfis rather than manipulating a
1944         list.
1945         (dwarf2out_begin_prologue): Change initializations to match
1946         new struct members.
1947         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1948         from the vector length rather than searching for the end of a list.
1949         Use output_all_cfis.
1950         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1952 2011-04-13  Nick Clifton  <nickc@redhat.com>
1954         * config/rx/rx.md (movmemsi): Do not use this pattern when
1955         volatile pointers are involved.
1957 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1959         * config/i386/sse.md (pinsrbits): Remove.
1960         (sse2_packsswb): Merge with *avx_packsswb.
1961         (sse2_packssdw): Merge with *avx_packssdw.
1962         (sse2_packuswb): Merge with *avx_packuswb.
1963         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1964         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1965         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1966         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1967         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1968         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1969         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1970         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1971         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1972         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1973         (sse2_loadld): Merge with *avx_loadld.
1974         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1975         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1976         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1977         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1978         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1980 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1982         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1983         calling TREE_CHAIN.
1984         * print-tree.c (print_node): Likewise.
1985         * tree-inline.c (copy_tree_r): Likewise.
1986         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1987         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1988         instead of TS_COMMON.
1989         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1990         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1991         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1992         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1993         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1994         ...and these...
1995         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1996         * tree.h: ...here.
1997         (TREE_CHAIN): Check for a TS_COMMON structure.
1998         (TREE_TYPE): Check for a TS_TYPED structure.
2000 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
2002         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2003         cgraph_get_create_node instead of cgraph_node.
2005 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2007         * c-parser.c (c_parser_initelt): Updated call to
2008         objc_build_message_expr.
2009         (c_parser_postfix_expression): Likewise.
2011 2011-04-12  Kai Tietz  <ktietz@redhat.com>
2013         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2014         MASK_MS_BITFIELD_LAYOUT bit.
2016 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2018         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2019         assert it is always true.
2020         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2021         moves.
2023 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
2025         * c-parser.c (c_lex_one_token): Rewritten conditional used when
2026         compiling Objective-C to be more efficient.
2028 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
2030         * opts-common.c (decode_cmdline_options_to_array): Remove variable
2031         argv_copied.
2033 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2035         * recog.h, genoutput.c, optabs.c: Revert last patch.
2037 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2039         PR target/48090
2040         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2042 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2044         * recog.h (insn_operand_data): Add an "allows_mem" field.
2045         * genoutput.c (output_operand_data): Initialize it.
2046         * optabs.c (maybe_legitimize_operand_same_code): New function.
2047         (maybe_legitimize_operand): Use it when matching the original
2048         op->value.
2050 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2052         * genpreds.c (process_define_predicate): Move most processing
2053         to gensupport.c.  Continue to validate the expression.
2054         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2055         (process_define_predicate): Move processing to gensupport.c.
2056         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2057         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2058         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
2059         argument.
2060         (valid_predicate_name_p): New function, split out from old
2061         genpreds.c:process_define_predicate.
2062         (process_define_predicate): New function, combining code from
2063         old genpreds.c and genrecog.c functions.
2064         (process_rtx): Call it for DEFINE_PREDICATE and
2065         DEFINE_SPECIAL_PREDICATE.
2067 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
2069         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2070         size of a '%A' memory reference.
2071         (T_DREG, T_QREG): New neon_builtin_type_bits.
2072         (arm_init_neon_builtins): Assert that the load and store operands
2073         are neon_struct_operands.
2074         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2075         (NEON_ARG_MEMORY): New builtin_arg.
2076         (neon_dereference_pointer): New function.
2077         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2078         Handle NEON_ARG_MEMORY.
2079         (arm_expand_neon_builtin): Update after above interface changes.
2080         Use NEON_ARG_MEMORY for loads and stores.
2081         * config/arm/predicates.md (neon_struct_operand): New predicate.
2082         * config/arm/iterators.md (V_two_elem): Tweak formatting.
2083         (V_three_elem): Use BLKmode for accesses that have no associated mode.
2084         (V_four_elem): Tweak formatting.
2085         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2086         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2087         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2088         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2089         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2090         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2091         (neon_vst4<mode>): Replace pointer operand with a memory operand.
2092         Use %A in the output template.
2093         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2094         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2095         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2096         the width of the memory access.  Remove post-increment.
2097         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2099 2011-04-12  Nick Clifton  <nickc@redhat.com>
2101         * config/v850/v850.c (expand_prologue): Do not use the CALLT
2102         instruction for interrupt handlers if the target is the basic V850
2103         architecture.
2104         (expand_epilogue): Likewise.
2106 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2108         PR rtl-optimization/48549
2109         * combine.c (propagate_for_debug): Also stop after BB_END of
2110         this_basic_block.  Process LAST and just stop processing after it.
2111         (combine_instructions): If last_combined_insn has been deleted,
2112         set last_combined_insn to its PREV_INSN.
2114 2011-04-12  Richard Guenther  <rguenther@suse.de>
2116         PR tree-optimization/46076
2117         * gimple.h (struct gimple_statement_call): Add fntype field.
2118         (gimple_call_fntype): Adjust.
2119         (gimple_call_set_fntype): New function.
2120         * gimple.c (gimple_build_call_1): Set the call function type.
2121         * gimplify.c (gimplify_call_expr): Preserve the function
2122         type the frontend used for the call.
2123         (gimplify_modify_expr): Likewise.
2124         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2125         function type.
2126         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2127         function type.
2128         * tree-ssa.c (useless_type_conversion_p): Function pointer
2129         conversions are useless.
2131 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2133         * cgraph.h (cgraph_node): Remove function declaration.
2134         (cgraph_create_node): Declare.
2135         (cgraph_get_create_node): Likewise.
2136         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2137         Updated all callers.
2138         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2139         the decl does not already exist.  Call cgraph_get_create_node instead
2140         of cgraph_node.
2141         (cgraph_get_create_node): New function.
2142         (cgraph_same_body_alias): Update comment.
2143         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2144         assert it does not return NULL.
2145         (cgraph_update_edges_for_call_stmt): Likewise.
2146         (cgraph_clone_edge): Likewise.
2147         (cgraph_create_virtual_clone): Likewise.
2148         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2149         instead of cgraph_node.
2150         (cgraph_add_new_function): Call cgraph_create_node or
2151         cgraph_get_create_node instead of cgraph_node.
2152         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2153         instead of cgraph_node.
2154         (record_eh_tables): Likewise.
2155         (mark_address): Likewise.
2156         (mark_load): Likewise.
2157         (build_cgraph_edges): Call cgraph_get_create_node instead
2158         of cgraph_node.
2159         (rebuild_cgraph_edges): Likewise.
2160         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2161         instead of cgraph_node.
2162         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2163         cgraph_node.
2164         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2165         cgraph_create_node instead of cgraph_node.
2166         * c-decl.c (finish_function): Call cgraph_get_create_node instead
2167         of cgraph_node.
2168         * lto-cgraph.c (input_node): Likewise.
2169         * lto-streamer-in.c (input_function): Likewise.
2170         * varasm.c (mark_decl_referenced): Likewise.
2171         (assemble_alias): Likewise.
2173 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2175         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2176         instead of cgraph_node and assert it does not return NULL.
2177         * lto-streamer-in.c (lto_read_body): Likewise.
2178         * omp-low.c (new_omp_context): Likewise.
2179         (create_task_copyfn): Likewise.
2180         * tree-emutls.c (lower_emutls_function_body): Likewise.
2181         * matrix-reorg.c (transform_allocation_sites): Likewise.
2183 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2185         PR c/48552
2186         * c-typeck.c (build_asm_expr): Error out on attempts to use
2187         void type outputs or inputs for constraints that allow reg or
2188         don't allow memory.
2190 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
2191             Richard Earnshaw  <rearnsha@arm.com>
2193         PR target/48250
2194         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2195         to use sign-magnitude offsets. Reject unsupported unaligned
2196         cases. Add detailed description in comments.
2197         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2198         condition from TARGET_32BIT to TARGET_ARM.
2200 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
2202         * tree.h (struct typed_tree): New.
2203         (struct tree_common): Include it instead of tree_base.
2204         (TREE_TYPE): Update for new location of type field.
2205         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2206         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2207         (union tree_node): Add typed field.
2208         * treestruct.def (TS_TYPED): New.
2209         * lto-streamer.c (check_handled_ts_structures): Handle it.
2210         * tree.c (MARK_TS_TYPED): New macro.
2211         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2213 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2215         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2216         (force_nonfallthru): Do not alter the loop nest if no basic block
2217         was created.
2219 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2221         * config/i386/sse.md (VI): New mode iterator.
2222         (SSEMODEI): Remove.
2223         (AVX256MODEI): Ditto.
2224         (AVXMODEF4P): Ditto.
2225         (avxvecpsmode): Ditto.
2226         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2227         (sse2_andnot<mode>3): New expander.
2228         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2229         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2230         (<any_logic:code><mode>3): Use VI mode iterator.
2231         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2232         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2233         (*andnottf3): Handle AVX three-operand constraints.
2234         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2236 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2237             Robert Millan  <rmh@gnu.org>
2239         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2240         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2241         GNU_USER_DYNAMIC_LINKER64): Define.
2242         (REG_NAME): Don't undefine.
2243         (MD_UNWIND_SUPPORT): Undefine.
2244         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2245         (REG_NAME): Don't undefine.
2246         (MD_UNWIND_SUPPORT): Undefine.
2247         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2249 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2251         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2252         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2254 2011-04-11  Xinliang David Li  <davidxl@google.com>
2256         * value-profile.c (check_ic_target): New function.
2257         (gimple_ic_transform): Sanity check indirect call target.
2258         * gimple-low.c (gimple_check_call_args): Interface change.
2259         (gimple_check_call_matching_types): New function.
2260         * tree-inline.c (tree_can_inline_p): Call new function.
2262 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2264         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2265         tree-pretty-print.h & realmpfr.h.
2267 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2269         PR middle-end/48464
2270         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2271         (setup_allocno_and_important_classes): Ditto.
2273 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2275         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2276         GNU_USER_DYNAMIC_LINKER.
2277         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2278         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2279         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2280         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2281         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2282         GNU_USER_TARGET_OS_CPP_BUILTINS.
2283         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2284         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2285         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2286         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2287         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2288         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2289         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2290         GNU_USER_TARGET_OS_CPP_BUILTINS.
2291         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2292         GNU_USER_DYNAMIC_LINKER.
2293         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2294         GNU_USER_TARGET_OS_CPP_BUILTINS.
2295         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2296         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2297         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2298         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2299         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2300         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2301         GNU_USER_DYNAMIC_LINKER64): Remove.
2302         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2303         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2304         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2305         GNU_USER_DYNAMIC_LINKER.
2306         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2307         GNU_USER_TARGET_OS_CPP_BUILTINS.
2308         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2309         GNU_USER_TARGET_OS_CPP_BUILTINS.
2310         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2311         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2312         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2313         GNU_USER_TARGET_OS_CPP_BUILTINS.
2314         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2315         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2316         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2317         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2318         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2319         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2320         GNU_USER_DYNAMIC_LINKER.
2321         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2322         GNU_USER_TARGET_OS_CPP_BUILTINS.
2323         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2324         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2325         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2326         GNU_USER_DYNAMIC_LINKER.
2327         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2328         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2329         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2330         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2331         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2332         GNU_USER_DYNAMIC_LINKER.
2333         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2334         GNU_USER_DYNAMIC_LINKERN32.
2335         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2336         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2337         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2338         GNU_USER_DYNAMIC_LINKER32.
2339         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2340         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2341         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2342         GNU_USER_DYNAMIC_LINKER.
2343         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2344         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2345         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2346         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2347         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2348         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2349         GNU_USER_DYNAMIC_LINKER32.
2350         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2351         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2352         GNU_USER_DYNAMIC_LINKER.
2353         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2354         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2355         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2356         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2357         GNU_USER_DYNAMIC_LINKER64.
2358         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2359         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2360         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2361         GNU_USER_DYNAMIC_LINKER.
2362         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2363         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2364         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2365         GNU_USER_DYNAMIC_LINKER.
2366         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2367         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2368         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2369         GNU_USER_DYNAMIC_LINKER32.
2370         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2371         GNU_USER_DYNAMIC_LINKER64.
2372         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2373         GNU_USER_DYNAMIC_LINKER64.
2374         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2375         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2376         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2377         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2378         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2380 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2382         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2383         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2384         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2385         GNU_USER_DYNAMIC_LINKER.
2386         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2387         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2388         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2389         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2390         GNU_USER_DYNAMIC_LINKER64.
2391         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2392         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2393         GNU_USER_LINK_EMULATION.
2394         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2395         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2396         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2397         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2398         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2399         CPP_SPEC, CC1_SPEC): Remove.
2400         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2401         (GNU_USER_DYNAMIC_LINKER): Define.
2402         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2403         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2404         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2405         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2406         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2407         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2408         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2409         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2410         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2411         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2412         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2413         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2414         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2415         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2416         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2417         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2418         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2419         GNU_USER_DYNAMIC_LINKER.
2420         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2421         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2422         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2423         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2424         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2425         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2426         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2427         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2428         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2429         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2431 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2433         PR target/9601
2434         PR target/11772
2435         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2436         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2437         comment.
2438         (ix86_is_msabi_thiscall): Removed.
2439         (ix86_is_type_thiscall): Likewise.
2440         (ix86_get_callcvt): New function.
2441         (ix86_comp_type_attributes): Simplify check.
2442         (ix86_function_regparm): Use ix86_get_callcvt for calling
2443         convention attribute checks.
2444         (ix86_return_pops_args): Likewise.
2445         (ix86_static_chain): Likewise.
2446         (x86_this_parameter): Likewise.
2447         (x86_output_mi_thunk): Likewise.
2448         (ix86_function_type_abi): Optimize check for types without attributes.
2449         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2450         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2451         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2452         by flag-values.
2453         (IX86_BASE_CALLCVT): Helper macro.
2454         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2455         Use ix86_get_callcvt for calling convention attribute checks and avoid
2456         symbol-decoration for stdcall in TARGET_RTD case.
2457         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2458         Likewise.
2459         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2460         for declaration.
2462 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2464         * config/i386/sse.md (VI_128): New mode iterator.
2465         (VI12_128): Rename from SSEMODE12.
2466         (VI14_128): Rename from SSEMODE14.
2467         (VI124_128): New mode iterator.
2468         (VI24_128): Rename from SSEMODE248.
2469         (VI248_128): Rename from SSEMODE248.
2470         (SSEMODE124C8): Remove.
2471         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2472         (*sse2_<plusminus_insn><mode>3): Merge with
2473         *avx_<plusminus_insn><mode>3.
2474         (*mulv8hi3): Merge with *avx_mulv8hi3.
2475         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2476         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2477         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2478         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2479         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2480         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2481         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2482         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2483         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2484         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2485         (*<smaxmin:code>v8hi3): Ditto.
2486         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2487         (*<smaxmin:code>v16qi3): Ditto.
2488         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2489         (*sse2_eq<mode>3): Ditto.
2490         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2491         (*sse2_gt<mode>3): Ditto.
2492         (vcondv2di): Split out of vcond<mode>.
2493         (vconduv2di): Split out of vcondu<mode>.
2495 2011-04-11  Richard Guenther  <rguenther@suse.de>
2497         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2498         before calling tree_low_cst.
2500 2011-04-11  Richard Guenther  <rguenther@suse.de>
2502         * stor-layout.c (layout_type): Compute all array index size operations
2503         in the original type.
2504         (initialize_sizetypes): Add comment.
2505         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2507 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2509         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2511 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2513         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2514         of cgraph_node, handle NULL return value.
2515         (cgraph_global_info): Likewise.
2516         (cgraph_rtl_info): Likewise.
2517         * tree-inline.c (estimate_num_insns): Likewise.
2518         * gimplify.c (unshare_body): Likewise.
2519         (unvisit_body): Likewise.
2520         (gimplify_body): Likewise.
2521         * predict.c (optimize_function_for_size_p): Likewise.
2522         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2523         (call_may_clobber_ref_p_1): Likewise.
2524         * varasm.c (function_section_1): Likewise.
2525         (assemble_start_function): Likewise.
2527 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2529         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2530         of cgraph_node.
2531         * final.c (rest_of_clean_state): Likewise.
2532         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2533         * passes.c (pass_init_dump_file): Likewise.
2534         (execute_all_ipa_transforms): Likewise.
2535         (function_called_by_processed_nodes_p): Likewise.
2536         * predict.c (maybe_hot_frequency_p): Likewise.
2537         (probably_never_executed_bb_p): Likewise.
2538         (compute_function_frequency): Likewise.
2539         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2540         (unnest_nesting_tree_1): Likewise.
2541         (lower_nested_functions): Likewise.
2542         * tree-optimize.c (execute_fixup_cfg): Likewise.
2543         (tree_rest_of_compilation): Likewise.
2544         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2545         * tree-sra.c (ipa_early_sra): Likewise.
2546         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2547         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2548         * ipa.c (record_cdtor_fn): Likewise.
2549         * ipa-inline.c (cgraph_early_inlining): Likewise.
2550         (compute_inline_parameters_for_current): Likewise.
2551         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2552         * ipa-pure-const.c (local_pure_const): Likewise.
2553         * ipa-split.c (split_function): Likewise.
2554         (execute_split_functions): Likewise.
2555         * cgraphbuild.c (build_cgraph_edges): Likewise.
2556         (rebuild_cgraph_edges): Likewise.
2557         (cgraph_rebuild_references): Likewise.
2558         (remove_cgraph_callee_edges): Likewise.
2559         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2560         (verify_cgraph_node): Likewise.
2561         (cgraph_analyze_functions): Likewise.
2562         (cgraph_preserve_function_body_p): Likewise.
2563         (save_inline_function_body): Likewise.
2564         (save_inline_function_body): Likewise.
2565         * tree-inline.c (copy_bb): Likewise.
2566         (optimize_inline_calls): Likewise.
2568 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2570         PR tree-optimization/48195
2571         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2572         ipa_check_create_edge_args.
2573         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2574         ipa_check_create_edge_args.
2575         * ipa-inline.c (inline_generate_summary): Do not call
2576         ipa_check_create_node_params and ipa_check_create_edge_args.
2577         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2578         ipa_check_create_edge_args.
2580 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2582         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2583         instead of loop.
2584         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2585         * function.c (record_hard_reg_sets): Likewise.
2586         * ira.c (compute_regs_asm_clobbered): Likewise.
2587         * sched-deps.c (sched_analyze_1): Likewise.
2588         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2590 2011-04-09  Xinliang David Li  <davidxl@google.com>
2592         PR tree-optimization/PR48484
2593         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2594         has_valid_pred lazily
2596 2011-04-09  Duncan Sands  <baldrick@free.fr>
2598         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2600 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2602         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2603         cost of I0 to zero at the end, if any.
2605 2011-04-08  Xinliang David Li  <davidxl@google.com>
2607         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2608         to insane profile data.
2610 2011-04-08  Xinliang David Li  <davidxl@google.com>
2612         * ipa-cp.c (ipcp_update_profiling): Correct
2613          negative scale factor due to insane profile data.
2615 2011-04-08  Xinliang David Li  <davidxl@google.com>
2617         * final.c (dump_basic_block_info): New function.
2618         (final): Dump basic block.
2619         (final_scan_insn): Remove old dump.
2621 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2623         PR target/47829
2624         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2625         crtbegin/crtend.
2627 2011-04-08  Michael Matz  <matz@suse.de>
2629         PR middle-end/48389
2630         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2631         functions.
2632         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2633         * rtl.h (rebuild_jump_labels_chain): Declare.
2634         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2635         insns inserted on edges.
2637 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2639         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2640         * config/arm/arm-arches.def: New.
2641         * config/arm/arm-opts.h: New.
2642         * config/arm/genopt.sh: New.
2643         * config/arm/arm-tables.opt: New (generated).
2644         * config/arm/arm.c (arm_handle_option, arm_target_help,
2645         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2646         (all_architectures): Get most table contents from arm-arches.def.
2647         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2648         arm_selected_tune here.
2649         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2650         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2651         (march=, mcpu=, mtune=): Use Enum and Var.
2652         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2653         (arm.o): Update dependencies.
2655 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2657         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2658         of header_file.
2659         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2660         (write_typed_alloc_defns): Likewise.
2661         (main): Calls write_typed_alloc_defns with output_header.
2663 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2665         PR inline-asm/48435
2666         * ira-color.c (setup_profitable_hard_regs): Add comments.
2667         Don't take prohibited hard regs into account.
2668         (setup_conflict_profitable_regs): Rename to
2669         get_conflict_profitable_regs.
2670         (check_hard_reg_p): Check prohibited hard regs.
2672 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2674         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2675         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2676         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2678 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2680         PR target/48366
2681         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2682         move from floating point to shift amount register.
2683         (emit_move_sequence): Remove secondary reload support for floating
2684         point to shift amount amount register copies.
2685         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2686         amount register copies.
2687         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2688         register, return false if mode isn't a scalar integer mode.
2689         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2691 2011-04-08  Richard Guenther  <rguenther@suse.de>
2693         * gimple.c (gimple_call_flags): Remove kludge.
2695 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2697         * sel-sched.c (sel_region_init): Move call to
2698         sel_setup_region_sched_flags after setup_current_loop_nest.
2700 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2702         PR rtl-optimization/48272
2703         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2704         init_insn_reg_pressure_info.  Adjust a caller.
2705         * sched-int.h (init_insn_reg_pressure_info): Declare.
2706         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2707         when sched-pressure is enabled.
2709 2011-04-08  Richard Guenther  <rguenther@suse.de>
2711         * gimple.c (gimple_set_modified): Do not queue calls to
2712         MODIFIED_NORETURN_CALLS here ...
2713         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2715 2011-04-08  Richard Guenther  <rguenther@suse.de>
2717         PR lto/48467
2718         * toplev.c (lang_dependent_init): Do not open asm_out_file
2719         in WPA mode, nor perform debug machinery initialization.
2720         (finalize): Do not unlink asm_out_file in WPA mode.
2722 2011-04-08  Richard Guenther  <rguenther@suse.de>
2724         * gimple.h (gimple_call_fntype): New function.
2725         (gimple_call_return_type): Use it.
2726         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2727         * gimple-low.c (gimple_check_call_args): Likewise.
2728         * gimple.c (gimple_call_flags): Likewise.
2729         (gimple_call_arg_flags): Likewise.
2730         (gimple_call_return_flags): Likewise.
2731         * tree-cfg.c (verify_gimple_call): Likewise.
2732         (do_warn_unused_result): Likewise.
2733         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2734         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2736 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2738         PR rtl-optimization/48235
2739         * sel-sched.c (code_motion_process_successors): Recompute the last
2740         insn in basic block if control flow changed.
2741         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2742         Update condition for ilist_remove.
2744 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2746         PR rtl-optimization/48302
2747         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2748         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2749         it to record added preheader blocks.
2750         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2751         on to sel_add_loop_preheaders.
2752         (sel_region_init): Move call to setup_current_loop_nest after
2753         sel_init_bbs.
2755 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2757         PR target/48273
2758         * cfgloop.h (loop_has_exit_edges): New helper.
2759         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2760         non-clonable.
2761         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2762         that have no exit edges.
2764 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2766         PR rtl-optimization/48442
2767         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2768         all callers.  Adjust assert.
2770 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2772         PR tree-optimization/48377
2773         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2774         is_packed to true even for types with smaller TYPE_ALIGN than
2775         TYPE_SIZE.
2777 2011-04-08  Richard Guenther  <rguenther@suse.de>
2779         PR bootstrap/48513
2780         * doc/tm.texi: Re-generate.
2782 2011-04-08  Wei Guozhi  <carrot@google.com>
2784         PR target/47855
2785         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2786         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2787         * config/arm/arm.md (*push_multi): Change the length computation to
2788         call a C function.
2790 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2792         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2793         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2794         * doc/tm.texi: Regenerate.
2795         * system.h (ASM_OUTPUT_BSS): Poison.
2796         * varasm.c (asm_output_bss): Remove function.
2797         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2799         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2800         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2801         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2802         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2803         Likewise.
2804         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2805         Likewise.
2806         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2807         Likewise.
2808         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2810 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2812         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2813         EnumValue lines.
2815 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2817         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2818         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2819         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2820         OPT_mcpu32.
2821         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2822         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2823         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2824         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2825         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2826         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2827         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2828         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2829         options.  Don't map other m68k options manually.  Don't handle
2830         old-style options as canonical.
2831         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2832         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2834 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2836         * basic-block.h (force_nonfallthru): Move to...
2837         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2838         (force_nonfallthru): ...here.
2839         * cfghooks.c (force_nonfallthru): New function.
2840         * cfgrtl.c (force_nonfallthru): Rename into...
2841         (rtl_force_nonfallthru): ...this.
2842         (commit_one_edge_insertion): Do not set AUX field.
2843         (commit_edge_insertions): Do not discover new basic blocks.
2844         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2845         (cfg_layout_rtl_cfg_hooks): Likewise.
2846         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2847         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2848         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2850 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2852         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2853         Remove macros.
2855 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2857         * config/i386/sse.md: Update copyright year.
2858         (avxcvtvecmode): Remove.
2859         (sse_movhlps): Merge with *avx_movhlps.
2860         (sse_movlhps): Merge with *avx_movlhps.
2861         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2862         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2863         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2864         (sse_loadhps): Merge with *avx_loadhps.
2865         (sse_storelps): Merge with *avx_storelps.
2866         (sse_loadlps): Merge with *avx_loadlps.
2867         (sse_movss): Merge with *avx_movss.
2868         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2869         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2870         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2871         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2872         (vec_set<mode>_0): Ditto.
2873         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2874         (sse4_1_insertps): Merge with *avx_insertps.
2875         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2876         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2877         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2878         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2879         (sse2_storehpd): Merge with *avx_storehpd.
2880         (sse2_loadhpd): Merge with *avx_loadhpd.
2881         (sse2_loadlpd): Merge with *avx_loadlpd.
2882         (sse2_movsd): Merge with *avx_movsd.
2883         (*vec_concatv2df): Merge with *vec_concatv2df.
2885 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2887         PR debug/48343
2888         * combine.c (combine_instructions): Add last_combined_insn,
2889         update it if insn is after it, pass it to all try_combine calls.
2890         (try_combine): Add last_combined_insn parameter, pass it instead of
2891         i3 to propagate_for_debug.
2893 2011-04-07  Nick Clifton  <nickc@redhat.com>
2895         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2896         to handle MDR <-> data register transfers.
2897         (movhi_internal): Likewise.
2899 2011-04-07  Alan Modra  <amodra@gmail.com>
2901         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2902         previous stack info.
2904 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2906         PR target/43920
2907         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2908         flow_find_cross_jump.  Swap variables to implement backward replacement.
2909         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2911 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2913         PR target/43920
2914         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2915         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2916         and bb2.
2917         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2918         src1 or src2.  Redirect edges to the last basic block.  Update
2919         frequency and count on multiple basic blocks in case of fallthru.
2921 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2923         PR target/43920
2924         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2925         function.
2926         (old_insns_match_p): Change return type.  Replace return false/true
2927         with return dir_none/dir_both.  Use can_replace_by.
2928         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2929         direction from dir_p.  Register replacement direction in dir, last_dir
2930         and afterlast_dir.  Handle new return type of old_insns_match_p using
2931         merge_dir.  Return replacement direction in dir_p.
2932         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2933         return type of old_insns_match_p.
2934         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2935         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2936         flow_find_cross_jump.
2937         * basic-block.h (enum replace_direction): New type.
2938         (flow_find_cross_jump): Add parameter to declaration.
2940 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2942         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2943         (AVXMODEDCVTPS2DQ): Ditto.
2944         (VEC_FLOAT_MODE): Ditto.
2945         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2946         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2947         (<any_logic:code><mode>3): Use VF mode iterator.
2948         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2949         Use VF mode iterator.
2950         (copysign<mode>3): Use VF mode iterator.
2951         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2952         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2953         (*<any_logic:code><MODEF:mode>3): Merge with
2954         *avx_<any_logic:code><MODEF:mode>3.
2955         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2956         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2957         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2958         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2959         (sse2_cvtdq2ps): Use %v modifier.
2960         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2961         (avx_cvtps2dq<avxmodesuffix>): Remove.
2962         (sse2_cvtps2dq): Use %v modifier.
2963         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2964         (avx_cvttps2dq<avxmodesuffix>): Remove.
2965         (sse2_cvttps2dq): Use %v modifier.
2966         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2967         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2968         (sse2_cvtsd2siq): Fix insn template.
2969         (sse2_cvtsd2siq_2): Ditto.
2970         (sse2_cvttsd2siq): Ditto.
2971         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2972         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2974 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2976         * gcov-io.c: Use GCC Runtime Library Exception.
2978 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2980         PR debug/48466
2981         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2982         as base_reg whatever register reg has been eliminated to, instead
2983         of hardcoding STACK_POINTER_REGNUM.
2985 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2987         * doc/tm.texi.in: Document C target hooks as separate from general
2988         target hooks.
2989         * doc/tm.texi: Regenerate.
2990         * genhooks.c (struct hook_desc): Add docname field.
2991         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2992         docname field.
2993         (hook_array): Include c-target.def.
2994         (emit_documentation): Use docname field in output.
2995         (emit_init_macros): Take docname argument.  Only emit definitions
2996         for hooks matching docname.
2997         (main): Expect additional arguments in all cases.  Pass argument
2998         to emit_init_macros.
2999         * target.def: Move initial macro definitions and comments to
3000         target-hooks-macros.h.
3001         (gcc_targetcm): Move to c-family/c-target.def.
3002         * target.h (targetcm): Move declaration to c-family/c-target.h.
3003         * targhooks.c (default_handle_c_option): Move to
3004         c-family/c-opts.c.
3005         * targhooks.h (default_handle_c_option): Move declaration to
3006         c-family/c-common.h.
3007         * target-hooks-macros.h: New file.
3008         * config.gcc (target_has_targetcm): Define and use to add to
3009         c_target_objs and cxx_target_objs.
3010         * config/default-c.c: New file.
3011         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3012         of target.h and target-def.h.
3013         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3014         (darwin_objc_construct_string, darwin_cfstring_ref_p,
3015         darwin_check_cfstring_format_arg): Make static.
3016         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3017         TARGET_STRING_OBJECT_REF_TYPE_P,
3018         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3019         * config/darwin-protos.h (darwin_objc_construct_string,
3020         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3021         declare.
3022         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3023         TARGET_STRING_OBJECT_REF_TYPE_P,
3024         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
3025         * config/t-darwin (darwin-c.o): Update dependencies.
3026         * system.h (TARGET_HAS_TARGETCM): Poison.
3027         * Makefile.in (TARGET_H): Update.
3028         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3029         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3030         (default-c.o): New target.
3031         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
3032         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
3033         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
3034         c-target.def.
3035         (build/genhooks.o): Update dependencies.
3037 2011-04-06  Richard Guenther  <rguenther@suse.de>
3039         * ipa-inline.c (enum inlining_mode): Remove.
3040         (cgraph_flatten): Use some other token.
3041         (cgraph_edge_early_inlinable_p): New function, split out from ...
3042         (cgraph_perform_always_inlining): New function, split out from ...
3043         (cgraph_decide_inlining_incrementally): ... here.
3044         (cgraph_mark_inline_edge): Adjust.
3045         (cgraph_early_inlining): Re-structure.
3046         (pass_early_inline): Require SSA form.
3048 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
3049             Julian Brown  <julian@codesourcery.com>
3050             Mark Shinwell  <shinwell@codesourcery.com>
3052         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3053         LO_REGS only for Thumb-1.
3054         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3055         be used in short instructions when optimising for size on Thumb-2.
3057 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3059         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3060         associated with user returns to be preserved.
3062 2011-04-06  Tristan Gingold  <gingold@adacore.com>
3064         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3065         symbol_queue_size, DBXOUT_DECR_NESTING,
3066         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3067         if XCOFF_DEBUGGING_INFO.
3069 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
3071         * config/i386/i386.md (attribute isa): New.
3072         (attribute enabled): New.
3073         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3074         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3075         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3076         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3077         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3078         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3079         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3080         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3082         * config/i386/sse.md (VF): New mode iterator.
3083         (VF1): Ditto.
3084         (VF2): Ditto.
3085         (VF_128): Ditto.
3086         (SSEMODEF4): Remove.
3087         (attribute sse): Handle V8SF and V4DF modes.
3088         (<absneg:code><mode>2): Use VF mode iterator.
3089         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
3090         mode iterator.
3091         (<plusminus_insn><mode>3): Use VF mode iterator.
3092         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3093         Use VF mode iterator.
3094         (<sse>_vm<plusminus_insn><mode>3): Merge with
3095         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
3096         (mul<mode>3): Use VF mode iterator.
3097         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
3098         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
3099         mode iterator.
3100         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3101         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3102         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
3103         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
3104         mode iterator.
3105         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3106         Use VF1 mode iterator.
3107         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3108         (sqrt<VF2:mode>2): New expander.
3109         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3110         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3111         and sqrtv2df2.  Use VF mode iterator.
3112         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
3113         mode iterator.
3114         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3115         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3116         Use VF1 mode iterator.
3117         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3118         (<smaxmin:code><mode>3): Use VF mode iterator.
3119         (*<smaxmin:code><mode>3_finite): Merge with
3120         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
3121         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3122         (<sse>_vm<smaxmin:code><mode>2): Merge with
3123         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
3124         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
3125         mode iterator.
3126         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
3127         mode iterator.
3128         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3129         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3130         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3131         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3132         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
3133         VF mode iterator.
3134         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3135         Use VF_128 mode iterator.
3136         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
3137         mode iterator.
3138         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
3139         VF_128 mode iterator.
3140         (vcond<mode>): Use VF mode iterator.
3141         * config/i386/predicates.md (sse_comparison_operator): Merge with
3142         avx_comparison_float_operator.  Do not declare as special_predicate.
3143         * config/i386/i386.c (struct builtin_description): Update for renamed
3144         compare patterns.
3145         (ix86_expand_args_builtin): Ditto.
3146         (ix86_expand_sse_compare_mask): Ditto.
3148 2011-04-06  Richard Guenther  <rguenther@suse.de>
3150         * tree-inline.c (estimate_num_insns): For calls simply account
3151         for all passed arguments and a used return value.
3153 2011-04-06  Richard Guenther  <rguenther@suse.de>
3155         PR tree-optimization/47663
3156         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3157         call_stmt_time fields.
3158         (cgraph_edge_inlinable_p): Declare.
3159         (cgraph_edge_recursive_p): New inline function.
3160         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3161         (cgraph_clone_edge): Copy it.
3162         * ipa-inline.c (cgraph_estimate_edge_time): New function.
3163         Account for call stmt time.
3164         (cgraph_estimate_time_after_inlining): Take edge argument.
3165         (cgraph_estimate_edge_growth): Account call stmt size.
3166         (cgraph_estimate_size_after_inlining): Take edge argument.
3167         (cgraph_mark_inline_edge): Adjust.
3168         (cgraph_check_inline_limits): Likewise.
3169         (cgraph_recursive_inlining_p): Remove.
3170         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3171         (cgraph_decide_recursive_inlining): Take edge argument and
3172         adjust.
3173         (cgraph_decide_inlining_of_small_functions): Do not avoid
3174         diags for recursive inlining here.
3175         (cgraph_flatten): Adjust.
3176         (cgraph_decide_inlining_incrementally): Likewise.
3177         (estimate_function_body_sizes): Remove call cost handling.
3178         (compute_inline_parameters): Initialize caller edge call costs.
3179         (cgraph_estimate_edge_growth): New function.
3180         (cgraph_estimate_growth): Use it.
3181         (cgraph_edge_badness): Likewise.
3182         (cgraph_check_inline_limits): Take an edge argument.
3183         (cgraph_decide_inlining_of_small_functions): Adjust.
3184         (cgraph_decide_inlining): Likewise.
3185         * tree-inline.c (estimate_num_insns): Only account for call
3186         return value if it is used.
3187         (expand_call_inline): Avoid diagnostics on recursive inline
3188         functions here.
3189         * lto-cgraph.c (lto_output_edge): Output edge call costs.
3190         (input_edge): Input edge call costs.
3192 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3194         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3196 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3198         * doc/invoke.texi (Spec Files): Fix typo.
3200 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3202         * profile.c (branch_prob): Move declaration of local variable.  Remove
3203         obsolete ??? comment.  Expand the location explicitly instead of using
3204         the LOCATION_FILE and LOCATION_LINE macros.
3206 2011-04-06  Wei Guozhi  <carrot@google.com>
3208         PR target/47855
3209         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3210         (arm_cond_branch): Likewise.
3211         (arm_cond_branch_reversed): Likewise.
3212         (arm_jump): Likewise.
3213         (push_multi): Likewise.
3214         * config/arm/constraints.md (Py): New constraint.
3216 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3218         PR bootstrap/48471
3219         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3220         Move these...
3221         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3222         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3223         #ifdef DBX_DEBUGGING_INFO.
3225 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3227         PR bootstrap/48403
3228         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3229         if old and new states differ.
3231 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3233         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3234         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3235         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3236         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3237         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3238         mcfv4e): Use Alias.
3239         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3240         ColdFire options to -mcpu= options.
3242 2011-04-05  Jeff Law  <law@redhat.com>
3244         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3245         check if BB is a successor of LOOP->header and return
3246         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3248 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3250         * cprop.c (struct reg_use): Remove.
3251         (reg_use_table): Make an array of RTX.
3252         (find_used_regs, constprop_register, local_cprop_pass,
3253         bypass_block): Simplify users of reg_use_table.
3254         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3255         on one of the uses found by find_used_regs.
3257 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3259         PR bootstrap/48469
3260         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3261         declaration.
3263 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3265         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3266         as an rtx.
3267         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3269 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3271         PR middle-end/48441
3272         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3274 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3276         * combine.c: Include obstack.h.
3277         (struct insn_link): Define.
3278         (uid_log_links): Adjust type.
3279         (FOR_EACH_LOG_LINK): New macro.
3280         (insn_link_obstack): Declare.
3281         (alloc_insn_link): Define.
3282         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3283         type of link variables.
3284         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3285         (try_combine, record_promoted_values, distribute_notes): Likewise.
3286         (distribute_links): Likewise.  Tweak prototype.
3287         (clear_log_links): Delete.
3288         (adjust_for_new_dest): Call alloc_insn_link.
3289         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3291 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3293         * gcse.c (modify_mem_list): Convert to an array of VECs.
3294         (canon_modify_mem_list, compute_transp): Tweak formatting.
3295         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3296         (load_killed_in_block_p): Likewise.
3297         (record_last_mem_set_info): Likewise.
3298         (clear_modify_mem_tables): Likewise.
3300 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3302         PR middle-end/48461
3303         * function.c (emit_use_return_register_into_block): Only define if
3304         HAVE_return.
3306 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3308         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3310 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3312         * config/rx/rx-opts.h: New.
3313         * config/rx/rx.c (rx_cpu_type): Remove.
3314         (rx_handle_option): Don't assert that global structures are in
3315         use.  Access variables via opts pointer.  Defer most handling of
3316         OPT_mint_register_.  Use error_at.
3317         (rx_option_override): Handle deferred OPT_mint_register_ here.
3318         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3319         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3320         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3321         (rx_cpu_types): New Enum and EnumValue entries.
3322         (mint-register=): Use Defer and use Var accordingly.
3324 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3326         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3327         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3328         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3329         Move these...
3330         (debug_free_queue, debug_nesting, symbol_queue_index):
3331         ...and these...
3332         * dbxout.c: ...to here.  Make static.
3334 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3336         * gcse.c (modify_pair): Define.  Define a VEC of it.
3337         (canon_modify_mem_list): Convert to an array of VECs.
3338         (free_insn_expr_list_list): Delete.
3339         (clear_modify_mem_tables): Call VEC_free instead.
3340         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3341         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3342         (canon_list_insert, compute_transp): Likewise.
3344 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3346         PR target/43920
3347         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3348         for size.
3350 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3352         PR target/43920
3353         * function.c (emit_use_return_register_into_block): New function.
3354         (thread_prologue_and_epilogue_insns): Use
3355         emit_use_return_register_into_block.
3357 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3359         PR target/43920
3360         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3361         insn.
3363 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3365         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3367 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3369         * config/arm/arm.md (define_constants for unspec): Replace with
3370         define_c_enum.
3371         (define_constants for unspecv): Replace with define_c_enum.
3372         * config/arm/neon.md (define_constants for unspec): Replace with
3373         define_c_enum.
3375 2011-04-04  Richard Henderson  <rth@redhat.com>
3377         PR bootstrap/48400
3378         * dwarf2out.c (output_line_info): Always emit line info from
3379         at least one section.
3380         (dwarf2out_init): Create text_section_line_info here ...
3381         (set_cur_line_info_table): ... not here.
3383 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3385         PR target/48380
3386         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3387         not called.
3389         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3391 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3393         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3394         (expr_equiv_p): Remove.
3395         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3396         (hash_scan_set): Update call to insert_set_in_table.
3397         (dump_hash_table): Dump <dest, src> pair.
3398         (lookup_set): Simplify.  Lookup <dest, src> pair.
3399         (compute_transp): Remove, fold heavily simplified code into...
3400         (compute_local_properties): ...here.  Expect COMP and TRANSP
3401         unconditionally.
3402         (find_avail_set): Take set directly from struct expr.
3403         (find_bypass-set): Likewise.
3404         (bypass_block): Likewise.
3405         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3407         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3408         checks on form of COND from find_implicit_sets to here.
3409         (find_implicit_sets): Cleanup control flow. Split critical edges
3410         if it exposes implicit sets.  Allocate/resize implicit_sets as
3411         necessary.
3412         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3413         changed something.  Run df_analyze after find_implicit_sets if any
3414         edges were split.  Do not allocate implicit_sets here.
3416         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3417         (gcse_obstack): Renamed to cprop_obstack.
3418         (GNEW, GNEWVEC, GNEWVAR): Remove.
3419         (gmalloc): Remove.
3420         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3421         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3422         (gcse_alloc): Likewise, and rename to cprop_alloc.
3423         (alloc_gcse_men, free_gcse_mem): Remove.
3424         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3425         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3426         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3428         * cprop.c (oprs_not_set_p): Remove.
3429         (mark_set, mark_clobber): Remove.
3430         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3431         (reg_not_set_p): New function.
3432         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3433         (cprop_insn): Likewise.
3434         (cprop_jump): Use FOR_EACH_EDGE.
3436 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3438         PR bootstrap/48403
3439         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3440         (rank_for_schedule): Use scheduled_insns vector instead of
3441         last_scheduled_insn.
3442         (ok_for_early_queue_removal): Likewise.
3443         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3444         we have a dbg_cnt.
3445         (choose_ready): Likewise.
3446         (commit_schedule): Use VEC_iterate.
3447         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3448         a dbg_cnt, use it and ensure the first insn is in the ready list.
3449         (haifa_sched_init): Allocate scheduled_insns.
3450         (sched_extend_ready_list): Don't allocate it; reserve space.
3451         (haifa_sched_finish): Free it.
3453 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3455         * optc-gen.awk: Always remove type from Variable entry before
3456         recording in var_seen.
3458 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3460         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3461         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3462         call to tidy_fallthru_edges.
3464 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3466         * doc/options.texi (ToLower): Document.
3467         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3468         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3469         * opts.h (cl_option): Add cl_tolower field.
3470         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3471         arguments with lowercase strings.
3472         * config/rx/rx.opt (mcpu=): Add ToLower.
3473         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3474         argument.
3476 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3478         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3480 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3482         * config/vax/vax.c: Include reload.h.
3484 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3486         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3487         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3488         (sparc_preferred_reload_class): New function.
3490 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3492         PR debug/48401
3493         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3494         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3496 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3498         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3499         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3501 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3503         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3504         (ASM_OUTPUT_ALIGNED_BSS): Define.
3506 2011-04-03  Michael Matz  <matz@suse.de>
3508         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3509         and next_slot members.
3510         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3511         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3512         (lto_streamer_cache_append): Declare.
3513         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3514         unsigned index, remove offset parameter, ensure that we append
3515         or update existing entries.
3516         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3517         parameter, update next_slot for append.
3518         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3519         parameter.
3520         (lto_streamer_cache_insert_at): Likewise.
3521         (lto_streamer_cache_append): New function.
3522         (lto_streamer_cache_lookup): Use unsigned index.
3523         (lto_streamer_cache_get): Likewise.
3524         (lto_record_common_node): Don't test tree_node_can_be_shared.
3525         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3526         (lto_streamer_cache_delete): Don't free offsets member.
3527         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3528         (lto_output_string_with_length): Use lto_output_data_stream.
3529         (lto_output_tree_header): Remove ix parameter, don't write it.
3530         (lto_output_builtin_tree): Likewise.
3531         (lto_write_tree): Adjust callers to above, don't track and write
3532         offset, write unsigned index.
3533         (output_unreferenced_globals): Don't emit all global vars.
3534         (write_global_references): Use unsigned indices.
3535         (lto_output_decl_state_refs): Likewise.
3536         (write_symbol): Likewise.
3537         * lto-streamer-in.c (lto_input_chain): Move earlier.
3538         (input_function): Use unsigned index.
3539         (input_alias_pairs): Don't read and then ignore all global vars.
3540         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3541         don't pass it back, use lto_streamer_cache_append.
3542         (lto_register_var_decl_in_symtab): Use unsigned index.
3543         (lto_register_function_decl_in_symtab): Likewise.
3544         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3545         index.
3546         (lto_get_builtin_tree): Don't read index, use
3547         lto_streamer_cache_append.
3548         (lto_read_tree): Adjust call to lto_materialize_tree.
3550         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3551         don't use function calls in arguments to MIN.
3553         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3554         twice.
3556         * gimple.c (gimple_type_leader_entry): Mark deletable.
3558 2011-04-03  Alan Modra  <amodra@gmail.com>
3560         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3562 2011-04-03  Michael Matz  <matz@suse.de>
3564         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3565         an integer.
3566         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3568 2011-04-03  Michael Matz  <matz@suse.de>
3570         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3571         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3572         without function context.
3573         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3574         current_function_decl and cfun.
3576 2011-04-03  Michael Matz  <matz@suse.de>
3578         * tree.c (decl_init_priority_insert): Don't create entry for
3579         default priority.
3580         (decl_fini_priority_insert): Ditto.
3581         (fields_compatible_p, find_compatible_field): Remove.
3582         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3583         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3585 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3587         * combine.c (try_combine): Remove useless local variable.
3589 2011-04-03  Richard Guenther  <rguenther@suse.de>
3590             Ira Rosen  <ira.rosen@linaro.org>
3592         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3593         non-variable offsets and compare the remaining bases of the two
3594         accesses instead of looking for exact same data-ref.
3596 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3598         PR target/48416
3599         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3601         * i386.c (ix86_is_msabi_thiscall): New helper function.
3602         (ix86_is_type_thiscall): New helper function.
3603         (ix86_comp_type_attributes): Handle thiscall for method-functions
3604         special.
3605         (init_cumulative_args): Likewise.
3606         (find_drap_reg): Likewise.
3607         (ix86_static_chain): Likewise.
3608         (x86_this_parameter): Likewise.
3609         (x86_output_mi_thunk): Likewise.
3611 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3612             Nicolas Setton  <setton@adacore.com>
3613             Eric Botcazou  <ebotcazou@adacore.com>
3615         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3616         (add_gnat_descriptive_type_attribute): New function.
3617         (gen_array_type_die): Call it.
3618         (gen_enumeration_type_die): Likewise.
3619         (gen_struct_or_union_type_die): Likewise.
3620         (modified_type_die): Likewise.
3621         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3622         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3623         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3625 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3627         PR bootstrap/48148
3628         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3629         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3631         Revert:
3632         2011-03-17  Richard Guenther  <rguenther@suse.de>
3634         PR bootstrap/48148
3635         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3636         origin for decls in other ltrans units.
3637         (input_varpool_node): Likewise.
3639 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3641         PR middle-end/48335
3642         * expr.c (expand_assignment): Handle all possibilities
3643         if TO_RTX is CONCAT.
3644         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3645         (store_split_bit_field): If SUBREG_REG (op0) or
3646         op0 itself has smaller mode than word, return it
3647         for offset 0 and const0_rtx for out-of-bounds stores.
3648         If word is const0_rtx, skip it.
3650 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3652         * config/h8300/h8300.c (print_operand_address): Rename to...
3653         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3654         Call h8300_print_operand and h8300_print_operand_address instead of
3655         print_operand and print_operand_address. Declare.
3656         (print_operand): Renake to...
3657         (h8300_print_operand): ...this. Make static. Adjust comments.
3658         Call h8300_print_operand instead of print_operand. Declare.
3659         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3660         (h8300_register_move_cost): Likewise.
3661         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3662         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3663         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3664         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3665         * config/h8300/h8300-protos.h (print_operand): Delete.
3666         (print_operand_address): Delete.
3668 2011-04-01  Richard Henderson  <rth@redhat.com>
3670         PR 48400
3671         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3672         in strict mode before dwarf4.  Re-order tests to early out
3673         before switching sections.
3675 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3677         * config/h8300/constraints.md: New file.
3678         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3679         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3680         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3681         * config/h8300/predicates.md (bit_operand): Likewise.
3682         (incdec_operand): Use satisfies_constraint_M and
3683         satisfies_constraint_O.  Don't use C code block.
3684         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3685         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3686         (compute_mov_length): Use satisfies_constraint_G.
3687         (fix_bit_operand): Use satisfies_constraint_U.
3688         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3689         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3690         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3691         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3692         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3693         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3694         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3695         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3696         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3697         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3698         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3699         (EXTRA_MEMORY_CONSTRAINT): Delete.
3701 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3702             Michael Meissner  <meissner@linux.vnet.ibm.com>
3704         PR target/48262
3705         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3706         operands, as per the specifications.
3708         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3709         (vec_extract_evenv4sf): Ditto.
3710         (vec_extract_evenv8hi): Ditto.
3711         (vec_extract_evenv16qi): Ditto.
3712         (vec_extract_oddv4si): Ditto.
3714 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3716         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3717         high_pc attribute if the CU has no associated code. Only output
3718         DW_AT_entry_pc for CU if not generating strict dwarf and
3719         dwarf_version < 4.
3721 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3723         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3724         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3725         out of ...
3726         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3727         * final.c (final_start_function): Call the new function rather
3728         than using a NULL argument for dwarf2out_frame_debug.
3730         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3731         that contains the prologue.
3733         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3734         changed.  Print it in debugging output.
3736         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3738         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3739         Split most of the code into...
3740         (begin_move_insn): ... here.  New function.
3741         (ebb_sched_info): Add a pointer to it.
3742         * haifa-sched.c (scheduled_insns): New static variable.
3743         (sched_extend_ready_list): Allocate it.
3744         (schedule_block): Use it to record the order of scheduled insns.
3745         Perform RTL changes to move insns only after all scheduling
3746         decisions have been made.
3747         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3748         begin_move_insn field.
3749         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3750         * sched-int.h (struct haifa_sched_info): Remove second argument
3751         from begin_schedule_ready hook.  Add new member begin_move_insn.
3752         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3753         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3755         * haifa-sched.c (prune_ready_list): New function, broken out of
3756         schedule_block.
3757         (schedule_block): Use it.
3759 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3761         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3763 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3765         * config.gcc (*-*-mingw*): Allow as option the
3766         posix threading model.
3767         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3768         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3769         definition.
3770         (CPP_SPEC): Add pthread/no-pthread handling.
3771         (LIB_SPEC): Likewise.
3772         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3773         (LIB_SPEC): Likewise.
3774         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3775         flag to pass -pthread option for shared libgcc build.
3776         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3777         for shared libgcc build.
3778         * config/i386/t-mingw-pthread: New file.
3779         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3780         New define to enable use of library pthread by default.
3781         * config/i386/mingw.opt (pthread): New driver option.
3782         (no-pthread): New driver option.
3783         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3784         * config/i386/mingw-w64.opt: Likewise.
3786 2011-04-01  Gary Funck <gary@intrepid.com>
3788         * c-decl.c (grokdeclarator): Fix formatting.
3790 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3792         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3793         instead of n_operands.
3794         (set_storage_via_setmem): Likewise.
3795         * optabs.c (maybe_gen_insn): Likewise.
3796         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3797         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3798         (mips_expand_builtin_direct): Likewise.
3799         * config/spu/spu.c (expand_builtin_args): Likewise.
3801 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3803         * recog.h (insn_data_d): Add n_generator_args.
3804         * genoutput.c (data): Likewise.
3805         (output_insn_data): Print it.
3806         (max_opno, num_dups): Delete.
3807         (scan_operands): Just fill in "d->operand[...]".
3808         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3810 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3812         * gensupport.h (pattern_stats): New structure.
3813         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3814         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3815         (max_operand_1, max_operand_vec): Delete.
3816         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3818 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3820         * emit-rtl.c (emit_pattern_after_setloc): New function.
3821         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3822         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3823         (emit_pattern_after): New function.
3824         (emit_insn_after, emit_jump_insn_after): Call it.
3825         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3826         (emit_pattern_before_setloc): New function.
3827         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3828         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3829         Likewise.
3830         (emit_pattern_before): New function.
3831         (emit_insn_before, emit_jump_insn_before): Call it.
3832         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3834 2011-03-31  Richard Henderson  <rth@redhat.com>
3836         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3837         (dw_separate_line_info_entry): Remove.
3838         (enum dw_line_info_opcode): New.
3839         (dw_line_info_entry): Use it.
3840         (dw_line_info_table, dw_line_info_table_p): New.
3841         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3842         (line_info_table, line_info_label_num): Remove.
3843         (line_info_table_in_use): Remove.
3844         (separate_line_info_table): Remove.
3845         (separate_line_info_table_allocated): Remove.
3846         (separate_line_info_table_in_use): Remove.
3847         (LINE_INFO_TABLE_INCREMENT): Remove.
3848         (line_info_label_num): New.
3849         (cur_line_info_table): New.
3850         (text_section_line_info, cold_text_section_line_info): New.
3851         (separate_line_info): New.
3852         (SEPARATE_LINE_CODE_LABEL): Remove.
3853         (print_dwarf_line_table): Remove.
3854         (debug_dwarf): Don't dump it.
3855         (output_one_line_info_table): New.
3856         (output_line_info): Use it.
3857         (new_line_info_table): New.
3858         (set_cur_line_info_table): New.
3859         (dwarf2out_switch_text_section): Use it.
3860         (dwarf2out_begin_function): Likewise.
3861         (push_dw_line_info_entry): New.
3862         (dwarf2out_source_line): Rewrite for new line info tables.
3863         (dwarf2out_init): Remove dead initailizations.
3865 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3867         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3868         various flags.
3869         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3870         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3871         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3872         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3873         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3874         * opt-functions.awk (flag_init, switch_bit_fields): New.
3875         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3876         generate CL_MISSING_OK or CL_SAVE.
3877         * optc-gen.awk: Update to generate bit-field output as well as
3878         flags field.
3879         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3880         bit-field instead of CL_REJECT_DRIVER flag.
3881         * opts-common.c (generate_canonical_option,
3882         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3883         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3884         instead of CL_REJECT_NEGATIVE flag.
3885         * toplev.c (print_switch_values): Use cl_report bit-field instead
3886         of CL_REPORT flag.
3888 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3890         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3891         a zero minimum index only if it is redundant.
3893 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3895         PR rtl-optimization/48381
3896         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3897         instead of ira_class_hard_reg_index for calculating conflicting
3898         hard registers.
3900 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3902         * cprop.c: Clean up hash table building.
3903         (reg_avail_info): Remove.
3904         (oprs_available_p): Remove.
3905         (record_last_reg_set_info): Remove.
3906         (record_last_set_info): Remove.
3907         (reg_available_p): New function.
3908         (gcse_constant_p): Do not treat unfolded conditions as constants.
3909         (make_set_regs_unavailable): New function.
3910         (hash_scan_set): Simplify with new reg_available_p.
3911         (compute_hash_table_work): Traverse insns stream only once.
3912         Do not compute reg_avail_info. Traverse insns in reverse order.
3913         Record implicit sets after recording explicit sets from the block.
3915 2011-03-31  Michael Matz  <matz@suse.de>
3917         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3919 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3921         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3922         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3923         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3924         (h8300_mode_dependent_address_p): New function.
3925         (h8300_get_index): Make static.
3927 2011-03-31  Jeff Law  <law@redhat.com>
3929         * reload1.c (elimination_effects): Fix typo in recent change.
3931         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3932         typo potentially leading to null pointer dereference.
3934         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3935         (setup_save_areas): Corresponding changes to avoid useless
3936         assignments.
3938         * jump.c (reversed_comparison_code_parts): Avoid successive return
3939         statements when REVERSE_CONDITION is defined.
3941         * expr.c (expand_assignment): Avoid useless assignments.
3942         (expand_expr_real_1): Likewise.
3943         (expand_expr_real_2): Avoid useless statements.
3945         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3947         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3949         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3950         statements.
3952         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3954 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3956         PR target/47109
3957         * doc/tm.texi.in (TARGET_VERSION): Remove.
3958         * doc/tm.texi: Regenerate.
3959         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3960         * collect2.c (main): Don't use TARGET_VERSION.
3961         * mips-tdump.c (main): Don't use TARGET_VERSION.
3962         * mips-tfile.c (main): Don't use TARGET_VERSION.
3963         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3964         * config/rs6000/vxworksae.h: Remove.
3965         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3966         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3967         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3968         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3969         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3970         * config/arm/arm.h (TARGET_VERSION): Remove.
3971         * config/arm/coff.h (TARGET_VERSION): Remove.
3972         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3973         * config/arm/elf.h (TARGET_VERSION): Remove.
3974         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3975         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3976         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3977         * config/arm/pe.h (TARGET_VERSION): Remove.
3978         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3979         * config/arm/semi.h (TARGET_VERSION): Remove.
3980         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3981         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3982         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3983         * config/avr/avr.h (TARGET_VERSION): Remove.
3984         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3985         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3986         * config/frv/frv.h (TARGET_VERSION): Remove.
3987         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3988         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3989         * config/i386/darwin.h (TARGET_VERSION): Remove.
3990         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3991         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3992         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3993         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3994         * config/i386/gnu.h (TARGET_VERSION): Remove.
3995         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3996         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3997         * config/i386/linux.h (TARGET_VERSION): Remove.
3998         * config/i386/linux64.h (TARGET_VERSION): Remove.
3999         * config/i386/lynx.h (TARGET_VERSION): Remove.
4000         * config/i386/mingw32.h (TARGET_VERSION): Remove.
4001         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4002         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4003         * config/i386/netware.h (TARGET_VERSION): Remove.
4004         * config/i386/nto.h (TARGET_VERSION): Remove.
4005         * config/i386/openbsd.h (TARGET_VERSION): Remove.
4006         * config/i386/vxworks.h (TARGET_VERSION): Remove.
4007         * config/ia64/elf.h (TARGET_VERSION): Remove.
4008         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4009         * config/ia64/hpux.h (TARGET_VERSION): Remove.
4010         * config/ia64/linux.h (TARGET_VERSION): Remove.
4011         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4012         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4013         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4014         * config/lm32/lm32.h (TARGET_VERSION): Remove.
4015         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4016         * config/m32c/m32c.h (TARGET_VERSION): Remove.
4017         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4018         * config/m32r/m32r.h (TARGET_VERSION): Remove.
4019         * config/m68k/linux.h (TARGET_VERSION): Remove.
4020         * config/m68k/m68k.h (TARGET_VERSION): Remove.
4021         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4022         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4023         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4024         * config/mep/mep.h (TARGET_VERSION): Remove.
4025         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4026         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4027         * config/mips/iris6.h (MACHINE_TYPE): Remove.
4028         * config/mips/linux.h (TARGET_VERSION): Remove.
4029         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4030         * config/mips/vxworks.h (TARGET_VERSION): Remove.
4031         * config/mmix/mmix.h (TARGET_VERSION): Remove.
4032         * config/mn10300/linux.h (TARGET_VERSION): Remove.
4033         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4034         * config/pa/pa.h (TARGET_VERSION): Remove.
4035         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4036         * config/picochip/picochip.h (TARGET_VERSION): Remove.
4037         * config/rs6000/aix.h (TARGET_VERSION): Remove.
4038         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4039         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4040         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4041         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4042         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4043         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4044         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4045         * config/rs6000/linux.h (TARGET_VERSION): Remove.
4046         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4047         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4048         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4049         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4050         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4051         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4052         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4053         * config/s390/linux.h (TARGET_VERSION): Remove.
4054         * config/s390/s390.h (TARGET_VERSION): Remove.
4055         * config/s390/tpf.h (TARGET_VERSION): Remove.
4056         * config/score/score.h (TARGET_VERSION): Remove.
4057         * config/sh/linux.h (TARGET_VERSION): Remove.
4058         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4059         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4060         * config/sh/sh.h (TARGET_VERSION): Remove.
4061         * config/sh/sh64.h (TARGET_VERSION): Remove.
4062         * config/sh/superh.h (TARGET_VERSION): Remove.
4063         * config/sh/vxworks.h (TARGET_VERSION): Remove.
4064         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4065         * config/sparc/linux.h (TARGET_VERSION): Remove.
4066         * config/sparc/linux64.h (TARGET_VERSION): Remove.
4067         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4068         TARGET_NAME32, TARGET_NAME): Remove.
4069         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4070         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4071         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4072         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4073         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4074         * config/spu/spu.h (TARGET_VERSION): Remove.
4075         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4076         * config/v850/v850.h (TARGET_VERSION): Remove.
4077         * config/vax/linux.h (TARGET_VERSION): Remove.
4078         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4079         * config/xtensa/elf.h (TARGET_VERSION): Remove.
4080         * config/xtensa/linux.h (TARGET_VERSION): Remove.
4082 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4084         PR target/48142
4085         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4086         frame-related from frame-unrelated adjustments to the stack pointer.
4088 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
4090         * common.opt (fdebug-types-section): Move earlier.
4091         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4093 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
4095         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4096         var.
4098 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
4100         * tree.h (CASE_CHAIN): Define.
4101         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4102         (gimple_redirect_edge_and_branch): Likewise.
4104 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4106         PR middle-end/48367
4107         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4108         calculation.
4110 2011-03-30  Jeff Law  <law@redhat.com>
4112         * PR bootstrap/48371
4113         * reload1.c (reload): Fix botch in last change.
4115         * reload.h (struct reload): Fix typo introduced in last change.
4117 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4119         * config/arm/arm.opt (mhard-float, msoft-float): Mark
4120         Undocumented.  Remove help text.
4121         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4122         -mhard-float.
4124 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4126         * doc/options.texi (NegativeAlias): Document.
4127         (Alias): Mention NegativeAlias.
4128         * opt-functions.awk: Handle NegativeAlias.
4129         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4130         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4131         * opts.h (CL_NEGATIVE_ALIAS): Define.
4132         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4133         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4134         OPT_mspe_.
4135         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4136         Alias entries.
4137         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4138         mno-spe and mno-isel instead of mspe=no and -misel=no.
4140 2011-03-29  Mark Wielaard  <mjw@redhat.com>
4142         * common.opt (fdebug-types-section): New flag.
4143         * doc/invoke.texi: Document new -fno-debug-types-section flag.
4144         * dwarf2out.c (use_debug_types): New define.
4145         (struct die_struct): Mark die_id with GTY desc use_debug_types.
4146         (print_die): Guard output of type unit signatures using
4147         use_debug_types.
4148         (build_abbrev_table): Replace assert of dwarf_version >= 4
4149         with assert on use_debug_types.
4150         (size_of_die): Likewise.
4151         (unmark_dies): Likewise.
4152         (value_format): Decide AT_ref_external form on use_debug_types.
4153         (output_die): Replace dwarf_version version check guard with
4154         use_debug_types where appropriate.
4155         (modified_type_die): Likewise.
4156         (gen_reference_type_die): Likewise.
4157         (dwarf2out_start_source_file): Likewise.
4158         (dwarf2out_end_source_file): Likewise.
4159         (prune_unused_types_walk_attribs): Likewise.
4160         (dwarf2out_finish): Likewise.
4162 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4164         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4166 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4168         PR rtl-optimization/48332
4169         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4170         mode of input operand N and modeN to its actual mode.
4172 2011-03-30  Jeff Law  <law@redhat.com>
4174         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4175         define accessor macro.
4176         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4177         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4178         (reg_equiv_init): Likewise.
4179         (reg_equivs_size): New variable.
4180         (reg_equiv_init_size): Remove.
4181         (allocate_initial_values): Move prototype to here from....
4182         * integrate.h (allocate_initial_values): Remove prototype.
4183         * integrate.c: Include reload.h.
4184         (allocate_initial_values): Corresponding changes.
4185         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4186         (fix_reg_equiv_init, no_equiv): Corresponding changes.
4187         (update_equiv_regs): Corresponding changes.
4188         (ira): Corresponding changes.
4189         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4190         (push_secondary_reload): Corresponding changes.
4191         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4192         (make_memloc, find_reloads_address): Corresponding changes.
4193         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4194         (find_reloads_address_1): Corresponding changes.
4195         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4196         (refers_to_regno_for_reload_p): Corresponding changes.
4197         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4198         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4199         * reload1.c: Include ggc.h.
4200         (grow_reg_equivs): New function.
4201         (replace_pseudos_in, reload): Corresponding changes.
4202         (calculate_needs_all_insns, alter_regs): Corresponding changes.
4203         (eliminate_regs_1, elimination_effects): Corresponding changes.
4204         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4205         (delete_output_reload): Likewise.
4206         * caller-save.c (mark_referenced_regs): Corresponding changes.
4207         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4208         * frv/predicates.md (frv_load_operand): Corresponding changes.
4209         * microblaze/microblaze.c (double_memory_operand): Corresponding
4210         changes.
4211         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4212         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4213         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4214         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4215         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4216         changes.
4217         * pa/pa.c (emit_move_sequence): Corresponding changes.
4218         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4220 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4222         PR target/47551
4223         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4224         structure modes.  Don't check neon_vector_mem_operand for
4225         vector or structure modes.
4227 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4228             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4230         PR target/43590
4231         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4232         operand 1 and reshuffle the operands to match.
4233         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4235 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4237         PR driver/48208
4238         * config/c.opt (F): Added 'Driver' to -F option.
4240         PR driver/48260
4241         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4242           handler function.
4243         * config/darwin.opt: Added '-arch' option.
4245 2011-03-30  Nick Clifton  <nickc@redhat.com>
4247         * config/rx/rx.md: Add peepholes and patterns to combine
4248         extending loads and simple arithmetic instructions.
4249         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4250         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4251         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4252         modes to use pre-decrement and post-increment addressing.
4253         (rx_is_restricted_memory_address): Add range checking of REG+INT
4254         addresses.
4255         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4256         (rx_memory_move_cost): Adjust cost of stores.
4257         (rx_adjust_insn_length): New function.
4259 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4261         PR c/48305
4262         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4263         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4264         matching arg00/arg01 types.
4266 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4268         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4269         last_location to UNKNOWN_LOCATION.
4271 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4273         PR target/48349
4274         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4275         FLOAT_SSE_REGS.
4277 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4278             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4280         PR bootstrap/48337
4281         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4282         Init(PROCESSOR_V7).
4283         (sparc_cpu): Likewise.
4284         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4285         PROCESSOR_V7.
4287 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4289         PR target/48336
4290         PR middle-end/48342
4291         PR rtl-optimization/48345
4292         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4293         hard regs for given mode from profitable regs when doing secondary
4294         allocation.
4296 2011-03-29  Jeff Law  <law@redhat.com>
4298         PR bootstrap/48327
4299         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4300         do_not_duplicate field.
4301         (lookup_redirection_data): Corresponding changes.
4302         (create_duplicates): Always create a template block.
4303         (redirect_edges): Remove code which reused the original block
4304         when it was going to become unreachable code.
4305         (thread_block): Don't set do_not_duplicate field.
4307 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4309         * lto-opts.c (register_user_option_p, lto_register_user_option):
4310         Make type argument unsigned.
4311         * lto-streamer.h (lto_register_user_option): Make type argument
4312         unsigned.
4313         * opth-gen.awk: Make CL_* macros unsigned.
4314         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4315         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4316         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4317         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4318         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4319         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4320         (find_opt): Make lang_mask argument unsigned.
4322 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4324         PR rtl-optimization/48331
4325         PR rtl-optimization/48334
4326         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4327         for any used algorithm.
4329 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4331         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4332         to parent_max.
4334 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4336         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4337         (alpha_option_override): Don't set alpha_sr_alias_set.
4338         (emit_frame_store_1): Use gen_frame_mem rather than calling
4339         set_mem_alias_set.
4340         (alpha_expand_epilogue): Ditto.
4342 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4344         PR tree-optimization/48290
4345         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4346         vectorization, check that relevant phis in the basic block after
4347         the inner loop are really inner loop's exit phis.
4349 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4351         PR debug/48190
4352         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4353         (cached_dw_loc_list_def): New structure.
4354         (cached_dw_loc_list): New typedef.
4355         (cached_dw_loc_list_table): New variable.
4356         (cached_dw_loc_list_table_hash): New function.
4357         (cached_dw_loc_list_table_eq): Likewise.
4358         (add_location_or_const_value_attribute): Take a bool cache_p.
4359         Cache the list when the parameter is true.
4360         (gen_formal_parameter_die): Update caller.
4361         (gen_variable_die): Likewise.
4362         (dwarf2out_finish): Likewise.
4363         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4364         while generating debug info for the decl.
4365         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4366         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4367         (resolve_addr): Cache the result of resolving a chain of
4368         location lists.
4370 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4372         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4373         conflict object hard regset nodes have intersecting hard reg sets.
4375         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4376         after regstat_init_n_sets_and_refs.
4378         * ira.c: Add more comments at the top.
4379         (setup_stack_reg_pressure_class, setup_pressure_classes):
4380         Add comments how we compute the register pressure classes.
4381         (setup_allocno_and_important_classes): Add more comments.
4382         (setup_class_translate_array, reorder_important_classes)
4383         (setup_reg_class_relations): Add comments.
4385         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4386         start of the file.
4388         * ira-color.c: Add 2011 to the Copyright line.
4389         (assign_hard_reg):  Add more comments.
4390         (improve_allocation): Ditto.
4392         * ira-costs.c: Add 2011 to the Copyright line.
4393         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4394         comments.
4395         (setup_regno_cost_classes_by_mode): Ditto.
4397         Initial patches from ira-improv branch:
4399         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4401         * ira-build.c (ira_create_object): Remove initialization of
4402         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4403         (ira_create_allocno): Remove initialization of
4404         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4405         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4406         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4407         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4408         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4409         Initialize ALLOCNO_ADD_DATA.
4410         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4411         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4412         ALLOCNO_REG.
4413         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4414         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4416         * ira.c (ira_reallocate): Remove.
4417         (setup_pressure_classes): Call
4418         ira_init_register_move_cost_if_necessary.  Use
4419         ira_register_move_cost instead of ira_get_register_move_cost.
4420         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4421         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4423         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4424         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4425         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4426         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4427         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4428         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4429         Fix formatting.
4430         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4431         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4432         (struct allocno_color_data): New.
4433         (allocno_color_data_t): New typedef.
4434         (allocno_color_data): New definition.
4435         (ALLOCNO_COLOR_DATA): New macro.
4436         (struct object_color_data): New.
4437         (object_color_data_t): New typedef.
4438         (object_color_data): New definition.
4439         (OBJECT_COLOR_DATA): New macro.
4440         (update_copy_costs, calculate_allocno_spill_cost): Call
4441         ira_init_register_move_cost_if_necessary.  Use
4442         ira_register_move_cost instead of ira_get_register_move_cost.
4443         (move_spill_restore, update_curr_costs): Ditto.
4444         (allocno_spill_priority): Make it inline.
4445         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4446         (struct coalesce_data, coalesce_data_t): New.
4447         (allocno_coalesce_data): New definition.
4448         (ALLOCNO_COALESCE_DATA): New macro.
4449         (merge_allocnos, coalesced_allocno_conflict_p): Use
4450         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4451         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4452         (coalesce_allocnos): Ditto.
4453         (setup_coalesced_allocno_costs_and_nums): Ditto.
4454         (collect_spilled_coalesced_allocnos): Ditto.
4455         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4456         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4457         (coalesce_spill_slots): Ditto.
4458         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4459         free allocno_coalesce_data.
4461         * ira-conflicts.c: Fix formatting.
4462         (process_regs_for_copy): Call
4463         ira_init_register_move_cost_if_necessary.  Use
4464         ira_register_move_cost instead of ira_get_register_move_cost.
4465         (build_object_conflicts): Optimize.
4467         * ira-costs.c (record_reg_classes): Optimize.  Call
4468         ira_init_register_move_cost_if_necessary.  Use
4469         ira_register_move_cost, ira_may_move_in_cost, and
4470         ira_may_move_out_cost instead of ira_get_register_move_cost and
4471         ira_get_may_move_cost.
4472         (record_address_regs): Ditto.
4473         (scan_one_insn): Optimize.
4474         (find_costs_and_classes): Optimize.
4475         (process_bb_node_for_hard_reg_moves): Call
4476         ira_init_register_move_cost_if_necessary.  Use
4477         ira_register_move_cost instead of ira_get_register_move_cost.
4479         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4480         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4481         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4482         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4483         definitions.
4484         (ira_initiate_emit_data, ira_finish_emit_data)
4485         (create_new_allocno): New functions.
4486         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4487         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4488         Use ira_register_move_cost instead of ira_get_register_move_cost.
4490         * ira-int.h: Fix some comments.
4491         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4492         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4493         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4494         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4495         add_data.
4496         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4497         bitfield after mode.  Make hard_regno a short int.  Make
4498         hard_regno short.  Remove first_coalesced_allocno and
4499         next_coalesced_allocno.  Move mem_optimized_dest_p,
4500         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4501         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4502         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4503         temp, colorable_p.  Add new member add_data.
4504         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4505         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4506         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4507         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4508         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4509         (ALLOCNO_ADD_DATA): New macro.
4510         (ira_emit_data_t): New typedef.
4511         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4512         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4513         from struct ira_allocno.
4514         (ALLOCNO_EMIT_DATA): New macro.
4515         (ira_allocno_emit_data, allocno_emit_reg): New.
4516         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4517         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4518         (OBJECT_ADD_DATA): New macro.
4519         (ira_reallocate): Remove.
4520         (ira_initiate_emit_data, ira_finish_emit_data): New.
4521         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4522         (ira_init_register_move_cost_if_necessary): New.
4523         (ira_object_conflict_iter_next): Merge into
4524         ira_object_conflict_iter_cond.
4525         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4527         * ira-live.c (process_single_reg_class_operands): Call
4528         ira_init_register_move_cost_if_necessary.  Use
4529         ira_register_move_cost instead of ira_get_register_move_cost.
4531         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4533         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4535         * ira-costs.c: Fix formatting.
4536         (cost_classes, cost_classes_num): Remove.
4537         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4538         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4539         (cost_classes_del, cost_classes_htab): New.
4540         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4541         (initiate_regno_cost_classes, setup_cost_classes): New.
4542         (setup_regno_cost_classes_by_aclass): New.
4543         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4544         (record_reg_classes): Use regno_cost_classes instead of
4545         cost_classes.  Move checking opposite operand up.
4546         (record_address_regs): Use regno_cost_classes
4547         instead of cost_classes.
4548         (scan_one_insn): Ditto.  Use always general register.
4549         (print_allocno_costs): Use regno_cost_classes instead of
4550         cost_classes.
4551         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4552         (find_costs_and_classes): Set up cost classes for each registers.
4553         Use also their mode for this.  Use regno_cost_classes instead of
4554         cost_classes.
4555         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4556         cost_classes.
4557         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4558         (ira_costs, ira_set_pseudo_classes): Call
4559         initiate_regno_cost_classes and finish_regno_cost_classes.
4561         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4563         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4565         * target.def (ira_cover_classes): Remove.
4567         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4569         * doc/tm.texi.in: Ditto.
4571         * ira-conflicts.c: Remove mentioning cover classes from the file.
4572         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4573         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4575         * targhooks.c (default_ira_cover_classes): Remove.
4577         * targhooks.h (default_ira_cover_classes): Ditto.
4579         * haifa-sched.c: Remove mentioning cover classes from the file.
4580         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4581         ira_pressure_classes and ira_pressure_classes_num instead of
4582         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4583         sched_regno_pressure_class instead of sched_regno_cover_class.
4584         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4585         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4587         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4588         classes from the file.
4589         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4590         (struct object_hard_regs, struct object_hard_regs_node): New.
4591         (struct ira_object): New members profitable_hard_regs,
4592         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4593         (struct ira_allocno): Rename cover_class to aclass.  Rename
4594         cover_class_cost and updated_cover_class_cost to class_cost and
4595         updated_class_cost.  Remove splay_removed_p and
4596         left_conflict_size.  Add new members colorable_p.
4597         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4598         (ALLOCNO_COLORABLE_P): New macro.
4599         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4600         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4601         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4602         (OBJECT_...): Rename parameter C to O.
4603         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4604         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4605         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4606         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4607         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4608         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4609         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4610         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4611         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4612         x_ira_reg_class_subunion.
4613         (ira_max_memory_move_cost, ira_max_register_move_cost)
4614         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4615         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4616         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4617         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4618         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4619         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4620         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4621         (ira_tune_allocno_costs_and_cover_classes): Rename to
4622         ira_tune_allocno_costs.
4623         (ira_debug_hard_regs_forest): New.
4624         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4625         (ira_object_conflict_iter_next): Fix comments.
4626         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4627         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4628         cover_class to aclass.
4629         (ira_allocate_and_accumulate_costs): Ditto.
4630         (ira_allocate_and_set_or_copy_costs): Ditto.
4632         * opts.c (decode_options): Remove ira_cover_class check.
4634         * ira-color.c: Remove mentioning cover classes from the file.  Use
4635         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4636         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4637         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4638         (splay-tree.h): Remove include.
4639         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4640         before copy_freq_compare_func.
4641         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4642         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4643         New definitions.
4644         (hard_regs_roots, hard_regs_node_vec): Ditto.
4645         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4646         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4647         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4648         (create_new_object_hard_regs_node): Ditto.
4649         (add_new_object_hard_regs_node_to_forest): Ditto.
4650         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4651         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4652         Ditto.
4653         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4654         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4655         (remove_unused_object_hard_regs_nodes): Ditto.
4656         (enumerate_object_hard_regs_nodes): Ditto.
4657         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4658         (object_hard_regs_subnode_t): Ditto.
4659         (struct object_hard_regs_subnode): Ditto.
4660         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4661         (setup_object_hard_regs_subnode_index): Ditto.
4662         (get_object_hard_regs_subnodes_num): Ditto.
4663         (form_object_hard_regs_nodes_forest): Ditto.
4664         (finish_object_hard_regs_nodes_tree): Ditto.
4665         (finish_object_hard_regs_nodes_forest): Ditto.
4666         (allocnos_have_intersected_live_ranges_p): Rename to
4667         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4668         (pseudos_have_intersected_live_ranges_p): Rename to
4669         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4670         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4671         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4672         (update_copy_costs): Remove assert.  Skip cost update if the hard
4673         reg does not belong the class.
4674         (assign_hard_reg): Process only profitable hard regs.
4675         (uncolorable_allocnos_num): Make it scalar.
4676         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4677         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4678         and ira_reg_class_max_nregs.
4679         (bucket_allocno_compare_func): Check frequency first.
4680         (sort_bucket): Add compare function as a parameter.
4681         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4682         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4683         (push_allocno_to_stack): Rewrite for checking new allocno
4684         colorability.
4685         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4686         (push_only_colorable): Pass new parameter to sort_bucket.
4687         (push_allocno_to_spill): Remove.
4688         (allocno_spill_priority_compare): Make it inline and rewrite.
4689         (splay_tree_allocate, splay_tree_free): Remove.
4690         (allocno_spill_sort_compare): New function.
4691         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4692         build and use splay tree.  Choose first allocno in uncolorable
4693         allocno bucket to spill.  Remove setting spill cost.
4694         (all_conflicting_hard_regs): Remove.
4695         (setup_allocno_available_regs_num): Check only profitable hard
4696         regs.  Print info about hard regs nodes.
4697         (setup_allocno_left_conflicts_size): Remove.
4698         (put_allocno_into_bucket): Don't call
4699         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4700         (improve_allocation): New.
4701         (color_allocnos): Call setup_profitable_hard_regs,
4702         form_object_hard_regs_nodes_forest, improve_allocation,
4703         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4704         (print_loop_title): Use pressure classes.
4705         (color_allocnso): Ditto.
4706         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4707         and allocnos_for_spilling.
4708         (ira_sort_regnos_for_alter_reg): Don't setup members
4709         {first,next}_coalesced_allocno.
4710         (color): Remove allocating and freeing removed_splay_allocno_vec.
4711         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4712         prohibited_class_mode_regs.
4714         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4715         formatting.
4716         (update_allocno_pressure_excess_length): Use pressure classes.
4717         (inc_register_pressure, dec_register_pressure): Check for pressure
4718         class.
4719         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4720         pressure class.  Use ira_reg_class_nregs instead of
4721         ira_reg_class_max_nregs.
4722         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4723         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4724         (single_reg_class): Use ira_reg_class_nregs instead of
4725         ira_reg_class_max_nregs.
4726         (process_bb_node_lives): Use pressure classes.
4728         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4729         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4730         (change_loop): Use pressure classes.
4731         (modify_move_list): Call ira_set_allocno_class instead of
4732         ira_set_allocno_cover_class.
4734         * ira-build.c: Remove mentioning cover classes from the file.  Use
4735         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4736         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4737         ALLOCNO_UPDATED_CLASS_COST instead of
4738         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4739         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4740         (ira_create_allocno): Remove initialization of
4741         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4742         ALLOCNO_COLORABLE_P.
4743         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4744         Update conflict regs for the objects.
4745         (create_cap_allocno): Remove assert.  Don't propagate
4746         ALLOCNO_AVAILABLE_REGS_NUM.
4747         (ira_free_allocno_costs): New function.
4748         (finish_allocno): Change a part of code into call of
4749         ira_free_allocno_costs.
4750         (low_pressure_loop_node_p): Use pressure classes.
4751         (object_range_compare_func): Don't compare classes.
4752         (setup_min_max_conflict_allocno_ids): Ditto.
4754         * loop-invariant.c: Remove mentioning cover classes from the file.
4755         Use ira_pressure_classes and ira_pressure_classes_num instead of
4756         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4757         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4758         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4759         Use reg_allocno_class instead of reg_cover_class.
4760         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4761         STACK_REG_COVER_CLASS.
4762         (get_regno_cover_class): Rename to get_regno_pressure_class.
4763         (move_loop_invariants): Initialize and finalize regstat.
4765         * ira.c: Remove mentioning cover classes from the file.  Add
4766         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4767         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4768         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4769         setup_class_subset_and_memory_move_costs.
4770         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4771         (setup_cover_and_important_classes): Rename to
4772         setup_allocno_and_important_classes.
4773         (setup_class_translate_array): New.
4774         (setup_class_translate): Call it for allocno and pressure classes.
4775         (cover_class_order): Rename to allocno_class_order.
4776         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4777         of ira_class_translate.
4778         (reorder_important_classes): Set up ira_important_class_nums.
4779         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4780         (print_class_cover): Rename to print_classes.  Add parameter.
4781         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4782         Print pressure classes too.
4783         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4784         setup_reg_subclasses.
4785         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4786         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4787         (setup_prohibited_class_mode_regs): Use
4788         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4789         (clarify_prohibited_class_mode_regs): New function.
4790         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4791         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4792         (ira_init_once): Initialize them.
4793         (free_register_move_costs): Process them.
4794         (ira_init): Move calls of find_reg_classes and
4795         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4796         Call clarify_prohibited_class_mode_regs.
4797         (ira_no_alloc_reg): Remove.
4798         (too_high_register_pressure_p): Use pressure classes.
4800         * sched-deps.c: Remove mentioning cover classes from the file.
4801         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4802         ira_pressure_classes and ira_pressure_classes_num instead of
4803         ira_reg_class_cover_size and ira_reg_class_cover.
4804         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4805         sched_regno_pressure_class instead of sched_regno_cover_class.
4806         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4807         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4809         * ira.h: Add 2010 to Copyright.
4810         (ira_no_alloc_reg): Remove external.
4811         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4812         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4813         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4814         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4815         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4816         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4817         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4818         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4819         x_ira_no_alloc_regs.
4820         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4821         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4822         ira_allocno_classes_num and ira_allocno_classes.
4823         (ira_class_translate): Rename to ira_allocno_class_translate.
4824         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4825         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4826         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4827         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4828         (ira_no_alloc_regs): New.
4830         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4831         classes from the file.  Use ALLOCNO_CLASS instead of
4832         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4833         ALLOCNO_COVER_CLASS_COST.
4834         (regno_cover_class): Rename to regno_aclass.
4835         (record_reg_classes): Use ira_reg_class_subunion instead of
4836         ira_reg_class_union.
4837         (record_address_regs): Check overflow.
4838         (scan_one_insn): Ditto.
4839         (print_allocno_costs): Print total mem cost fore regional allocation.
4840         (print_pseudo_costs): Use REG_N_REFS.
4841         (find_costs_and_classes): Use classes intersected with them on the
4842         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4843         ira_reg_class_union.  Use ira_allocno_class_translate and
4844         regno_aclass instead of ira_class_translate and regno_cover_class.
4845         Modify code for finding regno_aclass.  Setup preferred classes for
4846         the next pass.
4847         (setup_allocno_cover_class_and_costs): Rename to
4848         setup_allocno_class_and_costs.  Use regno_aclass instead of
4849         regno_cover_class.  Use ira_set_allocno_class instead of
4850         ira_set_allocno_cover_class.
4851         (init_costs, finish_costs): Use regno_aclass instead of
4852         regno_cover_class.
4853         (ira_costs): Use setup_allocno_class_and_costs instead of
4854         setup_allocno_cover_class_and_costs.
4855         (ira_tune_allocno_costs_and_cover_classes): Rename to
4856         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4857         by processing objects.  Use ira_reg_class_max_nregs instead of
4858         ira_reg_class_nregs.
4860         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4862         * sched-int.h: Remove mentioning cover classes from the file.
4863         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4865         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4866         classes from the file.
4867         (struct reg_pref): Rename coverclass into allocnoclass.
4868         (reg_cover_class): Rename to reg_allocno_class.
4870         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4872         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4874         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4876         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4878         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4880         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4882         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4884         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4886         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4888         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4890         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4891         (i386_ira_cover_classes): Ditto.
4893         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4895         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4897         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4899         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4901         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4903         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4905         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4906         (mips_ira_cover_classes): Ditto.
4908         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4910         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4912         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4914         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4916         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4918         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4919         (IRA_COVER_CLASSES_VSX): Ditto.
4921         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4922         (rs6000_ira_cover_classes): Ditto.
4924         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4926         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4928         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4930         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4932         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4934         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4936         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4938         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4940         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4942         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4944 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4946         PR debug/48253
4947         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4948         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4949         dw_fde_unlikely_section_end_label, cold_in_std_section,
4950         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4951         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4952         fields.
4953         (output_fde): Use dw_fde_second_{begin,end} if second is
4954         true, otherwise dw_fde_{begin,end}.
4955         (output_call_frame_info): Test dw_fde_second_begin != NULL
4956         instead of dw_fde_switched_sections.
4957         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4958         fields, initialize new fields.  Initialize in_std_section
4959         unconditionally from the first partition.
4960         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4961         dw_fde_second_begin is non-NULL.
4962         (dwarf2out_switch_text_section): Stop initializing removed
4963         dw_fde_struct fields, initialize new fields, initialize
4964         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4965         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4966         (struct var_loc_list_def): Add last_before_switch field.
4967         (arange_table, arange_table_allocated, arange_table_in_use,
4968         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4969         (size_of_aranges): Count !in_std_section and !second_in_std_section
4970         hunks in fdes, instead of looking at arange_table_in_use.
4971         (output_aranges): Add aranges_length argument, don't call
4972         size_of_aranges here.  Instead of using aranges_table*
4973         emit ranges for fdes when !in_std_section resp.
4974         !second_in_std_section.
4975         (dw_loc_list): Break ranges crossing section switch.
4976         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4977         use dw_fde_second_end instead of dw_fde_end as end of last range.
4978         (gen_subprogram_die): Don't call add_arange.  Use
4979         dw_fde_{begin,end} for first partition and if switched
4980         section dw_fde_second_{begin,end} for the second.
4981         (var_location_switch_text_section_1,
4982         var_location_switch_text_section): New functions.
4983         (dwarf2out_begin_function): Initialize cold_text_section even
4984         when function_section () isn't text_section.
4985         (prune_unused_types): Don't walk arange_table.
4986         (dwarf2out_finish): Don't needlessly test
4987         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4988         If info_section_emitted, call size_of_aranges and if it indicates
4989         non-empty .debug_aranges, call output_aranges with the computed
4990         size.  Stop using removed dw_fde_struct fields, use
4991         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4992         for second.
4994         PR debug/48203
4995         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4996         create ENTRY_VALUE if incoming or address of incoming's MEM
4997         is a hard REG.
4998         * dwarf2out.c (mem_loc_descriptor): Don't emit
4999         DW_OP_GNU_entry_value of DW_OP_fbreg.
5000         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5001         on ENTRY_VALUE is able to find the canonical parameter VALUE.
5002         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5003         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5004         ENTRY_VALUE_EXPs.
5005         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5006         is a REG_P or MEM_P with REG_P address, compute hash directly
5007         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5008         (preserve_only_constants): Don't clear VALUES forwaring
5009         ENTRY_VALUE to some other VALUE.
5011 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
5013         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5014         instead of GEN_INT.
5016 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5018         * cfgexpand.c (expand_gimple_cond): Always set the source location and
5019         block before expanding the statement.
5020         (expand_gimple_stmt_1): Likewise.  Set them here...
5021         (expand_gimple_stmt): ...and not here.  Tidy.
5022         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5023         unknown.
5025 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5027         * Makefile.in: New rule for cprop.o.
5028         * gcse.c: Move constant/copy propagation to cprop.c.
5029         (compute_local_properties): Only handle expression tables.
5030         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5031         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5032         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5033         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
5034         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
5035         compute_cprop_data, find_used_regs, try_replace_reg,
5036         find_avail_set, cprop_jump, constprop_register, cprop_insn,
5037         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5038         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5039         find_bypass_set, reg_killed_on_edge, bypass_block,
5040         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5041         execute_rtl_cprop, pass_rtl_cprop): Move to...
5042         * cprop.c: ...here.  New file, constant/copy propagation for RTL
5043         moved from gcse.c to here with minor cleanups in duplicated code.
5045 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
5047         * config/i386/i386.c (flag_opts): Fix a typo in
5048         -mavx256-split-unaligned-store.
5050 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
5052         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5053         LIBCALL_VALUE): Remove macros.
5054         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5055         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5056         (h8300_function_value, h8300_libcall_value,
5057         h8300_function_value_regno_p): New functions.
5059 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
5061         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5063 2011-03-28  Jeff Law  <law@redhat.com>
5065         * tree-ssa-threadupdate.c (redirect_edges): Call
5066         create_edge_and_update_destination_phis as needed.
5067         (create_edge_and_update_destination_phis): Accept new BB argument.
5068         All callers updated.
5069         (thread_block): Do not update the profile when threading around
5070         intermediate blocks.
5071         (thread_single_edge): Likewise.
5072         (determine_bb_domination_status): If BB is not a successor of the
5073         loop header, return NONDOMINATING.
5074         (register_jump_thread): Note when we register a jump thread around
5075         an intermediate block.
5076         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5077         (thread_across_edge): Use it.
5079 2011-03-28  Tristan Gingold  <gingold@adacore.com>
5081         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5082         when for_return is 2.
5084 2011-03-28  Jeff Law  <law@redhat.com>
5086         * var-tracking.c (canonicalize_values_mark): Delete unused
5087         lhs assignment.
5088         (canonicalize_values_star, set_variable_part): Likewise.
5089         (clobber_variable_part, delete_variable_part): Likewise.
5091 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5093         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5095 2011-03-28  Martin Jambor  <mjambor@suse.cz>
5097         * tree-inline.c (expand_call_inline): Do not check that destination
5098         node is analyzed.
5099         (optimize_inline_calls): Assert that destination node is analyzed.
5100         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5101         not call tree_lowering_passes.
5102         * cgraph.h (cgraph_analyze_function): Declare.
5103         * cgraphunit.c (cgraph_analyze_function): Make public.
5105 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
5107         * config/sparc/sparc-opts.h: New.
5108         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5109         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5110         (sparc_option_override): Store processor_type enumeration rather
5111         than string in cpu_default.  Remove name and enumeration from
5112         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
5113         without using sparc_select.  Use target_flags_explicit instead of
5114         fpu_option_set.
5115         * config/sparc/sparc.h (enum processor_type): Move to
5116         sparc-opts.h.
5117         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5118         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5119         HeaderInclude entry.
5120         (mcpu=, mtune=): Use Var and Enum.
5121         (sparc_processor_type): New Enum and EnumValue entries.
5123 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5124             Iain Sandoe  <iains@gcc.gnu.org>
5126         PR target/48245
5127         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5129 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5131         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5132         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5133         Insert new statements at it in lieu of STMT.
5134         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5135         * tree-vect-stmts.c (vectorizable_store): Likewise.
5136         (vectorizable_load): Likewise.
5138 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
5140         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5141         (divtf3): Ditto.
5142         (multf3): Ditto.
5143         (subtf3): Ditto.
5145 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5147         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5148         unaligned 256bit load/store.
5149         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5150         (*avx_movdqu<avxmodesuffix>): Likewise.
5152 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5154         PR target/48288
5155         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5156         * config/pa/pa.md (iordi3): Use new predicate in expander.
5157         (iorsi3): Likewise.
5159 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
5161         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5162         FUNCTION_VALUE_REGNO_P): Remove macros.
5163         * config/mips/mips-protos.h (mips_function_value): Remove.
5164         * config/mips/mips.c (mips_function_value): Rename to...
5165         (mips_function_value_1): ... this. Make static.  Handle receiving
5166         the function type in 'fn_decl_or_type' argument.
5167         (mips_function_value, mips_libcall_value,
5168         mips_function_value_regno_p): New function.
5169         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5170         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5172 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5174         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5175         and -mavx256-split-unaligned-store.
5176         (ix86_option_override_internal): Split 32-byte AVX unaligned
5177         load/store by default.
5178         (ix86_avx256_split_vector_move_misalign): New.
5179         (ix86_expand_vector_move_misalign): Use it.
5181         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5182         -mavx256-split-unaligned-store.
5184         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5185         256bit load/store.  Generate unaligned store on misaligned memory
5186         operand.
5187         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5188         256bit load/store.
5189         (*avx_movdqu<avxmodesuffix>): Likewise.
5191         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5192         -mavx256-split-unaligned-store.
5194 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5196         PR target/38598
5197         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5198         Update commentary.
5200 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5202         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5203         opno arguments with an expand_operand.  Use create_input_operand.
5204         (mips_prepare_builtin_target): Delete.
5205         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5206         functions.
5207         (mips_expand_builtin_direct): Use create_output_operand and
5208         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
5209         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
5210         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5212 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
5214         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5215         function.
5216         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5218 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5220         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5221         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5222         basic blocks and call commit_edge_insertions directly.
5223         (fixup_abnormal_edges): Move from here to...
5224         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5225         on the edges and return whether some have actually been inserted.
5226         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5227         compensation code.
5229 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5231         PR rtl-optimization/48144
5232         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5233         (merge_expr_data): ... here.
5234         (av_set_intersect): Rename to av_set_code_motion_filter.
5235         Update all callers.  Call merge_history_vect when an expression
5236         is found in both sets.
5237         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5239 2011-03-26  Alan Modra  <amodra@gmail.com>
5241         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5242         cmodel medium addresses.
5243         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5244         64-bit gpr loads and stores.
5245         (rs6000_secondary_reload_ppc64): New function.
5246         * config/rs6000/rs6000-protos.h: Declare it.
5247         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5249 2011-03-26  Alan Modra  <amodra@gmail.com>
5251         PR target/47487
5252         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5253         GNU Go in traceback table.
5255 2011-03-25  Richard Henderson  <rth@redhat.com>
5257         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5258         if there are exactly 6 operands.
5259         (set_storage_via_setmem): Similarly.
5261 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5263         * collect2.c (write_c_file_stat): Handle backslash
5264         as right-hand directory separator.
5265         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5266         checking just for slash.
5267         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5268         instead of checking for trailing slash.
5269         * gcc.c (record_temp_file): Use filename_cmp instead
5270         of strcmp.
5271         (do_spec_1): Likewise.
5272         (replace_outfile_spec_function): Likewise.
5273         (is_directory): Use filename_ncmp instead of strncmp.
5274         (print_multilib_info): Likewise.
5275         * gcov.c (find_source): Use filename_cmp instead
5276         instead of strcmp.
5277         (make_gcov_file_name): Fix order of slash/backslash
5278         checks.
5279         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5280         (add_standard_paths): Likewise.
5281         * mips-tfile.c (saber_stop): Handle backslash.
5282         * prefix.c (update_path): Use filename_ncmp instead of
5283         strncmp.
5284         * profile.c (output_location): Use filename_cmp instead
5285         of strcmp.
5286         * read-md.c (handle_toplevel_file): Handle backslash.
5287         * tlink.c (frob_extension):  Likewise.
5288         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5289         strcmp.
5290         * tree-dump.c (dequeue_and_dump): Handle backslash.
5291         * tree.c (get_file_function_name): Likewise.
5292         * gengtype.c (read_input_list): Likewise.
5293         (get_file_realbasename): Likewise.
5294         (get_output_file_with_visibility): Use filename_cmp
5295         instead of strcmp.
5297 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5299         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5300         case to VFPv1.
5302 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5304         * fold-const.c (expr_location_or): New function.
5305         (fold_truth_not_expr): Call it.
5307 2011-03-25  Jeff Law  <law@redhat.com>
5309         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5310         va_end.
5311         * c-family/c-common.c (def_fn_type): Likewise.
5312         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5313         * emit-rtl.c (gen_rtvec): Likewise.
5314         * lto/lto-lang.c (def_fn_type): Likewise.
5316 2011-03-25  Richard Guenther  <rguenther@suse.de>
5318         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5319         also generate copies.
5320         (fini_copy_prop): Handle constant values properly.
5322 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5324         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5325         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5326         (hash_loc_operands, compare_loc_operands): Handle
5327         DW_OP_GNU_entry_value.
5329 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5331         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5332         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5333         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5334         comment and use macro TARGET_64BIT_MS_ABI instead.
5335         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5336         and change default behavior for 32-bit MS_ABI.
5337         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5338         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5339         32-bit, too.
5340         (ix86_cfun_abi): Likewise.
5341         (ix86_maybe_switch_abi): Adjust comment.
5342         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5343         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5344         instead of checking for SYSV_ABI.
5345         (ix86_nsaved_sseregs): Likewise.
5346         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5347         to 16 bytes.
5348         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5349         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5350         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5351         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5352         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5354 2011-03-25  Richard Guenther  <rguenther@suse.de>
5356         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5357         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5358         (verify_gimple): Remove.
5359         * tree-cfg.c (verify_gimple_call): Merge verification
5360         from verify_stmts.
5361         (verify_gimple_phi): Merge verification from verify_stmts.
5362         (verify_gimple_label): New function.
5363         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5364         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5365         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5366         (verify_stmts): Rename to verify_gimple_in_cfg.
5367         (verify_gimple_in_cfg): New function.
5368         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5369         * tree-ssa.c (verify_ssa): Likewise.
5370         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5372 2011-03-25  Richard Guenther  <rguenther@suse.de>
5374         * passes.c (init_optimization_passes): Add FRE pass after
5375         early SRA.
5377 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5378             Andrew Stubbs  <ams@codesourcery.com>
5380         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5381         for Cortex-A8.
5382         (arm_movdi_vfp_cortexa8): New pattern.
5383         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5384         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5385         instructions when tuning for Cortex-A8.  Set attribute "arch".
5386         * config/arm/arm.md: Move include arm-tune.md up a bit.
5387         (define_attr "arch"): Add "onlya8" and "nota8" values.
5388         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5390 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5392         PR bootstrap/48282
5393         Revert:
5394         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5396         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5397         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5398         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5399         * passes.c (init_optimization_passes): Move
5400         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5402 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5404         * c-typeck.c (comptypes_internal): Replace target
5405         hook call of comp_type_attributes by version in tree.c file.
5406         * gimple.c (gimple_types_compatible_p_1): Likewise.
5407         * tree-ssa.c (useless_type_conversion_p): Likewise.
5408         * tree.c (build_type_attribute_qual_variant): Likewise.
5409         (attribute_value_equal): New static helper function.
5410         (comp_type_attributes): New function.
5411         (merge_attributes): Use attribute_value_equal for comparison.
5412         (attribute_list_contained): Likewise.
5413         * tree.h (comp_type_attributes): New prototype.
5415 2011-03-25  Richard Guenther  <rguenther@suse.de>
5417         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5418         of complex types at -O0.
5419         (verify_gimple_assign_binary): Likewise.
5420         (verify_gimple_assign_ternary): Likewise.
5422 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5424         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5425         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5427 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5429         PR debug/48041
5430         * dwarf2out.c (output_abbrev_section): Only write table when
5431         abbrev_die_table_in_use > 1.
5433 2011-02-24  Richard Henderson  <rth@redhat.com>
5435         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5436         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5437         (alpha_expand_unaligned_load_words): Use extql.
5438         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5439         (emit_insxl): Handle all modes for consistency.
5441 2011-02-24  Richard Henderson  <rth@redhat.com>
5443         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5444         (alpha_expand_unaligned_load): Likewise.
5445         (alpha_expand_unaligned_store): Likewise.
5446         (alpha_expand_unaligned_load_words): Likewise.
5447         (alpha_expand_unaligned_store_words): Likewise.
5448         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5449         (alpha_split_lock_test_and_set_12): Likewise.
5450         (print_operand, alpha_fold_builtin_extxx): Likewise.
5451         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5452         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5453         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5454         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5455         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5456         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5457         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5458         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5459         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5460         (extwl, extll, extql): Similarly.
5461         (inswh, inslh, insqh): Similarly.
5462         (mskbl, mskwl, mskll, mskql): Similarly.
5463         (mskwh, msklh, mskqh): Similarly.
5465 2011-02-24  Richard Henderson  <rth@redhat.com>
5467         * config/alpha/alpha.md (attribute isa): Add er, ner.
5468         (attribute enabled): Handle them.
5469         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5471 2011-02-24  Richard Henderson  <rth@redhat.com>
5473         * config/alpha/alpha.md (attribute isa): Add vms.
5474         (attribute enabled): Handle it.
5475         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5476         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5477         (*movtf): Rename from *movtf_internal for consistency.
5478         (*movsi): Merge with *movsi_nt_vms.
5479         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5480         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5481         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5482         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5484 2011-02-24  Richard Henderson  <rth@redhat.com>
5486         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5487         (extendqisi2, extendhisi2): Likewise.
5488         (extendqidi2): Simplify BWX/non-BWX expansions.
5489         (extendhidi2): Similarly.
5491 2011-02-24  Richard Henderson  <rth@redhat.com>
5493         * config/alpha/alpha.md (attribute isa): New.
5494         (attribute enabled): New.
5495         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5496         (zero_extendqisi2, zero_extendqidi2): Similarly.
5497         (zero_extendhisi2, zero_extendhidi2): Similarly.
5498         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5500 2011-02-24  Richard Henderson  <rth@redhat.com>
5502         * config/alpha/predicates.md (input_operand): Revert last change;
5503         update comment to mention 32-bit VMS rather than Windows.
5505 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5507         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5508         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5509         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5510         * passes.c (init_optimization_passes): Move
5511         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5513 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5515         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5517 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5519         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5520         correctly.
5522 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5524         PR debug/48204
5525         * simplify-rtx.c (simplify_const_unary_operation): Call
5526         real_convert when changing mode class with FLOAT_EXTEND.
5528 2011-03-24  Nick Clifton  <nickc@redhat.com>
5530         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5531         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5532         * config/rx/rx.c (rx_option_override): Set align_jumps,
5533         align_loops and align_labels if not set by the user.
5534         (rx_align_for_label): New function.
5535         (rx_max_skip_for_label): New function.
5536         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5537         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5538         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5539         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5540         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5542 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5544         PR rtl-optimization/48263
5545         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5546         and original commutative_p handling.  Use maybe_gen_insn.
5548 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5550         * reload.c (find_reloads_subreg_address): Add address_reloaded
5551         parameter and return true there if the full address has been
5552         reloaded.
5553         (find_reloads_toplev): Pass address_reloaded flag.
5554         (find_reloads_address_1): Don't use address_reloaded parameter.
5556 2011-03-24  Jeff Law  <law@redhat.com>
5558         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5559         unused variable "ann".
5560         (remove_unused_locals): Likewise.
5562         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5563         statement.
5565         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5566         after it is freed.
5568 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5570         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5571         for invalid symbolic addresses.
5572         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5573         larl operands.
5575 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5577         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5578         the argument in calls to fold_truth_not_expr.
5580 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5582         * tree.c (record_node_allocation_statistics): New function.
5583         (make_node_stat, copy_node_stat, build_string): Call it.
5584         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5585         (build1_stat, build_omp_clause): Likewise.
5587 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5589         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5590         last commit.
5592 2011-03-24  Richard Guenther  <rguenther@suse.de>
5594         PR tree-optimization/48271
5595         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5596         blocks that still exist.
5598 2011-03-24  Richard Guenther  <rguenther@suse.de>
5600         PR tree-optimization/48270
5601         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5602         not free datarefs before ddrs.
5604 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5606         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5607         from the address built for a reference with variable offset.
5609 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5611         PR target/48237
5612         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5613         alternatives that can be handled with movq or movabsq insn.
5614         (*movdf_internal): Disable for !TARGET_64BIT.
5615         (*movdf_internal_nointeger): Ditto.
5616         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5618 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5620         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5621         (FUNCTION_ARG_ADVANCE): Likewise.
5622         * tm.texi.in: Change references to them to hook references.
5623         * tm.texi: Regenerate.
5624         * targhooks.c (default_function_arg): Eliminate check for target macro.
5625         (default_function_incoming_arg): Likewise.
5626         (default_function_arg_advance): Likewise.
5627         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5628         (function_arg_advance): Likewise.
5629         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5631 2011-03-24  Richard Guenther  <rguenther@suse.de>
5633         PR middle-end/48269
5634         * tree-object-size.c (addr_object_size): Do not double-account
5635         for MEM_REF offsets.
5637 2011-03-24  Diego Novillo  <dnovillo@google.com>
5639         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5640         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5641         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5642         Update all users.
5643         (lto_input_string): Rename from input_string.  Make extern.
5644         Update all users.
5645         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5646         output_string_with_length.
5647         Output 0 to indicate a non-NULL string.  Update all callers to
5648         not emit 0.
5649         (lto_output_string): Rename from output_string.  Make extern.
5650         Update all users.
5651         (lto_output_decl_state_streams): Make extern.
5652         (lto_output_decl_state_refs): Make extern.
5653         * lto-streamer.h (lto_input_string): Declare.
5654         (lto_input_data_block): Declare.
5655         (lto_output_string): Declare.
5656         (lto_output_string_with_length): Declare.
5657         (lto_output_decl_state_streams): Declare.
5658         (lto_output_decl_state_refs): Declare.
5660 2011-03-24  Richard Guenther  <rguenther@suse.de>
5662         PR tree-optimization/46562
5663         * tree.c (build_invariant_address): New function.
5664         * tree.h (build_invariant_address): Declare.
5665         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5666         a renamed function moved ...
5667         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5668         Take valueization callback parameter.
5669         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5670         * gimple-fold.h: New file.
5671         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5672         (ccp_fold, fold_const_aggregate_ref,
5673         fold_ctor_reference, fold_nonarray_ctor_reference,
5674         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5675         get_base_constructor): Move ...
5676         * gimple-fold.c: ... here.
5677         (gimple_fold_stmt_to_constant_1): New function
5678         split out from ccp_fold.  Take a valueization callback parameter.
5679         Valueize all operands.
5680         (gimple_fold_stmt_to_constant): New wrapper function.
5681         (fold_const_aggregate_ref_1): New function split out from
5682         fold_const_aggregate_ref.  Take a valueization callback parameter.
5683         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5684         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5685         invariant POINTER_PLUS_EXPRs to invariant form.
5686         (vn_valueize): New function.
5687         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5688         * tree-vrp.c (vrp_valueize): New function.
5689         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5690         to fold statements to constants.
5691         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5692         function declarations.
5693         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5694         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5696 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5698         * config/h8300/predicates.md (jump_address_operand): Fix register
5699         mode check.
5701 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5703         * doc/invoke.texi (max-stores-to-sink): Document.
5704         * params.h (MAX_STORES_TO_SINK): Define.
5705         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5706         if either vectorization or if-conversion is disabled.
5707         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5708         tree-vect-data-refs.c vect_equal_offsets.
5709         (dr_equal_offsets_p): New function.
5710         (find_data_references_in_bb): Remove static.
5711         * tree-data-ref.h (find_data_references_in_bb): Declare.
5712         (dr_equal_offsets_p): Likewise.
5713         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5714         (vect_drs_dependent_in_basic_block): Update calls to
5715         vect_equal_offsets.
5716         (vect_check_interleaving): Likewise.
5717         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5718         (cond_if_else_store_replacement): Rename to...
5719         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5720         documentation.
5721         (cond_if_else_store_replacement): New function.
5722         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5723         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5725 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5727         PR target/46934
5728         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5729         to subtract lower bound instead of GEN_INT().
5731 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5733         PR other/48179
5734         PR other/48221
5735         PR other/48234
5736         * doc/extend.texi (Alignment): Move section to match order in TOC.
5737         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5738         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5740 2011-03-23  Jeff Law  <law@redhat.com>
5742         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5743         before removing the edge.
5745         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5746         it may have been freed by redirect_branch_edge or
5747         redirect_edge_succ_nodup.
5749 2011-03-23  Richard Guenther  <rguenther@suse.de>
5751         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5752         (check_va_list_escapes): Likewise.
5753         (check_all_va_list_escapes): Likewise.
5755 2011-03-23  Richard Guenther  <rguenther@suse.de>
5757         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5758         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5759         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5760         (alias.o): Likewise.
5761         (ipa-type-escape.o): Remove.
5762         (ipa-struct-reorg.o): Likewise.
5763         (GTFILES): Remove ipa-struct-reorg.c.
5764         * alias.c: Do not include ipa-type-escape.h.
5765         * tree-ssa-alias.c: Likewise.
5766         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5767         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5768         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5769         and ipa-type-escape passes.
5770         * tree-pass.h (pass_ipa_type_escape): Remove.
5771         (pass_ipa_struct_reorg): Likewise.
5772         * ipa-struct-reorg.h: Remove.
5773         * ipa-struct-reorg.c: Likewise.
5774         * ipa-type-escape.h: Likewise.
5775         * ipa-type-escape.c: Likewise.
5776         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5777         (--param struct-reorg-cold-struct-ratio): Likewise.
5778         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5779         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5780         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5782 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5784         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5785         cpu attribute value.
5786         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5787         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5788         * config/s390/s390.c (processor_flags_table): New constant array.
5789         (s390_handle_arch_option): Remove.
5790         (s390_handle_option): Remove s390_handle_arch_option invocations
5791         and OPT_mwarn_framesize_ handling.
5792         (s390_option_override): Remove s390_handle_arch_option invocation.
5793         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5794         warnings.
5795         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5796         * config/s390/s390.opt (s390_tune, s390_arch)
5797         (march=): Replace s390_arch_option enum and values with
5798         processor_type.  Set variable name to s390_arch.  Set
5799         initialization value.
5800         (mtune=): Replace s390_arch_option with processor_type.  Set
5801         variable name to s390_tune.  Set initialization value.
5803 2011-03-23  Julian Brown  <julian@codesourcery.com>
5805         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5806         accesses which are not naturally aligned.
5808 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5810         PR target/47553
5811         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5813 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5815         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5816         parameter from "int" to "enum insn_code".
5817         (expand_operand_type): New enum.
5818         (expand_operand): New structure.
5819         (create_expand_operand): New function.
5820         (create_fixed_operand, create_output_operand): Likewise
5821         (create_input_operand, create_convert_operand_to): Likewise.
5822         (create_convert_operand_from, create_address_operand): Likewise.
5823         (create_integer_operand): Likewise.
5824         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5825         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5826         (expand_insn, expand_jump_insn): Likewise.
5827         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5828         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5829         (expand_movstr, expand_builtin___clear_cache): Likewise.
5830         (expand_builtin_lock_release): Likewise.
5831         * explow.c (allocate_dynamic_stack_space): Likewise.
5832         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5833         and use the default handling in that case.
5834         * expmed.c (check_predicate_volatile_ok): Delete.
5835         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5836         (emit_cstore): Likewise.
5837         * expr.c (emit_block_move_via_movmem): Likewise.
5838         (set_storage_via_setmem, expand_assignment): Likewise.
5839         (emit_storent_insn, try_casesi): Likewise.
5840         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5841         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5842         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5843         (expand_twoval_unop, expand_twoval_binop): Likewise.
5844         (expand_unop_direct, emit_indirect_jump): Likewise.
5845         (emit_conditional_move, vector_compare_rtx): Likewise.
5846         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5847         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5848         (expand_sync_lock_test_and_set): Likewise.
5849         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5850         (emit_unop_insn): Likewise.
5851         (expand_copysign_absneg): Change icode to an insn_code.
5852         (create_convert_operand_from_type): New function.
5853         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5854         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5855         (expand_insn, expand_jump_insn): Likewise.
5856         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5857         than const_int_operand for operand 2.
5859 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5861         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5862         if possible.
5864 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5866         * emit-rtl.c (emit_pattern_before_noloc): New function.
5867         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5868         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5869         (emit_pattern_after_noloc): New function.
5870         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5871         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5873 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5875         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5876         (__ffsDI2): Likewise.
5878 2011-03-22  Richard Henderson  <rth@redhat.com>
5880         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5881         of !TARGET_ABI_OPEN_VMS.
5882         (alpha_trampoline_init, alpha_start_function): Likewise.
5883         (alpha_expand_epilogue, alpha_file_start): Likewise.
5884         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5885         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5886         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5887         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5888         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5890 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5892         * config/s390/s390-opts.h: New.
5893         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5894         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5895         s390_stack_guard): Remove.
5896         (s390_handle_arch_option): Return void.  Take enum
5897         s390_arch_option value instead of string and searching array.
5898         (s390_handle_option): Don't assert that global structures are in
5899         use.  Access variables via opts pointer.  Use error_at.  Don't use
5900         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5901         s390_handle_arch_option.
5902         (s390_option_override): Update call to s390_handle_arch_option.
5903         (s390_emit_prologue): Use %d format for s390_stack_size in
5904         diagnostic.  Use %wd for HOST_WIDE_INT.
5905         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5906         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5907         * config/s390/s390.opt (config/s390/s390-opts.h): New
5908         HeaderInclude entry.
5909         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5910         s390_arch_flags, s390_warn_framesize): New Variable entries.
5911         (s390_arch_option): New Enum and EnumValue entries.
5912         (march=): Use Enum instead of Var.
5913         (mstack-guard=, mstack-size=): Use UInteger and Var.
5914         (mtune=): Use Enum.
5916 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5918         * config/score/score.c (score_handle_option): Don't assert that
5919         global structures are in use.  Access target_flags via opts
5920         pointer.  Use value of -march= option to determine target_flags
5921         settings.
5922         * config/score/score.opt (march=): Use Enum.
5923         (score_arch): New Enum and EnumValue entries.
5925 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5927         * config/mep/mep.c (option_mtiny_specified): Remove.
5928         (mep_option_override): Move register handling for -mivc2 from
5929         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5930         instead of option_mtiny_specified.
5931         (mep_handle_option): Access target_flags via opts pointer.  Don't
5932         assert that global structures are in use.  Defer part of -mivc2
5933         handling and move it to mep_option_override.
5934         * config/mep/mep.opt (IVC2): New Mask entry.
5935         (mivc2): Use Var and Defer instead of Mask.
5937 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5939         * config/v850/v850-opts.h: New.
5940         * config/v850/v850.c (small_memory): Replace with
5941         small_memory_physical_max array.  Make that array static const.
5942         (v850_handle_memory_option): Take integer value of argument.  Take
5943         gcc_options pointer, option text and location.  Return void.
5944         Update for changes to small memory structures.
5945         (v850_handle_option): Access target_flags via opts pointer.  Don't
5946         assert that global structures are in use.  Update calls to
5947         v850_handle_memory_option.
5948         (v850_encode_data_area): Update references to small memory settings.
5949         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5950         (enum small_memory_type): Move to v850-opts.h.
5951         * config/v850/v850.opt (config/v850/v850-opts.h): New
5952         HeaderInclude entry.
5953         (small_memory_max): New Variable entry.
5954         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5955         (mtda, mzda): Likewise.
5957 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5959         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5960         pointer.  Don't assert that global structures are in use.
5962 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5964         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5965         via opts pointer.  Don't assert that global structures are in use.
5967 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5969         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5970         (munix=93): Use Var.
5971         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5972         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5973         * config/pa/pa-opts.h: New.
5974         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5975         (pa_handle_option): Don't assert that global structures are in
5976         use.  Access target_flags via opts pointer.  Don't handle
5977         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5978         OPT_munix_98 here.
5979         (pa_option_override): Handle deferred OPT_mfixed_range_.
5981 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5983         * config/mn10300/mn10300-opts.h: New.
5984         * config/mn10300/mn10300.c (mn10300_processor,
5985         mn10300_tune_string): Remove.
5986         (mn10300_handle_option): Don't assert that global structures are
5987         in use.  Access mn10300_processor via opts pointer.  Don't handle
5988         OPT_mtune_ here.
5989         * config/mn10300/mn10300.h (enum processor_type): Move to
5990         mn10300-opts.h.
5991         (mn10300_processor): Remove.
5992         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5993         HeaderInclude entry.
5994         (mn10300_processor): New Variable entry.
5995         (mtune=): Use Var.
5997 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5999         * config/microblaze/microblaze.c: Don't include opts.h.
6000         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6001         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6002         (mno-clearbss): Use Var and Warn.
6004 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6006         * config/m32r/m32r-opts.h: New.
6007         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6008         (m32r_handle_option): Don't assert that global structures are in
6009         use.  Access target_flags and m32r_cache_flush_func via opts
6010         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
6011         OPT_mno_flush_trap here.
6012         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6013         include of m32r-opts.h.
6014         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6015         HeaderInclude entry.
6016         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6017         (mmodel=): Use Enum and Var.
6018         (m32r_model): New Enum and EnumValue entries.
6019         (mno-flush-trap): Use Var.
6020         (msdata=): Use Enum and Var.
6021         (m32r_sdata): New Enum and EnumValue entries.
6023 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6025         * config/m32c/m32c.c: Don't include opts.h.
6026         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6027         m32c_handle_option): Remove.
6028         (m32c_option_override): Check global_options_set.x_target_memregs
6029         instead of target_memregs_set.
6030         * config/m32c/m32c.h (target_memregs): Remove.
6031         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6032         variable.
6034 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6036         * config/iq2000/iq2000-opts.h: New.
6037         * config/iq2000/iq2000.c: Don't include opts.h.
6038         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
6039         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
6040         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6041         HeaderInclude entry.
6042         (iq2000_tune): New Variable entry.
6043         (march=): Add comment.  Use Enum.
6044         (iq2000_arch): New Enum and EnumValue entries.
6045         (mcpu=): Use Enum and Var.
6046         (iq2000_tune): New Enum and EnumValue entries.
6048 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6050         * config/ia64/ia64-opts.h: New.
6051         * config/ia64/ia64.c (ia64_tune): Remove.
6052         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6053         here.  Use error_at.
6054         (ia64_option_override): Handle deferred OPT_mfixed_range_.
6055         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6056         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6057         HeaderInclude entry.
6058         (ia64_tune): New Variable entry.
6059         (mfixed-range=): Use Defer and Var.
6060         (mtune=): Use Enum and Var.
6061         (ia64_tune): New Enum and EnumValue entries.
6063 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6065         * config/frv/frv-opts.h: New.
6066         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6067         frv-opts.h.
6068         (frv_cpu_type): Remove.
6069         * config/frv/frv.c: Don't include opts.h.
6070         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6071         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6072         (frv_cpu_type): New Variable entry.
6073         (frv_cpu): New Enum and EnumValue entries.
6075 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6077         * config/cris/cris.c (cris_handle_option): Access target_flags via
6078         opts pointer.  Don't assert that global structures are in use.
6079         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6080         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6082 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6084         * config/bfin/bfin-opts.h: New.
6085         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6086         bfin_si_revision, bfin_workarounds): Remove.
6087         (bfin_cpus): Make static const.
6088         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6089         not bfin_lib_id_given.
6090         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
6091         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6092         pointer. Use error_at.  Don't assert that global structures are in use.
6093         * config/bfin/bfin.h: Include bfin-opts.h.
6094         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6095         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6096         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6097         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6098         entries.
6100 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6102         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6103         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6104         or -msoft-float here.
6105         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6106         -msoft-float and -mhard-float.
6107         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6108         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6109         msoft-float.
6110         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6111         -msoft-float.
6112         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6113         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6114         not mhard-float.
6115         (LIBGCC_SPEC): Don't handle -msoft-float.
6116         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6117         -mhard-float.
6118         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6119         msoft-float.
6120         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6121         -mfloat-abi=*, not -msoft-float and -mhard-float.
6122         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6123         -msoft-float.
6124         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6125         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6126         mhard-float and msoft-float.
6127         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6128         mfloat-abi=soft in comments, not mhard-float and msoft-float.
6129         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6130         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6131         mhard-float.
6132         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6133         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6134         msoft-float.
6135         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6136         not mhard-float.
6137         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6138         not msoft-float.
6140 2011-03-22  Richard Henderson  <rth@redhat.com>
6142         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6143         TARGET_ABI_WINDOWS_NT.
6144         (alpha_output_function_end_prologue): Likewise.
6145         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6146         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6147         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6148         (trap, *movsi_nt_vms): Likewise.
6149         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6150         (*tablejump_osf_nt_internal): Remove.
6151         * config/alpha/predicates.md (input_operand): Only test Pmode.
6153 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6155         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6156         via opts pointer.  Use error_at.  Don't assert that global
6157         structures are in use.
6159 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6161         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6162         (ix86_handle_option): Access ix86_isa_flags and
6163         ix86_isa_flags_explicit via opts pointer.  Don't assert that
6164         global structures are in use.
6165         (ix86_function_specific_save, ix86_function_specific_restore):
6166         Update ix86_isa_flags_explicit field name.
6167         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6168         (ix86_isa_flags_explicit): Rename TargetSave entry to
6169         x_ix86_isa_flags_explicit.
6171 2011-03-22  Richard Henderson  <rth@redhat.com>
6173         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6174         (alpha_option_override, direct_return): Likewise.
6175         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6176         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6177         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6178         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6179         (alpha_expand_epilogue, alpha_end_function): Likewise.
6180         (alpha_init_libfuncs): Likewise.
6181         (struct machine_function): Remove unicosmk members.
6182         (print_operand) ['t']: Remove.
6183         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6184         unicosmk_output_module_name, unicosmk_output_common,
6185         current_section_align, unicosmk_output_text_section_asm_op,
6186         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6187         unicosmk_section_type_flags, unicosmk_unique_section,
6188         unicosmk_asm_named_section, unicosmk_insert_attributes,
6189         unicosmk_output_align, unicosmk_defer_case_vector,
6190         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6191         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6192         unicosmk_output_ssib, unicosmk_add_call_info_word,
6193         unicosmk_extern_head, unicosmk_output_default_externs,
6194         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6195         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6196         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6197         * config/alpha/alpha-protos.h: Update.
6198         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6199         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6200         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6201         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6202         (*mulsi_se, mulvsi3): Likewise.
6203         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6204         (*divmodsi_internal, call, call_value, realign): Likewise.
6205         (moddi3, umoddi3): Likewise; remove duplicate expander.
6206         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6207         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6208         (*movdi_nofix): Remove r/U alternative.
6209         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6210         * config/alpha/constraints.md ("U"): Remove.
6211         * config/alpha/predicates.md (call_operand"): Don't test
6212         TARGET_ABI_UNICOSMK.
6214 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6216         * target.def (handle_option): Take gcc_options and
6217         cl_decoded_option pointers and location_t.
6218         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6219         * doc/tm.texi: Regenerate.
6220         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6221         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6222         * lto-opts.c (lto_reissue_options): Generate option structure for
6223         targetm.handle_option call.
6224         * opts.c (target_handle_option): Update call to
6225         targetm.handle_option.  Remove assertions about values now passed
6226         down to hook.
6227         * targhooks.c (default_target_handle_option): New.
6228         * targhooks.h (default_target_handle_option): Declare.
6229         * config/alpha/alpha.c: Include opts.h.
6230         (alpha_handle_option): Update to new hook interface.
6231         * config/arm/arm.c: Include opts.h.
6232         (arm_handle_option): Update to new hook interface.
6233         * config/arm/t-arm (arm.o): Update dependencies.
6234         * config/bfin/bfin.c: Include opts.h.
6235         (bfin_handle_option): Update to new hook interface.
6236         * config/cris/cris.c: Include opts.h.
6237         (cris_handle_option): Update to new hook interface.
6238         * config/frv/frv.c: Include opts.h.
6239         (frv_handle_option): Update to new hook interface.
6240         * config/i386/i386.c: Include opts.h.
6241         (ix86_handle_option): Update to new hook interface.
6242         (ix86_valid_target_attribute_inner_p): Generate option structure
6243         for call to ix86_handle_option.
6244         * config/i386/t-i386 (i386.o): Update dependencies.
6245         * config/ia64/ia64.c: Include opts.h.
6246         (ia64_handle_option): Update to new hook interface.
6247         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6248         * config/iq2000/iq2000.c: Include opts.h.
6249         (iq2000_handle_option): Update to new hook interface.
6250         * config/m32c/m32c.c: Include opts.h.
6251         (m32c_handle_option): Update to new hook interface.
6252         * config/m32r/m32r.c: Include opts.h.
6253         (m32r_handle_option): Update to new hook interface.
6254         * config/m68k/m68k.c: Include opts.h.
6255         (m68k_handle_option): Update to new hook interface.
6256         * config/mep/mep.c: Include opts.h.
6257         (mep_handle_option): Update to new hook interface.
6258         * config/microblaze/microblaze.c: Include opts.h.
6259         (microblaze_handle_option): Update to new hook interface.
6260         * config/mips/mips.c: Include opts.h.
6261         (mips_handle_option): Update to new hook interface.
6262         * config/mn10300/mn10300.c: Include opts.h.
6263         (mn10300_handle_option): Update to new hook interface.
6264         * config/pa/pa.c: Include opts.h.
6265         (pa_handle_option): Update to new hook interface.
6266         * config/pdp11/pdp11.c: Include opts.h.
6267         (pdp11_handle_option): Update to new hook interface.
6268         * config/rs6000/rs6000.c: Include opts.h.
6269         (rs6000_handle_option): Update to new hook interface.
6270         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6271         * config/rx/rx.c: Include opts.h.
6272         (rx_handle_option): Update to new hook interface.
6273         * config/s390/s390.c: Include opts.h.
6274         (s390_handle_option): Update to new hook interface.
6275         * config/score/score.c: Include opts.h.
6276         (score_handle_option): Update to new hook interface.
6277         * config/sh/sh.c: Include opts.h.
6278         (sh_handle_option): Update to new hook interface.
6279         * config/sparc/sparc.c: Include opts.h.
6280         (sparc_handle_option): Update to new hook interface.
6281         * config/v850/v850.c: Include opts.h.
6282         (v850_handle_option): Update to new hook interface.
6284 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6286         * gcc.c (driver_unknown_option_callback): Only permit and save
6287         unknown -Wno- options.
6288         (driver_wrong_lang_callback): Save options directly instead of via
6289         driver_unknown_option_callback.
6291 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6293         * combine.c (simplify_set): Try harder to find the best CC mode when
6294         simplifying a nested COMPARE on the RHS.
6296 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6298         * config/alpha/gnu.h: Remove.
6299         * config/arc: Remove directory.
6300         * config/arm/netbsd.h: Remove.
6301         * config/arm/t-pe: Remove.
6302         * config/crx: Remove directory.
6303         * config/i386/netbsd.h: Remove.
6304         * config/m68hc11: Remove directory.
6305         * config/m68k/uclinux-oldabi.h: Remove.
6306         * config/mcore/mcore-pe.h: Remove.
6307         * config/mcore/t-mcore-pe: Remove.
6308         * config/netbsd-aout.h: Remove.
6309         * config/rs6000/gnu.h: Remove.
6310         * config/sh/sh-symbian.h: Remove.
6311         * config/sh/symbian-base.c: Remove.
6312         * config/sh/symbian-c.c: Remove.
6313         * config/sh/symbian-cxx.c: Remove.
6314         * config/sh/symbian-post.h: Remove.
6315         * config/sh/symbian-pre.h: Remove.
6316         * config/sh/t-symbian: Remove.
6317         * config/svr3.h: Remove.
6318         * config/vax/netbsd.h: Remove.
6319         * config.build: Don't handle i[34567]86-*-pe.
6320         * config.gcc: Remove handling of deprecations for most deprecated
6321         targets.
6322         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6323         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6324         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6325         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6326         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6327         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6328         Remove cases.
6329         * config.host: Don't handle i[34567]86-*-pe.
6330         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6331         (ASM_SPEC32): Don't handle -mcall-gnu.
6332         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6333         -mcall-gnu.
6334         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6335         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6336         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6337         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6338         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6339         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6340         conditional on SYMBIAN.
6341         * configure.ac: Don't handle powerpc*-*-gnu*.
6342         * configure: Regenerate.
6343         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6344         * doc/install-old.texi (m6811, m6812): Don't mention.
6345         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6346         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6347         (m68k-uclinuxoldabi): Don't mention.
6348         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6349         Remove.
6350         (-mcall-gnu): Remove.
6351         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6352         families): Remove constraint documentation.
6354 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6356         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6357         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6358         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6360 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6362         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6363         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6364         * config/avr/avr.c (init_cumulative_args)
6365         (avr_function_arg_advance): Use it.
6366         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6367         sibcall epilogues.
6368         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6369         (avr_function_ok_for_sibcall): ...this new function.
6370         (avr_lookup_function_attribute1): New static Function.
6371         (avr_naked_function_p, interrupt_function_p)
6372         (signal_function_p, avr_OS_task_function_p)
6373         (avr_OS_main_function_p): Use it.
6374         * config/avr/avr.md ("sibcall", "sibcall_value")
6375         ("sibcall_epilogue"): New expander.
6376         ("*call_insn", "*call_value_insn"): New insn.
6377         ("call_insn", "call_value_insn"): Remove
6378         ("call", "call_value", "epilogue"): Change expander to handle
6379         sibling calls.
6381 2011-03-21  Nick Clifton  <nickc@redhat.com>
6383         * doc/invoke.texi (Overall Options): Move closing brace to end of
6384         options list.
6385         (Optimization Options): Add missing @gol.
6386         (Directory Options): Likewise.
6387         (i386 and x86-64 Options): Likewise.
6388         (RS6000 and PowerPC Options): Likewise.
6389         (i386 and x86-64 Windows Options): Likewise.
6390         (V850 Options): Add text missing from descriptions.
6392 2011-03-22  Richard Henderson  <rth@redhat.com>
6394         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6395         (avr_incoming_return_addr_rtx): New.
6396         (emit_push_byte): New.
6397         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6398         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6399         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6400         (emit_pop_byte): New.
6401         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6402         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6403         (INCOMING_RETURN_ADDR_RTX): New.
6404         (INCOMING_FRAME_SP_OFFSET): New.
6405         (ARG_POINTER_CFA_OFFSET): New.
6406         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6407         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6408         (pophi): Remove.
6410         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6412 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6414         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6415         (FUNCTION_ARG_ADVANCE): Likewise.
6416         * tm.texi.in: Change references to them to hook references.
6417         * tm.texi: Regenerate.
6418         * targhooks.c (default_function_arg): Eliminate check for target
6419         macro.
6420         (default_function_incoming_arg): Likewise.
6421         (default_function_arg_advance): Likewise.
6422         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6423         (function_arg_advance): Likewise.
6424         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6426 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6428         * tree.c (build_call_1): New function.
6429         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6431 2011-03-22  Richard Guenther  <rguenther@suse.de>
6433         PR tree-optimization/48228
6434         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6435         for single-arg PHIs.
6437 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6439         PR rtl-optimization/48143
6440         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6441         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6442         sse2_cvtps2pd): Likewise.
6444 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6446         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6448 2011-03-22  Richard Guenther  <rguenther@suse.de>
6450         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6451         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6452         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6453         and REALIGN_LOAD_EXPR.
6454         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6455         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6456         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6457         DOT_PROD_EXPR case ...
6458         (expand_expr_real_2): ... here.
6459         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6460         and REALIGN_LOAD_EXPR.
6461         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6462         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6463         (vect_create_epilog_for_reduction): Likewise.
6464         (vectorizable_reduction): Likewise.
6465         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6466         * tree-vect-stmts.c (vectorizable_load): Likewise.
6468 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6470         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6472 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6474         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6475         handling for PLTOFF/GOTOFF.
6477 2011-03-22  Nick Clifton  <nickc@redhat.com>
6479         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6480         trailing backslash from the end of the macro definition.
6482 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6484         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6485         and PLT unspecs.
6487 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6489         * expr.h (prepare_operand): Move to...
6490         * optabs.h (prepare_operand): ...here and change the insn code
6491         parameter from "int" to "enum insn_code".
6492         (insn_operand_matches): Declare.
6493         * expr.c (init_expr_target): Use insn_operand_matches.
6494         (compress_float_constant): Likewise.
6495         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6496         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6497         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6498         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6499         Likewise.
6500         (gen_cond_trap): Likewise.
6501         (prepare_operand): Likewise.  Change icode to an insn_code.
6502         (insn_operand_matches): New function.
6503         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6504         * reload1.c (gen_reload): Likewise.
6505         * targhooks.c (default_secondary_reload): Likewise.
6507 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6509         * config/alpha/alpha.md (unspec): New define_c_enum.
6510         (unspecv): Ditto.
6512 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6514         PR debug/48214
6515         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6516         between a call and its CALL_ARG_LOCATION note.
6518 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6520         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6522 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6524         PR c/42544
6525         PR c/48197
6526         * c-common.c (shorten_compare): If primopN is first sign-extended
6527         to opN and then zero-extended to result type, set primopN to opN.
6529 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6531         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6532         for barrier handlers.
6534 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6536         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6537         UNSPEC constants to be in the unspec enumeration, and redefine
6538         all UNSPECV constants to be in the unspecv enumeration, so that
6539         dumps print which unspec/unspec_volatile this is.
6540         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6541         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6542         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6543         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6544         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6546         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6547         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6548         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6549         * config/rs6000/sync.md (isync, lwsync): Ditto.
6551 2011-03-21  Richard Guenther  <rguenther@suse.de>
6553         * params.def (lto-min-partition): Fix typo.
6555 2011-03-21  Richard Guenther  <rguenther@suse.de>
6557         PR c/47939
6558         * c-decl.c (grokdeclarator): Drop to the main variant only
6559         for array types.  Drop flag_gen_aux_info check.
6561 2011-03-21  Richard Guenther  <rguenther@suse.de>
6563         PR translation/47911
6564         * params.def (lto-partitions): Fix typo.
6565         (lto-min-partition): Fix wording.
6567 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6569         * config/rs6000/t-freebsd: Remove duplication from file.
6571 2011-03-21  Richard Guenther  <rguenther@suse.de>
6573         PR middle-end/47661
6574         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6576 2011-03-21  Richard Guenther  <rguenther@suse.de>
6578         PR lto/48210
6579         * params.def (lto-partitions): Require at least 1 partition.
6581 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6583         * gthr-solaris.h: Remove.
6584         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6585         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6586         (LIB_SPEC): Likewise.
6587         * config/sol2.opt (threads): Remove.
6588         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6589         (sparc*-*-solaris2*): Likewise.
6590         * configure.ac (enable_threads): Enable solaris support.
6591         * configure: Regenerate.
6592         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6593         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6594         solaris.
6596 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6598         * config.gcc: Obsolete *-*-solaris2.8*.
6599         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6601 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6603         PR bootstrap/48135
6604         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6605         reference.  Solaris 8 perl works.
6607 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6609         PR bootstrap/48135
6610         * doc/install.texi (Prerequisites): Move jar etc. up.
6611         Explain support library version requirements.
6613 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6615         PR bootstrap/48135
6616         * doc/install.texi (Prerequisites): Move Perl to build
6617         requirements.  Always necessary on Solaris 2 with Sun ld.
6619 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6621         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6622         binutils 2.21.
6623         (Specific, i?86-*-solaris2.[89]): Likewise.
6624         (Specific, i?86-*-solaris2.10): Likewise.
6625         (Specific, mips-sgi-irix6): Likewise.
6626         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6627         Update for binutils 2.21.
6629 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6631         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6632         Allow -fuse-linker-plugin for non-default plugin linker.
6633         * configure: Regenerate.
6635 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6637         PR bootstrap/48167
6638         * gengtype.c (files_rules): Added rule for cp/parser.h.
6640 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6642         PR target/48213
6643         * config/s390/s390.c (s390_delegitimize_address): Don't call
6644         lowpart_subreg if orig_x has BLKmode.
6646 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6648         PR target/12171
6649         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6650         * tree.h (attribute_spec): Add new member affects_type_identity.
6651         * attribs.c (empty_attribute_table): Adjust attribute_spec
6652         initializers.
6653         * config/alpha/alpha.c: Likewise.
6654         * config/arc/arc.c: Likewise.
6655         * config/arm/arm.c: Likewise.
6656         * config/avr/avr.c: Likewise.
6657         * config/bfin/bfin.c: Likewise.
6658         * config/crx/crx.c: Likewise.
6659         * config/darwin.h: Likewise.
6660         * config/h8300/h8300.c: Likewise.
6661         * config/i386/cygming.h: Likewise.
6662         * config/i386/i386.c: Likewise.
6663         * config/ia64/ia64.c: Likewise.
6664         * config/m32c/m32c.c: Likewise.
6665         * config/m32r/m32r.c: Likewise.
6666         * config/m68hc11/m68hc11.c: Likewise.
6667         * config/m68k/m68k.c: Likewise.
6668         * config/mcore/mcore.c: Likewise.
6669         * config/mep/mep.c: Likewise.
6670         * config/microblaze/microblaze.c: Likewise.
6671         * config/mips/mips.c: Likewise.
6672         * config/rs6000/rs6000.c: Likewise.
6673         * config/rx/rx.c: Likewise.
6674         * config/sh/sh.c: Likewise.
6675         * config/sol2.h: Likewise.
6676         * config/sparc/sparc.c: Likewise.
6677         * config/spu/spu.c: Likewise.
6678         * config/stormy16/stormy16.c: Likewise.
6679         * config/v850/v850.c: Likewise.
6681 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6683         * simplify-rtx.c (simplify_binary_operation_1): Handle
6684         (xor (and A B) C) case when B and C are both constants.
6686 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6688         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6690 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6692         PR bootstrap/48168
6693         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6695 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6697         PR rtl-optimization/48156
6698         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6699         assume df and df_lr are not NULL.
6701 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6703         PR debug/48023
6704         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6705         between a call and its CALL_ARG_LOCATION note.
6707 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6709         PR debug/48178
6710         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6711         between a call and its corresponding CALL_ARG_LOCATION note.
6713 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6715         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6716         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6717         * haifa-sched.c (setup_ref_regs): Ditto.
6718         * caller-save.c (add_used_regs_1): Ditto.
6719         * dse.c (look_for_hardregs): Ditto.
6720         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6721         * sched-rgn.c (check_live_1): Ditto.
6723 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6725         * c-decl.c (diagnose_mismatched_decls): Give an error for
6726         redefining a typedef with variably modified type.
6728 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6730         * c-decl.c (grokfield): Don't allow typedefs for structures or
6731         unions with no tag by default.
6732         * doc/extend.texi (Unnamed Fields): Update.
6734 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6736         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6737         Rewrite using indirect functions.
6738         (lwp_slwpcb): Ditto.
6739         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6740         (avx_vinsertf128<mode>): Ditto.
6742 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6744         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6745         unspecs.
6747 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6749         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6750         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6752 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6754         PR rtl-optimization/48170
6755         * gcse.c (hoist_code): Remove bogus asserts.
6757 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6759         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6760         computation for prologue/epilogue.
6762 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6764         * Makefile.in (check-consistency): Remove.
6766 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6768         PR debug/48176
6769         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6770         arange_table_in_use is 0, but either text_section_used or
6771         cold_text_section_used is true.  Don't call it if
6772         !info_section_emitted.
6774 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6776         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6777         FUNCTION_VALUE_REGNO_P): Remove.
6778         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6779         Remove.
6780         * config/avr/avr.c (avr_ret_register): Make static inline.
6781         (avr_function_value_regno_p): New function.
6782         (avr_libcall_value): Make static. Add 'func' argument.
6783         (avr_function_value): Make static. Rename 'func' argument to
6784         'fn_decl_or_type', forward it to avr_libcall_value. Call
6785         avr_ret_register function instead of RET_REGISTER macro.
6786         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6788 2011-03-18  Jason Merrill  <jason@redhat.com>
6790         PR c++/23372
6791         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6793 2011-03-18  Richard Guenther  <rguenther@suse.de>
6795         * doc/install.texi (--enable-gold): Remove.
6796         (--with-plugin-ld): Document.
6797         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6799 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6801         PR middle-end/47790
6802         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6803         again after expansion changes.
6805 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6807         * combine.c (try_combine): Do simplification only call of
6808         subst() on i2 even when i1 is present. Update comments.
6810 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6812         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6813         and UNSPEC_PCREL_SYMOFF.
6815 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6817         * config/s390/s390.md: Use define_c_enum for the unspec constant
6818         definitions.
6820 2011-03-18  Richard Henderson  <rth@redhat.com>
6821             Jakub Jelinek  <jakub@redhat.com>
6823         PR bootstrap/48161
6824         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6825         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6827 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6829         PR middle-end/47725
6830         * combine.c (cant_combine_insn_p): Don't check zero/sign
6831         extended hard registers.
6833 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6835         PR middle-end/47725
6836         * combine.c (cant_combine_insn_p): Check zero/sign extended
6837         hard registers.
6839 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6841         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6842         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6843         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6844         Change return type to bool.
6845         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6847 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6849         PR debug/48163
6850         * var-tracking.c (prepare_call_arguments): If CALL target
6851         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6852         pc instead of looking it up using cselib_lookup and use
6853         Pmode for it if x has VOIDmode.
6854         * dwarf2out.c (gen_subprogram_die): If also both first and
6855         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6857         PR debug/48163
6858         * function.c (assign_parms): For data.passed_pointer parms
6859         use MEM of data.entry_parm instead of data.entry_parm itself
6860         as DECL_INCOMING_RTL.
6861         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6862         also when passed and declared mode is the same, DECL_RTL
6863         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6864         a MEM too.
6866 2011-03-16  Jeff Law  <law@redhat.com>
6868         PR rtl-optimization/37273
6869         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6870         handle them like argument loads from stack slots.  Do not double
6871         count memory for memory constants and argument loads from stack slots.
6873 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6875         PR debug/48160
6876         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6878 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6880         PR target/48171
6881         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6883 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6885         PR bootstrap/48153
6886         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6887         if dwarf_strict.
6888         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6889         Clear call_arg_locations and call_arg_loc_last always.
6891         PR middle-end/48152
6892         * var-tracking.c (prepare_call_arguments): If argument needs to be
6893         passed by reference, adjust argtype and mode.
6895 2011-03-17  Richard Guenther  <rguenther@suse.de>
6897         PR middle-end/48134
6898         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6899         a value make sure to fold the statement.
6901 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6903         PR target/43872
6904         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6905         return condition with !cfun->calls_alloca.
6907 2011-03-17  Richard Guenther  <rguenther@suse.de>
6909         PR bootstrap/48148
6910         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6911         origin for decls in other ltrans units.
6912         (input_varpool_node): Likewise.
6914 2011-03-17  Richard Guenther  <rguenther@suse.de>
6916         PR middle-end/48165
6917         * tree-object-size.c (compute_object_offset): Properly return
6918         the offset operand of MEM_REFs as sizetype.
6920 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6922         PR rtl-optimization/48141
6923         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6924         * dse.c: Include params.h.
6925         (active_local_stores_len): New variable.
6926         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6927         to NULL.
6928         (record_store, check_mem_read_rtx): Decrease it when removing
6929         from the chain.
6930         (scan_insn): Likewise.  Increase it when adding to chain, if it
6931         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6932         set active_local_stores to NULL before the addition.
6933         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6935         PR rtl-optimization/48141
6936         * dse.c (record_store): If no positions are needed in an insn
6937         that cannot be deleted, at least unchain it from active_local_stores.
6939 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6941         PR debug/47510
6942         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6943         (lookup_type_die_strip_naming_typedef): ... here.
6944         (get_context_die): Use it.
6945         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6946         the anonymous struct named by the naming typedef.
6948 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6950         PR target/48154
6951         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6952         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6954 2011-03-16  Jeff Law  <law@redhat.com>
6956         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6957         check for operands of conditional.  Allow type to be a pointer.
6959 2011-03-16  Richard Guenther  <rguenther@suse.de>
6961         PR tree-optimization/48149
6962         * fold-const.c (fold_binary_loc): Fold
6963         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6965 2011-03-16  Richard Guenther  <rguenther@suse.de>
6967         PR tree-optimization/26134
6968         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6969         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6970         (non_rewritable_mem_ref_base): Handle complex type component
6971         accesses, constrain offsets for vector and complex extracts
6972         more properly.
6974 2011-03-16  Richard Guenther  <rguenther@suse.de>
6976         PR tree-optimization/48146
6977         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6978         operands avoiding the need for renaming.
6980 2011-03-16  Richard Guenther  <rguenther@suse.de>
6982         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6983         constant folding.  Move MEM_REF canonicalization first.
6984         Rely on fold_const_aggregate_ref for initializer folding.
6985         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6987 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6989         PR middle-end/48136
6990         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6991         arg0/arg1 or their arguments are always fold converted to matching
6992         types.
6994         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6995         to nargs.
6997 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6999         PR lto/46944
7000         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7001         Handle in-tree gold.
7002         (ld_vers): Extract binutils version for gold.
7003         (gcc_cv_ld_hidden): Handle gold here.
7004         (gcc_cv_lto_plugin): Determine level of linker plugin support.
7005         * configure: Regenerate.
7006         * config.in: Regenerate.
7007         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7008         -fuse-linker-plugin otherwise.
7009         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
7010         (LINK_COMMAND_SPEC): Use it.
7011         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7013 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
7015         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7016         * calls.c: Remove debug.h include.
7017         (emit_call_1): Don't call virtual_call_token debug hook.
7018         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7019         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7020         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7021         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7022         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7023         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7024         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7025         dwarf2out_virtual_call): Remove.
7026         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7027         copy_call_info and virtual_call hooks.
7028         (dwarf2out_init): Don't initialize vcall_insn_table,
7029         debug_dcall_section and debug_vcall_section.
7030         (prune_unused_types): Don't mark nodes from dcall_table.
7031         (dwarf2out_finish): Don't output dcall or vcall tables.
7032         * final.c (final_scan_insn): Don't call direct_call or
7033         virtual_call debug hooks.
7034         * debug.h (struct gcc_debug_hooks): Remove direct_call,
7035         virtual_call_token, copy_call_info and virtual_call hooks.
7036         (debug_nothing_uid): Remove prototype.
7037         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7038         copy_call_info and virtual_call hooks.
7039         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7040         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7041         * debug.c (do_nothing_debug_hooks): Likewise.
7042         (debug_nothing_uid): Remove.
7043         * doc/invoke.texi (-fenable-icf-debug): Remove.
7044         * common.opt (-fenable-icf-debug): Likewise.
7046         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7047         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7048         call's MEM.  Handle functions returning aggregate through a hidden
7049         first pointer.  For virtual calls add clobbered pc to call arguments
7050         chain.
7051         * dwarf2out.c (gen_subprogram_die): Emit
7052         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7053         can't be emitted.
7055         PR debug/45882
7056         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7057         * rtl.h (ENTRY_VALUE_EXP): Define.
7058         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7059         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7060         * print-rtl.c (print_rtx): Likewise.
7061         * gengtype.c (adjust_field_rtx_def): Likewise.
7062         * var-tracking.c (vt_add_function_parameter): Adjust
7063         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7064         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7065         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7066         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7067         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7069         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7070         Call var_location debug hook even on CALL_INSNs.
7071         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7072         * rtl.def (ENTRY_VALUE): New.
7073         * dwarf2out.c: Include cfglayout.h.
7074         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7075         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7076         (struct call_arg_loc_node): New type.
7077         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7078         tail_call_site_count): New variables.
7079         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7080         DW_TAG_GNU_call_site_parameter.
7081         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7082         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7083         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7084         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7085         and DW_AT_GNU_all_source_call_sites.
7086         (mem_loc_descriptor): Handle ENTRY_VALUE.
7087         (add_src_coords_attributes): Don't add enything if
7088         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7089         (dwarf2out_abstract_function): Save and clear call_arg_location,
7090         call_site_count and tail_call_site_count around dwarf2out_decl call.
7091         (gen_call_site_die): New function.
7092         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7093         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7094         (dwarf2out_function_decl): Clear call_arg_locations,
7095         call_arg_loc_last, set call_site_count and tail_call_site_count
7096         to -1 and free block_map.
7097         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7098         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
7099         followed by any real instructions.
7100         (dwarf2out_begin_function): Set call_site_count and
7101         tail_call_site_count to 0.
7102         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7103         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7104         attempt to force a DIE for it and worst case remove the attribute.
7105         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7106         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7107         the decl itself.
7108         * var-tracking.c: Include tm_p.h.
7109         (vt_stack_adjustments): For calls call note_register_arguments.
7110         (argument_reg_set): New variable.
7111         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7112         ensure the VALUE is resolved.
7113         (call_arguments): New variable.
7114         (prepare_call_arguments): New function.
7115         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7116         (struct expand_loc_callback_data): Add ignore_cur_loc field.
7117         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7118         always use the best expression.
7119         (vt_expand_loc): Add ignore_cur_loc argument.
7120         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7121         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7122         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7123         note for all calls.
7124         (vt_add_function_parameter): Use cselib_lookup_from_insn.
7125         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7126         argument.  Don't call cselib_preserve_only_values and
7127         cselib_reset_table.
7128         (note_register_arguments): New function.
7129         (vt_initialize): Compute argument_reg_set.  Call
7130         vt_add_function_parameters before processing basic blocks instead of
7131         afterwards.  For calls call prepare_call_arguments before calling
7132         cselib_process_insn.
7133         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7134         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7135         (var-tracking.o): Depend on $(TM_P_H).
7136         * cfglayout.h (insn_scope): New prototype.
7137         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7138         * cfglayout.c (insn_scope): No longer static.
7139         * insn-notes.def (CALL_ARG_LOCATION): New.
7140         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7141         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7142         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7143         nothing for DECL_EXTERNAL BLOCK_VARS.
7145 2011-03-16  Alan Modra  <amodra@gmail.com>
7147         PR target/45844
7148         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7149         create invalid offset address for vsx splat insn.
7150         * config/rs6000/predicates.md (splat_input_operand): New.
7151         * config/rs6000/vsx.md (vsx_splat_*): Use it.
7153 2011-03-15  Xinliang David Li  <davidxl@google.com>
7155         PR c/47837
7156         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7157         (normalize_preds): New function.
7158         (is_use_properly_guarded): Normalize def predicates.
7160 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7162         PR target/46788
7163         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7164         in the output template.
7166 2011-03-15  Richard Guenther  <rguenther@suse.de>
7168         PR middle-end/47650
7169         * tree-pretty-print.c (dump_function_declaration): Properly
7170         dump unprototyped and varargs function types.
7172 2011-03-15  Richard Guenther  <rguenther@suse.de>
7174         PR tree-optimization/13954
7175         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7176         and friends.
7178 2011-03-15  Richard Guenther  <rguenther@suse.de>
7180         PR tree-optimization/48037
7181         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7182         selects into BIT_FIELD_REFs.
7183         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7184         vector select.
7186 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
7188         PR tree-optimization/48129
7189         * builtins.c (fold_builtin_snprintf): Convert to type of
7190         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7191         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7193 2011-03-15  Richard Guenther  <rguenther@suse.de>
7195         PR tree-optimization/41490
7196         * tree-ssa-dce.c (propagate_necessity): Handle returns without
7197         value but with VUSE.
7198         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7199         return statements.
7200         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7201         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7202         * tree-tailcall.c (find_tail_calls): Ignore returns.
7204 2011-03-15  Richard Guenther  <rguenther@suse.de>
7206         PR middle-end/48031
7207         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7208         or variable-indexed array accesses when in gimple form.
7210 2011-03-15  Richard Guenther  <rguenther@suse.de>
7212         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7214 2011-03-15  Alan Modra  <amodra@gmail.com>
7216         PR target/48032
7217         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7218         presume symbol_refs without a symbol_ref_decl are suitably
7219         aligned, nor other trees we may see here.  Handle anchor symbols.
7220         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7221         Check cmodel=medium addresses.  Adjust all calls.
7222         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7223         creating cmodel=medium optimized access to locals.
7224         * config/rs6000/constraints.md (R): Pass QImode to
7225         legitimate_constant_pool_address_p.
7226         * config/rs6000/predicates.md (input_operand): Pass mode to
7227         legitimate_constant_pool_address_p.
7228         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7229         Update prototype.
7231 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7233         PR target/48053
7234         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7235         64-bit constants being loaded into registers other than GPRs such
7236         as loading 0 into a VSX register.
7238 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7240         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7242 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7244         PR middle-end/47917
7245         * builtins.c (fold_builtin_snprintf): New function.
7246         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7247         (fold_builtin_4): Likewise.
7249         PR middle-end/38878
7250         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7251         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7252         and C - X == X also strip nops from +/-/p+ operand.
7253         When optimizing -X == C, fold C to arg0's type.
7255         PR debug/47946
7256         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7257         emit it as add_AT_int instead of add_AT_unsigned.
7259 2011-03-14  Tom Tromey  <tromey@redhat.com>
7261         * unwind-dw2.c: Include sys/sdt.h if it exists.
7262         (_Unwind_DebugHook): Use STAP_PROBE2.
7263         * config.in, configure: Rebuild.
7264         * configure.ac: Check for sys/sdt.h.
7266 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7268         * config/i386/i386.md (ROUND_FLOOR): New constant.
7269         (ROUND_CEIL): Ditto.
7270         (ROUND_TRUNC): Ditto.
7271         (ROUND_MXCSR): Ditto.
7272         (ROUND_NO_EXC): Ditto.
7273         (rint<mode>2): Use new defines instead of numerical constants.
7274         (floor<mode>2): Ditto.
7275         (ceil<mode>2): Ditto.
7276         (btrunc<mode>2): Ditto.
7277         * config/i386/i386-builtin-types.def: Define ROUND function type
7278         aliases.
7279         * config/i386/i386.c (enum ix86_builtins): Add
7280         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7281         (struct builtin_description): Add
7282         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7283         (ix86_expand_sse_round): New static function.
7284         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7285         function types.
7286         (ix86_builtin_vectorized_function): Handle
7287         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7289 2011-03-14  Tom Tromey  <tromey@redhat.com>
7291         * c-parser.c (c_parser_asm_string_literal): Clear
7292         warn_overlength_strings.
7294 2011-03-14  Tom Tromey  <tromey@redhat.com>
7296         * c-parser.c (disable_extension_diagnostics): Save
7297         warn_overlength_strings.
7298         (restore_extension_diagnostics): Restore warn_overlength_strings.
7300 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7302         * BASE-VER: Change to 4.7.0.
7304 2011-03-14  Richard Guenther  <rguenther@suse.de>
7306         PR middle-end/48098
7307         * tree.c (build_vector_from_val): Adjust assert to requirements
7308         and reality.
7310 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7312         PR bootstrap/48102
7313         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7315 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7317         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7318         terms of target_flags_explicit. Adjust copyright year.
7320         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7321         * config/rs6000/t-freebsd: New file. Add override for
7322         LIB2FUNCS_EXTRA.
7324 2011-03-13  Chris Demetriou  <cgd@google.com>
7326         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7327         (-fno-diagnostics-show-option): this, to reflect current default.
7328         (-Werror=): Update text about -fno-diagnostics-show-option.
7330 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7332         PR target/48053
7333         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7334         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7335         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7336         mode is not V2DImode or V2DFmode.
7337         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7338         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7339         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7340         registers to 0.
7341         (movdi_internal64): Likewise.
7343 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7345         PR tree-optimization/47127
7346         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7347         parameter.
7348         (set_cloog_options): Same.
7349         (scop_to_clast): Same.
7350         (print_clast_stmt): Do not call cloog_state_malloc and
7351         cloog_state_free.
7352         (print_generated_program): Same.
7353         (gloog): Same.
7354         * graphite-clast-to-gimple.h (cloog_state): Declared.
7355         (scop_to_clast): Adjust declaration.
7356         * graphite.c (cloog_state): Defined here.
7357         (graphite_initialize): Call cloog_state_malloc.
7358         (graphite_finalize): Call cloog_state_free.
7360 2011-03-11  Jason Merrill  <jason@redhat.com>
7362         * attribs.c (lookup_attribute_spec): Take const_tree.
7363         * tree.h: Adjust.
7365 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7367         * config/sparc/sparc.c (sparc_option_override): Use
7368         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7370 2011-03-11  Richard Guenther  <rguenther@suse.de>
7372         PR tree-optimization/48067
7373         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7374         multiplication result will be only used once on the target
7375         stmt.
7377 2011-03-11  Richard Guenther  <rguenther@suse.de>
7379         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7381 2011-03-11  Richard Guenther  <rguenther@suse.de>
7383         PR lto/48073
7384         * tree.c (find_decls_types_r): Do not walk types only reachable
7385         from IDENTIFIER_NODEs.
7387 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7389         PR middle-end/48044
7390         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7391         all vnode->force_output nodes as needed.
7393 2011-03-11  Jason Merrill  <jason@redhat.com>
7395         PR c++/48069
7396         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7397         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7399 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7401         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7402         cgraph_node.
7404 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7406         PR tree-optimization/48063
7407         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7408         inline functions called once if !tree_can_inline_p (node->callers).
7410 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7412         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7413         extra_objs.
7414         * config/score/score3.c: Delete.
7415         * config/score/score3.h: Delete.
7416         * config/score/mul-div.S: Delete.
7417         * config/score/sfp-machine.h: Add new file.
7418         * config/score/constraints.md: Add new file.
7419         * config/score/t-score-softfp: Add new file.
7420         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7421         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7422         (score7_extra_constraint): Delete.
7423         (score7_option_override): Remove unused code.
7424         * config/score/score.c: Remove score3 and score5 define and code.
7425         * config/score/score.h: Remove score3 and score5 define and code.
7426         * config/score/score.md: Remove score3 template and unusual insn.
7427         * config/score/score.opt: Remove score3 and score5 options.
7429 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7431         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7432         when _HPUX_SOURCE is defined.
7433         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7435 2011-03-10  Jason Merrill  <jason@redhat.com>
7437         PR c++/48029
7438         * stor-layout.c (layout_type): Don't set structural equality
7439         on arrays of incomplete type.
7440         * tree.c (type_hash_eq): Handle comparing them properly.
7442 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7444         PR debug/48043
7445         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7446         result mode matches original rtl mode.
7448 2011-03-10  Nick Clifton  <nickc@redhat.com>
7450         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7451         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7453 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7455         PR rtl-optimization/47866
7456         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7457         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7458         if target wasn't scalar.
7459         * function.c (assign_stack_temp_for_type): Assert that neither
7460         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7461         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7462         macro.
7463         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7465 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7467         * config/s390/s390-protos.h (s390_label_align): New prototype.
7468         * config/s390/s390.c (s390_label_align): New function.
7469         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7471 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7473         PR target/47755
7474         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7475         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7476         (output_vec_const_move): Ditto.
7478 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7480         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7481         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7482         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7483         Change 'rclass' argument and result type to reg_class_t.
7484         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7486 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7488         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7489         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7490         (TARGET_MEMORY_MOVE_COST): Define.
7491         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7493 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7495         PR debug/47881
7496         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7497         removed anything.
7499         PR tree-optimization/48022
7500         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7501         for EQ/NE_EXPR.
7503 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7505         PR debug/47991
7506         * var-tracking.c (find_use_val): Return NULL for
7507         cui->sets && cui->store_p BLKmode MEMs.
7509 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7511         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7512         Remove.
7513         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7514         xstormy16_print_operand_address): Remove.
7515         * config/stormy16/stormy16.c (xstormy16_print_operand,
7516         xstormy16_print_operand_address): Make static.
7517         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7519 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7521         PR target/47862
7522         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7523         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7524         before definition.
7526 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7528         PR bootstrap/48000
7529         * cfgloopmanip.c (fix_bb_placements): Return immediately
7530         if FROM is BASE_LOOP's header.
7532 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7534         * gimplify.c (gimplify_function_tree): Fix building calls
7535         to __builtin_return_address.
7537 2011-03-07  Alan Modra  <amodra@gmail.com>
7539         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7540         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7541         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7542         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7543         return_mode args.
7544         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7545         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7546         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7547         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7548         * config/rs6000/rs6000.c
7549         (rs6000_elf_end_indicate_exec_stack): Rename to..
7550         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7551         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7552         (rs6000_file_start): ..here.
7553         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7554         file scope variables.
7555         (call_ABI_of_interest): New function.
7556         (init_cumulative_args): Set above vars when function return value
7557         is a float, vector, or small struct.
7558         (rs6000_function_arg_advance_1): Likewise for function args.
7559         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7560         references float args.
7562 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7564         * doc/cfg.texi: Remove "See" before @ref.
7565         * doc/invoke.texi: Likewise.
7567 2011-03-05  Jason Merrill  <jason@redhat.com>
7569         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7571 2011-03-05  Anthony Green  <green@moxielogic.com>
7573         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7575 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7577         PR rtl-optimization/47899
7578         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7579         to flow_loop_nested_p when moving the loop upward.
7581 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7583         PR target/47719
7584         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7586 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7588         PR tree-optimization/47967
7589         * ipa-cp.c (build_const_val): Return NULL instead of creating
7590         VIEW_CONVERT_EXPR for mismatching sizes.
7591         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7592         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7593         give up on versioning.
7595 2011-03-05  Alan Modra  <amodra@gmail.com>
7597         PR target/47986
7598         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7599         full cmodel medium/large lo_sum + high addresses.
7601 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7603         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7604         pool references in UNSPEC_LTREL_OFFSET.
7606 2011-03-04  Jan Hubicka  <jh@suse.cz>
7608         PR lto/47497
7609         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7610         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7611         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7612         Add node pointers.
7613         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7614         cgraph_add_thunk): Add node pointers.
7615         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7616         associated to right node.
7617         (input_node): Update use of cgraph_same_body_alias
7618         and cgraph_add_thunk.
7620 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7622         * config/i386/i386.opt (mprefer-avx128): New flag.
7623         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7624         modes when the flag -mprefer-avx128 is on.
7626 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7628         * dwarf2out.c (compare_loc_operands): Fix address handling.
7630 2011-03-04  Alan Modra  <amodra@gmail.com>
7632         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7634 2011-03-04  Richard Guenther  <rguenther@suse.de>
7636         PR middle-end/47968
7637         * expmed.c (extract_bit_field_1): Prefer vector modes that
7638         vec_extract patterns can handle.
7640 2011-03-04  Richard Guenther  <rguenther@suse.de>
7642         PR middle-end/47975
7643         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7645 2011-03-04  Richard Henderson  <rth@redhat.com>
7647         * explow.c (emit_stack_save): Remove 'after' parameter.
7648         (emit_stack_restore): Likewise.
7649         * expr.h: Update to match.
7650         * builtins.c, calls.c, stmt.c: Likewise.
7651         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7652         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7653         * function.c (expand_function_end): Insert the emit_stack_save
7654         sequence before parm_birth_insn instead of after.
7656 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7658         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7659         (ssse3_pmaddubsw128): Ditto.
7660         (ssse3_pmaddubsw): Ditto.
7662 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7664         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7666 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7668         PR c/47963
7669         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7670         on TYPE_SIZE_UNIT if it is a DECL.
7672         PR debug/47283
7673         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7674         first operand is not is_gimple_mem_ref_addr, try to fold it.
7675         If the operand still isn't is_gimple_mem_ref_addr, clear
7676         MEM_EXPR on op0.
7678 2011-03-03  Richard Guenther  <rguenther@suse.de>
7680         PR middle-end/47283
7681         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7682         match comment.
7683         (refs_may_alias_p_1): For release branches return true if
7684         we are confused by our input.
7686 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7688         * config/s390/s390.c (s390_function_value): Rename to ...
7689         (s390_function_and_libcall_value): ... this.
7690         (s390_function_value): New function.
7691         (s390_libcall_value): New function.
7692         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7693         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7694         target macro definitions.
7695         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7697 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7699         * config/i386/freebsd64.h (CC1_SPEC): Define.
7700         * config/i386/linux64.h (CC1_SPEC): Define.
7701         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7703 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7705         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7706         Remove.
7707         * config/stormy16/stormy16.c: Include reload.h.
7708         (xstormy16_memory_move_cost): New function.
7709         (TARGET_MEMORY_MOVE_COST): Define.
7711 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7713         PR rtl-optimization/47925
7714         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7715         with side effects.  Remove the more-specific check for volatile asms.
7717 2011-03-02  Alan Modra  <amodra@gmail.com>
7719         PR target/47935
7720         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7721         toc relative addresses for valid offsets.
7723 2011-03-01  Richard Guenther  <rguenther@suse.de>
7725         PR tree-optimization/47890
7726         * tree-vect-loop.c (get_initial_def_for_induction): Set
7727         related stmt properly.
7729 2011-03-01  Richard Guenther  <rguenther@suse.de>
7731         PR lto/47924
7732         * lto-streamer.c (lto_record_common_node): Also register
7733         the canonical type.
7735 2011-03-01  Richard Guenther  <rguenther@suse.de>
7737         PR lto/46911
7738         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7739         Do not stream DECL_ABSTRACT_ORIGIN.
7740         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7741         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7742         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7743         Do not stream DECL_ABSTRACT_ORIGIN.
7744         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7745         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7747 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7749         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7750         FUNCTION_VALUE_REGNO_P): Remove.
7751         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7752         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7753         Add 'outgoing' argument.
7754         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7755         function.
7756         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7757         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7759 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7761         PR debug/28047
7762         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7763         (lookup_filename): Likewise.
7764         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7766 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7767             Jakub Jelinek  <jakub@redhat.com>
7769         PR middle-end/47893
7770         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7771         (assign_stack_local_1): Change last argument type to int.
7772         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7773         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7774         don't record padding space into frame_space_list nor use those areas.
7775         (assign_stack_local): Adjust caller.
7776         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7777         of assign_stack_local, pass 0 as last argument.
7778         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7779         callers.
7781 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7783         PR debug/47283
7784         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7785         Use target address_mode and pointer_mode hooks instead of hardcoded
7786         Pmode and ptr_mode.  Handle some simple cases of extending if
7787         POINTERS_EXTEND_UNSIGNED < 0.
7788         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7789         Call convert_debug_memory_address.
7790         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7791         convert_debug_memory_address.
7793         PR middle-end/46790
7794         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7795         * configure: Regenerated.
7796         * config.in: Regenerated.
7797         * varasm.c (default_function_section): Return NULL
7798         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7800 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7802         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7803         the description to match the printed values.
7805 2011-02-28  Richard Guenther  <rguenther@suse.de>
7807         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7808         of the copied scope tree.
7810 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7812         * doc/extend.texi (Function Attributes): Avoid deeply (and
7813         wrongly) nested tables.
7815 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7817         PR middle-end/47903
7818         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7819         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7820         r isn't op0 nor op1.
7822 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7824         * config/avr/avr.md: Remove magic comment for emacs.
7826 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7828         PR target/45261
7829         * config/avr/avr.c (avr_option_override): Use error on bad options.
7830         (avr_help): New function.
7831         (TARGET_HELP): Define.
7833 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7835         PR target/42240
7836         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7837         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7839 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7841         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7842         (ARM Options): Ditto.
7843         (i386 and x86-64 Options): Ditto.
7844         (RX Options): Ditto.
7845         (SPARC Options): Ditto.
7847 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7849         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7850         FreeBSD 6 and later.  Generally use cpu generic.
7852 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7854         * doc/cpp.texi: Update copyright years.
7856 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7858         PR target/46898
7859         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7861 2011-02-25  Jon Beniston  <jon@beniston.com>
7863         PR target/46898
7864         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7865         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7866         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7867         (lm32_block_move_inline): Add type cast to remove warning.
7868         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7869         (gen_int_relational): Move declarations to start of function.
7871 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7873         PR tree-optimization/45470
7874         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7875         can throw internally only.
7876         * tree-vect-stmts.c (vectorizable_call): Likewise.
7878 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7880         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7881         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7882         * config/stormy16/stormy16-protos.h
7883         (xstormy16_preferred_reload_class): Remove.
7884         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7885         static. Change 'rclass' argument and return type to reg_class_t.
7886         (TARGET_PREFERRED_RELOAD_CLASS,
7887         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7889 2011-02-24  Richard Guenther  <rguenther@suse.de>
7891         * lto-streamer-in.c (input_bb): Do not find referenced vars
7892         in debug statements.
7894 2011-02-23  Jason Merrill  <jason@redhat.com>
7896         * common.opt (fabi-version): Document v5 and v6.
7898 2011-02-23  Richard Guenther  <rguenther@suse.de>
7900         PR tree-optimization/47849
7901         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7903 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7905         * opts-common.c (decode_cmdline_option): Print empty string
7906         argument as "" in decoded->orig_option_with_args_text.
7907         * gcc.c (execute): Print empty string argument as ""
7908         in the verbose output.
7909         (do_spec_1): Keep empty string argument.
7911 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7913         * config.gcc: Declare score-* and crx-* obsolete.
7915 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7917         PR rtl-optimization/47763
7918         * web.c (web_main): Ignore naked clobber when replacing register.
7920 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7922         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7923         Remove.
7925 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7927         PR doc/47848
7928         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7930 2011-02-22  Mike Stump  <mikestump@comcast.net>
7932         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7933         assembler.
7934         * configure: Regenerate.
7936 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7938         PR rtl-optimization/46002
7939         * ira-color.c (update_copy_costs): Change class intersection
7940         test to reg_class_contents[] test of 'hard_regno'.
7942 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7944         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7945         than Driver option.
7946         * config/hpux11.opt (mt): Likewise.
7947         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7948         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7949         * config/vax/elf.opt (mno-asm-pic): Likewise.
7950         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7952 2011-02-21  Mike Stump  <mikestump@comcast.net>
7954         PR target/47822
7955         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7956         tree so we can get save the type.
7957         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7958         for CFString instead of trying to use past the end of the builtins.
7959         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7960         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7961         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7962         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7963         Rename to darwin_builtin_cfstring.
7964         (darwin_init_cfstring_builtins): Return the built type.
7966 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7968         PR target/47840
7969         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7970         (_mm256_insert_epi64): Use _mm_insert_epi64.
7972 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7974         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7975         * config/stormy16/stormy16-protos.h
7976         (xstormy16_mode_dependent_address_p): Remove.
7977         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7978         Make static. Change return type to bool. Change argument type to
7979         const_rtx. Remove dead code.
7980         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7982 2011-02-21  Richard Guenther  <rguenther@suse.de>
7984         PR lto/47820
7985         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7986         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7987         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7988         TUs context.
7989         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7990         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7992 2011-02-20  Richard Guenther  <rguenther@suse.de>
7994         PR lto/47822
7995         * tree.c (free_lang_data_in_decl): Clean builtins from
7996         the TU decl BLOCK_VARS.
7998 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
8000         PR debug/47620
8001         PR debug/47630
8002         * haifa-sched.c (fix_tick_ready): Skip tick computation
8003         for debug insns.
8005 2011-02-19  Richard Guenther  <rguenther@suse.de>
8007         PR lto/47647
8008         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8009         Remove lazy BLOCK_VARS streaming.
8010         (lto_input_ts_block_tree_pointers): Likewise.
8011         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8013 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
8015         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8017 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
8019         * config/i386/biarch32.h, config/i386/mach.h,
8020         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8022 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
8024         PR target/47800
8025         * config/i386/i386.md (peephole2 for shift and plus): Use
8026         operands[1] original mode in the first insn.
8028 2011-02-18  Mike Stump  <mikestump@comcast.net>
8030         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8032 2011-02-18  Jan Hubicka  <jh@suse.cz>
8034         PR middle-end/47788
8035         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8036         to zero when the function is not inlinable at all.
8038 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8040         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8041         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8042         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8043         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8044         * config/pa/t-pa64: Likewise.
8045         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8047 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8049         PR driver/47787
8050         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8052 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8054         PR target/47792
8055         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8057 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
8059         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8060         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8061         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8062         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8063         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8064         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8065         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8066         m32r_load_postinc_p, m32r_store_preinc_predec_p,
8067         m32r_legitimate_address_p): New functions.
8068         * config/m32r/constraints.md (constraint "S"): Don't use
8069         STORE_PREINC_PREDEC_P.
8070         (constraint "U"): Don't use LOAD_POSTINC_P.
8072 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
8074         PR rtl-optimization/46178
8075         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8076         compute ira_hard_regno_cover_class[].
8078 2011-02-18  Richard Guenther  <rguenther@suse.de>
8080         PR lto/47798
8081         * lto-streamer.h (lto_global_var_decls): Declare.
8082         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8083         statics for global var processing.
8085 2011-02-18  Richard Guenther  <rguenther@suse.de>
8087         PR tree-optimization/47737
8088         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8089         edge dominance check.
8091 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8093         PR debug/47780
8094         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8095         avoid invalid rtx sharing.
8097 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
8099         * doc/cpp.texi (Obsolete Features): Add background on the
8100         origin of assertions.
8102 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
8104         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8105         objc_abi == 2.
8106         * config/darwin.c (output_objc_section_asm_op): Added support for
8107         ABI v1 and v2.
8108         (is_objc_metadata): New.
8109         (darwin_objc2_section): New.
8110         (darwin_objc1_section): New.
8111         (machopic_select_section): Added support for ABI v1 and v2.
8112         (darwin_emit_objc_zeroed): New.
8113         (darwin_output_aligned_bss): Detect objc metadata and treat it
8114         appropriately.
8115         (darwin_asm_output_aligned_decl_common): Same.
8116         (darwin_asm_output_aligned_decl_local): Same.
8117         * config/darwin-sections.def: Updated for ABI v1 and v2.
8118         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8119         compiling Objective-C code for the NeXT runtime, default to using
8120         ABI version 0 for 32-bit, and version 2 for 64-bit.
8122 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8124         * common.opt (optimize_fast): New Variable.
8125         * opts.c (default_options_optimization): Use opts->x_optimize_fast
8126         instead of local variable ofast.
8128 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8130         * doc/invoke.texi (fobjc-abi-version): Documented.
8131         (fobjc-nilcheck): Documented.
8132         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8133         version.
8135 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8137         PR driver/47390
8138         * common.opt (export-dynamic): New Driver option.
8139         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8141 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8143         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8145 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
8146             Jan Hubicka  <jh@suse.cz>
8148         PR debug/47106
8149         PR debug/47402
8150         * cfgexpand.c (account_used_vars_for_block): Remove.
8151         (estimated_stack_frame_size): Use referenced vars.
8152         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8153         that were referenced in the original function.  Test src_fn
8154         rather than cfun.  Drop redundant get_var_ann.
8155         (setup_one_parameter): Drop redundant get_var_ann.
8156         (declare_return_variable): Likewise.
8157         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8158         (copy_arguments_for_versioning): Drop redundant get_var_ann.
8159         * ipa-inline.c (compute_inline_parameters): Do not compute
8160         disregard_inline_limits here.
8161         (compute_inlinable_for_current, pass_inlinable): New.
8162         (pass_inline_parameters): Require PROP_referenced_vars.
8163         * cgraphunit.c (cgraph_process_new_functions): Don't run
8164         compute_inline_parameters explicitly unless function is in SSA form.
8165         (cgraph_analyze_function): Set .disregard_inline_limits.
8166         * tree-sra.c (convert_callers): Compute inliner parameters
8167         only for functions already in SSA form.
8169 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8171         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8172         -mlittle-endian-data.
8174 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8176         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8177         -mno-fpu, not -fpu and -no-fpu.
8178         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8179         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8181 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
8183         PR target/43653
8184         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8185         input reload with PLUS RTX.
8187 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8189         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8190         of InverseVar(MDMX).
8192 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8194         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8195         --m4-340.
8197 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8199         * config/mn10300/mn10300.opt (mno-crt0): New.
8201 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8203         * config/m68k/uclinux.opt (static-libc): New Driver option.
8205 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8207         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8209 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8211         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8212         %{muser-extend-enabled}.
8214 2011-02-16  Richard Guenther  <rguenther@suse.de>
8216         PR tree-optimization/47738
8217         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8218         the TODO from tree_predictive_commoning.
8220 2011-02-15  Jeff Law  <law@redhat.com>
8222         Revert
8223         2011-01-25  Jeff Law  <law@redhat.com>
8225         PR rtl-optimization/37273
8226         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8227         handle them like argument loads from stack slots.  Do not double
8228         count memory for memory constants and argument loads from stack slots.
8230 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8232         PR middle-end/47725
8233         * combine.c (cant_combine_insn_p): Revert the last change.
8235 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8237         PR target/47755
8238         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8239         mode for vector constants.  Remove code that checks for TImode.
8241 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8243         PR debug/47106
8244         PR debug/47402
8245         * cgraph.h (compute_inline_parameters): Return void.
8246         * ipa-inline.c (compute_inline_parameters): Adjust.
8248 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8250         PR debug/47106
8251         PR debug/47402
8252         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8253         rather than decl.
8254         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8255         * ipa-inline.c (compute_inline_parameters): Adjust.
8257 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8259         PR debug/47106
8260         PR debug/47402
8261         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8262         Adjust all users.  Pass FN to...
8263         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8264         fn argument.
8265         * ipa-struct-reorg.c: Adjust.
8266         * tree-dfa.c: Adjust.
8267         * tree-into-ssa.c: Adjust.
8268         * tree-sra.c: Adjust.
8269         * tree-ssa-alias.c: Adjust.
8270         * tree-ssa-live.c: Adjust.
8271         * tree-ssa.c: Adjust.
8272         * tree-ssanames.c: Adjust.
8273         * tree-tailcall.c: Adjust.
8275 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8277         PR debug/47106
8278         PR debug/47402
8279         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8280         Adjust all callers.
8281         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8282         * tree-flow-inline.h: Adjust.
8283         * gimple-pretty-print.c: Adjust.
8284         * tree-into-ssa.c: Adjust.
8285         * tree-ssa.c: Adjust.
8286         * cfgexpand.c: Adjust.
8288 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8290         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8291         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8292         (EXTRA_CONSTRAINT): Delete.
8293         * config/iq2000/constraints.md: New file.
8294         * config/iq2000/iq2000.md: Include it.
8295         (define_insn ""): Delete.
8296         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8297         unsupported constraint letters from patterns.
8298         (call_value, call_value_internal1): Likewise.
8299         (call_value_multiple_internal1): Likewise.
8301 2011-02-15  Nick Clifton  <nickc@redhat.com>
8303         * config/mn10300/mn10300.c: Include tm-constrs.h.
8304         (struct liw_data): New data structure describing an LIW candidate
8305         instruction.
8306         (extract_bundle): Use struct liw_data.  Allow small integer
8307         operands for some instructions.
8308         (check_liw_constraints): Use struct liw_data.  Remove swapped
8309         parameter.  Add comments describing the checks.  Fix bug when
8310         assigning the source of liw1 to the source of liw2.
8311         (liw_candidate): Delete.  Code moved into extract_bundle.
8312         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8313         before swapping.
8314         * config/mn10300/predicates.md (liw_operand): New predicate.
8315         Allows registers and small integer constants.
8316         * config/mn10300/constraints.md (O): New constraint.  Accetps
8317         integers in the range -8 to +7 inclusive.
8318         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8319         for moving a small integer into a register.  Give this alternative
8320         LIW attributes.
8321         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8322         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8323         using the J,K,L and M constraints,
8324         (liw): Remove SI mode on second operands to allow for HI and QI
8325         mode values.
8326         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8327         instruction.
8329 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8331         PR middle-end/47725
8332         * combine.c (cant_combine_insn_p): Check zero/sign extended
8333         hard registers.
8335 2011-02-15  Richard Guenther  <rguenther@suse.de>
8337         PR tree-optimization/47743
8338         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8339         for a non-type-compatible VN lookup bail out.
8341 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8343         * config/fr30/constraints.md: New file.
8344         * config/fr30/fr30.md: Include it.
8345         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8346         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8347         (EXTRA_CONSTRAINT): Delete.
8349 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8351         * config/frv/constraints.md: New file.
8352         * config/frv/predicates.md: Include it.
8353         * config/frv/frv.c (reg_class_from_letter): Delete.
8354         (frv_option_override): Don't initialize it.
8355         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8356         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8357         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8358         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8359         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8360         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8361         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8362         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8363         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8364         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8365         (REG_CLASS_FROM_CONSTRAINT): Delete.
8367 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8369         PR middle-end/47581
8370         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8371         if frame size is 0 in a leaf function.
8373 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8375         PR pch/14940
8376         * config/alpha/host-osf.c: New file.
8377         * config/alpha/x-osf: New file.
8378         * config.host (alpha*-dec-osf*): Use it.
8380 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8382         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8383         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8384         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8385         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8386         type to const_rtx.
8387         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8389 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8391         * config/stormy16/constraints.md: New file.
8392         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8393         Use satisfies_constraint_Q and satisfies_constraint_R.
8394         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8395         Delete.
8396         (xstormy16_legitiamte_address_p): Declare.
8397         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8398         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8399         (EXTRA_CONSTRAINT): Delete.
8400         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8401         Un-staticize.
8402         (xstormy16_extra_constraint_p): Delete.
8404 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8406         PR tree-optimization/46494
8407         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8408         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8409         (pass_rtl_loop_done): Add TODO_verify_flow.
8410         * fwprop.c (pass_rtl_fwprop): Likewise.
8411         * modulo-sched.c (pass_sms): Likewise.
8412         * tree-ssa-dom.c (pass_dominator): Likewise.
8413         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8414         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8415         (pass_tree_loop_done): Likewise.
8416         * tree-ssa-pre.c (execute_pre): Likewise.
8417         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8418         * tree-ssa-sink.c (pass_sink_code): Likewise.
8419         * tree-vrp.c (pass_vrp): Likewise.
8421 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8423         * config/v850/constraints.md: New file.
8424         * config/v850/v850.md: Include it.
8425         * config/v850/predicates.md (reg_or_0_operand): Use
8426         satisfies_constraint_G.
8427         (special_symbolref_operand): Use satisfies_constraint_K.
8428         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8429         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8430         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8431         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8432         (EXTRA_CONSTRAINT): Delete.
8433         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8434         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8435         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8437 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8439         PR target/47696
8440         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8441         description.
8443 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8445         * config/mcore/constraints.md: New file.
8446         * config/mcore/mcore.md: Include it.
8447         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8448         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8449         (REG_CLASS_FROM_LETTER): Delete.
8450         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8451         insn_const_int_ok_for_constraint.
8452         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8453         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8454         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8455         (EXTRA_CONSTRAINT): Delete.
8457 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8459         PR ada/41929
8460         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8461         (IS_SIGHANDLER): Define.
8462         (sparc64_is_sighandler): New function, split off from
8463         sparc64_fallback_frame_state.
8464         (sparc_is_sighandler): New function, split off from
8465         sparc_fallback_frame_state.
8466         (sparc64_fallback_frame_state): Merge with ...
8467         (sparc_fallback_frame_state): ... this into ...
8468         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8469         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8470         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8471         stack instead of hardcoded offsets.
8473 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8475         PR target/45808
8476         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8478 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8480         * configure: Regenerate.
8482 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8484         PR driver/45731
8485         * gcc.c (asm_options): Correct spec matching --target-help.
8487 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8489         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8490         to gimple call error.
8492 2011-02-12  Mike Stump  <mikestump@comcast.net>
8494         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8495         comments in backslash regions.
8497 2011-02-12  Mike Stump  <mikestump@comcast.net>
8498             Jakub Jelinek  <jakub@redhat.com>
8499             Iain Sandoe  <iains@gcc.gnu.org>
8501         PR target/47324
8502         * dwarf2out.c (output_cfa_loc): When required, apply the
8503         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8504         (output_loc_sequence): Likewise.
8505         (output_loc_operands_raw): Likewise.
8506         (output_loc_sequence_raw): Likewise.
8507         (output_cfa_loc): Likewise.
8508         (output_loc_list): Suppress register number adjustment when
8509         calling output_loc_sequence()
8510         (output_die): Likewise.
8512 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8514         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8515         Remove macros.
8516         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8517         xtensa_memory_move_cost): New functions.
8518         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8520 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8522         PR lto/47225
8523         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8524         in the current directory.
8525         * configure: Rebuilt.
8527 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8529         * config/darwin.c (darwin_override_options): Add a hunk missed
8530         from the commit of r168571.  Trim comment line lengths and
8531         correct indents of the preceding block.
8533 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8535         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8536         the switch.
8538 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8540         * common.opt (nostartfiles): New Driver option.
8542 2011-02-11  Xinliang David Li  <davidxl@google.com>
8544         PR tree-optimization/47707
8545         * tree-chrec.c (convert_affine_scev): Keep type precision.
8547 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8549         PR tree-optimization/47420
8550         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8552 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8554         PR rtl-optimization/47614
8555         * rtl.h (check_for_inc_dec): Declare.
8556         * dse.c (check_for_inc_dec): Externalize...
8557         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8558         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8560 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8562         PR driver/47678
8563         * gcc.c (main): Do not compile inputs if there were errors in
8564         option handling.
8565         * opts-common.c (read_cmdline_option): Check for wrong language
8566         after other error checks.
8568 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8570         * cgraph.c: Fix comment typos.
8571         * cgraph.h: Likewise.
8572         * cgraphunit.c: Likewise.
8573         * ipa-cp.c: Likewise.
8574         * ipa-inline.c: Likewise.
8575         * ipa-prop.c: Likewise.
8576         * ipa-pure-const.c: Likewise.
8577         * ipa-ref.c: Likewise.
8578         * ipa-reference.c: Likewise.
8580 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8582         PR debug/47684
8583         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8585 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8587         PR testsuite/47400
8588         * doc/sourcebuild.texi (Require Support): Document
8589         dg-require-ascii-locale.
8591 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8593         * doc/lto.texi (Write summary): Fix missing parentheses.
8595 2011-02-10  DJ Delorie  <dj@redhat.com>
8597         * config/m32c/m32c.c (m32c_option_override): Disable
8598         -fcombine-stack-adjustments until flag value tracking and compare
8599         optimization can be rewritten.
8601 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8603         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8604         PROCESSOR_POWER7.
8605         (PROCESSOR_DEFAULT64): Likewise.
8607 2011-02-10  Richard Henderson  <rth@redhat.com>
8609         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8610         change from 2011-02-03.
8611         * config/rx/rx.c (flags_from_code): Likewise.
8612         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8613         is valid, n/pz otherwise.
8614         (rx_select_cc_mode): Return CCmode if Y is not zero.
8616 2011-02-10  Richard Guenther  <rguenther@suse.de>
8618         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8620 2011-02-10  Richard Guenther  <rguenther@suse.de>
8622         PR tree-optimization/47677
8623         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8625 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8627         PR target/47665
8628         * combine.c (make_compound_operation): Only change shifts into
8629         multiplication for SCALAR_INT_MODE_P.
8631 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8633         PR testsuite/47622
8634         Revert
8635         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8636         PR debug/42631
8637         * web.c (entry_register): Don't clobber the number of the
8638         first uninitialized reference in used[].
8640 2011-02-09  Richard Guenther  <rguenther@suse.de>
8642         PR tree-optimization/47664
8643         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8644         all edges again.
8646 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8648         PR target/46481
8649         PR target/47032
8650         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8651         PROCESSOR_POWER7.
8652         (PROCESSOR_DEFAULT64): Same.
8653         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8655 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8657         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8659 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8661         PR middle-end/45505
8662         * tree-sra.c (struct access): New flags grp_scalar_read and
8663         grp_scalar_write.  Changed description of assignment read and write
8664         flags.
8665         (dump_access): Dump new flags, reorder all of them.
8666         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8667         to detect multiple scalar reads.
8668         (analyze_access_subtree): Use the new scalar read write flags instead
8669         of the old flags.  Adjusted comments.
8671 2011-02-08  DJ Delorie  <dj@redhat.com>
8673         PR target/47548
8674         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8675         patterns.
8677 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8679         * config/m68k/uclinux.opt: New.
8680         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8682 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8684         * config/cris/elf.opt (sim): New Driver option.
8686 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8688         * config/xtensa/elf.opt: New.
8689         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8691 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8693         * config/vax/elf.opt: New.
8694         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8696 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8698         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8700 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8702         * config/gnu-user.opt: New.
8703         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8704         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8705         *-*-uclinux*): Use gnu-user.opt.
8707 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8709         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8710         * config/i386/gnu.h (CPP_SPEC): Likewise.
8712 2011-02-08  Ian Lance Taylor  <iant@google.com>
8714         * common.opt (fcx-limited-range): Add SetByCombined flag.
8715         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8716         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8717         (fassociative-math, freciprocal-math): Likewise.
8718         (funsafe-math-optimizations): Likewise.
8719         * opth-gen.awk: Handle SetByCombined.
8720         * optc-gen.awk: Likewise.
8721         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8722         (set_unsafe_math_optimizations_flags): Likewise.
8723         * doc/options.texi (Option properties): Document SetByCombined.
8725 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8727         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8728         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8729         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8730         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8731         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8733 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8735         PR tree-optimization/46834
8736         PR tree-optimization/46994
8737         PR tree-optimization/46995
8738         * graphite-sese-to-poly.c (used_outside_reduction): New.
8739         (detect_commutative_reduction): Call used_outside_reduction.
8740         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8741         translate_scalar_reduction_to_array only when at least one
8742         loop-phi/close-phi tuple has been detected.
8744 2011-02-08  Richard Guenther  <rguenther@suse.de>
8746         PR middle-end/47639
8747         * tree-vect-generic.c (expand_vector_operations_1): Update
8748         stmts here ...
8749         (expand_vector_operations): ... not here.  Cleanup EH info
8750         and the CFG if required.
8752 2011-02-08  Richard Guenther  <rguenther@suse.de>
8754         PR tree-optimization/47641
8755         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8756         require type compatibility.
8758 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8760         * gimple-low.c (lower_function_body): Don't remove the location of
8761         the return statement here.
8762         (lower_gimple_return): Do it here instead but only if the return
8763         statement is actually used twice.
8765 2011-02-08  Richard Guenther  <rguenther@suse.de>
8767         PR tree-optimization/47632
8768         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8769         unused up_to_stmt parameter, return whether cfg-cleanup is
8770         necessary, remove EH info properly.
8771         (forward_propagate_into_gimple_cond): Adjust caller.
8772         (forward_propagate_into_cond): Likewise.
8773         (forward_propagate_comparison): Likewise.
8774         (tree_ssa_forward_propagate_single_use_vars): Make
8775         forward_propagate_comparison case similar to the two others.
8777 2011-02-08  Nick Clifton  <nickc@redhat.com>
8779         * config/mn10300/mn10300.opt (mliw): New command line option.
8780         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8781         (liw_bundling): New automaton.
8782         (liw): New attribute.
8783         (liw_op): New attribute.
8784         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8785         (movsi_internal): Add LIW attributes.
8786         (andsi3): Likewise.
8787         (iorsi3): Likewise.
8788         (xorsi3): Likewise.
8789         (addsi3): Separate register and immediate alternatives.
8790         Add LIW attributes.
8791         (subsi3): Likewise.
8792         (cmpsi): Likewise.
8793         (aslsi3): Likewise.
8794         (lshrsi3): Likewise.
8795         (ashrsi3): Likewise.
8796         (liw): New pattern.
8797         * config/mn10300/mn10300.c (liw_op_names): New
8798         (mn10300_print_operand): Handle 'W' operand descriptor.
8799         (extract_bundle): New function.
8800         (check_liw_constraints): New function.
8801         (liw_candidate): New function.
8802         (mn10300_bundle_liw): New function.
8803         (mn10300_reorg): New function.
8804         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8805         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8806         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8807         __LIW__ or __NO_LIW__.
8808         * doc/invoke.texi: Describe the -mliw command line option.
8810 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8812         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8813         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8814         pthread_mutex_unlock): Remove.
8815         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8816         * config/pa/t-pa64: Likewise.
8817         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8818         shared libc if not linking against libpthread.
8819         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8821 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8823         PR target/47558
8824         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8825         on 10.6 and later to ensure that we always use the unwinder from
8826         the system.  Only add -no_compact_unwind when tarteting darwin
8827         10.6 or later.
8829 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8831         PR target/46997
8832         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8833         (vec_interleave_lowv2sf): Ditto.
8834         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8835         (vec_extract_oddv2sf): Ditto.
8837 2011-02-07  Mike Stump  <mikestump@comcast.net>
8839         PR target/42333
8840         Add __ieee_divdc3 entry point.
8841         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8842         entry point.
8843         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8844         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8845         * config/darwin.c (darwin_rename_builtins): Add.
8846         * config/darwin-protos.h (darwin_rename_builtins): Add.
8848 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8850         PR target/47636
8851         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8852         for the condition.
8854 2011-02-07  Mike Stump  <mikestump@comcast.net>
8856         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8858 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8860         PR target/47534
8861         * config/avr/libgcc.S (exit): Move .endfunc
8863 2011-02-07  Richard Guenther  <rguenther@suse.de>
8865         PR tree-optimization/47615
8866         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8867         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8868         (run_scc_vn): Initialize it.
8869         (visit_reference_op_load): Use it.
8870         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8872 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8874         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8875         DImode trapping arithmetic libfuncs.
8877 2011-02-07  Richard Guenther  <rguenther@suse.de>
8879         PR tree-optimization/47621
8880         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8881         two duplicates ...
8882         (execute_update_addresses_taken): ... here.  Make it more
8883         conservative in what we accept.
8885 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8887         * config/sparc/freebsd.h (ASM_SPEC): Define.
8888         * config/sparc/vxworks.h (ASM_SPEC): Define.
8890 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8892         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8894 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8896         * doc/invoke.texi: Remove reference to compiler internals from
8897         user documentation.
8899         * reg-notes.def: Remove REG_VALUE_PROFILE.
8900         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8902 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8904         PR middle-end/47610
8905         * varasm.c (default_section_type_flags): If decl is NULL,
8906         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8908 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8910         PR debug/42631
8911         * web.c (entry_register): Don't clobber the number of the
8912         first uninitialized reference in used[].
8914 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8916         PR tree-optimization/46194
8917         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8918         (build_classic_dist_vector_1): Do not represent classic distance
8919         vectors when the access functions are variating in different loops.
8921 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8923         * config/mips/iris6.opt: New.
8924         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8926 2011-02-04  Richard Henderson  <rth@redhat.com>
8927             Steve Ellcey  <sje@cup.hp.com>
8929         PR target/46997
8930         * config/ia64/predicates.md (mux1_brcst_element): New.
8931         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8932         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8933         (ia64_unpack_sign): New.
8934         (ia64_expand_unpack): Rewrite using new routines.
8935         (ia64_expand_widen_sum): Ditto.
8936         (ia64_expand_dot_prod_v8qi): Ditto.
8937         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8938         routines, add endian check.
8939         (pmpy2_even): Rename from pmpy2_r, add endian check.
8940         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8941         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8942         (vec_widen_smult_hi_v4hi): Ditto.
8943         (vec_widen_umult_lo_v4hi): Ditto.
8944         (vec_widen_umult_hi_v4hi): Ditto.
8945         (mulv2si3): Change endian checks.
8946         (sdot_prodv4hi): Rewrite with new calls.
8947         (udot_prodv4hi): New.
8948         (vec_pack_ssat_v4hi): Add endian check.
8949         (vec_pack_usat_v4hi): Ditto.
8950         (vec_pack_ssat_v2si): Ditto.
8951         (max1_even): Rename from max1_r, add endian check.
8952         (max1_odd): Rename from max1_l, add endian check.
8953         (*mux1_rev): Format change.
8954         (*mux1_mix): Ditto.
8955         (*mux1_shuf): Ditto.
8956         (*mux1_alt): Ditto.
8957         (*mux1_brcst_v8qi): Use new predicate.
8958         (vec_extract_evenv8qi): Remove endian check.
8959         (vec_extract_oddv8qi): Ditto.
8960         (vec_interleave_lowv4hi): Format change.
8961         (vec_interleave_highv4hi): Ditto.
8962         (mix2_even): Rename from mix2_r, add endian check.
8963         (mix2_odd): Rename from mux2_l, add endian check.
8964         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8965         (vec_extract_evenodd_helper): Format change.
8966         (vec_extract_evenv4hi): Remove endian check.
8967         (vec_extract_oddv4hi): Remove endian check.
8968         (vec_interleave_lowv2si): Format change.
8969         (vec_interleave_highv2si): Format change.
8970         (vec_initv2si): Remove endian check.
8971         (vecinit_v2si): Add endian check.
8972         (reduc_splus_v2sf): Add endian check.
8973         (reduc_smax_v2sf): Ditto.
8974         (reduc_smin_v2sf): Ditto.
8975         (vec_initv2sf): Remove endian check.
8976         (fpack): Add endian check.
8977         (fswap): Add endian check.
8978         (vec_interleave_highv2sf): Add endian check.
8979         (vec_interleave_lowv2sf): Add endian check.
8980         (fmix_lr): Add endian check.
8981         (vec_setv2sf): Format change.
8982         (*vec_extractv2sf_0_be): Use shift to extract operand.
8983         (*vec_extractv2sf_1_be): New.
8984         (vec_pack_trunc_v4hi): Add endian check.
8985         (vec_pack_trunc_v2si): Format change.
8987 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8989         PR inline-asm/23200
8990         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8991         do bb, locus and block comparison and disallow loads if it is not set.
8992         (stmt_is_replaceable_p): New function.
8993         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8994         callers.
8995         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8996         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8997         SSA_NAME_DEF_STMT.
8998         * tree-flow.h (stmt_is_replaceable_p): New prototype.
9000 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9002         * config/rs6000/xilinx.opt: New.
9003         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9005 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
9007         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9009 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
9011         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9012         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9013         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9014         secondary_reload_info, xtensa_secondary_reload): Remove.
9015         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9016         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9017         (xtensa_preferred_reload_class): Make static. Change return and
9018         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9019         Use CONST_DOUBLE_P predicate.
9020         (xtensa_preferred_output_reload_class): New function.
9021         (xtensa_secondary_reload): Make static.
9023 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
9025         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9026         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9027         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9029 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9031         PR middle-end/31490
9032         * output.h (SECTION_RELRO): Define.
9033         (SECTION_MACH_DEP): Adjust.
9034         (get_variable_section): New prototype.
9035         * varpool.c (varpool_finalize_named_section_flags): New function.
9036         (varpool_assemble_pending_decls): Call it.
9037         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9038         * cgraphunit.c (cgraph_output_in_order): Call
9039         varpool_finalize_named_section_flags.
9040         * varasm.c (get_section): Allow section flags conflicts between
9041         relro and read-only sections if the section hasn't been declared yet.
9042         Set SECTION_OVERRIDE after diagnosing section type conflict.
9043         (get_variable_section): No longer static.
9044         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9045         readonly sections that need relocations.
9046         (decl_readonly_section_1): New function.
9047         (decl_readonly_section): Use it.
9049         Revert:
9050         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
9051                     Steve Ellcey  <sje@cup.hp.com>
9053         PR middle-end/31490
9054         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9055         if section attribute used.
9057 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9059         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9060         * config/darwin.c (SECTION_NO_ANCHOR): Define.
9061         (darwin_init_sections): Remove assertion.
9063 2011-02-03  Nick Clifton  <nickc@redhat.com>
9065         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9066         lt and ge.
9067         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9068         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9069         instead of "n" and "pz".
9070         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9071         CC_FLAG_S.
9073 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
9075         PR target/47312
9076         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9077         fma, expand FMA_EXPR as fma{,f,l} call.
9079         PR lto/47274
9080         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9081         copy them into a unsigned char variable and pass address of it to
9082         lto_output_data_stream.
9084         PR target/47564
9085         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9086         around backend_init_target and lang_dependent_init_target calls.
9087         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9088         (verify_cgraph_node): Don't call set_cfun here.  Use
9089         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9090         Set error_found for incorrectly represented calls to thunks.
9092 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9094         PR debug/43092
9095         PR rtl-optimization/43494
9096         * rtl.h (for_each_inc_dec_fn): New type.
9097         (for_each_inc_dec): Declare.
9098         * rtlanal.c (struct for_each_inc_dec_ops): New type.
9099         (for_each_inc_dec_find_inc_dec): New fn.
9100         (for_each_inc_dec_find_mem): New fn.
9101         (for_each_inc_dec): New fn.
9102         * dse.c (struct insn_size): Remove.
9103         (replace_inc_dec, replace_inc_dec_mem): Remove.
9104         (emit_inc_dec_insn_before): New fn.
9105         (check_for_inc_dec): Use it, along with for_each_inc_dec.
9106         (canon_address): Pass mem modes to cselib_lookup.
9107         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
9108         (cselib_lookup_from_insn): Likewise.
9109         (cselib_subst_to_values): Likewise.
9110         * cselib.c (find_slot_memmode): New var.
9111         (cselib_find_slot): New fn.  Use it instead of
9112         htab_find_slot_with_hash everywhere.
9113         (entry_and_rtx_equal_p): Use find_slot_memmode.
9114         (autoinc_split): New fn.
9115         (rtx_equal_for_cselib_p): Rename and implement in terms of...
9116         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
9117         Deal with autoinc.  Special-case recursion into MEMs.
9118         (cselib_hash_rtx): Likewise.
9119         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
9120         address and MEM modes.
9121         (cselib_subst_to_values): Add memmode, pass it on.
9122         Deal with autoinc.
9123         (cselib_lookup): Add memmode argument, pass it on.
9124         (cselib_lookup_from_insn): Add memmode.
9125         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9126         (struct cselib_record_autoinc_data): New.
9127         (cselib_record_autoinc_cb): New fn.
9128         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
9129         mode to cselib_lookup.  Reset autoinced REGs here instead of...
9130         (cselib_process_insn): ... here.
9131         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9132         to cselib_lookup.
9133         (add_uses): Likewise, also to cselib_subst_to_values.
9134         (add_stores): Likewise.
9135         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
9136         cselib_subst_to_values.
9137         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
9138         * gcse.c (do_local_cprop): Adjusted.
9139         * postreload.c (reload_cse_simplify_set): Adjusted.
9140         (reload_cse_simplify_operands): Adjusted.
9141         * sel-sched-dump (debug_mem_addr_value): Pass mode.
9143 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9145         PR tree-optimization/45122
9146         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9147         unsafe assumptions when there's more than one loop exit.
9149 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9151         PR target/47272
9152         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9153         Document using vector double with the load/store builtins, and
9154         that the load/store builtins always use Altivec instructions.
9156         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9157         to use altivec memory instructions, even on VSX.
9158         (vector_altivec_store_<mode>): Ditto.
9160         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9161         function.
9163         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9164         V2DF, V2DI support to load/store overloaded builtins.
9166         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9167         altivec load/store builtins for V2DF/V2DI types.
9169         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9170         set avoid indexed addresses on power6 if -maltivec.
9171         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9172         vector_altivec_load/vector_altivec_store builtins.
9173         (altivec_expand_st_builtin): Ditto.
9174         (altivec_expand_builtin): Add VSX memory builtins.
9175         (rs6000_init_builtins): Add V2DI types to internal types.
9176         (altivec_init_builtins): Add support for V2DF/V2DI altivec
9177         load/store builtins.
9178         (rs6000_address_for_altivec): Insure memory address is appropriate
9179         for Altivec.
9181         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9182         vec_vsx_ld and vec_vsx_st.
9183         (vsx_store_<mode>): Ditto.
9185         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9186         variables to hold long long types for VSX vector memory builtins.
9187         (RS6000_BTI_unsigned_long_long): Ditto.
9188         (long_long_integer_type_internal_node): Ditti.
9189         (long_long_unsigned_type_internal_node): Ditti.
9191         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9192         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9193         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9195         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9196         short cuts.
9197         (vec_vsx_st): Ditto.
9199 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9201         * config/pa/pa-hpux10.opt: New.
9202         * config/hpux11.opt (pthread): New Driver option.
9203         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9204         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9206 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9208         * config/ia64/vms.opt: New.
9209         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9211 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9213         PR target/47580
9214         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9215         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9216         generator functions.
9217         (vsx_floatuns<VSi><mode>2): Ditto.
9218         (vsx_fix_trunc<mode><VSi>2): Ditto.
9219         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9221 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9223         * config/i386/djgpp.opt (posix): New Driver option.
9225 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9227         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9228         Move to the unsupported targets list.
9230 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9232         PR rtl-optimization/47525
9233         * df-scan.c: Update copyright years.
9234         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9235         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9237 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9239         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9240         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9241         (ASM_OUTPUT_ASCII): Remove.
9242         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9244 2011-02-02  Jeff Law  <law@redhat.com>
9246         PR middle-end/47543
9247         * reload.c (find_reloads_address): Handle reg+d address where both
9248         components are invalid by reloading the entire address.
9250 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9251             Richard Guenther  <rguenther@suse.de>
9253         PR tree-optimization/40979
9254         PR bootstrap/47044
9255         * passes.c (init_optimization_passes): After LIM call copy_prop
9256         and DCE to clean up.
9257         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9259 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9261         PR tree-optimization/47576
9262         PR tree-optimization/47555
9263         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9264         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9265         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9266         * tree-scalar-evolution.c (follow_ssa_edge): Use
9267         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9269 2011-02-02  Richard Guenther  <rguenther@suse.de>
9271         PR tree-optimization/47566
9272         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9274 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9276         PR debug/47106
9277         PR debug/47402
9278         * tree-inline.c (declare_return_variable): Remove unused caller
9279         variable.
9281         PR debug/47106
9282         PR debug/47402
9283         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9284         * cfgexpand.c (account_used_vars_for_block): Use them.
9285         * tree-nrv.c (tree_nrv): Likewise.
9286         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9287         (dump_scope_block): Likewise.
9288         (remove_unused_locals): Likewise.
9290         PR debug/47106
9291         PR debug/47402
9292         * tree-inline.c (declare_return_variable): Add result decl to
9293         local decls only once.
9294         * gimple-low.c (record_vars_into): Mark newly-created variables
9295         as referenced.
9297 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9299         PR debug/47498
9300         PR debug/47501
9301         PR debug/45136
9302         PR debug/45130
9303         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9304         debug insns.
9305         (no_real_insns_p, schedule_block, set_priorities): Drop special
9306         treatment of boundary debug insns.
9307         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9308         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9309         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9310         (BOUNDARY_DEBUG_INSN_P): Likewise.
9311         (SCHEDULE_DEBUG_INSN_P): Likewise.
9312         * sched-rgn.c (init_ready_list): Drop special treatment of
9313         boundary debug insns.
9314         * final.c (rest_of_clean_state): Clear notes' BB.
9316 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9318         * config/openbsd.opt (assert=): New Driver option.
9320 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9322         * config/i386/nto.opt: New.
9323         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9325 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9327         * config/i386/netware.opt: New.
9328         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9330 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9332         * config/interix.opt (posix): New Driver option.
9334 2011-02-01  DJ Delorie  <dj@redhat.com>
9336         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9338         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9339         class for A0/A1.
9341 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9343         PR tree-optimization/47561
9344         * toplev.c (process_options): Print the Graphite flags.  Add
9345         flag_loop_flatten to the list of options requiring Graphite.
9347 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9349         * config/i386/cygming.opt (posix): New Driver option.
9351 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9353         * config/arm/vxworks.opt: New.
9354         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9356 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9358         * config/alpha/elf.opt: New.
9359         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9360         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9362 2011-02-01  Richard Guenther  <rguenther@suse.de>
9364         PR tree-optimization/47559
9365         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9366         store-motion on references that can throw.
9368 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9370         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9371         * tree-pass.h (TDF_CSELIB): New macro.
9372         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9373         cselib_lookup): Check for it rather than for TDF_DETAILS.
9375 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9377         PR driver/47547
9378         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9379         is HOST_BIT_BUCKET.
9381         * opts.c (finish_options): Don't add x_aux_base_name if it is
9382         HOST_BIT_BUCKET.
9384 2011-02-01  Richard Guenther  <rguenther@suse.de>
9386         PR tree-optimization/47555
9387         Revert
9388         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9390         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9392 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9394         PR gcc/46692
9395         * config/lm32/t-lm32: Add multilib for all CPU options.
9397 2011-02-01  Richard Guenther  <rguenther@suse.de>
9399         PR tree-optimization/47541
9400         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9401         sure to have a field at offset zero.
9403 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9405         * config/arc/arc.opt (EB, EL): New Driver options.
9407 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9409         * config/alpha/osf5.opt: New.
9410         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9412 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9414         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9416 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9418         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9419         -floop-interchange.
9420         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9421         is an alias of -floop-interchange and that it requires the
9422         Graphite infrastructure.
9423         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9424         flag_loop_interchange based on the value of flag_tree_loop_linear.
9426 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9427             Richard Guenther  <rguenther@suse.de>
9429         PR tree-optimization/47538
9430         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9431         type instead of r1type, except for comparisons.  For right
9432         shifts and comparisons punt if there are mismatches in
9433         sizetype vs. non-sizetype types.
9435 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9437         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9438         avx_runtime.
9440 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9442         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9443         version number.
9444         * configure: Regenerate.
9446 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9448         * configure.ac (gcc_cv_ld_static_option): Define.
9449         (gcc_cv_ld_dynamic_option): Define.
9450         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9451         instead.
9452         (HAVE_LD_STATIC_DYNAMIC): Update message.
9453         (LD_STATIC_OPTION): Define.
9454         (LD_DYNAMIC_OPTION): Define.
9455         * configure: Regenerate.
9456         * config.in: Regenerate.
9457         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9458         HAVE_LD_STATIC_DYNAMIC]: Use them.
9460 2011-01-31  Nick Clifton  <nickc@redhat.com>
9462         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9463         registers inside interrupt handlers if the handler is not a leaf
9464         function.
9466 2011-01-31  Nick Clifton  <nickc@redhat.com>
9468         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9469         reg_renumber returning an INVALID_REGNUM.
9471 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9473         PR libgcj/44341
9474         * doc/install.texi: Document host options discarded when cross
9475         configuring target libraries.
9477 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9479         Reverted:
9480         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9481         PR debug/45136
9482         PR debug/45130
9483         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9484         debug insns.
9485         (no_real_insns_p, schedule_block, set_priorities): Drop special
9486         treatment of boundary debug insns.
9487         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9488         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9489         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9490         (BOUNDARY_DEBUG_INSN_P): Likewise.
9491         (SCHEDULE_DEBUG_INSN_P): Likewise.
9492         * sched-rgn.c (init_ready_list): Drop special treatment of
9493         boundary debug insns.
9494         * final.c (rest_of_clean-state): Clear notes' BB.
9496 2011-01-31  Alan Modra  <amodra@gmail.com>
9498         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9499         toc relative expressions as we do in print_operand_address.
9501 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9503         * doc/extend.texi: Follow spelling conventions.
9504         * doc/invoke.texi: Fix a typo.
9506 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9508         * config/hpux11.opt: New.
9509         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9510         ia64*-*-hpux*): Use hpux11.opt.
9512 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9514         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9515         to tmake_file.
9517 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9519         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9520         support sites.
9522 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9524         * doc/install.texi (Binaries): Remove outdated reference for
9525         Motorola 68HC11/68HC12 downloads.
9527 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9529         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9530         Drepper's paper.
9532 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9534         PR bootstrap/47147
9535         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9536         used by NetBSD.
9538 2011-01-28  Ahmad Sharif  <asharif@google.com>
9540         * value-prof.c (check_counter): Corrected error message.
9542 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9544         * config/arm/arm.c (arm_legitimize_reload_address): New.
9545         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9546         arm_legitimize_reload_address.
9547         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9549 2011-01-28  Ian Lance Taylor  <iant@google.com>
9551         * godump.c (go_define): Ignore macros whose definitions include
9552         two adjacent operands.
9554 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9556         PR target/42894
9557         * varasm.c (force_const_mem): Store copy of x in desc->constant
9558         instead of x itself.
9559         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9560         itself into REG_EQUAL note.
9562 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9564         * config/freebsd.opt (posix, rdynamic): New Driver options.
9566 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9568         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9569         -Bstatic/-Bdynamic.
9570         * configure: Regenerate.
9572 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9574         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9575         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9577 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9579         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9580         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9581         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9582         (s390_preferred_reload_class): Make static. Change return and
9583         'rclass' argument type to reg_class_t.
9585 2011-01-27  Jan Hubicka  <jh@suse.cz>
9587         PR middle-end/46949
9588         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9589         (process_function_and_variable_attributes): Check defined weakrefs.
9591 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9593         PR tree-optimization/47228
9594         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9595         build_ref_for_offset.
9597 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9599         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9601 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9603         PR rtl-optimization/46856
9604         * postreload.c (reload_combine_recognize_const_pattern): Do not
9605         separate cc0 setter and user on cc0 targets.
9607 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9609         PR c/43082
9610         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9611         passed a VOID_TYPE expression, immediately emit an error and
9612         return error_mark_node.
9614 2011-01-26  Jeff Law  <law@redhat.com>
9616         PR rtl-optimization/47464
9617         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9618         rather than may_trap_p as needed.
9620 2011-01-26  DJ Delorie  <dj@redhat.com>
9622         PR rtl-optimization/46878
9623         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9624         setter/user dependency as well.
9626 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9628         PR rtl-optimization/44469
9629         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9630         after removing trivially dead basic blocks.
9632 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9634         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9635         * config/frv/frv.h (LINK_SPEC): Likewise.
9636         * config/i386/netware.h (LINK_SPEC): Likewise.
9637         * config/m68k/linux.h (ASM_SPEC): Likewise.
9638         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9639         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9640         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9641         * config/sparc/linux.h (ASM_SPEC): Likewise.
9642         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9643         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9645 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9647         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9648         * config/frv/frv.h (ASM_SPEC): Likewise.
9649         * config/m68k/linux.h (ASM_SPEC): Likewise.
9650         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9651         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9652         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9653         * config/sparc/linux.h (ASM_SPEC): Likewise.
9654         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9655         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9657 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9659         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9660         * config/frv/frv.h (LINK_SPEC): Likewise.
9661         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9663 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9665         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9666         * config/frv/frv.h (ASM_SPEC): Likewise.
9667         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9668         * config/m68k/linux.h (ASM_SPEC): Likewise.
9669         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9670         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9671         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9672         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9673         * config/sparc/linux.h (ASM_SPEC): Likewise.
9674         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9675         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9676         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9678 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9680         PR target/46997
9681         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9682         (*mux2): Ditto.
9683         (vec_extract_evenodd_help): Ditto.
9684         (vec_extract_evenv4hi): Ditto.
9685         (vec_extract_oddv4hi): Ditto.
9686         (vec_interleave_lowv2si): Ditto.
9687         (vec_interleave_highv2si): Ditto.
9688         (vec_extract_evenv2si): Ditto.
9689         (vec_extract_oddv2si: Ditto.
9690         (vec_pack_trunc_v2si): Ditto.
9692 2011-01-22  Jan Hubicka  <jh@suse.cz>
9694         PR target/47237
9695         * cgraph.h (cgraph_local_info): New field can_change_signature.
9696         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9697         signature can change.
9698         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9699         can change.
9700         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9701         (cgraph_function_versioning): We can not change signature of functions
9702         that don't allow that.
9703         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9704         (lto_input_node): Likewise.
9705         * ipa-inline.c (compute_inline_parameters): Compute
9706         local.can_change_signature.
9707         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9708         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9709         functions that can not change signature.
9710         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9711         init_cumulative_args): Do not use local calling conventions
9712         for functions that can not change signature.
9714 2011-01-22  Jan Hubicka  <jh@suse.cz>
9716         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9718 2011-01-26  Richard Guenther  <rguenther@suse.de>
9720         PR tree-optimization/47190
9721         * cgraphunit.c (process_common_attributes): New function.
9722         (process_function_and_variable_attributes): Use it.
9724 2011-01-26  Richard Guenther  <rguenther@suse.de>
9726         PR lto/47423
9727         * cgraphbuild.c (record_eh_tables): Record reference to personality
9728         function.
9730 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9732         PR debug/45454
9733         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9734         non-debug insns from moving up.
9736 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9738         PR target/40125
9739         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9740         t-dlldir{,-x} fragment for build and add it to tmake_file.
9741         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9742         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9743         * config/i386/t-dlldir: New file.
9744         (SHLIB_DLLDIR): Define.
9745         * config/i386/t-dlldir-x: New file.
9746         (SHLIB_DLLDIR): Define.
9747         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9748         (SHLIB_INSTALL): Use it.
9750 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9752         PR target/47246
9753         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9754         lower bound of the allowed Thumb-2 coprocessor load/store
9755         index range to -256. Add explaining comment.
9757 2011-01-25  Ian Lance Taylor  <iant@google.com>
9759         * godump.c (go_define): Improve lexing of macro expansion to only
9760         accept expressions which match Go spec.
9762 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9764         PR c++/43601
9765         * tree.c (handle_dll_attribute): Handle it.
9766         * doc/extend.texi (@item dllexport): Mention it.
9767         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9769 2011-01-25  Ian Lance Taylor  <iant@google.com>
9771         PR tree-optimization/26854
9772         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9773         (decl_jump_unsafe): Move higher in file, with no other change.
9774         (bind): Set has_jump_unsafe_decl if appropriate.
9775         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9776         (check_earlier_gotos): Likewise.
9777         (c_check_switch_jump_warnings): Likewise.
9779 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9781         * doc/invoke.texi (Warning Options): Add missing hyphen.
9782         (-fprofile-dir): Minor grammatical fixes.
9783         (-fbranch-probabilities): Likewise.
9785 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9787         PR debug/45136
9788         PR debug/45130
9789         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9790         debug insns.
9791         (no_real_insns_p, schedule_block, set_priorities): Drop special
9792         treatment of boundary debug insns.
9793         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9794         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9795         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9796         (BOUNDARY_DEBUG_INSN_P): Likewise.
9797         (SCHEDULE_DEBUG_INSN_P): Likewise.
9798         * sched-rgn.c (init_ready_list): Drop special treatment of
9799         boundary debug insns.
9800         * final.c (rest_of_clean-state): Clear notes' BB.
9802 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9804         * Makefile.in (LAMBDA_H): Removed.
9805         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9806         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9807         lambda-trans.o, and tree-loop-linear.o.
9808         (lto-symtab.o): Remove dependence on LAMBDA_H.
9809         (tree-loop-linear.o): Remove rule.
9810         (lambda-mat.o): Same.
9811         (lambda-trans.o): Same.
9812         (lambda-code.o): Same.
9813         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9814         (tree-vect-slp.o): Same.
9815         * hwint.h (gcd): Moved here.
9816         (least_common_multiple): Same.
9817         * lambda-code.c: Removed.
9818         * lambda-mat.c: Removed.
9819         * lambda-trans.c: Removed.
9820         * lambda.h: Removed.
9821         * tree-loop-linear.c: Removed.
9822         * lto-symtab.c: Do not include lambda.h.
9823         * omega.c (gcd): Removed.
9824         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9825         * tree-data-ref.c (print_lambda_vector): Moved here.
9826         (lambda_vector_copy): Same.
9827         (lambda_matrix_copy): Same.
9828         (lambda_matrix_id): Same.
9829         (lambda_vector_first_nz): Same.
9830         (lambda_matrix_row_add): Same.
9831         (lambda_matrix_row_exchange): Same.
9832         (lambda_vector_mult_const): Same.
9833         (lambda_vector_negate): Same.
9834         (lambda_matrix_row_negate): Same.
9835         (lambda_vector_equal): Same.
9836         (lambda_matrix_right_hermite): Same.
9837         * tree-data-ref.h: Do not include lambda.h.
9838         (lambda_vector): Moved here.
9839         (lambda_matrix): Same.
9840         (dependence_level): Same.
9841         (lambda_transform_legal_p): Removed declaration.
9842         (lambda_collect_parameters): Same.
9843         (lambda_compute_access_matrices): Same.
9844         (lambda_vector_gcd): Same.
9845         (lambda_vector_new): Same.
9846         (lambda_vector_clear): Same.
9847         (lambda_vector_lexico_pos): Same.
9848         (lambda_vector_zerop): Same.
9849         (lambda_matrix_new): Same.
9850         * tree-flow.h (least_common_multiple): Removed declaration.
9851         * tree-parloops.c (lambda_trans_matrix): Moved here.
9852         (LTM_MATRIX): Same.
9853         (LTM_ROWSIZE): Same.
9854         (LTM_COLSIZE): Same.
9855         (LTM_DENOMINATOR): Same.
9856         (lambda_trans_matrix_new): Same.
9857         (lambda_matrix_vector_mult): Same.
9858         (lambda_transform_legal_p): Same.
9859         * tree-pass.h (pass_linear_transform): Removed declaration.
9860         * tree-ssa-loop.c (tree_linear_transform): Removed.
9861         (gate_tree_linear_transform): Removed.
9862         (pass_linear_transform): Removed.
9863         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9864         flag_loop_interchange.
9866 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9868         PR tree-optimization/47265
9869         PR tree-optimization/47443
9870         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9871         if name still has some uses.
9873 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9875         PR tree-optimization/47382
9876         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9877         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9879 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9881         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9882         sjlj_except_unwind_info.
9884 2011-01-25  Richard Guenther  <rguenther@suse.de>
9886         PR tree-optimization/47426
9887         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9888         visible functions results escape.
9890 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9892         PR target/45701
9893         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9894         (arm_get_frame_offsets): Use it.
9896 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9897             Jakub Jelinek  <jakub@redhat.com>
9899         PR tree-optimization/47271
9900         * tree-if-conv.c (bb_postdominates_preds): New.
9901         (if_convertible_bb_p): Call bb_postdominates_preds.
9902         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9903         (predicate_scalar_phi): Call bb_postdominates_preds.
9905 2011-01-25  Nick Clifton  <nickc@redhat.com>
9907         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9908         * config/rx/rx.c (rx_function_value): Likewise.
9909         (rx_promote_function_mode): Likewise.
9910         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9911         in order to make it legitimate.
9912         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9913         make sure that the first operand is the same as the result register.
9914         (addsi3_unspec): Delete.
9915         (subdi3): Do not accept immediate operands.
9916         (subdi3_internal): Likewise.
9918 2011-01-25  Jeff Law  <law@redhat.com>
9920         PR rtl-optimization/37273
9921         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9922         handle them like argument loads from stack slots.  Do not double
9923         count memory for memory constants and argument loads from stack slots.
9925 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9927         PR tree-optimization/47427
9928         PR tree-optimization/47428
9929         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9930         coalesce if the new root var would be TREE_READONLY.
9932 2011-01-25  Richard Guenther  <rguenther@suse.de>
9934         PR middle-end/47414
9935         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9936         correct type for TBAA.
9938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9940         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9941         (close_phi_written_to_memory): Call for_each_index with
9942         dr_indices_valid_in_loop.
9944 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9946         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9947         when it is initialized.
9949 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9951         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9952         call to graphite_find_data_references_in_stmt.
9953         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9954         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9955         call to graphite_find_data_references_in_stmt.
9956         (analyze_drs_in_stmts): Same.
9957         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9958         in which the scalar analysis of indices is performed.
9959         (create_data_ref): Same.  Update call to dr_analyze_indices.
9960         (find_data_references_in_stmt): Update call to create_data_ref.
9961         (graphite_find_data_references_in_stmt): Same.
9962         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9963         declaration.
9964         (create_data_ref): Same.
9965         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9966         call to create_data_ref.
9968 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9970         * graphite-sese-to-poly.c (build_poly_scop): Move
9971         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9973 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9975         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9976         VAR_DECL, PARM_DECL, and RESULT_DECL.
9978 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9980         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9981         in a reduction PBB.
9982         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9983         that have already been marked as PBB_IS_REDUCTION.
9985 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9987         * graphite-scop-detection.c (same_close_phi_node): New.
9988         (remove_duplicate_close_phi): New.
9989         (make_close_phi_nodes_unique): New.
9990         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9992 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9994         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9995         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9996         of both data references to be the same.
9998 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10000         * graphite-dependences.c (build_lexicographical_constraint): Remove
10001         the gdim parameter.
10002         (build_lexicographical_constraint): Adjust call to
10003         ppl_powerset_is_empty.
10004         (dependence_polyhedron): Same.
10005         (graphite_legal_transform_dr): Same.
10006         (graphite_carried_dependence_level_k): Same.
10007         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10008         parameter.
10009         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10011 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10013         * graphite-sese-to-poly.c
10014         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10015         (close_phi_written_to_memory): New.
10016         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10017         and unshare_expr.
10019 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10021         * doc/install.texi: Update the expected version number of PPL to 0.11.
10022         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10023         #if PPL_VERSION_MINOR < 11.
10025 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10027         * graphite-dependences.c: Include graphite-cloog-util.h.
10028         (new_poly_ddr): Inlined into dependence_polyhedron.
10029         (free_poly_ddr): Moved close by new_poly_ddr.
10030         (dependence_polyhedron_1): Renamed dependence_polyhedron.
10031         Early return NULL when ppl_powerset_is_empty returns true.
10032         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
10033         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
10034         (graphite_legal_transform_dr): Call new_poly_ddr.
10035         (graphite_carried_dependence_level_k): Same.
10036         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
10037         (dot_transformed_deps_stmt_1): Removed.
10038         (dot_deps_stmt_1): Call dot_deps_stmt_2.
10039         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
10040         (dot_deps_1): Call dot_deps_2.
10041         * Makefile.in (graphite-dependences.o): Add missing dependence on
10042         graphite-cloog-util.h.
10044 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10046         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10047         (build_lexicographical_constraint): Same.
10048         (dependence_polyhedron_1): Same.
10049         (graphite_legal_transform_dr): Same.
10050         (graphite_carried_dependence_level_k): Same.
10051         * graphite-ppl.c (ppl_powerset_is_empty): New.
10052         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10053         * tree-data-ref.c (dump_data_reference): Print the basic block index.
10055 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10057         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10058         the "a followed by b" relation and document it.
10060 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10062         * graphite-dependences.c (build_lexicographical_constraint): Stop the
10063         iteration when the bag of constraints is empty.
10065 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10067         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10069 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10071         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10072         nest and two loop depths as parameters.
10073         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10074         lst_perfect_nestify.
10076 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10078         * graphite-dependences.c (print_pddr): Call
10079         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10081 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
10083         * graphite-ppl.c (debug_gmp_value): New.
10084         * graphite-ppl.h (debug_gmp_value): Declared.
10086 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
10088         * doc/install.texi: Document availability of cloog-0.16.
10090 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
10092         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10093         invalid postdominance info.
10095 2011-01-24  Jan Hubicka  <jh@suse.cz>
10097         PR c/21659
10098         * doc/extend.texi (weak pragma): Drop claim that it must
10099         appear before definition.
10100         * varasm.c (merge_weak, declare_weak): Only sanity check
10101         that DECL is not output at a time it is declared weak.
10103 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
10105         * machmode.def: Fixed comments.
10107 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
10109         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10111 2011-01-24  Paul Koning  <ni1d@arrl.net>
10113         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10114         WORDS_BIG_ENDIAN.
10116 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10118         PR target/46519
10119         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10120         (block_info): Add scanned and prev.
10121         (move_or_delete_vzeroupper_2): Return if the basic block
10122         has been scanned and the upper 128bit state is unchanged
10123         from the last scan.
10124         (move_or_delete_vzeroupper_1): Return true if the exit
10125         state is changed.
10126         (move_or_delete_vzeroupper): Visit basic blocks using the
10127         work-list based algorithm based on vt_find_locations in
10128         var-tracking.c.
10130         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10132 2011-01-24  Nick Clifton  <nickc@redhat.com>
10134         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10135         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10136         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
10137         then define __v850e1__.
10138         * doc/invoke.texi: Document -mv850es.
10140 2011-01-24  Richard Henderson  <rth@redhat.com>
10142         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10143         compound unordered comparisons.
10144         * config/rx/rx.c (rx_split_fp_compare): Remove.
10145         * config/rx/rx-protos.h: Update.
10146         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10147         (cbranchsf4): Don't call rx_split_fp_compare.
10148         (*cbranchsf4): Use rx_split_cbranch.
10149         (*cmpsf): Don't accept "i" constraint.
10150         (*conditional_branch): Only valid after reload.
10151         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
10153 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10155         PR target/47385
10156         * config/rs6000/altivec.md (vector constant splitters): Add
10157         support for creating vector single precision constants if -mvsx is
10158         used and we would create the constant using Altivec primitives.
10160 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
10161             Richard Sandiford  <rdsandiford@googlemail.com>
10163         PR rtl-optimization/47166
10164         * reload1.c (emit_reload_insns): Disable the spill_reg_store
10165         mechanism for PRE_MODIFY and POST_MODIFY.
10166         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10167         reloadreg.
10169 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
10171         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10173 2011-01-22  Jan Hubicka  <jh@suse.cz>
10175         PR lto/47333
10176         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10178 2011-01-22  Jan Hubicka  <jh@suse.cz>
10180         PR tree-optimization/43884
10181         PR lto/44334
10182         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10183         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10185 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
10187         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10188         * config/s390/s390.c (s390_register_move_cost,
10189         s390_memory_move_cost): New.
10190         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10192 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10194         PR middle-end/47401
10195         * except.c (sjlj_assign_call_site_values): Move setting the
10196         crtl->uses_eh_lsda flag to ...
10197         (sjlj_mark_call_sites): ... here.
10198         (sjlj_emit_function_enter): Support NULL dispatch label.
10199         (sjlj_build_landing_pads): In a function with no landing pads
10200         that still has must-not-throw regions, generate code to register
10201         a personality function with empty LSDA.
10203 2011-01-21  Richard Henderson  <rth@redhat.com>
10205         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10207         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10209         * compare-elim.c: New file.
10210         * Makefile.in (OBJS-common): Add it.
10211         (compare-elim.o): New.
10212         * common.opt (fcompare-elim): New.
10213         * opts.c (default_options_table): Add OPT_fcompare_elim.
10214         * tree-pass.h (pass_compare_elim_after_reload): New.
10215         * passes.c (init_optimization_passes): Add it.
10216         * recog.h: Protect against re-inclusion.
10217         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10218         * doc/invoke.texi (-fcompare-elim): Document it.
10219         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10220         * doc/tm.texi: Rebuild.
10222 2011-01-22  Nick Clifton  <nickc@redhat.com>
10224         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10225         rx_split_fp_compare.
10227 2011-01-22  Nick Clifton  <nickc@redhat.com>
10229         * config/rx/rx.md (UNSPEC_CONST): New.
10230         (deallocate_and_return): Wrap the amount popped off the stack in
10231         an UNSPEC_CONST in order to stop it being rejected by
10232         -mmax-constant-size.
10233         (pop_and_return): Add a "(return)" rtx.
10234         (call): Drop the immediate operand.
10235         (call_internal): Likewise.
10236         (call_value): Likewise.
10237         (call_value_internal): Likewise.
10238         (sibcall_internal): Likewise.
10239         (sibcall_value_internal): Likewise.
10240         (sibcall): Likewise.  Generate an explicit call using
10241         sibcall_internal.
10242         (sibcall_value): Likewise.
10243         (mov<>): FAIL if a constant operand is not legitimate.
10244         (addsi3_unpsec): New pattern.
10246         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10247         (ok_for_max_constant): New function.
10248         (gen_safe_add): New function.
10249         (rx_expand_prologue): Use gen_safe_add.
10250         (rx_expand_epilogue): Likewise.
10251         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10252         UNSPEC CONSTs.
10254 2011-01-21  Jeff Law  <law@redhat.com>
10256         PR tree-optimization/47053
10257         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10258         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10259         statements are deleted.
10260         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10261         is nonempty, then purge dead edges and cleanup the CFG.
10263 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10265         PR debug/47402
10266         Temporarily revert:
10267         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10268         PR debug/47106
10269         * tree-dfa.c (create_var_ann): Mark variable as used.
10271 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10273         PR middle-end/45566
10274         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10275         notes from other section in hot/cold partitioning even if
10276         last_action is -3.  Increment call_site_base.
10278         PR rtl-optimization/47366
10279         * fwprop.c (forward_propagate_into): Return bool.  If
10280         any changes are made, -fnon-call-exceptions is used and
10281         REG_EH_REGION note is present, call purge_dead_edges
10282         and return true if it purged anything.
10283         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10284         any EH edges were purged.
10286 2011-01-21  Jeff Law  <law@redhat.com>
10288         PR rtl-optimization/41619
10289         * caller-save.c (setup_save_areas): Break out code to determine
10290         which hard regs are live across calls by examining the reload chains
10291         so that it is always used.
10292         Eliminate code which checked REG_N_CALLS_CROSSED.
10294 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10296         PR tree-optimization/47355
10297         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10298         NOP has non-debug uses beyond PHIs in new_bb.
10300 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10302         PR debug/47106
10303         * cfgexpand.c (account_used_vars_for_block): Only account vars
10304         that are annotated as used.
10305         (estimated_stack_frame_size): Don't set TREE_USED.
10306         * tree-dfa.c (create_var_ann): Mark variable as used.
10308 2011-01-21  Richard Guenther  <rguenther@suse.de>
10310         PR middle-end/47395
10311         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10313 2011-01-21  Richard Guenther  <rguenther@suse.de>
10315         PR tree-optimization/47365
10316         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10317         (vn_reference_lookup_pieces): Adjust.
10318         (vn_reference_lookup): Likewise.
10319         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10320         (vn_reference_lookup_3): Only look through kills if in
10321         VN_WALKREWRITE mode.
10322         (vn_reference_lookup_pieces): Adjust.
10323         (vn_reference_lookup): Likewise.
10324         (visit_reference_op_load): Likewise.
10325         (visit_reference_op_store): Likewise.
10326         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10327         (compute_avail): Likewise.
10328         (eliminate): Likewise.
10330 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10332         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10333         DECL_IGNORED_P non-reg vars if they are used.
10335         PR tree-optimization/47391
10336         * varpool.c (const_value_known_p): Return false if
10337         decl is volatile.
10339 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10341         PR bootstrap/47215
10342         * config/i386/i386.c (ix86_local_alignment): Handle
10343         case for va_list_type_node is nil.
10344         (ix86_canonical_va_list_type): Likewise.
10346 2011-01-21  Alan Modra  <amodra@gmail.com>
10348         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10349         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10351 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10353         * config/arm/arm.md (define_attr type): Rename f_load
10354         and f_store to f_fpa_load and f_fpa_store. Update.
10355         (write_conflict): Deal with rename fallout.
10356         (*push_fp_multi): Likewise.
10357         * config/arm/fpa.md (f_load): Use f_fpa_load.
10358         (f_store): Use f_fpa_store.
10359         (*movsf_fpa): Likewise.
10360         (*movdf_fpa): Likewise.
10361         (*movxf_fpa): Likewise.
10362         (*thumb2_movsf_fpa): Likewise.
10363         (*thumb2_movdf_fpa): Likewise.
10364         (*thumb2_movxf_fpa): Likewise.
10365         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10366         f_loadd and f_stored.
10367         (*thumb2_movdi_vfp): Likewise.
10368         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10369         (*thumb2_movsi_vfp): Likewise.
10370         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10371         Use f_loads instead of f_load.
10372         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10374 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10376         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10377         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10378         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10379         (xtensa_mode_dependent_address_p): New function.
10380         (constantpool_address_p): Make static. Change return type to bool.
10381         Change argument type to const_rtx. Use CONST_INT_P predicate.
10383 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10385         PR debug/46583
10386         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10388 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10390         PR debug/47283
10391         * cfgexpand.c (expand_debug_expr): Instead of generating
10392         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10393         etc. handling.
10395 2011-01-20  Richard Guenther  <rguenther@suse.de>
10397         PR middle-end/47370
10398         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10399         the pointer operand of MEM_REFs.
10401 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10403         PR tree-optimization/46130
10404         * ipa-split.c (consider_split): If return_bb contains non-virtual
10405         PHIs other than for retval or if split_function would not adjust it,
10406         refuse to split.
10408 2011-01-20  Richard Guenther  <rguenther@suse.de>
10410         PR tree-optimization/47167
10411         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10412         Revert previous change, only avoid enumeral type changes.
10414 2011-01-19  Mike Stump  <mikestump@comcast.net>
10416         * doc/tm.texi.in (BRANCH_COST): Englishify.
10417         * doc/tm.texi (BRANCH_COST): Likewise.
10419 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10421         PR c++/47291
10422         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10423         (gen_scheduled_generic_parms_dies): New functions.
10424         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10425         generation for the end of CU compilation.
10426         (dwarf2out_finish): Generate template parameters DIEs here.
10428 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10430         PR debug/46240
10431         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10432         debug bind stmt on merge edges.
10434 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10436         PR debug/47079
10437         PR debug/46724
10438         * function.c (instantiate_expr): Instantiate incoming rtl of
10439         implicit arguments, and recurse on VALUE_EXPRs.
10440         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10441         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10443 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10445         * c-parser.c (c_parser_for_statement): Initialize
10446         collection_expression.
10448 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10450         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10452 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10454         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10455         (LINK_SHLIB_SPEC): Don't use %(link_path).
10456         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10458 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10460         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10461         (NO_SHARED_LIB_SUPPORT): Remove.
10462         (LINK_SHLIB_SPEC): Remove one conditional definition.
10464 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10466         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10467         %{call_shared}.
10468         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10469         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10470         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10471         %{call_shared} and conditionals on these options not being passed.
10472         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10473         %{call_shared}.
10475 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10477         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10478         simplify.
10480         * ipa-split.c: Spelling fixes.
10482 2011-01-19  Richard Henderson  <rth@redhat.com>
10484         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10485         (*mulsi3): Likewise.
10487         * longlong.h [__mn10300__] (count_leading_zeros): New.
10488         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10489         [__mn10300__] (add_ssaaaa, subddmmss): New.
10490         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10491         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10493 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10495         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10497 2011-01-19  Richard Henderson  <rth@redhat.com>
10499         * config/mn10300/mn10300.md (addsi3_flags): New.
10500         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10501         (subsi3_flags, subc_internal, subdi3): New.
10502         (subdi3_internal, *subdi3_degenerate): New.
10503         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10505         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10506         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10507         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10508         * config/mn10300/mn10300-protos.h: Update.
10509         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10510         (return_ret): Likewise.  Rename from return_internal_regs.
10511         (return_internal): Remove.
10513         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10514         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10515         (mn10300_legitimate_constant_p): Likewise.
10516         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10517         (mn10300_frame_size): New.
10518         (mn10300_expand_prologue): Use it.
10519         (mn10300_expand_epilogue): Likewise.
10520         (mn10300_initial_offset): Likewise.
10521         * config/mn10300/mn10300-protos.h: Update.
10522         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10523         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10524         (prologue, epilogue, return_internal): Tidy output code.
10525         (mn10300_store_multiple_operation, return): Likewise.
10526         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10527         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10528         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10529         (load_pic, am33_load_pic): New.
10530         (mn10300_load_pic0, mn10300_load_pic1): New.
10532         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10533         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10534         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10535         (cc_flags_for_mode, cc_flags_for_code): New.
10536         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10537         overflow flag is not valid.  Validate that the flags we need
10538         for the comparison are valid.
10539         (mn10300_output_cmp): Remove.
10540         (mn10300_output_add): New.
10541         (mn10300_select_cc_mode): Use cc_flags_for_code.
10542         (mn10300_split_cbranch): New.
10543         (mn10300_match_ccmode): New.
10544         (mn10300_split_and_operand_count): New.
10545         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10546         to the function.
10547         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10548         (addsi3): ... here.  Use mn10300_output_add.
10549         (*addsi3_flags): New.
10550         (*am33_subsi3, *mn10300_subsi3): Merge...
10551         (subsi3): ... here.  Use attribute isa.
10552         (*subsi3_flags): New.
10553         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10554         when possible.
10555         (*am33_andsi3, *mn10300_andsi3): Merge...
10556         (andsi3): ... here.
10557         (*andsi3_flags): New.
10558         (andsi3 splitters): New.
10559         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10560         (iorsi3): ... here.
10561         (*iorsi3_flags): New.
10562         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10563         (xorsi3): ... here.
10564         (*xorsi3_flags): New.
10565         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10566         (one_cmplsi2): ... here.
10567         (*one_cmplsi2_flags): New.
10568         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10569         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10570         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10571         use matching constraints to eliminate a self-comparison.
10572         (*integer_conditional_branch): Rename from integer_conditional_branch.
10573         Use int_mode_flags to match CC_REG.
10574         (*cbranchsi4_btst, *btstsi): New.
10575         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10576         mn10300_split_cbranch.
10577         (*am33_cmpsf): Rename from am33_cmpsf.
10578         (*float_conditional_branch): Rename from float_conditional_branch.
10579         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10580         (zero_extendqisi2): ... here.
10581         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10582         (zero_extendhisi2): ... here.
10583         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10584         (extendqisi2): ... here.
10585         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10586         (extendhisi2): ... here.
10587         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10588         (ashlsi3): ... here.
10589         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10590         (lshrsi3): ... here.
10591         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10592         (ashrsi3): ... here.
10593         (consecutive add peephole): Remove.
10594         * config/mn10300/predicates.md (label_ref_operand): New.
10595         (int_mode_flags): New.
10596         (CCZN_comparison_operator): New.
10598         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10599         (throughput_42_latency_43): New reservation.
10600         (mulsidi3, umulsidi3): New expanders.
10601         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10602         the MDR register to allocation; separately allocate the low and
10603         high parts of the DImode result.
10604         (umulsidi3_internal): Similarly.
10605         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10606         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10607         (udivsi3, umodsi3): Remove.
10608         (udivmodsi4, divmodsi4): New expanders.
10609         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10610         (*divmodsi4): Simiarly.
10611         (ext_internal): New.
10613         * config/mn10300/constraints.md ("z"): New constraint.
10614         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10615         (FIXED_REGISTERS): Don't fix MDR.
10616         (CALL_USED_REGSITERS): Reformat nicely.
10617         (REG_ALLOC_ORDER): Add MDR.
10618         (enum regclass): Add MDR_REGS.
10619         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10620         (IRA_COVER_CLASSES): Add MDR_REGS.
10621         (REGNO_REG_CLASS): Handle MDR_REG.
10622         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10623         (mn10300_register_move_cost): Likewise.
10624         * config/mn10300/mn10300.md (MDR_REG): New.
10625         (*movsi_internal): Handle moves to/from MDR_REGS.
10627         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10628         POST_MODIFY.
10629         (mn10300_secondary_reload): Tidy combination reload classes.
10630         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10631         addresses for AM33.  Allow symbolic offsets for reg+imm.
10632         (mn10300_regno_in_class_p): New.
10633         (mn10300_legitimize_reload_address): New.
10634         * config/mn10300/mn10300.h (enum reg_class): Remove
10635         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10636         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10637         SP_OR_GENERAL_REGS.
10638         (REG_CLASS_NAMES): Update to match.
10639         (REG_CLASS_CONTENTS): Likewise.
10640         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10641         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10642         (REGNO_IN_RANGE_P): Remove.
10643         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10644         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10645         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10646         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10647         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10648         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10649         (REGNO_GENERAL_P): New.
10650         (HAVE_POST_MODIFY_DISP): New.
10651         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10652         (LEGITIMIZE_RELOAD_ADDRESS): New.
10653         * config/mn10300/mn10300-protos.h: Update.
10655         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10656         DATA_REGS for AM33 stack-pointer destination.
10657         (mn10300_preferred_output_reload_class): Likewise.
10658         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10659         into a form appropriate for ...
10660         (TARGET_SECONDARY_RELOAD): New.
10661         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10662         * config/mn10300/mn10300-protos.h: Update.
10663         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10664         reload_insi; use the "A" constraint for the scratch; handle AM33
10665         moves of sp to non-address registers.
10667         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10668         (*movqi_internal): ... here.
10669         (*am33_movhi, *mn10300_movhi): Merge into...
10670         (*movhi_internal): ... here.
10671         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10672         as the source/destination of moves from/to SP.
10673         (movsf): Only allow for AM33-2.
10674         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10675         any integer constant constraint.  Only allow for AM33-2.  Tidy
10676         all of the alternative outputs.
10677         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10678         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10679         for MN103.
10680         (udivsi3, umodsi3): New patterns for MN103 only.
10682 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10684         * doc/tm.texi.in: Spell out that a lack of register class unions
10685         can lead to ICEs.
10686         * doc/tm.texi: Regenerate.
10688 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10690         PR rtl-optimization/47337
10691         * dce.c (check_argument_store): New function.
10692         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10694         PR tree-optimization/47290
10695         * tree-eh.c (infinite_empty_loop_p): New function.
10696         (cleanup_empty_eh): Use it.
10698 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10700         PR target/46997
10701         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10702         (a64_expand_widen_sum): Ditto.
10703         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10704         (vec_extract_evenodd_help): Ditto.
10705         (vec_extract_evenv4hi): Ditto.
10706         (vec_extract_oddv4hi): Ditto.
10707         (vec_extract_evenv2si): Ditto.
10708         (vec_extract_oddv2si): Ditto.
10709         (vec_extract_evenv2sf): Ditto.
10710         (vec_extract_oddv2sf): Ditto.
10711         (vec_pack_trunc_v4hi: Ditto.
10712         (vec_pack_trunc_v2si): Ditto.
10713         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10714         (vec_interleave_highv8qi): Ditto.
10715         (mix1_r): Ditto.
10716         (vec_extract_oddv8qi): Ditto.
10717         (vec_interleave_lowv4hi): Ditto.
10718         (vec_interleave_highv4hi): Ditto.
10719         (vec_interleave_lowv2si): Ditto.
10720         (vec_interleave_highv2si): Ditto.
10722 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10724         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10725         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10726         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10727         (pa_c_mode_for_suffix): New.
10728         (TARGET_EXPAND_BUILTIN): Define.
10729         (TARGET_C_MODE_FOR_SUFFIX): Define.
10730         (pa_builtins): Define.
10731         (pa_init_builtins): Register __float128 type and init new support
10732         builtins.
10733         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10734         * config/pa/quadlib.c (_U_Qfcopysign): New.
10736 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10738         PR middle-end/46894
10739         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10740         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10741         are defined.
10743 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10745         PR tree-optimization/47179
10746         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10747         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10749 2011-01-18  Richard Guenther  <rguenther@suse.de>
10751         PR rtl-optimization/47216
10752         * emit-rtl.c: Include tree-flow.h.
10753         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10754         of replicating it with different semantics.
10755         * Makefile.in (emit-rtl.o): Adjust.
10757 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10759         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10760         (cortex_a9_dp): Handle neon types correctly.
10762 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10764         PR rtl-optimization/47299
10765         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10766         subtarget.  Use normal multiplication if both operands are constants.
10767         * expmed.c (expand_widening_mult): Don't try to optimize constant
10768         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10769         before using it.
10771 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10773         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10774         spacing after 'e.g.', typos, comma, hyphenation.
10776 2011-01-17  Richard Henderson  <rth@redhat.com>
10778         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10779         (rx_restricted_mem_operand): New.
10780         (rx_shift_operand): Use register_operand.
10781         (rx_source_operand, rx_compare_operand): Likewise.
10782         * config/rx/rx.md (addsi3_flags): New expander.
10783         (adddi3): Rewrite as expander.
10784         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10785         (subsi3_flags): New expander.
10786         (subdi3): Rewrite as expander.
10787         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10789         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10790         (rx_init_builtins): Remove sat builtin.
10791         (rx_expand_builtin): Likewise.
10792         * config/rx/rx.md (ssaddsi3): New.
10793         (*sat): Rename from sat.  Represent the CC_REG input.
10795         * config/rx/predicates.md (rshift_operator): New.
10796         * config/rx/rx.c (rx_expand_insv): Remove.
10797         * config/rx/rx-protos.h: Update.
10798         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10799         operand to the canonical position.
10800         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10801         (*bitclr, *bitclr_in_memory): Similarly.
10802         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10803         (insv): Retain the zero_extract in the expansion.
10805         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10806         (bswaphi2, bitinvert, revw): Likewise.
10808         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10809         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10810         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10811         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10812         (bitset, bitset_in_memory): Likewise.
10813         (bitinvert, bitinvert_in_memory): Likewise.
10814         (bitclr, bitclr_in_memory): Likewise.
10815         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10816         (rx_strend, rx_cmpstrn): Likewise.
10817         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10818         (bitop peep2 patterns): Remove.
10820         * config/rx/rx.c (rx_match_ccmode): New.
10821         * config/rx/rx-protos.h: Update.
10822         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10823         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10824         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10825         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10826         (fix_truncsfsi2, floatsisf2): Likewise.
10827         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10828         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10829         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10830         (*subsi3_flags, *xorsi3_flags): New.
10832         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10834         * config/rx/rx.c (rx_print_operand): Remove workaround for
10835         unsplit comparison operations.
10837         * config/rx/rx.md (movsicc): Split after reload.
10838         (*movsicc): Merge *movsieq and *movsine via match_operator.
10839         (*stcc): New pattern.
10841         * config/rx/rx.c (rx_float_compare_mode): Remove.
10842         * config/rx/rx.h (rx_float_compare_mode): Remove.
10843         * config/rx/rx.md (cstoresi4): Split after reload.
10844         (*sccc): New pattern.
10846         * config/rx/predicates.md (label_ref_operand): New.
10847         (rx_z_comparison_operator): New.
10848         (rx_zs_comparison_operator): New.
10849         (rx_fp_comparison_operator): New.
10850         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10851         Validate that the flags are set properly for the comparison.
10852         (rx_gen_cond_branch_template): Remove.
10853         (rx_cc_modes_compatible): Remove.
10854         (mode_from_flags): New.
10855         (flags_from_code): Rename from flags_needed_for_conditional.
10856         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10857         (rx_select_cc_mode): Likewise.
10858         (rx_split_fp_compare): New.
10859         (rx_split_cbranch): New.
10860         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10861         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10862         (*cbranchsf4): Similarly.
10863         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10864         match_operator and rx_split_cbranch.
10865         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10866         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10867         (*cmpsi): Rename from cmpsi.
10868         (*tstsi): Rename from tstsi.
10869         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10870         (*conditional_branch): Rename from conditional_branch.
10871         (*reveresed_conditional_branch): Remove.
10872         (b<code>): Remove expander.
10873         * config/rx/rx-protos.h: Update.
10875         * config/rx/rx.c (rx_compare_redundant): Remove.
10876         * config/rx/rx.md (cmpsi): Don't use it.
10877         * config/rx/rx-protos.h: Update.
10879         * config/rx/rx-modes.def (CC_F): New mode.
10880         * config/rx/rx.c (rx_select_cc_mode): New.
10881         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10882         * config/rx/rx-protos.h: Update.
10884 2011-01-17  Richard Henderson  <rth@redhat.com>
10886         * except.c (dump_eh_tree): Fix stray ; after for statement.
10888 2011-01-17  Richard Guenther  <rguenther@suse.de>
10890         PR tree-optimization/47313
10891         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10892         handling before copying the body.  Properly deal with
10893         by-reference result in SSA form.
10895 2011-01-17  Ian Lance Taylor  <iant@google.com>
10897         PR target/47219
10898         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10899         (struct_value_alias_set): Don't define.
10900         (sparc_option_override): Don't set sparc_sr_alias_set and
10901         struct_value_alias_set.
10902         (save_or_restore_regs): Use gen_frame_mem rather than calling
10903         set_mem_alias_set.
10904         (sparc_struct_value_rtx): Likewise.
10906 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10908         PR target/47318
10909         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10910         (_mm_maskstore_pd): Likewise.
10911         (_mm_maskload_ps): Likewise.
10912         (_mm_maskstore_ps): Likewise.
10913         (_mm256_maskload_pd): Change mask to __m256i.
10914         (_mm256_maskstore_pd): Likewise.
10915         (_mm256_maskload_ps): Likewise.
10916         (_mm256_maskstore_ps): Likewise.
10918         * config/i386/i386-builtin-types.def: Updated.
10919         (ix86_expand_special_args_builtin): Likewise.
10921         * config/i386/i386.c (bdesc_special_args): Update
10922         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10923         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10924         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10925         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10927         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10928         Use <avxpermvecmode> on mask register.
10929         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10931 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10932             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10933             Eric Botcazou  <ebotcazou@adacore.com>
10935         PR target/46655
10936         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10937         if <= USHRT_MAX in 32-bit mode.
10939 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10941         * doc/install.texi (Configuration, Specific): Wrap long
10942         lines in examples.  Allow line wrapping in long options
10943         and URLs where beneficial for PDF output.
10945 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10947         * config/mips/mips.c (mips_classify_symbol): Don't return
10948         SYMBOL_PC_RELATIVE for nonlocal labels.
10950 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10952         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10954 2011-01-15  Jan Hubicka  <jh@suse.cz>
10956         PR tree-optimization/47276
10957         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10958         declarations as needed.
10960 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10962         * common.opt (fdevirtualize): New flag.
10963         * doc/invoke.texi (Option Summary): Document it.
10964         * opts.c (default_options_table): Add devirtualize flag.
10965         * ipa-prop.c (detect_type_change): Return immediately if
10966         devirtualize flag is not set.
10967         (detect_type_change_ssa): Likewise.
10968         (compute_known_type_jump_func): Likewise.
10969         (ipa_analyze_virtual_call_uses): Likewise.
10971 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10973         PR tree-optimization/45934
10974         PR tree-optimization/46302
10975         * ipa-prop.c (type_change_info): New type.
10976         (stmt_may_be_vtbl_ptr_store): New function.
10977         (check_stmt_for_type_change): Likewise.
10978         (detect_type_change): Likewise.
10979         (detect_type_change_ssa): Likewise.
10980         (compute_complex_assign_jump_func): Check for dynamic type change.
10981         (compute_complex_ancestor_jump_func): Likewise.
10982         (compute_known_type_jump_func): Likewise.
10983         (compute_scalar_jump_functions): Likewise.
10984         (ipa_analyze_virtual_call_uses): Likewise.
10985         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10987 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10989         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10990         * config/i386/i386.opt (msse5): New Alias.
10992 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10994         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10995         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10996         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10997         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10999 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11001         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11002         -mcpu options.
11003         * config/sparc/linux64.h (CC1_SPEC): Likewise.
11004         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11005         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11006         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11007         Likewise.
11008         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11010 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11012         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
11014 2011-01-14  Mike Stump  <mikestump@comcast.net>
11016         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11017         * config/fr30/fr30.md: Likweise
11018         (movsi_push): Likewise.
11019         (movsi_pop): Likewise.
11020         (enter_func): Likewise.
11021         * config/moxie/moxie.md (movsi_push): Likewise.
11022         (movsi_pop): Likewise.
11024 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11026         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11027         %{no_archive} %{exact_version}.
11028         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11029         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11030         %{no_archive} %{exact_version}.
11031         * config/mips/openbsd.h (LINK_SPEC): Likewise.
11032         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11033         * config/mips/vxworks.h: Likewise.
11035 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11037         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
11039 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11041         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11042         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11044 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11046         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11047         -nodefaultlib.
11049 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11051         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11052         for mcpu not cpu.
11053         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11054         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11055         not cpu.
11056         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11057         Don't handle -shlib.
11059 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11061         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11062         (CC1_SPEC): Don't handle -profile.
11064 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11066         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11067         * config/mips/mips.h (CC1_SPEC): Likewise.
11069 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11071         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11072         * config/mips/mips.h (CC1_SPEC): Likewise.
11074 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11076         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11077         * config/m32r/linux.h (LINK_SPEC): Likewise.
11078         * config/mips/linux.h (LINK_SPEC): Likewise.
11079         * config/mips/linux64.h (LINK_SPEC): Likewise.
11080         * config/sparc/linux.h (LINK_SPEC): Likewise.
11081         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11082         LINK_SPEC): Likewise.
11083         * config/xtensa/linux.h (LINK_SPEC): Likewise.
11085 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11087         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11088         %{version:-v}.
11089         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11091 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11093         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11094         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11096 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11098         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11100 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11102         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11103         supports -Bstatic/-Bdynamic.
11104         * configure: Regenerate.
11106 2011-01-14  Jan Hubicka  <jh@suse.cz>
11107             Jack Howarth  <howarth@bromo.med.uc.edu>
11109         PR target/46037
11110         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11111         when checking debug_info_level. Test write_symbols instead of
11112         debug_hooks->var_location when setting flag_var_tracking_uninit.
11114 2011-01-14  Richard Guenther  <rguenther@suse.de>
11116         PR tree-optimization/47179
11117         * target.def (ref_may_alias_errno): New target hook.
11118         * targhooks.h (default_ref_may_alias_errno): Declare.
11119         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11120         (default_ref_may_alias_errno): New function.
11121         * target.h (struct ao_ref_s): Declare.
11122         * tree-ssa-alias.c: Include target.h.
11123         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11124         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11125         (targhooks.o): Likewise.
11126         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11127         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11129 2011-01-14  Richard Guenther  <rguenther@suse.de>
11131         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
11133 2011-01-14  Richard Guenther  <rguenther@suse.de>
11135         PR tree-optimization/47280
11136         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11137         return CFG changes.
11138         (tree_ssa_forward_propagate_single_use_vars): Deal with
11139         CFG changes from associate_plusminus.
11141 2011-01-14  Richard Guenther  <rguenther@suse.de>
11143         PR middle-end/47281
11144         Revert
11145         2011-01-11  Richard Guenther  <rguenther@suse.de>
11147         PR tree-optimization/46076
11148         * tree-ssa.c (useless_type_conversion_p): Conversions from
11149         unprototyped to empty argument list function types are useless.
11151 2011-01-14  Richard Guenther  <rguenther@suse.de>
11153         PR tree-optimization/47286
11154         * tree-ssa-structalias.c (new_var_info): Register variables are global.
11156 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11158         PR middle-end/46823
11159         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11161 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
11163         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11164         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11165         * config/xtensa/xtensa.c (xtensa_libcall_value,
11166         xtensa_function_value_regno_p): New functions.
11167         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11169 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
11171         PR c++/47213
11172         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11173         PE specific hook.
11174         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11175         New function prototype.
11176         * config/i386/winnt.c (i386_pe_assemble_visibility):
11177         Warn only if attribute was specified by user.
11179 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11181         PR target/47251
11182         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11183         floating point.
11184         (floatunsdidf2_fcfidu): Ditto.
11186 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11188         * config/s390/s390.c (print_operand_address): Replace 'error' with
11189         'output_operand_lossage'.
11190         (print_operand): Likewise.
11192 2011-01-13  Jeff Law  <law@redhat.com>
11194         PR rtl-optimization/39077
11195         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11196         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11197         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11198         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11199         * gcse.c (prune_insertions_deletions): New function.
11200         (compute_pre_data): Use it.
11202 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
11204         PR debug/PR46973
11205         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11206         static function.
11207         (prune_unused_types_mark): Use it.
11209 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
11211         PR rtl-optimization/45352
11212         * sel-sched.c: Update copyright years.
11213         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11214         in the advancing loop when we have issued issue_rate insns.
11216 2011-01-12  Richard Henderson  <rth@redhat.com>
11218         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11219         (TARGET_MD_ASM_CLOBBERS): New.
11221         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11222         (TARGET_DELEGITIMIZE_ADDRESS): New.
11224         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11225         (clzsi2, *bsch): New patterns.
11227         * config/mn10300/mn10300.md (INT): New mode iterator.
11228         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11230         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11231         flag_split_wide_types.
11233         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11234         (mn10300_trampoline_init): Rewrite without a template, an immediate
11235         load and a direct branch.
11236         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11238 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11240         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11241         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11242         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11243         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11245 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11247         PR debug/47209
11248         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11249         of type.
11251 2011-01-12  Jan Hubicka  <jh@suse.cz>
11253         PR driver/47244
11254         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11255         (PLUGIN_COND_CLOSE): New macro.
11256         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11258 2011-01-12  Richard Guenther  <rguenther@suse.de>
11260         PR lto/47259
11261         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11262         register variables in a MEM_REF.
11264 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11266         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11267         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11268         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11269         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11270         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11271         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11272         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11273         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11274         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11275         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11276         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11277         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11278         * config/gnu-user.h: New.  Copied from linux.h.
11279         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11280         GNU_USER_TARGET_STARTFILE_SPEC.
11281         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11282         GNU_USER_TARGET_ENDFILE_SPEC.
11283         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11284         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11285         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11286         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11287         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11288         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11289         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11290         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11291         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11292         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11293         * config/arm/linux-eabi.h (CC1_SPEC): Use
11294         GNU_USER_TARGET_CC1_SPEC.
11295         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11296         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11297         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11298         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11299         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11300         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11301         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11302         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11304 2011-01-12  Richard Guenther  <rguenther@suse.de>
11306         PR other/46946
11307         * doc/invoke.texi (ffast-math): Document it is turned on
11308         with -Ofast.
11310 2011-01-12  Jan Hubicka  <jh@suse.cz>
11312         PR tree-optimization/47233
11313         * opts.c (common_handle_option): Disable ipa-reference with profile
11314         feedback.
11316 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11318         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11319         error message.
11321 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11323         * c-parser.c (c_lex_one_token): Updated and reindented some
11324         comments.  No changes in code.
11326 2011-01-11  Ian Lance Taylor  <iant@google.com>
11328         * godump.c (go_output_var): Don't output the variable if there is
11329         already a type with the same name.
11331 2011-01-11  Ian Lance Taylor  <iant@google.com>
11333         * godump.c (go_format_type): Don't generate float80.
11335 2011-01-11  Richard Henderson  <rth@redhat.com>
11337         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11338         declaration.  Rewrite for both speed and size.
11339         (mn10300_address_cost_1): Remove.
11340         (mn10300_register_move_cost): New.
11341         (mn10300_memory_move_cost): New.
11342         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11343         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11344         extensions, shifts, BSWAP, CLZ.
11345         (mn10300_wide_const_load_uses_clr): Remove.
11346         (TARGET_REGISTER_MOVE_COST): New.
11347         (TARGET_MEMORY_MOVE_COST): New.
11348         * config/mn10300/mn10300-protos.h: Update.
11349         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11351         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11352         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11353         * config/mn10300/mn10300-protos.h: Update.
11354         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11355         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11356         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11357         (*test_int_bitfield, *test_byte_bitfield): Remove.
11358         (*bit_test, *subreg_bit_test): Remove.
11359         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11361         * config/mn10300/constraints.md ("c"): Rename from "A".
11362         ("A", "D"): New constraint letters.
11363         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11364         (fmssf4, fnmasf4, fnmssf4): Likewise.
11366         * config/mn10300/mn10300.md (isa): New attribute.
11367         (enabled): New attribute.
11369         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11370         (abssf2, negsf2): Define only for hardware fp.
11371         (sqrtsf2): Reformat.
11372         (addsf3, subsf3, mulsf3): Merge expander and insn.
11374         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11375         (DEBUGGER_AUTO_OFFSET): Remove.
11376         (DEBUGGER_ARG_OFFSET): Remove.
11378         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11379         Emit register stores with the same offsets as the hardware.
11380         (mn10300_store_multiple_operation): Don't check that the register
11381         save offsets are monotonic.
11382         * config/mn10300/mn10300-protos.h: Update.
11384         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11386         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11387         in terms of the value on the stack, not the MDR register.
11389 2011-01-11  Jan Hubicka  <jh@suse.cz>
11391         PR lto/45721
11392         PR lto/45375
11393         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11394         (symbol_alias_set_destroy, symbol_alias_set_contains,
11395         propagate_aliases_backward): Declare.
11396         * lto-streamer-out.c (struct sets): New sturcture.
11397         (trivally_defined_alias): New function.
11398         (output_alias_pair_p): Rewrite.
11399         (output_unreferenced_globals): Fix output of alias pairs.
11400         (produce_symtab): Likewise.
11401         * ipa.c (function_and_variable_visibility): Set weak alias destination
11402         as needed in lto.
11403         * varasm.c (symbol_alias_set_t): Remove.
11404         (symbol_alias_set_destroy): Export.
11405         (propagate_aliases_forward, propagate_aliases_backward): New functions
11406         based on ...
11407         (compute_visible_aliases): ... this one; remove.
11408         (trivially_visible_alias): New
11409         (trivially_defined_alias): New.
11410         (remove_unreachable_alias_pairs): Rewrite.
11411         (finish_aliases_1): Reorganize code checking if alias is defined.
11412         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11413         in LTO mode.
11415 2011-01-11  Richard Guenther  <rguenther@suse.de>
11417         PR tree-optimization/46076
11418         * tree-ssa.c (useless_type_conversion_p): Conversions from
11419         unprototyped to empty argument list function types are useless.
11421 2011-01-11  Richard Guenther  <rguenther@suse.de>
11423         PR middle-end/45235
11424         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11425         volatile MEMs as MEM_READONLY_P.
11427 2011-01-11  Richard Guenther  <rguenther@suse.de>
11429         PR tree-optimization/47239
11430         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11432 2011-01-11  Jeff Law  <law@redhat.com>
11434         PR tree-optimization/47086
11435         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11436         IVs from statements that might throw.
11438 2011-01-10  Jan Hubicka  <jh@suse.cz>
11440         PR lto/45375
11441         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11443 2011-01-10  Jan Hubicka  <jh@suse.cz>
11445         PR lto/45375
11446         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11447         when correcting profile.
11449 2011-01-10  Jan Hubicka  <jh@suse.cz>
11451         PR lto/46083
11452         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11453         DECL_FINI_PRIORITY.
11454         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11455         Restore DECL_FINI_PRIORITY.
11457 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11459         * doc/gimple.texi: Fix quoting of multi-word return values in
11460         @deftypefn statements.  Ensure presence of return value.  Wrap
11461         overlong @deftypefn lines.
11462         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11463         descriptions of removed functions.
11464         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11465         of multi-word return value in @deftypefn statement.
11467 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11469         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11470         (Conditional Expressions, Logical Operators)
11471         (Statement and operand traversals): Do not indent smallexample
11472         code.  Fix duplicate function argument in example.
11474 2011-01-10  Jeff Law  <law@redhat.com>
11476         PR tree-optimization/47141
11477         * ipa-split.c (split_function): Handle case where we are
11478         returning a value and the return block has a virtual operand phi.
11480 2011-01-10  Jan Hubicka  <jh@suse.cz>
11482         PR tree-optimization/47234
11483         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11484         (pass_feedback_split_functions): Declare.
11485         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11486         tree-profile.
11487         * ipa-split.c (gate_split_functions): Update comments; disable
11488         split-functions for profile_arc_flag and branch_probabilities.
11489         (gate_feedback_split_functions): New function.
11490         (execute_feedback_split_functions): New function.
11491         (pass_feedback_split_functions): New global var.
11493 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11495         PR lto/46760
11496         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11497         calling gimple_call_set_cannot_inline.
11499 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11501         * config/darwin-sections.def: Remove unused section.
11503 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11505         PR c++/47218
11506         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11508 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11510         PR objc/47232
11511         * c-parser.c (c_parser_declaration_or_fndef): Improved
11512         error message.
11514 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11516         * config/i386/winnt.c (i386_pe_start_function): Make sure
11517         to switch back to function's section.
11519 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11521         PR gcc/46902
11522         PR testsuite/46912
11523         * plugin.c: Move include of dlfcn.h from here...
11524         * system.h: ... to here.
11526 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11528         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11529         file name.
11530         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11531         two extra empty pages in PDF output.
11533 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11535         PR objc/47078
11536         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11537         for error recovery purposes behave as if it was not specified so
11538         that the default type is usd.
11540 2011-01-07  Jan Hubicka  <jh@suse.cz>
11542         PR tree-optmization/46469
11543         * ipa.c (function_and_variable_visibility): Clear needed flags on
11544         nodes with external decls; handle weakrefs merging correctly.
11546 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11548         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11549         not false.
11551 2011-01-07  Jan Hubicka  <jh@suse.cz>
11553         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11554         and no longer claim that gold is required for linker plugin.
11555         * configure: Regenerate.
11556         * gcc.c (PLUGIN_COND): New macro.
11557         (LINK_COMMAND_SPEC): Use it.
11558         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11559         * config.in (HAVE_LTO_PLUGIN): New.
11560         * configure.ac (--with-lto-plugin): New parameter; autodetect
11561         HAVE_LTO_PLUGIN.
11563 2011-01-07  Jan Hubicka  <jh@suse.cz>
11565         PR tree-optimization/46367
11566         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11567         when we can update original.
11568         (cgraph_mark_inline_edge): Sanity check.
11569         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11571 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11573         * config/spu/spu.h (ASM_COMMENT_START): Define.
11575 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11577         PR driver/42445
11578         * gcc.c (%>S): New.
11579         (SWITCH_KEEP_FOR_GCC): Likewise.
11580         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11581         (do_spec_1): Handle "%>".
11583         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11585 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11587         PR target/47201
11588         * config/i386/i386.c (ix86_delegitimize_address): If
11589         simplify_gen_subreg fails, return orig_x.
11591         PR bootstrap/47187
11592         * value-prof.c (gimple_stringop_fixed_value): Handle
11593         lhs of the call properly.
11595 2011-01-07  Jan Hubicka  <jh@suse.cz>
11597         PR lto/45375
11598         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11600 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11602         * target.def (function_switched_text_sections): New hook.
11603         * doc/tm.texi: Regenerated.
11604         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11605         * final.c (default_function_switched_text_sections): New.
11606         (final_scan_insn): Call function_switched_text_sections when a
11607         mid-function section change occurs.
11608         * output.h (default_function_switched_text_sections): Declare.
11609         * config/darwin-protos.h (darwin_function_switched_text_sections):
11610         Likewise.
11611         * config/darwin.c (darwin_function_switched_text_sections): New.
11612         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11614 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11616         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11617         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11618         the secondary code fragment when outputting for DWARF == 2.
11620 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11622         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11623         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11624         Remove.
11625         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11626         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11628 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11630         PR debug/46704
11631         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11632         when it is not empty.
11634 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11636         Bobcat Enablement
11637         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11638         (case ${target}): Add btver1.
11639         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11640         -march=native recognize btver1 processors.
11641         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11642         btver1 def_and_undef
11643         * config/i386/i386.c (struct processor_costs btver1_cost): New
11644         btver1 cost table.
11645         (m_BTVER1): New definition.
11646         (m_AMD_MULTIPLE): Includes m_BTVER1.
11647         (initial_ix86_tune_features): Add btver1 tune.
11648         (processor_target_table): Add btver1 entry.
11649         (static const char *const cpu_names): Add btver1 entry.
11650         (software_prefetching_beneficial_p): Add btver1.
11651         (ix86_option_override_internal): Add btver1 instruction sets.
11652         (ix86_issue_rate): Add btver1.
11653         (ix86_adjust_cost): Add btver1.
11654         * config/i386/i386.h (TARGET_BTVER1): New definition.
11655         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11656         (enum processor_type): Add PROCESSOR_BTVER1.
11657         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11659 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11661         PR target/43309
11662         * config/i386/i386.c (legitimize_tls_address)
11663         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11664         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11665         (tls_initial_exec_64_sun): New pattern.
11667 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11669         * doc/invoke.texi (Overall Options): Improve wording and markup
11670         of the description of -wrapper.
11672 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11674         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11675         rdynamic, threads): New Driver options.
11677 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11679         PR target/38118
11680         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11681         if coming from .tdata.
11682         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11684 2011-01-06  Jan Hubicka  <jh@suse.cz>
11686         PR lto/47188
11687         * collect2.c (main): Do not enable LTOmode when plugin is active.
11689 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11691         PR other/45915
11692         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11693         --version output if supported.
11694         * configure: Regenerate.
11696 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11698         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11699         Driver options.
11701 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11703         PR c/47150
11704         * c-convert.c (convert): When converting a complex expression
11705         other than COMPLEX_EXPR to a different complex type, ensure
11706         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11707         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11708         when converting COMPLEX_TYPE.
11710 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11712         PR tree-optimization/47139
11713         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11714         only the last reduction value is used outside the loop.  Update
11715         documentation.
11717 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11719         * config/rtems.opt: New.
11720         * config.gcc (*-*-rtems*): Use rtems.opt.
11722 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11724         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11725         processors do not support 3DNow instructions.
11727 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11729         * config/spu/spu.c (spu_option_override): Set parameter
11730         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11732 2011-01-05  Jan Hubicka  <jh@suse.cz>
11734         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11735         at the command line.
11737 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11739         PR lto/47162
11740         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11741         deltas on streamed outgoing edges.
11742         (output_node_opt_summary): Output info for outgoing edges only when
11743         the node is in new parameter set.
11744         (output_cgraph_opt_summary): New parameter set, passed to the two
11745         aforementioned functions.  Update its forward declaration and its
11746         callee too.
11748 2011-01-05  Tom Tromey  <tromey@redhat.com>
11750         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11751         operator to c_finish_omp_atomic.
11752         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11753         (build_unary_op): Update.
11754         (build_modify_expr): Update.
11755         (build_asm_expr): Update.
11757 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11759         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11760         newly inserted insns.
11761         (pad_bb): Likewise.
11762         (spu_emit_branch_hint): Likewise.
11763         (insert_hbrp_for_ilb_runout): Likewise.
11764         (spu_machine_dependent_reorg): Call df_finish_pass after
11765         schedule_insns returns.
11767 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11769         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11771 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11773         PR tree-optimization/47005
11774         * tree-sra.c (struct access): Add 'non_addressable' bit.
11775         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11776         (decide_one_param_reduction): Return 0 if the parameter is passed by
11777         reference and one of the accesses in the group is non_addressable.
11779 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11781         PR tree-optimization/47056
11782         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11783         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11784         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11786 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11788         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11789         initializer.  Skip view conversions from aggregate types.
11791 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11793         PR bootstrap/47055
11794         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11796 2011-01-04  Philipp Thomas  <pth@suse.de>
11798         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11799         obvious typo.
11801 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11803         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11804         on empty epilogue sequences.
11806 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11808         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11809         non-static): New Driver options.
11811 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11813         PR driver/47137
11814         * gcc.c (default_compilers[]): Set combinable field to 0
11815         for all assembly languages.
11817 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11819         * config/mips/loongson3a.md: New file.
11820         * config/mips/mips.md: Include loongson3a.md.
11821         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11822         TUNE_LOONGSON_3A.
11824 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11826         PR middle-end/47017
11827         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11828         instead of convert_memory_address_addr_space on the base expression.
11830 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11832         * config/spu/spu.c (spu_option_override): Update error text
11833         for bad -march= / -mtune= values.
11835 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11837         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11838         if branch-hint optimization will be performed.
11840 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11842         PR tree-optimization/47148
11843         * ipa-split.c (split_function): Convert arguments to
11844         DECL_ARG_TYPE if possible.
11846         PR tree-optimization/47155
11847         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11848         when computing uns.
11850         PR rtl-optimization/47157
11851         * combine.c (try_combine): If undobuf.other_insn becomes
11852         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11853         and set *new_direct_jump_p too.
11855 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11857         PR tree-optimization/47021
11858         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11860 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11862         * gcc.c (process_command): Update copyright notice dates.
11863         * gcov.c (print_version): Likewise.
11864         * gcov-dump.c (print_version): Likewise.
11865         * mips-tfile.c (main): Likewise.
11866         * mips-tdump.c (main): Likewise.
11868 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11870         PR tree-optimization/46801
11871         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11872         aggregate fields start at byte boundary instead of the bit-field flag.
11874 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11876         PR driver/47137
11877         * gcc.c (main): Revert revision 168407.
11879 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11881         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11883 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11885         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11886         vector optab to expand vector/scalar shift, update gimple to vector.
11888 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11890         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11891         a thunk.
11893 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11895         PR tree-optimization/46984
11896         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11897         HOST_WIDE_INT.
11898         (cgraph_create_indirect_edge): Fixed line length.
11899         (cgraph_indirect_call_info): Declare.
11900         (cgraph_make_edge_direct) Update declaration.
11901         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11902         (cgraph_create_indirect_edge): Use it.
11903         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11904         callees.
11905         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11906         the new thunk_delta representation.
11907         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11908         HOST_WIDE_INT.
11909         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11910         (ipa_read_indirect_edge_info): Likewise.
11911         * lto-cgraph.c (output_edge_opt_summary): New function.
11912         (output_node_opt_summary): Call it on all outgoing edges.
11913         (input_edge_opt_summary): New function.
11914         (input_node_opt_summary): Call it on all outgoing edges.
11916 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11918         PR driver/47137
11919         * gcc.c (main): Don't check have_o when settting combine_inputs.
11921 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11923         * regrename.c: Add general comment describing the pass.
11924         (struct du_head): Remove 'length' field.
11925         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11926         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11927         Force renaming to the preferred class (if any) in the first pass and do
11928         not consider registers that belong to it in the second pass.
11929         (create_new_chain): Do not set 'length' field.
11930         (scan_rtx_reg): Likewise.
11932 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11934         PR tree-optimization/47140
11935         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11936         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11937         to bit_value_binop.
11939         PR rtl-optimization/47028
11940         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11941         parm_birth_insn instead of at the beginning of first bb.
11943 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11945         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11946         Remove the word "see" before "@pxref".
11947         * doc/rtl.texi: Remove the word "see" before "@pxref".
11949 2011-01-01  Jan Hubicka  <jh@suse.cz>
11951         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11952         memory.
11954 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11956         PR target/38662
11957         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11960 Copyright (C) 2011 Free Software Foundation, Inc.
11962 Copying and distribution of this file, with or without modification,
11963 are permitted in any medium without royalty provided the copyright
11964 notice and this notice are preserved.